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 +2 -2
- package/api.ts +210 -12
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +158 -13
- package/dist/api.js +119 -14
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +158 -13
- package/dist/esm/api.js +110 -5
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/WordPressAIContentApi.md +70 -3
- package/docs/WordPressV1ContentGeneratedImageResource.md +27 -0
- package/docs/WordPressV1ContentGeneratedImagesResource.md +3 -3
- package/docs/WordPressV1ContentGenerationResource.md +27 -0
- package/docs/WordPressV1ContentGenerationResourceResult.md +23 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version:
|
|
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
|
|
@@ -16738,6 +16738,37 @@ export declare const WordPressV1ContentGenerateImagesRequestImageTypeEnum: {
|
|
|
16738
16738
|
readonly Logo: "logo";
|
|
16739
16739
|
};
|
|
16740
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
|
+
}
|
|
16741
16772
|
/**
|
|
16742
16773
|
* Images generated by the AI image generator.
|
|
16743
16774
|
* @export
|
|
@@ -16745,17 +16776,78 @@ export type WordPressV1ContentGenerateImagesRequestImageTypeEnum = typeof WordPr
|
|
|
16745
16776
|
*/
|
|
16746
16777
|
export interface WordPressV1ContentGeneratedImagesResource {
|
|
16747
16778
|
/**
|
|
16748
|
-
* Generated images, each
|
|
16749
|
-
* @type {Array<
|
|
16779
|
+
* Generated images, each available at a temporary URL
|
|
16780
|
+
* @type {Array<WordPressV1ContentGeneratedImageResource>}
|
|
16750
16781
|
* @memberof WordPressV1ContentGeneratedImagesResource
|
|
16751
16782
|
*/
|
|
16752
|
-
'images': Array<
|
|
16783
|
+
'images': Array<WordPressV1ContentGeneratedImageResource>;
|
|
16753
16784
|
/**
|
|
16754
|
-
*
|
|
16785
|
+
* Time after which the image URLs stop working. Download the images before then.
|
|
16755
16786
|
* @type {string}
|
|
16756
16787
|
* @memberof WordPressV1ContentGeneratedImagesResource
|
|
16757
16788
|
*/
|
|
16758
|
-
'
|
|
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;
|
|
16759
16851
|
}
|
|
16760
16852
|
/**
|
|
16761
16853
|
*
|
|
@@ -34412,7 +34504,7 @@ export declare class VPSVirtualMachineApi extends BaseAPI {
|
|
|
34412
34504
|
*/
|
|
34413
34505
|
export declare const WordPressAIContentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
34414
34506
|
/**
|
|
34415
|
-
*
|
|
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).
|
|
34416
34508
|
* @summary Generate images
|
|
34417
34509
|
* @param {string} username
|
|
34418
34510
|
* @param {string} software WordPress installation (software) identifier
|
|
@@ -34421,6 +34513,17 @@ export declare const WordPressAIContentApiAxiosParamCreator: (configuration?: Co
|
|
|
34421
34513
|
* @throws {RequiredError}
|
|
34422
34514
|
*/
|
|
34423
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>;
|
|
34424
34527
|
};
|
|
34425
34528
|
/**
|
|
34426
34529
|
* WordPressAIContentApi - functional programming interface
|
|
@@ -34428,7 +34531,7 @@ export declare const WordPressAIContentApiAxiosParamCreator: (configuration?: Co
|
|
|
34428
34531
|
*/
|
|
34429
34532
|
export declare const WordPressAIContentApiFp: (configuration?: Configuration) => {
|
|
34430
34533
|
/**
|
|
34431
|
-
*
|
|
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).
|
|
34432
34535
|
* @summary Generate images
|
|
34433
34536
|
* @param {string} username
|
|
34434
34537
|
* @param {string} software WordPress installation (software) identifier
|
|
@@ -34436,7 +34539,18 @@ export declare const WordPressAIContentApiFp: (configuration?: Configuration) =>
|
|
|
34436
34539
|
* @param {*} [options] Override http request option.
|
|
34437
34540
|
* @throws {RequiredError}
|
|
34438
34541
|
*/
|
|
34439
|
-
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
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>>;
|
|
34440
34554
|
};
|
|
34441
34555
|
/**
|
|
34442
34556
|
* WordPressAIContentApi - factory interface
|
|
@@ -34444,7 +34558,7 @@ export declare const WordPressAIContentApiFp: (configuration?: Configuration) =>
|
|
|
34444
34558
|
*/
|
|
34445
34559
|
export declare const WordPressAIContentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
34446
34560
|
/**
|
|
34447
|
-
*
|
|
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).
|
|
34448
34562
|
* @summary Generate images
|
|
34449
34563
|
* @param {string} username
|
|
34450
34564
|
* @param {string} software WordPress installation (software) identifier
|
|
@@ -34452,7 +34566,18 @@ export declare const WordPressAIContentApiFactory: (configuration?: Configuratio
|
|
|
34452
34566
|
* @param {*} [options] Override http request option.
|
|
34453
34567
|
* @throws {RequiredError}
|
|
34454
34568
|
*/
|
|
34455
|
-
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
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>;
|
|
34456
34581
|
};
|
|
34457
34582
|
/**
|
|
34458
34583
|
* WordPressAIContentApi - object-oriented interface
|
|
@@ -34462,7 +34587,7 @@ export declare const WordPressAIContentApiFactory: (configuration?: Configuratio
|
|
|
34462
34587
|
*/
|
|
34463
34588
|
export declare class WordPressAIContentApi extends BaseAPI {
|
|
34464
34589
|
/**
|
|
34465
|
-
*
|
|
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).
|
|
34466
34591
|
* @summary Generate images
|
|
34467
34592
|
* @param {string} username
|
|
34468
34593
|
* @param {string} software WordPress installation (software) identifier
|
|
@@ -34471,8 +34596,28 @@ export declare class WordPressAIContentApi extends BaseAPI {
|
|
|
34471
34596
|
* @throws {RequiredError}
|
|
34472
34597
|
* @memberof WordPressAIContentApi
|
|
34473
34598
|
*/
|
|
34474
|
-
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
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>>;
|
|
34475
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];
|
|
34476
34621
|
/**
|
|
34477
34622
|
* WordPressAIToolsApi - axios parameter creator
|
|
34478
34623
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version:
|
|
7
|
+
* API Version: 2.0.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -22,15 +22,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
exports.HorizonsV1WebsitesPublishedWebsiteResourceStatusEnum = exports.HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductUpdateRequestStatusEnum = exports.EcommerceV1ProductProductResourceStatusEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.EcommerceV1PaymentProviderPaymentProviderListResourceDataConnectedInnerStatusEnum = exports.EcommerceV1DiscountDiscountResourceAllocationEnum = exports.EcommerceV1DiscountDiscountResourceTypeEnum = exports.EcommerceV1DiscountCreateDiscountRequestAllocationEnum = exports.EcommerceV1DiscountCreateDiscountRequestTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1WHOISChangeUpdateRequestChangeForEnum = exports.DomainsV1PortfolioClaimResourceStatusEnum = exports.DomainsV1MoveMoveResourceStatusEnum = exports.DomainsV1IRTPVerificationResourceStatusEnum = exports.DomainsV1ForwardingUpdateRequestRedirectTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderPaymentProcessingResourceStatusEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = exports.AgentReadinessV1ScansScanResourceStatusEnum = exports.AgentReadinessV1ScansCheckResultResourceStatusEnum = exports.AgencyHostingV1WebsitesWebsiteResourceStateEnum = exports.AgencyHostingV1WebsitesWebsiteProcessResourceStatusEnum = exports.AgencyHostingV1WebsitesWebsiteListItemResourcePlatformEnum = exports.AgencyHostingV1WebsitesU4sWebsiteDetailsResourceTypeEnum = exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceStateEnum = exports.AgencyHostingV1WebsitesH5gWebsiteDetailsResourceTypeEnum = exports.AgencyHostingV1SslSslStatusResourceStatusEnum = exports.AgencyHostingV1SetupsWebsiteSetupStatusResourceStatusEnum = exports.AgencyHostingV1SetupsCreateSetupRequestTypeEnum = exports.AgencyHostingV1PhpOptionResourceTypeEnum = exports.AgencyHostingV1PhpExtensionResourceStateEnum = void 0;
|
|
23
23
|
exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaCreateWebhookRequestSchemaEventsEnum = exports.MailV1OrdersOrderResourceStatusEnum = exports.MailV1MailboxesMailboxResourceStatusEnum = exports.MailV1LogsMailboxActionsMailboxActionLogResourceEventEnum = exports.MailV1LogsActionActionLogResourceResponseStatusEnum = exports.MailV1ApiTokensApiTokenResourceTypeEnum = exports.MailV1ApiTokensApiTokenCreatedResourceTypeEnum = exports.HostingV1WebsitesWebsiteResourceWebsiteTypeEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1SslSslStatusResourceProviderEnum = exports.HostingV1SslSslStatusResourceStatusEnum = exports.HostingV1OnboardingsStartOnboardingRequestTypeEnum = exports.HostingV1OnboardingsOnboardingResourceStatusEnum = exports.HostingV1NodeJsVulnerabilityResourceSeverityEnum = exports.HostingV1NodeJsUpdateBuildSettingsRequestPackageManagerEnum = exports.HostingV1NodeJsUpdateBuildSettingsRequestAppTypeEnum = exports.HostingV1NodeJsUpdateBuildSettingsRequestNodeVersionEnum = exports.HostingV1NodeJsStoredBuildSettingsResourcePackageManagerEnum = exports.HostingV1NodeJsStoredBuildSettingsResourceAppTypeEnum = exports.HostingV1NodeJsStartBuildRequestSourceTypeEnum = exports.HostingV1NodeJsStartBuildRequestPackageManagerEnum = exports.HostingV1NodeJsStartBuildRequestAppTypeEnum = exports.HostingV1NodeJsStartBuildRequestNodeVersionEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildSettingsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildSettingsResourceAppTypeEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1HeadlessStoreAgentReportRequestRunKindEnum = exports.HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum = exports.HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum = exports.HostingV1GitGitInstallationResourceStatusEnum = exports.HostingV1GitGitInstallationResourceAccountTypeEnum = exports.HostingV1GitGitInstallationResourceProviderEnum = exports.HostingV1FilesFilesResourceItemsInnerTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesWebsiteResourceStatusEnum = void 0;
|
|
24
24
|
exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ProfilesFeaturesPlanFeatureResourceFeatureEnum = exports.ReachV1ProfilesDomainsSendingDomainResourceStatusEnum = exports.ReachV1FormsFormTagResourceTypeEnum = exports.ReachV1FormsFormResourceTypeEnum = exports.ReachV1FormsFormResourceStatusEnum = exports.ReachV1FormsFormDetailsResourceTypeEnum = exports.ReachV1FormsFormDetailsResourceStatusEnum = exports.ReachV1ContactsUpdateRequestSubscriptionStatusEnum = exports.ReachV1ContactsTagsTagResourceTypeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsSegmentsSegmentFilterOperatorResourceInputTypeEnum = exports.ReachV1ContactsSegmentsSegmentFilterOperatorResourceOperatorEnum = exports.ReachV1ContactsSegmentsSegmentFilterAttributeResourceTypeEnum = exports.ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestSortDirectionEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestSortByEnum = exports.ReachV1ContactsSegmentsProfileFilterContactsRequestLogicEnum = exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactResourceSourceEnum = exports.ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsFieldsStoreRequestTypeEnum = exports.ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = exports.ReachV1ContactsFieldsContactFieldResourceTypeEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactDetailsResourceSourceEnum = exports.ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = exports.ReachV1CampaignsCreatedCampaignResourceTypeEnum = exports.ReachV1CampaignsCreatedCampaignResourceStatusEnum = exports.ReachV1CampaignsCampaignResourceTypeEnum = exports.ReachV1CampaignsCampaignResourceStatusEnum = exports.ReachV1CampaignsCampaignDetailsResourceTypeEnum = exports.ReachV1CampaignsCampaignDetailsResourceStatusEnum = exports.ReachV1AutomationsStepsAutomationStepResourceValueEnum = exports.ReachV1AutomationsStepsAutomationStepResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceTypeEnum = exports.ReachV1AutomationsAutomationResourceStatusEnum = void 0;
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = void 0;
|
|
25
|
+
exports.ListOrderResourceUsageMetricsV1TimeFrameHoursEnum = exports.ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum = exports.AgencyHostingMetricsApi = exports.AgencyHostingMetricsApiFactory = exports.AgencyHostingMetricsApiFp = exports.AgencyHostingMetricsApiAxiosParamCreator = exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = exports.AgencyHostingCacheApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1McpExecuteMcpToolRequestServerEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.WordPressV1ContentGenerationResourceStatusEnum = exports.WordPressV1ContentGenerationResourceTypeEnum = exports.WordPressV1ContentGenerateImagesRequestImageTypeEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = void 0;
|
|
26
|
+
exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.AgentReadinessScansApi = exports.AgentReadinessScansApiFactory = exports.AgentReadinessScansApiFp = exports.AgentReadinessScansApiAxiosParamCreator = exports.AgentReadinessChecksApi = exports.AgentReadinessChecksApiFactory = exports.AgentReadinessChecksApiFp = exports.AgentReadinessChecksApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.ListAgencyPlanWebsitesV1WebsiteTypesEnum = exports.ListAgencyPlanWebsitesV1StatesEnum = exports.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = exports.AgencyHostingWebsiteSetupsApi = exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = exports.AgencyHostingSSLApi = exports.AgencyHostingSSLApiFactory = exports.AgencyHostingSSLApiFp = exports.AgencyHostingSSLApiAxiosParamCreator = exports.AgencyHostingPHPApi = exports.AgencyHostingPHPApiFactory = exports.AgencyHostingPHPApiFp = exports.AgencyHostingPHPApiAxiosParamCreator = exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = void 0;
|
|
27
|
+
exports.EcommerceOrdersApi = exports.EcommerceOrdersApiFactory = exports.EcommerceOrdersApiFp = exports.EcommerceOrdersApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.ListDiscountsV1IsDisabledEnum = exports.EcommerceDiscountsApi = exports.EcommerceDiscountsApiFactory = exports.EcommerceDiscountsApiFp = exports.EcommerceDiscountsApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsMoveApi = exports.DomainsMoveApiFactory = exports.DomainsMoveApiFp = exports.DomainsMoveApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = void 0;
|
|
28
|
+
exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = exports.HostingCacheApiFactory = exports.HostingCacheApiFp = exports.HostingCacheApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.ListProductsV1IncludeEnum = exports.ListProductsV1StatusEnum = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommerceProductVariantsApi = exports.EcommerceProductVariantsApiFactory = exports.EcommerceProductVariantsApiFp = exports.EcommerceProductVariantsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.ListStoreOrdersV1FulfillmentStatusEnum = exports.ListStoreOrdersV1PaymentStatusEnum = exports.ListStoreOrdersV1StatusEnum = void 0;
|
|
29
|
+
exports.MailAPITokensApiFp = exports.MailAPITokensApiAxiosParamCreator = exports.ListWebsitesV1WebsiteTypesEnum = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingSSLApi = exports.HostingSSLApiFactory = exports.HostingSSLApiFp = exports.HostingSSLApiAxiosParamCreator = exports.HostingRedirectsApi = exports.HostingRedirectsApiFactory = exports.HostingRedirectsApiFp = exports.HostingRedirectsApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.GetNodeJsRuntimeLogsV1LevelsEnum = exports.GetNodeJsRuntimeLogsV1PeriodEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingHeadlessApi = exports.HostingHeadlessApiFactory = exports.HostingHeadlessApiFp = exports.HostingHeadlessApiAxiosParamCreator = exports.ListGitInstallationsV1StatusEnum = exports.ListGitInstallationsV1ProviderEnum = exports.HostingGitApi = exports.HostingGitApiFactory = exports.HostingGitApiFp = exports.HostingGitApiAxiosParamCreator = exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = exports.HostingFilesApi = exports.HostingFilesApiFactory = exports.HostingFilesApiFp = exports.HostingFilesApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = void 0;
|
|
30
|
+
exports.ListAutomationsV1SortDirectionEnum = exports.ListAutomationsV1StatusEnum = exports.ReachAutomationsApi = exports.ReachAutomationsApiFactory = exports.ReachAutomationsApiFp = exports.ReachAutomationsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = exports.MailWebhooksApiFactory = exports.MailWebhooksApiFp = exports.MailWebhooksApiAxiosParamCreator = exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = exports.MailOrdersApiAxiosParamCreator = exports.ListMailboxesV1SortEnum = exports.MailMailboxesApi = exports.MailMailboxesApiFactory = exports.MailMailboxesApiFp = exports.MailMailboxesApiAxiosParamCreator = exports.ListOutboundLogsV1StatusEnum = exports.ListMailboxActionLogsV1EventEnum = exports.ListInboundLogsV1StatusEnum = exports.ListActionLogsV1StatusEnum = exports.ListAccessLogsV1ProtocolEnum = exports.ListAccessLogsV1StatusEnum = exports.MailLogsApi = exports.MailLogsApiFactory = exports.MailLogsApiFp = exports.MailLogsApiAxiosParamCreator = exports.MailForwardersApi = exports.MailForwardersApiFactory = exports.MailForwardersApiFp = exports.MailForwardersApiAxiosParamCreator = exports.MailCatchallsApi = exports.MailCatchallsApiFactory = exports.MailCatchallsApiFp = exports.MailCatchallsApiAxiosParamCreator = exports.MailAutorepliesApi = exports.MailAutorepliesApiFactory = exports.MailAutorepliesApiFp = exports.MailAutorepliesApiAxiosParamCreator = exports.MailAliasesApi = exports.MailAliasesApiFactory = exports.MailAliasesApiFp = exports.MailAliasesApiAxiosParamCreator = exports.MailAPITokensApi = exports.MailAPITokensApiFactory = void 0;
|
|
31
|
+
exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachTemplatesApi = exports.ReachTemplatesApiFactory = exports.ReachTemplatesApiFp = exports.ReachTemplatesApiAxiosParamCreator = exports.ReachTagsApi = exports.ReachTagsApiFactory = exports.ReachTagsApiFp = exports.ReachTagsApiAxiosParamCreator = exports.ListProfileSegmentsV1CountTypeEnum = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ReachFormsApi = exports.ReachFormsApiFactory = exports.ReachFormsApiFp = exports.ReachFormsApiAxiosParamCreator = exports.ListProfileContactsV1SubscriptionStatusEnum = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ReachContactFieldsApi = exports.ReachContactFieldsApiFactory = exports.ReachContactFieldsApiFp = exports.ReachContactFieldsApiAxiosParamCreator = exports.ListCampaignsV1SortDirectionEnum = exports.ListCampaignsV1TypeEnum = exports.ListCampaignsV1StatusEnum = exports.ReachCampaignsApi = exports.ReachCampaignsApiFactory = exports.ReachCampaignsApiFp = exports.ReachCampaignsApiAxiosParamCreator = void 0;
|
|
32
|
+
exports.WordPressAIToolsApiAxiosParamCreator = exports.GetGenerationResultV1TypeEnum = exports.WordPressAIContentApi = exports.WordPressAIContentApiFactory = exports.WordPressAIContentApiFp = exports.WordPressAIContentApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSSSHKeysApi = exports.VPSSSHKeysApiFactory = exports.VPSSSHKeysApiFp = exports.VPSSSHKeysApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = void 0;
|
|
33
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = void 0;
|
|
34
34
|
const axios_1 = require("axios");
|
|
35
35
|
// Some imports not used depending on template conditions
|
|
36
36
|
// @ts-ignore
|
|
@@ -1164,6 +1164,15 @@ exports.WordPressV1ContentGenerateImagesRequestImageTypeEnum = {
|
|
|
1164
1164
|
Product: 'product',
|
|
1165
1165
|
Logo: 'logo'
|
|
1166
1166
|
};
|
|
1167
|
+
exports.WordPressV1ContentGenerationResourceTypeEnum = {
|
|
1168
|
+
WebsiteGeneration: 'website-generation',
|
|
1169
|
+
ImageGeneration: 'image-generation'
|
|
1170
|
+
};
|
|
1171
|
+
exports.WordPressV1ContentGenerationResourceStatusEnum = {
|
|
1172
|
+
InProgress: 'in-progress',
|
|
1173
|
+
Completed: 'completed',
|
|
1174
|
+
Failed: 'failed'
|
|
1175
|
+
};
|
|
1167
1176
|
exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = {
|
|
1168
1177
|
Llmstxt: 'llmstxt',
|
|
1169
1178
|
Web2agent: 'web2agent'
|
|
@@ -32993,7 +33002,7 @@ exports.VPSVirtualMachineApi = VPSVirtualMachineApi;
|
|
|
32993
33002
|
const WordPressAIContentApiAxiosParamCreator = function (configuration) {
|
|
32994
33003
|
return {
|
|
32995
33004
|
/**
|
|
32996
|
-
*
|
|
33005
|
+
* 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).
|
|
32997
33006
|
* @summary Generate images
|
|
32998
33007
|
* @param {string} username
|
|
32999
33008
|
* @param {string} software WordPress installation (software) identifier
|
|
@@ -33033,6 +33042,50 @@ const WordPressAIContentApiAxiosParamCreator = function (configuration) {
|
|
|
33033
33042
|
options: localVarRequestOptions,
|
|
33034
33043
|
};
|
|
33035
33044
|
}),
|
|
33045
|
+
/**
|
|
33046
|
+
* 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).
|
|
33047
|
+
* @summary Get generation result
|
|
33048
|
+
* @param {string} username
|
|
33049
|
+
* @param {string} software WordPress installation (software) identifier
|
|
33050
|
+
* @param {string} generationId Generation ID returned when the generation was started
|
|
33051
|
+
* @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
|
|
33052
|
+
* @param {*} [options] Override http request option.
|
|
33053
|
+
* @throws {RequiredError}
|
|
33054
|
+
*/
|
|
33055
|
+
getGenerationResultV1: (username_1, software_1, generationId_1, type_1, ...args_1) => __awaiter(this, [username_1, software_1, generationId_1, type_1, ...args_1], void 0, function* (username, software, generationId, type, options = {}) {
|
|
33056
|
+
// verify required parameter 'username' is not null or undefined
|
|
33057
|
+
(0, common_1.assertParamExists)('getGenerationResultV1', 'username', username);
|
|
33058
|
+
// verify required parameter 'software' is not null or undefined
|
|
33059
|
+
(0, common_1.assertParamExists)('getGenerationResultV1', 'software', software);
|
|
33060
|
+
// verify required parameter 'generationId' is not null or undefined
|
|
33061
|
+
(0, common_1.assertParamExists)('getGenerationResultV1', 'generationId', generationId);
|
|
33062
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/content/generations/{generation_id}`
|
|
33063
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
33064
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)))
|
|
33065
|
+
.replace(`{${"generation_id"}}`, encodeURIComponent(String(generationId)));
|
|
33066
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33067
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
33068
|
+
let baseOptions;
|
|
33069
|
+
if (configuration) {
|
|
33070
|
+
baseOptions = configuration.baseOptions;
|
|
33071
|
+
}
|
|
33072
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
33073
|
+
const localVarHeaderParameter = {};
|
|
33074
|
+
const localVarQueryParameter = {};
|
|
33075
|
+
// authentication apiToken required
|
|
33076
|
+
// http bearer authentication required
|
|
33077
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
33078
|
+
if (type !== undefined) {
|
|
33079
|
+
localVarQueryParameter['type'] = type;
|
|
33080
|
+
}
|
|
33081
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
33082
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33083
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
33084
|
+
return {
|
|
33085
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
33086
|
+
options: localVarRequestOptions,
|
|
33087
|
+
};
|
|
33088
|
+
}),
|
|
33036
33089
|
};
|
|
33037
33090
|
};
|
|
33038
33091
|
exports.WordPressAIContentApiAxiosParamCreator = WordPressAIContentApiAxiosParamCreator;
|
|
@@ -33044,7 +33097,7 @@ const WordPressAIContentApiFp = function (configuration) {
|
|
|
33044
33097
|
const localVarAxiosParamCreator = (0, exports.WordPressAIContentApiAxiosParamCreator)(configuration);
|
|
33045
33098
|
return {
|
|
33046
33099
|
/**
|
|
33047
|
-
*
|
|
33100
|
+
* 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).
|
|
33048
33101
|
* @summary Generate images
|
|
33049
33102
|
* @param {string} username
|
|
33050
33103
|
* @param {string} software WordPress installation (software) identifier
|
|
@@ -33060,6 +33113,24 @@ const WordPressAIContentApiFp = function (configuration) {
|
|
|
33060
33113
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33061
33114
|
});
|
|
33062
33115
|
},
|
|
33116
|
+
/**
|
|
33117
|
+
* 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).
|
|
33118
|
+
* @summary Get generation result
|
|
33119
|
+
* @param {string} username
|
|
33120
|
+
* @param {string} software WordPress installation (software) identifier
|
|
33121
|
+
* @param {string} generationId Generation ID returned when the generation was started
|
|
33122
|
+
* @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
|
|
33123
|
+
* @param {*} [options] Override http request option.
|
|
33124
|
+
* @throws {RequiredError}
|
|
33125
|
+
*/
|
|
33126
|
+
getGenerationResultV1(username, software, generationId, type, options) {
|
|
33127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33128
|
+
var _a, _b;
|
|
33129
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getGenerationResultV1(username, software, generationId, type, options);
|
|
33130
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressAIContentApi.getGenerationResultV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
33131
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33132
|
+
});
|
|
33133
|
+
},
|
|
33063
33134
|
};
|
|
33064
33135
|
};
|
|
33065
33136
|
exports.WordPressAIContentApiFp = WordPressAIContentApiFp;
|
|
@@ -33071,7 +33142,7 @@ const WordPressAIContentApiFactory = function (configuration, basePath, axios) {
|
|
|
33071
33142
|
const localVarFp = (0, exports.WordPressAIContentApiFp)(configuration);
|
|
33072
33143
|
return {
|
|
33073
33144
|
/**
|
|
33074
|
-
*
|
|
33145
|
+
* 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).
|
|
33075
33146
|
* @summary Generate images
|
|
33076
33147
|
* @param {string} username
|
|
33077
33148
|
* @param {string} software WordPress installation (software) identifier
|
|
@@ -33082,6 +33153,19 @@ const WordPressAIContentApiFactory = function (configuration, basePath, axios) {
|
|
|
33082
33153
|
generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options) {
|
|
33083
33154
|
return localVarFp.generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options).then((request) => request(axios, basePath));
|
|
33084
33155
|
},
|
|
33156
|
+
/**
|
|
33157
|
+
* 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).
|
|
33158
|
+
* @summary Get generation result
|
|
33159
|
+
* @param {string} username
|
|
33160
|
+
* @param {string} software WordPress installation (software) identifier
|
|
33161
|
+
* @param {string} generationId Generation ID returned when the generation was started
|
|
33162
|
+
* @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
|
|
33163
|
+
* @param {*} [options] Override http request option.
|
|
33164
|
+
* @throws {RequiredError}
|
|
33165
|
+
*/
|
|
33166
|
+
getGenerationResultV1(username, software, generationId, type, options) {
|
|
33167
|
+
return localVarFp.getGenerationResultV1(username, software, generationId, type, options).then((request) => request(axios, basePath));
|
|
33168
|
+
},
|
|
33085
33169
|
};
|
|
33086
33170
|
};
|
|
33087
33171
|
exports.WordPressAIContentApiFactory = WordPressAIContentApiFactory;
|
|
@@ -33093,7 +33177,7 @@ exports.WordPressAIContentApiFactory = WordPressAIContentApiFactory;
|
|
|
33093
33177
|
*/
|
|
33094
33178
|
class WordPressAIContentApi extends base_1.BaseAPI {
|
|
33095
33179
|
/**
|
|
33096
|
-
*
|
|
33180
|
+
* 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).
|
|
33097
33181
|
* @summary Generate images
|
|
33098
33182
|
* @param {string} username
|
|
33099
33183
|
* @param {string} software WordPress installation (software) identifier
|
|
@@ -33105,8 +33189,29 @@ class WordPressAIContentApi extends base_1.BaseAPI {
|
|
|
33105
33189
|
generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options) {
|
|
33106
33190
|
return (0, exports.WordPressAIContentApiFp)(this.configuration).generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
33107
33191
|
}
|
|
33192
|
+
/**
|
|
33193
|
+
* 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).
|
|
33194
|
+
* @summary Get generation result
|
|
33195
|
+
* @param {string} username
|
|
33196
|
+
* @param {string} software WordPress installation (software) identifier
|
|
33197
|
+
* @param {string} generationId Generation ID returned when the generation was started
|
|
33198
|
+
* @param {GetGenerationResultV1TypeEnum} [type] Generation type to look up. When omitted, every generation type is checked.
|
|
33199
|
+
* @param {*} [options] Override http request option.
|
|
33200
|
+
* @throws {RequiredError}
|
|
33201
|
+
* @memberof WordPressAIContentApi
|
|
33202
|
+
*/
|
|
33203
|
+
getGenerationResultV1(username, software, generationId, type, options) {
|
|
33204
|
+
return (0, exports.WordPressAIContentApiFp)(this.configuration).getGenerationResultV1(username, software, generationId, type, options).then((request) => request(this.axios, this.basePath));
|
|
33205
|
+
}
|
|
33108
33206
|
}
|
|
33109
33207
|
exports.WordPressAIContentApi = WordPressAIContentApi;
|
|
33208
|
+
/**
|
|
33209
|
+
* @export
|
|
33210
|
+
*/
|
|
33211
|
+
exports.GetGenerationResultV1TypeEnum = {
|
|
33212
|
+
WebsiteGeneration: 'website-generation',
|
|
33213
|
+
ImageGeneration: 'image-generation'
|
|
33214
|
+
};
|
|
33110
33215
|
/**
|
|
33111
33216
|
* WordPressAIToolsApi - axios parameter creator
|
|
33112
33217
|
* @export
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version:
|
|
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
|
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version:
|
|
7
|
+
* API Version: 2.0.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version:
|
|
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
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version:
|
|
7
|
+
* API Version: 2.0.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|