Skip to content

Commit d753b45

Browse files
chore: sdk update
1 parent bd8bdf8 commit d753b45

1,291 files changed

Lines changed: 2949 additions & 1273 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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ Class | Method | HTTP request | Description
255255
*HostingGitApi* | [**list_git_installations_v1**](docs/HostingGitApi.md#list_git_installations_v1) | **GET** /api/hosting/v1/git/installations | List Git installations
256256
*HostingGitApi* | [**list_website_git_repositories_v1**](docs/HostingGitApi.md#list_website_git_repositories_v1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/git/repositories | List website Git repositories
257257
*HostingGitApi* | [**update_git_auto_deployment_settings_v1**](docs/HostingGitApi.md#update_git_auto_deployment_settings_v1) | **PUT** /api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings | Update Git auto-deployment settings
258+
*HostingHeadlessApi* | [**submit_headless_build_report_v1**](docs/HostingHeadlessApi.md#submit_headless_build_report_v1) | **POST** /api/hosting/v1/headless/agent-reports | Submit headless build report
258259
*HostingNodeJSApi* | [**analyse_failed_node_js_build_v1**](docs/HostingNodeJSApi.md#analyse_failed_node_js_build_v1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/analysis | Analyse failed Node.js build
259260
*HostingNodeJSApi* | [**clear_node_js_runtime_logs_v1**](docs/HostingNodeJSApi.md#clear_node_js_runtime_logs_v1) | **DELETE** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/runtime-logs | Clear Node.js runtime logs
260261
*HostingNodeJSApi* | [**get_node_js_build_details_v1**](docs/HostingNodeJSApi.md#get_node_js_build_details_v1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid} | Get Node.js build details
@@ -761,6 +762,12 @@ Class | Method | HTTP request | Description
761762
- [HostingV1GitUpdateGitAutoDeploymentSettingsRequest](docs/HostingV1GitUpdateGitAutoDeploymentSettingsRequest.md)
762763
- [HostingV1GitWebsiteGitRepositoryResource](docs/HostingV1GitWebsiteGitRepositoryResource.md)
763764
- [HostingV1GitWebsiteGitRepositoryWebhookResource](docs/HostingV1GitWebsiteGitRepositoryWebhookResource.md)
765+
- [HostingV1HeadlessAgentReportResource](docs/HostingV1HeadlessAgentReportResource.md)
766+
- [HostingV1HeadlessStoreAgentReportRequest](docs/HostingV1HeadlessStoreAgentReportRequest.md)
767+
- [HostingV1HeadlessStoreAgentReportRequestConsent](docs/HostingV1HeadlessStoreAgentReportRequestConsent.md)
768+
- [HostingV1HeadlessStoreAgentReportRequestInfo](docs/HostingV1HeadlessStoreAgentReportRequestInfo.md)
769+
- [HostingV1HeadlessStoreAgentReportRequestRun](docs/HostingV1HeadlessStoreAgentReportRequestRun.md)
770+
- [HostingV1HeadlessStoreAgentReportRequestTiming](docs/HostingV1HeadlessStoreAgentReportRequestTiming.md)
764771
- [HostingV1NodeJsBuildAnalysisResource](docs/HostingV1NodeJsBuildAnalysisResource.md)
765772
- [HostingV1NodeJsBuildLogsResource](docs/HostingV1NodeJsBuildLogsResource.md)
766773
- [HostingV1NodeJsBuildOptionsResource](docs/HostingV1NodeJsBuildOptionsResource.md)

‎docs/HostingHeadlessApi.md‎

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# hostinger_api.HostingHeadlessApi
2+
3+
All URIs are relative to *https://developers.hostinger.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**submit_headless_build_report_v1**](HostingHeadlessApi.md#submit_headless_build_report_v1) | **POST** /api/hosting/v1/headless/agent-reports | Submit headless build report
8+
9+
10+
# **submit_headless_build_report_v1**
11+
> HostingV1HeadlessAgentReportResource submit_headless_build_report_v1(hosting_v1_headless_store_agent_report_request)
12+
13+
Submit headless build report
14+
15+
Submits the build report the headless skill writes at the end of a run (including early
16+
stops), so Hostinger can learn where builds get stuck. Send one report per call, with the
17+
report JSON as the request body, unchanged. Only send a report when the user agreed to it.
18+
19+
The report must match report.schema.json v1; an invalid report returns 422 and is not
20+
stored. The report is linked to the authenticated account, so do not add account details
21+
to it.
22+
23+
### Example
24+
25+
* Bearer Authentication (apiToken):
26+
27+
```python
28+
import hostinger_api
29+
from hostinger_api.models.hosting_v1_headless_agent_report_resource import HostingV1HeadlessAgentReportResource
30+
from hostinger_api.models.hosting_v1_headless_store_agent_report_request import HostingV1HeadlessStoreAgentReportRequest
31+
from hostinger_api.rest import ApiException
32+
from pprint import pprint
33+
34+
35+
# Configure Bearer authorization: apiToken
36+
configuration = hostinger_api.Configuration(
37+
access_token = os.environ["BEARER_TOKEN"]
38+
)
39+
40+
# Enter a context with an instance of the API client
41+
with hostinger_api.ApiClient(configuration) as api_client:
42+
# Create an instance of the API class
43+
api_instance = hostinger_api.HostingHeadlessApi(api_client)
44+
hosting_v1_headless_store_agent_report_request = hostinger_api.HostingV1HeadlessStoreAgentReportRequest() # HostingV1HeadlessStoreAgentReportRequest |
45+
46+
try:
47+
# Submit headless build report
48+
api_response = api_instance.submit_headless_build_report_v1(hosting_v1_headless_store_agent_report_request)
49+
print("The response of HostingHeadlessApi->submit_headless_build_report_v1:\n")
50+
pprint(api_response)
51+
except Exception as e:
52+
print("Exception when calling HostingHeadlessApi->submit_headless_build_report_v1: %s\n" % e)
53+
```
54+
55+
56+
57+
### Parameters
58+
59+
60+
Name | Type | Description | Notes
61+
------------- | ------------- | ------------- | -------------
62+
**hosting_v1_headless_store_agent_report_request** | [**HostingV1HeadlessStoreAgentReportRequest**](HostingV1HeadlessStoreAgentReportRequest.md)| |
63+
64+
### Return type
65+
66+
[**HostingV1HeadlessAgentReportResource**](HostingV1HeadlessAgentReportResource.md)
67+
68+
### Authorization
69+
70+
[apiToken](../README.md#apiToken)
71+
72+
### HTTP request headers
73+
74+
- **Content-Type**: application/json
75+
- **Accept**: application/json
76+
77+
### HTTP response details
78+
79+
| Status code | Description | Response headers |
80+
|-------------|-------------|------------------|
81+
**201** | Created response | - |
82+
**422** | Validation error response | - |
83+
**401** | Unauthenticated response | - |
84+
**500** | Error response | - |
85+
86+
[[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)
87+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# HostingV1HeadlessAgentReportResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **int** | Stored report ID | [optional]
9+
**run_id** | **str** | ID of the run the report is for | [optional]
10+
**created_at** | **datetime** | When the report was received | [optional]
11+
12+
## Example
13+
14+
```python
15+
from hostinger_api.models.hosting_v1_headless_agent_report_resource import HostingV1HeadlessAgentReportResource
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of HostingV1HeadlessAgentReportResource from a JSON string
20+
hosting_v1_headless_agent_report_resource_instance = HostingV1HeadlessAgentReportResource.from_json(json)
21+
# print the JSON string representation of the object
22+
print(HostingV1HeadlessAgentReportResource.to_json())
23+
24+
# convert the object into a dict
25+
hosting_v1_headless_agent_report_resource_dict = hosting_v1_headless_agent_report_resource_instance.to_dict()
26+
# create an instance of HostingV1HeadlessAgentReportResource from a dict
27+
hosting_v1_headless_agent_report_resource_from_dict = HostingV1HeadlessAgentReportResource.from_dict(hosting_v1_headless_agent_report_resource_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# HostingV1HeadlessStoreAgentReportRequest
2+
3+
Headless build report (report.schema.json v1), as written by the headless skill at the end of a run. Send the report unchanged.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**schema_version** | **str** | Report schema version |
10+
**generated_at** | **datetime** | When the report was written |
11+
**consent** | [**HostingV1HeadlessStoreAgentReportRequestConsent**](HostingV1HeadlessStoreAgentReportRequestConsent.md) | |
12+
**run** | [**HostingV1HeadlessStoreAgentReportRequestRun**](HostingV1HeadlessStoreAgentReportRequestRun.md) | |
13+
**info** | [**HostingV1HeadlessStoreAgentReportRequestInfo**](HostingV1HeadlessStoreAgentReportRequestInfo.md) | |
14+
**timing** | [**HostingV1HeadlessStoreAgentReportRequestTiming**](HostingV1HeadlessStoreAgentReportRequestTiming.md) | |
15+
**tokens** | **object** | Token usage, only when the tool reports its own usage |
16+
**issues** | **List[object]** | Problems hit during the run |
17+
**user_feedback** | **List[object]** | Feedback the user gave during the run |
18+
**skill_gaps** | **List[object]** | Places where the skill instructions were missing or wrong |
19+
**what_went_well** | **List[object]** | Things that worked well during the run |
20+
**logging_gaps** | **List[object]** | Where the run log is missing or unsure | [optional]
21+
**previous_runs** | **List[object]** | Earlier runs for the same website |
22+
23+
## Example
24+
25+
```python
26+
from hostinger_api.models.hosting_v1_headless_store_agent_report_request import HostingV1HeadlessStoreAgentReportRequest
27+
28+
# TODO update the JSON string below
29+
json = "{}"
30+
# create an instance of HostingV1HeadlessStoreAgentReportRequest from a JSON string
31+
hosting_v1_headless_store_agent_report_request_instance = HostingV1HeadlessStoreAgentReportRequest.from_json(json)
32+
# print the JSON string representation of the object
33+
print(HostingV1HeadlessStoreAgentReportRequest.to_json())
34+
35+
# convert the object into a dict
36+
hosting_v1_headless_store_agent_report_request_dict = hosting_v1_headless_store_agent_report_request_instance.to_dict()
37+
# create an instance of HostingV1HeadlessStoreAgentReportRequest from a dict
38+
hosting_v1_headless_store_agent_report_request_from_dict = HostingV1HeadlessStoreAgentReportRequest.from_dict(hosting_v1_headless_store_agent_report_request_dict)
39+
```
40+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
41+
42+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# HostingV1HeadlessStoreAgentReportRequestConsent
2+
3+
Upload status of the report, as written by the headless skill
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**sent** | **bool** | |
10+
**note** | **str** | | [optional]
11+
12+
## Example
13+
14+
```python
15+
from hostinger_api.models.hosting_v1_headless_store_agent_report_request_consent import HostingV1HeadlessStoreAgentReportRequestConsent
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of HostingV1HeadlessStoreAgentReportRequestConsent from a JSON string
20+
hosting_v1_headless_store_agent_report_request_consent_instance = HostingV1HeadlessStoreAgentReportRequestConsent.from_json(json)
21+
# print the JSON string representation of the object
22+
print(HostingV1HeadlessStoreAgentReportRequestConsent.to_json())
23+
24+
# convert the object into a dict
25+
hosting_v1_headless_store_agent_report_request_consent_dict = hosting_v1_headless_store_agent_report_request_consent_instance.to_dict()
26+
# create an instance of HostingV1HeadlessStoreAgentReportRequestConsent from a dict
27+
hosting_v1_headless_store_agent_report_request_consent_from_dict = HostingV1HeadlessStoreAgentReportRequestConsent.from_dict(hosting_v1_headless_store_agent_report_request_consent_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# HostingV1HeadlessStoreAgentReportRequestInfo
2+
3+
Website, tool and outcome of the run
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**domain** | **str** | |
10+
**tool** | **str** | |
11+
**outcome** | **str** | |
12+
13+
## Example
14+
15+
```python
16+
from hostinger_api.models.hosting_v1_headless_store_agent_report_request_info import HostingV1HeadlessStoreAgentReportRequestInfo
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of HostingV1HeadlessStoreAgentReportRequestInfo from a JSON string
21+
hosting_v1_headless_store_agent_report_request_info_instance = HostingV1HeadlessStoreAgentReportRequestInfo.from_json(json)
22+
# print the JSON string representation of the object
23+
print(HostingV1HeadlessStoreAgentReportRequestInfo.to_json())
24+
25+
# convert the object into a dict
26+
hosting_v1_headless_store_agent_report_request_info_dict = hosting_v1_headless_store_agent_report_request_info_instance.to_dict()
27+
# create an instance of HostingV1HeadlessStoreAgentReportRequestInfo from a dict
28+
hosting_v1_headless_store_agent_report_request_info_from_dict = HostingV1HeadlessStoreAgentReportRequestInfo.from_dict(hosting_v1_headless_store_agent_report_request_info_dict)
29+
```
30+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
31+
32+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# HostingV1HeadlessStoreAgentReportRequestRun
2+
3+
The run the report is for
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**id** | **str** | |
10+
**kind** | **str** | |
11+
**skill** | **str** | | [optional]
12+
**follow_ups** | **List[object]** | | [optional]
13+
14+
## Example
15+
16+
```python
17+
from hostinger_api.models.hosting_v1_headless_store_agent_report_request_run import HostingV1HeadlessStoreAgentReportRequestRun
18+
19+
# TODO update the JSON string below
20+
json = "{}"
21+
# create an instance of HostingV1HeadlessStoreAgentReportRequestRun from a JSON string
22+
hosting_v1_headless_store_agent_report_request_run_instance = HostingV1HeadlessStoreAgentReportRequestRun.from_json(json)
23+
# print the JSON string representation of the object
24+
print(HostingV1HeadlessStoreAgentReportRequestRun.to_json())
25+
26+
# convert the object into a dict
27+
hosting_v1_headless_store_agent_report_request_run_dict = hosting_v1_headless_store_agent_report_request_run_instance.to_dict()
28+
# create an instance of HostingV1HeadlessStoreAgentReportRequestRun from a dict
29+
hosting_v1_headless_store_agent_report_request_run_from_dict = HostingV1HeadlessStoreAgentReportRequestRun.from_dict(hosting_v1_headless_store_agent_report_request_run_dict)
30+
```
31+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
32+
33+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# HostingV1HeadlessStoreAgentReportRequestTiming
2+
3+
Run start and end times and per-stage timings
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**started_at** | **datetime** | |
10+
**ended_at** | **datetime** | |
11+
**minutes_total** | **float** | |
12+
**stages** | **List[object]** | |
13+
14+
## Example
15+
16+
```python
17+
from hostinger_api.models.hosting_v1_headless_store_agent_report_request_timing import HostingV1HeadlessStoreAgentReportRequestTiming
18+
19+
# TODO update the JSON string below
20+
json = "{}"
21+
# create an instance of HostingV1HeadlessStoreAgentReportRequestTiming from a JSON string
22+
hosting_v1_headless_store_agent_report_request_timing_instance = HostingV1HeadlessStoreAgentReportRequestTiming.from_json(json)
23+
# print the JSON string representation of the object
24+
print(HostingV1HeadlessStoreAgentReportRequestTiming.to_json())
25+
26+
# convert the object into a dict
27+
hosting_v1_headless_store_agent_report_request_timing_dict = hosting_v1_headless_store_agent_report_request_timing_instance.to_dict()
28+
# create an instance of HostingV1HeadlessStoreAgentReportRequestTiming from a dict
29+
hosting_v1_headless_store_agent_report_request_timing_from_dict = HostingV1HeadlessStoreAgentReportRequestTiming.from_dict(hosting_v1_headless_store_agent_report_request_timing_dict)
30+
```
31+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
32+
33+

‎hostinger_api/__init__.py‎

Lines changed: 9 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: 1.65.0
8+
API Version: 1.66.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__ = "3.63.0"
15+
__version__ = "3.64.0"
1616

1717
# import apis into sdk package
1818
from hostinger_api.api.agency_hosting_cache_api import AgencyHostingCacheApi
@@ -58,6 +58,7 @@
5858
from hostinger_api.api.hosting_domains_api import HostingDomainsApi
5959
from hostinger_api.api.hosting_files_api import HostingFilesApi
6060
from hostinger_api.api.hosting_git_api import HostingGitApi
61+
from hostinger_api.api.hosting_headless_api import HostingHeadlessApi
6162
from hostinger_api.api.hosting_node_js_api import HostingNodeJSApi
6263
from hostinger_api.api.hosting_orders_api import HostingOrdersApi
6364
from hostinger_api.api.hosting_php_api import HostingPHPApi
@@ -385,6 +386,12 @@
385386
from hostinger_api.models.hosting_v1_git_update_git_auto_deployment_settings_request import HostingV1GitUpdateGitAutoDeploymentSettingsRequest
386387
from hostinger_api.models.hosting_v1_git_website_git_repository_resource import HostingV1GitWebsiteGitRepositoryResource
387388
from hostinger_api.models.hosting_v1_git_website_git_repository_webhook_resource import HostingV1GitWebsiteGitRepositoryWebhookResource
389+
from hostinger_api.models.hosting_v1_headless_agent_report_resource import HostingV1HeadlessAgentReportResource
390+
from hostinger_api.models.hosting_v1_headless_store_agent_report_request import HostingV1HeadlessStoreAgentReportRequest
391+
from hostinger_api.models.hosting_v1_headless_store_agent_report_request_consent import HostingV1HeadlessStoreAgentReportRequestConsent
392+
from hostinger_api.models.hosting_v1_headless_store_agent_report_request_info import HostingV1HeadlessStoreAgentReportRequestInfo
393+
from hostinger_api.models.hosting_v1_headless_store_agent_report_request_run import HostingV1HeadlessStoreAgentReportRequestRun
394+
from hostinger_api.models.hosting_v1_headless_store_agent_report_request_timing import HostingV1HeadlessStoreAgentReportRequestTiming
388395
from hostinger_api.models.hosting_v1_node_js_build_analysis_resource import HostingV1NodeJsBuildAnalysisResource
389396
from hostinger_api.models.hosting_v1_node_js_build_logs_resource import HostingV1NodeJsBuildLogsResource
390397
from hostinger_api.models.hosting_v1_node_js_build_options_resource import HostingV1NodeJsBuildOptionsResource

‎hostinger_api/api/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
from hostinger_api.api.hosting_domains_api import HostingDomainsApi
4545
from hostinger_api.api.hosting_files_api import HostingFilesApi
4646
from hostinger_api.api.hosting_git_api import HostingGitApi
47+
from hostinger_api.api.hosting_headless_api import HostingHeadlessApi
4748
from hostinger_api.api.hosting_node_js_api import HostingNodeJSApi
4849
from hostinger_api.api.hosting_orders_api import HostingOrdersApi
4950
from hostinger_api.api.hosting_php_api import HostingPHPApi

0 commit comments

Comments
 (0)