hostinger-api-sdk 1.67.1 → 2.0.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/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.67.1
4
+ * API Version: 2.0.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 code. This parameter is required when creating the first website on a new hosting plan.
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
  */
@@ -16732,6 +16738,37 @@ export declare const WordPressV1ContentGenerateImagesRequestImageTypeEnum: {
16732
16738
  readonly Logo: "logo";
16733
16739
  };
16734
16740
  export type WordPressV1ContentGenerateImagesRequestImageTypeEnum = typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum[keyof typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum];
16741
+ /**
16742
+ * Single image generated by the AI image generator.
16743
+ * @export
16744
+ * @interface WordPressV1ContentGeneratedImageResource
16745
+ */
16746
+ export interface WordPressV1ContentGeneratedImageResource {
16747
+ /**
16748
+ * Temporary URL of the generated image, valid until the `expires_at` time of the result
16749
+ * @type {string}
16750
+ * @memberof WordPressV1ContentGeneratedImageResource
16751
+ */
16752
+ 'url': string;
16753
+ /**
16754
+ * Image width in pixels
16755
+ * @type {number}
16756
+ * @memberof WordPressV1ContentGeneratedImageResource
16757
+ */
16758
+ 'width': number;
16759
+ /**
16760
+ * Image height in pixels
16761
+ * @type {number}
16762
+ * @memberof WordPressV1ContentGeneratedImageResource
16763
+ */
16764
+ 'height': number;
16765
+ /**
16766
+ * MIME type of the image
16767
+ * @type {string}
16768
+ * @memberof WordPressV1ContentGeneratedImageResource
16769
+ */
16770
+ 'content_type': string;
16771
+ }
16735
16772
  /**
16736
16773
  * Images generated by the AI image generator.
16737
16774
  * @export
@@ -16739,17 +16776,78 @@ export type WordPressV1ContentGenerateImagesRequestImageTypeEnum = typeof WordPr
16739
16776
  */
16740
16777
  export interface WordPressV1ContentGeneratedImagesResource {
16741
16778
  /**
16742
- * Generated images, each encoded as a base64 string
16743
- * @type {Array<string>}
16779
+ * Generated images, each available at a temporary URL
16780
+ * @type {Array<WordPressV1ContentGeneratedImageResource>}
16744
16781
  * @memberof WordPressV1ContentGeneratedImagesResource
16745
16782
  */
16746
- 'images': Array<string>;
16783
+ 'images': Array<WordPressV1ContentGeneratedImageResource>;
16747
16784
  /**
16748
- * MIME type shared by all returned images
16785
+ * Time after which the image URLs stop working. Download the images before then.
16749
16786
  * @type {string}
16750
16787
  * @memberof WordPressV1ContentGeneratedImagesResource
16751
16788
  */
16752
- 'content_type': string;
16789
+ 'expires_at': string;
16790
+ }
16791
+ /**
16792
+ * State of an AI content generation and, once completed, its result.
16793
+ * @export
16794
+ * @interface WordPressV1ContentGenerationResource
16795
+ */
16796
+ export interface WordPressV1ContentGenerationResource {
16797
+ /**
16798
+ * Generation ID (UUID) used to poll for the result
16799
+ * @type {string}
16800
+ * @memberof WordPressV1ContentGenerationResource
16801
+ */
16802
+ 'generation_id': string;
16803
+ /**
16804
+ * Kind of generation, determines the shape of `result`
16805
+ * @type {string}
16806
+ * @memberof WordPressV1ContentGenerationResource
16807
+ */
16808
+ 'type': WordPressV1ContentGenerationResourceTypeEnum;
16809
+ /**
16810
+ * `in-progress` while the generation is still running, `completed` once `result` is available, `failed` when the generation stopped without a result.
16811
+ * @type {string}
16812
+ * @memberof WordPressV1ContentGenerationResource
16813
+ */
16814
+ 'status': WordPressV1ContentGenerationResourceStatusEnum;
16815
+ /**
16816
+ *
16817
+ * @type {WordPressV1ContentGenerationResourceResult}
16818
+ * @memberof WordPressV1ContentGenerationResource
16819
+ */
16820
+ 'result': WordPressV1ContentGenerationResourceResult | null;
16821
+ }
16822
+ export declare const WordPressV1ContentGenerationResourceTypeEnum: {
16823
+ readonly WebsiteGeneration: "website-generation";
16824
+ readonly ImageGeneration: "image-generation";
16825
+ };
16826
+ export type WordPressV1ContentGenerationResourceTypeEnum = typeof WordPressV1ContentGenerationResourceTypeEnum[keyof typeof WordPressV1ContentGenerationResourceTypeEnum];
16827
+ export declare const WordPressV1ContentGenerationResourceStatusEnum: {
16828
+ readonly InProgress: "in-progress";
16829
+ readonly Completed: "completed";
16830
+ readonly Failed: "failed";
16831
+ };
16832
+ export type WordPressV1ContentGenerationResourceStatusEnum = typeof WordPressV1ContentGenerationResourceStatusEnum[keyof typeof WordPressV1ContentGenerationResourceStatusEnum];
16833
+ /**
16834
+ * Generated content, `null` until the status is `completed`. For `image-generation` it is the generated images object; for `website-generation` it is the generated website document.
16835
+ * @export
16836
+ * @interface WordPressV1ContentGenerationResourceResult
16837
+ */
16838
+ export interface WordPressV1ContentGenerationResourceResult {
16839
+ /**
16840
+ * Generated images, each available at a temporary URL
16841
+ * @type {Array<WordPressV1ContentGeneratedImageResource>}
16842
+ * @memberof WordPressV1ContentGenerationResourceResult
16843
+ */
16844
+ 'images': Array<WordPressV1ContentGeneratedImageResource>;
16845
+ /**
16846
+ * Time after which the image URLs stop working. Download the images before then.
16847
+ * @type {string}
16848
+ * @memberof WordPressV1ContentGenerationResourceResult
16849
+ */
16850
+ 'expires_at': string;
16753
16851
  }
16754
16852
  /**
16755
16853
  *
@@ -27059,10 +27157,11 @@ export declare class HostingSSLApi extends BaseAPI {
27059
27157
  */
27060
27158
  export declare const HostingWebsitesApiAxiosParamCreator: (configuration?: Configuration) => {
27061
27159
  /**
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`. 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.
27160
+ * 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
27161
  * @summary Create website
27064
27162
  * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
27065
27163
  * @param {*} [options] Override http request option.
27164
+ * @deprecated
27066
27165
  * @throws {RequiredError}
27067
27166
  */
27068
27167
  createWebsiteV1: (hostingV1WebsitesCreateWebsiteRequest: HostingV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
@@ -27109,7 +27208,7 @@ export declare const HostingWebsitesApiAxiosParamCreator: (configuration?: Confi
27109
27208
  */
27110
27209
  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
27210
  /**
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. 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.
27211
+ * 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
27212
  * @summary Start website setup
27114
27213
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
27115
27214
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -27124,10 +27223,11 @@ export declare const HostingWebsitesApiAxiosParamCreator: (configuration?: Confi
27124
27223
  */
27125
27224
  export declare const HostingWebsitesApiFp: (configuration?: Configuration) => {
27126
27225
  /**
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`. 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.
27226
+ * 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
27227
  * @summary Create website
27129
27228
  * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
27130
27229
  * @param {*} [options] Override http request option.
27230
+ * @deprecated
27131
27231
  * @throws {RequiredError}
27132
27232
  */
27133
27233
  createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest: HostingV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
@@ -27174,7 +27274,7 @@ export declare const HostingWebsitesApiFp: (configuration?: Configuration) => {
27174
27274
  */
27175
27275
  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
27276
  /**
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. 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.
27277
+ * 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
27278
  * @summary Start website setup
27179
27279
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
27180
27280
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -27189,10 +27289,11 @@ export declare const HostingWebsitesApiFp: (configuration?: Configuration) => {
27189
27289
  */
27190
27290
  export declare const HostingWebsitesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
27191
27291
  /**
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`. 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.
27292
+ * 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
27293
  * @summary Create website
27194
27294
  * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
27195
27295
  * @param {*} [options] Override http request option.
27296
+ * @deprecated
27196
27297
  * @throws {RequiredError}
27197
27298
  */
27198
27299
  createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest: HostingV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
@@ -27239,7 +27340,7 @@ export declare const HostingWebsitesApiFactory: (configuration?: Configuration,
27239
27340
  */
27240
27341
  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
27342
  /**
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. 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.
27343
+ * 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
27344
  * @summary Start website setup
27244
27345
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
27245
27346
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -27256,10 +27357,11 @@ export declare const HostingWebsitesApiFactory: (configuration?: Configuration,
27256
27357
  */
27257
27358
  export declare class HostingWebsitesApi extends BaseAPI {
27258
27359
  /**
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`. 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.
27360
+ * 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
27361
  * @summary Create website
27261
27362
  * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
27262
27363
  * @param {*} [options] Override http request option.
27364
+ * @deprecated
27263
27365
  * @throws {RequiredError}
27264
27366
  * @memberof HostingWebsitesApi
27265
27367
  */
@@ -27311,7 +27413,7 @@ export declare class HostingWebsitesApi extends BaseAPI {
27311
27413
  */
27312
27414
  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
27415
  /**
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. 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.
27416
+ * 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
27417
  * @summary Start website setup
27316
27418
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
27317
27419
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -34402,7 +34504,7 @@ export declare class VPSVirtualMachineApi extends BaseAPI {
34402
34504
  */
34403
34505
  export declare const WordPressAIContentApiAxiosParamCreator: (configuration?: Configuration) => {
34404
34506
  /**
34405
- * Generate one or more images from a prompt and an image type for the specified WordPress installation. Images are returned inline as base64-encoded PNGs. They match the requested aspect ratio and are never smaller than the requested size; logos are transparent PNGs cropped to the mark. Generation is synchronous and can take up to a minute. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
34507
+ * Start generating one or more images from a prompt and an image type for the specified WordPress installation. The generation runs asynchronously: the response is returned right away with `status: in-progress` and a `generation_id`. Poll GET /api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id} every few seconds until `status` is `completed` or `failed`. A completed generation returns temporary image URLs together with the time they expire; download the images before then. Images match the requested aspect ratio and are never smaller than the requested size; logos are transparent images cropped to the mark. Only one image generation can run per installation at a time: while one is still in progress the endpoint returns 409 without the ID of the running generation, so a caller that did not receive the `202` has to wait for it to finish (up to a few minutes) before starting a new one. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
34406
34508
  * @summary Generate images
34407
34509
  * @param {string} username
34408
34510
  * @param {string} software WordPress installation (software) identifier
@@ -34411,6 +34513,17 @@ export declare const WordPressAIContentApiAxiosParamCreator: (configuration?: Co
34411
34513
  * @throws {RequiredError}
34412
34514
  */
34413
34515
  generateImagesV1: (username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
34516
+ /**
34517
+ * Get the result of an AI content generation started for the specified WordPress installation, such as an image generation started with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate. While the generation is still running only `status: in-progress` is returned; poll every few seconds. Once `completed`, `result` holds the generated content shaped according to `type`: temporary image URLs together with the time they expire for `image-generation`, or the generated website document for `website-generation` (started from the Hostinger WordPress plugin). A `failed` generation has no `result`. Unknown or expired generation IDs return 404. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
34518
+ * @summary Get generation result
34519
+ * @param {string} username
34520
+ * @param {string} software WordPress installation (software) identifier
34521
+ * @param {string} generationId Generation ID returned when the generation was started
34522
+ * @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
34523
+ * @param {*} [options] Override http request option.
34524
+ * @throws {RequiredError}
34525
+ */
34526
+ getGenerationResultV1: (username: string, software: string, generationId: string, type?: GetGenerationResultV1TypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
34414
34527
  };
34415
34528
  /**
34416
34529
  * WordPressAIContentApi - functional programming interface
@@ -34418,7 +34531,7 @@ export declare const WordPressAIContentApiAxiosParamCreator: (configuration?: Co
34418
34531
  */
34419
34532
  export declare const WordPressAIContentApiFp: (configuration?: Configuration) => {
34420
34533
  /**
34421
- * Generate one or more images from a prompt and an image type for the specified WordPress installation. Images are returned inline as base64-encoded PNGs. They match the requested aspect ratio and are never smaller than the requested size; logos are transparent PNGs cropped to the mark. Generation is synchronous and can take up to a minute. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
34534
+ * Start generating one or more images from a prompt and an image type for the specified WordPress installation. The generation runs asynchronously: the response is returned right away with `status: in-progress` and a `generation_id`. Poll GET /api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id} every few seconds until `status` is `completed` or `failed`. A completed generation returns temporary image URLs together with the time they expire; download the images before then. Images match the requested aspect ratio and are never smaller than the requested size; logos are transparent images cropped to the mark. Only one image generation can run per installation at a time: while one is still in progress the endpoint returns 409 without the ID of the running generation, so a caller that did not receive the `202` has to wait for it to finish (up to a few minutes) before starting a new one. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
34422
34535
  * @summary Generate images
34423
34536
  * @param {string} username
34424
34537
  * @param {string} software WordPress installation (software) identifier
@@ -34426,7 +34539,18 @@ export declare const WordPressAIContentApiFp: (configuration?: Configuration) =>
34426
34539
  * @param {*} [options] Override http request option.
34427
34540
  * @throws {RequiredError}
34428
34541
  */
34429
- generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1ContentGeneratedImagesResource>>;
34542
+ generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1ContentGenerationResource>>;
34543
+ /**
34544
+ * Get the result of an AI content generation started for the specified WordPress installation, such as an image generation started with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate. While the generation is still running only `status: in-progress` is returned; poll every few seconds. Once `completed`, `result` holds the generated content shaped according to `type`: temporary image URLs together with the time they expire for `image-generation`, or the generated website document for `website-generation` (started from the Hostinger WordPress plugin). A `failed` generation has no `result`. Unknown or expired generation IDs return 404. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
34545
+ * @summary Get generation result
34546
+ * @param {string} username
34547
+ * @param {string} software WordPress installation (software) identifier
34548
+ * @param {string} generationId Generation ID returned when the generation was started
34549
+ * @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
34550
+ * @param {*} [options] Override http request option.
34551
+ * @throws {RequiredError}
34552
+ */
34553
+ getGenerationResultV1(username: string, software: string, generationId: string, type?: GetGenerationResultV1TypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1ContentGenerationResource>>;
34430
34554
  };
34431
34555
  /**
34432
34556
  * WordPressAIContentApi - factory interface
@@ -34434,7 +34558,7 @@ export declare const WordPressAIContentApiFp: (configuration?: Configuration) =>
34434
34558
  */
34435
34559
  export declare const WordPressAIContentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
34436
34560
  /**
34437
- * Generate one or more images from a prompt and an image type for the specified WordPress installation. Images are returned inline as base64-encoded PNGs. They match the requested aspect ratio and are never smaller than the requested size; logos are transparent PNGs cropped to the mark. Generation is synchronous and can take up to a minute. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
34561
+ * Start generating one or more images from a prompt and an image type for the specified WordPress installation. The generation runs asynchronously: the response is returned right away with `status: in-progress` and a `generation_id`. Poll GET /api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id} every few seconds until `status` is `completed` or `failed`. A completed generation returns temporary image URLs together with the time they expire; download the images before then. Images match the requested aspect ratio and are never smaller than the requested size; logos are transparent images cropped to the mark. Only one image generation can run per installation at a time: while one is still in progress the endpoint returns 409 without the ID of the running generation, so a caller that did not receive the `202` has to wait for it to finish (up to a few minutes) before starting a new one. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
34438
34562
  * @summary Generate images
34439
34563
  * @param {string} username
34440
34564
  * @param {string} software WordPress installation (software) identifier
@@ -34442,7 +34566,18 @@ export declare const WordPressAIContentApiFactory: (configuration?: Configuratio
34442
34566
  * @param {*} [options] Override http request option.
34443
34567
  * @throws {RequiredError}
34444
34568
  */
34445
- generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1ContentGeneratedImagesResource>;
34569
+ generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1ContentGenerationResource>;
34570
+ /**
34571
+ * Get the result of an AI content generation started for the specified WordPress installation, such as an image generation started with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate. While the generation is still running only `status: in-progress` is returned; poll every few seconds. Once `completed`, `result` holds the generated content shaped according to `type`: temporary image URLs together with the time they expire for `image-generation`, or the generated website document for `website-generation` (started from the Hostinger WordPress plugin). A `failed` generation has no `result`. Unknown or expired generation IDs return 404. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
34572
+ * @summary Get generation result
34573
+ * @param {string} username
34574
+ * @param {string} software WordPress installation (software) identifier
34575
+ * @param {string} generationId Generation ID returned when the generation was started
34576
+ * @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
34577
+ * @param {*} [options] Override http request option.
34578
+ * @throws {RequiredError}
34579
+ */
34580
+ getGenerationResultV1(username: string, software: string, generationId: string, type?: GetGenerationResultV1TypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1ContentGenerationResource>;
34446
34581
  };
34447
34582
  /**
34448
34583
  * WordPressAIContentApi - object-oriented interface
@@ -34452,7 +34587,7 @@ export declare const WordPressAIContentApiFactory: (configuration?: Configuratio
34452
34587
  */
34453
34588
  export declare class WordPressAIContentApi extends BaseAPI {
34454
34589
  /**
34455
- * Generate one or more images from a prompt and an image type for the specified WordPress installation. Images are returned inline as base64-encoded PNGs. They match the requested aspect ratio and are never smaller than the requested size; logos are transparent PNGs cropped to the mark. Generation is synchronous and can take up to a minute. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
34590
+ * Start generating one or more images from a prompt and an image type for the specified WordPress installation. The generation runs asynchronously: the response is returned right away with `status: in-progress` and a `generation_id`. Poll GET /api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id} every few seconds until `status` is `completed` or `failed`. A completed generation returns temporary image URLs together with the time they expire; download the images before then. Images match the requested aspect ratio and are never smaller than the requested size; logos are transparent images cropped to the mark. Only one image generation can run per installation at a time: while one is still in progress the endpoint returns 409 without the ID of the running generation, so a caller that did not receive the `202` has to wait for it to finish (up to a few minutes) before starting a new one. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
34456
34591
  * @summary Generate images
34457
34592
  * @param {string} username
34458
34593
  * @param {string} software WordPress installation (software) identifier
@@ -34461,8 +34596,28 @@ export declare class WordPressAIContentApi extends BaseAPI {
34461
34596
  * @throws {RequiredError}
34462
34597
  * @memberof WordPressAIContentApi
34463
34598
  */
34464
- generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WordPressV1ContentGeneratedImagesResource, any, {}, any>>;
34599
+ generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WordPressV1ContentGenerationResource, any, {}, any>>;
34600
+ /**
34601
+ * Get the result of an AI content generation started for the specified WordPress installation, such as an image generation started with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate. While the generation is still running only `status: in-progress` is returned; poll every few seconds. Once `completed`, `result` holds the generated content shaped according to `type`: temporary image URLs together with the time they expire for `image-generation`, or the generated website document for `website-generation` (started from the Hostinger WordPress plugin). A `failed` generation has no `result`. Unknown or expired generation IDs return 404. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
34602
+ * @summary Get generation result
34603
+ * @param {string} username
34604
+ * @param {string} software WordPress installation (software) identifier
34605
+ * @param {string} generationId Generation ID returned when the generation was started
34606
+ * @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
34607
+ * @param {*} [options] Override http request option.
34608
+ * @throws {RequiredError}
34609
+ * @memberof WordPressAIContentApi
34610
+ */
34611
+ getGenerationResultV1(username: string, software: string, generationId: string, type?: GetGenerationResultV1TypeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WordPressV1ContentGenerationResource, any, {}, any>>;
34465
34612
  }
34613
+ /**
34614
+ * @export
34615
+ */
34616
+ export declare const GetGenerationResultV1TypeEnum: {
34617
+ readonly WebsiteGeneration: "website-generation";
34618
+ readonly ImageGeneration: "image-generation";
34619
+ };
34620
+ export type GetGenerationResultV1TypeEnum = typeof GetGenerationResultV1TypeEnum[keyof typeof GetGenerationResultV1TypeEnum];
34466
34621
  /**
34467
34622
  * WordPressAIToolsApi - axios parameter creator
34468
34623
  * @export