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.
- package/README.md +2 -2
- package/api.ts +231 -23
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +179 -24
- package/dist/api.js +131 -22
- 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 +179 -24
- package/dist/esm/api.js +122 -13
- 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/HostingV1OnboardingsStartOnboardingRequest.md +3 -1
- package/docs/HostingV1WebsitesCreateWebsiteRequest.md +2 -2
- package/docs/HostingWebsitesApi.md +3 -2
- 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
|
@@ -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<
|
|
10
|
-
**
|
|
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
|
-
|
|
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:
|
|
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
|