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/esm/api.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
|
|
@@ -9283,11 +9283,17 @@ export interface HostingV1OnboardingsStartOnboardingRequest {
|
|
|
9283
9283
|
*/
|
|
9284
9284
|
'type': HostingV1OnboardingsStartOnboardingRequestTypeEnum | null;
|
|
9285
9285
|
/**
|
|
9286
|
-
* Customer-owned domain. Cannot start with \"www.\". Omit or `null` to set the website up on a generated temporary free subdomain.
|
|
9286
|
+
* Customer-owned domain. Cannot start with \"www.\" and can have at most one subdomain level, e.g. `blog.example.com`. Omit or `null` to set the website up on a generated temporary free subdomain.
|
|
9287
9287
|
* @type {string}
|
|
9288
9288
|
* @memberof HostingV1OnboardingsStartOnboardingRequest
|
|
9289
9289
|
*/
|
|
9290
9290
|
'domain': string | null;
|
|
9291
|
+
/**
|
|
9292
|
+
* Datacenter for the hosting account when the order does not have one yet. Omit to use the order\'s default datacenter. Ignored when the order already has a hosting account. List available datacenters to find valid codes.
|
|
9293
|
+
* @type {string}
|
|
9294
|
+
* @memberof HostingV1OnboardingsStartOnboardingRequest
|
|
9295
|
+
*/
|
|
9296
|
+
'datacenter_code': string | null;
|
|
9291
9297
|
/**
|
|
9292
9298
|
*
|
|
9293
9299
|
* @type {HostingV1OnboardingsStartOnboardingRequestWordpress}
|
|
@@ -9711,7 +9717,7 @@ export interface HostingV1SslToggleHttpsRedirectRequest {
|
|
|
9711
9717
|
*/
|
|
9712
9718
|
export interface HostingV1WebsitesCreateWebsiteRequest {
|
|
9713
9719
|
/**
|
|
9714
|
-
* Domain name for the website. Cannot start with \"www.\"
|
|
9720
|
+
* Domain name for the website. Cannot start with \"www.\" and can have at most one subdomain level, e.g. `blog.example.com`.
|
|
9715
9721
|
* @type {string}
|
|
9716
9722
|
* @memberof HostingV1WebsitesCreateWebsiteRequest
|
|
9717
9723
|
*/
|
|
@@ -9723,7 +9729,7 @@ export interface HostingV1WebsitesCreateWebsiteRequest {
|
|
|
9723
9729
|
*/
|
|
9724
9730
|
'order_id': number;
|
|
9725
9731
|
/**
|
|
9726
|
-
* Datacenter
|
|
9732
|
+
* Datacenter for the hosting account when the order does not have one yet. Omit to use the order\'s default datacenter. Ignored when the order already has a hosting account. Must be an available datacenter; list available datacenters to find valid codes.
|
|
9727
9733
|
* @type {string}
|
|
9728
9734
|
* @memberof HostingV1WebsitesCreateWebsiteRequest
|
|
9729
9735
|
*/
|
|
@@ -19871,21 +19877,21 @@ export declare class AgentReadinessChecksApi extends BaseAPI {
|
|
|
19871
19877
|
*/
|
|
19872
19878
|
export declare const AgentReadinessScansApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
19873
19879
|
/**
|
|
19874
|
-
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run
|
|
19875
|
-
* @summary Get
|
|
19880
|
+
* 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.
|
|
19881
|
+
* @summary Get agent readiness scan
|
|
19876
19882
|
* @param {string} domain Domain name the scan was run for
|
|
19877
19883
|
* @param {*} [options] Override http request option.
|
|
19878
19884
|
* @throws {RequiredError}
|
|
19879
19885
|
*/
|
|
19880
|
-
|
|
19886
|
+
getAgentReadinessScanV1: (domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19881
19887
|
/**
|
|
19882
|
-
* 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
|
|
19883
|
-
* @summary Run
|
|
19888
|
+
* 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.
|
|
19889
|
+
* @summary Run agent readiness scan
|
|
19884
19890
|
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
19885
19891
|
* @param {*} [options] Override http request option.
|
|
19886
19892
|
* @throws {RequiredError}
|
|
19887
19893
|
*/
|
|
19888
|
-
|
|
19894
|
+
runAgentReadinessScanV1: (agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19889
19895
|
};
|
|
19890
19896
|
/**
|
|
19891
19897
|
* AgentReadinessScansApi - functional programming interface
|
|
@@ -19893,21 +19899,21 @@ export declare const AgentReadinessScansApiAxiosParamCreator: (configuration?: C
|
|
|
19893
19899
|
*/
|
|
19894
19900
|
export declare const AgentReadinessScansApiFp: (configuration?: Configuration) => {
|
|
19895
19901
|
/**
|
|
19896
|
-
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run
|
|
19897
|
-
* @summary Get
|
|
19902
|
+
* 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.
|
|
19903
|
+
* @summary Get agent readiness scan
|
|
19898
19904
|
* @param {string} domain Domain name the scan was run for
|
|
19899
19905
|
* @param {*} [options] Override http request option.
|
|
19900
19906
|
* @throws {RequiredError}
|
|
19901
19907
|
*/
|
|
19902
|
-
|
|
19908
|
+
getAgentReadinessScanV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentReadinessV1ScansScanResource>>;
|
|
19903
19909
|
/**
|
|
19904
|
-
* 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
|
|
19905
|
-
* @summary Run
|
|
19910
|
+
* 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.
|
|
19911
|
+
* @summary Run agent readiness scan
|
|
19906
19912
|
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
19907
19913
|
* @param {*} [options] Override http request option.
|
|
19908
19914
|
* @throws {RequiredError}
|
|
19909
19915
|
*/
|
|
19910
|
-
|
|
19916
|
+
runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentReadinessV1ScansScanResource>>;
|
|
19911
19917
|
};
|
|
19912
19918
|
/**
|
|
19913
19919
|
* AgentReadinessScansApi - factory interface
|
|
@@ -19915,21 +19921,21 @@ export declare const AgentReadinessScansApiFp: (configuration?: Configuration) =
|
|
|
19915
19921
|
*/
|
|
19916
19922
|
export declare const AgentReadinessScansApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
19917
19923
|
/**
|
|
19918
|
-
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run
|
|
19919
|
-
* @summary Get
|
|
19924
|
+
* 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.
|
|
19925
|
+
* @summary Get agent readiness scan
|
|
19920
19926
|
* @param {string} domain Domain name the scan was run for
|
|
19921
19927
|
* @param {*} [options] Override http request option.
|
|
19922
19928
|
* @throws {RequiredError}
|
|
19923
19929
|
*/
|
|
19924
|
-
|
|
19930
|
+
getAgentReadinessScanV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentReadinessV1ScansScanResource>;
|
|
19925
19931
|
/**
|
|
19926
|
-
* 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
|
|
19927
|
-
* @summary Run
|
|
19932
|
+
* 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.
|
|
19933
|
+
* @summary Run agent readiness scan
|
|
19928
19934
|
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
19929
19935
|
* @param {*} [options] Override http request option.
|
|
19930
19936
|
* @throws {RequiredError}
|
|
19931
19937
|
*/
|
|
19932
|
-
|
|
19938
|
+
runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig): AxiosPromise<AgentReadinessV1ScansScanResource>;
|
|
19933
19939
|
};
|
|
19934
19940
|
/**
|
|
19935
19941
|
* AgentReadinessScansApi - object-oriented interface
|
|
@@ -19939,23 +19945,23 @@ export declare const AgentReadinessScansApiFactory: (configuration?: Configurati
|
|
|
19939
19945
|
*/
|
|
19940
19946
|
export declare class AgentReadinessScansApi extends BaseAPI {
|
|
19941
19947
|
/**
|
|
19942
|
-
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run
|
|
19943
|
-
* @summary Get
|
|
19948
|
+
* 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.
|
|
19949
|
+
* @summary Get agent readiness scan
|
|
19944
19950
|
* @param {string} domain Domain name the scan was run for
|
|
19945
19951
|
* @param {*} [options] Override http request option.
|
|
19946
19952
|
* @throws {RequiredError}
|
|
19947
19953
|
* @memberof AgentReadinessScansApi
|
|
19948
19954
|
*/
|
|
19949
|
-
|
|
19955
|
+
getAgentReadinessScanV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentReadinessV1ScansScanResource, any, {}, any>>;
|
|
19950
19956
|
/**
|
|
19951
|
-
* 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
|
|
19952
|
-
* @summary Run
|
|
19957
|
+
* 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.
|
|
19958
|
+
* @summary Run agent readiness scan
|
|
19953
19959
|
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
19954
19960
|
* @param {*} [options] Override http request option.
|
|
19955
19961
|
* @throws {RequiredError}
|
|
19956
19962
|
* @memberof AgentReadinessScansApi
|
|
19957
19963
|
*/
|
|
19958
|
-
|
|
19964
|
+
runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentReadinessV1ScansScanResource, any, {}, any>>;
|
|
19959
19965
|
}
|
|
19960
19966
|
/**
|
|
19961
19967
|
* BillingCatalogApi - axios parameter creator
|
|
@@ -27059,10 +27065,11 @@ export declare class HostingSSLApi extends BaseAPI {
|
|
|
27059
27065
|
*/
|
|
27060
27066
|
export declare const HostingWebsitesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
27061
27067
|
/**
|
|
27062
|
-
* 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`.
|
|
27068
|
+
* 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.
|
|
27063
27069
|
* @summary Create website
|
|
27064
27070
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
27065
27071
|
* @param {*} [options] Override http request option.
|
|
27072
|
+
* @deprecated
|
|
27066
27073
|
* @throws {RequiredError}
|
|
27067
27074
|
*/
|
|
27068
27075
|
createWebsiteV1: (hostingV1WebsitesCreateWebsiteRequest: HostingV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
@@ -27109,7 +27116,7 @@ export declare const HostingWebsitesApiAxiosParamCreator: (configuration?: Confi
|
|
|
27109
27116
|
*/
|
|
27110
27117
|
listWebsitesV1: (page?: number, perPage?: number, username?: string | null, orderId?: number | null, isEnabled?: boolean | null, domain?: string | null, websiteTypes?: Array<ListWebsitesV1WebsiteTypesEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
27111
27118
|
/**
|
|
27112
|
-
* 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.
|
|
27119
|
+
* 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.
|
|
27113
27120
|
* @summary Start website setup
|
|
27114
27121
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
27115
27122
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -27124,10 +27131,11 @@ export declare const HostingWebsitesApiAxiosParamCreator: (configuration?: Confi
|
|
|
27124
27131
|
*/
|
|
27125
27132
|
export declare const HostingWebsitesApiFp: (configuration?: Configuration) => {
|
|
27126
27133
|
/**
|
|
27127
|
-
* 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`.
|
|
27134
|
+
* 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.
|
|
27128
27135
|
* @summary Create website
|
|
27129
27136
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
27130
27137
|
* @param {*} [options] Override http request option.
|
|
27138
|
+
* @deprecated
|
|
27131
27139
|
* @throws {RequiredError}
|
|
27132
27140
|
*/
|
|
27133
27141
|
createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest: HostingV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
@@ -27174,7 +27182,7 @@ export declare const HostingWebsitesApiFp: (configuration?: Configuration) => {
|
|
|
27174
27182
|
*/
|
|
27175
27183
|
listWebsitesV1(page?: number, perPage?: number, username?: string | null, orderId?: number | null, isEnabled?: boolean | null, domain?: string | null, websiteTypes?: Array<ListWebsitesV1WebsiteTypesEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingListWebsitesV1200Response>>;
|
|
27176
27184
|
/**
|
|
27177
|
-
* 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.
|
|
27185
|
+
* 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.
|
|
27178
27186
|
* @summary Start website setup
|
|
27179
27187
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
27180
27188
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -27189,10 +27197,11 @@ export declare const HostingWebsitesApiFp: (configuration?: Configuration) => {
|
|
|
27189
27197
|
*/
|
|
27190
27198
|
export declare const HostingWebsitesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
27191
27199
|
/**
|
|
27192
|
-
* 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`.
|
|
27200
|
+
* 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.
|
|
27193
27201
|
* @summary Create website
|
|
27194
27202
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
27195
27203
|
* @param {*} [options] Override http request option.
|
|
27204
|
+
* @deprecated
|
|
27196
27205
|
* @throws {RequiredError}
|
|
27197
27206
|
*/
|
|
27198
27207
|
createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest: HostingV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
@@ -27239,7 +27248,7 @@ export declare const HostingWebsitesApiFactory: (configuration?: Configuration,
|
|
|
27239
27248
|
*/
|
|
27240
27249
|
listWebsitesV1(page?: number, perPage?: number, username?: string | null, orderId?: number | null, isEnabled?: boolean | null, domain?: string | null, websiteTypes?: Array<ListWebsitesV1WebsiteTypesEnum>, options?: RawAxiosRequestConfig): AxiosPromise<HostingListWebsitesV1200Response>;
|
|
27241
27250
|
/**
|
|
27242
|
-
* 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.
|
|
27251
|
+
* 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.
|
|
27243
27252
|
* @summary Start website setup
|
|
27244
27253
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
27245
27254
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -27256,10 +27265,11 @@ export declare const HostingWebsitesApiFactory: (configuration?: Configuration,
|
|
|
27256
27265
|
*/
|
|
27257
27266
|
export declare class HostingWebsitesApi extends BaseAPI {
|
|
27258
27267
|
/**
|
|
27259
|
-
* 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`.
|
|
27268
|
+
* 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.
|
|
27260
27269
|
* @summary Create website
|
|
27261
27270
|
* @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
|
|
27262
27271
|
* @param {*} [options] Override http request option.
|
|
27272
|
+
* @deprecated
|
|
27263
27273
|
* @throws {RequiredError}
|
|
27264
27274
|
* @memberof HostingWebsitesApi
|
|
27265
27275
|
*/
|
|
@@ -27311,7 +27321,7 @@ export declare class HostingWebsitesApi extends BaseAPI {
|
|
|
27311
27321
|
*/
|
|
27312
27322
|
listWebsitesV1(page?: number, perPage?: number, username?: string | null, orderId?: number | null, isEnabled?: boolean | null, domain?: string | null, websiteTypes?: Array<ListWebsitesV1WebsiteTypesEnum>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingListWebsitesV1200Response, any, {}, any>>;
|
|
27313
27323
|
/**
|
|
27314
|
-
* 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.
|
|
27324
|
+
* 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.
|
|
27315
27325
|
* @summary Start website setup
|
|
27316
27326
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
27317
27327
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|