Skip to content

Commit 90bb690

Browse files
chore: sdk update
1 parent 2899dc4 commit 90bb690

1,412 files changed

Lines changed: 1680 additions & 1433 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,7 @@ Class | Method | HTTP request | Description
10931093
- [WordPressV1ContentGenerateImagesRequest](docs/WordPressV1ContentGenerateImagesRequest.md)
10941094
- [WordPressV1ContentGeneratedImageResource](docs/WordPressV1ContentGeneratedImageResource.md)
10951095
- [WordPressV1ContentGeneratedImagesResource](docs/WordPressV1ContentGeneratedImagesResource.md)
1096+
- [WordPressV1ContentGeneratedPostResource](docs/WordPressV1ContentGeneratedPostResource.md)
10961097
- [WordPressV1ContentGenerationResource](docs/WordPressV1ContentGenerationResource.md)
10971098
- [WordPressV1ContentGenerationResourceResult](docs/WordPressV1ContentGenerationResourceResult.md)
10981099
- [WordPressV1HostingerPluginsAiOptionStatusResource](docs/WordPressV1HostingerPluginsAiOptionStatusResource.md)

‎docs/WordPressAIContentApi.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,11 @@ POST /api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/gen
113113

114114
While the generation is still running only `status: in-progress` is returned; poll every
115115
few seconds. Once `completed`, `result` holds the generated content shaped according to
116-
`type`: temporary image URLs together with the time they expire for `image-generation`, or
117-
the generated website document for `website-generation` (started from the Hostinger
118-
WordPress plugin). A `failed` generation has no `result`. Unknown or expired generation
119-
IDs return 404.
116+
`type`: temporary image URLs together with the time they expire for `image-generation`,
117+
the post title, HTML content and SEO metadata for `post-generation`, or the generated
118+
website document for `website-generation`. Post and website generations are started
119+
from the Hostinger WordPress plugin. A `failed` generation has no `result`. Unknown or
120+
expired generation IDs return 404.
120121

121122
Provide the WordPress installation (software) identifier in the path. It can
122123
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# WordPressV1ContentGeneratedPostResource
2+
3+
Post generated by the AI post generator.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**title** | **str** | Post title |
10+
**content** | **str** | Post content as HTML |
11+
**category** | **str** | Post category, `null` when none was generated |
12+
**seo_keywords** | **List[str]** | SEO keywords for the post, `null` when none were generated |
13+
**meta_description** | **str** | SEO meta description for the post, `null` when none was generated |
14+
**tags** | **List[str]** | WordPress tags for the post, `null` when none were generated |
15+
16+
## Example
17+
18+
```python
19+
from hostinger_api.models.word_press_v1_content_generated_post_resource import WordPressV1ContentGeneratedPostResource
20+
21+
# TODO update the JSON string below
22+
json = "{}"
23+
# create an instance of WordPressV1ContentGeneratedPostResource from a JSON string
24+
word_press_v1_content_generated_post_resource_instance = WordPressV1ContentGeneratedPostResource.from_json(json)
25+
# print the JSON string representation of the object
26+
print(WordPressV1ContentGeneratedPostResource.to_json())
27+
28+
# convert the object into a dict
29+
word_press_v1_content_generated_post_resource_dict = word_press_v1_content_generated_post_resource_instance.to_dict()
30+
# create an instance of WordPressV1ContentGeneratedPostResource from a dict
31+
word_press_v1_content_generated_post_resource_from_dict = WordPressV1ContentGeneratedPostResource.from_dict(word_press_v1_content_generated_post_resource_dict)
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)
34+
35+

‎docs/WordPressV1ContentGenerationResourceResult.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
# WordPressV1ContentGenerationResourceResult
22

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.
3+
Generated content, `null` until the status is `completed`. For `image-generation` it is the generated images object; for `post-generation` it is the generated post; for `website-generation` it is the generated website document.
44

55
## Properties
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
99
**images** | [**List[WordPressV1ContentGeneratedImageResource]**](WordPressV1ContentGeneratedImageResource.md) | Generated images, each available at a temporary URL |
1010
**expires_at** | **datetime** | Time after which the image URLs stop working. Download the images before then. |
11+
**title** | **str** | Post title |
12+
**content** | **str** | Post content as HTML |
13+
**category** | **str** | Post category, `null` when none was generated |
14+
**seo_keywords** | **List[str]** | SEO keywords for the post, `null` when none were generated |
15+
**meta_description** | **str** | SEO meta description for the post, `null` when none was generated |
16+
**tags** | **List[str]** | WordPress tags for the post, `null` when none were generated |
1117

1218
## Example
1319

‎hostinger_api/__init__.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"""
66
Hostinger API Python SDK
77
8-
API Version: 5.1.1
8+
API Version: 5.2.0
99
1010
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
1111
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
1212
""" # noqa: E501
1313

1414

15-
__version__ = "7.1.1"
15+
__version__ = "7.2.0"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi
@@ -684,6 +684,7 @@
684684
from hostinger_api.models.word_press_v1_content_generate_images_request import WordPressV1ContentGenerateImagesRequest
685685
from hostinger_api.models.word_press_v1_content_generated_image_resource import WordPressV1ContentGeneratedImageResource
686686
from hostinger_api.models.word_press_v1_content_generated_images_resource import WordPressV1ContentGeneratedImagesResource
687+
from hostinger_api.models.word_press_v1_content_generated_post_resource import WordPressV1ContentGeneratedPostResource
687688
from hostinger_api.models.word_press_v1_content_generation_resource import WordPressV1ContentGenerationResource
688689
from hostinger_api.models.word_press_v1_content_generation_resource_result import WordPressV1ContentGenerationResourceResult
689690
from hostinger_api.models.word_press_v1_hostinger_plugins_ai_option_status_resource import WordPressV1HostingerPluginsAiOptionStatusResource

‎hostinger_api/api/agency_hosting_cache_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 5.1.1
6+
API Version: 5.2.0
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

‎hostinger_api/api/agency_hosting_cron_jobs_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 5.1.1
6+
API Version: 5.2.0
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

‎hostinger_api/api/agency_hosting_databases_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 5.1.1
6+
API Version: 5.2.0
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

‎hostinger_api/api/agency_hosting_datacenters_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 5.1.1
6+
API Version: 5.2.0
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

‎hostinger_api/api/agency_hosting_domains_api.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
Hostinger API Python SDK
55
6-
API Version: 5.1.1
6+
API Version: 5.2.0
77
88
NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
99
If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api

0 commit comments

Comments
 (0)