hostinger-api-sdk 2.7.1 → 2.8.1
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 +2 -2
- package/api.ts +29 -17
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +29 -17
- package/dist/api.js +17 -17
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +29 -17
- package/dist/esm/api.js +17 -17
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/DomainsPortfolioApi.md +2 -2
- package/docs/DomainsTransferApi.md +1 -1
- package/docs/HorizonsV1WebsitesWebsiteUrlResource.md +4 -0
- package/docs/HorizonsWebsitesApi.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.8.1
|
|
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
|
|
@@ -7659,7 +7659,7 @@ export class DomainsMoveApi extends BaseAPI {
|
|
|
7659
7659
|
export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
7660
7660
|
return {
|
|
7661
7661
|
/**
|
|
7662
|
-
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
7662
|
+
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A free domain and a free domain transfer from the same plan are alternatives: claiming the free domain removes the plan\'s free domain transfer (`type: free_domain_transfer`). Before making request, confirm with the user which of the two they want. Right after a claim, the removed free domain transfer may still appear in the [domain list endpoint](#tag/domains-portfolio) for a short time; do not claim it. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
7663
7663
|
* @summary Claim free domain
|
|
7664
7664
|
* @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
|
|
7665
7665
|
* @param {*} [options] Override http request option.
|
|
@@ -7921,7 +7921,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
|
7921
7921
|
};
|
|
7922
7922
|
}),
|
|
7923
7923
|
/**
|
|
7924
|
-
* Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
|
|
7924
|
+
* Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. Use this endpoint to view user\'s domain portfolio.
|
|
7925
7925
|
* @summary Get domain list
|
|
7926
7926
|
* @param {*} [options] Override http request option.
|
|
7927
7927
|
* @throws {RequiredError}
|
|
@@ -8060,7 +8060,7 @@ export const DomainsPortfolioApiFp = function (configuration) {
|
|
|
8060
8060
|
const localVarAxiosParamCreator = DomainsPortfolioApiAxiosParamCreator(configuration);
|
|
8061
8061
|
return {
|
|
8062
8062
|
/**
|
|
8063
|
-
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
8063
|
+
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A free domain and a free domain transfer from the same plan are alternatives: claiming the free domain removes the plan\'s free domain transfer (`type: free_domain_transfer`). Before making request, confirm with the user which of the two they want. Right after a claim, the removed free domain transfer may still appear in the [domain list endpoint](#tag/domains-portfolio) for a short time; do not claim it. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
8064
8064
|
* @summary Claim free domain
|
|
8065
8065
|
* @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
|
|
8066
8066
|
* @param {*} [options] Override http request option.
|
|
@@ -8181,7 +8181,7 @@ export const DomainsPortfolioApiFp = function (configuration) {
|
|
|
8181
8181
|
});
|
|
8182
8182
|
},
|
|
8183
8183
|
/**
|
|
8184
|
-
* Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
|
|
8184
|
+
* Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. Use this endpoint to view user\'s domain portfolio.
|
|
8185
8185
|
* @summary Get domain list
|
|
8186
8186
|
* @param {*} [options] Override http request option.
|
|
8187
8187
|
* @throws {RequiredError}
|
|
@@ -8250,7 +8250,7 @@ export const DomainsPortfolioApiFactory = function (configuration, basePath, axi
|
|
|
8250
8250
|
const localVarFp = DomainsPortfolioApiFp(configuration);
|
|
8251
8251
|
return {
|
|
8252
8252
|
/**
|
|
8253
|
-
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
8253
|
+
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A free domain and a free domain transfer from the same plan are alternatives: claiming the free domain removes the plan\'s free domain transfer (`type: free_domain_transfer`). Before making request, confirm with the user which of the two they want. Right after a claim, the removed free domain transfer may still appear in the [domain list endpoint](#tag/domains-portfolio) for a short time; do not claim it. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
8254
8254
|
* @summary Claim free domain
|
|
8255
8255
|
* @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
|
|
8256
8256
|
* @param {*} [options] Override http request option.
|
|
@@ -8331,7 +8331,7 @@ export const DomainsPortfolioApiFactory = function (configuration, basePath, axi
|
|
|
8331
8331
|
return localVarFp.getDomainDetailsV1(domain, options).then((request) => request(axios, basePath));
|
|
8332
8332
|
},
|
|
8333
8333
|
/**
|
|
8334
|
-
* Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
|
|
8334
|
+
* Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. Use this endpoint to view user\'s domain portfolio.
|
|
8335
8335
|
* @summary Get domain list
|
|
8336
8336
|
* @param {*} [options] Override http request option.
|
|
8337
8337
|
* @throws {RequiredError}
|
|
@@ -8380,7 +8380,7 @@ export const DomainsPortfolioApiFactory = function (configuration, basePath, axi
|
|
|
8380
8380
|
*/
|
|
8381
8381
|
export class DomainsPortfolioApi extends BaseAPI {
|
|
8382
8382
|
/**
|
|
8383
|
-
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
8383
|
+
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A free domain and a free domain transfer from the same plan are alternatives: claiming the free domain removes the plan\'s free domain transfer (`type: free_domain_transfer`). Before making request, confirm with the user which of the two they want. Right after a claim, the removed free domain transfer may still appear in the [domain list endpoint](#tag/domains-portfolio) for a short time; do not claim it. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
8384
8384
|
* @summary Claim free domain
|
|
8385
8385
|
* @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
|
|
8386
8386
|
* @param {*} [options] Override http request option.
|
|
@@ -8469,7 +8469,7 @@ export class DomainsPortfolioApi extends BaseAPI {
|
|
|
8469
8469
|
return DomainsPortfolioApiFp(this.configuration).getDomainDetailsV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
8470
8470
|
}
|
|
8471
8471
|
/**
|
|
8472
|
-
* Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
|
|
8472
|
+
* Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. Use this endpoint to view user\'s domain portfolio.
|
|
8473
8473
|
* @summary Get domain list
|
|
8474
8474
|
* @param {*} [options] Override http request option.
|
|
8475
8475
|
* @throws {RequiredError}
|
|
@@ -8520,7 +8520,7 @@ export class DomainsPortfolioApi extends BaseAPI {
|
|
|
8520
8520
|
export const DomainsTransferApiAxiosParamCreator = function (configuration) {
|
|
8521
8521
|
return {
|
|
8522
8522
|
/**
|
|
8523
|
-
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
8523
|
+
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. A free domain and a free domain transfer from the same plan are alternatives: claiming the free domain transfer removes the plan\'s free domain (`type: free_domain`). Before making request, confirm with the user which of the two they want. Right after a claim, the removed free domain may still appear in the [domain list endpoint](#tag/domains-portfolio) for a short time; do not claim it. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
8524
8524
|
* @summary Claim free domain transfer
|
|
8525
8525
|
* @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
|
|
8526
8526
|
* @param {*} [options] Override http request option.
|
|
@@ -8655,7 +8655,7 @@ export const DomainsTransferApiFp = function (configuration) {
|
|
|
8655
8655
|
const localVarAxiosParamCreator = DomainsTransferApiAxiosParamCreator(configuration);
|
|
8656
8656
|
return {
|
|
8657
8657
|
/**
|
|
8658
|
-
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
8658
|
+
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. A free domain and a free domain transfer from the same plan are alternatives: claiming the free domain transfer removes the plan\'s free domain (`type: free_domain`). Before making request, confirm with the user which of the two they want. Right after a claim, the removed free domain may still appear in the [domain list endpoint](#tag/domains-portfolio) for a short time; do not claim it. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
8659
8659
|
* @summary Claim free domain transfer
|
|
8660
8660
|
* @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
|
|
8661
8661
|
* @param {*} [options] Override http request option.
|
|
@@ -8723,7 +8723,7 @@ export const DomainsTransferApiFactory = function (configuration, basePath, axio
|
|
|
8723
8723
|
const localVarFp = DomainsTransferApiFp(configuration);
|
|
8724
8724
|
return {
|
|
8725
8725
|
/**
|
|
8726
|
-
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
8726
|
+
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. A free domain and a free domain transfer from the same plan are alternatives: claiming the free domain transfer removes the plan\'s free domain (`type: free_domain`). Before making request, confirm with the user which of the two they want. Right after a claim, the removed free domain may still appear in the [domain list endpoint](#tag/domains-portfolio) for a short time; do not claim it. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
8727
8727
|
* @summary Claim free domain transfer
|
|
8728
8728
|
* @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
|
|
8729
8729
|
* @param {*} [options] Override http request option.
|
|
@@ -8771,7 +8771,7 @@ export const DomainsTransferApiFactory = function (configuration, basePath, axio
|
|
|
8771
8771
|
*/
|
|
8772
8772
|
export class DomainsTransferApi extends BaseAPI {
|
|
8773
8773
|
/**
|
|
8774
|
-
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
8774
|
+
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. A free domain and a free domain transfer from the same plan are alternatives: claiming the free domain transfer removes the plan\'s free domain (`type: free_domain`). Before making request, confirm with the user which of the two they want. Right after a claim, the removed free domain may still appear in the [domain list endpoint](#tag/domains-portfolio) for a short time; do not claim it. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
8775
8775
|
* @summary Claim free domain transfer
|
|
8776
8776
|
* @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
|
|
8777
8777
|
* @param {*} [options] Override http request option.
|
|
@@ -12695,7 +12695,7 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
12695
12695
|
};
|
|
12696
12696
|
}),
|
|
12697
12697
|
/**
|
|
12698
|
-
* Get the link for the user to open their website in Hostinger Horizons interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger Horizons interface in the provided website URL.
|
|
12698
|
+
* Get the link for the user to open their website in Hostinger Horizons interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `is_generating` is true while changes are being generated, and `actions_in_progress` has `website_publish` while the website is being published. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger Horizons interface in the provided website URL.
|
|
12699
12699
|
* @summary Get website
|
|
12700
12700
|
* @param {string} websiteId The website ID
|
|
12701
12701
|
* @param {*} [options] Override http request option.
|
|
@@ -12831,7 +12831,7 @@ export const HorizonsWebsitesApiFp = function (configuration) {
|
|
|
12831
12831
|
});
|
|
12832
12832
|
},
|
|
12833
12833
|
/**
|
|
12834
|
-
* Get the link for the user to open their website in Hostinger Horizons interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger Horizons interface in the provided website URL.
|
|
12834
|
+
* Get the link for the user to open their website in Hostinger Horizons interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `is_generating` is true while changes are being generated, and `actions_in_progress` has `website_publish` while the website is being published. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger Horizons interface in the provided website URL.
|
|
12835
12835
|
* @summary Get website
|
|
12836
12836
|
* @param {string} websiteId The website ID
|
|
12837
12837
|
* @param {*} [options] Override http request option.
|
|
@@ -12911,7 +12911,7 @@ export const HorizonsWebsitesApiFactory = function (configuration, basePath, axi
|
|
|
12911
12911
|
return localVarFp.getWebsiteListV1(options).then((request) => request(axios, basePath));
|
|
12912
12912
|
},
|
|
12913
12913
|
/**
|
|
12914
|
-
* Get the link for the user to open their website in Hostinger Horizons interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger Horizons interface in the provided website URL.
|
|
12914
|
+
* Get the link for the user to open their website in Hostinger Horizons interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `is_generating` is true while changes are being generated, and `actions_in_progress` has `website_publish` while the website is being published. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger Horizons interface in the provided website URL.
|
|
12915
12915
|
* @summary Get website
|
|
12916
12916
|
* @param {string} websiteId The website ID
|
|
12917
12917
|
* @param {*} [options] Override http request option.
|
|
@@ -12985,7 +12985,7 @@ export class HorizonsWebsitesApi extends BaseAPI {
|
|
|
12985
12985
|
return HorizonsWebsitesApiFp(this.configuration).getWebsiteListV1(options).then((request) => request(this.axios, this.basePath));
|
|
12986
12986
|
}
|
|
12987
12987
|
/**
|
|
12988
|
-
* Get the link for the user to open their website in Hostinger Horizons interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger Horizons interface in the provided website URL.
|
|
12988
|
+
* Get the link for the user to open their website in Hostinger Horizons interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `is_generating` is true while changes are being generated, and `actions_in_progress` has `website_publish` while the website is being published. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger Horizons interface in the provided website URL.
|
|
12989
12989
|
* @summary Get website
|
|
12990
12990
|
* @param {string} websiteId The website ID
|
|
12991
12991
|
* @param {*} [options] Override http request option.
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.8.1
|
|
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: 2.
|
|
6
|
+
* API Version: 2.8.1
|
|
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/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.8.1
|
|
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/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.8.1
|
|
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: 2.
|
|
4
|
+
* API Version: 2.8.1
|
|
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: 2.
|
|
6
|
+
* API Version: 2.8.1
|
|
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/2.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.8.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.8.1
|
|
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: 2.
|
|
6
|
+
* API Version: 2.8.1
|
|
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: 2.
|
|
4
|
+
* API Version: 2.8.1
|
|
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: 2.
|
|
7
|
+
* API Version: 2.8.1
|
|
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
|
|
@@ -20,7 +20,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
20
20
|
# **claimFreeDomainV1**
|
|
21
21
|
> DomainsV1PortfolioClaimResource claimFreeDomainV1(domainsV1PortfolioClaimRequest)
|
|
22
22
|
|
|
23
|
-
Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
23
|
+
Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A free domain and a free domain transfer from the same plan are alternatives: claiming the free domain removes the plan\'s free domain transfer (`type: free_domain_transfer`). Before making request, confirm with the user which of the two they want. Right after a claim, the removed free domain transfer may still appear in the [domain list endpoint](#tag/domains-portfolio) for a short time; do not claim it. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
24
24
|
|
|
25
25
|
### Example
|
|
26
26
|
|
|
@@ -452,7 +452,7 @@ const { status, data } = await apiInstance.getDomainDetailsV1(
|
|
|
452
452
|
# **getDomainListV1**
|
|
453
453
|
> Array<DomainsV1DomainDomainResource> getDomainListV1()
|
|
454
454
|
|
|
455
|
-
Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
|
|
455
|
+
Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. Use this endpoint to view user\'s domain portfolio.
|
|
456
456
|
|
|
457
457
|
### Example
|
|
458
458
|
|
|
@@ -12,7 +12,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
12
12
|
# **claimFreeDomainTransferV1**
|
|
13
13
|
> DomainsV1TransferTransferResource claimFreeDomainTransferV1(domainsV1TransferClaimRequest)
|
|
14
14
|
|
|
15
|
-
Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
15
|
+
Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. A free domain and a free domain transfer from the same plan are alternatives: claiming the free domain transfer removes the plan\'s free domain (`type: free_domain`). Before making request, confirm with the user which of the two they want. Right after a claim, the removed free domain may still appear in the [domain list endpoint](#tag/domains-portfolio) for a short time; do not claim it. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
16
16
|
|
|
17
17
|
### Example
|
|
18
18
|
|
|
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**published_at** | **string** | When the website was last published, or null if it has never been published | [optional] [default to undefined]
|
|
10
10
|
**is_template** | **boolean** | Whether the website is published as a template, so its published pages show a \"Use template\" banner | [optional] [default to undefined]
|
|
11
11
|
**is_in_progress** | **boolean** | Whether Hostinger Horizons is still generating changes or publishing the website. Publishing is refused while it is true, and editing while changes are being generated. An unfinished template migration also refuses publishing, with its own error, without setting this flag. | [optional] [default to undefined]
|
|
12
|
+
**is_generating** | **boolean** | Whether Hostinger Horizons is generating changes to the website. Editing and publishing are refused while it is true | [optional] [default to undefined]
|
|
13
|
+
**actions_in_progress** | **Array<string>** | What is running on the website right now: `website_publish` while it is being published right now, when publishing is refused; empty otherwise. An unfinished template migration also refuses publishing, with its own error, without appearing here. | [optional] [default to undefined]
|
|
12
14
|
**has_ecommerce_store** | **boolean** | Whether the website has an ecommerce store | [optional] [default to undefined]
|
|
13
15
|
|
|
14
16
|
## Example
|
|
@@ -21,6 +23,8 @@ const instance: HorizonsV1WebsitesWebsiteUrlResource = {
|
|
|
21
23
|
published_at,
|
|
22
24
|
is_template,
|
|
23
25
|
is_in_progress,
|
|
26
|
+
is_generating,
|
|
27
|
+
actions_in_progress,
|
|
24
28
|
has_ecommerce_store,
|
|
25
29
|
};
|
|
26
30
|
```
|
|
@@ -226,7 +226,7 @@ This endpoint does not have any parameters.
|
|
|
226
226
|
# **getWebsiteV1**
|
|
227
227
|
> HorizonsV1WebsitesWebsiteUrlResource getWebsiteV1()
|
|
228
228
|
|
|
229
|
-
Get the link for the user to open their website in Hostinger Horizons interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger Horizons interface in the provided website URL.
|
|
229
|
+
Get the link for the user to open their website in Hostinger Horizons interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `is_generating` is true while changes are being generated, and `actions_in_progress` has `website_publish` while the website is being published. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger Horizons interface in the provided website URL.
|
|
230
230
|
|
|
231
231
|
### Example
|
|
232
232
|
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.8.1
|
|
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
|