hostinger-api-sdk 1.67.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ # WordPressV1ContentGeneratedImageResource
2
+
3
+ Single image generated by the AI image generator.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **url** | **string** | Temporary URL of the generated image, valid until the `expires_at` time of the result | [default to undefined]
10
+ **width** | **number** | Image width in pixels | [default to undefined]
11
+ **height** | **number** | Image height in pixels | [default to undefined]
12
+ **content_type** | **string** | MIME type of the image | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { WordPressV1ContentGeneratedImageResource } from '@hostinger/sdk';
18
+
19
+ const instance: WordPressV1ContentGeneratedImageResource = {
20
+ url,
21
+ width,
22
+ height,
23
+ content_type,
24
+ };
25
+ ```
26
+
27
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -6,8 +6,8 @@ Images generated by the AI image generator.
6
6
 
7
7
  Name | Type | Description | Notes
8
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]
9
+ **images** | [**Array<WordPressV1ContentGeneratedImageResource>**](WordPressV1ContentGeneratedImageResource.md) | Generated images, each available at a temporary URL | [default to undefined]
10
+ **expires_at** | **string** | Time after which the image URLs stop working. Download the images before then. | [default to undefined]
11
11
 
12
12
  ## Example
13
13
 
@@ -16,7 +16,7 @@ import { WordPressV1ContentGeneratedImagesResource } from '@hostinger/sdk';
16
16
 
17
17
  const instance: WordPressV1ContentGeneratedImagesResource = {
18
18
  images,
19
- content_type,
19
+ expires_at,
20
20
  };
21
21
  ```
22
22
 
@@ -0,0 +1,27 @@
1
+ # WordPressV1ContentGenerationResource
2
+
3
+ State of an AI content generation and, once completed, its result.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **generation_id** | **string** | Generation ID (UUID) used to poll for the result | [default to undefined]
10
+ **type** | **string** | Kind of generation, determines the shape of `result` | [default to undefined]
11
+ **status** | **string** | `in-progress` while the generation is still running, `completed` once `result` is available, `failed` when the generation stopped without a result. | [default to undefined]
12
+ **result** | [**WordPressV1ContentGenerationResourceResult**](WordPressV1ContentGenerationResourceResult.md) | | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { WordPressV1ContentGenerationResource } from '@hostinger/sdk';
18
+
19
+ const instance: WordPressV1ContentGenerationResource = {
20
+ generation_id,
21
+ type,
22
+ status,
23
+ result,
24
+ };
25
+ ```
26
+
27
+ [[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
+ # WordPressV1ContentGenerationResourceResult
2
+
3
+ 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.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **images** | [**Array<WordPressV1ContentGeneratedImageResource>**](WordPressV1ContentGeneratedImageResource.md) | Generated images, each available at a temporary URL | [default to undefined]
10
+ **expires_at** | **string** | Time after which the image URLs stop working. Download the images before then. | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { WordPressV1ContentGenerationResourceResult } from '@hostinger/sdk';
16
+
17
+ const instance: WordPressV1ContentGenerationResourceResult = {
18
+ images,
19
+ expires_at,
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.67.1
6
+ * API Version: 2.0.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "1.67.1",
3
+ "version": "2.0.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {