hostinger-api-sdk 1.67.0 → 1.68.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 +2 -2
- package/api.ts +56 -46
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +46 -36
- package/dist/api.js +47 -43
- 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 +46 -36
- package/dist/esm/api.js +47 -43
- 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/AgentReadinessScansApi.md +10 -10
- package/docs/HostingV1OnboardingsStartOnboardingRequest.md +3 -1
- package/docs/HostingV1WebsitesCreateWebsiteRequest.md +2 -2
- package/docs/HostingWebsitesApi.md +3 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.68.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
|
|
@@ -4858,15 +4858,15 @@ exports.AgentReadinessChecksApi = AgentReadinessChecksApi;
|
|
|
4858
4858
|
const AgentReadinessScansApiAxiosParamCreator = function (configuration) {
|
|
4859
4859
|
return {
|
|
4860
4860
|
/**
|
|
4861
|
-
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run
|
|
4862
|
-
* @summary Get
|
|
4861
|
+
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run agent readiness scan` operation are asynchronous. While the status is `pending`, the result fields are null; wait a few seconds and call this operation again until the status is `completed` or `failed`. A `failed` scan is not retried; run the scan again.\\n A completed scan has a 0-100 score, a letter grade, a score per category, and the result of every check with the evidence found and how to fix it. Check names are listed by the `List checks` operation.\\n Returns 404 when the domain has never been scanned; use the `Run agent readiness scan` operation first.
|
|
4862
|
+
* @summary Get agent readiness scan
|
|
4863
4863
|
* @param {string} domain Domain name the scan was run for
|
|
4864
4864
|
* @param {*} [options] Override http request option.
|
|
4865
4865
|
* @throws {RequiredError}
|
|
4866
4866
|
*/
|
|
4867
|
-
|
|
4867
|
+
getAgentReadinessScanV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
4868
4868
|
// verify required parameter 'domain' is not null or undefined
|
|
4869
|
-
(0, common_1.assertParamExists)('
|
|
4869
|
+
(0, common_1.assertParamExists)('getAgentReadinessScanV1', 'domain', domain);
|
|
4870
4870
|
const localVarPath = `/api/agent-readiness/v1/scans/{domain}`
|
|
4871
4871
|
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4872
4872
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -4890,15 +4890,15 @@ const AgentReadinessScansApiAxiosParamCreator = function (configuration) {
|
|
|
4890
4890
|
};
|
|
4891
4891
|
}),
|
|
4892
4892
|
/**
|
|
4893
|
-
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get
|
|
4894
|
-
* @summary Run
|
|
4893
|
+
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get agent readiness scan` operation with the same domain every few seconds until its status is `completed` or `failed`. The scan itself is limited to 60 seconds, plus any time it waits in the queue. A `failed` scan is not retried; run this operation again.\\n Starting a scan for a domain that already has a pending scan from the last 5 minutes returns that scan instead of starting a new one.
|
|
4894
|
+
* @summary Run agent readiness scan
|
|
4895
4895
|
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
4896
4896
|
* @param {*} [options] Override http request option.
|
|
4897
4897
|
* @throws {RequiredError}
|
|
4898
4898
|
*/
|
|
4899
|
-
|
|
4899
|
+
runAgentReadinessScanV1: (agentReadinessV1ScansRunScanRequest_1, ...args_1) => __awaiter(this, [agentReadinessV1ScansRunScanRequest_1, ...args_1], void 0, function* (agentReadinessV1ScansRunScanRequest, options = {}) {
|
|
4900
4900
|
// verify required parameter 'agentReadinessV1ScansRunScanRequest' is not null or undefined
|
|
4901
|
-
(0, common_1.assertParamExists)('
|
|
4901
|
+
(0, common_1.assertParamExists)('runAgentReadinessScanV1', 'agentReadinessV1ScansRunScanRequest', agentReadinessV1ScansRunScanRequest);
|
|
4902
4902
|
const localVarPath = `/api/agent-readiness/v1/scans`;
|
|
4903
4903
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4904
4904
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4933,32 +4933,32 @@ const AgentReadinessScansApiFp = function (configuration) {
|
|
|
4933
4933
|
const localVarAxiosParamCreator = (0, exports.AgentReadinessScansApiAxiosParamCreator)(configuration);
|
|
4934
4934
|
return {
|
|
4935
4935
|
/**
|
|
4936
|
-
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run
|
|
4937
|
-
* @summary Get
|
|
4936
|
+
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run agent readiness scan` operation are asynchronous. While the status is `pending`, the result fields are null; wait a few seconds and call this operation again until the status is `completed` or `failed`. A `failed` scan is not retried; run the scan again.\\n A completed scan has a 0-100 score, a letter grade, a score per category, and the result of every check with the evidence found and how to fix it. Check names are listed by the `List checks` operation.\\n Returns 404 when the domain has never been scanned; use the `Run agent readiness scan` operation first.
|
|
4937
|
+
* @summary Get agent readiness scan
|
|
4938
4938
|
* @param {string} domain Domain name the scan was run for
|
|
4939
4939
|
* @param {*} [options] Override http request option.
|
|
4940
4940
|
* @throws {RequiredError}
|
|
4941
4941
|
*/
|
|
4942
|
-
|
|
4942
|
+
getAgentReadinessScanV1(domain, options) {
|
|
4943
4943
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4944
4944
|
var _a, _b;
|
|
4945
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4946
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgentReadinessScansApi.
|
|
4945
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAgentReadinessScanV1(domain, options);
|
|
4946
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgentReadinessScansApi.getAgentReadinessScanV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4947
4947
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4948
4948
|
});
|
|
4949
4949
|
},
|
|
4950
4950
|
/**
|
|
4951
|
-
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get
|
|
4952
|
-
* @summary Run
|
|
4951
|
+
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get agent readiness scan` operation with the same domain every few seconds until its status is `completed` or `failed`. The scan itself is limited to 60 seconds, plus any time it waits in the queue. A `failed` scan is not retried; run this operation again.\\n Starting a scan for a domain that already has a pending scan from the last 5 minutes returns that scan instead of starting a new one.
|
|
4952
|
+
* @summary Run agent readiness scan
|
|
4953
4953
|
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
4954
4954
|
* @param {*} [options] Override http request option.
|
|
4955
4955
|
* @throws {RequiredError}
|
|
4956
4956
|
*/
|
|
4957
|
-
|
|
4957
|
+
runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest, options) {
|
|
4958
4958
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4959
4959
|
var _a, _b;
|
|
4960
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4961
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgentReadinessScansApi.
|
|
4960
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest, options);
|
|
4961
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['AgentReadinessScansApi.runAgentReadinessScanV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4962
4962
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4963
4963
|
});
|
|
4964
4964
|
},
|
|
@@ -4973,24 +4973,24 @@ const AgentReadinessScansApiFactory = function (configuration, basePath, axios)
|
|
|
4973
4973
|
const localVarFp = (0, exports.AgentReadinessScansApiFp)(configuration);
|
|
4974
4974
|
return {
|
|
4975
4975
|
/**
|
|
4976
|
-
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run
|
|
4977
|
-
* @summary Get
|
|
4976
|
+
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run agent readiness scan` operation are asynchronous. While the status is `pending`, the result fields are null; wait a few seconds and call this operation again until the status is `completed` or `failed`. A `failed` scan is not retried; run the scan again.\\n A completed scan has a 0-100 score, a letter grade, a score per category, and the result of every check with the evidence found and how to fix it. Check names are listed by the `List checks` operation.\\n Returns 404 when the domain has never been scanned; use the `Run agent readiness scan` operation first.
|
|
4977
|
+
* @summary Get agent readiness scan
|
|
4978
4978
|
* @param {string} domain Domain name the scan was run for
|
|
4979
4979
|
* @param {*} [options] Override http request option.
|
|
4980
4980
|
* @throws {RequiredError}
|
|
4981
4981
|
*/
|
|
4982
|
-
|
|
4983
|
-
return localVarFp.
|
|
4982
|
+
getAgentReadinessScanV1(domain, options) {
|
|
4983
|
+
return localVarFp.getAgentReadinessScanV1(domain, options).then((request) => request(axios, basePath));
|
|
4984
4984
|
},
|
|
4985
4985
|
/**
|
|
4986
|
-
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get
|
|
4987
|
-
* @summary Run
|
|
4986
|
+
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get agent readiness scan` operation with the same domain every few seconds until its status is `completed` or `failed`. The scan itself is limited to 60 seconds, plus any time it waits in the queue. A `failed` scan is not retried; run this operation again.\\n Starting a scan for a domain that already has a pending scan from the last 5 minutes returns that scan instead of starting a new one.
|
|
4987
|
+
* @summary Run agent readiness scan
|
|
4988
4988
|
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
4989
4989
|
* @param {*} [options] Override http request option.
|
|
4990
4990
|
* @throws {RequiredError}
|
|
4991
4991
|
*/
|
|
4992
|
-
|
|
4993
|
-
return localVarFp.
|
|
4992
|
+
runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest, options) {
|
|
4993
|
+
return localVarFp.runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest, options).then((request) => request(axios, basePath));
|
|
4994
4994
|
},
|
|
4995
4995
|
};
|
|
4996
4996
|
};
|
|
@@ -5003,26 +5003,26 @@ exports.AgentReadinessScansApiFactory = AgentReadinessScansApiFactory;
|
|
|
5003
5003
|
*/
|
|
5004
5004
|
class AgentReadinessScansApi extends base_1.BaseAPI {
|
|
5005
5005
|
/**
|
|
5006
|
-
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run
|
|
5007
|
-
* @summary Get
|
|
5006
|
+
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run agent readiness scan` operation are asynchronous. While the status is `pending`, the result fields are null; wait a few seconds and call this operation again until the status is `completed` or `failed`. A `failed` scan is not retried; run the scan again.\\n A completed scan has a 0-100 score, a letter grade, a score per category, and the result of every check with the evidence found and how to fix it. Check names are listed by the `List checks` operation.\\n Returns 404 when the domain has never been scanned; use the `Run agent readiness scan` operation first.
|
|
5007
|
+
* @summary Get agent readiness scan
|
|
5008
5008
|
* @param {string} domain Domain name the scan was run for
|
|
5009
5009
|
* @param {*} [options] Override http request option.
|
|
5010
5010
|
* @throws {RequiredError}
|
|
5011
5011
|
* @memberof AgentReadinessScansApi
|
|
5012
5012
|
*/
|
|
5013
|
-
|
|
5014
|
-
return (0, exports.AgentReadinessScansApiFp)(this.configuration).
|
|
5013
|
+
getAgentReadinessScanV1(domain, options) {
|
|
5014
|
+
return (0, exports.AgentReadinessScansApiFp)(this.configuration).getAgentReadinessScanV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
5015
5015
|
}
|
|
5016
5016
|
/**
|
|
5017
|
-
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get
|
|
5018
|
-
* @summary Run
|
|
5017
|
+
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get agent readiness scan` operation with the same domain every few seconds until its status is `completed` or `failed`. The scan itself is limited to 60 seconds, plus any time it waits in the queue. A `failed` scan is not retried; run this operation again.\\n Starting a scan for a domain that already has a pending scan from the last 5 minutes returns that scan instead of starting a new one.
|
|
5018
|
+
* @summary Run agent readiness scan
|
|
5019
5019
|
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
5020
5020
|
* @param {*} [options] Override http request option.
|
|
5021
5021
|
* @throws {RequiredError}
|
|
5022
5022
|
* @memberof AgentReadinessScansApi
|
|
5023
5023
|
*/
|
|
5024
|
-
|
|
5025
|
-
return (0, exports.AgentReadinessScansApiFp)(this.configuration).
|
|
5024
|
+
runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest, options) {
|
|
5025
|
+
return (0, exports.AgentReadinessScansApiFp)(this.configuration).runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5026
5026
|
}
|
|
5027
5027
|
}
|
|
5028
5028
|
exports.AgentReadinessScansApi = AgentReadinessScansApi;
|
|
@@ -18774,10 +18774,11 @@ exports.HostingSSLApi = HostingSSLApi;
|
|
|
18774
18774
|
const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
18775
18775
|
return {
|
|
18776
18776
|
/**
|
|
18777
|
-
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`.
|
|
18777
|
+
* Deprecated: use `POST /api/hosting/v1/orders/{order_id}/onboardings` (start website setup) instead. It takes the same `domain` and `datacenter_code`, can also install WordPress, and returns the created setup. Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`. When the order has no hosting account yet, a new hosting account is set up first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
18778
18778
|
* @summary Create website
|
|
18779
18779
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
18780
18780
|
* @param {*} [options] Override http request option.
|
|
18781
|
+
* @deprecated
|
|
18781
18782
|
* @throws {RequiredError}
|
|
18782
18783
|
*/
|
|
18783
18784
|
createWebsiteV1: (hostingV1WebsitesCreateWebsiteRequest_1, ...args_1) => __awaiter(this, [hostingV1WebsitesCreateWebsiteRequest_1, ...args_1], void 0, function* (hostingV1WebsitesCreateWebsiteRequest, options = {}) {
|
|
@@ -18976,7 +18977,7 @@ const HostingWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
18976
18977
|
};
|
|
18977
18978
|
}),
|
|
18978
18979
|
/**
|
|
18979
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain.
|
|
18980
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
18980
18981
|
* @summary Start website setup
|
|
18981
18982
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
18982
18983
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -19023,10 +19024,11 @@ const HostingWebsitesApiFp = function (configuration) {
|
|
|
19023
19024
|
const localVarAxiosParamCreator = (0, exports.HostingWebsitesApiAxiosParamCreator)(configuration);
|
|
19024
19025
|
return {
|
|
19025
19026
|
/**
|
|
19026
|
-
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`.
|
|
19027
|
+
* Deprecated: use `POST /api/hosting/v1/orders/{order_id}/onboardings` (start website setup) instead. It takes the same `domain` and `datacenter_code`, can also install WordPress, and returns the created setup. Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`. When the order has no hosting account yet, a new hosting account is set up first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
19027
19028
|
* @summary Create website
|
|
19028
19029
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
19029
19030
|
* @param {*} [options] Override http request option.
|
|
19031
|
+
* @deprecated
|
|
19030
19032
|
* @throws {RequiredError}
|
|
19031
19033
|
*/
|
|
19032
19034
|
createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options) {
|
|
@@ -19108,7 +19110,7 @@ const HostingWebsitesApiFp = function (configuration) {
|
|
|
19108
19110
|
});
|
|
19109
19111
|
},
|
|
19110
19112
|
/**
|
|
19111
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain.
|
|
19113
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
19112
19114
|
* @summary Start website setup
|
|
19113
19115
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
19114
19116
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -19134,10 +19136,11 @@ const HostingWebsitesApiFactory = function (configuration, basePath, axios) {
|
|
|
19134
19136
|
const localVarFp = (0, exports.HostingWebsitesApiFp)(configuration);
|
|
19135
19137
|
return {
|
|
19136
19138
|
/**
|
|
19137
|
-
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`.
|
|
19139
|
+
* Deprecated: use `POST /api/hosting/v1/orders/{order_id}/onboardings` (start website setup) instead. It takes the same `domain` and `datacenter_code`, can also install WordPress, and returns the created setup. Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`. When the order has no hosting account yet, a new hosting account is set up first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
19138
19140
|
* @summary Create website
|
|
19139
19141
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
19140
19142
|
* @param {*} [options] Override http request option.
|
|
19143
|
+
* @deprecated
|
|
19141
19144
|
* @throws {RequiredError}
|
|
19142
19145
|
*/
|
|
19143
19146
|
createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest, options) {
|
|
@@ -19194,7 +19197,7 @@ const HostingWebsitesApiFactory = function (configuration, basePath, axios) {
|
|
|
19194
19197
|
return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(axios, basePath));
|
|
19195
19198
|
},
|
|
19196
19199
|
/**
|
|
19197
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain.
|
|
19200
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
19198
19201
|
* @summary Start website setup
|
|
19199
19202
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
19200
19203
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -19215,10 +19218,11 @@ exports.HostingWebsitesApiFactory = HostingWebsitesApiFactory;
|
|
|
19215
19218
|
*/
|
|
19216
19219
|
class HostingWebsitesApi extends base_1.BaseAPI {
|
|
19217
19220
|
/**
|
|
19218
|
-
* Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`.
|
|
19221
|
+
* Deprecated: use `POST /api/hosting/v1/orders/{order_id}/onboardings` (start website setup) instead. It takes the same `domain` and `datacenter_code`, can also install WordPress, and returns the created setup. Create a new website for the authenticated client. You must choose which hosting order to create this website on. Pass that order as `order_id` together with the domain name. List orders to see available IDs; the website is provisioned on that order\'s hosting plan. Only Web and Cloud hosting orders are accepted. To create a website on an Agency Plan order, use `POST /api/agency-hosting/v1/orders/{order_id}/websites/setups`. When the order has no hosting account yet, a new hosting account is set up first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Subsequent websites will be hosted on the same datacenter automatically. Website creation is asynchronous and takes up to a few minutes. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. While the setup is `running`, endpoints that operate on the website may respond with `404` or `409`. `is_enabled` on the websites list reflects suspension, not readiness.
|
|
19219
19222
|
* @summary Create website
|
|
19220
19223
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
19221
19224
|
* @param {*} [options] Override http request option.
|
|
19225
|
+
* @deprecated
|
|
19222
19226
|
* @throws {RequiredError}
|
|
19223
19227
|
* @memberof HostingWebsitesApi
|
|
19224
19228
|
*/
|
|
@@ -19280,7 +19284,7 @@ class HostingWebsitesApi extends base_1.BaseAPI {
|
|
|
19280
19284
|
return (0, exports.HostingWebsitesApiFp)(this.configuration).listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(this.axios, this.basePath));
|
|
19281
19285
|
}
|
|
19282
19286
|
/**
|
|
19283
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain.
|
|
19287
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
19284
19288
|
* @summary Start website setup
|
|
19285
19289
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
19286
19290
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.68.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.
|
|
7
|
+
* API Version: 1.68.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.
|
|
4
|
+
* API Version: 1.68.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.
|
|
7
|
+
* API Version: 1.68.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/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.68.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/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.68.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.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.68.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|