hostinger-api-sdk 1.24.0 → 1.26.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.
Files changed (39) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1052 -85
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +578 -32
  7. package/dist/api.js +753 -9
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +578 -32
  15. package/dist/esm/api.js +741 -1
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/DomainsMoveApi.md +438 -0
  27. package/docs/DomainsPortfolioApi.md +56 -0
  28. package/docs/DomainsTransferApi.md +56 -0
  29. package/docs/DomainsV1MoveIncomingUpdateRequest.md +20 -0
  30. package/docs/DomainsV1MoveIncomingUpdateRequestDomainContacts.md +27 -0
  31. package/docs/DomainsV1MoveMoveResource.md +26 -0
  32. package/docs/DomainsV1MoveOutgoingStoreRequest.md +20 -0
  33. package/docs/DomainsV1PortfolioClaimRequest.md +24 -0
  34. package/docs/{DomainsV1PortfolioPurchaseRequestDomainContacts.md → DomainsV1PortfolioClaimRequestDomainContacts.md} +3 -3
  35. package/docs/DomainsV1PortfolioClaimResource.md +24 -0
  36. package/docs/DomainsV1PortfolioPurchaseRequest.md +1 -1
  37. package/docs/DomainsV1TransferClaimRequest.md +26 -0
  38. package/index.ts +1 -1
  39. package/package.json +1 -1
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.25.0
6
+ * API Version: 1.27.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
@@ -2800,6 +2800,103 @@ export const DomainsV1IRTPVerificationResourceStatusEnum = {
2800
2800
 
2801
2801
  export type DomainsV1IRTPVerificationResourceStatusEnum = typeof DomainsV1IRTPVerificationResourceStatusEnum[keyof typeof DomainsV1IRTPVerificationResourceStatusEnum];
2802
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
+ }
2803
2900
  /**
2804
2901
  *
2805
2902
  * @export
@@ -2816,77 +2913,141 @@ export interface DomainsV1PortfolioAuthCodeAuthCodeResource {
2816
2913
  /**
2817
2914
  *
2818
2915
  * @export
2819
- * @interface DomainsV1PortfolioPurchaseRequest
2916
+ * @interface DomainsV1PortfolioClaimRequest
2820
2917
  */
2821
- export interface DomainsV1PortfolioPurchaseRequest {
2918
+ export interface DomainsV1PortfolioClaimRequest {
2822
2919
  /**
2823
2920
  * Domain name
2824
2921
  * @type {string}
2825
- * @memberof DomainsV1PortfolioPurchaseRequest
2922
+ * @memberof DomainsV1PortfolioClaimRequest
2826
2923
  */
2827
2924
  'domain': string;
2828
- /**
2829
- * Catalog price item ID
2830
- * @type {string}
2831
- * @memberof DomainsV1PortfolioPurchaseRequest
2832
- */
2833
- 'item_id': string;
2834
- /**
2835
- * Payment method ID, default will be used if not provided
2836
- * @type {number}
2837
- * @memberof DomainsV1PortfolioPurchaseRequest
2838
- */
2839
- 'payment_method_id': number;
2840
2925
  /**
2841
2926
  *
2842
- * @type {DomainsV1PortfolioPurchaseRequestDomainContacts}
2843
- * @memberof DomainsV1PortfolioPurchaseRequest
2927
+ * @type {DomainsV1PortfolioClaimRequestDomainContacts}
2928
+ * @memberof DomainsV1PortfolioClaimRequest
2844
2929
  */
2845
- 'domain_contacts': DomainsV1PortfolioPurchaseRequestDomainContacts;
2930
+ 'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
2846
2931
  /**
2847
2932
  * Additional registration data, possible values depends on TLD
2848
2933
  * @type {object}
2849
- * @memberof DomainsV1PortfolioPurchaseRequest
2934
+ * @memberof DomainsV1PortfolioClaimRequest
2850
2935
  */
2851
2936
  'additional_details': object;
2852
- /**
2853
- * Discount coupon codes
2854
- * @type {Array<any>}
2855
- * @memberof DomainsV1PortfolioPurchaseRequest
2856
- */
2857
- 'coupons': Array<any>;
2858
2937
  }
2859
2938
  /**
2860
2939
  * Domain contact information
2861
2940
  * @export
2862
- * @interface DomainsV1PortfolioPurchaseRequestDomainContacts
2941
+ * @interface DomainsV1PortfolioClaimRequestDomainContacts
2863
2942
  */
2864
- export interface DomainsV1PortfolioPurchaseRequestDomainContacts {
2943
+ export interface DomainsV1PortfolioClaimRequestDomainContacts {
2865
2944
  /**
2866
2945
  * Owner contact WHOIS record ID
2867
2946
  * @type {number}
2868
- * @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
2947
+ * @memberof DomainsV1PortfolioClaimRequestDomainContacts
2869
2948
  */
2870
2949
  'owner_id': number;
2871
2950
  /**
2872
2951
  * Administrative contact WHOIS record ID
2873
2952
  * @type {number}
2874
- * @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
2953
+ * @memberof DomainsV1PortfolioClaimRequestDomainContacts
2875
2954
  */
2876
2955
  'admin_id': number;
2877
2956
  /**
2878
2957
  * Billing contact WHOIS record ID
2879
2958
  * @type {number}
2880
- * @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
2959
+ * @memberof DomainsV1PortfolioClaimRequestDomainContacts
2881
2960
  */
2882
2961
  'billing_id': number;
2883
2962
  /**
2884
2963
  * Technical contact WHOIS record ID
2885
2964
  * @type {number}
2886
- * @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
2965
+ * @memberof DomainsV1PortfolioClaimRequestDomainContacts
2887
2966
  */
2888
2967
  'tech_id': number;
2889
2968
  }
2969
+ /**
2970
+ *
2971
+ * @export
2972
+ * @interface DomainsV1PortfolioClaimResource
2973
+ */
2974
+ export interface DomainsV1PortfolioClaimResource {
2975
+ /**
2976
+ * Domain name
2977
+ * @type {string}
2978
+ * @memberof DomainsV1PortfolioClaimResource
2979
+ */
2980
+ 'domain': string | null;
2981
+ /**
2982
+ * Domain status
2983
+ * @type {string}
2984
+ * @memberof DomainsV1PortfolioClaimResource
2985
+ */
2986
+ 'status': DomainsV1PortfolioClaimResourceStatusEnum | null;
2987
+ /**
2988
+ *
2989
+ * @type {string}
2990
+ * @memberof DomainsV1PortfolioClaimResource
2991
+ */
2992
+ 'created_at': string | null;
2993
+ }
2994
+
2995
+ export const DomainsV1PortfolioClaimResourceStatusEnum = {
2996
+ Active: 'active',
2997
+ PendingSetup: 'pending_setup',
2998
+ Expired: 'expired',
2999
+ Requested: 'requested',
3000
+ PendingVerification: 'pending_verification',
3001
+ Deleted: 'deleted',
3002
+ Suspended: 'suspended',
3003
+ Failed: 'failed'
3004
+ } as const;
3005
+
3006
+ export type DomainsV1PortfolioClaimResourceStatusEnum = typeof DomainsV1PortfolioClaimResourceStatusEnum[keyof typeof DomainsV1PortfolioClaimResourceStatusEnum];
3007
+
3008
+ /**
3009
+ *
3010
+ * @export
3011
+ * @interface DomainsV1PortfolioPurchaseRequest
3012
+ */
3013
+ export interface DomainsV1PortfolioPurchaseRequest {
3014
+ /**
3015
+ * Domain name
3016
+ * @type {string}
3017
+ * @memberof DomainsV1PortfolioPurchaseRequest
3018
+ */
3019
+ 'domain': string;
3020
+ /**
3021
+ * Catalog price item ID
3022
+ * @type {string}
3023
+ * @memberof DomainsV1PortfolioPurchaseRequest
3024
+ */
3025
+ 'item_id': string;
3026
+ /**
3027
+ * Payment method ID, default will be used if not provided
3028
+ * @type {number}
3029
+ * @memberof DomainsV1PortfolioPurchaseRequest
3030
+ */
3031
+ 'payment_method_id': number;
3032
+ /**
3033
+ *
3034
+ * @type {DomainsV1PortfolioClaimRequestDomainContacts}
3035
+ * @memberof DomainsV1PortfolioPurchaseRequest
3036
+ */
3037
+ 'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
3038
+ /**
3039
+ * Additional registration data, possible values depends on TLD
3040
+ * @type {object}
3041
+ * @memberof DomainsV1PortfolioPurchaseRequest
3042
+ */
3043
+ 'additional_details': object;
3044
+ /**
3045
+ * Discount coupon codes
3046
+ * @type {Array<any>}
3047
+ * @memberof DomainsV1PortfolioPurchaseRequest
3048
+ */
3049
+ 'coupons': Array<any>;
3050
+ }
2890
3051
  /**
2891
3052
  *
2892
3053
  * @export
@@ -2943,6 +3104,37 @@ export interface DomainsV1PortfolioUpdateNameserversRequest {
2943
3104
  */
2944
3105
  'ns4': string;
2945
3106
  }
3107
+ /**
3108
+ *
3109
+ * @export
3110
+ * @interface DomainsV1TransferClaimRequest
3111
+ */
3112
+ export interface DomainsV1TransferClaimRequest {
3113
+ /**
3114
+ * Domain name
3115
+ * @type {string}
3116
+ * @memberof DomainsV1TransferClaimRequest
3117
+ */
3118
+ 'domain': string;
3119
+ /**
3120
+ * Authorization code from the current registrar
3121
+ * @type {string}
3122
+ * @memberof DomainsV1TransferClaimRequest
3123
+ */
3124
+ 'auth_code': string;
3125
+ /**
3126
+ *
3127
+ * @type {DomainsV1PortfolioClaimRequestDomainContacts}
3128
+ * @memberof DomainsV1TransferClaimRequest
3129
+ */
3130
+ 'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
3131
+ /**
3132
+ * Keep the existing nameservers of the domain
3133
+ * @type {boolean}
3134
+ * @memberof DomainsV1TransferClaimRequest
3135
+ */
3136
+ 'should_keep_ns': boolean;
3137
+ }
2946
3138
  /**
2947
3139
  *
2948
3140
  * @export
@@ -15116,22 +15308,25 @@ export class DomainsForwardingApi extends BaseAPI {
15116
15308
 
15117
15309
 
15118
15310
  /**
15119
- * DomainsPortfolioApi - axios parameter creator
15311
+ * DomainsMoveApi - axios parameter creator
15120
15312
  * @export
15121
15313
  */
15122
- export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Configuration) {
15314
+ export const DomainsMoveApiAxiosParamCreator = function (configuration?: Configuration) {
15123
15315
  return {
15124
15316
  /**
15125
- * 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.
15126
- * @summary Disable domain lock
15317
+ * 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.
15318
+ * @summary Accept incoming domain move
15127
15319
  * @param {string} domain Domain name
15320
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
15128
15321
  * @param {*} [options] Override http request option.
15129
15322
  * @throws {RequiredError}
15130
15323
  */
15131
- disableDomainLockV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15324
+ acceptIncomingDomainMoveV1: async (domain: string, domainsV1MoveIncomingUpdateRequest: DomainsV1MoveIncomingUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15132
15325
  // verify required parameter 'domain' is not null or undefined
15133
- assertParamExists('disableDomainLockV1', 'domain', domain)
15134
- const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
15326
+ assertParamExists('acceptIncomingDomainMoveV1', 'domain', domain)
15327
+ // verify required parameter 'domainsV1MoveIncomingUpdateRequest' is not null or undefined
15328
+ assertParamExists('acceptIncomingDomainMoveV1', 'domainsV1MoveIncomingUpdateRequest', domainsV1MoveIncomingUpdateRequest)
15329
+ const localVarPath = `/api/domains/v1/move/incoming/{domain}`
15135
15330
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15136
15331
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15137
15332
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15140,7 +15335,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15140
15335
  baseOptions = configuration.baseOptions;
15141
15336
  }
15142
15337
 
15143
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
15338
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
15144
15339
  const localVarHeaderParameter = {} as any;
15145
15340
  const localVarQueryParameter = {} as any;
15146
15341
 
@@ -15150,9 +15345,12 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15150
15345
 
15151
15346
 
15152
15347
 
15348
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15349
+
15153
15350
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15154
15351
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15155
15352
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15353
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1MoveIncomingUpdateRequest, localVarRequestOptions, configuration)
15156
15354
 
15157
15355
  return {
15158
15356
  url: toPathString(localVarUrlObj),
@@ -15160,16 +15358,16 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15160
15358
  };
15161
15359
  },
15162
15360
  /**
15163
- * 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.
15164
- * @summary Disable privacy protection
15361
+ * 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.
15362
+ * @summary Cancel outgoing domain move
15165
15363
  * @param {string} domain Domain name
15166
15364
  * @param {*} [options] Override http request option.
15167
15365
  * @throws {RequiredError}
15168
15366
  */
15169
- disablePrivacyProtectionV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15367
+ cancelOutgoingDomainMoveV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15170
15368
  // verify required parameter 'domain' is not null or undefined
15171
- assertParamExists('disablePrivacyProtectionV1', 'domain', domain)
15172
- const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
15369
+ assertParamExists('cancelOutgoingDomainMoveV1', 'domain', domain)
15370
+ const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
15173
15371
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15174
15372
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15175
15373
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15198,17 +15396,13 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15198
15396
  };
15199
15397
  },
15200
15398
  /**
15201
- * 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.
15202
- * @summary Enable domain lock
15203
- * @param {string} domain Domain name
15399
+ * 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.
15400
+ * @summary Get incoming domain move list
15204
15401
  * @param {*} [options] Override http request option.
15205
15402
  * @throws {RequiredError}
15206
15403
  */
15207
- enableDomainLockV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15208
- // verify required parameter 'domain' is not null or undefined
15209
- assertParamExists('enableDomainLockV1', 'domain', domain)
15210
- const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
15211
- .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15404
+ getIncomingDomainMoveListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15405
+ const localVarPath = `/api/domains/v1/move/incoming`;
15212
15406
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15213
15407
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15214
15408
  let baseOptions;
@@ -15216,7 +15410,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15216
15410
  baseOptions = configuration.baseOptions;
15217
15411
  }
15218
15412
 
15219
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
15413
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15220
15414
  const localVarHeaderParameter = {} as any;
15221
15415
  const localVarQueryParameter = {} as any;
15222
15416
 
@@ -15236,16 +15430,17 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15236
15430
  };
15237
15431
  },
15238
15432
  /**
15239
- * 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.
15240
- * @summary Enable privacy protection
15433
+ * 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.
15434
+ * @summary Get incoming domain move
15241
15435
  * @param {string} domain Domain name
15436
+ * @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.
15242
15437
  * @param {*} [options] Override http request option.
15243
15438
  * @throws {RequiredError}
15244
15439
  */
15245
- enablePrivacyProtectionV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15440
+ getIncomingDomainMoveV1: async (domain: string, forceSync?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15246
15441
  // verify required parameter 'domain' is not null or undefined
15247
- assertParamExists('enablePrivacyProtectionV1', 'domain', domain)
15248
- const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
15442
+ assertParamExists('getIncomingDomainMoveV1', 'domain', domain)
15443
+ const localVarPath = `/api/domains/v1/move/incoming/{domain}`
15249
15444
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15250
15445
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15251
15446
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15254,7 +15449,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15254
15449
  baseOptions = configuration.baseOptions;
15255
15450
  }
15256
15451
 
15257
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
15452
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15258
15453
  const localVarHeaderParameter = {} as any;
15259
15454
  const localVarQueryParameter = {} as any;
15260
15455
 
@@ -15262,6 +15457,10 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15262
15457
  // http bearer authentication required
15263
15458
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
15264
15459
 
15460
+ if (forceSync !== undefined) {
15461
+ localVarQueryParameter['force_sync'] = forceSync;
15462
+ }
15463
+
15265
15464
 
15266
15465
 
15267
15466
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -15274,17 +15473,13 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15274
15473
  };
15275
15474
  },
15276
15475
  /**
15277
- * 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.
15278
- * @summary Get domain authorization code
15279
- * @param {string} domain Domain name
15476
+ * 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.
15477
+ * @summary Get outgoing domain move list
15280
15478
  * @param {*} [options] Override http request option.
15281
15479
  * @throws {RequiredError}
15282
15480
  */
15283
- getDomainAuthorizationCodeV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15284
- // verify required parameter 'domain' is not null or undefined
15285
- assertParamExists('getDomainAuthorizationCodeV1', 'domain', domain)
15286
- const localVarPath = `/api/domains/v1/portfolio/{domain}/auth-code`
15287
- .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15481
+ getOutgoingDomainMoveListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15482
+ const localVarPath = `/api/domains/v1/move/outgoing`;
15288
15483
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15289
15484
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15290
15485
  let baseOptions;
@@ -15312,16 +15507,16 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15312
15507
  };
15313
15508
  },
15314
15509
  /**
15315
- * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
15316
- * @summary Get domain details
15510
+ * 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.
15511
+ * @summary Get outgoing domain move
15317
15512
  * @param {string} domain Domain name
15318
15513
  * @param {*} [options] Override http request option.
15319
15514
  * @throws {RequiredError}
15320
15515
  */
15321
- getDomainDetailsV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15516
+ getOutgoingDomainMoveV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15322
15517
  // verify required parameter 'domain' is not null or undefined
15323
- assertParamExists('getDomainDetailsV1', 'domain', domain)
15324
- const localVarPath = `/api/domains/v1/portfolio/{domain}`
15518
+ assertParamExists('getOutgoingDomainMoveV1', 'domain', domain)
15519
+ const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
15325
15520
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15326
15521
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15327
15522
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15350,13 +15545,17 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15350
15545
  };
15351
15546
  },
15352
15547
  /**
15353
- * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
15354
- * @summary Get domain list
15548
+ * 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.
15549
+ * @summary Reject incoming domain move
15550
+ * @param {string} domain Domain name
15355
15551
  * @param {*} [options] Override http request option.
15356
15552
  * @throws {RequiredError}
15357
15553
  */
15358
- getDomainListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15359
- const localVarPath = `/api/domains/v1/portfolio`;
15554
+ rejectIncomingDomainMoveV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15555
+ // verify required parameter 'domain' is not null or undefined
15556
+ assertParamExists('rejectIncomingDomainMoveV1', 'domain', domain)
15557
+ const localVarPath = `/api/domains/v1/move/incoming/{domain}`
15558
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15360
15559
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15361
15560
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15362
15561
  let baseOptions;
@@ -15364,7 +15563,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15364
15563
  baseOptions = configuration.baseOptions;
15365
15564
  }
15366
15565
 
15367
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15566
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
15368
15567
  const localVarHeaderParameter = {} as any;
15369
15568
  const localVarQueryParameter = {} as any;
15370
15569
 
@@ -15384,16 +15583,19 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15384
15583
  };
15385
15584
  },
15386
15585
  /**
15387
- * 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.
15388
- * @summary Get domain renewal information
15586
+ * 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.
15587
+ * @summary Start outgoing domain move
15389
15588
  * @param {string} domain Domain name
15589
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
15390
15590
  * @param {*} [options] Override http request option.
15391
15591
  * @throws {RequiredError}
15392
15592
  */
15393
- getDomainRenewalInformationV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15593
+ startOutgoingDomainMoveV1: async (domain: string, domainsV1MoveOutgoingStoreRequest: DomainsV1MoveOutgoingStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15394
15594
  // verify required parameter 'domain' is not null or undefined
15395
- assertParamExists('getDomainRenewalInformationV1', 'domain', domain)
15396
- const localVarPath = `/api/domains/v1/portfolio/{domain}/renewal`
15595
+ assertParamExists('startOutgoingDomainMoveV1', 'domain', domain)
15596
+ // verify required parameter 'domainsV1MoveOutgoingStoreRequest' is not null or undefined
15597
+ assertParamExists('startOutgoingDomainMoveV1', 'domainsV1MoveOutgoingStoreRequest', domainsV1MoveOutgoingStoreRequest)
15598
+ const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
15397
15599
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15398
15600
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15399
15601
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15402,7 +15604,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15402
15604
  baseOptions = configuration.baseOptions;
15403
15605
  }
15404
15606
 
15405
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15607
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15406
15608
  const localVarHeaderParameter = {} as any;
15407
15609
  const localVarQueryParameter = {} as any;
15408
15610
 
@@ -15412,17 +15614,674 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15412
15614
 
15413
15615
 
15414
15616
 
15617
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15618
+
15415
15619
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15416
15620
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15417
15621
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15622
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1MoveOutgoingStoreRequest, localVarRequestOptions, configuration)
15418
15623
 
15419
15624
  return {
15420
15625
  url: toPathString(localVarUrlObj),
15421
15626
  options: localVarRequestOptions,
15422
15627
  };
15423
15628
  },
15629
+ }
15630
+ };
15631
+
15632
+ /**
15633
+ * DomainsMoveApi - functional programming interface
15634
+ * @export
15635
+ */
15636
+ export const DomainsMoveApiFp = function(configuration?: Configuration) {
15637
+ const localVarAxiosParamCreator = DomainsMoveApiAxiosParamCreator(configuration)
15638
+ return {
15424
15639
  /**
15425
- * 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.
15640
+ * 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.
15641
+ * @summary Accept incoming domain move
15642
+ * @param {string} domain Domain name
15643
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
15644
+ * @param {*} [options] Override http request option.
15645
+ * @throws {RequiredError}
15646
+ */
15647
+ async acceptIncomingDomainMoveV1(domain: string, domainsV1MoveIncomingUpdateRequest: DomainsV1MoveIncomingUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
15648
+ const localVarAxiosArgs = await localVarAxiosParamCreator.acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options);
15649
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.acceptIncomingDomainMoveV1']?.[0]?.url;
15650
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15651
+ },
15652
+ /**
15653
+ * 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.
15654
+ * @summary Cancel outgoing domain move
15655
+ * @param {string} domain Domain name
15656
+ * @param {*} [options] Override http request option.
15657
+ * @throws {RequiredError}
15658
+ */
15659
+ async cancelOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
15660
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelOutgoingDomainMoveV1(domain, options);
15661
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.cancelOutgoingDomainMoveV1']?.[0]?.url;
15662
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15663
+ },
15664
+ /**
15665
+ * 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.
15666
+ * @summary Get incoming domain move list
15667
+ * @param {*} [options] Override http request option.
15668
+ * @throws {RequiredError}
15669
+ */
15670
+ async getIncomingDomainMoveListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DomainsV1MoveMoveResource>>> {
15671
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getIncomingDomainMoveListV1(options);
15672
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.getIncomingDomainMoveListV1']?.[0]?.url;
15673
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15674
+ },
15675
+ /**
15676
+ * 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.
15677
+ * @summary Get incoming domain move
15678
+ * @param {string} domain Domain name
15679
+ * @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.
15680
+ * @param {*} [options] Override http request option.
15681
+ * @throws {RequiredError}
15682
+ */
15683
+ async getIncomingDomainMoveV1(domain: string, forceSync?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1MoveMoveResource>> {
15684
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getIncomingDomainMoveV1(domain, forceSync, options);
15685
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.getIncomingDomainMoveV1']?.[0]?.url;
15686
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15687
+ },
15688
+ /**
15689
+ * 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.
15690
+ * @summary Get outgoing domain move list
15691
+ * @param {*} [options] Override http request option.
15692
+ * @throws {RequiredError}
15693
+ */
15694
+ async getOutgoingDomainMoveListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DomainsV1MoveMoveResource>>> {
15695
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOutgoingDomainMoveListV1(options);
15696
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.getOutgoingDomainMoveListV1']?.[0]?.url;
15697
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15698
+ },
15699
+ /**
15700
+ * 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.
15701
+ * @summary Get outgoing domain move
15702
+ * @param {string} domain Domain name
15703
+ * @param {*} [options] Override http request option.
15704
+ * @throws {RequiredError}
15705
+ */
15706
+ async getOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1MoveMoveResource>> {
15707
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOutgoingDomainMoveV1(domain, options);
15708
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.getOutgoingDomainMoveV1']?.[0]?.url;
15709
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || 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
+ async rejectIncomingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
15719
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rejectIncomingDomainMoveV1(domain, options);
15720
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.rejectIncomingDomainMoveV1']?.[0]?.url;
15721
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15722
+ },
15723
+ /**
15724
+ * 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.
15725
+ * @summary Start outgoing domain move
15726
+ * @param {string} domain Domain name
15727
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
15728
+ * @param {*} [options] Override http request option.
15729
+ * @throws {RequiredError}
15730
+ */
15731
+ async startOutgoingDomainMoveV1(domain: string, domainsV1MoveOutgoingStoreRequest: DomainsV1MoveOutgoingStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
15732
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options);
15733
+ const localVarOperationServerBasePath = operationServerMap['DomainsMoveApi.startOutgoingDomainMoveV1']?.[0]?.url;
15734
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15735
+ },
15736
+ }
15737
+ };
15738
+
15739
+ /**
15740
+ * DomainsMoveApi - factory interface
15741
+ * @export
15742
+ */
15743
+ export const DomainsMoveApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
15744
+ const localVarFp = DomainsMoveApiFp(configuration)
15745
+ return {
15746
+ /**
15747
+ * 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.
15748
+ * @summary Accept incoming domain move
15749
+ * @param {string} domain Domain name
15750
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
15751
+ * @param {*} [options] Override http request option.
15752
+ * @throws {RequiredError}
15753
+ */
15754
+ acceptIncomingDomainMoveV1(domain: string, domainsV1MoveIncomingUpdateRequest: DomainsV1MoveIncomingUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
15755
+ return localVarFp.acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options).then((request) => request(axios, basePath));
15756
+ },
15757
+ /**
15758
+ * 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.
15759
+ * @summary Cancel outgoing domain move
15760
+ * @param {string} domain Domain name
15761
+ * @param {*} [options] Override http request option.
15762
+ * @throws {RequiredError}
15763
+ */
15764
+ cancelOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
15765
+ return localVarFp.cancelOutgoingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
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
+ */
15773
+ getIncomingDomainMoveListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<DomainsV1MoveMoveResource>> {
15774
+ return localVarFp.getIncomingDomainMoveListV1(options).then((request) => request(axios, basePath));
15775
+ },
15776
+ /**
15777
+ * 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.
15778
+ * @summary Get incoming domain move
15779
+ * @param {string} domain Domain name
15780
+ * @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.
15781
+ * @param {*} [options] Override http request option.
15782
+ * @throws {RequiredError}
15783
+ */
15784
+ getIncomingDomainMoveV1(domain: string, forceSync?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1MoveMoveResource> {
15785
+ return localVarFp.getIncomingDomainMoveV1(domain, forceSync, options).then((request) => request(axios, basePath));
15786
+ },
15787
+ /**
15788
+ * 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.
15789
+ * @summary Get outgoing domain move list
15790
+ * @param {*} [options] Override http request option.
15791
+ * @throws {RequiredError}
15792
+ */
15793
+ getOutgoingDomainMoveListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<DomainsV1MoveMoveResource>> {
15794
+ return localVarFp.getOutgoingDomainMoveListV1(options).then((request) => request(axios, basePath));
15795
+ },
15796
+ /**
15797
+ * 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.
15798
+ * @summary Get outgoing domain move
15799
+ * @param {string} domain Domain name
15800
+ * @param {*} [options] Override http request option.
15801
+ * @throws {RequiredError}
15802
+ */
15803
+ getOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1MoveMoveResource> {
15804
+ return localVarFp.getOutgoingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
15805
+ },
15806
+ /**
15807
+ * 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.
15808
+ * @summary Reject incoming domain move
15809
+ * @param {string} domain Domain name
15810
+ * @param {*} [options] Override http request option.
15811
+ * @throws {RequiredError}
15812
+ */
15813
+ rejectIncomingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
15814
+ return localVarFp.rejectIncomingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
15815
+ },
15816
+ /**
15817
+ * 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.
15818
+ * @summary Start outgoing domain move
15819
+ * @param {string} domain Domain name
15820
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
15821
+ * @param {*} [options] Override http request option.
15822
+ * @throws {RequiredError}
15823
+ */
15824
+ startOutgoingDomainMoveV1(domain: string, domainsV1MoveOutgoingStoreRequest: DomainsV1MoveOutgoingStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
15825
+ return localVarFp.startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options).then((request) => request(axios, basePath));
15826
+ },
15827
+ };
15828
+ };
15829
+
15830
+ /**
15831
+ * DomainsMoveApi - object-oriented interface
15832
+ * @export
15833
+ * @class DomainsMoveApi
15834
+ * @extends {BaseAPI}
15835
+ */
15836
+ export class DomainsMoveApi extends BaseAPI {
15837
+ /**
15838
+ * 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.
15839
+ * @summary Accept incoming domain move
15840
+ * @param {string} domain Domain name
15841
+ * @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
15842
+ * @param {*} [options] Override http request option.
15843
+ * @throws {RequiredError}
15844
+ * @memberof DomainsMoveApi
15845
+ */
15846
+ public acceptIncomingDomainMoveV1(domain: string, domainsV1MoveIncomingUpdateRequest: DomainsV1MoveIncomingUpdateRequest, options?: RawAxiosRequestConfig) {
15847
+ return DomainsMoveApiFp(this.configuration).acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options).then((request) => request(this.axios, this.basePath));
15848
+ }
15849
+
15850
+ /**
15851
+ * 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.
15852
+ * @summary Cancel outgoing domain move
15853
+ * @param {string} domain Domain name
15854
+ * @param {*} [options] Override http request option.
15855
+ * @throws {RequiredError}
15856
+ * @memberof DomainsMoveApi
15857
+ */
15858
+ public cancelOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig) {
15859
+ return DomainsMoveApiFp(this.configuration).cancelOutgoingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
15860
+ }
15861
+
15862
+ /**
15863
+ * 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.
15864
+ * @summary Get incoming domain move list
15865
+ * @param {*} [options] Override http request option.
15866
+ * @throws {RequiredError}
15867
+ * @memberof DomainsMoveApi
15868
+ */
15869
+ public getIncomingDomainMoveListV1(options?: RawAxiosRequestConfig) {
15870
+ return DomainsMoveApiFp(this.configuration).getIncomingDomainMoveListV1(options).then((request) => request(this.axios, this.basePath));
15871
+ }
15872
+
15873
+ /**
15874
+ * 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.
15875
+ * @summary Get incoming domain move
15876
+ * @param {string} domain Domain name
15877
+ * @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.
15878
+ * @param {*} [options] Override http request option.
15879
+ * @throws {RequiredError}
15880
+ * @memberof DomainsMoveApi
15881
+ */
15882
+ public getIncomingDomainMoveV1(domain: string, forceSync?: boolean, options?: RawAxiosRequestConfig) {
15883
+ return DomainsMoveApiFp(this.configuration).getIncomingDomainMoveV1(domain, forceSync, options).then((request) => request(this.axios, this.basePath));
15884
+ }
15885
+
15886
+ /**
15887
+ * 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.
15888
+ * @summary Get outgoing domain move list
15889
+ * @param {*} [options] Override http request option.
15890
+ * @throws {RequiredError}
15891
+ * @memberof DomainsMoveApi
15892
+ */
15893
+ public getOutgoingDomainMoveListV1(options?: RawAxiosRequestConfig) {
15894
+ return DomainsMoveApiFp(this.configuration).getOutgoingDomainMoveListV1(options).then((request) => request(this.axios, this.basePath));
15895
+ }
15896
+
15897
+ /**
15898
+ * 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.
15899
+ * @summary Get outgoing domain move
15900
+ * @param {string} domain Domain name
15901
+ * @param {*} [options] Override http request option.
15902
+ * @throws {RequiredError}
15903
+ * @memberof DomainsMoveApi
15904
+ */
15905
+ public getOutgoingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig) {
15906
+ return DomainsMoveApiFp(this.configuration).getOutgoingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
15907
+ }
15908
+
15909
+ /**
15910
+ * 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.
15911
+ * @summary Reject incoming domain move
15912
+ * @param {string} domain Domain name
15913
+ * @param {*} [options] Override http request option.
15914
+ * @throws {RequiredError}
15915
+ * @memberof DomainsMoveApi
15916
+ */
15917
+ public rejectIncomingDomainMoveV1(domain: string, options?: RawAxiosRequestConfig) {
15918
+ return DomainsMoveApiFp(this.configuration).rejectIncomingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
15919
+ }
15920
+
15921
+ /**
15922
+ * 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.
15923
+ * @summary Start outgoing domain move
15924
+ * @param {string} domain Domain name
15925
+ * @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
15926
+ * @param {*} [options] Override http request option.
15927
+ * @throws {RequiredError}
15928
+ * @memberof DomainsMoveApi
15929
+ */
15930
+ public startOutgoingDomainMoveV1(domain: string, domainsV1MoveOutgoingStoreRequest: DomainsV1MoveOutgoingStoreRequest, options?: RawAxiosRequestConfig) {
15931
+ return DomainsMoveApiFp(this.configuration).startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options).then((request) => request(this.axios, this.basePath));
15932
+ }
15933
+ }
15934
+
15935
+
15936
+
15937
+ /**
15938
+ * DomainsPortfolioApi - axios parameter creator
15939
+ * @export
15940
+ */
15941
+ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Configuration) {
15942
+ return {
15943
+ /**
15944
+ * Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. 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 claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
15945
+ * @summary Claim free domain
15946
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
15947
+ * @param {*} [options] Override http request option.
15948
+ * @throws {RequiredError}
15949
+ */
15950
+ claimFreeDomainV1: async (domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15951
+ // verify required parameter 'domainsV1PortfolioClaimRequest' is not null or undefined
15952
+ assertParamExists('claimFreeDomainV1', 'domainsV1PortfolioClaimRequest', domainsV1PortfolioClaimRequest)
15953
+ const localVarPath = `/api/domains/v1/portfolio/claim`;
15954
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15955
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15956
+ let baseOptions;
15957
+ if (configuration) {
15958
+ baseOptions = configuration.baseOptions;
15959
+ }
15960
+
15961
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15962
+ const localVarHeaderParameter = {} as any;
15963
+ const localVarQueryParameter = {} as any;
15964
+
15965
+ // authentication apiToken required
15966
+ // http bearer authentication required
15967
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15968
+
15969
+
15970
+
15971
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15972
+
15973
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15974
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15975
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15976
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioClaimRequest, localVarRequestOptions, configuration)
15977
+
15978
+ return {
15979
+ url: toPathString(localVarUrlObj),
15980
+ options: localVarRequestOptions,
15981
+ };
15982
+ },
15983
+ /**
15984
+ * 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.
15985
+ * @summary Disable domain lock
15986
+ * @param {string} domain Domain name
15987
+ * @param {*} [options] Override http request option.
15988
+ * @throws {RequiredError}
15989
+ */
15990
+ disableDomainLockV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15991
+ // verify required parameter 'domain' is not null or undefined
15992
+ assertParamExists('disableDomainLockV1', 'domain', domain)
15993
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
15994
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
15995
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15996
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15997
+ let baseOptions;
15998
+ if (configuration) {
15999
+ baseOptions = configuration.baseOptions;
16000
+ }
16001
+
16002
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
16003
+ const localVarHeaderParameter = {} as any;
16004
+ const localVarQueryParameter = {} as any;
16005
+
16006
+ // authentication apiToken required
16007
+ // http bearer authentication required
16008
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16009
+
16010
+
16011
+
16012
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16013
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16014
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16015
+
16016
+ return {
16017
+ url: toPathString(localVarUrlObj),
16018
+ options: localVarRequestOptions,
16019
+ };
16020
+ },
16021
+ /**
16022
+ * 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.
16023
+ * @summary Disable privacy protection
16024
+ * @param {string} domain Domain name
16025
+ * @param {*} [options] Override http request option.
16026
+ * @throws {RequiredError}
16027
+ */
16028
+ disablePrivacyProtectionV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16029
+ // verify required parameter 'domain' is not null or undefined
16030
+ assertParamExists('disablePrivacyProtectionV1', 'domain', domain)
16031
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
16032
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16033
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16034
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16035
+ let baseOptions;
16036
+ if (configuration) {
16037
+ baseOptions = configuration.baseOptions;
16038
+ }
16039
+
16040
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
16041
+ const localVarHeaderParameter = {} as any;
16042
+ const localVarQueryParameter = {} as any;
16043
+
16044
+ // authentication apiToken required
16045
+ // http bearer authentication required
16046
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16047
+
16048
+
16049
+
16050
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16051
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16052
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16053
+
16054
+ return {
16055
+ url: toPathString(localVarUrlObj),
16056
+ options: localVarRequestOptions,
16057
+ };
16058
+ },
16059
+ /**
16060
+ * 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.
16061
+ * @summary Enable domain lock
16062
+ * @param {string} domain Domain name
16063
+ * @param {*} [options] Override http request option.
16064
+ * @throws {RequiredError}
16065
+ */
16066
+ enableDomainLockV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16067
+ // verify required parameter 'domain' is not null or undefined
16068
+ assertParamExists('enableDomainLockV1', 'domain', domain)
16069
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
16070
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16071
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16072
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16073
+ let baseOptions;
16074
+ if (configuration) {
16075
+ baseOptions = configuration.baseOptions;
16076
+ }
16077
+
16078
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
16079
+ const localVarHeaderParameter = {} as any;
16080
+ const localVarQueryParameter = {} as any;
16081
+
16082
+ // authentication apiToken required
16083
+ // http bearer authentication required
16084
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16085
+
16086
+
16087
+
16088
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16089
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16090
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16091
+
16092
+ return {
16093
+ url: toPathString(localVarUrlObj),
16094
+ options: localVarRequestOptions,
16095
+ };
16096
+ },
16097
+ /**
16098
+ * 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.
16099
+ * @summary Enable privacy protection
16100
+ * @param {string} domain Domain name
16101
+ * @param {*} [options] Override http request option.
16102
+ * @throws {RequiredError}
16103
+ */
16104
+ enablePrivacyProtectionV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16105
+ // verify required parameter 'domain' is not null or undefined
16106
+ assertParamExists('enablePrivacyProtectionV1', 'domain', domain)
16107
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
16108
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16109
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16110
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16111
+ let baseOptions;
16112
+ if (configuration) {
16113
+ baseOptions = configuration.baseOptions;
16114
+ }
16115
+
16116
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
16117
+ const localVarHeaderParameter = {} as any;
16118
+ const localVarQueryParameter = {} as any;
16119
+
16120
+ // authentication apiToken required
16121
+ // http bearer authentication required
16122
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16123
+
16124
+
16125
+
16126
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16128
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16129
+
16130
+ return {
16131
+ url: toPathString(localVarUrlObj),
16132
+ options: localVarRequestOptions,
16133
+ };
16134
+ },
16135
+ /**
16136
+ * 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.
16137
+ * @summary Get domain authorization code
16138
+ * @param {string} domain Domain name
16139
+ * @param {*} [options] Override http request option.
16140
+ * @throws {RequiredError}
16141
+ */
16142
+ getDomainAuthorizationCodeV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16143
+ // verify required parameter 'domain' is not null or undefined
16144
+ assertParamExists('getDomainAuthorizationCodeV1', 'domain', domain)
16145
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/auth-code`
16146
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16147
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16148
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16149
+ let baseOptions;
16150
+ if (configuration) {
16151
+ baseOptions = configuration.baseOptions;
16152
+ }
16153
+
16154
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16155
+ const localVarHeaderParameter = {} as any;
16156
+ const localVarQueryParameter = {} as any;
16157
+
16158
+ // authentication apiToken required
16159
+ // http bearer authentication required
16160
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16161
+
16162
+
16163
+
16164
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16165
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16166
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16167
+
16168
+ return {
16169
+ url: toPathString(localVarUrlObj),
16170
+ options: localVarRequestOptions,
16171
+ };
16172
+ },
16173
+ /**
16174
+ * Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
16175
+ * @summary Get domain details
16176
+ * @param {string} domain Domain name
16177
+ * @param {*} [options] Override http request option.
16178
+ * @throws {RequiredError}
16179
+ */
16180
+ getDomainDetailsV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16181
+ // verify required parameter 'domain' is not null or undefined
16182
+ assertParamExists('getDomainDetailsV1', 'domain', domain)
16183
+ const localVarPath = `/api/domains/v1/portfolio/{domain}`
16184
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16185
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16186
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16187
+ let baseOptions;
16188
+ if (configuration) {
16189
+ baseOptions = configuration.baseOptions;
16190
+ }
16191
+
16192
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16193
+ const localVarHeaderParameter = {} as any;
16194
+ const localVarQueryParameter = {} as any;
16195
+
16196
+ // authentication apiToken required
16197
+ // http bearer authentication required
16198
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16199
+
16200
+
16201
+
16202
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16203
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16204
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16205
+
16206
+ return {
16207
+ url: toPathString(localVarUrlObj),
16208
+ options: localVarRequestOptions,
16209
+ };
16210
+ },
16211
+ /**
16212
+ * Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
16213
+ * @summary Get domain list
16214
+ * @param {*} [options] Override http request option.
16215
+ * @throws {RequiredError}
16216
+ */
16217
+ getDomainListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16218
+ const localVarPath = `/api/domains/v1/portfolio`;
16219
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16220
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16221
+ let baseOptions;
16222
+ if (configuration) {
16223
+ baseOptions = configuration.baseOptions;
16224
+ }
16225
+
16226
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16227
+ const localVarHeaderParameter = {} as any;
16228
+ const localVarQueryParameter = {} as any;
16229
+
16230
+ // authentication apiToken required
16231
+ // http bearer authentication required
16232
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16233
+
16234
+
16235
+
16236
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16237
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16238
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16239
+
16240
+ return {
16241
+ url: toPathString(localVarUrlObj),
16242
+ options: localVarRequestOptions,
16243
+ };
16244
+ },
16245
+ /**
16246
+ * 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.
16247
+ * @summary Get domain renewal information
16248
+ * @param {string} domain Domain name
16249
+ * @param {*} [options] Override http request option.
16250
+ * @throws {RequiredError}
16251
+ */
16252
+ getDomainRenewalInformationV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16253
+ // verify required parameter 'domain' is not null or undefined
16254
+ assertParamExists('getDomainRenewalInformationV1', 'domain', domain)
16255
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/renewal`
16256
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16257
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16258
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16259
+ let baseOptions;
16260
+ if (configuration) {
16261
+ baseOptions = configuration.baseOptions;
16262
+ }
16263
+
16264
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16265
+ const localVarHeaderParameter = {} as any;
16266
+ const localVarQueryParameter = {} as any;
16267
+
16268
+ // authentication apiToken required
16269
+ // http bearer authentication required
16270
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16271
+
16272
+
16273
+
16274
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16275
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16276
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16277
+
16278
+ return {
16279
+ url: toPathString(localVarUrlObj),
16280
+ options: localVarRequestOptions,
16281
+ };
16282
+ },
16283
+ /**
16284
+ * 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.
15426
16285
  * @summary Purchase new domain
15427
16286
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
15428
16287
  * @param {*} [options] Override http request option.
@@ -15515,6 +16374,18 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
15515
16374
  export const DomainsPortfolioApiFp = function(configuration?: Configuration) {
15516
16375
  const localVarAxiosParamCreator = DomainsPortfolioApiAxiosParamCreator(configuration)
15517
16376
  return {
16377
+ /**
16378
+ * Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. 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 claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
16379
+ * @summary Claim free domain
16380
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
16381
+ * @param {*} [options] Override http request option.
16382
+ * @throws {RequiredError}
16383
+ */
16384
+ async claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1PortfolioClaimResource>> {
16385
+ const localVarAxiosArgs = await localVarAxiosParamCreator.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options);
16386
+ const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.claimFreeDomainV1']?.[0]?.url;
16387
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16388
+ },
15518
16389
  /**
15519
16390
  * 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.
15520
16391
  * @summary Disable domain lock
@@ -15645,6 +16516,16 @@ export const DomainsPortfolioApiFp = function(configuration?: Configuration) {
15645
16516
  export const DomainsPortfolioApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
15646
16517
  const localVarFp = DomainsPortfolioApiFp(configuration)
15647
16518
  return {
16519
+ /**
16520
+ * Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. 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 claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
16521
+ * @summary Claim free domain
16522
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
16523
+ * @param {*} [options] Override http request option.
16524
+ * @throws {RequiredError}
16525
+ */
16526
+ claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1PortfolioClaimResource> {
16527
+ return localVarFp.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(axios, basePath));
16528
+ },
15648
16529
  /**
15649
16530
  * 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.
15650
16531
  * @summary Disable domain lock
@@ -15755,6 +16636,18 @@ export const DomainsPortfolioApiFactory = function (configuration?: Configuratio
15755
16636
  * @extends {BaseAPI}
15756
16637
  */
15757
16638
  export class DomainsPortfolioApi extends BaseAPI {
16639
+ /**
16640
+ * Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. 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 claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
16641
+ * @summary Claim free domain
16642
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
16643
+ * @param {*} [options] Override http request option.
16644
+ * @throws {RequiredError}
16645
+ * @memberof DomainsPortfolioApi
16646
+ */
16647
+ public claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig) {
16648
+ return DomainsPortfolioApiFp(this.configuration).claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(this.axios, this.basePath));
16649
+ }
16650
+
15758
16651
  /**
15759
16652
  * 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.
15760
16653
  * @summary Disable domain lock
@@ -15884,6 +16777,46 @@ export class DomainsPortfolioApi extends BaseAPI {
15884
16777
  */
15885
16778
  export const DomainsTransferApiAxiosParamCreator = function (configuration?: Configuration) {
15886
16779
  return {
16780
+ /**
16781
+ * Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). 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. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
16782
+ * @summary Claim free domain transfer
16783
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
16784
+ * @param {*} [options] Override http request option.
16785
+ * @throws {RequiredError}
16786
+ */
16787
+ claimFreeDomainTransferV1: async (domainsV1TransferClaimRequest: DomainsV1TransferClaimRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16788
+ // verify required parameter 'domainsV1TransferClaimRequest' is not null or undefined
16789
+ assertParamExists('claimFreeDomainTransferV1', 'domainsV1TransferClaimRequest', domainsV1TransferClaimRequest)
16790
+ const localVarPath = `/api/domains/v1/transfers/claim`;
16791
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16792
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16793
+ let baseOptions;
16794
+ if (configuration) {
16795
+ baseOptions = configuration.baseOptions;
16796
+ }
16797
+
16798
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16799
+ const localVarHeaderParameter = {} as any;
16800
+ const localVarQueryParameter = {} as any;
16801
+
16802
+ // authentication apiToken required
16803
+ // http bearer authentication required
16804
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16805
+
16806
+
16807
+
16808
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16809
+
16810
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16811
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16812
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16813
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1TransferClaimRequest, localVarRequestOptions, configuration)
16814
+
16815
+ return {
16816
+ url: toPathString(localVarUrlObj),
16817
+ options: localVarRequestOptions,
16818
+ };
16819
+ },
15887
16820
  /**
15888
16821
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
15889
16822
  * @summary Get transfer list
@@ -15966,6 +16899,18 @@ export const DomainsTransferApiAxiosParamCreator = function (configuration?: Con
15966
16899
  export const DomainsTransferApiFp = function(configuration?: Configuration) {
15967
16900
  const localVarAxiosParamCreator = DomainsTransferApiAxiosParamCreator(configuration)
15968
16901
  return {
16902
+ /**
16903
+ * Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). 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. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
16904
+ * @summary Claim free domain transfer
16905
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
16906
+ * @param {*} [options] Override http request option.
16907
+ * @throws {RequiredError}
16908
+ */
16909
+ async claimFreeDomainTransferV1(domainsV1TransferClaimRequest: DomainsV1TransferClaimRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1TransferTransferResource>> {
16910
+ const localVarAxiosArgs = await localVarAxiosParamCreator.claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options);
16911
+ const localVarOperationServerBasePath = operationServerMap['DomainsTransferApi.claimFreeDomainTransferV1']?.[0]?.url;
16912
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16913
+ },
15969
16914
  /**
15970
16915
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
15971
16916
  * @summary Get transfer list
@@ -15999,6 +16944,16 @@ export const DomainsTransferApiFp = function(configuration?: Configuration) {
15999
16944
  export const DomainsTransferApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
16000
16945
  const localVarFp = DomainsTransferApiFp(configuration)
16001
16946
  return {
16947
+ /**
16948
+ * Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). 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. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
16949
+ * @summary Claim free domain transfer
16950
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
16951
+ * @param {*} [options] Override http request option.
16952
+ * @throws {RequiredError}
16953
+ */
16954
+ claimFreeDomainTransferV1(domainsV1TransferClaimRequest: DomainsV1TransferClaimRequest, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1TransferTransferResource> {
16955
+ return localVarFp.claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options).then((request) => request(axios, basePath));
16956
+ },
16002
16957
  /**
16003
16958
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
16004
16959
  * @summary Get transfer list
@@ -16028,6 +16983,18 @@ export const DomainsTransferApiFactory = function (configuration?: Configuration
16028
16983
  * @extends {BaseAPI}
16029
16984
  */
16030
16985
  export class DomainsTransferApi extends BaseAPI {
16986
+ /**
16987
+ * Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). 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. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
16988
+ * @summary Claim free domain transfer
16989
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
16990
+ * @param {*} [options] Override http request option.
16991
+ * @throws {RequiredError}
16992
+ * @memberof DomainsTransferApi
16993
+ */
16994
+ public claimFreeDomainTransferV1(domainsV1TransferClaimRequest: DomainsV1TransferClaimRequest, options?: RawAxiosRequestConfig) {
16995
+ return DomainsTransferApiFp(this.configuration).claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options).then((request) => request(this.axios, this.basePath));
16996
+ }
16997
+
16031
16998
  /**
16032
16999
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
16033
17000
  * @summary Get transfer list