hostinger-api-sdk 1.68.0 → 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.68.0
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.68.0 --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.68.0
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
@@ -17112,6 +17112,37 @@ export const WordPressV1ContentGenerateImagesRequestImageTypeEnum = {
17112
17112
 
17113
17113
  export type WordPressV1ContentGenerateImagesRequestImageTypeEnum = typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum[keyof typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum];
17114
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
+ }
17115
17146
  /**
17116
17147
  * Images generated by the AI image generator.
17117
17148
  * @export
@@ -17119,17 +17150,82 @@ export type WordPressV1ContentGenerateImagesRequestImageTypeEnum = typeof WordPr
17119
17150
  */
17120
17151
  export interface WordPressV1ContentGeneratedImagesResource {
17121
17152
  /**
17122
- * Generated images, each encoded as a base64 string
17123
- * @type {Array<string>}
17153
+ * Generated images, each available at a temporary URL
17154
+ * @type {Array<WordPressV1ContentGeneratedImageResource>}
17124
17155
  * @memberof WordPressV1ContentGeneratedImagesResource
17125
17156
  */
17126
- 'images': Array<string>;
17157
+ 'images': Array<WordPressV1ContentGeneratedImageResource>;
17127
17158
  /**
17128
- * MIME type shared by all returned images
17159
+ * Time after which the image URLs stop working. Download the images before then.
17129
17160
  * @type {string}
17130
17161
  * @memberof WordPressV1ContentGeneratedImagesResource
17131
17162
  */
17132
- '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;
17133
17229
  }
17134
17230
  /**
17135
17231
  *
@@ -52068,7 +52164,7 @@ export class VPSVirtualMachineApi extends BaseAPI {
52068
52164
  export const WordPressAIContentApiAxiosParamCreator = function (configuration?: Configuration) {
52069
52165
  return {
52070
52166
  /**
52071
- * 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).
52072
52168
  * @summary Generate images
52073
52169
  * @param {string} username
52074
52170
  * @param {string} software WordPress installation (software) identifier
@@ -52110,6 +52206,57 @@ export const WordPressAIContentApiAxiosParamCreator = function (configuration?:
52110
52206
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
52111
52207
  localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1ContentGenerateImagesRequest, localVarRequestOptions, configuration)
52112
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
+
52113
52260
  return {
52114
52261
  url: toPathString(localVarUrlObj),
52115
52262
  options: localVarRequestOptions,
@@ -52126,7 +52273,7 @@ export const WordPressAIContentApiFp = function(configuration?: Configuration) {
52126
52273
  const localVarAxiosParamCreator = WordPressAIContentApiAxiosParamCreator(configuration)
52127
52274
  return {
52128
52275
  /**
52129
- * 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).
52130
52277
  * @summary Generate images
52131
52278
  * @param {string} username
52132
52279
  * @param {string} software WordPress installation (software) identifier
@@ -52134,11 +52281,26 @@ export const WordPressAIContentApiFp = function(configuration?: Configuration) {
52134
52281
  * @param {*} [options] Override http request option.
52135
52282
  * @throws {RequiredError}
52136
52283
  */
52137
- 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>> {
52138
52285
  const localVarAxiosArgs = await localVarAxiosParamCreator.generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options);
52139
52286
  const localVarOperationServerBasePath = operationServerMap['WordPressAIContentApi.generateImagesV1']?.[0]?.url;
52140
52287
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
52141
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
+ },
52142
52304
  }
52143
52305
  };
52144
52306
 
@@ -52150,7 +52312,7 @@ export const WordPressAIContentApiFactory = function (configuration?: Configurat
52150
52312
  const localVarFp = WordPressAIContentApiFp(configuration)
52151
52313
  return {
52152
52314
  /**
52153
- * 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).
52154
52316
  * @summary Generate images
52155
52317
  * @param {string} username
52156
52318
  * @param {string} software WordPress installation (software) identifier
@@ -52158,9 +52320,22 @@ export const WordPressAIContentApiFactory = function (configuration?: Configurat
52158
52320
  * @param {*} [options] Override http request option.
52159
52321
  * @throws {RequiredError}
52160
52322
  */
52161
- generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1ContentGeneratedImagesResource> {
52323
+ generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1ContentGenerationResource> {
52162
52324
  return localVarFp.generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options).then((request) => request(axios, basePath));
52163
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
+ },
52164
52339
  };
52165
52340
  };
52166
52341
 
@@ -52172,7 +52347,7 @@ export const WordPressAIContentApiFactory = function (configuration?: Configurat
52172
52347
  */
52173
52348
  export class WordPressAIContentApi extends BaseAPI {
52174
52349
  /**
52175
- * 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).
52176
52351
  * @summary Generate images
52177
52352
  * @param {string} username
52178
52353
  * @param {string} software WordPress installation (software) identifier
@@ -52184,8 +52359,31 @@ export class WordPressAIContentApi extends BaseAPI {
52184
52359
  public generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig) {
52185
52360
  return WordPressAIContentApiFp(this.configuration).generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options).then((request) => request(this.axios, this.basePath));
52186
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
+ }
52187
52377
  }
52188
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];
52189
52387
 
52190
52388
 
52191
52389
  /**
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.68.0
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.68.0
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.68.0
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.68.0",
51
+ 'User-Agent': "hostinger-typescript-sdk/2.0.0",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };