hostinger-api-sdk 1.64.0 → 1.65.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 +212 -5
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +149 -5
- package/dist/api.js +143 -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 +149 -5
- package/dist/esm/api.js +130 -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 +69 -0
- package/docs/WordPressInstallationsApi.md +1 -1
- package/docs/WordPressV1ContentGenerateImagesRequest.md +33 -0
- package/docs/WordPressV1ContentGeneratedImagesResource.md +23 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@1.
|
|
1
|
+
## @hostinger/sdk@1.65.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.
|
|
8
|
+
npm install @hostinger/sdk@1.65.0 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.65.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
|
|
@@ -16530,6 +16530,86 @@ export interface WordPressV1CommonVulnerabilityResource {
|
|
|
16530
16530
|
*/
|
|
16531
16531
|
'direct_url': string;
|
|
16532
16532
|
}
|
|
16533
|
+
/**
|
|
16534
|
+
* Generate images from a prompt and an image type
|
|
16535
|
+
* @export
|
|
16536
|
+
* @interface WordPressV1ContentGenerateImagesRequest
|
|
16537
|
+
*/
|
|
16538
|
+
export interface WordPressV1ContentGenerateImagesRequest {
|
|
16539
|
+
/**
|
|
16540
|
+
* What the image should show. For the logo type, the wordmark and mark to render.
|
|
16541
|
+
* @type {string}
|
|
16542
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16543
|
+
*/
|
|
16544
|
+
'prompt': string;
|
|
16545
|
+
/**
|
|
16546
|
+
* Kind of image to generate. It sets the default size and cropping.
|
|
16547
|
+
* @type {string}
|
|
16548
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16549
|
+
*/
|
|
16550
|
+
'image_type': WordPressV1ContentGenerateImagesRequestImageTypeEnum;
|
|
16551
|
+
/**
|
|
16552
|
+
* How many images to generate
|
|
16553
|
+
* @type {number}
|
|
16554
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16555
|
+
*/
|
|
16556
|
+
'num_of_images': number;
|
|
16557
|
+
/**
|
|
16558
|
+
* Output width in pixels. Defaults per image type and is ignored for the logo type.
|
|
16559
|
+
* @type {number}
|
|
16560
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16561
|
+
*/
|
|
16562
|
+
'width': number | null;
|
|
16563
|
+
/**
|
|
16564
|
+
* Output height in pixels. Defaults per image type and is ignored for the logo type.
|
|
16565
|
+
* @type {number}
|
|
16566
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16567
|
+
*/
|
|
16568
|
+
'height': number | null;
|
|
16569
|
+
/**
|
|
16570
|
+
* Style tokens appended to photographic prompts. Ignored for the logo type.
|
|
16571
|
+
* @type {string}
|
|
16572
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16573
|
+
*/
|
|
16574
|
+
'style': string | null;
|
|
16575
|
+
/**
|
|
16576
|
+
* Colour direction for the logo type only. It is not rendered as text.
|
|
16577
|
+
* @type {string}
|
|
16578
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16579
|
+
*/
|
|
16580
|
+
'color_guidance': string | null;
|
|
16581
|
+
}
|
|
16582
|
+
|
|
16583
|
+
export const WordPressV1ContentGenerateImagesRequestImageTypeEnum = {
|
|
16584
|
+
Hero: 'hero',
|
|
16585
|
+
Background: 'background',
|
|
16586
|
+
Inline: 'inline',
|
|
16587
|
+
Gallery: 'gallery',
|
|
16588
|
+
Product: 'product',
|
|
16589
|
+
Logo: 'logo'
|
|
16590
|
+
} as const;
|
|
16591
|
+
|
|
16592
|
+
export type WordPressV1ContentGenerateImagesRequestImageTypeEnum = typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum[keyof typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum];
|
|
16593
|
+
|
|
16594
|
+
/**
|
|
16595
|
+
* Images generated by the AI image generator.
|
|
16596
|
+
* @export
|
|
16597
|
+
* @interface WordPressV1ContentGeneratedImagesResource
|
|
16598
|
+
*/
|
|
16599
|
+
export interface WordPressV1ContentGeneratedImagesResource {
|
|
16600
|
+
/**
|
|
16601
|
+
* Generated images, each encoded as a base64 string
|
|
16602
|
+
* @type {Array<string>}
|
|
16603
|
+
* @memberof WordPressV1ContentGeneratedImagesResource
|
|
16604
|
+
*/
|
|
16605
|
+
'images': Array<string>;
|
|
16606
|
+
/**
|
|
16607
|
+
* MIME type shared by all returned images
|
|
16608
|
+
* @type {string}
|
|
16609
|
+
* @memberof WordPressV1ContentGeneratedImagesResource
|
|
16610
|
+
*/
|
|
16611
|
+
'content_type': string;
|
|
16612
|
+
}
|
|
16533
16613
|
/**
|
|
16534
16614
|
*
|
|
16535
16615
|
* @export
|
|
@@ -51054,6 +51134,133 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
51054
51134
|
|
|
51055
51135
|
|
|
51056
51136
|
|
|
51137
|
+
/**
|
|
51138
|
+
* WordPressAIContentApi - axios parameter creator
|
|
51139
|
+
* @export
|
|
51140
|
+
*/
|
|
51141
|
+
export const WordPressAIContentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
51142
|
+
return {
|
|
51143
|
+
/**
|
|
51144
|
+
* 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).
|
|
51145
|
+
* @summary Generate images
|
|
51146
|
+
* @param {string} username
|
|
51147
|
+
* @param {string} software WordPress installation (software) identifier
|
|
51148
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
51149
|
+
* @param {*} [options] Override http request option.
|
|
51150
|
+
* @throws {RequiredError}
|
|
51151
|
+
*/
|
|
51152
|
+
generateImagesV1: async (username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
51153
|
+
// verify required parameter 'username' is not null or undefined
|
|
51154
|
+
assertParamExists('generateImagesV1', 'username', username)
|
|
51155
|
+
// verify required parameter 'software' is not null or undefined
|
|
51156
|
+
assertParamExists('generateImagesV1', 'software', software)
|
|
51157
|
+
// verify required parameter 'wordPressV1ContentGenerateImagesRequest' is not null or undefined
|
|
51158
|
+
assertParamExists('generateImagesV1', 'wordPressV1ContentGenerateImagesRequest', wordPressV1ContentGenerateImagesRequest)
|
|
51159
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate`
|
|
51160
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
51161
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
51162
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51163
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51164
|
+
let baseOptions;
|
|
51165
|
+
if (configuration) {
|
|
51166
|
+
baseOptions = configuration.baseOptions;
|
|
51167
|
+
}
|
|
51168
|
+
|
|
51169
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
51170
|
+
const localVarHeaderParameter = {} as any;
|
|
51171
|
+
const localVarQueryParameter = {} as any;
|
|
51172
|
+
|
|
51173
|
+
// authentication apiToken required
|
|
51174
|
+
// http bearer authentication required
|
|
51175
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
51176
|
+
|
|
51177
|
+
|
|
51178
|
+
|
|
51179
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
51180
|
+
|
|
51181
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
51182
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51183
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
51184
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1ContentGenerateImagesRequest, localVarRequestOptions, configuration)
|
|
51185
|
+
|
|
51186
|
+
return {
|
|
51187
|
+
url: toPathString(localVarUrlObj),
|
|
51188
|
+
options: localVarRequestOptions,
|
|
51189
|
+
};
|
|
51190
|
+
},
|
|
51191
|
+
}
|
|
51192
|
+
};
|
|
51193
|
+
|
|
51194
|
+
/**
|
|
51195
|
+
* WordPressAIContentApi - functional programming interface
|
|
51196
|
+
* @export
|
|
51197
|
+
*/
|
|
51198
|
+
export const WordPressAIContentApiFp = function(configuration?: Configuration) {
|
|
51199
|
+
const localVarAxiosParamCreator = WordPressAIContentApiAxiosParamCreator(configuration)
|
|
51200
|
+
return {
|
|
51201
|
+
/**
|
|
51202
|
+
* 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).
|
|
51203
|
+
* @summary Generate images
|
|
51204
|
+
* @param {string} username
|
|
51205
|
+
* @param {string} software WordPress installation (software) identifier
|
|
51206
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
51207
|
+
* @param {*} [options] Override http request option.
|
|
51208
|
+
* @throws {RequiredError}
|
|
51209
|
+
*/
|
|
51210
|
+
async generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1ContentGeneratedImagesResource>> {
|
|
51211
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options);
|
|
51212
|
+
const localVarOperationServerBasePath = operationServerMap['WordPressAIContentApi.generateImagesV1']?.[0]?.url;
|
|
51213
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
51214
|
+
},
|
|
51215
|
+
}
|
|
51216
|
+
};
|
|
51217
|
+
|
|
51218
|
+
/**
|
|
51219
|
+
* WordPressAIContentApi - factory interface
|
|
51220
|
+
* @export
|
|
51221
|
+
*/
|
|
51222
|
+
export const WordPressAIContentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
51223
|
+
const localVarFp = WordPressAIContentApiFp(configuration)
|
|
51224
|
+
return {
|
|
51225
|
+
/**
|
|
51226
|
+
* 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).
|
|
51227
|
+
* @summary Generate images
|
|
51228
|
+
* @param {string} username
|
|
51229
|
+
* @param {string} software WordPress installation (software) identifier
|
|
51230
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
51231
|
+
* @param {*} [options] Override http request option.
|
|
51232
|
+
* @throws {RequiredError}
|
|
51233
|
+
*/
|
|
51234
|
+
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1ContentGeneratedImagesResource> {
|
|
51235
|
+
return localVarFp.generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options).then((request) => request(axios, basePath));
|
|
51236
|
+
},
|
|
51237
|
+
};
|
|
51238
|
+
};
|
|
51239
|
+
|
|
51240
|
+
/**
|
|
51241
|
+
* WordPressAIContentApi - object-oriented interface
|
|
51242
|
+
* @export
|
|
51243
|
+
* @class WordPressAIContentApi
|
|
51244
|
+
* @extends {BaseAPI}
|
|
51245
|
+
*/
|
|
51246
|
+
export class WordPressAIContentApi extends BaseAPI {
|
|
51247
|
+
/**
|
|
51248
|
+
* 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).
|
|
51249
|
+
* @summary Generate images
|
|
51250
|
+
* @param {string} username
|
|
51251
|
+
* @param {string} software WordPress installation (software) identifier
|
|
51252
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
51253
|
+
* @param {*} [options] Override http request option.
|
|
51254
|
+
* @throws {RequiredError}
|
|
51255
|
+
* @memberof WordPressAIContentApi
|
|
51256
|
+
*/
|
|
51257
|
+
public generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig) {
|
|
51258
|
+
return WordPressAIContentApiFp(this.configuration).generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
51259
|
+
}
|
|
51260
|
+
}
|
|
51261
|
+
|
|
51262
|
+
|
|
51263
|
+
|
|
51057
51264
|
/**
|
|
51058
51265
|
* WordPressAIToolsApi - axios parameter creator
|
|
51059
51266
|
* @export
|
|
@@ -51589,7 +51796,7 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
|
|
|
51589
51796
|
};
|
|
51590
51797
|
},
|
|
51591
51798
|
/**
|
|
51592
|
-
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
51799
|
+
* List WordPress installations on shared and cloud web hosting accounts (the `/api/hosting/v1` family, identified by `username`) accessible to the authenticated client. Agency Plan websites are not included. To work with WordPress on an Agency Plan website, list them with GET /api/agency-hosting/v1/websites?website_types=wordpress and read their details with GET /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings. An account that only has Agency Plan websites receives an empty list from this endpoint. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
51593
51800
|
* @summary List WordPress installations
|
|
51594
51801
|
* @param {string | null} [username] Filter by specific username
|
|
51595
51802
|
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
@@ -51830,7 +52037,7 @@ export const WordPressInstallationsApiFp = function(configuration?: Configuratio
|
|
|
51830
52037
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
51831
52038
|
},
|
|
51832
52039
|
/**
|
|
51833
|
-
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
52040
|
+
* List WordPress installations on shared and cloud web hosting accounts (the `/api/hosting/v1` family, identified by `username`) accessible to the authenticated client. Agency Plan websites are not included. To work with WordPress on an Agency Plan website, list them with GET /api/agency-hosting/v1/websites?website_types=wordpress and read their details with GET /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings. An account that only has Agency Plan websites receives an empty list from this endpoint. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
51834
52041
|
* @summary List WordPress installations
|
|
51835
52042
|
* @param {string | null} [username] Filter by specific username
|
|
51836
52043
|
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
@@ -51959,7 +52166,7 @@ export const WordPressInstallationsApiFactory = function (configuration?: Config
|
|
|
51959
52166
|
return localVarFp.listAvailableWordPressCoreUpdatesV1(username, software, options).then((request) => request(axios, basePath));
|
|
51960
52167
|
},
|
|
51961
52168
|
/**
|
|
51962
|
-
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
52169
|
+
* List WordPress installations on shared and cloud web hosting accounts (the `/api/hosting/v1` family, identified by `username`) accessible to the authenticated client. Agency Plan websites are not included. To work with WordPress on an Agency Plan website, list them with GET /api/agency-hosting/v1/websites?website_types=wordpress and read their details with GET /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings. An account that only has Agency Plan websites receives an empty list from this endpoint. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
51963
52170
|
* @summary List WordPress installations
|
|
51964
52171
|
* @param {string | null} [username] Filter by specific username
|
|
51965
52172
|
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
@@ -52096,7 +52303,7 @@ export class WordPressInstallationsApi extends BaseAPI {
|
|
|
52096
52303
|
}
|
|
52097
52304
|
|
|
52098
52305
|
/**
|
|
52099
|
-
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
52306
|
+
* List WordPress installations on shared and cloud web hosting accounts (the `/api/hosting/v1` family, identified by `username`) accessible to the authenticated client. Agency Plan websites are not included. To work with WordPress on an Agency Plan website, list them with GET /api/agency-hosting/v1/websites?website_types=wordpress and read their details with GET /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings. An account that only has Agency Plan websites receives an empty list from this endpoint. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
52100
52307
|
* @summary List WordPress installations
|
|
52101
52308
|
* @param {string | null} [username] Filter by specific username
|
|
52102
52309
|
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.65.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.
|
|
6
|
+
* API Version: 1.65.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.
|
|
6
|
+
* API Version: 1.65.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.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.65.0",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.65.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
|
|
@@ -16174,6 +16174,83 @@ export interface WordPressV1CommonVulnerabilityResource {
|
|
|
16174
16174
|
*/
|
|
16175
16175
|
'direct_url': string;
|
|
16176
16176
|
}
|
|
16177
|
+
/**
|
|
16178
|
+
* Generate images from a prompt and an image type
|
|
16179
|
+
* @export
|
|
16180
|
+
* @interface WordPressV1ContentGenerateImagesRequest
|
|
16181
|
+
*/
|
|
16182
|
+
export interface WordPressV1ContentGenerateImagesRequest {
|
|
16183
|
+
/**
|
|
16184
|
+
* What the image should show. For the logo type, the wordmark and mark to render.
|
|
16185
|
+
* @type {string}
|
|
16186
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16187
|
+
*/
|
|
16188
|
+
'prompt': string;
|
|
16189
|
+
/**
|
|
16190
|
+
* Kind of image to generate. It sets the default size and cropping.
|
|
16191
|
+
* @type {string}
|
|
16192
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16193
|
+
*/
|
|
16194
|
+
'image_type': WordPressV1ContentGenerateImagesRequestImageTypeEnum;
|
|
16195
|
+
/**
|
|
16196
|
+
* How many images to generate
|
|
16197
|
+
* @type {number}
|
|
16198
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16199
|
+
*/
|
|
16200
|
+
'num_of_images': number;
|
|
16201
|
+
/**
|
|
16202
|
+
* Output width in pixels. Defaults per image type and is ignored for the logo type.
|
|
16203
|
+
* @type {number}
|
|
16204
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16205
|
+
*/
|
|
16206
|
+
'width': number | null;
|
|
16207
|
+
/**
|
|
16208
|
+
* Output height in pixels. Defaults per image type and is ignored for the logo type.
|
|
16209
|
+
* @type {number}
|
|
16210
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16211
|
+
*/
|
|
16212
|
+
'height': number | null;
|
|
16213
|
+
/**
|
|
16214
|
+
* Style tokens appended to photographic prompts. Ignored for the logo type.
|
|
16215
|
+
* @type {string}
|
|
16216
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16217
|
+
*/
|
|
16218
|
+
'style': string | null;
|
|
16219
|
+
/**
|
|
16220
|
+
* Colour direction for the logo type only. It is not rendered as text.
|
|
16221
|
+
* @type {string}
|
|
16222
|
+
* @memberof WordPressV1ContentGenerateImagesRequest
|
|
16223
|
+
*/
|
|
16224
|
+
'color_guidance': string | null;
|
|
16225
|
+
}
|
|
16226
|
+
export declare const WordPressV1ContentGenerateImagesRequestImageTypeEnum: {
|
|
16227
|
+
readonly Hero: "hero";
|
|
16228
|
+
readonly Background: "background";
|
|
16229
|
+
readonly Inline: "inline";
|
|
16230
|
+
readonly Gallery: "gallery";
|
|
16231
|
+
readonly Product: "product";
|
|
16232
|
+
readonly Logo: "logo";
|
|
16233
|
+
};
|
|
16234
|
+
export type WordPressV1ContentGenerateImagesRequestImageTypeEnum = typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum[keyof typeof WordPressV1ContentGenerateImagesRequestImageTypeEnum];
|
|
16235
|
+
/**
|
|
16236
|
+
* Images generated by the AI image generator.
|
|
16237
|
+
* @export
|
|
16238
|
+
* @interface WordPressV1ContentGeneratedImagesResource
|
|
16239
|
+
*/
|
|
16240
|
+
export interface WordPressV1ContentGeneratedImagesResource {
|
|
16241
|
+
/**
|
|
16242
|
+
* Generated images, each encoded as a base64 string
|
|
16243
|
+
* @type {Array<string>}
|
|
16244
|
+
* @memberof WordPressV1ContentGeneratedImagesResource
|
|
16245
|
+
*/
|
|
16246
|
+
'images': Array<string>;
|
|
16247
|
+
/**
|
|
16248
|
+
* MIME type shared by all returned images
|
|
16249
|
+
* @type {string}
|
|
16250
|
+
* @memberof WordPressV1ContentGeneratedImagesResource
|
|
16251
|
+
*/
|
|
16252
|
+
'content_type': string;
|
|
16253
|
+
}
|
|
16177
16254
|
/**
|
|
16178
16255
|
*
|
|
16179
16256
|
* @export
|
|
@@ -33613,6 +33690,73 @@ export declare class VPSVirtualMachineApi extends BaseAPI {
|
|
|
33613
33690
|
*/
|
|
33614
33691
|
stopVirtualMachineV1(virtualMachineId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1ActionActionResource, any, {}, any>>;
|
|
33615
33692
|
}
|
|
33693
|
+
/**
|
|
33694
|
+
* WordPressAIContentApi - axios parameter creator
|
|
33695
|
+
* @export
|
|
33696
|
+
*/
|
|
33697
|
+
export declare const WordPressAIContentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
33698
|
+
/**
|
|
33699
|
+
* 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).
|
|
33700
|
+
* @summary Generate images
|
|
33701
|
+
* @param {string} username
|
|
33702
|
+
* @param {string} software WordPress installation (software) identifier
|
|
33703
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
33704
|
+
* @param {*} [options] Override http request option.
|
|
33705
|
+
* @throws {RequiredError}
|
|
33706
|
+
*/
|
|
33707
|
+
generateImagesV1: (username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
33708
|
+
};
|
|
33709
|
+
/**
|
|
33710
|
+
* WordPressAIContentApi - functional programming interface
|
|
33711
|
+
* @export
|
|
33712
|
+
*/
|
|
33713
|
+
export declare const WordPressAIContentApiFp: (configuration?: Configuration) => {
|
|
33714
|
+
/**
|
|
33715
|
+
* 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).
|
|
33716
|
+
* @summary Generate images
|
|
33717
|
+
* @param {string} username
|
|
33718
|
+
* @param {string} software WordPress installation (software) identifier
|
|
33719
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
33720
|
+
* @param {*} [options] Override http request option.
|
|
33721
|
+
* @throws {RequiredError}
|
|
33722
|
+
*/
|
|
33723
|
+
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WordPressV1ContentGeneratedImagesResource>>;
|
|
33724
|
+
};
|
|
33725
|
+
/**
|
|
33726
|
+
* WordPressAIContentApi - factory interface
|
|
33727
|
+
* @export
|
|
33728
|
+
*/
|
|
33729
|
+
export declare const WordPressAIContentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
33730
|
+
/**
|
|
33731
|
+
* 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).
|
|
33732
|
+
* @summary Generate images
|
|
33733
|
+
* @param {string} username
|
|
33734
|
+
* @param {string} software WordPress installation (software) identifier
|
|
33735
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
33736
|
+
* @param {*} [options] Override http request option.
|
|
33737
|
+
* @throws {RequiredError}
|
|
33738
|
+
*/
|
|
33739
|
+
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<WordPressV1ContentGeneratedImagesResource>;
|
|
33740
|
+
};
|
|
33741
|
+
/**
|
|
33742
|
+
* WordPressAIContentApi - object-oriented interface
|
|
33743
|
+
* @export
|
|
33744
|
+
* @class WordPressAIContentApi
|
|
33745
|
+
* @extends {BaseAPI}
|
|
33746
|
+
*/
|
|
33747
|
+
export declare class WordPressAIContentApi extends BaseAPI {
|
|
33748
|
+
/**
|
|
33749
|
+
* 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).
|
|
33750
|
+
* @summary Generate images
|
|
33751
|
+
* @param {string} username
|
|
33752
|
+
* @param {string} software WordPress installation (software) identifier
|
|
33753
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
33754
|
+
* @param {*} [options] Override http request option.
|
|
33755
|
+
* @throws {RequiredError}
|
|
33756
|
+
* @memberof WordPressAIContentApi
|
|
33757
|
+
*/
|
|
33758
|
+
generateImagesV1(username: string, software: string, wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WordPressV1ContentGeneratedImagesResource, any, {}, any>>;
|
|
33759
|
+
}
|
|
33616
33760
|
/**
|
|
33617
33761
|
* WordPressAIToolsApi - axios parameter creator
|
|
33618
33762
|
* @export
|
|
@@ -33799,7 +33943,7 @@ export declare const WordPressInstallationsApiAxiosParamCreator: (configuration?
|
|
|
33799
33943
|
*/
|
|
33800
33944
|
listAvailableWordPressCoreUpdatesV1: (username: string, software: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
33801
33945
|
/**
|
|
33802
|
-
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
33946
|
+
* List WordPress installations on shared and cloud web hosting accounts (the `/api/hosting/v1` family, identified by `username`) accessible to the authenticated client. Agency Plan websites are not included. To work with WordPress on an Agency Plan website, list them with GET /api/agency-hosting/v1/websites?website_types=wordpress and read their details with GET /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings. An account that only has Agency Plan websites receives an empty list from this endpoint. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
33803
33947
|
* @summary List WordPress installations
|
|
33804
33948
|
* @param {string | null} [username] Filter by specific username
|
|
33805
33949
|
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
@@ -33898,7 +34042,7 @@ export declare const WordPressInstallationsApiFp: (configuration?: Configuration
|
|
|
33898
34042
|
*/
|
|
33899
34043
|
listAvailableWordPressCoreUpdatesV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WordPressV1InstallationsUpdateResource>>>;
|
|
33900
34044
|
/**
|
|
33901
|
-
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
34045
|
+
* List WordPress installations on shared and cloud web hosting accounts (the `/api/hosting/v1` family, identified by `username`) accessible to the authenticated client. Agency Plan websites are not included. To work with WordPress on an Agency Plan website, list them with GET /api/agency-hosting/v1/websites?website_types=wordpress and read their details with GET /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings. An account that only has Agency Plan websites receives an empty list from this endpoint. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
33902
34046
|
* @summary List WordPress installations
|
|
33903
34047
|
* @param {string | null} [username] Filter by specific username
|
|
33904
34048
|
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
@@ -33997,7 +34141,7 @@ export declare const WordPressInstallationsApiFactory: (configuration?: Configur
|
|
|
33997
34141
|
*/
|
|
33998
34142
|
listAvailableWordPressCoreUpdatesV1(username: string, software: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<WordPressV1InstallationsUpdateResource>>;
|
|
33999
34143
|
/**
|
|
34000
|
-
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
34144
|
+
* List WordPress installations on shared and cloud web hosting accounts (the `/api/hosting/v1` family, identified by `username`) accessible to the authenticated client. Agency Plan websites are not included. To work with WordPress on an Agency Plan website, list them with GET /api/agency-hosting/v1/websites?website_types=wordpress and read their details with GET /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings. An account that only has Agency Plan websites receives an empty list from this endpoint. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
34001
34145
|
* @summary List WordPress installations
|
|
34002
34146
|
* @param {string | null} [username] Filter by specific username
|
|
34003
34147
|
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|
|
@@ -34105,7 +34249,7 @@ export declare class WordPressInstallationsApi extends BaseAPI {
|
|
|
34105
34249
|
*/
|
|
34106
34250
|
listAvailableWordPressCoreUpdatesV1(username: string, software: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WordPressV1InstallationsUpdateResource[], any, {}, any>>;
|
|
34107
34251
|
/**
|
|
34108
|
-
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
34252
|
+
* List WordPress installations on shared and cloud web hosting accounts (the `/api/hosting/v1` family, identified by `username`) accessible to the authenticated client. Agency Plan websites are not included. To work with WordPress on an Agency Plan website, list them with GET /api/agency-hosting/v1/websites?website_types=wordpress and read their details with GET /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings. An account that only has Agency Plan websites receives an empty list from this endpoint. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
34109
34253
|
* @summary List WordPress installations
|
|
34110
34254
|
* @param {string | null} [username] Filter by specific username
|
|
34111
34255
|
* @param {string | null} [domain] Filter by domain name (case-insensitive substring match)
|