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/api.ts 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
@@ -2742,6 +2742,161 @@ export const DomainsV1ForwardingUpdateRequestRedirectTypeEnum = {
2742
2742
 
2743
2743
  export type DomainsV1ForwardingUpdateRequestRedirectTypeEnum = typeof DomainsV1ForwardingUpdateRequestRedirectTypeEnum[keyof typeof DomainsV1ForwardingUpdateRequestRedirectTypeEnum];
2744
2744
 
2745
+ /**
2746
+ *
2747
+ * @export
2748
+ * @interface DomainsV1IRTPVerificationResource
2749
+ */
2750
+ export interface DomainsV1IRTPVerificationResource {
2751
+ /**
2752
+ * Domain name
2753
+ * @type {string}
2754
+ * @memberof DomainsV1IRTPVerificationResource
2755
+ */
2756
+ 'domain': string;
2757
+ /**
2758
+ * IRTP verification status
2759
+ * @type {string}
2760
+ * @memberof DomainsV1IRTPVerificationResource
2761
+ */
2762
+ 'status': DomainsV1IRTPVerificationResourceStatusEnum;
2763
+ /**
2764
+ * When the old registrant confirmed the change
2765
+ * @type {string}
2766
+ * @memberof DomainsV1IRTPVerificationResource
2767
+ */
2768
+ 'old_confirmed_at': string | null;
2769
+ /**
2770
+ * When the new registrant confirmed the change
2771
+ * @type {string}
2772
+ * @memberof DomainsV1IRTPVerificationResource
2773
+ */
2774
+ 'new_confirmed_at': string | null;
2775
+ /**
2776
+ * Email the old registrant confirmation was sent to
2777
+ * @type {string}
2778
+ * @memberof DomainsV1IRTPVerificationResource
2779
+ */
2780
+ 'old_whois_profile_email': string;
2781
+ /**
2782
+ * Email the new registrant confirmation was sent to
2783
+ * @type {string}
2784
+ * @memberof DomainsV1IRTPVerificationResource
2785
+ */
2786
+ 'new_whois_profile_email': string;
2787
+ /**
2788
+ * When the verification auto-cancels if unconfirmed
2789
+ * @type {string}
2790
+ * @memberof DomainsV1IRTPVerificationResource
2791
+ */
2792
+ 'expires_at': string;
2793
+ }
2794
+
2795
+ export const DomainsV1IRTPVerificationResourceStatusEnum = {
2796
+ Pending: 'pending',
2797
+ Completed: 'completed',
2798
+ Canceled: 'canceled'
2799
+ } as const;
2800
+
2801
+ export type DomainsV1IRTPVerificationResourceStatusEnum = typeof DomainsV1IRTPVerificationResourceStatusEnum[keyof typeof DomainsV1IRTPVerificationResourceStatusEnum];
2802
+
2803
+ /**
2804
+ *
2805
+ * @export
2806
+ * @interface DomainsV1MoveIncomingUpdateRequest
2807
+ */
2808
+ export interface DomainsV1MoveIncomingUpdateRequest {
2809
+ /**
2810
+ *
2811
+ * @type {DomainsV1MoveIncomingUpdateRequestDomainContacts}
2812
+ * @memberof DomainsV1MoveIncomingUpdateRequest
2813
+ */
2814
+ 'domain_contacts': DomainsV1MoveIncomingUpdateRequestDomainContacts;
2815
+ }
2816
+ /**
2817
+ * WHOIS profiles of the accepting account. Only the contact types required by the TLD are applied, but all four IDs must be provided.
2818
+ * @export
2819
+ * @interface DomainsV1MoveIncomingUpdateRequestDomainContacts
2820
+ */
2821
+ export interface DomainsV1MoveIncomingUpdateRequestDomainContacts {
2822
+ /**
2823
+ * Owner contact WHOIS record ID
2824
+ * @type {number}
2825
+ * @memberof DomainsV1MoveIncomingUpdateRequestDomainContacts
2826
+ */
2827
+ 'owner_id': number;
2828
+ /**
2829
+ * Administrative contact WHOIS record ID
2830
+ * @type {number}
2831
+ * @memberof DomainsV1MoveIncomingUpdateRequestDomainContacts
2832
+ */
2833
+ 'admin_id': number;
2834
+ /**
2835
+ * Billing contact WHOIS record ID
2836
+ * @type {number}
2837
+ * @memberof DomainsV1MoveIncomingUpdateRequestDomainContacts
2838
+ */
2839
+ 'billing_id': number;
2840
+ /**
2841
+ * Technical contact WHOIS record ID
2842
+ * @type {number}
2843
+ * @memberof DomainsV1MoveIncomingUpdateRequestDomainContacts
2844
+ */
2845
+ 'tech_id': number;
2846
+ }
2847
+ /**
2848
+ *
2849
+ * @export
2850
+ * @interface DomainsV1MoveMoveResource
2851
+ */
2852
+ export interface DomainsV1MoveMoveResource {
2853
+ /**
2854
+ * Domain name
2855
+ * @type {string}
2856
+ * @memberof DomainsV1MoveMoveResource
2857
+ */
2858
+ 'domain': string;
2859
+ /**
2860
+ * Status of the move
2861
+ * @type {string}
2862
+ * @memberof DomainsV1MoveMoveResource
2863
+ */
2864
+ 'status': DomainsV1MoveMoveResourceStatusEnum;
2865
+ /**
2866
+ *
2867
+ * @type {string}
2868
+ * @memberof DomainsV1MoveMoveResource
2869
+ */
2870
+ 'created_at': string;
2871
+ /**
2872
+ *
2873
+ * @type {string}
2874
+ * @memberof DomainsV1MoveMoveResource
2875
+ */
2876
+ 'updated_at': string;
2877
+ }
2878
+
2879
+ export const DomainsV1MoveMoveResourceStatusEnum = {
2880
+ Initiated: 'initiated',
2881
+ Activating: 'activating',
2882
+ Completed: 'completed'
2883
+ } as const;
2884
+
2885
+ export type DomainsV1MoveMoveResourceStatusEnum = typeof DomainsV1MoveMoveResourceStatusEnum[keyof typeof DomainsV1MoveMoveResourceStatusEnum];
2886
+
2887
+ /**
2888
+ *
2889
+ * @export
2890
+ * @interface DomainsV1MoveOutgoingStoreRequest
2891
+ */
2892
+ export interface DomainsV1MoveOutgoingStoreRequest {
2893
+ /**
2894
+ * Email address of the Hostinger account receiving the domain
2895
+ * @type {string}
2896
+ * @memberof DomainsV1MoveOutgoingStoreRequest
2897
+ */
2898
+ 'new_customer_email': string;
2899
+ }
2745
2900
  /**
2746
2901
  *
2747
2902
  * @export
@@ -2916,6 +3071,41 @@ export interface DomainsV1TransferTransferResource {
2916
3071
  */
2917
3072
  'completed_at': string | null;
2918
3073
  }
3074
+ /**
3075
+ *
3076
+ * @export
3077
+ * @interface DomainsV1WHOISChangeUpdateRequest
3078
+ */
3079
+ export interface DomainsV1WHOISChangeUpdateRequest {
3080
+ /**
3081
+ * WHOIS profile ID to assign to the domain
3082
+ * @type {number}
3083
+ * @memberof DomainsV1WHOISChangeUpdateRequest
3084
+ */
3085
+ 'new_whois_id': number;
3086
+ /**
3087
+ * Domain name
3088
+ * @type {string}
3089
+ * @memberof DomainsV1WHOISChangeUpdateRequest
3090
+ */
3091
+ 'domain': string;
3092
+ /**
3093
+ * Contact roles to repoint to the new WHOIS profile
3094
+ * @type {Array<string>}
3095
+ * @memberof DomainsV1WHOISChangeUpdateRequest
3096
+ */
3097
+ 'change_for': Array<DomainsV1WHOISChangeUpdateRequestChangeForEnum>;
3098
+ }
3099
+
3100
+ export const DomainsV1WHOISChangeUpdateRequestChangeForEnum = {
3101
+ Owner: 'owner',
3102
+ Admin: 'admin',
3103
+ Billing: 'billing',
3104
+ Tech: 'tech'
3105
+ } as const;
3106
+
3107
+ export type DomainsV1WHOISChangeUpdateRequestChangeForEnum = typeof DomainsV1WHOISChangeUpdateRequestChangeForEnum[keyof typeof DomainsV1WHOISChangeUpdateRequestChangeForEnum];
3108
+
2919
3109
  /**
2920
3110
  *
2921
3111
  * @export
@@ -15023,22 +15213,25 @@ export class DomainsForwardingApi extends BaseAPI {
15023
15213
 
15024
15214
 
15025
15215
  /**
15026
- * DomainsPortfolioApi - axios parameter creator
15216
+ * DomainsMoveApi - axios parameter creator
15027
15217
  * @export
15028
15218
  */
15029
- export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Configuration) {
15219
+ export const DomainsMoveApiAxiosParamCreator = function (configuration?: Configuration) {
15030
15220
  return {
15031
15221
  /**
15032
- * 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.
15033
- * @summary Disable domain lock
15222
+ * 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.
15223
+ * @summary Accept incoming domain move
15034
15224
  * @param {string} domain Domain name
15225
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
15035
15226
  * @param {*} [options] Override http request option.
15036
15227
  * @throws {RequiredError}
15037
15228
  */
15038
- disableDomainLockV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15229
+ acceptIncomingDomainMoveV1: async (domain: string, domainsV1MoveIncomingUpdateRequest: DomainsV1MoveIncomingUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15039
15230
  // verify required parameter 'domain' is not null or undefined
15040
- assertParamExists('disableDomainLockV1', 'domain', domain)
15041
- const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
15231
+ assertParamExists('acceptIncomingDomainMoveV1', 'domain', domain)
15232
+ // verify required parameter 'domainsV1MoveIncomingUpdateRequest' is not null or undefined
15233
+ assertParamExists('acceptIncomingDomainMoveV1', 'domainsV1MoveIncomingUpdateRequest', domainsV1MoveIncomingUpdateRequest)
15234
+ const localVarPath = `/api/domains/v1/move/incoming/{domain}`
15042
15235
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15043
15236
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15044
15237
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15047,7 +15240,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15047
15240
  baseOptions = configuration.baseOptions;
15048
15241
  }
15049
15242
 
15050
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
15243
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
15051
15244
  const localVarHeaderParameter = {} as any;
15052
15245
  const localVarQueryParameter = {} as any;
15053
15246
 
@@ -15057,9 +15250,12 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15057
15250
 
15058
15251
 
15059
15252
 
15253
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15254
+
15060
15255
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15061
15256
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15062
15257
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15258
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1MoveIncomingUpdateRequest, localVarRequestOptions, configuration)
15063
15259
 
15064
15260
  return {
15065
15261
  url: toPathString(localVarUrlObj),
@@ -15067,16 +15263,16 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15067
15263
  };
15068
15264
  },
15069
15265
  /**
15070
- * 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.
15071
- * @summary Disable privacy protection
15266
+ * 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.
15267
+ * @summary Cancel outgoing domain move
15072
15268
  * @param {string} domain Domain name
15073
15269
  * @param {*} [options] Override http request option.
15074
15270
  * @throws {RequiredError}
15075
15271
  */
15076
- disablePrivacyProtectionV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15272
+ cancelOutgoingDomainMoveV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15077
15273
  // verify required parameter 'domain' is not null or undefined
15078
- assertParamExists('disablePrivacyProtectionV1', 'domain', domain)
15079
- const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
15274
+ assertParamExists('cancelOutgoingDomainMoveV1', 'domain', domain)
15275
+ const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
15080
15276
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15081
15277
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15082
15278
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15105,17 +15301,13 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15105
15301
  };
15106
15302
  },
15107
15303
  /**
15108
- * 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.
15109
- * @summary Enable domain lock
15110
- * @param {string} domain Domain name
15304
+ * 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.
15305
+ * @summary Get incoming domain move list
15111
15306
  * @param {*} [options] Override http request option.
15112
15307
  * @throws {RequiredError}
15113
15308
  */
15114
- enableDomainLockV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15115
- // verify required parameter 'domain' is not null or undefined
15116
- assertParamExists('enableDomainLockV1', 'domain', domain)
15117
- const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
15118
- .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15309
+ getIncomingDomainMoveListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15310
+ const localVarPath = `/api/domains/v1/move/incoming`;
15119
15311
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15120
15312
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15121
15313
  let baseOptions;
@@ -15123,7 +15315,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15123
15315
  baseOptions = configuration.baseOptions;
15124
15316
  }
15125
15317
 
15126
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
15318
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15127
15319
  const localVarHeaderParameter = {} as any;
15128
15320
  const localVarQueryParameter = {} as any;
15129
15321
 
@@ -15143,16 +15335,17 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15143
15335
  };
15144
15336
  },
15145
15337
  /**
15146
- * 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.
15147
- * @summary Enable privacy protection
15338
+ * 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.
15339
+ * @summary Get incoming domain move
15148
15340
  * @param {string} domain Domain name
15341
+ * @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the &#x60;activating&#x60; status.
15149
15342
  * @param {*} [options] Override http request option.
15150
15343
  * @throws {RequiredError}
15151
15344
  */
15152
- enablePrivacyProtectionV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15345
+ getIncomingDomainMoveV1: async (domain: string, forceSync?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15153
15346
  // verify required parameter 'domain' is not null or undefined
15154
- assertParamExists('enablePrivacyProtectionV1', 'domain', domain)
15155
- const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
15347
+ assertParamExists('getIncomingDomainMoveV1', 'domain', domain)
15348
+ const localVarPath = `/api/domains/v1/move/incoming/{domain}`
15156
15349
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15157
15350
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15158
15351
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15161,7 +15354,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15161
15354
  baseOptions = configuration.baseOptions;
15162
15355
  }
15163
15356
 
15164
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
15357
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15165
15358
  const localVarHeaderParameter = {} as any;
15166
15359
  const localVarQueryParameter = {} as any;
15167
15360
 
@@ -15169,6 +15362,10 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15169
15362
  // http bearer authentication required
15170
15363
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
15171
15364
 
15365
+ if (forceSync !== undefined) {
15366
+ localVarQueryParameter['force_sync'] = forceSync;
15367
+ }
15368
+
15172
15369
 
15173
15370
 
15174
15371
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -15181,17 +15378,13 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15181
15378
  };
15182
15379
  },
15183
15380
  /**
15184
- * 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.
15185
- * @summary Get domain authorization code
15186
- * @param {string} domain Domain name
15381
+ * 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.
15382
+ * @summary Get outgoing domain move list
15187
15383
  * @param {*} [options] Override http request option.
15188
15384
  * @throws {RequiredError}
15189
15385
  */
15190
- getDomainAuthorizationCodeV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15191
- // verify required parameter 'domain' is not null or undefined
15192
- assertParamExists('getDomainAuthorizationCodeV1', 'domain', domain)
15193
- const localVarPath = `/api/domains/v1/portfolio/{domain}/auth-code`
15194
- .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15386
+ getOutgoingDomainMoveListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15387
+ const localVarPath = `/api/domains/v1/move/outgoing`;
15195
15388
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15196
15389
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15197
15390
  let baseOptions;
@@ -15219,16 +15412,16 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15219
15412
  };
15220
15413
  },
15221
15414
  /**
15222
- * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
15223
- * @summary Get domain details
15415
+ * 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.
15416
+ * @summary Get outgoing domain move
15224
15417
  * @param {string} domain Domain name
15225
15418
  * @param {*} [options] Override http request option.
15226
15419
  * @throws {RequiredError}
15227
15420
  */
15228
- getDomainDetailsV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15421
+ getOutgoingDomainMoveV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15229
15422
  // verify required parameter 'domain' is not null or undefined
15230
- assertParamExists('getDomainDetailsV1', 'domain', domain)
15231
- const localVarPath = `/api/domains/v1/portfolio/{domain}`
15423
+ assertParamExists('getOutgoingDomainMoveV1', 'domain', domain)
15424
+ const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
15232
15425
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15233
15426
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15234
15427
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15257,13 +15450,17 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15257
15450
  };
15258
15451
  },
15259
15452
  /**
15260
- * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
15261
- * @summary Get domain list
15453
+ * 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.
15454
+ * @summary Reject incoming domain move
15455
+ * @param {string} domain Domain name
15262
15456
  * @param {*} [options] Override http request option.
15263
15457
  * @throws {RequiredError}
15264
15458
  */
15265
- getDomainListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15266
- const localVarPath = `/api/domains/v1/portfolio`;
15459
+ rejectIncomingDomainMoveV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15460
+ // verify required parameter 'domain' is not null or undefined
15461
+ assertParamExists('rejectIncomingDomainMoveV1', 'domain', domain)
15462
+ const localVarPath = `/api/domains/v1/move/incoming/{domain}`
15463
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15267
15464
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15268
15465
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15269
15466
  let baseOptions;
@@ -15271,7 +15468,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15271
15468
  baseOptions = configuration.baseOptions;
15272
15469
  }
15273
15470
 
15274
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15471
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
15275
15472
  const localVarHeaderParameter = {} as any;
15276
15473
  const localVarQueryParameter = {} as any;
15277
15474
 
@@ -15291,16 +15488,19 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15291
15488
  };
15292
15489
  },
15293
15490
  /**
15294
- * 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.
15295
- * @summary Get domain renewal information
15491
+ * 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.
15492
+ * @summary Start outgoing domain move
15296
15493
  * @param {string} domain Domain name
15494
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
15297
15495
  * @param {*} [options] Override http request option.
15298
15496
  * @throws {RequiredError}
15299
15497
  */
15300
- getDomainRenewalInformationV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15498
+ startOutgoingDomainMoveV1: async (domain: string, domainsV1MoveOutgoingStoreRequest: DomainsV1MoveOutgoingStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15301
15499
  // verify required parameter 'domain' is not null or undefined
15302
- assertParamExists('getDomainRenewalInformationV1', 'domain', domain)
15303
- const localVarPath = `/api/domains/v1/portfolio/{domain}/renewal`
15500
+ assertParamExists('startOutgoingDomainMoveV1', 'domain', domain)
15501
+ // verify required parameter 'domainsV1MoveOutgoingStoreRequest' is not null or undefined
15502
+ assertParamExists('startOutgoingDomainMoveV1', 'domainsV1MoveOutgoingStoreRequest', domainsV1MoveOutgoingStoreRequest)
15503
+ const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
15304
15504
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15305
15505
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15306
15506
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15309,7 +15509,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15309
15509
  baseOptions = configuration.baseOptions;
15310
15510
  }
15311
15511
 
15312
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15512
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15313
15513
  const localVarHeaderParameter = {} as any;
15314
15514
  const localVarQueryParameter = {} as any;
15315
15515
 
@@ -15319,83 +15519,700 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15319
15519
 
15320
15520
 
15321
15521
 
15522
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15523
+
15322
15524
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15323
15525
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15324
15526
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15527
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1MoveOutgoingStoreRequest, localVarRequestOptions, configuration)
15325
15528
 
15326
15529
  return {
15327
15530
  url: toPathString(localVarUrlObj),
15328
15531
  options: localVarRequestOptions,
15329
15532
  };
15330
15533
  },
15534
+ }
15535
+ };
15536
+
15537
+ /**
15538
+ * DomainsMoveApi - functional programming interface
15539
+ * @export
15540
+ */
15541
+ export const DomainsMoveApiFp = function(configuration?: Configuration) {
15542
+ const localVarAxiosParamCreator = DomainsMoveApiAxiosParamCreator(configuration)
15543
+ return {
15331
15544
  /**
15332
- * 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.
15333
- * @summary Purchase new domain
15334
- * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
15545
+ * 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.
15546
+ * @summary Accept incoming domain move
15547
+ * @param {string} domain Domain name
15548
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
15335
15549
  * @param {*} [options] Override http request option.
15336
15550
  * @throws {RequiredError}
15337
15551
  */
15338
- purchaseNewDomainV1: async (domainsV1PortfolioPurchaseRequest: DomainsV1PortfolioPurchaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15339
- // verify required parameter 'domainsV1PortfolioPurchaseRequest' is not null or undefined
15340
- assertParamExists('purchaseNewDomainV1', 'domainsV1PortfolioPurchaseRequest', domainsV1PortfolioPurchaseRequest)
15341
- const localVarPath = `/api/domains/v1/portfolio`;
15342
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
15343
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15344
- let baseOptions;
15345
- if (configuration) {
15346
- baseOptions = configuration.baseOptions;
15347
- }
15348
-
15349
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15350
- const localVarHeaderParameter = {} as any;
15351
- const localVarQueryParameter = {} as any;
15352
-
15353
- // authentication apiToken required
15354
- // http bearer authentication required
15355
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
15356
-
15357
-
15358
-
15359
- localVarHeaderParameter['Content-Type'] = 'application/json';
15360
-
15361
- setSearchParams(localVarUrlObj, localVarQueryParameter);
15362
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15363
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15364
- localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioPurchaseRequest, localVarRequestOptions, configuration)
15365
-
15366
- return {
15367
- url: toPathString(localVarUrlObj),
15368
- options: localVarRequestOptions,
15369
- };
15552
+ async acceptIncomingDomainMoveV1(domain: string, domainsV1MoveIncomingUpdateRequest: DomainsV1MoveIncomingUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
15553
+ const localVarAxiosArgs = await localVarAxiosParamCreator.acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options);
15554
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.acceptIncomingDomainMoveV1']?.[0]?.url;
15555
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15370
15556
  },
15371
15557
  /**
15372
- * 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.
15373
- * @summary Update domain nameservers
15558
+ * 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.
15559
+ * @summary Cancel outgoing domain move
15374
15560
  * @param {string} domain Domain name
15375
- * @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
15376
15561
  * @param {*} [options] Override http request option.
15377
15562
  * @throws {RequiredError}
15378
15563
  */
15379
- updateDomainNameserversV1: async (domain: string, domainsV1PortfolioUpdateNameserversRequest: DomainsV1PortfolioUpdateNameserversRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15380
- // verify required parameter 'domain' is not null or undefined
15381
- assertParamExists('updateDomainNameserversV1', 'domain', domain)
15382
- // verify required parameter 'domainsV1PortfolioUpdateNameserversRequest' is not null or undefined
15383
- assertParamExists('updateDomainNameserversV1', 'domainsV1PortfolioUpdateNameserversRequest', domainsV1PortfolioUpdateNameserversRequest)
15384
- const localVarPath = `/api/domains/v1/portfolio/{domain}/nameservers`
15385
- .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15386
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
15387
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15388
- let baseOptions;
15389
- if (configuration) {
15390
- baseOptions = configuration.baseOptions;
15391
- }
15392
-
15393
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
15394
- const localVarHeaderParameter = {} as any;
15395
- const localVarQueryParameter = {} as any;
15396
-
15397
- // authentication apiToken required
15398
- // http bearer authentication required
15564
+ async cancelOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
15565
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelOutgoingDomainMoveV1(domain, options);
15566
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.cancelOutgoingDomainMoveV1']?.[0]?.url;
15567
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15568
+ },
15569
+ /**
15570
+ * 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.
15571
+ * @summary Get incoming domain move list
15572
+ * @param {*} [options] Override http request option.
15573
+ * @throws {RequiredError}
15574
+ */
15575
+ async getIncomingDomainMoveListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DomainsV1MoveMoveResource>>> {
15576
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getIncomingDomainMoveListV1(options);
15577
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.getIncomingDomainMoveListV1']?.[0]?.url;
15578
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15579
+ },
15580
+ /**
15581
+ * 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.
15582
+ * @summary Get incoming domain move
15583
+ * @param {string} domain Domain name
15584
+ * @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the &#x60;activating&#x60; status.
15585
+ * @param {*} [options] Override http request option.
15586
+ * @throws {RequiredError}
15587
+ */
15588
+ async getIncomingDomainMoveV1(domain: string, forceSync?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1MoveMoveResource>> {
15589
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getIncomingDomainMoveV1(domain, forceSync, options);
15590
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.getIncomingDomainMoveV1']?.[0]?.url;
15591
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15592
+ },
15593
+ /**
15594
+ * 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.
15595
+ * @summary Get outgoing domain move list
15596
+ * @param {*} [options] Override http request option.
15597
+ * @throws {RequiredError}
15598
+ */
15599
+ async getOutgoingDomainMoveListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DomainsV1MoveMoveResource>>> {
15600
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOutgoingDomainMoveListV1(options);
15601
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.getOutgoingDomainMoveListV1']?.[0]?.url;
15602
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15603
+ },
15604
+ /**
15605
+ * 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.
15606
+ * @summary Get outgoing domain move
15607
+ * @param {string} domain Domain name
15608
+ * @param {*} [options] Override http request option.
15609
+ * @throws {RequiredError}
15610
+ */
15611
+ async getOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1MoveMoveResource>> {
15612
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOutgoingDomainMoveV1(domain, options);
15613
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.getOutgoingDomainMoveV1']?.[0]?.url;
15614
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15615
+ },
15616
+ /**
15617
+ * 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.
15618
+ * @summary Reject incoming domain move
15619
+ * @param {string} domain Domain name
15620
+ * @param {*} [options] Override http request option.
15621
+ * @throws {RequiredError}
15622
+ */
15623
+ async rejectIncomingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
15624
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rejectIncomingDomainMoveV1(domain, options);
15625
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.rejectIncomingDomainMoveV1']?.[0]?.url;
15626
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15627
+ },
15628
+ /**
15629
+ * 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.
15630
+ * @summary Start outgoing domain move
15631
+ * @param {string} domain Domain name
15632
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
15633
+ * @param {*} [options] Override http request option.
15634
+ * @throws {RequiredError}
15635
+ */
15636
+ async startOutgoingDomainMoveV1(domain: string, domainsV1MoveOutgoingStoreRequest: DomainsV1MoveOutgoingStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
15637
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options);
15638
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.startOutgoingDomainMoveV1']?.[0]?.url;
15639
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15640
+ },
15641
+ }
15642
+ };
15643
+
15644
+ /**
15645
+ * DomainsMoveApi - factory interface
15646
+ * @export
15647
+ */
15648
+ export const DomainsMoveApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
15649
+ const localVarFp = DomainsMoveApiFp(configuration)
15650
+ return {
15651
+ /**
15652
+ * 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.
15653
+ * @summary Accept incoming domain move
15654
+ * @param {string} domain Domain name
15655
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
15656
+ * @param {*} [options] Override http request option.
15657
+ * @throws {RequiredError}
15658
+ */
15659
+ acceptIncomingDomainMoveV1(domain: string, domainsV1MoveIncomingUpdateRequest: DomainsV1MoveIncomingUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
15660
+ return localVarFp.acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options).then((request) => request(axios, basePath));
15661
+ },
15662
+ /**
15663
+ * 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.
15664
+ * @summary Cancel outgoing domain move
15665
+ * @param {string} domain Domain name
15666
+ * @param {*} [options] Override http request option.
15667
+ * @throws {RequiredError}
15668
+ */
15669
+ cancelOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
15670
+ return localVarFp.cancelOutgoingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
15671
+ },
15672
+ /**
15673
+ * 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.
15674
+ * @summary Get incoming domain move list
15675
+ * @param {*} [options] Override http request option.
15676
+ * @throws {RequiredError}
15677
+ */
15678
+ getIncomingDomainMoveListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<DomainsV1MoveMoveResource>> {
15679
+ return localVarFp.getIncomingDomainMoveListV1(options).then((request) => request(axios, basePath));
15680
+ },
15681
+ /**
15682
+ * 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.
15683
+ * @summary Get incoming domain move
15684
+ * @param {string} domain Domain name
15685
+ * @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the &#x60;activating&#x60; status.
15686
+ * @param {*} [options] Override http request option.
15687
+ * @throws {RequiredError}
15688
+ */
15689
+ getIncomingDomainMoveV1(domain: string, forceSync?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1MoveMoveResource> {
15690
+ return localVarFp.getIncomingDomainMoveV1(domain, forceSync, options).then((request) => request(axios, basePath));
15691
+ },
15692
+ /**
15693
+ * 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.
15694
+ * @summary Get outgoing domain move list
15695
+ * @param {*} [options] Override http request option.
15696
+ * @throws {RequiredError}
15697
+ */
15698
+ getOutgoingDomainMoveListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<DomainsV1MoveMoveResource>> {
15699
+ return localVarFp.getOutgoingDomainMoveListV1(options).then((request) => request(axios, basePath));
15700
+ },
15701
+ /**
15702
+ * 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.
15703
+ * @summary Get outgoing domain move
15704
+ * @param {string} domain Domain name
15705
+ * @param {*} [options] Override http request option.
15706
+ * @throws {RequiredError}
15707
+ */
15708
+ getOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1MoveMoveResource> {
15709
+ return localVarFp.getOutgoingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
15710
+ },
15711
+ /**
15712
+ * 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.
15713
+ * @summary Reject incoming domain move
15714
+ * @param {string} domain Domain name
15715
+ * @param {*} [options] Override http request option.
15716
+ * @throws {RequiredError}
15717
+ */
15718
+ rejectIncomingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
15719
+ return localVarFp.rejectIncomingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
15720
+ },
15721
+ /**
15722
+ * 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.
15723
+ * @summary Start outgoing domain move
15724
+ * @param {string} domain Domain name
15725
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
15726
+ * @param {*} [options] Override http request option.
15727
+ * @throws {RequiredError}
15728
+ */
15729
+ startOutgoingDomainMoveV1(domain: string, domainsV1MoveOutgoingStoreRequest: DomainsV1MoveOutgoingStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
15730
+ return localVarFp.startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options).then((request) => request(axios, basePath));
15731
+ },
15732
+ };
15733
+ };
15734
+
15735
+ /**
15736
+ * DomainsMoveApi - object-oriented interface
15737
+ * @export
15738
+ * @class DomainsMoveApi
15739
+ * @extends {BaseAPI}
15740
+ */
15741
+ export class DomainsMoveApi extends BaseAPI {
15742
+ /**
15743
+ * 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.
15744
+ * @summary Accept incoming domain move
15745
+ * @param {string} domain Domain name
15746
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
15747
+ * @param {*} [options] Override http request option.
15748
+ * @throws {RequiredError}
15749
+ * @memberof DomainsMoveApi
15750
+ */
15751
+ public acceptIncomingDomainMoveV1(domain: string, domainsV1MoveIncomingUpdateRequest: DomainsV1MoveIncomingUpdateRequest, options?: RawAxiosRequestConfig) {
15752
+ return DomainsMoveApiFp(this.configuration).acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options).then((request) => request(this.axios, this.basePath));
15753
+ }
15754
+
15755
+ /**
15756
+ * 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.
15757
+ * @summary Cancel outgoing domain move
15758
+ * @param {string} domain Domain name
15759
+ * @param {*} [options] Override http request option.
15760
+ * @throws {RequiredError}
15761
+ * @memberof DomainsMoveApi
15762
+ */
15763
+ public cancelOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig) {
15764
+ return DomainsMoveApiFp(this.configuration).cancelOutgoingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
15765
+ }
15766
+
15767
+ /**
15768
+ * 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.
15769
+ * @summary Get incoming domain move list
15770
+ * @param {*} [options] Override http request option.
15771
+ * @throws {RequiredError}
15772
+ * @memberof DomainsMoveApi
15773
+ */
15774
+ public getIncomingDomainMoveListV1(options?: RawAxiosRequestConfig) {
15775
+ return DomainsMoveApiFp(this.configuration).getIncomingDomainMoveListV1(options).then((request) => request(this.axios, this.basePath));
15776
+ }
15777
+
15778
+ /**
15779
+ * 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.
15780
+ * @summary Get incoming domain move
15781
+ * @param {string} domain Domain name
15782
+ * @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the &#x60;activating&#x60; status.
15783
+ * @param {*} [options] Override http request option.
15784
+ * @throws {RequiredError}
15785
+ * @memberof DomainsMoveApi
15786
+ */
15787
+ public getIncomingDomainMoveV1(domain: string, forceSync?: boolean, options?: RawAxiosRequestConfig) {
15788
+ return DomainsMoveApiFp(this.configuration).getIncomingDomainMoveV1(domain, forceSync, options).then((request) => request(this.axios, this.basePath));
15789
+ }
15790
+
15791
+ /**
15792
+ * 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.
15793
+ * @summary Get outgoing domain move list
15794
+ * @param {*} [options] Override http request option.
15795
+ * @throws {RequiredError}
15796
+ * @memberof DomainsMoveApi
15797
+ */
15798
+ public getOutgoingDomainMoveListV1(options?: RawAxiosRequestConfig) {
15799
+ return DomainsMoveApiFp(this.configuration).getOutgoingDomainMoveListV1(options).then((request) => request(this.axios, this.basePath));
15800
+ }
15801
+
15802
+ /**
15803
+ * 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.
15804
+ * @summary Get outgoing domain move
15805
+ * @param {string} domain Domain name
15806
+ * @param {*} [options] Override http request option.
15807
+ * @throws {RequiredError}
15808
+ * @memberof DomainsMoveApi
15809
+ */
15810
+ public getOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig) {
15811
+ return DomainsMoveApiFp(this.configuration).getOutgoingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
15812
+ }
15813
+
15814
+ /**
15815
+ * 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.
15816
+ * @summary Reject incoming domain move
15817
+ * @param {string} domain Domain name
15818
+ * @param {*} [options] Override http request option.
15819
+ * @throws {RequiredError}
15820
+ * @memberof DomainsMoveApi
15821
+ */
15822
+ public rejectIncomingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig) {
15823
+ return DomainsMoveApiFp(this.configuration).rejectIncomingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
15824
+ }
15825
+
15826
+ /**
15827
+ * 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.
15828
+ * @summary Start outgoing domain move
15829
+ * @param {string} domain Domain name
15830
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
15831
+ * @param {*} [options] Override http request option.
15832
+ * @throws {RequiredError}
15833
+ * @memberof DomainsMoveApi
15834
+ */
15835
+ public startOutgoingDomainMoveV1(domain: string, domainsV1MoveOutgoingStoreRequest: DomainsV1MoveOutgoingStoreRequest, options?: RawAxiosRequestConfig) {
15836
+ return DomainsMoveApiFp(this.configuration).startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options).then((request) => request(this.axios, this.basePath));
15837
+ }
15838
+ }
15839
+
15840
+
15841
+
15842
+ /**
15843
+ * DomainsPortfolioApi - axios parameter creator
15844
+ * @export
15845
+ */
15846
+ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Configuration) {
15847
+ return {
15848
+ /**
15849
+ * 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.
15850
+ * @summary Disable domain lock
15851
+ * @param {string} domain Domain name
15852
+ * @param {*} [options] Override http request option.
15853
+ * @throws {RequiredError}
15854
+ */
15855
+ disableDomainLockV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15856
+ // verify required parameter 'domain' is not null or undefined
15857
+ assertParamExists('disableDomainLockV1', 'domain', domain)
15858
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
15859
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15860
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15861
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15862
+ let baseOptions;
15863
+ if (configuration) {
15864
+ baseOptions = configuration.baseOptions;
15865
+ }
15866
+
15867
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
15868
+ const localVarHeaderParameter = {} as any;
15869
+ const localVarQueryParameter = {} as any;
15870
+
15871
+ // authentication apiToken required
15872
+ // http bearer authentication required
15873
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15874
+
15875
+
15876
+
15877
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15878
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15879
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15880
+
15881
+ return {
15882
+ url: toPathString(localVarUrlObj),
15883
+ options: localVarRequestOptions,
15884
+ };
15885
+ },
15886
+ /**
15887
+ * 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.
15888
+ * @summary Disable privacy protection
15889
+ * @param {string} domain Domain name
15890
+ * @param {*} [options] Override http request option.
15891
+ * @throws {RequiredError}
15892
+ */
15893
+ disablePrivacyProtectionV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15894
+ // verify required parameter 'domain' is not null or undefined
15895
+ assertParamExists('disablePrivacyProtectionV1', 'domain', domain)
15896
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
15897
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15898
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15899
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15900
+ let baseOptions;
15901
+ if (configuration) {
15902
+ baseOptions = configuration.baseOptions;
15903
+ }
15904
+
15905
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
15906
+ const localVarHeaderParameter = {} as any;
15907
+ const localVarQueryParameter = {} as any;
15908
+
15909
+ // authentication apiToken required
15910
+ // http bearer authentication required
15911
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15912
+
15913
+
15914
+
15915
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15916
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15917
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15918
+
15919
+ return {
15920
+ url: toPathString(localVarUrlObj),
15921
+ options: localVarRequestOptions,
15922
+ };
15923
+ },
15924
+ /**
15925
+ * 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.
15926
+ * @summary Enable domain lock
15927
+ * @param {string} domain Domain name
15928
+ * @param {*} [options] Override http request option.
15929
+ * @throws {RequiredError}
15930
+ */
15931
+ enableDomainLockV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15932
+ // verify required parameter 'domain' is not null or undefined
15933
+ assertParamExists('enableDomainLockV1', 'domain', domain)
15934
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
15935
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15936
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15937
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15938
+ let baseOptions;
15939
+ if (configuration) {
15940
+ baseOptions = configuration.baseOptions;
15941
+ }
15942
+
15943
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
15944
+ const localVarHeaderParameter = {} as any;
15945
+ const localVarQueryParameter = {} as any;
15946
+
15947
+ // authentication apiToken required
15948
+ // http bearer authentication required
15949
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15950
+
15951
+
15952
+
15953
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15954
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15955
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15956
+
15957
+ return {
15958
+ url: toPathString(localVarUrlObj),
15959
+ options: localVarRequestOptions,
15960
+ };
15961
+ },
15962
+ /**
15963
+ * 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.
15964
+ * @summary Enable privacy protection
15965
+ * @param {string} domain Domain name
15966
+ * @param {*} [options] Override http request option.
15967
+ * @throws {RequiredError}
15968
+ */
15969
+ enablePrivacyProtectionV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15970
+ // verify required parameter 'domain' is not null or undefined
15971
+ assertParamExists('enablePrivacyProtectionV1', 'domain', domain)
15972
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
15973
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15974
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15975
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15976
+ let baseOptions;
15977
+ if (configuration) {
15978
+ baseOptions = configuration.baseOptions;
15979
+ }
15980
+
15981
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
15982
+ const localVarHeaderParameter = {} as any;
15983
+ const localVarQueryParameter = {} as any;
15984
+
15985
+ // authentication apiToken required
15986
+ // http bearer authentication required
15987
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15988
+
15989
+
15990
+
15991
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15992
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15993
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15994
+
15995
+ return {
15996
+ url: toPathString(localVarUrlObj),
15997
+ options: localVarRequestOptions,
15998
+ };
15999
+ },
16000
+ /**
16001
+ * 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.
16002
+ * @summary Get domain authorization code
16003
+ * @param {string} domain Domain name
16004
+ * @param {*} [options] Override http request option.
16005
+ * @throws {RequiredError}
16006
+ */
16007
+ getDomainAuthorizationCodeV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16008
+ // verify required parameter 'domain' is not null or undefined
16009
+ assertParamExists('getDomainAuthorizationCodeV1', 'domain', domain)
16010
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/auth-code`
16011
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16012
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16013
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16014
+ let baseOptions;
16015
+ if (configuration) {
16016
+ baseOptions = configuration.baseOptions;
16017
+ }
16018
+
16019
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16020
+ const localVarHeaderParameter = {} as any;
16021
+ const localVarQueryParameter = {} as any;
16022
+
16023
+ // authentication apiToken required
16024
+ // http bearer authentication required
16025
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16026
+
16027
+
16028
+
16029
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16030
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16031
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16032
+
16033
+ return {
16034
+ url: toPathString(localVarUrlObj),
16035
+ options: localVarRequestOptions,
16036
+ };
16037
+ },
16038
+ /**
16039
+ * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
16040
+ * @summary Get domain details
16041
+ * @param {string} domain Domain name
16042
+ * @param {*} [options] Override http request option.
16043
+ * @throws {RequiredError}
16044
+ */
16045
+ getDomainDetailsV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16046
+ // verify required parameter 'domain' is not null or undefined
16047
+ assertParamExists('getDomainDetailsV1', 'domain', domain)
16048
+ const localVarPath = `/api/domains/v1/portfolio/{domain}`
16049
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16050
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16051
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16052
+ let baseOptions;
16053
+ if (configuration) {
16054
+ baseOptions = configuration.baseOptions;
16055
+ }
16056
+
16057
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16058
+ const localVarHeaderParameter = {} as any;
16059
+ const localVarQueryParameter = {} as any;
16060
+
16061
+ // authentication apiToken required
16062
+ // http bearer authentication required
16063
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16064
+
16065
+
16066
+
16067
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16068
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16069
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16070
+
16071
+ return {
16072
+ url: toPathString(localVarUrlObj),
16073
+ options: localVarRequestOptions,
16074
+ };
16075
+ },
16076
+ /**
16077
+ * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
16078
+ * @summary Get domain list
16079
+ * @param {*} [options] Override http request option.
16080
+ * @throws {RequiredError}
16081
+ */
16082
+ getDomainListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16083
+ const localVarPath = `/api/domains/v1/portfolio`;
16084
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16085
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16086
+ let baseOptions;
16087
+ if (configuration) {
16088
+ baseOptions = configuration.baseOptions;
16089
+ }
16090
+
16091
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16092
+ const localVarHeaderParameter = {} as any;
16093
+ const localVarQueryParameter = {} as any;
16094
+
16095
+ // authentication apiToken required
16096
+ // http bearer authentication required
16097
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16098
+
16099
+
16100
+
16101
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16102
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16103
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16104
+
16105
+ return {
16106
+ url: toPathString(localVarUrlObj),
16107
+ options: localVarRequestOptions,
16108
+ };
16109
+ },
16110
+ /**
16111
+ * 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.
16112
+ * @summary Get domain renewal information
16113
+ * @param {string} domain Domain name
16114
+ * @param {*} [options] Override http request option.
16115
+ * @throws {RequiredError}
16116
+ */
16117
+ getDomainRenewalInformationV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16118
+ // verify required parameter 'domain' is not null or undefined
16119
+ assertParamExists('getDomainRenewalInformationV1', 'domain', domain)
16120
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/renewal`
16121
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16122
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16123
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16124
+ let baseOptions;
16125
+ if (configuration) {
16126
+ baseOptions = configuration.baseOptions;
16127
+ }
16128
+
16129
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16130
+ const localVarHeaderParameter = {} as any;
16131
+ const localVarQueryParameter = {} as any;
16132
+
16133
+ // authentication apiToken required
16134
+ // http bearer authentication required
16135
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16136
+
16137
+
16138
+
16139
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16140
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16141
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16142
+
16143
+ return {
16144
+ url: toPathString(localVarUrlObj),
16145
+ options: localVarRequestOptions,
16146
+ };
16147
+ },
16148
+ /**
16149
+ * 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.
16150
+ * @summary Purchase new domain
16151
+ * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
16152
+ * @param {*} [options] Override http request option.
16153
+ * @throws {RequiredError}
16154
+ */
16155
+ purchaseNewDomainV1: async (domainsV1PortfolioPurchaseRequest: DomainsV1PortfolioPurchaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16156
+ // verify required parameter 'domainsV1PortfolioPurchaseRequest' is not null or undefined
16157
+ assertParamExists('purchaseNewDomainV1', 'domainsV1PortfolioPurchaseRequest', domainsV1PortfolioPurchaseRequest)
16158
+ const localVarPath = `/api/domains/v1/portfolio`;
16159
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16160
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16161
+ let baseOptions;
16162
+ if (configuration) {
16163
+ baseOptions = configuration.baseOptions;
16164
+ }
16165
+
16166
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16167
+ const localVarHeaderParameter = {} as any;
16168
+ const localVarQueryParameter = {} as any;
16169
+
16170
+ // authentication apiToken required
16171
+ // http bearer authentication required
16172
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16173
+
16174
+
16175
+
16176
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16177
+
16178
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16179
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16180
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16181
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioPurchaseRequest, localVarRequestOptions, configuration)
16182
+
16183
+ return {
16184
+ url: toPathString(localVarUrlObj),
16185
+ options: localVarRequestOptions,
16186
+ };
16187
+ },
16188
+ /**
16189
+ * 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.
16190
+ * @summary Update domain nameservers
16191
+ * @param {string} domain Domain name
16192
+ * @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
16193
+ * @param {*} [options] Override http request option.
16194
+ * @throws {RequiredError}
16195
+ */
16196
+ updateDomainNameserversV1: async (domain: string, domainsV1PortfolioUpdateNameserversRequest: DomainsV1PortfolioUpdateNameserversRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16197
+ // verify required parameter 'domain' is not null or undefined
16198
+ assertParamExists('updateDomainNameserversV1', 'domain', domain)
16199
+ // verify required parameter 'domainsV1PortfolioUpdateNameserversRequest' is not null or undefined
16200
+ assertParamExists('updateDomainNameserversV1', 'domainsV1PortfolioUpdateNameserversRequest', domainsV1PortfolioUpdateNameserversRequest)
16201
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/nameservers`
16202
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16203
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16204
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16205
+ let baseOptions;
16206
+ if (configuration) {
16207
+ baseOptions = configuration.baseOptions;
16208
+ }
16209
+
16210
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
16211
+ const localVarHeaderParameter = {} as any;
16212
+ const localVarQueryParameter = {} as any;
16213
+
16214
+ // authentication apiToken required
16215
+ // http bearer authentication required
15399
16216
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
15400
16217
 
15401
16218
 
@@ -15967,6 +16784,84 @@ export class DomainsTransferApi extends BaseAPI {
15967
16784
  */
15968
16785
  export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Configuration) {
15969
16786
  return {
16787
+ /**
16788
+ * 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.
16789
+ * @summary Cancel pending IRTP verification
16790
+ * @param {string} domain Domain name
16791
+ * @param {*} [options] Override http request option.
16792
+ * @throws {RequiredError}
16793
+ */
16794
+ cancelPendingIRTPVerificationV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16795
+ // verify required parameter 'domain' is not null or undefined
16796
+ assertParamExists('cancelPendingIRTPVerificationV1', 'domain', domain)
16797
+ const localVarPath = `/api/domains/v1/irtp/{domain}`
16798
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16799
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16800
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16801
+ let baseOptions;
16802
+ if (configuration) {
16803
+ baseOptions = configuration.baseOptions;
16804
+ }
16805
+
16806
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
16807
+ const localVarHeaderParameter = {} as any;
16808
+ const localVarQueryParameter = {} as any;
16809
+
16810
+ // authentication apiToken required
16811
+ // http bearer authentication required
16812
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16813
+
16814
+
16815
+
16816
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16817
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16818
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16819
+
16820
+ return {
16821
+ url: toPathString(localVarUrlObj),
16822
+ options: localVarRequestOptions,
16823
+ };
16824
+ },
16825
+ /**
16826
+ * 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.
16827
+ * @summary Change WHOIS profile for domain
16828
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
16829
+ * @param {*} [options] Override http request option.
16830
+ * @throws {RequiredError}
16831
+ */
16832
+ changeWHOISProfileForDomainV1: async (domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16833
+ // verify required parameter 'domainsV1WHOISChangeUpdateRequest' is not null or undefined
16834
+ assertParamExists('changeWHOISProfileForDomainV1', 'domainsV1WHOISChangeUpdateRequest', domainsV1WHOISChangeUpdateRequest)
16835
+ const localVarPath = `/api/domains/v1/whois/change`;
16836
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16837
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16838
+ let baseOptions;
16839
+ if (configuration) {
16840
+ baseOptions = configuration.baseOptions;
16841
+ }
16842
+
16843
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
16844
+ const localVarHeaderParameter = {} as any;
16845
+ const localVarQueryParameter = {} as any;
16846
+
16847
+ // authentication apiToken required
16848
+ // http bearer authentication required
16849
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16850
+
16851
+
16852
+
16853
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16854
+
16855
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16856
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16857
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16858
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1WHOISChangeUpdateRequest, localVarRequestOptions, configuration)
16859
+
16860
+ return {
16861
+ url: toPathString(localVarUrlObj),
16862
+ options: localVarRequestOptions,
16863
+ };
16864
+ },
15970
16865
  /**
15971
16866
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
15972
16867
  * @summary Create WHOIS profile
@@ -16036,6 +16931,44 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Config
16036
16931
 
16037
16932
 
16038
16933
 
16934
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16935
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16936
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16937
+
16938
+ return {
16939
+ url: toPathString(localVarUrlObj),
16940
+ options: localVarRequestOptions,
16941
+ };
16942
+ },
16943
+ /**
16944
+ * 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.
16945
+ * @summary Get pending IRTP verification
16946
+ * @param {string} domain Domain name
16947
+ * @param {*} [options] Override http request option.
16948
+ * @throws {RequiredError}
16949
+ */
16950
+ getPendingIRTPVerificationV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16951
+ // verify required parameter 'domain' is not null or undefined
16952
+ assertParamExists('getPendingIRTPVerificationV1', 'domain', domain)
16953
+ const localVarPath = `/api/domains/v1/irtp/{domain}`
16954
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16955
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16956
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16957
+ let baseOptions;
16958
+ if (configuration) {
16959
+ baseOptions = configuration.baseOptions;
16960
+ }
16961
+
16962
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16963
+ const localVarHeaderParameter = {} as any;
16964
+ const localVarQueryParameter = {} as any;
16965
+
16966
+ // authentication apiToken required
16967
+ // http bearer authentication required
16968
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16969
+
16970
+
16971
+
16039
16972
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16040
16973
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16041
16974
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -16179,7 +17112,7 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Config
16179
17112
  baseOptions = configuration.baseOptions;
16180
17113
  }
16181
17114
 
16182
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
17115
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
16183
17116
  const localVarHeaderParameter = {} as any;
16184
17117
  const localVarQueryParameter = {} as any;
16185
17118
 
@@ -16246,6 +17179,30 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Config
16246
17179
  export const DomainsWHOISApiFp = function(configuration?: Configuration) {
16247
17180
  const localVarAxiosParamCreator = DomainsWHOISApiAxiosParamCreator(configuration)
16248
17181
  return {
17182
+ /**
17183
+ * 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.
17184
+ * @summary Cancel pending IRTP verification
17185
+ * @param {string} domain Domain name
17186
+ * @param {*} [options] Override http request option.
17187
+ * @throws {RequiredError}
17188
+ */
17189
+ async cancelPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
17190
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPendingIRTPVerificationV1(domain, options);
17191
+ const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.cancelPendingIRTPVerificationV1']?.[0]?.url;
17192
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17193
+ },
17194
+ /**
17195
+ * 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.
17196
+ * @summary Change WHOIS profile for domain
17197
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
17198
+ * @param {*} [options] Override http request option.
17199
+ * @throws {RequiredError}
17200
+ */
17201
+ async changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
17202
+ const localVarAxiosArgs = await localVarAxiosParamCreator.changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options);
17203
+ const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.changeWHOISProfileForDomainV1']?.[0]?.url;
17204
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17205
+ },
16249
17206
  /**
16250
17207
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
16251
17208
  * @summary Create WHOIS profile
@@ -16270,6 +17227,18 @@ export const DomainsWHOISApiFp = function(configuration?: Configuration) {
16270
17227
  const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.deleteWHOISProfileV1']?.[0]?.url;
16271
17228
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16272
17229
  },
17230
+ /**
17231
+ * 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.
17232
+ * @summary Get pending IRTP verification
17233
+ * @param {string} domain Domain name
17234
+ * @param {*} [options] Override http request option.
17235
+ * @throws {RequiredError}
17236
+ */
17237
+ async getPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1IRTPVerificationResource>> {
17238
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPendingIRTPVerificationV1(domain, options);
17239
+ const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.getPendingIRTPVerificationV1']?.[0]?.url;
17240
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17241
+ },
16273
17242
  /**
16274
17243
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
16275
17244
  * @summary Get WHOIS profile list
@@ -16340,6 +17309,26 @@ export const DomainsWHOISApiFp = function(configuration?: Configuration) {
16340
17309
  export const DomainsWHOISApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
16341
17310
  const localVarFp = DomainsWHOISApiFp(configuration)
16342
17311
  return {
17312
+ /**
17313
+ * 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.
17314
+ * @summary Cancel pending IRTP verification
17315
+ * @param {string} domain Domain name
17316
+ * @param {*} [options] Override http request option.
17317
+ * @throws {RequiredError}
17318
+ */
17319
+ cancelPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
17320
+ return localVarFp.cancelPendingIRTPVerificationV1(domain, options).then((request) => request(axios, basePath));
17321
+ },
17322
+ /**
17323
+ * 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.
17324
+ * @summary Change WHOIS profile for domain
17325
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
17326
+ * @param {*} [options] Override http request option.
17327
+ * @throws {RequiredError}
17328
+ */
17329
+ changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
17330
+ return localVarFp.changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options).then((request) => request(axios, basePath));
17331
+ },
16343
17332
  /**
16344
17333
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
16345
17334
  * @summary Create WHOIS profile
@@ -16360,6 +17349,16 @@ export const DomainsWHOISApiFactory = function (configuration?: Configuration, b
16360
17349
  deleteWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
16361
17350
  return localVarFp.deleteWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
16362
17351
  },
17352
+ /**
17353
+ * 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.
17354
+ * @summary Get pending IRTP verification
17355
+ * @param {string} domain Domain name
17356
+ * @param {*} [options] Override http request option.
17357
+ * @throws {RequiredError}
17358
+ */
17359
+ getPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1IRTPVerificationResource> {
17360
+ return localVarFp.getPendingIRTPVerificationV1(domain, options).then((request) => request(axios, basePath));
17361
+ },
16363
17362
  /**
16364
17363
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
16365
17364
  * @summary Get WHOIS profile list
@@ -16420,6 +17419,30 @@ export const DomainsWHOISApiFactory = function (configuration?: Configuration, b
16420
17419
  * @extends {BaseAPI}
16421
17420
  */
16422
17421
  export class DomainsWHOISApi extends BaseAPI {
17422
+ /**
17423
+ * 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.
17424
+ * @summary Cancel pending IRTP verification
17425
+ * @param {string} domain Domain name
17426
+ * @param {*} [options] Override http request option.
17427
+ * @throws {RequiredError}
17428
+ * @memberof DomainsWHOISApi
17429
+ */
17430
+ public cancelPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig) {
17431
+ return DomainsWHOISApiFp(this.configuration).cancelPendingIRTPVerificationV1(domain, options).then((request) => request(this.axios, this.basePath));
17432
+ }
17433
+
17434
+ /**
17435
+ * 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.
17436
+ * @summary Change WHOIS profile for domain
17437
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
17438
+ * @param {*} [options] Override http request option.
17439
+ * @throws {RequiredError}
17440
+ * @memberof DomainsWHOISApi
17441
+ */
17442
+ public changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig) {
17443
+ return DomainsWHOISApiFp(this.configuration).changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options).then((request) => request(this.axios, this.basePath));
17444
+ }
17445
+
16423
17446
  /**
16424
17447
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
16425
17448
  * @summary Create WHOIS profile
@@ -16444,6 +17467,18 @@ export class DomainsWHOISApi extends BaseAPI {
16444
17467
  return DomainsWHOISApiFp(this.configuration).deleteWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
16445
17468
  }
16446
17469
 
17470
+ /**
17471
+ * 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.
17472
+ * @summary Get pending IRTP verification
17473
+ * @param {string} domain Domain name
17474
+ * @param {*} [options] Override http request option.
17475
+ * @throws {RequiredError}
17476
+ * @memberof DomainsWHOISApi
17477
+ */
17478
+ public getPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig) {
17479
+ return DomainsWHOISApiFp(this.configuration).getPendingIRTPVerificationV1(domain, options).then((request) => request(this.axios, this.basePath));
17480
+ }
17481
+
16447
17482
  /**
16448
17483
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
16449
17484
  * @summary Get WHOIS profile list