Skip to content

Commit 0d7a6b1

Browse files
chore: sdk update
1 parent d753b45 commit 0d7a6b1

1,308 files changed

Lines changed: 3816 additions & 1287 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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ Class | Method | HTTP request | Description
123123
*AgencyHostingWordPressApi* | [**change_word_press_version_v1**](docs/AgencyHostingWordPressApi.md#change_word_press_version_v1) | **PATCH** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/version | Change WordPress version
124124
*AgencyHostingWordPressApi* | [**get_word_press_settings_v1**](docs/AgencyHostingWordPressApi.md#get_word_press_settings_v1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings | Get WordPress settings
125125
*AgencyHostingWordPressApi* | [**list_available_word_press_versions_v1**](docs/AgencyHostingWordPressApi.md#list_available_word_press_versions_v1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/versions | List available WordPress versions
126+
*AgentReadinessChecksApi* | [**list_checks_v1**](docs/AgentReadinessChecksApi.md#list_checks_v1) | **GET** /api/agent-readiness/v1/checks | List checks
127+
*AgentReadinessScansApi* | [**get_website_scan_v1**](docs/AgentReadinessScansApi.md#get_website_scan_v1) | **GET** /api/agent-readiness/v1/scans/{domain} | Get website scan
128+
*AgentReadinessScansApi* | [**run_website_scan_v1**](docs/AgentReadinessScansApi.md#run_website_scan_v1) | **POST** /api/agent-readiness/v1/scans | Run website scan
126129
*BillingCatalogApi* | [**get_catalog_item_list_v1**](docs/BillingCatalogApi.md#get_catalog_item_list_v1) | **GET** /api/billing/v1/catalog | Get catalog item list
127130
*BillingOrdersApi* | [**create_purchase_order_v1**](docs/BillingOrdersApi.md#create_purchase_order_v1) | **POST** /api/billing/v1/orders | Create purchase order
128131
*BillingPaymentMethodsApi* | [**delete_payment_method_v1**](docs/BillingPaymentMethodsApi.md#delete_payment_method_v1) | **DELETE** /api/billing/v1/payment-methods/{paymentMethodId} | Delete payment method
@@ -566,6 +569,12 @@ Class | Method | HTTP request | Description
566569
- [AgencyHostingV1WordPressChangeVersionRequest](docs/AgencyHostingV1WordPressChangeVersionRequest.md)
567570
- [AgencyHostingV1WordPressSettingsResource](docs/AgencyHostingV1WordPressSettingsResource.md)
568571
- [AgencyHostingV1WordPressVersionResource](docs/AgencyHostingV1WordPressVersionResource.md)
572+
- [AgentReadinessV1ChecksCheckResource](docs/AgentReadinessV1ChecksCheckResource.md)
573+
- [AgentReadinessV1ScansCategoriesResource](docs/AgentReadinessV1ScansCategoriesResource.md)
574+
- [AgentReadinessV1ScansCategoryScoreResource](docs/AgentReadinessV1ScansCategoryScoreResource.md)
575+
- [AgentReadinessV1ScansCheckResultResource](docs/AgentReadinessV1ScansCheckResultResource.md)
576+
- [AgentReadinessV1ScansRunScanRequest](docs/AgentReadinessV1ScansRunScanRequest.md)
577+
- [AgentReadinessV1ScansScanResource](docs/AgentReadinessV1ScansScanResource.md)
569578
- [BillingV1CatalogCatalogItemPriceResource](docs/BillingV1CatalogCatalogItemPriceResource.md)
570579
- [BillingV1CatalogCatalogItemResource](docs/BillingV1CatalogCatalogItemResource.md)
571580
- [BillingV1OrderOrderBillingAddressResource](docs/BillingV1OrderOrderBillingAddressResource.md)

‎docs/AgentReadinessChecksApi.md‎

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# hostinger_api.AgentReadinessChecksApi
2+
3+
All URIs are relative to *https://developers.hostinger.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**list_checks_v1**](AgentReadinessChecksApi.md#list_checks_v1) | **GET** /api/agent-readiness/v1/checks | List checks
8+
9+
10+
# **list_checks_v1**
11+
> List[AgentReadinessV1ChecksCheckResource] list_checks_v1()
12+
13+
List checks
14+
15+
List every check an agent readiness scan runs, with its name, category and weight.\n
16+
Use it to show the human-readable name of each `check_id` in a scan's results.
17+
18+
### Example
19+
20+
* Bearer Authentication (apiToken):
21+
22+
```python
23+
import hostinger_api
24+
from hostinger_api.models.agent_readiness_v1_checks_check_resource import AgentReadinessV1ChecksCheckResource
25+
from hostinger_api.rest import ApiException
26+
from pprint import pprint
27+
28+
29+
# Configure Bearer authorization: apiToken
30+
configuration = hostinger_api.Configuration(
31+
access_token = os.environ["BEARER_TOKEN"]
32+
)
33+
34+
# Enter a context with an instance of the API client
35+
with hostinger_api.ApiClient(configuration) as api_client:
36+
# Create an instance of the API class
37+
api_instance = hostinger_api.AgentReadinessChecksApi(api_client)
38+
39+
try:
40+
# List checks
41+
api_response = api_instance.list_checks_v1()
42+
print("The response of AgentReadinessChecksApi->list_checks_v1:\n")
43+
pprint(api_response)
44+
except Exception as e:
45+
print("Exception when calling AgentReadinessChecksApi->list_checks_v1: %s\n" % e)
46+
```
47+
48+
49+
50+
### Parameters
51+
52+
This endpoint does not need any parameter.
53+
54+
### Return type
55+
56+
[**List[AgentReadinessV1ChecksCheckResource]**](AgentReadinessV1ChecksCheckResource.md)
57+
58+
### Authorization
59+
60+
[apiToken](../README.md#apiToken)
61+
62+
### HTTP request headers
63+
64+
- **Content-Type**: Not defined
65+
- **Accept**: application/json
66+
67+
### HTTP response details
68+
69+
| Status code | Description | Response headers |
70+
|-------------|-------------|------------------|
71+
**200** | Success response | - |
72+
**401** | Unauthenticated response | - |
73+
**500** | Error response | - |
74+
75+
[[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)
76+

‎docs/AgentReadinessScansApi.md‎

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
# hostinger_api.AgentReadinessScansApi
2+
3+
All URIs are relative to *https://developers.hostinger.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**get_website_scan_v1**](AgentReadinessScansApi.md#get_website_scan_v1) | **GET** /api/agent-readiness/v1/scans/{domain} | Get website scan
8+
[**run_website_scan_v1**](AgentReadinessScansApi.md#run_website_scan_v1) | **POST** /api/agent-readiness/v1/scans | Run website scan
9+
10+
11+
# **get_website_scan_v1**
12+
> AgentReadinessV1ScansScanResource get_website_scan_v1(domain)
13+
14+
Get website scan
15+
16+
Get the latest agent readiness scan of a website.\n
17+
Scans started with the `Run website scan` operation are asynchronous. While the status is `pending`,
18+
the result fields are null; wait a few seconds and call this operation again until the status is
19+
`completed` or `failed`. A `failed` scan is not retried; run the scan again.\n
20+
A completed scan has a 0-100 score, a letter grade, a score per category, and the result of every
21+
check with the evidence found and how to fix it. Check names are listed by the `List checks` operation.\n
22+
Returns 404 when the domain has never been scanned; use the `Run website scan` operation first.
23+
24+
### Example
25+
26+
* Bearer Authentication (apiToken):
27+
28+
```python
29+
import hostinger_api
30+
from hostinger_api.models.agent_readiness_v1_scans_scan_resource import AgentReadinessV1ScansScanResource
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.AgentReadinessScansApi(api_client)
44+
domain = 'example.com' # str | Domain name the scan was run for
45+
46+
try:
47+
# Get website scan
48+
api_response = api_instance.get_website_scan_v1(domain)
49+
print("The response of AgentReadinessScansApi->get_website_scan_v1:\n")
50+
pprint(api_response)
51+
except Exception as e:
52+
print("Exception when calling AgentReadinessScansApi->get_website_scan_v1: %s\n" % e)
53+
```
54+
55+
56+
57+
### Parameters
58+
59+
60+
Name | Type | Description | Notes
61+
------------- | ------------- | ------------- | -------------
62+
**domain** | **str**| Domain name the scan was run for |
63+
64+
### Return type
65+
66+
[**AgentReadinessV1ScansScanResource**](AgentReadinessV1ScansScanResource.md)
67+
68+
### Authorization
69+
70+
[apiToken](../README.md#apiToken)
71+
72+
### HTTP request headers
73+
74+
- **Content-Type**: Not defined
75+
- **Accept**: application/json
76+
77+
### HTTP response details
78+
79+
| Status code | Description | Response headers |
80+
|-------------|-------------|------------------|
81+
**200** | Success response | - |
82+
**401** | Unauthenticated response | - |
83+
**500** | Error response | - |
84+
85+
[[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)
86+
87+
# **run_website_scan_v1**
88+
> AgentReadinessV1ScansScanResource run_website_scan_v1(agent_readiness_v1_scans_run_scan_request)
89+
90+
Run website scan
91+
92+
Start a scan of how ready a public website is for AI agents to discover, read and act on.\n
93+
Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending`
94+
with no results yet. To get the results, poll the `Get website scan` operation with the same domain every
95+
few seconds until its status is `completed` or `failed`. The scan itself is limited to 60 seconds,
96+
plus any time it waits in the queue. A `failed` scan is not retried; run this operation again.\n
97+
Starting a scan for a domain that already has a pending scan from the last 5 minutes
98+
returns that scan instead of starting a new one.
99+
100+
### Example
101+
102+
* Bearer Authentication (apiToken):
103+
104+
```python
105+
import hostinger_api
106+
from hostinger_api.models.agent_readiness_v1_scans_run_scan_request import AgentReadinessV1ScansRunScanRequest
107+
from hostinger_api.models.agent_readiness_v1_scans_scan_resource import AgentReadinessV1ScansScanResource
108+
from hostinger_api.rest import ApiException
109+
from pprint import pprint
110+
111+
112+
# Configure Bearer authorization: apiToken
113+
configuration = hostinger_api.Configuration(
114+
access_token = os.environ["BEARER_TOKEN"]
115+
)
116+
117+
# Enter a context with an instance of the API client
118+
with hostinger_api.ApiClient(configuration) as api_client:
119+
# Create an instance of the API class
120+
api_instance = hostinger_api.AgentReadinessScansApi(api_client)
121+
agent_readiness_v1_scans_run_scan_request = hostinger_api.AgentReadinessV1ScansRunScanRequest() # AgentReadinessV1ScansRunScanRequest |
122+
123+
try:
124+
# Run website scan
125+
api_response = api_instance.run_website_scan_v1(agent_readiness_v1_scans_run_scan_request)
126+
print("The response of AgentReadinessScansApi->run_website_scan_v1:\n")
127+
pprint(api_response)
128+
except Exception as e:
129+
print("Exception when calling AgentReadinessScansApi->run_website_scan_v1: %s\n" % e)
130+
```
131+
132+
133+
134+
### Parameters
135+
136+
137+
Name | Type | Description | Notes
138+
------------- | ------------- | ------------- | -------------
139+
**agent_readiness_v1_scans_run_scan_request** | [**AgentReadinessV1ScansRunScanRequest**](AgentReadinessV1ScansRunScanRequest.md)| |
140+
141+
### Return type
142+
143+
[**AgentReadinessV1ScansScanResource**](AgentReadinessV1ScansScanResource.md)
144+
145+
### Authorization
146+
147+
[apiToken](../README.md#apiToken)
148+
149+
### HTTP request headers
150+
151+
- **Content-Type**: application/json
152+
- **Accept**: application/json
153+
154+
### HTTP response details
155+
156+
| Status code | Description | Response headers |
157+
|-------------|-------------|------------------|
158+
**200** | Success response | - |
159+
**422** | Validation error response | - |
160+
**401** | Unauthenticated response | - |
161+
**500** | Error response | - |
162+
163+
[[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)
164+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# AgentReadinessV1ChecksCheckResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**id** | **str** | Check ID, as used by `check_id` in scan results |
9+
**name** | **str** | Human-readable check name |
10+
**category** | **str** | Category the check belongs to |
11+
**category_label** | **str** | Human-readable category name |
12+
**weight** | **int** | Points this check can earn |
13+
14+
## Example
15+
16+
```python
17+
from hostinger_api.models.agent_readiness_v1_checks_check_resource import AgentReadinessV1ChecksCheckResource
18+
19+
# TODO update the JSON string below
20+
json = "{}"
21+
# create an instance of AgentReadinessV1ChecksCheckResource from a JSON string
22+
agent_readiness_v1_checks_check_resource_instance = AgentReadinessV1ChecksCheckResource.from_json(json)
23+
# print the JSON string representation of the object
24+
print(AgentReadinessV1ChecksCheckResource.to_json())
25+
26+
# convert the object into a dict
27+
agent_readiness_v1_checks_check_resource_dict = agent_readiness_v1_checks_check_resource_instance.to_dict()
28+
# create an instance of AgentReadinessV1ChecksCheckResource from a dict
29+
agent_readiness_v1_checks_check_resource_from_dict = AgentReadinessV1ChecksCheckResource.from_dict(agent_readiness_v1_checks_check_resource_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: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# AgentReadinessV1ScansCategoriesResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**crawl_permission** | [**AgentReadinessV1ScansCategoryScoreResource**](AgentReadinessV1ScansCategoryScoreResource.md) | |
9+
**findability** | [**AgentReadinessV1ScansCategoryScoreResource**](AgentReadinessV1ScansCategoryScoreResource.md) | |
10+
**readability** | [**AgentReadinessV1ScansCategoryScoreResource**](AgentReadinessV1ScansCategoryScoreResource.md) | |
11+
**structured_meaning** | [**AgentReadinessV1ScansCategoryScoreResource**](AgentReadinessV1ScansCategoryScoreResource.md) | |
12+
**commercial_legibility** | [**AgentReadinessV1ScansCategoryScoreResource**](AgentReadinessV1ScansCategoryScoreResource.md) | |
13+
**agent_native_content** | [**AgentReadinessV1ScansCategoryScoreResource**](AgentReadinessV1ScansCategoryScoreResource.md) | |
14+
**agent_interaction** | [**AgentReadinessV1ScansCategoryScoreResource**](AgentReadinessV1ScansCategoryScoreResource.md) | |
15+
16+
## Example
17+
18+
```python
19+
from hostinger_api.models.agent_readiness_v1_scans_categories_resource import AgentReadinessV1ScansCategoriesResource
20+
21+
# TODO update the JSON string below
22+
json = "{}"
23+
# create an instance of AgentReadinessV1ScansCategoriesResource from a JSON string
24+
agent_readiness_v1_scans_categories_resource_instance = AgentReadinessV1ScansCategoriesResource.from_json(json)
25+
# print the JSON string representation of the object
26+
print(AgentReadinessV1ScansCategoriesResource.to_json())
27+
28+
# convert the object into a dict
29+
agent_readiness_v1_scans_categories_resource_dict = agent_readiness_v1_scans_categories_resource_instance.to_dict()
30+
# create an instance of AgentReadinessV1ScansCategoriesResource from a dict
31+
agent_readiness_v1_scans_categories_resource_from_dict = AgentReadinessV1ScansCategoriesResource.from_dict(agent_readiness_v1_scans_categories_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+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# AgentReadinessV1ScansCategoryScoreResource
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**score** | **int** | Points this category contributes to the 0-100 total score |
9+
**weight** | **int** | Maximum points this category can contribute |
10+
**earned** | **int** | Points earned by the counted checks in this category |
11+
**possible** | **int** | Points possible for the counted checks in this category |
12+
13+
## Example
14+
15+
```python
16+
from hostinger_api.models.agent_readiness_v1_scans_category_score_resource import AgentReadinessV1ScansCategoryScoreResource
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of AgentReadinessV1ScansCategoryScoreResource from a JSON string
21+
agent_readiness_v1_scans_category_score_resource_instance = AgentReadinessV1ScansCategoryScoreResource.from_json(json)
22+
# print the JSON string representation of the object
23+
print(AgentReadinessV1ScansCategoryScoreResource.to_json())
24+
25+
# convert the object into a dict
26+
agent_readiness_v1_scans_category_score_resource_dict = agent_readiness_v1_scans_category_score_resource_instance.to_dict()
27+
# create an instance of AgentReadinessV1ScansCategoryScoreResource from a dict
28+
agent_readiness_v1_scans_category_score_resource_from_dict = AgentReadinessV1ScansCategoryScoreResource.from_dict(agent_readiness_v1_scans_category_score_resource_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+

0 commit comments

Comments
 (0)