hostinger-api-sdk 1.25.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.
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.26.0
4
+ * API Version: 1.27.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -2847,77 +2847,138 @@ export interface DomainsV1PortfolioAuthCodeAuthCodeResource {
2847
2847
  /**
2848
2848
  *
2849
2849
  * @export
2850
- * @interface DomainsV1PortfolioPurchaseRequest
2850
+ * @interface DomainsV1PortfolioClaimRequest
2851
2851
  */
2852
- export interface DomainsV1PortfolioPurchaseRequest {
2852
+ export interface DomainsV1PortfolioClaimRequest {
2853
2853
  /**
2854
2854
  * Domain name
2855
2855
  * @type {string}
2856
- * @memberof DomainsV1PortfolioPurchaseRequest
2856
+ * @memberof DomainsV1PortfolioClaimRequest
2857
2857
  */
2858
2858
  'domain': string;
2859
- /**
2860
- * Catalog price item ID
2861
- * @type {string}
2862
- * @memberof DomainsV1PortfolioPurchaseRequest
2863
- */
2864
- 'item_id': string;
2865
- /**
2866
- * Payment method ID, default will be used if not provided
2867
- * @type {number}
2868
- * @memberof DomainsV1PortfolioPurchaseRequest
2869
- */
2870
- 'payment_method_id': number;
2871
2859
  /**
2872
2860
  *
2873
- * @type {DomainsV1PortfolioPurchaseRequestDomainContacts}
2874
- * @memberof DomainsV1PortfolioPurchaseRequest
2861
+ * @type {DomainsV1PortfolioClaimRequestDomainContacts}
2862
+ * @memberof DomainsV1PortfolioClaimRequest
2875
2863
  */
2876
- 'domain_contacts': DomainsV1PortfolioPurchaseRequestDomainContacts;
2864
+ 'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
2877
2865
  /**
2878
2866
  * Additional registration data, possible values depends on TLD
2879
2867
  * @type {object}
2880
- * @memberof DomainsV1PortfolioPurchaseRequest
2868
+ * @memberof DomainsV1PortfolioClaimRequest
2881
2869
  */
2882
2870
  'additional_details': object;
2883
- /**
2884
- * Discount coupon codes
2885
- * @type {Array<any>}
2886
- * @memberof DomainsV1PortfolioPurchaseRequest
2887
- */
2888
- 'coupons': Array<any>;
2889
2871
  }
2890
2872
  /**
2891
2873
  * Domain contact information
2892
2874
  * @export
2893
- * @interface DomainsV1PortfolioPurchaseRequestDomainContacts
2875
+ * @interface DomainsV1PortfolioClaimRequestDomainContacts
2894
2876
  */
2895
- export interface DomainsV1PortfolioPurchaseRequestDomainContacts {
2877
+ export interface DomainsV1PortfolioClaimRequestDomainContacts {
2896
2878
  /**
2897
2879
  * Owner contact WHOIS record ID
2898
2880
  * @type {number}
2899
- * @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
2881
+ * @memberof DomainsV1PortfolioClaimRequestDomainContacts
2900
2882
  */
2901
2883
  'owner_id': number;
2902
2884
  /**
2903
2885
  * Administrative contact WHOIS record ID
2904
2886
  * @type {number}
2905
- * @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
2887
+ * @memberof DomainsV1PortfolioClaimRequestDomainContacts
2906
2888
  */
2907
2889
  'admin_id': number;
2908
2890
  /**
2909
2891
  * Billing contact WHOIS record ID
2910
2892
  * @type {number}
2911
- * @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
2893
+ * @memberof DomainsV1PortfolioClaimRequestDomainContacts
2912
2894
  */
2913
2895
  'billing_id': number;
2914
2896
  /**
2915
2897
  * Technical contact WHOIS record ID
2916
2898
  * @type {number}
2917
- * @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
2899
+ * @memberof DomainsV1PortfolioClaimRequestDomainContacts
2918
2900
  */
2919
2901
  'tech_id': number;
2920
2902
  }
2903
+ /**
2904
+ *
2905
+ * @export
2906
+ * @interface DomainsV1PortfolioClaimResource
2907
+ */
2908
+ export interface DomainsV1PortfolioClaimResource {
2909
+ /**
2910
+ * Domain name
2911
+ * @type {string}
2912
+ * @memberof DomainsV1PortfolioClaimResource
2913
+ */
2914
+ 'domain': string | null;
2915
+ /**
2916
+ * Domain status
2917
+ * @type {string}
2918
+ * @memberof DomainsV1PortfolioClaimResource
2919
+ */
2920
+ 'status': DomainsV1PortfolioClaimResourceStatusEnum | null;
2921
+ /**
2922
+ *
2923
+ * @type {string}
2924
+ * @memberof DomainsV1PortfolioClaimResource
2925
+ */
2926
+ 'created_at': string | null;
2927
+ }
2928
+ export declare const DomainsV1PortfolioClaimResourceStatusEnum: {
2929
+ readonly Active: "active";
2930
+ readonly PendingSetup: "pending_setup";
2931
+ readonly Expired: "expired";
2932
+ readonly Requested: "requested";
2933
+ readonly PendingVerification: "pending_verification";
2934
+ readonly Deleted: "deleted";
2935
+ readonly Suspended: "suspended";
2936
+ readonly Failed: "failed";
2937
+ };
2938
+ export type DomainsV1PortfolioClaimResourceStatusEnum = typeof DomainsV1PortfolioClaimResourceStatusEnum[keyof typeof DomainsV1PortfolioClaimResourceStatusEnum];
2939
+ /**
2940
+ *
2941
+ * @export
2942
+ * @interface DomainsV1PortfolioPurchaseRequest
2943
+ */
2944
+ export interface DomainsV1PortfolioPurchaseRequest {
2945
+ /**
2946
+ * Domain name
2947
+ * @type {string}
2948
+ * @memberof DomainsV1PortfolioPurchaseRequest
2949
+ */
2950
+ 'domain': string;
2951
+ /**
2952
+ * Catalog price item ID
2953
+ * @type {string}
2954
+ * @memberof DomainsV1PortfolioPurchaseRequest
2955
+ */
2956
+ 'item_id': string;
2957
+ /**
2958
+ * Payment method ID, default will be used if not provided
2959
+ * @type {number}
2960
+ * @memberof DomainsV1PortfolioPurchaseRequest
2961
+ */
2962
+ 'payment_method_id': number;
2963
+ /**
2964
+ *
2965
+ * @type {DomainsV1PortfolioClaimRequestDomainContacts}
2966
+ * @memberof DomainsV1PortfolioPurchaseRequest
2967
+ */
2968
+ 'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
2969
+ /**
2970
+ * Additional registration data, possible values depends on TLD
2971
+ * @type {object}
2972
+ * @memberof DomainsV1PortfolioPurchaseRequest
2973
+ */
2974
+ 'additional_details': object;
2975
+ /**
2976
+ * Discount coupon codes
2977
+ * @type {Array<any>}
2978
+ * @memberof DomainsV1PortfolioPurchaseRequest
2979
+ */
2980
+ 'coupons': Array<any>;
2981
+ }
2921
2982
  /**
2922
2983
  *
2923
2984
  * @export
@@ -2974,6 +3035,37 @@ export interface DomainsV1PortfolioUpdateNameserversRequest {
2974
3035
  */
2975
3036
  'ns4': string;
2976
3037
  }
3038
+ /**
3039
+ *
3040
+ * @export
3041
+ * @interface DomainsV1TransferClaimRequest
3042
+ */
3043
+ export interface DomainsV1TransferClaimRequest {
3044
+ /**
3045
+ * Domain name
3046
+ * @type {string}
3047
+ * @memberof DomainsV1TransferClaimRequest
3048
+ */
3049
+ 'domain': string;
3050
+ /**
3051
+ * Authorization code from the current registrar
3052
+ * @type {string}
3053
+ * @memberof DomainsV1TransferClaimRequest
3054
+ */
3055
+ 'auth_code': string;
3056
+ /**
3057
+ *
3058
+ * @type {DomainsV1PortfolioClaimRequestDomainContacts}
3059
+ * @memberof DomainsV1TransferClaimRequest
3060
+ */
3061
+ 'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
3062
+ /**
3063
+ * Keep the existing nameservers of the domain
3064
+ * @type {boolean}
3065
+ * @memberof DomainsV1TransferClaimRequest
3066
+ */
3067
+ 'should_keep_ns': boolean;
3068
+ }
2977
3069
  /**
2978
3070
  *
2979
3071
  * @export
@@ -13026,6 +13118,14 @@ export declare class DomainsMoveApi extends BaseAPI {
13026
13118
  * @export
13027
13119
  */
13028
13120
  export declare const DomainsPortfolioApiAxiosParamCreator: (configuration?: Configuration) => {
13121
+ /**
13122
+ * 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.
13123
+ * @summary Claim free domain
13124
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
13125
+ * @param {*} [options] Override http request option.
13126
+ * @throws {RequiredError}
13127
+ */
13128
+ claimFreeDomainV1: (domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13029
13129
  /**
13030
13130
  * 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.
13031
13131
  * @summary Disable domain lock
@@ -13112,6 +13212,14 @@ export declare const DomainsPortfolioApiAxiosParamCreator: (configuration?: Conf
13112
13212
  * @export
13113
13213
  */
13114
13214
  export declare const DomainsPortfolioApiFp: (configuration?: Configuration) => {
13215
+ /**
13216
+ * 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.
13217
+ * @summary Claim free domain
13218
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
13219
+ * @param {*} [options] Override http request option.
13220
+ * @throws {RequiredError}
13221
+ */
13222
+ claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1PortfolioClaimResource>>;
13115
13223
  /**
13116
13224
  * 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.
13117
13225
  * @summary Disable domain lock
@@ -13198,6 +13306,14 @@ export declare const DomainsPortfolioApiFp: (configuration?: Configuration) => {
13198
13306
  * @export
13199
13307
  */
13200
13308
  export declare const DomainsPortfolioApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
13309
+ /**
13310
+ * 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.
13311
+ * @summary Claim free domain
13312
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
13313
+ * @param {*} [options] Override http request option.
13314
+ * @throws {RequiredError}
13315
+ */
13316
+ claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1PortfolioClaimResource>;
13201
13317
  /**
13202
13318
  * 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.
13203
13319
  * @summary Disable domain lock
@@ -13286,6 +13402,15 @@ export declare const DomainsPortfolioApiFactory: (configuration?: Configuration,
13286
13402
  * @extends {BaseAPI}
13287
13403
  */
13288
13404
  export declare class DomainsPortfolioApi extends BaseAPI {
13405
+ /**
13406
+ * 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.
13407
+ * @summary Claim free domain
13408
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
13409
+ * @param {*} [options] Override http request option.
13410
+ * @throws {RequiredError}
13411
+ * @memberof DomainsPortfolioApi
13412
+ */
13413
+ claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DomainsV1PortfolioClaimResource, any, {}, any>>;
13289
13414
  /**
13290
13415
  * 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.
13291
13416
  * @summary Disable domain lock
@@ -13382,6 +13507,14 @@ export declare class DomainsPortfolioApi extends BaseAPI {
13382
13507
  * @export
13383
13508
  */
13384
13509
  export declare const DomainsTransferApiAxiosParamCreator: (configuration?: Configuration) => {
13510
+ /**
13511
+ * 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.
13512
+ * @summary Claim free domain transfer
13513
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
13514
+ * @param {*} [options] Override http request option.
13515
+ * @throws {RequiredError}
13516
+ */
13517
+ claimFreeDomainTransferV1: (domainsV1TransferClaimRequest: DomainsV1TransferClaimRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13385
13518
  /**
13386
13519
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
13387
13520
  * @summary Get transfer list
@@ -13403,6 +13536,14 @@ export declare const DomainsTransferApiAxiosParamCreator: (configuration?: Confi
13403
13536
  * @export
13404
13537
  */
13405
13538
  export declare const DomainsTransferApiFp: (configuration?: Configuration) => {
13539
+ /**
13540
+ * 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.
13541
+ * @summary Claim free domain transfer
13542
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
13543
+ * @param {*} [options] Override http request option.
13544
+ * @throws {RequiredError}
13545
+ */
13546
+ claimFreeDomainTransferV1(domainsV1TransferClaimRequest: DomainsV1TransferClaimRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1TransferTransferResource>>;
13406
13547
  /**
13407
13548
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
13408
13549
  * @summary Get transfer list
@@ -13424,6 +13565,14 @@ export declare const DomainsTransferApiFp: (configuration?: Configuration) => {
13424
13565
  * @export
13425
13566
  */
13426
13567
  export declare const DomainsTransferApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
13568
+ /**
13569
+ * 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.
13570
+ * @summary Claim free domain transfer
13571
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
13572
+ * @param {*} [options] Override http request option.
13573
+ * @throws {RequiredError}
13574
+ */
13575
+ claimFreeDomainTransferV1(domainsV1TransferClaimRequest: DomainsV1TransferClaimRequest, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1TransferTransferResource>;
13427
13576
  /**
13428
13577
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
13429
13578
  * @summary Get transfer list
@@ -13447,6 +13596,15 @@ export declare const DomainsTransferApiFactory: (configuration?: Configuration,
13447
13596
  * @extends {BaseAPI}
13448
13597
  */
13449
13598
  export declare class DomainsTransferApi extends BaseAPI {
13599
+ /**
13600
+ * 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.
13601
+ * @summary Claim free domain transfer
13602
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
13603
+ * @param {*} [options] Override http request option.
13604
+ * @throws {RequiredError}
13605
+ * @memberof DomainsTransferApi
13606
+ */
13607
+ claimFreeDomainTransferV1(domainsV1TransferClaimRequest: DomainsV1TransferClaimRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DomainsV1TransferTransferResource, any, {}, any>>;
13450
13608
  /**
13451
13609
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
13452
13610
  * @summary Get transfer list
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.26.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
@@ -157,6 +157,16 @@ export const DomainsV1MoveMoveResourceStatusEnum = {
157
157
  Activating: 'activating',
158
158
  Completed: 'completed'
159
159
  };
160
+ export const DomainsV1PortfolioClaimResourceStatusEnum = {
161
+ Active: 'active',
162
+ PendingSetup: 'pending_setup',
163
+ Expired: 'expired',
164
+ Requested: 'requested',
165
+ PendingVerification: 'pending_verification',
166
+ Deleted: 'deleted',
167
+ Suspended: 'suspended',
168
+ Failed: 'failed'
169
+ };
160
170
  export const DomainsV1WHOISChangeUpdateRequestChangeForEnum = {
161
171
  Owner: 'owner',
162
172
  Admin: 'admin',
@@ -5306,6 +5316,39 @@ export class DomainsMoveApi extends BaseAPI {
5306
5316
  */
5307
5317
  export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
5308
5318
  return {
5319
+ /**
5320
+ * 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.
5321
+ * @summary Claim free domain
5322
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
5323
+ * @param {*} [options] Override http request option.
5324
+ * @throws {RequiredError}
5325
+ */
5326
+ claimFreeDomainV1: (domainsV1PortfolioClaimRequest_1, ...args_1) => __awaiter(this, [domainsV1PortfolioClaimRequest_1, ...args_1], void 0, function* (domainsV1PortfolioClaimRequest, options = {}) {
5327
+ // verify required parameter 'domainsV1PortfolioClaimRequest' is not null or undefined
5328
+ assertParamExists('claimFreeDomainV1', 'domainsV1PortfolioClaimRequest', domainsV1PortfolioClaimRequest);
5329
+ const localVarPath = `/api/domains/v1/portfolio/claim`;
5330
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5331
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5332
+ let baseOptions;
5333
+ if (configuration) {
5334
+ baseOptions = configuration.baseOptions;
5335
+ }
5336
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5337
+ const localVarHeaderParameter = {};
5338
+ const localVarQueryParameter = {};
5339
+ // authentication apiToken required
5340
+ // http bearer authentication required
5341
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5342
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5343
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5344
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5345
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5346
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioClaimRequest, localVarRequestOptions, configuration);
5347
+ return {
5348
+ url: toPathString(localVarUrlObj),
5349
+ options: localVarRequestOptions,
5350
+ };
5351
+ }),
5309
5352
  /**
5310
5353
  * Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
5311
5354
  * @summary Disable domain lock
@@ -5637,6 +5680,21 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
5637
5680
  export const DomainsPortfolioApiFp = function (configuration) {
5638
5681
  const localVarAxiosParamCreator = DomainsPortfolioApiAxiosParamCreator(configuration);
5639
5682
  return {
5683
+ /**
5684
+ * 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.
5685
+ * @summary Claim free domain
5686
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
5687
+ * @param {*} [options] Override http request option.
5688
+ * @throws {RequiredError}
5689
+ */
5690
+ claimFreeDomainV1(domainsV1PortfolioClaimRequest, options) {
5691
+ return __awaiter(this, void 0, void 0, function* () {
5692
+ var _a, _b;
5693
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options);
5694
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.claimFreeDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5695
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5696
+ });
5697
+ },
5640
5698
  /**
5641
5699
  * Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
5642
5700
  * @summary Disable domain lock
@@ -5796,6 +5854,16 @@ export const DomainsPortfolioApiFp = function (configuration) {
5796
5854
  export const DomainsPortfolioApiFactory = function (configuration, basePath, axios) {
5797
5855
  const localVarFp = DomainsPortfolioApiFp(configuration);
5798
5856
  return {
5857
+ /**
5858
+ * 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.
5859
+ * @summary Claim free domain
5860
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
5861
+ * @param {*} [options] Override http request option.
5862
+ * @throws {RequiredError}
5863
+ */
5864
+ claimFreeDomainV1(domainsV1PortfolioClaimRequest, options) {
5865
+ return localVarFp.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(axios, basePath));
5866
+ },
5799
5867
  /**
5800
5868
  * Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
5801
5869
  * @summary Disable domain lock
@@ -5905,6 +5973,17 @@ export const DomainsPortfolioApiFactory = function (configuration, basePath, axi
5905
5973
  * @extends {BaseAPI}
5906
5974
  */
5907
5975
  export class DomainsPortfolioApi extends BaseAPI {
5976
+ /**
5977
+ * 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.
5978
+ * @summary Claim free domain
5979
+ * @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
5980
+ * @param {*} [options] Override http request option.
5981
+ * @throws {RequiredError}
5982
+ * @memberof DomainsPortfolioApi
5983
+ */
5984
+ claimFreeDomainV1(domainsV1PortfolioClaimRequest, options) {
5985
+ return DomainsPortfolioApiFp(this.configuration).claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(this.axios, this.basePath));
5986
+ }
5908
5987
  /**
5909
5988
  * 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.
5910
5989
  * @summary Disable domain lock
@@ -6022,6 +6101,39 @@ export class DomainsPortfolioApi extends BaseAPI {
6022
6101
  */
6023
6102
  export const DomainsTransferApiAxiosParamCreator = function (configuration) {
6024
6103
  return {
6104
+ /**
6105
+ * 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.
6106
+ * @summary Claim free domain transfer
6107
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
6108
+ * @param {*} [options] Override http request option.
6109
+ * @throws {RequiredError}
6110
+ */
6111
+ claimFreeDomainTransferV1: (domainsV1TransferClaimRequest_1, ...args_1) => __awaiter(this, [domainsV1TransferClaimRequest_1, ...args_1], void 0, function* (domainsV1TransferClaimRequest, options = {}) {
6112
+ // verify required parameter 'domainsV1TransferClaimRequest' is not null or undefined
6113
+ assertParamExists('claimFreeDomainTransferV1', 'domainsV1TransferClaimRequest', domainsV1TransferClaimRequest);
6114
+ const localVarPath = `/api/domains/v1/transfers/claim`;
6115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6116
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6117
+ let baseOptions;
6118
+ if (configuration) {
6119
+ baseOptions = configuration.baseOptions;
6120
+ }
6121
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6122
+ const localVarHeaderParameter = {};
6123
+ const localVarQueryParameter = {};
6124
+ // authentication apiToken required
6125
+ // http bearer authentication required
6126
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6127
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6130
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6131
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1TransferClaimRequest, localVarRequestOptions, configuration);
6132
+ return {
6133
+ url: toPathString(localVarUrlObj),
6134
+ options: localVarRequestOptions,
6135
+ };
6136
+ }),
6025
6137
  /**
6026
6138
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
6027
6139
  * @summary Get transfer list
@@ -6091,6 +6203,21 @@ export const DomainsTransferApiAxiosParamCreator = function (configuration) {
6091
6203
  export const DomainsTransferApiFp = function (configuration) {
6092
6204
  const localVarAxiosParamCreator = DomainsTransferApiAxiosParamCreator(configuration);
6093
6205
  return {
6206
+ /**
6207
+ * 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.
6208
+ * @summary Claim free domain transfer
6209
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
6210
+ * @param {*} [options] Override http request option.
6211
+ * @throws {RequiredError}
6212
+ */
6213
+ claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options) {
6214
+ return __awaiter(this, void 0, void 0, function* () {
6215
+ var _a, _b;
6216
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options);
6217
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsTransferApi.claimFreeDomainTransferV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6218
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6219
+ });
6220
+ },
6094
6221
  /**
6095
6222
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
6096
6223
  * @summary Get transfer list
@@ -6129,6 +6256,16 @@ export const DomainsTransferApiFp = function (configuration) {
6129
6256
  export const DomainsTransferApiFactory = function (configuration, basePath, axios) {
6130
6257
  const localVarFp = DomainsTransferApiFp(configuration);
6131
6258
  return {
6259
+ /**
6260
+ * 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.
6261
+ * @summary Claim free domain transfer
6262
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
6263
+ * @param {*} [options] Override http request option.
6264
+ * @throws {RequiredError}
6265
+ */
6266
+ claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options) {
6267
+ return localVarFp.claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options).then((request) => request(axios, basePath));
6268
+ },
6132
6269
  /**
6133
6270
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
6134
6271
  * @summary Get transfer list
@@ -6157,6 +6294,17 @@ export const DomainsTransferApiFactory = function (configuration, basePath, axio
6157
6294
  * @extends {BaseAPI}
6158
6295
  */
6159
6296
  export class DomainsTransferApi extends BaseAPI {
6297
+ /**
6298
+ * 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.
6299
+ * @summary Claim free domain transfer
6300
+ * @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
6301
+ * @param {*} [options] Override http request option.
6302
+ * @throws {RequiredError}
6303
+ * @memberof DomainsTransferApi
6304
+ */
6305
+ claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options) {
6306
+ return DomainsTransferApiFp(this.configuration).claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options).then((request) => request(this.axios, this.basePath));
6307
+ }
6160
6308
  /**
6161
6309
  * Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
6162
6310
  * @summary Get transfer list
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.26.0
4
+ * API Version: 1.27.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.26.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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.26.0
4
+ * API Version: 1.27.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.26.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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.26.0
4
+ * API Version: 1.27.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.26.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
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.25.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.26.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.26.0
4
+ * API Version: 1.27.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api