hostinger-api-sdk 1.64.1 → 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 +208 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +145 -1
- package/dist/api.js +139 -10
- 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 +145 -1
- package/dist/esm/api.js +126 -1
- 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/WordPressV1ContentGenerateImagesRequest.md +33 -0
- package/docs/WordPressV1ContentGeneratedImagesResource.md +23 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
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
|
|
@@ -1115,6 +1115,14 @@ export const VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = {
|
|
|
1115
1115
|
Unlocked: 'unlocked',
|
|
1116
1116
|
Locked: 'locked'
|
|
1117
1117
|
};
|
|
1118
|
+
export const WordPressV1ContentGenerateImagesRequestImageTypeEnum = {
|
|
1119
|
+
Hero: 'hero',
|
|
1120
|
+
Background: 'background',
|
|
1121
|
+
Inline: 'inline',
|
|
1122
|
+
Gallery: 'gallery',
|
|
1123
|
+
Product: 'product',
|
|
1124
|
+
Logo: 'logo'
|
|
1125
|
+
};
|
|
1118
1126
|
export const WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = {
|
|
1119
1127
|
Llmstxt: 'llmstxt',
|
|
1120
1128
|
Web2agent: 'web2agent'
|
|
@@ -32228,6 +32236,123 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
32228
32236
|
return VPSVirtualMachineApiFp(this.configuration).stopVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
32229
32237
|
}
|
|
32230
32238
|
}
|
|
32239
|
+
/**
|
|
32240
|
+
* WordPressAIContentApi - axios parameter creator
|
|
32241
|
+
* @export
|
|
32242
|
+
*/
|
|
32243
|
+
export const WordPressAIContentApiAxiosParamCreator = function (configuration) {
|
|
32244
|
+
return {
|
|
32245
|
+
/**
|
|
32246
|
+
* 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).
|
|
32247
|
+
* @summary Generate images
|
|
32248
|
+
* @param {string} username
|
|
32249
|
+
* @param {string} software WordPress installation (software) identifier
|
|
32250
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
32251
|
+
* @param {*} [options] Override http request option.
|
|
32252
|
+
* @throws {RequiredError}
|
|
32253
|
+
*/
|
|
32254
|
+
generateImagesV1: (username_1, software_1, wordPressV1ContentGenerateImagesRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1ContentGenerateImagesRequest_1, ...args_1], void 0, function* (username, software, wordPressV1ContentGenerateImagesRequest, options = {}) {
|
|
32255
|
+
// verify required parameter 'username' is not null or undefined
|
|
32256
|
+
assertParamExists('generateImagesV1', 'username', username);
|
|
32257
|
+
// verify required parameter 'software' is not null or undefined
|
|
32258
|
+
assertParamExists('generateImagesV1', 'software', software);
|
|
32259
|
+
// verify required parameter 'wordPressV1ContentGenerateImagesRequest' is not null or undefined
|
|
32260
|
+
assertParamExists('generateImagesV1', 'wordPressV1ContentGenerateImagesRequest', wordPressV1ContentGenerateImagesRequest);
|
|
32261
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate`
|
|
32262
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
32263
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
32264
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32265
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32266
|
+
let baseOptions;
|
|
32267
|
+
if (configuration) {
|
|
32268
|
+
baseOptions = configuration.baseOptions;
|
|
32269
|
+
}
|
|
32270
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
32271
|
+
const localVarHeaderParameter = {};
|
|
32272
|
+
const localVarQueryParameter = {};
|
|
32273
|
+
// authentication apiToken required
|
|
32274
|
+
// http bearer authentication required
|
|
32275
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
32276
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32277
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32278
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32279
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
32280
|
+
localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1ContentGenerateImagesRequest, localVarRequestOptions, configuration);
|
|
32281
|
+
return {
|
|
32282
|
+
url: toPathString(localVarUrlObj),
|
|
32283
|
+
options: localVarRequestOptions,
|
|
32284
|
+
};
|
|
32285
|
+
}),
|
|
32286
|
+
};
|
|
32287
|
+
};
|
|
32288
|
+
/**
|
|
32289
|
+
* WordPressAIContentApi - functional programming interface
|
|
32290
|
+
* @export
|
|
32291
|
+
*/
|
|
32292
|
+
export const WordPressAIContentApiFp = function (configuration) {
|
|
32293
|
+
const localVarAxiosParamCreator = WordPressAIContentApiAxiosParamCreator(configuration);
|
|
32294
|
+
return {
|
|
32295
|
+
/**
|
|
32296
|
+
* 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).
|
|
32297
|
+
* @summary Generate images
|
|
32298
|
+
* @param {string} username
|
|
32299
|
+
* @param {string} software WordPress installation (software) identifier
|
|
32300
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
32301
|
+
* @param {*} [options] Override http request option.
|
|
32302
|
+
* @throws {RequiredError}
|
|
32303
|
+
*/
|
|
32304
|
+
generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options) {
|
|
32305
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32306
|
+
var _a, _b;
|
|
32307
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options);
|
|
32308
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressAIContentApi.generateImagesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
32309
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32310
|
+
});
|
|
32311
|
+
},
|
|
32312
|
+
};
|
|
32313
|
+
};
|
|
32314
|
+
/**
|
|
32315
|
+
* WordPressAIContentApi - factory interface
|
|
32316
|
+
* @export
|
|
32317
|
+
*/
|
|
32318
|
+
export const WordPressAIContentApiFactory = function (configuration, basePath, axios) {
|
|
32319
|
+
const localVarFp = WordPressAIContentApiFp(configuration);
|
|
32320
|
+
return {
|
|
32321
|
+
/**
|
|
32322
|
+
* 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).
|
|
32323
|
+
* @summary Generate images
|
|
32324
|
+
* @param {string} username
|
|
32325
|
+
* @param {string} software WordPress installation (software) identifier
|
|
32326
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
32327
|
+
* @param {*} [options] Override http request option.
|
|
32328
|
+
* @throws {RequiredError}
|
|
32329
|
+
*/
|
|
32330
|
+
generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options) {
|
|
32331
|
+
return localVarFp.generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options).then((request) => request(axios, basePath));
|
|
32332
|
+
},
|
|
32333
|
+
};
|
|
32334
|
+
};
|
|
32335
|
+
/**
|
|
32336
|
+
* WordPressAIContentApi - object-oriented interface
|
|
32337
|
+
* @export
|
|
32338
|
+
* @class WordPressAIContentApi
|
|
32339
|
+
* @extends {BaseAPI}
|
|
32340
|
+
*/
|
|
32341
|
+
export class WordPressAIContentApi extends BaseAPI {
|
|
32342
|
+
/**
|
|
32343
|
+
* 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).
|
|
32344
|
+
* @summary Generate images
|
|
32345
|
+
* @param {string} username
|
|
32346
|
+
* @param {string} software WordPress installation (software) identifier
|
|
32347
|
+
* @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
|
|
32348
|
+
* @param {*} [options] Override http request option.
|
|
32349
|
+
* @throws {RequiredError}
|
|
32350
|
+
* @memberof WordPressAIContentApi
|
|
32351
|
+
*/
|
|
32352
|
+
generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options) {
|
|
32353
|
+
return WordPressAIContentApiFp(this.configuration).generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
32354
|
+
}
|
|
32355
|
+
}
|
|
32231
32356
|
/**
|
|
32232
32357
|
* WordPressAIToolsApi - axios parameter creator
|
|
32233
32358
|
* @export
|
package/dist/esm/base.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
|
package/dist/esm/base.js
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/dist/esm/common.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
|
package/dist/esm/common.js
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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.65.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.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
|
package/dist/esm/index.js
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/dist/index.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
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.65.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
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# WordPressAIContentApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**generateImagesV1**](#generateimagesv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate | Generate images|
|
|
8
|
+
|
|
9
|
+
# **generateImagesV1**
|
|
10
|
+
> WordPressV1ContentGeneratedImagesResource generateImagesV1(wordPressV1ContentGenerateImagesRequest)
|
|
11
|
+
|
|
12
|
+
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).
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
WordPressAIContentApi,
|
|
19
|
+
Configuration,
|
|
20
|
+
WordPressV1ContentGenerateImagesRequest
|
|
21
|
+
} from '@hostinger/sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new WordPressAIContentApi(configuration);
|
|
25
|
+
|
|
26
|
+
let username: string; // (default to undefined)
|
|
27
|
+
let software: string; //WordPress installation (software) identifier (default to undefined)
|
|
28
|
+
let wordPressV1ContentGenerateImagesRequest: WordPressV1ContentGenerateImagesRequest; //
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.generateImagesV1(
|
|
31
|
+
username,
|
|
32
|
+
software,
|
|
33
|
+
wordPressV1ContentGenerateImagesRequest
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **wordPressV1ContentGenerateImagesRequest** | **WordPressV1ContentGenerateImagesRequest**| | |
|
|
42
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
43
|
+
| **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
**WordPressV1ContentGeneratedImagesResource**
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[apiToken](../README.md#apiToken)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: application/json
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### HTTP response details
|
|
61
|
+
| Status code | Description | Response headers |
|
|
62
|
+
|-------------|-------------|------------------|
|
|
63
|
+
|**200** | Success response | - |
|
|
64
|
+
|**422** | Validation error response | - |
|
|
65
|
+
|**401** | Unauthenticated response | - |
|
|
66
|
+
|**500** | Error response | - |
|
|
67
|
+
|
|
68
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
69
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# WordPressV1ContentGenerateImagesRequest
|
|
2
|
+
|
|
3
|
+
Generate images from a prompt and an image type
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**prompt** | **string** | What the image should show. For the logo type, the wordmark and mark to render. | [default to undefined]
|
|
10
|
+
**image_type** | **string** | Kind of image to generate. It sets the default size and cropping. | [default to undefined]
|
|
11
|
+
**num_of_images** | **number** | How many images to generate | [optional] [default to 1]
|
|
12
|
+
**width** | **number** | Output width in pixels. Defaults per image type and is ignored for the logo type. | [optional] [default to undefined]
|
|
13
|
+
**height** | **number** | Output height in pixels. Defaults per image type and is ignored for the logo type. | [optional] [default to undefined]
|
|
14
|
+
**style** | **string** | Style tokens appended to photographic prompts. Ignored for the logo type. | [optional] [default to undefined]
|
|
15
|
+
**color_guidance** | **string** | Colour direction for the logo type only. It is not rendered as text. | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { WordPressV1ContentGenerateImagesRequest } from '@hostinger/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: WordPressV1ContentGenerateImagesRequest = {
|
|
23
|
+
prompt,
|
|
24
|
+
image_type,
|
|
25
|
+
num_of_images,
|
|
26
|
+
width,
|
|
27
|
+
height,
|
|
28
|
+
style,
|
|
29
|
+
color_guidance,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# WordPressV1ContentGeneratedImagesResource
|
|
2
|
+
|
|
3
|
+
Images generated by the AI image generator.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**images** | **Array<string>** | Generated images, each encoded as a base64 string | [default to undefined]
|
|
10
|
+
**content_type** | **string** | MIME type shared by all returned images | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { WordPressV1ContentGeneratedImagesResource } from '@hostinger/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: WordPressV1ContentGeneratedImagesResource = {
|
|
18
|
+
images,
|
|
19
|
+
content_type,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.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
|