@hostinger/sdk 1.50.1 → 1.51.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.50.1
1
+ ## @hostinger/sdk@1.51.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.50.1 --save
8
+ npm install @hostinger/sdk@1.51.0 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.50.1
6
+ * API Version: 1.51.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
@@ -3721,6 +3721,25 @@ export interface DomainsV1PortfolioRenewalRenewalInformationResource {
3721
3721
  */
3722
3722
  'expires_at': string;
3723
3723
  }
3724
+ /**
3725
+ *
3726
+ * @export
3727
+ * @interface DomainsV1PortfolioSetupRequest
3728
+ */
3729
+ export interface DomainsV1PortfolioSetupRequest {
3730
+ /**
3731
+ *
3732
+ * @type {DomainsV1PortfolioClaimRequestDomainContacts}
3733
+ * @memberof DomainsV1PortfolioSetupRequest
3734
+ */
3735
+ 'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
3736
+ /**
3737
+ * Additional registration data, possible values depends on TLD
3738
+ * @type {object}
3739
+ * @memberof DomainsV1PortfolioSetupRequest
3740
+ */
3741
+ 'additional_details': object;
3742
+ }
3724
3743
  /**
3725
3744
  *
3726
3745
  * @export
@@ -22807,6 +22826,50 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
22807
22826
  options: localVarRequestOptions,
22808
22827
  };
22809
22828
  },
22829
+ /**
22830
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
22831
+ * @summary Complete domain setup
22832
+ * @param {string} domain Domain name
22833
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
22834
+ * @param {*} [options] Override http request option.
22835
+ * @throws {RequiredError}
22836
+ */
22837
+ completeDomainSetupV1: async (domain: string, domainsV1PortfolioSetupRequest: DomainsV1PortfolioSetupRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22838
+ // verify required parameter 'domain' is not null or undefined
22839
+ assertParamExists('completeDomainSetupV1', 'domain', domain)
22840
+ // verify required parameter 'domainsV1PortfolioSetupRequest' is not null or undefined
22841
+ assertParamExists('completeDomainSetupV1', 'domainsV1PortfolioSetupRequest', domainsV1PortfolioSetupRequest)
22842
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/setup`
22843
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
22844
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22845
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22846
+ let baseOptions;
22847
+ if (configuration) {
22848
+ baseOptions = configuration.baseOptions;
22849
+ }
22850
+
22851
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
22852
+ const localVarHeaderParameter = {} as any;
22853
+ const localVarQueryParameter = {} as any;
22854
+
22855
+ // authentication apiToken required
22856
+ // http bearer authentication required
22857
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
22858
+
22859
+
22860
+
22861
+ localVarHeaderParameter['Content-Type'] = 'application/json';
22862
+
22863
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
22864
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
22865
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
22866
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioSetupRequest, localVarRequestOptions, configuration)
22867
+
22868
+ return {
22869
+ url: toPathString(localVarUrlObj),
22870
+ options: localVarRequestOptions,
22871
+ };
22872
+ },
22810
22873
  /**
22811
22874
  * 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.
22812
22875
  * @summary Disable domain lock
@@ -23213,6 +23276,19 @@ export const DomainsPortfolioApiFp = function(configuration?: Configuration) {
23213
23276
  const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.claimFreeDomainV1']?.[0]?.url;
23214
23277
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23215
23278
  },
23279
+ /**
23280
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
23281
+ * @summary Complete domain setup
23282
+ * @param {string} domain Domain name
23283
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
23284
+ * @param {*} [options] Override http request option.
23285
+ * @throws {RequiredError}
23286
+ */
23287
+ async completeDomainSetupV1(domain: string, domainsV1PortfolioSetupRequest: DomainsV1PortfolioSetupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
23288
+ const localVarAxiosArgs = await localVarAxiosParamCreator.completeDomainSetupV1(domain, domainsV1PortfolioSetupRequest, options);
23289
+ const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.completeDomainSetupV1']?.[0]?.url;
23290
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
23291
+ },
23216
23292
  /**
23217
23293
  * 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.
23218
23294
  * @summary Disable domain lock
@@ -23353,6 +23429,17 @@ export const DomainsPortfolioApiFactory = function (configuration?: Configuratio
23353
23429
  claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1PortfolioClaimResource> {
23354
23430
  return localVarFp.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(axios, basePath));
23355
23431
  },
23432
+ /**
23433
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
23434
+ * @summary Complete domain setup
23435
+ * @param {string} domain Domain name
23436
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
23437
+ * @param {*} [options] Override http request option.
23438
+ * @throws {RequiredError}
23439
+ */
23440
+ completeDomainSetupV1(domain: string, domainsV1PortfolioSetupRequest: DomainsV1PortfolioSetupRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
23441
+ return localVarFp.completeDomainSetupV1(domain, domainsV1PortfolioSetupRequest, options).then((request) => request(axios, basePath));
23442
+ },
23356
23443
  /**
23357
23444
  * 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.
23358
23445
  * @summary Disable domain lock
@@ -23475,6 +23562,19 @@ export class DomainsPortfolioApi extends BaseAPI {
23475
23562
  return DomainsPortfolioApiFp(this.configuration).claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(this.axios, this.basePath));
23476
23563
  }
23477
23564
 
23565
+ /**
23566
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
23567
+ * @summary Complete domain setup
23568
+ * @param {string} domain Domain name
23569
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
23570
+ * @param {*} [options] Override http request option.
23571
+ * @throws {RequiredError}
23572
+ * @memberof DomainsPortfolioApi
23573
+ */
23574
+ public completeDomainSetupV1(domain: string, domainsV1PortfolioSetupRequest: DomainsV1PortfolioSetupRequest, options?: RawAxiosRequestConfig) {
23575
+ return DomainsPortfolioApiFp(this.configuration).completeDomainSetupV1(domain, domainsV1PortfolioSetupRequest, options).then((request) => request(this.axios, this.basePath));
23576
+ }
23577
+
23478
23578
  /**
23479
23579
  * 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.
23480
23580
  * @summary Disable domain lock
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.50.1
6
+ * API Version: 1.51.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.50.1
6
+ * API Version: 1.51.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.50.1
6
+ * API Version: 1.51.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.50.1",
51
+ 'User-Agent': "hostinger-typescript-sdk/1.51.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.50.1
4
+ * API Version: 1.51.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
@@ -3632,6 +3632,25 @@ export interface DomainsV1PortfolioRenewalRenewalInformationResource {
3632
3632
  */
3633
3633
  'expires_at': string;
3634
3634
  }
3635
+ /**
3636
+ *
3637
+ * @export
3638
+ * @interface DomainsV1PortfolioSetupRequest
3639
+ */
3640
+ export interface DomainsV1PortfolioSetupRequest {
3641
+ /**
3642
+ *
3643
+ * @type {DomainsV1PortfolioClaimRequestDomainContacts}
3644
+ * @memberof DomainsV1PortfolioSetupRequest
3645
+ */
3646
+ 'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
3647
+ /**
3648
+ * Additional registration data, possible values depends on TLD
3649
+ * @type {object}
3650
+ * @memberof DomainsV1PortfolioSetupRequest
3651
+ */
3652
+ 'additional_details': object;
3653
+ }
3635
3654
  /**
3636
3655
  *
3637
3656
  * @export
@@ -19228,6 +19247,15 @@ export declare const DomainsPortfolioApiAxiosParamCreator: (configuration?: Conf
19228
19247
  * @throws {RequiredError}
19229
19248
  */
19230
19249
  claimFreeDomainV1: (domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19250
+ /**
19251
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
19252
+ * @summary Complete domain setup
19253
+ * @param {string} domain Domain name
19254
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
19255
+ * @param {*} [options] Override http request option.
19256
+ * @throws {RequiredError}
19257
+ */
19258
+ completeDomainSetupV1: (domain: string, domainsV1PortfolioSetupRequest: DomainsV1PortfolioSetupRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19231
19259
  /**
19232
19260
  * 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.
19233
19261
  * @summary Disable domain lock
@@ -19322,6 +19350,15 @@ export declare const DomainsPortfolioApiFp: (configuration?: Configuration) => {
19322
19350
  * @throws {RequiredError}
19323
19351
  */
19324
19352
  claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1PortfolioClaimResource>>;
19353
+ /**
19354
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
19355
+ * @summary Complete domain setup
19356
+ * @param {string} domain Domain name
19357
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
19358
+ * @param {*} [options] Override http request option.
19359
+ * @throws {RequiredError}
19360
+ */
19361
+ completeDomainSetupV1(domain: string, domainsV1PortfolioSetupRequest: DomainsV1PortfolioSetupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
19325
19362
  /**
19326
19363
  * 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.
19327
19364
  * @summary Disable domain lock
@@ -19416,6 +19453,15 @@ export declare const DomainsPortfolioApiFactory: (configuration?: Configuration,
19416
19453
  * @throws {RequiredError}
19417
19454
  */
19418
19455
  claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1PortfolioClaimResource>;
19456
+ /**
19457
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
19458
+ * @summary Complete domain setup
19459
+ * @param {string} domain Domain name
19460
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
19461
+ * @param {*} [options] Override http request option.
19462
+ * @throws {RequiredError}
19463
+ */
19464
+ completeDomainSetupV1(domain: string, domainsV1PortfolioSetupRequest: DomainsV1PortfolioSetupRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
19419
19465
  /**
19420
19466
  * 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.
19421
19467
  * @summary Disable domain lock
@@ -19513,6 +19559,16 @@ export declare class DomainsPortfolioApi extends BaseAPI {
19513
19559
  * @memberof DomainsPortfolioApi
19514
19560
  */
19515
19561
  claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DomainsV1PortfolioClaimResource, any, {}, any>>;
19562
+ /**
19563
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
19564
+ * @summary Complete domain setup
19565
+ * @param {string} domain Domain name
19566
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
19567
+ * @param {*} [options] Override http request option.
19568
+ * @throws {RequiredError}
19569
+ * @memberof DomainsPortfolioApi
19570
+ */
19571
+ completeDomainSetupV1(domain: string, domainsV1PortfolioSetupRequest: DomainsV1PortfolioSetupRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
19516
19572
  /**
19517
19573
  * 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.
19518
19574
  * @summary Disable domain lock
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.50.1
7
+ * API Version: 1.51.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
@@ -7064,6 +7064,43 @@ const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
7064
7064
  options: localVarRequestOptions,
7065
7065
  };
7066
7066
  }),
7067
+ /**
7068
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
7069
+ * @summary Complete domain setup
7070
+ * @param {string} domain Domain name
7071
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
7072
+ * @param {*} [options] Override http request option.
7073
+ * @throws {RequiredError}
7074
+ */
7075
+ completeDomainSetupV1: (domain_1, domainsV1PortfolioSetupRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1PortfolioSetupRequest_1, ...args_1], void 0, function* (domain, domainsV1PortfolioSetupRequest, options = {}) {
7076
+ // verify required parameter 'domain' is not null or undefined
7077
+ (0, common_1.assertParamExists)('completeDomainSetupV1', 'domain', domain);
7078
+ // verify required parameter 'domainsV1PortfolioSetupRequest' is not null or undefined
7079
+ (0, common_1.assertParamExists)('completeDomainSetupV1', 'domainsV1PortfolioSetupRequest', domainsV1PortfolioSetupRequest);
7080
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/setup`
7081
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
7082
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7083
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7084
+ let baseOptions;
7085
+ if (configuration) {
7086
+ baseOptions = configuration.baseOptions;
7087
+ }
7088
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7089
+ const localVarHeaderParameter = {};
7090
+ const localVarQueryParameter = {};
7091
+ // authentication apiToken required
7092
+ // http bearer authentication required
7093
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7094
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7095
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7096
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7097
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7098
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(domainsV1PortfolioSetupRequest, localVarRequestOptions, configuration);
7099
+ return {
7100
+ url: (0, common_1.toPathString)(localVarUrlObj),
7101
+ options: localVarRequestOptions,
7102
+ };
7103
+ }),
7067
7104
  /**
7068
7105
  * 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.
7069
7106
  * @summary Disable domain lock
@@ -7411,6 +7448,22 @@ const DomainsPortfolioApiFp = function (configuration) {
7411
7448
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7412
7449
  });
7413
7450
  },
7451
+ /**
7452
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
7453
+ * @summary Complete domain setup
7454
+ * @param {string} domain Domain name
7455
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
7456
+ * @param {*} [options] Override http request option.
7457
+ * @throws {RequiredError}
7458
+ */
7459
+ completeDomainSetupV1(domain, domainsV1PortfolioSetupRequest, options) {
7460
+ return __awaiter(this, void 0, void 0, function* () {
7461
+ var _a, _b;
7462
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.completeDomainSetupV1(domain, domainsV1PortfolioSetupRequest, options);
7463
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsPortfolioApi.completeDomainSetupV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
7464
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7465
+ });
7466
+ },
7414
7467
  /**
7415
7468
  * 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.
7416
7469
  * @summary Disable domain lock
@@ -7581,6 +7634,17 @@ const DomainsPortfolioApiFactory = function (configuration, basePath, axios) {
7581
7634
  claimFreeDomainV1(domainsV1PortfolioClaimRequest, options) {
7582
7635
  return localVarFp.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(axios, basePath));
7583
7636
  },
7637
+ /**
7638
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
7639
+ * @summary Complete domain setup
7640
+ * @param {string} domain Domain name
7641
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
7642
+ * @param {*} [options] Override http request option.
7643
+ * @throws {RequiredError}
7644
+ */
7645
+ completeDomainSetupV1(domain, domainsV1PortfolioSetupRequest, options) {
7646
+ return localVarFp.completeDomainSetupV1(domain, domainsV1PortfolioSetupRequest, options).then((request) => request(axios, basePath));
7647
+ },
7584
7648
  /**
7585
7649
  * 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.
7586
7650
  * @summary Disable domain lock
@@ -7702,6 +7766,18 @@ class DomainsPortfolioApi extends base_1.BaseAPI {
7702
7766
  claimFreeDomainV1(domainsV1PortfolioClaimRequest, options) {
7703
7767
  return (0, exports.DomainsPortfolioApiFp)(this.configuration).claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(this.axios, this.basePath));
7704
7768
  }
7769
+ /**
7770
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
7771
+ * @summary Complete domain setup
7772
+ * @param {string} domain Domain name
7773
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
7774
+ * @param {*} [options] Override http request option.
7775
+ * @throws {RequiredError}
7776
+ * @memberof DomainsPortfolioApi
7777
+ */
7778
+ completeDomainSetupV1(domain, domainsV1PortfolioSetupRequest, options) {
7779
+ return (0, exports.DomainsPortfolioApiFp)(this.configuration).completeDomainSetupV1(domain, domainsV1PortfolioSetupRequest, options).then((request) => request(this.axios, this.basePath));
7780
+ }
7705
7781
  /**
7706
7782
  * 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.
7707
7783
  * @summary Disable domain lock
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.50.1
4
+ * API Version: 1.51.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.50.1
7
+ * API Version: 1.51.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.50.1
4
+ * API Version: 1.51.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.50.1
7
+ * API Version: 1.51.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.50.1
4
+ * API Version: 1.51.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.50.1
7
+ * API Version: 1.51.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.50.1" }, (_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.51.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.50.1
4
+ * API Version: 1.51.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
@@ -3632,6 +3632,25 @@ export interface DomainsV1PortfolioRenewalRenewalInformationResource {
3632
3632
  */
3633
3633
  'expires_at': string;
3634
3634
  }
3635
+ /**
3636
+ *
3637
+ * @export
3638
+ * @interface DomainsV1PortfolioSetupRequest
3639
+ */
3640
+ export interface DomainsV1PortfolioSetupRequest {
3641
+ /**
3642
+ *
3643
+ * @type {DomainsV1PortfolioClaimRequestDomainContacts}
3644
+ * @memberof DomainsV1PortfolioSetupRequest
3645
+ */
3646
+ 'domain_contacts': DomainsV1PortfolioClaimRequestDomainContacts;
3647
+ /**
3648
+ * Additional registration data, possible values depends on TLD
3649
+ * @type {object}
3650
+ * @memberof DomainsV1PortfolioSetupRequest
3651
+ */
3652
+ 'additional_details': object;
3653
+ }
3635
3654
  /**
3636
3655
  *
3637
3656
  * @export
@@ -19228,6 +19247,15 @@ export declare const DomainsPortfolioApiAxiosParamCreator: (configuration?: Conf
19228
19247
  * @throws {RequiredError}
19229
19248
  */
19230
19249
  claimFreeDomainV1: (domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19250
+ /**
19251
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
19252
+ * @summary Complete domain setup
19253
+ * @param {string} domain Domain name
19254
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
19255
+ * @param {*} [options] Override http request option.
19256
+ * @throws {RequiredError}
19257
+ */
19258
+ completeDomainSetupV1: (domain: string, domainsV1PortfolioSetupRequest: DomainsV1PortfolioSetupRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19231
19259
  /**
19232
19260
  * 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.
19233
19261
  * @summary Disable domain lock
@@ -19322,6 +19350,15 @@ export declare const DomainsPortfolioApiFp: (configuration?: Configuration) => {
19322
19350
  * @throws {RequiredError}
19323
19351
  */
19324
19352
  claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1PortfolioClaimResource>>;
19353
+ /**
19354
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
19355
+ * @summary Complete domain setup
19356
+ * @param {string} domain Domain name
19357
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
19358
+ * @param {*} [options] Override http request option.
19359
+ * @throws {RequiredError}
19360
+ */
19361
+ completeDomainSetupV1(domain: string, domainsV1PortfolioSetupRequest: DomainsV1PortfolioSetupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
19325
19362
  /**
19326
19363
  * 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.
19327
19364
  * @summary Disable domain lock
@@ -19416,6 +19453,15 @@ export declare const DomainsPortfolioApiFactory: (configuration?: Configuration,
19416
19453
  * @throws {RequiredError}
19417
19454
  */
19418
19455
  claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1PortfolioClaimResource>;
19456
+ /**
19457
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
19458
+ * @summary Complete domain setup
19459
+ * @param {string} domain Domain name
19460
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
19461
+ * @param {*} [options] Override http request option.
19462
+ * @throws {RequiredError}
19463
+ */
19464
+ completeDomainSetupV1(domain: string, domainsV1PortfolioSetupRequest: DomainsV1PortfolioSetupRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
19419
19465
  /**
19420
19466
  * 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.
19421
19467
  * @summary Disable domain lock
@@ -19513,6 +19559,16 @@ export declare class DomainsPortfolioApi extends BaseAPI {
19513
19559
  * @memberof DomainsPortfolioApi
19514
19560
  */
19515
19561
  claimFreeDomainV1(domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DomainsV1PortfolioClaimResource, any, {}, any>>;
19562
+ /**
19563
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
19564
+ * @summary Complete domain setup
19565
+ * @param {string} domain Domain name
19566
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
19567
+ * @param {*} [options] Override http request option.
19568
+ * @throws {RequiredError}
19569
+ * @memberof DomainsPortfolioApi
19570
+ */
19571
+ completeDomainSetupV1(domain: string, domainsV1PortfolioSetupRequest: DomainsV1PortfolioSetupRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
19516
19572
  /**
19517
19573
  * 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.
19518
19574
  * @summary Disable domain lock
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.50.1
6
+ * API Version: 1.51.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
@@ -6963,6 +6963,43 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
6963
6963
  options: localVarRequestOptions,
6964
6964
  };
6965
6965
  }),
6966
+ /**
6967
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
6968
+ * @summary Complete domain setup
6969
+ * @param {string} domain Domain name
6970
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
6971
+ * @param {*} [options] Override http request option.
6972
+ * @throws {RequiredError}
6973
+ */
6974
+ completeDomainSetupV1: (domain_1, domainsV1PortfolioSetupRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1PortfolioSetupRequest_1, ...args_1], void 0, function* (domain, domainsV1PortfolioSetupRequest, options = {}) {
6975
+ // verify required parameter 'domain' is not null or undefined
6976
+ assertParamExists('completeDomainSetupV1', 'domain', domain);
6977
+ // verify required parameter 'domainsV1PortfolioSetupRequest' is not null or undefined
6978
+ assertParamExists('completeDomainSetupV1', 'domainsV1PortfolioSetupRequest', domainsV1PortfolioSetupRequest);
6979
+ const localVarPath = `/api/domains/v1/portfolio/{domain}/setup`
6980
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
6981
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6982
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6983
+ let baseOptions;
6984
+ if (configuration) {
6985
+ baseOptions = configuration.baseOptions;
6986
+ }
6987
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6988
+ const localVarHeaderParameter = {};
6989
+ const localVarQueryParameter = {};
6990
+ // authentication apiToken required
6991
+ // http bearer authentication required
6992
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6993
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6994
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6995
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6996
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6997
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioSetupRequest, localVarRequestOptions, configuration);
6998
+ return {
6999
+ url: toPathString(localVarUrlObj),
7000
+ options: localVarRequestOptions,
7001
+ };
7002
+ }),
6966
7003
  /**
6967
7004
  * 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.
6968
7005
  * @summary Disable domain lock
@@ -7309,6 +7346,22 @@ export const DomainsPortfolioApiFp = function (configuration) {
7309
7346
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7310
7347
  });
7311
7348
  },
7349
+ /**
7350
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
7351
+ * @summary Complete domain setup
7352
+ * @param {string} domain Domain name
7353
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
7354
+ * @param {*} [options] Override http request option.
7355
+ * @throws {RequiredError}
7356
+ */
7357
+ completeDomainSetupV1(domain, domainsV1PortfolioSetupRequest, options) {
7358
+ return __awaiter(this, void 0, void 0, function* () {
7359
+ var _a, _b;
7360
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.completeDomainSetupV1(domain, domainsV1PortfolioSetupRequest, options);
7361
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.completeDomainSetupV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
7362
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7363
+ });
7364
+ },
7312
7365
  /**
7313
7366
  * 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.
7314
7367
  * @summary Disable domain lock
@@ -7478,6 +7531,17 @@ export const DomainsPortfolioApiFactory = function (configuration, basePath, axi
7478
7531
  claimFreeDomainV1(domainsV1PortfolioClaimRequest, options) {
7479
7532
  return localVarFp.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(axios, basePath));
7480
7533
  },
7534
+ /**
7535
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
7536
+ * @summary Complete domain setup
7537
+ * @param {string} domain Domain name
7538
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
7539
+ * @param {*} [options] Override http request option.
7540
+ * @throws {RequiredError}
7541
+ */
7542
+ completeDomainSetupV1(domain, domainsV1PortfolioSetupRequest, options) {
7543
+ return localVarFp.completeDomainSetupV1(domain, domainsV1PortfolioSetupRequest, options).then((request) => request(axios, basePath));
7544
+ },
7481
7545
  /**
7482
7546
  * 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.
7483
7547
  * @summary Disable domain lock
@@ -7598,6 +7662,18 @@ export class DomainsPortfolioApi extends BaseAPI {
7598
7662
  claimFreeDomainV1(domainsV1PortfolioClaimRequest, options) {
7599
7663
  return DomainsPortfolioApiFp(this.configuration).claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(this.axios, this.basePath));
7600
7664
  }
7665
+ /**
7666
+ * Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
7667
+ * @summary Complete domain setup
7668
+ * @param {string} domain Domain name
7669
+ * @param {DomainsV1PortfolioSetupRequest} domainsV1PortfolioSetupRequest
7670
+ * @param {*} [options] Override http request option.
7671
+ * @throws {RequiredError}
7672
+ * @memberof DomainsPortfolioApi
7673
+ */
7674
+ completeDomainSetupV1(domain, domainsV1PortfolioSetupRequest, options) {
7675
+ return DomainsPortfolioApiFp(this.configuration).completeDomainSetupV1(domain, domainsV1PortfolioSetupRequest, options).then((request) => request(this.axios, this.basePath));
7676
+ }
7601
7677
  /**
7602
7678
  * 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.
7603
7679
  * @summary Disable domain lock
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.50.1
4
+ * API Version: 1.51.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.50.1
6
+ * API Version: 1.51.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.50.1
4
+ * API Version: 1.51.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.50.1
6
+ * API Version: 1.51.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.50.1
4
+ * API Version: 1.51.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.50.1
6
+ * API Version: 1.51.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.50.1" }, (_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.51.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.50.1
4
+ * API Version: 1.51.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.50.1
6
+ * API Version: 1.51.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.50.1
4
+ * API Version: 1.51.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.50.1
7
+ * API Version: 1.51.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
@@ -5,6 +5,7 @@ All URIs are relative to *https://developers.hostinger.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**claimFreeDomainV1**](#claimfreedomainv1) | **POST** /api/domains/v1/portfolio/claim | Claim free domain|
8
+ |[**completeDomainSetupV1**](#completedomainsetupv1) | **POST** /api/domains/v1/portfolio/{domain}/setup | Complete domain setup|
8
9
  |[**disableDomainLockV1**](#disabledomainlockv1) | **DELETE** /api/domains/v1/portfolio/{domain}/domain-lock | Disable domain lock|
9
10
  |[**disablePrivacyProtectionV1**](#disableprivacyprotectionv1) | **DELETE** /api/domains/v1/portfolio/{domain}/privacy-protection | Disable privacy protection|
10
11
  |[**enableDomainLockV1**](#enabledomainlockv1) | **PUT** /api/domains/v1/portfolio/{domain}/domain-lock | Enable domain lock|
@@ -71,6 +72,65 @@ const { status, data } = await apiInstance.claimFreeDomainV1(
71
72
 
72
73
  [[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)
73
74
 
75
+ # **completeDomainSetupV1**
76
+ > CommonSuccessEmptyResource completeDomainSetupV1(domainsV1PortfolioSetupRequest)
77
+
78
+ Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and without privacy protection. Use `Update domain nameservers` and `Enable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
79
+
80
+ ### Example
81
+
82
+ ```typescript
83
+ import {
84
+ DomainsPortfolioApi,
85
+ Configuration,
86
+ DomainsV1PortfolioSetupRequest
87
+ } from '@hostinger/sdk';
88
+
89
+ const configuration = new Configuration();
90
+ const apiInstance = new DomainsPortfolioApi(configuration);
91
+
92
+ let domain: string; //Domain name (default to undefined)
93
+ let domainsV1PortfolioSetupRequest: DomainsV1PortfolioSetupRequest; //
94
+
95
+ const { status, data } = await apiInstance.completeDomainSetupV1(
96
+ domain,
97
+ domainsV1PortfolioSetupRequest
98
+ );
99
+ ```
100
+
101
+ ### Parameters
102
+
103
+ |Name | Type | Description | Notes|
104
+ |------------- | ------------- | ------------- | -------------|
105
+ | **domainsV1PortfolioSetupRequest** | **DomainsV1PortfolioSetupRequest**| | |
106
+ | **domain** | [**string**] | Domain name | defaults to undefined|
107
+
108
+
109
+ ### Return type
110
+
111
+ **CommonSuccessEmptyResource**
112
+
113
+ ### Authorization
114
+
115
+ [apiToken](../README.md#apiToken)
116
+
117
+ ### HTTP request headers
118
+
119
+ - **Content-Type**: application/json
120
+ - **Accept**: application/json
121
+
122
+
123
+ ### HTTP response details
124
+ | Status code | Description | Response headers |
125
+ |-------------|-------------|------------------|
126
+ |**200** | Success empty response | - |
127
+ |**422** | Validation error response | - |
128
+ |**401** | Unauthenticated response | - |
129
+ |**404** | Error response | - |
130
+ |**500** | Error response | - |
131
+
132
+ [[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)
133
+
74
134
  # **disableDomainLockV1**
75
135
  > CommonSuccessEmptyResource disableDomainLockV1()
76
136
 
@@ -0,0 +1,22 @@
1
+ # DomainsV1PortfolioSetupRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain_contacts** | [**DomainsV1PortfolioClaimRequestDomainContacts**](DomainsV1PortfolioClaimRequestDomainContacts.md) | | [optional] [default to undefined]
9
+ **additional_details** | **object** | Additional registration data, possible values depends on TLD | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { DomainsV1PortfolioSetupRequest } from '@hostinger/sdk';
15
+
16
+ const instance: DomainsV1PortfolioSetupRequest = {
17
+ domain_contacts,
18
+ additional_details,
19
+ };
20
+ ```
21
+
22
+ [[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.50.1
6
+ * API Version: 1.51.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.50.1",
3
+ "version": "1.51.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {