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/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## @hostinger/sdk@1.67.1
1
+ ## @hostinger/sdk@2.0.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.1 --save
8
+ npm install @hostinger/sdk@2.0.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.1
6
+ * API Version: 2.0.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
  */
@@ -17106,6 +17112,37 @@ export const WordPressV1ContentGenerateImagesRequestImageTypeEnum = {
17106
17112
 
17107
17113
  export type WordPressV1ContentGenerateImagesRequestImageTypeEnum = typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum[keyof typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum];
17108
17114
 
17115
+ /**
17116
+ * Single image generated by the AI image generator.
17117
+ * @export
17118
+ * @interface WordPressV1ContentGeneratedImageResource
17119
+ */
17120
+ export interface WordPressV1ContentGeneratedImageResource {
17121
+ /**
17122
+ * Temporary URL of the generated image, valid until the `expires_at` time of the result
17123
+ * @type {string}
17124
+ * @memberof WordPressV1ContentGeneratedImageResource
17125
+ */
17126
+ 'url': string;
17127
+ /**
17128
+ * Image width in pixels
17129
+ * @type {number}
17130
+ * @memberof WordPressV1ContentGeneratedImageResource
17131
+ */
17132
+ 'width': number;
17133
+ /**
17134
+ * Image height in pixels
17135
+ * @type {number}
17136
+ * @memberof WordPressV1ContentGeneratedImageResource
17137
+ */
17138
+ 'height': number;
17139
+ /**
17140
+ * MIME type of the image
17141
+ * @type {string}
17142
+ * @memberof WordPressV1ContentGeneratedImageResource
17143
+ */
17144
+ 'content_type': string;
17145
+ }
17109
17146
  /**
17110
17147
  * Images generated by the AI image generator.
17111
17148
  * @export
@@ -17113,17 +17150,82 @@ export type WordPressV1ContentGenerateImagesRequestImageTypeEnum = typeof WordPr
17113
17150
  */
17114
17151
  export interface WordPressV1ContentGeneratedImagesResource {
17115
17152
  /**
17116
- * Generated images, each encoded as a base64 string
17117
- * @type {Array<string>}
17153
+ * Generated images, each available at a temporary URL
17154
+ * @type {Array<WordPressV1ContentGeneratedImageResource>}
17118
17155
  * @memberof WordPressV1ContentGeneratedImagesResource
17119
17156
  */
17120
- 'images': Array<string>;
17157
+ 'images': Array<WordPressV1ContentGeneratedImageResource>;
17121
17158
  /**
17122
- * MIME type shared by all returned images
17159
+ * Time after which the image URLs stop working. Download the images before then.
17123
17160
  * @type {string}
17124
17161
  * @memberof WordPressV1ContentGeneratedImagesResource
17125
17162
  */
17126
- 'content_type': string;
17163
+ 'expires_at': string;
17164
+ }
17165
+ /**
17166
+ * State of an AI content generation and, once completed, its result.
17167
+ * @export
17168
+ * @interface WordPressV1ContentGenerationResource
17169
+ */
17170
+ export interface WordPressV1ContentGenerationResource {
17171
+ /**
17172
+ * Generation ID (UUID) used to poll for the result
17173
+ * @type {string}
17174
+ * @memberof WordPressV1ContentGenerationResource
17175
+ */
17176
+ 'generation_id': string;
17177
+ /**
17178
+ * Kind of generation, determines the shape of `result`
17179
+ * @type {string}
17180
+ * @memberof WordPressV1ContentGenerationResource
17181
+ */
17182
+ 'type': WordPressV1ContentGenerationResourceTypeEnum;
17183
+ /**
17184
+ * `in-progress` while the generation is still running, `completed` once `result` is available, `failed` when the generation stopped without a result.
17185
+ * @type {string}
17186
+ * @memberof WordPressV1ContentGenerationResource
17187
+ */
17188
+ 'status': WordPressV1ContentGenerationResourceStatusEnum;
17189
+ /**
17190
+ *
17191
+ * @type {WordPressV1ContentGenerationResourceResult}
17192
+ * @memberof WordPressV1ContentGenerationResource
17193
+ */
17194
+ 'result': WordPressV1ContentGenerationResourceResult | null;
17195
+ }
17196
+
17197
+ export const WordPressV1ContentGenerationResourceTypeEnum = {
17198
+ WebsiteGeneration: 'website-generation',
17199
+ ImageGeneration: 'image-generation'
17200
+ } as const;
17201
+
17202
+ export type WordPressV1ContentGenerationResourceTypeEnum = typeof WordPressV1ContentGenerationResourceTypeEnum[keyof typeof WordPressV1ContentGenerationResourceTypeEnum];
17203
+ export const WordPressV1ContentGenerationResourceStatusEnum = {
17204
+ InProgress: 'in-progress',
17205
+ Completed: 'completed',
17206
+ Failed: 'failed'
17207
+ } as const;
17208
+
17209
+ export type WordPressV1ContentGenerationResourceStatusEnum = typeof WordPressV1ContentGenerationResourceStatusEnum[keyof typeof WordPressV1ContentGenerationResourceStatusEnum];
17210
+
17211
+ /**
17212
+ * 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.
17213
+ * @export
17214
+ * @interface WordPressV1ContentGenerationResourceResult
17215
+ */
17216
+ export interface WordPressV1ContentGenerationResourceResult {
17217
+ /**
17218
+ * Generated images, each available at a temporary URL
17219
+ * @type {Array<WordPressV1ContentGeneratedImageResource>}
17220
+ * @memberof WordPressV1ContentGenerationResourceResult
17221
+ */
17222
+ 'images': Array<WordPressV1ContentGeneratedImageResource>;
17223
+ /**
17224
+ * Time after which the image URLs stop working. Download the images before then.
17225
+ * @type {string}
17226
+ * @memberof WordPressV1ContentGenerationResourceResult
17227
+ */
17228
+ 'expires_at': string;
17127
17229
  }
17128
17230
  /**
17129
17231
  *
@@ -36958,10 +37060,11 @@ export class HostingSSLApi extends BaseAPI {
36958
37060
  export const HostingWebsitesApiAxiosParamCreator = function (configuration?: Configuration) {
36959
37061
  return {
36960
37062
  /**
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.
37063
+ * 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
37064
  * @summary Create website
36963
37065
  * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
36964
37066
  * @param {*} [options] Override http request option.
37067
+ * @deprecated
36965
37068
  * @throws {RequiredError}
36966
37069
  */
36967
37070
  createWebsiteV1: async (hostingV1WebsitesCreateWebsiteRequest: HostingV1WebsitesCreateWebsiteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -37202,7 +37305,7 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration?: Con
37202
37305
  };
37203
37306
  },
37204
37307
  /**
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.
37308
+ * 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
37309
  * @summary Start website setup
37207
37310
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
37208
37311
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -37256,10 +37359,11 @@ export const HostingWebsitesApiFp = function(configuration?: Configuration) {
37256
37359
  const localVarAxiosParamCreator = HostingWebsitesApiAxiosParamCreator(configuration)
37257
37360
  return {
37258
37361
  /**
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.
37362
+ * 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
37363
  * @summary Create website
37261
37364
  * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
37262
37365
  * @param {*} [options] Override http request option.
37366
+ * @deprecated
37263
37367
  * @throws {RequiredError}
37264
37368
  */
37265
37369
  async createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest: HostingV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
@@ -37326,7 +37430,7 @@ export const HostingWebsitesApiFp = function(configuration?: Configuration) {
37326
37430
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37327
37431
  },
37328
37432
  /**
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.
37433
+ * 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
37434
  * @summary Start website setup
37331
37435
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
37332
37436
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -37349,10 +37453,11 @@ export const HostingWebsitesApiFactory = function (configuration?: Configuration
37349
37453
  const localVarFp = HostingWebsitesApiFp(configuration)
37350
37454
  return {
37351
37455
  /**
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.
37456
+ * 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
37457
  * @summary Create website
37354
37458
  * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
37355
37459
  * @param {*} [options] Override http request option.
37460
+ * @deprecated
37356
37461
  * @throws {RequiredError}
37357
37462
  */
37358
37463
  createWebsiteV1(hostingV1WebsitesCreateWebsiteRequest: HostingV1WebsitesCreateWebsiteRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
@@ -37409,7 +37514,7 @@ export const HostingWebsitesApiFactory = function (configuration?: Configuration
37409
37514
  return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(axios, basePath));
37410
37515
  },
37411
37516
  /**
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.
37517
+ * 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
37518
  * @summary Start website setup
37414
37519
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
37415
37520
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -37430,10 +37535,11 @@ export const HostingWebsitesApiFactory = function (configuration?: Configuration
37430
37535
  */
37431
37536
  export class HostingWebsitesApi extends BaseAPI {
37432
37537
  /**
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.
37538
+ * 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
37539
  * @summary Create website
37435
37540
  * @param {HostingV1WebsitesCreateWebsiteRequest} hostingV1WebsitesCreateWebsiteRequest
37436
37541
  * @param {*} [options] Override http request option.
37542
+ * @deprecated
37437
37543
  * @throws {RequiredError}
37438
37544
  * @memberof HostingWebsitesApi
37439
37545
  */
@@ -37500,7 +37606,7 @@ export class HostingWebsitesApi extends BaseAPI {
37500
37606
  }
37501
37607
 
37502
37608
  /**
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.
37609
+ * 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
37610
  * @summary Start website setup
37505
37611
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
37506
37612
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -52058,7 +52164,7 @@ export class VPSVirtualMachineApi extends BaseAPI {
52058
52164
  export const WordPressAIContentApiAxiosParamCreator = function (configuration?: Configuration) {
52059
52165
  return {
52060
52166
  /**
52061
- * 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).
52167
+ * 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).
52062
52168
  * @summary Generate images
52063
52169
  * @param {string} username
52064
52170
  * @param {string} software WordPress installation (software) identifier
@@ -52100,6 +52206,57 @@ export const WordPressAIContentApiAxiosParamCreator = function (configuration?:
52100
52206
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
52101
52207
  localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1ContentGenerateImagesRequest, localVarRequestOptions, configuration)
52102
52208
 
52209
+ return {
52210
+ url: toPathString(localVarUrlObj),
52211
+ options: localVarRequestOptions,
52212
+ };
52213
+ },
52214
+ /**
52215
+ * 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).
52216
+ * @summary Get generation result
52217
+ * @param {string} username
52218
+ * @param {string} software WordPress installation (software) identifier
52219
+ * @param {string} generationId Generation ID returned when the generation was started
52220
+ * @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
52221
+ * @param {*} [options] Override http request option.
52222
+ * @throws {RequiredError}
52223
+ */
52224
+ getGenerationResultV1: async (username: string, software: string, generationId: string, type?: GetGenerationResultV1TypeEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
52225
+ // verify required parameter 'username' is not null or undefined
52226
+ assertParamExists('getGenerationResultV1', 'username', username)
52227
+ // verify required parameter 'software' is not null or undefined
52228
+ assertParamExists('getGenerationResultV1', 'software', software)
52229
+ // verify required parameter 'generationId' is not null or undefined
52230
+ assertParamExists('getGenerationResultV1', 'generationId', generationId)
52231
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id}`
52232
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
52233
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)))
52234
+ .replace(`{${"generation_id"}}`, encodeURIComponent(String(generationId)));
52235
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
52236
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
52237
+ let baseOptions;
52238
+ if (configuration) {
52239
+ baseOptions = configuration.baseOptions;
52240
+ }
52241
+
52242
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
52243
+ const localVarHeaderParameter = {} as any;
52244
+ const localVarQueryParameter = {} as any;
52245
+
52246
+ // authentication apiToken required
52247
+ // http bearer authentication required
52248
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
52249
+
52250
+ if (type !== undefined) {
52251
+ localVarQueryParameter['type'] = type;
52252
+ }
52253
+
52254
+
52255
+
52256
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
52257
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
52258
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
52259
+
52103
52260
  return {
52104
52261
  url: toPathString(localVarUrlObj),
52105
52262
  options: localVarRequestOptions,
@@ -52116,7 +52273,7 @@ export const WordPressAIContentApiFp = function(configuration?: Configuration) {
52116
52273
  const localVarAxiosParamCreator = WordPressAIContentApiAxiosParamCreator(configuration)
52117
52274
  return {
52118
52275
  /**
52119
- * 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).
52276
+ * 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).
52120
52277
  * @summary Generate images
52121
52278
  * @param {string} username
52122
52279
  * @param {string} software WordPress installation (software) identifier
@@ -52124,11 +52281,26 @@ export const WordPressAIContentApiFp = function(configuration?: Configuration) {
52124
52281
  * @param {*} [options] Override http request option.
52125
52282
  * @throws {RequiredError}
52126
52283
  */
52127
- async generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1ContentGeneratedImagesResource>> {
52284
+ async generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1ContentGenerationResource>> {
52128
52285
  const localVarAxiosArgs = await localVarAxiosParamCreator.generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options);
52129
52286
  const localVarOperationServerBasePath = operationServerMap['WordPressAIContentApi.generateImagesV1']?.[0]?.url;
52130
52287
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
52131
52288
  },
52289
+ /**
52290
+ * 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).
52291
+ * @summary Get generation result
52292
+ * @param {string} username
52293
+ * @param {string} software WordPress installation (software) identifier
52294
+ * @param {string} generationId Generation ID returned when the generation was started
52295
+ * @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
52296
+ * @param {*} [options] Override http request option.
52297
+ * @throws {RequiredError}
52298
+ */
52299
+ async getGenerationResultV1(username: string, software: string, generationId: string, type?: GetGenerationResultV1TypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1ContentGenerationResource>> {
52300
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGenerationResultV1(username, software, generationId, type, options);
52301
+ const localVarOperationServerBasePath = operationServerMap['WordPressAIContentApi.getGenerationResultV1']?.[0]?.url;
52302
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
52303
+ },
52132
52304
  }
52133
52305
  };
52134
52306
 
@@ -52140,7 +52312,7 @@ export const WordPressAIContentApiFactory = function (configuration?: Configurat
52140
52312
  const localVarFp = WordPressAIContentApiFp(configuration)
52141
52313
  return {
52142
52314
  /**
52143
- * 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).
52315
+ * 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).
52144
52316
  * @summary Generate images
52145
52317
  * @param {string} username
52146
52318
  * @param {string} software WordPress installation (software) identifier
@@ -52148,9 +52320,22 @@ export const WordPressAIContentApiFactory = function (configuration?: Configurat
52148
52320
  * @param {*} [options] Override http request option.
52149
52321
  * @throws {RequiredError}
52150
52322
  */
52151
- generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1ContentGeneratedImagesResource> {
52323
+ generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1ContentGenerationResource> {
52152
52324
  return localVarFp.generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options).then((request) => request(axios, basePath));
52153
52325
  },
52326
+ /**
52327
+ * 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).
52328
+ * @summary Get generation result
52329
+ * @param {string} username
52330
+ * @param {string} software WordPress installation (software) identifier
52331
+ * @param {string} generationId Generation ID returned when the generation was started
52332
+ * @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
52333
+ * @param {*} [options] Override http request option.
52334
+ * @throws {RequiredError}
52335
+ */
52336
+ getGenerationResultV1(username: string, software: string, generationId: string, type?: GetGenerationResultV1TypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1ContentGenerationResource> {
52337
+ return localVarFp.getGenerationResultV1(username, software, generationId, type, options).then((request) => request(axios, basePath));
52338
+ },
52154
52339
  };
52155
52340
  };
52156
52341
 
@@ -52162,7 +52347,7 @@ export const WordPressAIContentApiFactory = function (configuration?: Configurat
52162
52347
  */
52163
52348
  export class WordPressAIContentApi extends BaseAPI {
52164
52349
  /**
52165
- * 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).
52350
+ * 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).
52166
52351
  * @summary Generate images
52167
52352
  * @param {string} username
52168
52353
  * @param {string} software WordPress installation (software) identifier
@@ -52174,8 +52359,31 @@ export class WordPressAIContentApi extends BaseAPI {
52174
52359
  public generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig) {
52175
52360
  return WordPressAIContentApiFp(this.configuration).generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options).then((request) => request(this.axios, this.basePath));
52176
52361
  }
52362
+
52363
+ /**
52364
+ * 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).
52365
+ * @summary Get generation result
52366
+ * @param {string} username
52367
+ * @param {string} software WordPress installation (software) identifier
52368
+ * @param {string} generationId Generation ID returned when the generation was started
52369
+ * @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
52370
+ * @param {*} [options] Override http request option.
52371
+ * @throws {RequiredError}
52372
+ * @memberof WordPressAIContentApi
52373
+ */
52374
+ public getGenerationResultV1(username: string, software: string, generationId: string, type?: GetGenerationResultV1TypeEnum, options?: RawAxiosRequestConfig) {
52375
+ return WordPressAIContentApiFp(this.configuration).getGenerationResultV1(username, software, generationId, type, options).then((request) => request(this.axios, this.basePath));
52376
+ }
52177
52377
  }
52178
52378
 
52379
+ /**
52380
+ * @export
52381
+ */
52382
+ export const GetGenerationResultV1TypeEnum = {
52383
+ WebsiteGeneration: 'website-generation',
52384
+ ImageGeneration: 'image-generation'
52385
+ } as const;
52386
+ export type GetGenerationResultV1TypeEnum = typeof GetGenerationResultV1TypeEnum[keyof typeof GetGenerationResultV1TypeEnum];
52179
52387
 
52180
52388
 
52181
52389
  /**
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.67.1
6
+ * API Version: 2.0.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.1
6
+ * API Version: 2.0.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.1
6
+ * API Version: 2.0.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.1",
51
+ 'User-Agent': "hostinger-typescript-sdk/2.0.0",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };