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 CHANGED
@@ -1,9 +1,9 @@
1
- ## @hostinger/sdk@1.67.0
1
+ ## @hostinger/sdk@1.68.0
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install @hostinger/sdk@1.67.0 --save
8
+ npm install @hostinger/sdk@1.68.0 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.67.0
6
+ * API Version: 1.68.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -9493,11 +9493,17 @@ export interface HostingV1OnboardingsStartOnboardingRequest {
9493
9493
  */
9494
9494
  'type': HostingV1OnboardingsStartOnboardingRequestTypeEnum | null;
9495
9495
  /**
9496
- * Customer-owned domain. Cannot start with \"www.\". Omit or `null` to set the website up on a generated temporary free subdomain.
9496
+ * 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.
9497
9497
  * @type {string}
9498
9498
  * @memberof HostingV1OnboardingsStartOnboardingRequest
9499
9499
  */
9500
9500
  'domain': string | null;
9501
+ /**
9502
+ * 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.
9503
+ * @type {string}
9504
+ * @memberof HostingV1OnboardingsStartOnboardingRequest
9505
+ */
9506
+ 'datacenter_code': string | null;
9501
9507
  /**
9502
9508
  *
9503
9509
  * @type {HostingV1OnboardingsStartOnboardingRequestWordpress}
@@ -9925,7 +9931,7 @@ export interface HostingV1SslToggleHttpsRedirectRequest {
9925
9931
  */
9926
9932
  export interface HostingV1WebsitesCreateWebsiteRequest {
9927
9933
  /**
9928
- * Domain name for the website. Cannot start with \"www.\"
9934
+ * Domain name for the website. Cannot start with \"www.\" and can have at most one subdomain level, e.g. `blog.example.com`.
9929
9935
  * @type {string}
9930
9936
  * @memberof HostingV1WebsitesCreateWebsiteRequest
9931
9937
  */
@@ -9937,7 +9943,7 @@ export interface HostingV1WebsitesCreateWebsiteRequest {
9937
9943
  */
9938
9944
  'order_id': number;
9939
9945
  /**
9940
- * Datacenter code. This parameter is required when creating the first website on a new hosting plan.
9946
+ * 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.
9941
9947
  * @type {string}
9942
9948
  * @memberof HostingV1WebsitesCreateWebsiteRequest
9943
9949
  */
@@ -22211,15 +22217,15 @@ export class AgentReadinessChecksApi extends BaseAPI {
22211
22217
  export const AgentReadinessScansApiAxiosParamCreator = function (configuration?: Configuration) {
22212
22218
  return {
22213
22219
  /**
22214
- * Get the latest agent readiness scan of a website.\\n Scans started with the `Run website 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 website scan` operation first.
22215
- * @summary Get website scan
22220
+ * 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.
22221
+ * @summary Get agent readiness scan
22216
22222
  * @param {string} domain Domain name the scan was run for
22217
22223
  * @param {*} [options] Override http request option.
22218
22224
  * @throws {RequiredError}
22219
22225
  */
22220
- getWebsiteScanV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22226
+ getAgentReadinessScanV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22221
22227
  // verify required parameter 'domain' is not null or undefined
22222
- assertParamExists('getWebsiteScanV1', 'domain', domain)
22228
+ assertParamExists('getAgentReadinessScanV1', 'domain', domain)
22223
22229
  const localVarPath = `/api/agent-readiness/v1/scans/{domain}`
22224
22230
  .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
22225
22231
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -22249,15 +22255,15 @@ export const AgentReadinessScansApiAxiosParamCreator = function (configuration?:
22249
22255
  };
22250
22256
  },
22251
22257
  /**
22252
- * 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 website 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.
22253
- * @summary Run website scan
22258
+ * 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.
22259
+ * @summary Run agent readiness scan
22254
22260
  * @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
22255
22261
  * @param {*} [options] Override http request option.
22256
22262
  * @throws {RequiredError}
22257
22263
  */
22258
- runWebsiteScanV1: async (agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22264
+ runAgentReadinessScanV1: async (agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22259
22265
  // verify required parameter 'agentReadinessV1ScansRunScanRequest' is not null or undefined
22260
- assertParamExists('runWebsiteScanV1', 'agentReadinessV1ScansRunScanRequest', agentReadinessV1ScansRunScanRequest)
22266
+ assertParamExists('runAgentReadinessScanV1', 'agentReadinessV1ScansRunScanRequest', agentReadinessV1ScansRunScanRequest)
22261
22267
  const localVarPath = `/api/agent-readiness/v1/scans`;
22262
22268
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
22263
22269
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -22299,27 +22305,27 @@ export const AgentReadinessScansApiFp = function(configuration?: Configuration)
22299
22305
  const localVarAxiosParamCreator = AgentReadinessScansApiAxiosParamCreator(configuration)
22300
22306
  return {
22301
22307
  /**
22302
- * Get the latest agent readiness scan of a website.\\n Scans started with the `Run website 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 website scan` operation first.
22303
- * @summary Get website scan
22308
+ * 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.
22309
+ * @summary Get agent readiness scan
22304
22310
  * @param {string} domain Domain name the scan was run for
22305
22311
  * @param {*} [options] Override http request option.
22306
22312
  * @throws {RequiredError}
22307
22313
  */
22308
- async getWebsiteScanV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentReadinessV1ScansScanResource>> {
22309
- const localVarAxiosArgs = await localVarAxiosParamCreator.getWebsiteScanV1(domain, options);
22310
- const localVarOperationServerBasePath = operationServerMap['AgentReadinessScansApi.getWebsiteScanV1']?.[0]?.url;
22314
+ async getAgentReadinessScanV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentReadinessV1ScansScanResource>> {
22315
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAgentReadinessScanV1(domain, options);
22316
+ const localVarOperationServerBasePath = operationServerMap['AgentReadinessScansApi.getAgentReadinessScanV1']?.[0]?.url;
22311
22317
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22312
22318
  },
22313
22319
  /**
22314
- * 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 website 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.
22315
- * @summary Run website scan
22320
+ * 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.
22321
+ * @summary Run agent readiness scan
22316
22322
  * @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
22317
22323
  * @param {*} [options] Override http request option.
22318
22324
  * @throws {RequiredError}
22319
22325
  */
22320
- async runWebsiteScanV1(agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentReadinessV1ScansScanResource>> {
22321
- const localVarAxiosArgs = await localVarAxiosParamCreator.runWebsiteScanV1(agentReadinessV1ScansRunScanRequest, options);
22322
- const localVarOperationServerBasePath = operationServerMap['AgentReadinessScansApi.runWebsiteScanV1']?.[0]?.url;
22326
+ async runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentReadinessV1ScansScanResource>> {
22327
+ const localVarAxiosArgs = await localVarAxiosParamCreator.runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest, options);
22328
+ const localVarOperationServerBasePath = operationServerMap['AgentReadinessScansApi.runAgentReadinessScanV1']?.[0]?.url;
22323
22329
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22324
22330
  },
22325
22331
  }
@@ -22333,24 +22339,24 @@ export const AgentReadinessScansApiFactory = function (configuration?: Configura
22333
22339
  const localVarFp = AgentReadinessScansApiFp(configuration)
22334
22340
  return {
22335
22341
  /**
22336
- * Get the latest agent readiness scan of a website.\\n Scans started with the `Run website 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 website scan` operation first.
22337
- * @summary Get website scan
22342
+ * 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.
22343
+ * @summary Get agent readiness scan
22338
22344
  * @param {string} domain Domain name the scan was run for
22339
22345
  * @param {*} [options] Override http request option.
22340
22346
  * @throws {RequiredError}
22341
22347
  */
22342
- getWebsiteScanV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentReadinessV1ScansScanResource> {
22343
- return localVarFp.getWebsiteScanV1(domain, options).then((request) => request(axios, basePath));
22348
+ getAgentReadinessScanV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentReadinessV1ScansScanResource> {
22349
+ return localVarFp.getAgentReadinessScanV1(domain, options).then((request) => request(axios, basePath));
22344
22350
  },
22345
22351
  /**
22346
- * 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 website 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.
22347
- * @summary Run website scan
22352
+ * 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.
22353
+ * @summary Run agent readiness scan
22348
22354
  * @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
22349
22355
  * @param {*} [options] Override http request option.
22350
22356
  * @throws {RequiredError}
22351
22357
  */
22352
- runWebsiteScanV1(agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig): AxiosPromise<AgentReadinessV1ScansScanResource> {
22353
- return localVarFp.runWebsiteScanV1(agentReadinessV1ScansRunScanRequest, options).then((request) => request(axios, basePath));
22358
+ runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig): AxiosPromise<AgentReadinessV1ScansScanResource> {
22359
+ return localVarFp.runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest, options).then((request) => request(axios, basePath));
22354
22360
  },
22355
22361
  };
22356
22362
  };
@@ -22363,27 +22369,27 @@ export const AgentReadinessScansApiFactory = function (configuration?: Configura
22363
22369
  */
22364
22370
  export class AgentReadinessScansApi extends BaseAPI {
22365
22371
  /**
22366
- * Get the latest agent readiness scan of a website.\\n Scans started with the `Run website 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 website scan` operation first.
22367
- * @summary Get website scan
22372
+ * 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.
22373
+ * @summary Get agent readiness scan
22368
22374
  * @param {string} domain Domain name the scan was run for
22369
22375
  * @param {*} [options] Override http request option.
22370
22376
  * @throws {RequiredError}
22371
22377
  * @memberof AgentReadinessScansApi
22372
22378
  */
22373
- public getWebsiteScanV1(domain: string, options?: RawAxiosRequestConfig) {
22374
- return AgentReadinessScansApiFp(this.configuration).getWebsiteScanV1(domain, options).then((request) => request(this.axios, this.basePath));
22379
+ public getAgentReadinessScanV1(domain: string, options?: RawAxiosRequestConfig) {
22380
+ return AgentReadinessScansApiFp(this.configuration).getAgentReadinessScanV1(domain, options).then((request) => request(this.axios, this.basePath));
22375
22381
  }
22376
22382
 
22377
22383
  /**
22378
- * 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 website 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.
22379
- * @summary Run website scan
22384
+ * 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.
22385
+ * @summary Run agent readiness scan
22380
22386
  * @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
22381
22387
  * @param {*} [options] Override http request option.
22382
22388
  * @throws {RequiredError}
22383
22389
  * @memberof AgentReadinessScansApi
22384
22390
  */
22385
- public runWebsiteScanV1(agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig) {
22386
- return AgentReadinessScansApiFp(this.configuration).runWebsiteScanV1(agentReadinessV1ScansRunScanRequest, options).then((request) => request(this.axios, this.basePath));
22391
+ public runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig) {
22392
+ return AgentReadinessScansApiFp(this.configuration).runAgentReadinessScanV1(agentReadinessV1ScansRunScanRequest, options).then((request) => request(this.axios, this.basePath));
22387
22393
  }
22388
22394
  }
22389
22395
 
@@ -36958,10 +36964,11 @@ export class HostingSSLApi extends BaseAPI {
36958
36964
  export const HostingWebsitesApiAxiosParamCreator = function (configuration?: Configuration) {
36959
36965
  return {
36960
36966
  /**
36961
- * 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`. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. 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.
36967
+ * 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.
36962
36968
  * @summary Create website
36963
36969
  * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
36964
36970
  * @param {*} [options] Override http request option.
36971
+ * @deprecated
36965
36972
  * @throws {RequiredError}
36966
36973
  */
36967
36974
  createWebsiteV1: async (hostingV1WebsitesCreateWebsiteRequest: HostingV1WebsitesCreateWebsiteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -37202,7 +37209,7 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration?: Con
37202
37209
  };
37203
37210
  },
37204
37211
  /**
37205
- * 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. The order must already have a hosting account: to create the first website on a new hosting plan use the create website endpoint, which takes the `datacenter_code`. 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.
37212
+ * 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.
37206
37213
  * @summary Start website setup
37207
37214
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
37208
37215
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -37256,10 +37263,11 @@ export const HostingWebsitesApiFp = function(configuration?: Configuration) {
37256
37263
  const localVarAxiosParamCreator = HostingWebsitesApiAxiosParamCreator(configuration)
37257
37264
  return {
37258
37265
  /**
37259
- * 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`. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. 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.
37266
+ * 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.
37260
37267
  * @summary Create website
37261
37268
  * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
37262
37269
  * @param {*} [options] Override http request option.
37270
+ * @deprecated
37263
37271
  * @throws {RequiredError}
37264
37272
  */
37265
37273
  async createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest: HostingV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
@@ -37326,7 +37334,7 @@ export const HostingWebsitesApiFp = function(configuration?: Configuration) {
37326
37334
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37327
37335
  },
37328
37336
  /**
37329
- * 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. The order must already have a hosting account: to create the first website on a new hosting plan use the create website endpoint, which takes the `datacenter_code`. 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.
37337
+ * 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.
37330
37338
  * @summary Start website setup
37331
37339
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
37332
37340
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -37349,10 +37357,11 @@ export const HostingWebsitesApiFactory = function (configuration?: Configuration
37349
37357
  const localVarFp = HostingWebsitesApiFp(configuration)
37350
37358
  return {
37351
37359
  /**
37352
- * 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`. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. 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.
37360
+ * 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.
37353
37361
  * @summary Create website
37354
37362
  * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
37355
37363
  * @param {*} [options] Override http request option.
37364
+ * @deprecated
37356
37365
  * @throws {RequiredError}
37357
37366
  */
37358
37367
  createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest: HostingV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
@@ -37409,7 +37418,7 @@ export const HostingWebsitesApiFactory = function (configuration?: Configuration
37409
37418
  return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(axios, basePath));
37410
37419
  },
37411
37420
  /**
37412
- * 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. The order must already have a hosting account: to create the first website on a new hosting plan use the create website endpoint, which takes the `datacenter_code`. 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.
37421
+ * 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.
37413
37422
  * @summary Start website setup
37414
37423
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
37415
37424
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -37430,10 +37439,11 @@ export const HostingWebsitesApiFactory = function (configuration?: Configuration
37430
37439
  */
37431
37440
  export class HostingWebsitesApi extends BaseAPI {
37432
37441
  /**
37433
- * 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`. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter. 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.
37442
+ * 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.
37434
37443
  * @summary Create website
37435
37444
  * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
37436
37445
  * @param {*} [options] Override http request option.
37446
+ * @deprecated
37437
37447
  * @throws {RequiredError}
37438
37448
  * @memberof HostingWebsitesApi
37439
37449
  */
@@ -37500,7 +37510,7 @@ export class HostingWebsitesApi extends BaseAPI {
37500
37510
  }
37501
37511
 
37502
37512
  /**
37503
- * 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. The order must already have a hosting account: to create the first website on a new hosting plan use the create website endpoint, which takes the `datacenter_code`. 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.
37513
+ * 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.
37504
37514
  * @summary Start website setup
37505
37515
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
37506
37516
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.67.0
6
+ * API Version: 1.68.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/common.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.67.0
6
+ * API Version: 1.68.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.67.0
6
+ * API Version: 1.68.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/1.67.0",
51
+ 'User-Agent': "hostinger-typescript-sdk/1.68.0",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };