@hostinger/sdk 1.55.0 → 1.56.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/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## @hostinger/sdk@1.55.0
1
+ ## @hostinger/sdk@1.56.0
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install @hostinger/sdk@1.55.0 --save
8
+ npm install @hostinger/sdk@1.56.0 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.55.0
6
+ * API Version: 1.56.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
@@ -3838,6 +3838,37 @@ export interface DomainsV1TransferClaimRequest {
3838
3838
  */
3839
3839
  'should_keep_ns': boolean;
3840
3840
  }
3841
+ /**
3842
+ *
3843
+ * @export
3844
+ * @interface DomainsV1TransferTransferRequest
3845
+ */
3846
+ export interface DomainsV1TransferTransferRequest {
3847
+ /**
3848
+ * Domain name
3849
+ * @type {string}
3850
+ * @memberof DomainsV1TransferTransferRequest
3851
+ */
3852
+ 'domain': string;
3853
+ /**
3854
+ * Authorization code from the current registrar
3855
+ * @type {string}
3856
+ * @memberof DomainsV1TransferTransferRequest
3857
+ */
3858
+ 'auth_code': string;
3859
+ /**
3860
+ *
3861
+ * @type {DomainsV1PortfolioClaimRequestDomainContacts}
3862
+ * @memberof DomainsV1TransferTransferRequest
3863
+ */
3864
+ 'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
3865
+ /**
3866
+ * Keep the existing nameservers of the domain
3867
+ * @type {boolean}
3868
+ * @memberof DomainsV1TransferTransferRequest
3869
+ */
3870
+ 'should_keep_ns': boolean;
3871
+ }
3841
3872
  /**
3842
3873
  *
3843
3874
  * @export
@@ -24718,6 +24749,46 @@ export const DomainsTransferApiAxiosParamCreator = function (configuration?: Con
24718
24749
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24719
24750
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
24720
24751
 
24752
+ return {
24753
+ url: toPathString(localVarUrlObj),
24754
+ options: localVarRequestOptions,
24755
+ };
24756
+ },
24757
+ /**
24758
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
24759
+ * @summary Start domain transfer
24760
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
24761
+ * @param {*} [options] Override http request option.
24762
+ * @throws {RequiredError}
24763
+ */
24764
+ startDomainTransferV1: async (domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
24765
+ // verify required parameter 'domainsV1TransferTransferRequest' is not null or undefined
24766
+ assertParamExists('startDomainTransferV1', 'domainsV1TransferTransferRequest', domainsV1TransferTransferRequest)
24767
+ const localVarPath = `/api/domains/v1/transfers`;
24768
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
24769
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
24770
+ let baseOptions;
24771
+ if (configuration) {
24772
+ baseOptions = configuration.baseOptions;
24773
+ }
24774
+
24775
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
24776
+ const localVarHeaderParameter = {} as any;
24777
+ const localVarQueryParameter = {} as any;
24778
+
24779
+ // authentication apiToken required
24780
+ // http bearer authentication required
24781
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
24782
+
24783
+
24784
+
24785
+ localVarHeaderParameter['Content-Type'] = 'application/json';
24786
+
24787
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
24788
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24789
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
24790
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1TransferTransferRequest, localVarRequestOptions, configuration)
24791
+
24721
24792
  return {
24722
24793
  url: toPathString(localVarUrlObj),
24723
24794
  options: localVarRequestOptions,
@@ -24768,6 +24839,18 @@ export const DomainsTransferApiFp = function(configuration?: Configuration) {
24768
24839
  const localVarOperationServerBasePath = operationServerMap['DomainsTransferApi.getTransferV1']?.[0]?.url;
24769
24840
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
24770
24841
  },
24842
+ /**
24843
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
24844
+ * @summary Start domain transfer
24845
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
24846
+ * @param {*} [options] Override http request option.
24847
+ * @throws {RequiredError}
24848
+ */
24849
+ async startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
24850
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startDomainTransferV1(domainsV1TransferTransferRequest, options);
24851
+ const localVarOperationServerBasePath = operationServerMap['DomainsTransferApi.startDomainTransferV1']?.[0]?.url;
24852
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
24853
+ },
24771
24854
  }
24772
24855
  };
24773
24856
 
@@ -24807,6 +24890,16 @@ export const DomainsTransferApiFactory = function (configuration?: Configuration
24807
24890
  getTransferV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1TransferTransferResource> {
24808
24891
  return localVarFp.getTransferV1(domain, options).then((request) => request(axios, basePath));
24809
24892
  },
24893
+ /**
24894
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
24895
+ * @summary Start domain transfer
24896
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
24897
+ * @param {*} [options] Override http request option.
24898
+ * @throws {RequiredError}
24899
+ */
24900
+ startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
24901
+ return localVarFp.startDomainTransferV1(domainsV1TransferTransferRequest, options).then((request) => request(axios, basePath));
24902
+ },
24810
24903
  };
24811
24904
  };
24812
24905
 
@@ -24851,6 +24944,18 @@ export class DomainsTransferApi extends BaseAPI {
24851
24944
  public getTransferV1(domain: string, options?: RawAxiosRequestConfig) {
24852
24945
  return DomainsTransferApiFp(this.configuration).getTransferV1(domain, options).then((request) => request(this.axios, this.basePath));
24853
24946
  }
24947
+
24948
+ /**
24949
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
24950
+ * @summary Start domain transfer
24951
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
24952
+ * @param {*} [options] Override http request option.
24953
+ * @throws {RequiredError}
24954
+ * @memberof DomainsTransferApi
24955
+ */
24956
+ public startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig) {
24957
+ return DomainsTransferApiFp(this.configuration).startDomainTransferV1(domainsV1TransferTransferRequest, options).then((request) => request(this.axios, this.basePath));
24958
+ }
24854
24959
  }
24855
24960
 
24856
24961
 
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.55.0
6
+ * API Version: 1.56.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
package/common.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.55.0
6
+ * API Version: 1.56.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
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.55.0
6
+ * API Version: 1.56.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
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/1.55.0",
51
+ 'User-Agent': "hostinger-typescript-sdk/1.56.0",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };
package/dist/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.55.0
4
+ * API Version: 1.56.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
@@ -3746,6 +3746,37 @@ export interface DomainsV1TransferClaimRequest {
3746
3746
  */
3747
3747
  'should_keep_ns': boolean;
3748
3748
  }
3749
+ /**
3750
+ *
3751
+ * @export
3752
+ * @interface DomainsV1TransferTransferRequest
3753
+ */
3754
+ export interface DomainsV1TransferTransferRequest {
3755
+ /**
3756
+ * Domain name
3757
+ * @type {string}
3758
+ * @memberof DomainsV1TransferTransferRequest
3759
+ */
3760
+ 'domain': string;
3761
+ /**
3762
+ * Authorization code from the current registrar
3763
+ * @type {string}
3764
+ * @memberof DomainsV1TransferTransferRequest
3765
+ */
3766
+ 'auth_code': string;
3767
+ /**
3768
+ *
3769
+ * @type {DomainsV1PortfolioClaimRequestDomainContacts}
3770
+ * @memberof DomainsV1TransferTransferRequest
3771
+ */
3772
+ 'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
3773
+ /**
3774
+ * Keep the existing nameservers of the domain
3775
+ * @type {boolean}
3776
+ * @memberof DomainsV1TransferTransferRequest
3777
+ */
3778
+ 'should_keep_ns': boolean;
3779
+ }
3749
3780
  /**
3750
3781
  *
3751
3782
  * @export
@@ -20399,6 +20430,14 @@ export declare const DomainsTransferApiAxiosParamCreator: (configuration?: Confi
20399
20430
  * @throws {RequiredError}
20400
20431
  */
20401
20432
  getTransferV1: (domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20433
+ /**
20434
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
20435
+ * @summary Start domain transfer
20436
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
20437
+ * @param {*} [options] Override http request option.
20438
+ * @throws {RequiredError}
20439
+ */
20440
+ startDomainTransferV1: (domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20402
20441
  };
20403
20442
  /**
20404
20443
  * DomainsTransferApi - functional programming interface
@@ -20428,6 +20467,14 @@ export declare const DomainsTransferApiFp: (configuration?: Configuration) => {
20428
20467
  * @throws {RequiredError}
20429
20468
  */
20430
20469
  getTransferV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1TransferTransferResource>>;
20470
+ /**
20471
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
20472
+ * @summary Start domain transfer
20473
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
20474
+ * @param {*} [options] Override http request option.
20475
+ * @throws {RequiredError}
20476
+ */
20477
+ startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
20431
20478
  };
20432
20479
  /**
20433
20480
  * DomainsTransferApi - factory interface
@@ -20457,6 +20504,14 @@ export declare const DomainsTransferApiFactory: (configuration?: Configuration,
20457
20504
  * @throws {RequiredError}
20458
20505
  */
20459
20506
  getTransferV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1TransferTransferResource>;
20507
+ /**
20508
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
20509
+ * @summary Start domain transfer
20510
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
20511
+ * @param {*} [options] Override http request option.
20512
+ * @throws {RequiredError}
20513
+ */
20514
+ startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
20460
20515
  };
20461
20516
  /**
20462
20517
  * DomainsTransferApi - object-oriented interface
@@ -20491,6 +20546,15 @@ export declare class DomainsTransferApi extends BaseAPI {
20491
20546
  * @memberof DomainsTransferApi
20492
20547
  */
20493
20548
  getTransferV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DomainsV1TransferTransferResource, any, {}, any>>;
20549
+ /**
20550
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
20551
+ * @summary Start domain transfer
20552
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
20553
+ * @param {*} [options] Override http request option.
20554
+ * @throws {RequiredError}
20555
+ * @memberof DomainsTransferApi
20556
+ */
20557
+ startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
20494
20558
  }
20495
20559
  /**
20496
20560
  * DomainsWHOISApi - axios parameter creator
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.55.0
7
+ * API Version: 1.56.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -8371,6 +8371,39 @@ const DomainsTransferApiAxiosParamCreator = function (configuration) {
8371
8371
  options: localVarRequestOptions,
8372
8372
  };
8373
8373
  }),
8374
+ /**
8375
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
8376
+ * @summary Start domain transfer
8377
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
8378
+ * @param {*} [options] Override http request option.
8379
+ * @throws {RequiredError}
8380
+ */
8381
+ startDomainTransferV1: (domainsV1TransferTransferRequest_1, ...args_1) => __awaiter(this, [domainsV1TransferTransferRequest_1, ...args_1], void 0, function* (domainsV1TransferTransferRequest, options = {}) {
8382
+ // verify required parameter 'domainsV1TransferTransferRequest' is not null or undefined
8383
+ (0, common_1.assertParamExists)('startDomainTransferV1', 'domainsV1TransferTransferRequest', domainsV1TransferTransferRequest);
8384
+ const localVarPath = `/api/domains/v1/transfers`;
8385
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8386
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8387
+ let baseOptions;
8388
+ if (configuration) {
8389
+ baseOptions = configuration.baseOptions;
8390
+ }
8391
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8392
+ const localVarHeaderParameter = {};
8393
+ const localVarQueryParameter = {};
8394
+ // authentication apiToken required
8395
+ // http bearer authentication required
8396
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8397
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8398
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8399
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8400
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8401
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1TransferTransferRequest, localVarRequestOptions, configuration);
8402
+ return {
8403
+ url: (0, common_1.toPathString)(localVarUrlObj),
8404
+ options: localVarRequestOptions,
8405
+ };
8406
+ }),
8374
8407
  };
8375
8408
  };
8376
8409
  exports.DomainsTransferApiAxiosParamCreator = DomainsTransferApiAxiosParamCreator;
@@ -8425,6 +8458,21 @@ const DomainsTransferApiFp = function (configuration) {
8425
8458
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8426
8459
  });
8427
8460
  },
8461
+ /**
8462
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
8463
+ * @summary Start domain transfer
8464
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
8465
+ * @param {*} [options] Override http request option.
8466
+ * @throws {RequiredError}
8467
+ */
8468
+ startDomainTransferV1(domainsV1TransferTransferRequest, options) {
8469
+ return __awaiter(this, void 0, void 0, function* () {
8470
+ var _a, _b;
8471
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.startDomainTransferV1(domainsV1TransferTransferRequest, options);
8472
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsTransferApi.startDomainTransferV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
8473
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8474
+ });
8475
+ },
8428
8476
  };
8429
8477
  };
8430
8478
  exports.DomainsTransferApiFp = DomainsTransferApiFp;
@@ -8464,6 +8512,16 @@ const DomainsTransferApiFactory = function (configuration, basePath, axios) {
8464
8512
  getTransferV1(domain, options) {
8465
8513
  return localVarFp.getTransferV1(domain, options).then((request) => request(axios, basePath));
8466
8514
  },
8515
+ /**
8516
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
8517
+ * @summary Start domain transfer
8518
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
8519
+ * @param {*} [options] Override http request option.
8520
+ * @throws {RequiredError}
8521
+ */
8522
+ startDomainTransferV1(domainsV1TransferTransferRequest, options) {
8523
+ return localVarFp.startDomainTransferV1(domainsV1TransferTransferRequest, options).then((request) => request(axios, basePath));
8524
+ },
8467
8525
  };
8468
8526
  };
8469
8527
  exports.DomainsTransferApiFactory = DomainsTransferApiFactory;
@@ -8506,6 +8564,17 @@ class DomainsTransferApi extends base_1.BaseAPI {
8506
8564
  getTransferV1(domain, options) {
8507
8565
  return (0, exports.DomainsTransferApiFp)(this.configuration).getTransferV1(domain, options).then((request) => request(this.axios, this.basePath));
8508
8566
  }
8567
+ /**
8568
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
8569
+ * @summary Start domain transfer
8570
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
8571
+ * @param {*} [options] Override http request option.
8572
+ * @throws {RequiredError}
8573
+ * @memberof DomainsTransferApi
8574
+ */
8575
+ startDomainTransferV1(domainsV1TransferTransferRequest, options) {
8576
+ return (0, exports.DomainsTransferApiFp)(this.configuration).startDomainTransferV1(domainsV1TransferTransferRequest, options).then((request) => request(this.axios, this.basePath));
8577
+ }
8509
8578
  }
8510
8579
  exports.DomainsTransferApi = DomainsTransferApi;
8511
8580
  /**
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.55.0
4
+ * API Version: 1.56.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/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.55.0
7
+ * API Version: 1.56.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.55.0
4
+ * API Version: 1.56.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/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.55.0
7
+ * API Version: 1.56.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.55.0
4
+ * API Version: 1.56.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
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.55.0
7
+ * API Version: 1.56.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -16,7 +16,7 @@ class Configuration {
16
16
  var _a;
17
17
  this.accessToken = param.accessToken;
18
18
  this.basePath = param.basePath;
19
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.55.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.56.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.55.0
4
+ * API Version: 1.56.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
@@ -3746,6 +3746,37 @@ export interface DomainsV1TransferClaimRequest {
3746
3746
  */
3747
3747
  'should_keep_ns': boolean;
3748
3748
  }
3749
+ /**
3750
+ *
3751
+ * @export
3752
+ * @interface DomainsV1TransferTransferRequest
3753
+ */
3754
+ export interface DomainsV1TransferTransferRequest {
3755
+ /**
3756
+ * Domain name
3757
+ * @type {string}
3758
+ * @memberof DomainsV1TransferTransferRequest
3759
+ */
3760
+ 'domain': string;
3761
+ /**
3762
+ * Authorization code from the current registrar
3763
+ * @type {string}
3764
+ * @memberof DomainsV1TransferTransferRequest
3765
+ */
3766
+ 'auth_code': string;
3767
+ /**
3768
+ *
3769
+ * @type {DomainsV1PortfolioClaimRequestDomainContacts}
3770
+ * @memberof DomainsV1TransferTransferRequest
3771
+ */
3772
+ 'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
3773
+ /**
3774
+ * Keep the existing nameservers of the domain
3775
+ * @type {boolean}
3776
+ * @memberof DomainsV1TransferTransferRequest
3777
+ */
3778
+ 'should_keep_ns': boolean;
3779
+ }
3749
3780
  /**
3750
3781
  *
3751
3782
  * @export
@@ -20399,6 +20430,14 @@ export declare const DomainsTransferApiAxiosParamCreator: (configuration?: Confi
20399
20430
  * @throws {RequiredError}
20400
20431
  */
20401
20432
  getTransferV1: (domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20433
+ /**
20434
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
20435
+ * @summary Start domain transfer
20436
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
20437
+ * @param {*} [options] Override http request option.
20438
+ * @throws {RequiredError}
20439
+ */
20440
+ startDomainTransferV1: (domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20402
20441
  };
20403
20442
  /**
20404
20443
  * DomainsTransferApi - functional programming interface
@@ -20428,6 +20467,14 @@ export declare const DomainsTransferApiFp: (configuration?: Configuration) => {
20428
20467
  * @throws {RequiredError}
20429
20468
  */
20430
20469
  getTransferV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1TransferTransferResource>>;
20470
+ /**
20471
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
20472
+ * @summary Start domain transfer
20473
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
20474
+ * @param {*} [options] Override http request option.
20475
+ * @throws {RequiredError}
20476
+ */
20477
+ startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
20431
20478
  };
20432
20479
  /**
20433
20480
  * DomainsTransferApi - factory interface
@@ -20457,6 +20504,14 @@ export declare const DomainsTransferApiFactory: (configuration?: Configuration,
20457
20504
  * @throws {RequiredError}
20458
20505
  */
20459
20506
  getTransferV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1TransferTransferResource>;
20507
+ /**
20508
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
20509
+ * @summary Start domain transfer
20510
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
20511
+ * @param {*} [options] Override http request option.
20512
+ * @throws {RequiredError}
20513
+ */
20514
+ startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
20460
20515
  };
20461
20516
  /**
20462
20517
  * DomainsTransferApi - object-oriented interface
@@ -20491,6 +20546,15 @@ export declare class DomainsTransferApi extends BaseAPI {
20491
20546
  * @memberof DomainsTransferApi
20492
20547
  */
20493
20548
  getTransferV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DomainsV1TransferTransferResource, any, {}, any>>;
20549
+ /**
20550
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
20551
+ * @summary Start domain transfer
20552
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
20553
+ * @param {*} [options] Override http request option.
20554
+ * @throws {RequiredError}
20555
+ * @memberof DomainsTransferApi
20556
+ */
20557
+ startDomainTransferV1(domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
20494
20558
  }
20495
20559
  /**
20496
20560
  * DomainsWHOISApi - axios parameter creator
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.55.0
6
+ * API Version: 1.56.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
@@ -8261,6 +8261,39 @@ export const DomainsTransferApiAxiosParamCreator = function (configuration) {
8261
8261
  options: localVarRequestOptions,
8262
8262
  };
8263
8263
  }),
8264
+ /**
8265
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
8266
+ * @summary Start domain transfer
8267
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
8268
+ * @param {*} [options] Override http request option.
8269
+ * @throws {RequiredError}
8270
+ */
8271
+ startDomainTransferV1: (domainsV1TransferTransferRequest_1, ...args_1) => __awaiter(this, [domainsV1TransferTransferRequest_1, ...args_1], void 0, function* (domainsV1TransferTransferRequest, options = {}) {
8272
+ // verify required parameter 'domainsV1TransferTransferRequest' is not null or undefined
8273
+ assertParamExists('startDomainTransferV1', 'domainsV1TransferTransferRequest', domainsV1TransferTransferRequest);
8274
+ const localVarPath = `/api/domains/v1/transfers`;
8275
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8276
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8277
+ let baseOptions;
8278
+ if (configuration) {
8279
+ baseOptions = configuration.baseOptions;
8280
+ }
8281
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8282
+ const localVarHeaderParameter = {};
8283
+ const localVarQueryParameter = {};
8284
+ // authentication apiToken required
8285
+ // http bearer authentication required
8286
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
8287
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8288
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8289
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8290
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8291
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1TransferTransferRequest, localVarRequestOptions, configuration);
8292
+ return {
8293
+ url: toPathString(localVarUrlObj),
8294
+ options: localVarRequestOptions,
8295
+ };
8296
+ }),
8264
8297
  };
8265
8298
  };
8266
8299
  /**
@@ -8314,6 +8347,21 @@ export const DomainsTransferApiFp = function (configuration) {
8314
8347
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8315
8348
  });
8316
8349
  },
8350
+ /**
8351
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
8352
+ * @summary Start domain transfer
8353
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
8354
+ * @param {*} [options] Override http request option.
8355
+ * @throws {RequiredError}
8356
+ */
8357
+ startDomainTransferV1(domainsV1TransferTransferRequest, options) {
8358
+ return __awaiter(this, void 0, void 0, function* () {
8359
+ var _a, _b;
8360
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.startDomainTransferV1(domainsV1TransferTransferRequest, options);
8361
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsTransferApi.startDomainTransferV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
8362
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8363
+ });
8364
+ },
8317
8365
  };
8318
8366
  };
8319
8367
  /**
@@ -8352,6 +8400,16 @@ export const DomainsTransferApiFactory = function (configuration, basePath, axio
8352
8400
  getTransferV1(domain, options) {
8353
8401
  return localVarFp.getTransferV1(domain, options).then((request) => request(axios, basePath));
8354
8402
  },
8403
+ /**
8404
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
8405
+ * @summary Start domain transfer
8406
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
8407
+ * @param {*} [options] Override http request option.
8408
+ * @throws {RequiredError}
8409
+ */
8410
+ startDomainTransferV1(domainsV1TransferTransferRequest, options) {
8411
+ return localVarFp.startDomainTransferV1(domainsV1TransferTransferRequest, options).then((request) => request(axios, basePath));
8412
+ },
8355
8413
  };
8356
8414
  };
8357
8415
  /**
@@ -8393,6 +8451,17 @@ export class DomainsTransferApi extends BaseAPI {
8393
8451
  getTransferV1(domain, options) {
8394
8452
  return DomainsTransferApiFp(this.configuration).getTransferV1(domain, options).then((request) => request(this.axios, this.basePath));
8395
8453
  }
8454
+ /**
8455
+ * Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
8456
+ * @summary Start domain transfer
8457
+ * @param {DomainsV1TransferTransferRequest} domainsV1TransferTransferRequest
8458
+ * @param {*} [options] Override http request option.
8459
+ * @throws {RequiredError}
8460
+ * @memberof DomainsTransferApi
8461
+ */
8462
+ startDomainTransferV1(domainsV1TransferTransferRequest, options) {
8463
+ return DomainsTransferApiFp(this.configuration).startDomainTransferV1(domainsV1TransferTransferRequest, options).then((request) => request(this.axios, this.basePath));
8464
+ }
8396
8465
  }
8397
8466
  /**
8398
8467
  * DomainsWHOISApi - axios parameter creator
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.55.0
4
+ * API Version: 1.56.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.55.0
6
+ * API Version: 1.56.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.55.0
4
+ * API Version: 1.56.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.55.0
6
+ * API Version: 1.56.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.55.0
4
+ * API Version: 1.56.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.55.0
6
+ * API Version: 1.56.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.55.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.56.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.55.0
4
+ * API Version: 1.56.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/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.55.0
6
+ * API Version: 1.56.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
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.55.0
4
+ * API Version: 1.56.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/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.55.0
7
+ * API Version: 1.56.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -7,6 +7,7 @@ All URIs are relative to *https://developers.hostinger.com*
7
7
  |[**claimFreeDomainTransferV1**](#claimfreedomaintransferv1) | **POST** /api/domains/v1/transfers/claim | Claim free domain transfer|
8
8
  |[**getTransferListV1**](#gettransferlistv1) | **GET** /api/domains/v1/transfers | Get transfer list|
9
9
  |[**getTransferV1**](#gettransferv1) | **GET** /api/domains/v1/transfers/{domain} | Get transfer|
10
+ |[**startDomainTransferV1**](#startdomaintransferv1) | **POST** /api/domains/v1/transfers | Start domain transfer|
10
11
 
11
12
  # **claimFreeDomainTransferV1**
12
13
  > DomainsV1TransferTransferResource claimFreeDomainTransferV1(domainsV1TransferClaimRequest)
@@ -162,3 +163,58 @@ const { status, data } = await apiInstance.getTransferV1(
162
163
 
163
164
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
164
165
 
166
+ # **startDomainTransferV1**
167
+ > CommonSuccessEmptyResource startDomainTransferV1(domainsV1TransferTransferRequest)
168
+
169
+ Transfer a domain from another registrar to your account. The transfer runs on a domain transfer service you have already purchased. Before making request, unlock the domain at the current registrar and get its authorization code. 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. Use this endpoint to bring domains registered elsewhere into your account.
170
+
171
+ ### Example
172
+
173
+ ```typescript
174
+ import {
175
+ DomainsTransferApi,
176
+ Configuration,
177
+ DomainsV1TransferTransferRequest
178
+ } from '@hostinger/sdk';
179
+
180
+ const configuration = new Configuration();
181
+ const apiInstance = new DomainsTransferApi(configuration);
182
+
183
+ let domainsV1TransferTransferRequest: DomainsV1TransferTransferRequest; //
184
+
185
+ const { status, data } = await apiInstance.startDomainTransferV1(
186
+ domainsV1TransferTransferRequest
187
+ );
188
+ ```
189
+
190
+ ### Parameters
191
+
192
+ |Name | Type | Description | Notes|
193
+ |------------- | ------------- | ------------- | -------------|
194
+ | **domainsV1TransferTransferRequest** | **DomainsV1TransferTransferRequest**| | |
195
+
196
+
197
+ ### Return type
198
+
199
+ **CommonSuccessEmptyResource**
200
+
201
+ ### Authorization
202
+
203
+ [apiToken](../README.md#apiToken)
204
+
205
+ ### HTTP request headers
206
+
207
+ - **Content-Type**: application/json
208
+ - **Accept**: application/json
209
+
210
+
211
+ ### HTTP response details
212
+ | Status code | Description | Response headers |
213
+ |-------------|-------------|------------------|
214
+ |**200** | Success empty response | - |
215
+ |**422** | Validation error response | - |
216
+ |**401** | Unauthenticated response | - |
217
+ |**500** | Error response | - |
218
+
219
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
220
+
@@ -0,0 +1,26 @@
1
+ # DomainsV1TransferTransferRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Domain name | [default to undefined]
9
+ **auth_code** | **string** | Authorization code from the current registrar | [default to undefined]
10
+ **domain_contacts** | [**DomainsV1PortfolioClaimRequestDomainContacts**](DomainsV1PortfolioClaimRequestDomainContacts.md) | | [optional] [default to undefined]
11
+ **should_keep_ns** | **boolean** | Keep the existing nameservers of the domain | [optional] [default to true]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { DomainsV1TransferTransferRequest } from '@hostinger/sdk';
17
+
18
+ const instance: DomainsV1TransferTransferRequest = {
19
+ domain,
20
+ auth_code,
21
+ domain_contacts,
22
+ should_keep_ns,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.55.0
6
+ * API Version: 1.56.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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostinger/sdk",
3
- "version": "1.55.0",
3
+ "version": "1.56.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {