hostinger-api-sdk 1.66.0 → 1.67.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 +562 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +414 -1
- package/dist/api.js +299 -13
- 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 +414 -1
- package/dist/esm/api.js +279 -1
- 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/AgentReadinessChecksApi.md +54 -0
- package/docs/AgentReadinessScansApi.md +117 -0
- package/docs/AgentReadinessV1ChecksCheckResource.md +28 -0
- package/docs/AgentReadinessV1ScansCategoriesResource.md +32 -0
- package/docs/AgentReadinessV1ScansCategoryScoreResource.md +26 -0
- package/docs/AgentReadinessV1ScansCheckResultResource.md +32 -0
- package/docs/AgentReadinessV1ScansRunScanRequest.md +20 -0
- package/docs/AgentReadinessV1ScansScanResource.md +40 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# AgentReadinessV1ScansCategoryScoreResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**score** | **number** | Points this category contributes to the 0-100 total score | [default to undefined]
|
|
9
|
+
**weight** | **number** | Maximum points this category can contribute | [default to undefined]
|
|
10
|
+
**earned** | **number** | Points earned by the counted checks in this category | [default to undefined]
|
|
11
|
+
**possible** | **number** | Points possible for the counted checks in this category | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AgentReadinessV1ScansCategoryScoreResource } from '@hostinger/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: AgentReadinessV1ScansCategoryScoreResource = {
|
|
19
|
+
score,
|
|
20
|
+
weight,
|
|
21
|
+
earned,
|
|
22
|
+
possible,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[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,32 @@
|
|
|
1
|
+
# AgentReadinessV1ScansCheckResultResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**check_id** | **string** | Check ID, as listed by the `List checks` operation | [default to undefined]
|
|
9
|
+
**category** | **string** | Category the check belongs to | [default to undefined]
|
|
10
|
+
**status** | **string** | Check outcome. `not_applicable` and `error` checks do not count towards the category score. | [default to undefined]
|
|
11
|
+
**earned** | **number** | Points earned by this check | [default to undefined]
|
|
12
|
+
**possible** | **number** | Points this check can earn | [default to undefined]
|
|
13
|
+
**evidence** | **string** | What the scanner observed | [default to undefined]
|
|
14
|
+
**fix** | **string** | How to improve the result, or null when there is nothing to fix | [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { AgentReadinessV1ScansCheckResultResource } from '@hostinger/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: AgentReadinessV1ScansCheckResultResource = {
|
|
22
|
+
check_id,
|
|
23
|
+
category,
|
|
24
|
+
status,
|
|
25
|
+
earned,
|
|
26
|
+
possible,
|
|
27
|
+
evidence,
|
|
28
|
+
fix,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[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,20 @@
|
|
|
1
|
+
# AgentReadinessV1ScansRunScanRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name or full URL of the website to scan. Only the host is used. | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { AgentReadinessV1ScansRunScanRequest } from '@hostinger/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: AgentReadinessV1ScansRunScanRequest = {
|
|
16
|
+
domain,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[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,40 @@
|
|
|
1
|
+
# AgentReadinessV1ScansScanResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name that was scanned | [default to undefined]
|
|
9
|
+
**status** | **string** | Scan status. Result fields are null until the status is `completed`. | [default to undefined]
|
|
10
|
+
**score** | **number** | Agent readiness score from 0 to 100. Null unless completed, and null when unreachable. | [default to undefined]
|
|
11
|
+
**grade** | **string** | Letter grade for the score, from `A` to `F`. Null unless completed, and null when unreachable. | [default to undefined]
|
|
12
|
+
**is_unreachable** | **boolean** | Whether the website homepage could not be fetched | [default to undefined]
|
|
13
|
+
**scanner_version** | **number** | Version of the scoring method that produced this scan | [default to undefined]
|
|
14
|
+
**is_outdated** | **boolean** | Whether the scan was produced by an older scoring method than the current one | [default to undefined]
|
|
15
|
+
**scanned_at** | **string** | When the scan finished. Null unless completed. | [default to undefined]
|
|
16
|
+
**categories** | [**AgentReadinessV1ScansCategoriesResource**](AgentReadinessV1ScansCategoriesResource.md) | | [default to undefined]
|
|
17
|
+
**unassessed_categories** | **Array<string>** | Categories where no check could be counted. They still cost their full weight. Null unless completed. | [default to undefined]
|
|
18
|
+
**results** | [**Array<AgentReadinessV1ScansCheckResultResource>**](AgentReadinessV1ScansCheckResultResource.md) | Result of every check. Null unless completed. | [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { AgentReadinessV1ScansScanResource } from '@hostinger/sdk';
|
|
24
|
+
|
|
25
|
+
const instance: AgentReadinessV1ScansScanResource = {
|
|
26
|
+
domain,
|
|
27
|
+
status,
|
|
28
|
+
score,
|
|
29
|
+
grade,
|
|
30
|
+
is_unreachable,
|
|
31
|
+
scanner_version,
|
|
32
|
+
is_outdated,
|
|
33
|
+
scanned_at,
|
|
34
|
+
categories,
|
|
35
|
+
unassessed_categories,
|
|
36
|
+
results,
|
|
37
|
+
};
|
|
38
|
+
```
|
|
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)
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.67.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
|