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
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@1.
|
|
1
|
+
## @hostinger/sdk@1.67.0
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install @hostinger/sdk@1.
|
|
8
|
+
npm install @hostinger/sdk@1.67.0 --save
|
|
9
9
|
```
|
package/api.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
|
|
@@ -1992,6 +1992,278 @@ export interface AgencyHostingV1WordPressVersionResource {
|
|
|
1992
1992
|
*/
|
|
1993
1993
|
'version': string;
|
|
1994
1994
|
}
|
|
1995
|
+
/**
|
|
1996
|
+
*
|
|
1997
|
+
* @export
|
|
1998
|
+
* @interface AgentReadinessV1ChecksCheckResource
|
|
1999
|
+
*/
|
|
2000
|
+
export interface AgentReadinessV1ChecksCheckResource {
|
|
2001
|
+
/**
|
|
2002
|
+
* Check ID, as used by `check_id` in scan results
|
|
2003
|
+
* @type {string}
|
|
2004
|
+
* @memberof AgentReadinessV1ChecksCheckResource
|
|
2005
|
+
*/
|
|
2006
|
+
'id': string;
|
|
2007
|
+
/**
|
|
2008
|
+
* Human-readable check name
|
|
2009
|
+
* @type {string}
|
|
2010
|
+
* @memberof AgentReadinessV1ChecksCheckResource
|
|
2011
|
+
*/
|
|
2012
|
+
'name': string;
|
|
2013
|
+
/**
|
|
2014
|
+
* Category the check belongs to
|
|
2015
|
+
* @type {string}
|
|
2016
|
+
* @memberof AgentReadinessV1ChecksCheckResource
|
|
2017
|
+
*/
|
|
2018
|
+
'category': string;
|
|
2019
|
+
/**
|
|
2020
|
+
* Human-readable category name
|
|
2021
|
+
* @type {string}
|
|
2022
|
+
* @memberof AgentReadinessV1ChecksCheckResource
|
|
2023
|
+
*/
|
|
2024
|
+
'category_label': string;
|
|
2025
|
+
/**
|
|
2026
|
+
* Points this check can earn
|
|
2027
|
+
* @type {number}
|
|
2028
|
+
* @memberof AgentReadinessV1ChecksCheckResource
|
|
2029
|
+
*/
|
|
2030
|
+
'weight': number;
|
|
2031
|
+
}
|
|
2032
|
+
/**
|
|
2033
|
+
*
|
|
2034
|
+
* @export
|
|
2035
|
+
* @interface AgentReadinessV1ScansCategoriesResource
|
|
2036
|
+
*/
|
|
2037
|
+
export interface AgentReadinessV1ScansCategoriesResource {
|
|
2038
|
+
/**
|
|
2039
|
+
*
|
|
2040
|
+
* @type {AgentReadinessV1ScansCategoryScoreResource}
|
|
2041
|
+
* @memberof AgentReadinessV1ScansCategoriesResource
|
|
2042
|
+
*/
|
|
2043
|
+
'crawl_permission': AgentReadinessV1ScansCategoryScoreResource;
|
|
2044
|
+
/**
|
|
2045
|
+
*
|
|
2046
|
+
* @type {AgentReadinessV1ScansCategoryScoreResource}
|
|
2047
|
+
* @memberof AgentReadinessV1ScansCategoriesResource
|
|
2048
|
+
*/
|
|
2049
|
+
'findability': AgentReadinessV1ScansCategoryScoreResource;
|
|
2050
|
+
/**
|
|
2051
|
+
*
|
|
2052
|
+
* @type {AgentReadinessV1ScansCategoryScoreResource}
|
|
2053
|
+
* @memberof AgentReadinessV1ScansCategoriesResource
|
|
2054
|
+
*/
|
|
2055
|
+
'readability': AgentReadinessV1ScansCategoryScoreResource;
|
|
2056
|
+
/**
|
|
2057
|
+
*
|
|
2058
|
+
* @type {AgentReadinessV1ScansCategoryScoreResource}
|
|
2059
|
+
* @memberof AgentReadinessV1ScansCategoriesResource
|
|
2060
|
+
*/
|
|
2061
|
+
'structured_meaning': AgentReadinessV1ScansCategoryScoreResource;
|
|
2062
|
+
/**
|
|
2063
|
+
*
|
|
2064
|
+
* @type {AgentReadinessV1ScansCategoryScoreResource}
|
|
2065
|
+
* @memberof AgentReadinessV1ScansCategoriesResource
|
|
2066
|
+
*/
|
|
2067
|
+
'commercial_legibility': AgentReadinessV1ScansCategoryScoreResource;
|
|
2068
|
+
/**
|
|
2069
|
+
*
|
|
2070
|
+
* @type {AgentReadinessV1ScansCategoryScoreResource}
|
|
2071
|
+
* @memberof AgentReadinessV1ScansCategoriesResource
|
|
2072
|
+
*/
|
|
2073
|
+
'agent_native_content': AgentReadinessV1ScansCategoryScoreResource;
|
|
2074
|
+
/**
|
|
2075
|
+
*
|
|
2076
|
+
* @type {AgentReadinessV1ScansCategoryScoreResource}
|
|
2077
|
+
* @memberof AgentReadinessV1ScansCategoriesResource
|
|
2078
|
+
*/
|
|
2079
|
+
'agent_interaction': AgentReadinessV1ScansCategoryScoreResource;
|
|
2080
|
+
}
|
|
2081
|
+
/**
|
|
2082
|
+
*
|
|
2083
|
+
* @export
|
|
2084
|
+
* @interface AgentReadinessV1ScansCategoryScoreResource
|
|
2085
|
+
*/
|
|
2086
|
+
export interface AgentReadinessV1ScansCategoryScoreResource {
|
|
2087
|
+
/**
|
|
2088
|
+
* Points this category contributes to the 0-100 total score
|
|
2089
|
+
* @type {number}
|
|
2090
|
+
* @memberof AgentReadinessV1ScansCategoryScoreResource
|
|
2091
|
+
*/
|
|
2092
|
+
'score': number;
|
|
2093
|
+
/**
|
|
2094
|
+
* Maximum points this category can contribute
|
|
2095
|
+
* @type {number}
|
|
2096
|
+
* @memberof AgentReadinessV1ScansCategoryScoreResource
|
|
2097
|
+
*/
|
|
2098
|
+
'weight': number;
|
|
2099
|
+
/**
|
|
2100
|
+
* Points earned by the counted checks in this category
|
|
2101
|
+
* @type {number}
|
|
2102
|
+
* @memberof AgentReadinessV1ScansCategoryScoreResource
|
|
2103
|
+
*/
|
|
2104
|
+
'earned': number;
|
|
2105
|
+
/**
|
|
2106
|
+
* Points possible for the counted checks in this category
|
|
2107
|
+
* @type {number}
|
|
2108
|
+
* @memberof AgentReadinessV1ScansCategoryScoreResource
|
|
2109
|
+
*/
|
|
2110
|
+
'possible': number;
|
|
2111
|
+
}
|
|
2112
|
+
/**
|
|
2113
|
+
*
|
|
2114
|
+
* @export
|
|
2115
|
+
* @interface AgentReadinessV1ScansCheckResultResource
|
|
2116
|
+
*/
|
|
2117
|
+
export interface AgentReadinessV1ScansCheckResultResource {
|
|
2118
|
+
/**
|
|
2119
|
+
* Check ID, as listed by the `List checks` operation
|
|
2120
|
+
* @type {string}
|
|
2121
|
+
* @memberof AgentReadinessV1ScansCheckResultResource
|
|
2122
|
+
*/
|
|
2123
|
+
'check_id': string;
|
|
2124
|
+
/**
|
|
2125
|
+
* Category the check belongs to
|
|
2126
|
+
* @type {string}
|
|
2127
|
+
* @memberof AgentReadinessV1ScansCheckResultResource
|
|
2128
|
+
*/
|
|
2129
|
+
'category': string;
|
|
2130
|
+
/**
|
|
2131
|
+
* Check outcome. `not_applicable` and `error` checks do not count towards the category score.
|
|
2132
|
+
* @type {string}
|
|
2133
|
+
* @memberof AgentReadinessV1ScansCheckResultResource
|
|
2134
|
+
*/
|
|
2135
|
+
'status': AgentReadinessV1ScansCheckResultResourceStatusEnum;
|
|
2136
|
+
/**
|
|
2137
|
+
* Points earned by this check
|
|
2138
|
+
* @type {number}
|
|
2139
|
+
* @memberof AgentReadinessV1ScansCheckResultResource
|
|
2140
|
+
*/
|
|
2141
|
+
'earned': number;
|
|
2142
|
+
/**
|
|
2143
|
+
* Points this check can earn
|
|
2144
|
+
* @type {number}
|
|
2145
|
+
* @memberof AgentReadinessV1ScansCheckResultResource
|
|
2146
|
+
*/
|
|
2147
|
+
'possible': number;
|
|
2148
|
+
/**
|
|
2149
|
+
* What the scanner observed
|
|
2150
|
+
* @type {string}
|
|
2151
|
+
* @memberof AgentReadinessV1ScansCheckResultResource
|
|
2152
|
+
*/
|
|
2153
|
+
'evidence': string;
|
|
2154
|
+
/**
|
|
2155
|
+
* How to improve the result, or null when there is nothing to fix
|
|
2156
|
+
* @type {string}
|
|
2157
|
+
* @memberof AgentReadinessV1ScansCheckResultResource
|
|
2158
|
+
*/
|
|
2159
|
+
'fix': string | null;
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
export const AgentReadinessV1ScansCheckResultResourceStatusEnum = {
|
|
2163
|
+
Pass: 'pass',
|
|
2164
|
+
Partial: 'partial',
|
|
2165
|
+
Fail: 'fail',
|
|
2166
|
+
NotApplicable: 'not_applicable',
|
|
2167
|
+
Error: 'error'
|
|
2168
|
+
} as const;
|
|
2169
|
+
|
|
2170
|
+
export type AgentReadinessV1ScansCheckResultResourceStatusEnum = typeof AgentReadinessV1ScansCheckResultResourceStatusEnum[keyof typeof AgentReadinessV1ScansCheckResultResourceStatusEnum];
|
|
2171
|
+
|
|
2172
|
+
/**
|
|
2173
|
+
*
|
|
2174
|
+
* @export
|
|
2175
|
+
* @interface AgentReadinessV1ScansRunScanRequest
|
|
2176
|
+
*/
|
|
2177
|
+
export interface AgentReadinessV1ScansRunScanRequest {
|
|
2178
|
+
/**
|
|
2179
|
+
* Domain name or full URL of the website to scan. Only the host is used.
|
|
2180
|
+
* @type {string}
|
|
2181
|
+
* @memberof AgentReadinessV1ScansRunScanRequest
|
|
2182
|
+
*/
|
|
2183
|
+
'domain': string;
|
|
2184
|
+
}
|
|
2185
|
+
/**
|
|
2186
|
+
*
|
|
2187
|
+
* @export
|
|
2188
|
+
* @interface AgentReadinessV1ScansScanResource
|
|
2189
|
+
*/
|
|
2190
|
+
export interface AgentReadinessV1ScansScanResource {
|
|
2191
|
+
/**
|
|
2192
|
+
* Domain name that was scanned
|
|
2193
|
+
* @type {string}
|
|
2194
|
+
* @memberof AgentReadinessV1ScansScanResource
|
|
2195
|
+
*/
|
|
2196
|
+
'domain': string;
|
|
2197
|
+
/**
|
|
2198
|
+
* Scan status. Result fields are null until the status is `completed`.
|
|
2199
|
+
* @type {string}
|
|
2200
|
+
* @memberof AgentReadinessV1ScansScanResource
|
|
2201
|
+
*/
|
|
2202
|
+
'status': AgentReadinessV1ScansScanResourceStatusEnum;
|
|
2203
|
+
/**
|
|
2204
|
+
* Agent readiness score from 0 to 100. Null unless completed, and null when unreachable.
|
|
2205
|
+
* @type {number}
|
|
2206
|
+
* @memberof AgentReadinessV1ScansScanResource
|
|
2207
|
+
*/
|
|
2208
|
+
'score': number | null;
|
|
2209
|
+
/**
|
|
2210
|
+
* Letter grade for the score, from `A` to `F`. Null unless completed, and null when unreachable.
|
|
2211
|
+
* @type {string}
|
|
2212
|
+
* @memberof AgentReadinessV1ScansScanResource
|
|
2213
|
+
*/
|
|
2214
|
+
'grade': string | null;
|
|
2215
|
+
/**
|
|
2216
|
+
* Whether the website homepage could not be fetched
|
|
2217
|
+
* @type {boolean}
|
|
2218
|
+
* @memberof AgentReadinessV1ScansScanResource
|
|
2219
|
+
*/
|
|
2220
|
+
'is_unreachable': boolean;
|
|
2221
|
+
/**
|
|
2222
|
+
* Version of the scoring method that produced this scan
|
|
2223
|
+
* @type {number}
|
|
2224
|
+
* @memberof AgentReadinessV1ScansScanResource
|
|
2225
|
+
*/
|
|
2226
|
+
'scanner_version': number;
|
|
2227
|
+
/**
|
|
2228
|
+
* Whether the scan was produced by an older scoring method than the current one
|
|
2229
|
+
* @type {boolean}
|
|
2230
|
+
* @memberof AgentReadinessV1ScansScanResource
|
|
2231
|
+
*/
|
|
2232
|
+
'is_outdated': boolean;
|
|
2233
|
+
/**
|
|
2234
|
+
* When the scan finished. Null unless completed.
|
|
2235
|
+
* @type {string}
|
|
2236
|
+
* @memberof AgentReadinessV1ScansScanResource
|
|
2237
|
+
*/
|
|
2238
|
+
'scanned_at': string | null;
|
|
2239
|
+
/**
|
|
2240
|
+
*
|
|
2241
|
+
* @type {AgentReadinessV1ScansCategoriesResource}
|
|
2242
|
+
* @memberof AgentReadinessV1ScansScanResource
|
|
2243
|
+
*/
|
|
2244
|
+
'categories': AgentReadinessV1ScansCategoriesResource | null;
|
|
2245
|
+
/**
|
|
2246
|
+
* Categories where no check could be counted. They still cost their full weight. Null unless completed.
|
|
2247
|
+
* @type {Array<string>}
|
|
2248
|
+
* @memberof AgentReadinessV1ScansScanResource
|
|
2249
|
+
*/
|
|
2250
|
+
'unassessed_categories': Array<string> | null;
|
|
2251
|
+
/**
|
|
2252
|
+
* Result of every check. Null unless completed.
|
|
2253
|
+
* @type {Array<AgentReadinessV1ScansCheckResultResource>}
|
|
2254
|
+
* @memberof AgentReadinessV1ScansScanResource
|
|
2255
|
+
*/
|
|
2256
|
+
'results': Array<AgentReadinessV1ScansCheckResultResource> | null;
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
export const AgentReadinessV1ScansScanResourceStatusEnum = {
|
|
2260
|
+
Pending: 'pending',
|
|
2261
|
+
Completed: 'completed',
|
|
2262
|
+
Failed: 'failed'
|
|
2263
|
+
} as const;
|
|
2264
|
+
|
|
2265
|
+
export type AgentReadinessV1ScansScanResourceStatusEnum = typeof AgentReadinessV1ScansScanResourceStatusEnum[keyof typeof AgentReadinessV1ScansScanResourceStatusEnum];
|
|
2266
|
+
|
|
1995
2267
|
/**
|
|
1996
2268
|
*
|
|
1997
2269
|
* @export
|
|
@@ -21828,6 +22100,295 @@ export class AgencyHostingWordPressApi extends BaseAPI {
|
|
|
21828
22100
|
|
|
21829
22101
|
|
|
21830
22102
|
|
|
22103
|
+
/**
|
|
22104
|
+
* AgentReadinessChecksApi - axios parameter creator
|
|
22105
|
+
* @export
|
|
22106
|
+
*/
|
|
22107
|
+
export const AgentReadinessChecksApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
22108
|
+
return {
|
|
22109
|
+
/**
|
|
22110
|
+
* List every check an agent readiness scan runs, with its name, category and weight.\\n Use it to show the human-readable name of each `check_id` in a scan\'s results.
|
|
22111
|
+
* @summary List checks
|
|
22112
|
+
* @param {*} [options] Override http request option.
|
|
22113
|
+
* @throws {RequiredError}
|
|
22114
|
+
*/
|
|
22115
|
+
listChecksV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22116
|
+
const localVarPath = `/api/agent-readiness/v1/checks`;
|
|
22117
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22118
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22119
|
+
let baseOptions;
|
|
22120
|
+
if (configuration) {
|
|
22121
|
+
baseOptions = configuration.baseOptions;
|
|
22122
|
+
}
|
|
22123
|
+
|
|
22124
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
22125
|
+
const localVarHeaderParameter = {} as any;
|
|
22126
|
+
const localVarQueryParameter = {} as any;
|
|
22127
|
+
|
|
22128
|
+
// authentication apiToken required
|
|
22129
|
+
// http bearer authentication required
|
|
22130
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
22131
|
+
|
|
22132
|
+
|
|
22133
|
+
|
|
22134
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22136
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22137
|
+
|
|
22138
|
+
return {
|
|
22139
|
+
url: toPathString(localVarUrlObj),
|
|
22140
|
+
options: localVarRequestOptions,
|
|
22141
|
+
};
|
|
22142
|
+
},
|
|
22143
|
+
}
|
|
22144
|
+
};
|
|
22145
|
+
|
|
22146
|
+
/**
|
|
22147
|
+
* AgentReadinessChecksApi - functional programming interface
|
|
22148
|
+
* @export
|
|
22149
|
+
*/
|
|
22150
|
+
export const AgentReadinessChecksApiFp = function(configuration?: Configuration) {
|
|
22151
|
+
const localVarAxiosParamCreator = AgentReadinessChecksApiAxiosParamCreator(configuration)
|
|
22152
|
+
return {
|
|
22153
|
+
/**
|
|
22154
|
+
* List every check an agent readiness scan runs, with its name, category and weight.\\n Use it to show the human-readable name of each `check_id` in a scan\'s results.
|
|
22155
|
+
* @summary List checks
|
|
22156
|
+
* @param {*} [options] Override http request option.
|
|
22157
|
+
* @throws {RequiredError}
|
|
22158
|
+
*/
|
|
22159
|
+
async listChecksV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgentReadinessV1ChecksCheckResource>>> {
|
|
22160
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listChecksV1(options);
|
|
22161
|
+
const localVarOperationServerBasePath = operationServerMap['AgentReadinessChecksApi.listChecksV1']?.[0]?.url;
|
|
22162
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22163
|
+
},
|
|
22164
|
+
}
|
|
22165
|
+
};
|
|
22166
|
+
|
|
22167
|
+
/**
|
|
22168
|
+
* AgentReadinessChecksApi - factory interface
|
|
22169
|
+
* @export
|
|
22170
|
+
*/
|
|
22171
|
+
export const AgentReadinessChecksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
22172
|
+
const localVarFp = AgentReadinessChecksApiFp(configuration)
|
|
22173
|
+
return {
|
|
22174
|
+
/**
|
|
22175
|
+
* List every check an agent readiness scan runs, with its name, category and weight.\\n Use it to show the human-readable name of each `check_id` in a scan\'s results.
|
|
22176
|
+
* @summary List checks
|
|
22177
|
+
* @param {*} [options] Override http request option.
|
|
22178
|
+
* @throws {RequiredError}
|
|
22179
|
+
*/
|
|
22180
|
+
listChecksV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<AgentReadinessV1ChecksCheckResource>> {
|
|
22181
|
+
return localVarFp.listChecksV1(options).then((request) => request(axios, basePath));
|
|
22182
|
+
},
|
|
22183
|
+
};
|
|
22184
|
+
};
|
|
22185
|
+
|
|
22186
|
+
/**
|
|
22187
|
+
* AgentReadinessChecksApi - object-oriented interface
|
|
22188
|
+
* @export
|
|
22189
|
+
* @class AgentReadinessChecksApi
|
|
22190
|
+
* @extends {BaseAPI}
|
|
22191
|
+
*/
|
|
22192
|
+
export class AgentReadinessChecksApi extends BaseAPI {
|
|
22193
|
+
/**
|
|
22194
|
+
* List every check an agent readiness scan runs, with its name, category and weight.\\n Use it to show the human-readable name of each `check_id` in a scan\'s results.
|
|
22195
|
+
* @summary List checks
|
|
22196
|
+
* @param {*} [options] Override http request option.
|
|
22197
|
+
* @throws {RequiredError}
|
|
22198
|
+
* @memberof AgentReadinessChecksApi
|
|
22199
|
+
*/
|
|
22200
|
+
public listChecksV1(options?: RawAxiosRequestConfig) {
|
|
22201
|
+
return AgentReadinessChecksApiFp(this.configuration).listChecksV1(options).then((request) => request(this.axios, this.basePath));
|
|
22202
|
+
}
|
|
22203
|
+
}
|
|
22204
|
+
|
|
22205
|
+
|
|
22206
|
+
|
|
22207
|
+
/**
|
|
22208
|
+
* AgentReadinessScansApi - axios parameter creator
|
|
22209
|
+
* @export
|
|
22210
|
+
*/
|
|
22211
|
+
export const AgentReadinessScansApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
22212
|
+
return {
|
|
22213
|
+
/**
|
|
22214
|
+
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run website scan` operation are asynchronous. While the status is `pending`, the result fields are null; wait a few seconds and call this operation again until the status is `completed` or `failed`. A `failed` scan is not retried; run the scan again.\\n A completed scan has a 0-100 score, a letter grade, a score per category, and the result of every check with the evidence found and how to fix it. Check names are listed by the `List checks` operation.\\n Returns 404 when the domain has never been scanned; use the `Run website scan` operation first.
|
|
22215
|
+
* @summary Get website scan
|
|
22216
|
+
* @param {string} domain Domain name the scan was run for
|
|
22217
|
+
* @param {*} [options] Override http request option.
|
|
22218
|
+
* @throws {RequiredError}
|
|
22219
|
+
*/
|
|
22220
|
+
getWebsiteScanV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22221
|
+
// verify required parameter 'domain' is not null or undefined
|
|
22222
|
+
assertParamExists('getWebsiteScanV1', 'domain', domain)
|
|
22223
|
+
const localVarPath = `/api/agent-readiness/v1/scans/{domain}`
|
|
22224
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
22225
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22226
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22227
|
+
let baseOptions;
|
|
22228
|
+
if (configuration) {
|
|
22229
|
+
baseOptions = configuration.baseOptions;
|
|
22230
|
+
}
|
|
22231
|
+
|
|
22232
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
22233
|
+
const localVarHeaderParameter = {} as any;
|
|
22234
|
+
const localVarQueryParameter = {} as any;
|
|
22235
|
+
|
|
22236
|
+
// authentication apiToken required
|
|
22237
|
+
// http bearer authentication required
|
|
22238
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
22239
|
+
|
|
22240
|
+
|
|
22241
|
+
|
|
22242
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22243
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22244
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22245
|
+
|
|
22246
|
+
return {
|
|
22247
|
+
url: toPathString(localVarUrlObj),
|
|
22248
|
+
options: localVarRequestOptions,
|
|
22249
|
+
};
|
|
22250
|
+
},
|
|
22251
|
+
/**
|
|
22252
|
+
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get website scan` operation with the same domain every few seconds until its status is `completed` or `failed`. The scan itself is limited to 60 seconds, plus any time it waits in the queue. A `failed` scan is not retried; run this operation again.\\n Starting a scan for a domain that already has a pending scan from the last 5 minutes returns that scan instead of starting a new one.
|
|
22253
|
+
* @summary Run website scan
|
|
22254
|
+
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
22255
|
+
* @param {*} [options] Override http request option.
|
|
22256
|
+
* @throws {RequiredError}
|
|
22257
|
+
*/
|
|
22258
|
+
runWebsiteScanV1: async (agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22259
|
+
// verify required parameter 'agentReadinessV1ScansRunScanRequest' is not null or undefined
|
|
22260
|
+
assertParamExists('runWebsiteScanV1', 'agentReadinessV1ScansRunScanRequest', agentReadinessV1ScansRunScanRequest)
|
|
22261
|
+
const localVarPath = `/api/agent-readiness/v1/scans`;
|
|
22262
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22263
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22264
|
+
let baseOptions;
|
|
22265
|
+
if (configuration) {
|
|
22266
|
+
baseOptions = configuration.baseOptions;
|
|
22267
|
+
}
|
|
22268
|
+
|
|
22269
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
22270
|
+
const localVarHeaderParameter = {} as any;
|
|
22271
|
+
const localVarQueryParameter = {} as any;
|
|
22272
|
+
|
|
22273
|
+
// authentication apiToken required
|
|
22274
|
+
// http bearer authentication required
|
|
22275
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
22276
|
+
|
|
22277
|
+
|
|
22278
|
+
|
|
22279
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22280
|
+
|
|
22281
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22282
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22283
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
22284
|
+
localVarRequestOptions.data = serializeDataIfNeeded(agentReadinessV1ScansRunScanRequest, localVarRequestOptions, configuration)
|
|
22285
|
+
|
|
22286
|
+
return {
|
|
22287
|
+
url: toPathString(localVarUrlObj),
|
|
22288
|
+
options: localVarRequestOptions,
|
|
22289
|
+
};
|
|
22290
|
+
},
|
|
22291
|
+
}
|
|
22292
|
+
};
|
|
22293
|
+
|
|
22294
|
+
/**
|
|
22295
|
+
* AgentReadinessScansApi - functional programming interface
|
|
22296
|
+
* @export
|
|
22297
|
+
*/
|
|
22298
|
+
export const AgentReadinessScansApiFp = function(configuration?: Configuration) {
|
|
22299
|
+
const localVarAxiosParamCreator = AgentReadinessScansApiAxiosParamCreator(configuration)
|
|
22300
|
+
return {
|
|
22301
|
+
/**
|
|
22302
|
+
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run website scan` operation are asynchronous. While the status is `pending`, the result fields are null; wait a few seconds and call this operation again until the status is `completed` or `failed`. A `failed` scan is not retried; run the scan again.\\n A completed scan has a 0-100 score, a letter grade, a score per category, and the result of every check with the evidence found and how to fix it. Check names are listed by the `List checks` operation.\\n Returns 404 when the domain has never been scanned; use the `Run website scan` operation first.
|
|
22303
|
+
* @summary Get website scan
|
|
22304
|
+
* @param {string} domain Domain name the scan was run for
|
|
22305
|
+
* @param {*} [options] Override http request option.
|
|
22306
|
+
* @throws {RequiredError}
|
|
22307
|
+
*/
|
|
22308
|
+
async getWebsiteScanV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentReadinessV1ScansScanResource>> {
|
|
22309
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWebsiteScanV1(domain, options);
|
|
22310
|
+
const localVarOperationServerBasePath = operationServerMap['AgentReadinessScansApi.getWebsiteScanV1']?.[0]?.url;
|
|
22311
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22312
|
+
},
|
|
22313
|
+
/**
|
|
22314
|
+
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get website scan` operation with the same domain every few seconds until its status is `completed` or `failed`. The scan itself is limited to 60 seconds, plus any time it waits in the queue. A `failed` scan is not retried; run this operation again.\\n Starting a scan for a domain that already has a pending scan from the last 5 minutes returns that scan instead of starting a new one.
|
|
22315
|
+
* @summary Run website scan
|
|
22316
|
+
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
22317
|
+
* @param {*} [options] Override http request option.
|
|
22318
|
+
* @throws {RequiredError}
|
|
22319
|
+
*/
|
|
22320
|
+
async runWebsiteScanV1(agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentReadinessV1ScansScanResource>> {
|
|
22321
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.runWebsiteScanV1(agentReadinessV1ScansRunScanRequest, options);
|
|
22322
|
+
const localVarOperationServerBasePath = operationServerMap['AgentReadinessScansApi.runWebsiteScanV1']?.[0]?.url;
|
|
22323
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22324
|
+
},
|
|
22325
|
+
}
|
|
22326
|
+
};
|
|
22327
|
+
|
|
22328
|
+
/**
|
|
22329
|
+
* AgentReadinessScansApi - factory interface
|
|
22330
|
+
* @export
|
|
22331
|
+
*/
|
|
22332
|
+
export const AgentReadinessScansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
22333
|
+
const localVarFp = AgentReadinessScansApiFp(configuration)
|
|
22334
|
+
return {
|
|
22335
|
+
/**
|
|
22336
|
+
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run website scan` operation are asynchronous. While the status is `pending`, the result fields are null; wait a few seconds and call this operation again until the status is `completed` or `failed`. A `failed` scan is not retried; run the scan again.\\n A completed scan has a 0-100 score, a letter grade, a score per category, and the result of every check with the evidence found and how to fix it. Check names are listed by the `List checks` operation.\\n Returns 404 when the domain has never been scanned; use the `Run website scan` operation first.
|
|
22337
|
+
* @summary Get website scan
|
|
22338
|
+
* @param {string} domain Domain name the scan was run for
|
|
22339
|
+
* @param {*} [options] Override http request option.
|
|
22340
|
+
* @throws {RequiredError}
|
|
22341
|
+
*/
|
|
22342
|
+
getWebsiteScanV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentReadinessV1ScansScanResource> {
|
|
22343
|
+
return localVarFp.getWebsiteScanV1(domain, options).then((request) => request(axios, basePath));
|
|
22344
|
+
},
|
|
22345
|
+
/**
|
|
22346
|
+
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get website scan` operation with the same domain every few seconds until its status is `completed` or `failed`. The scan itself is limited to 60 seconds, plus any time it waits in the queue. A `failed` scan is not retried; run this operation again.\\n Starting a scan for a domain that already has a pending scan from the last 5 minutes returns that scan instead of starting a new one.
|
|
22347
|
+
* @summary Run website scan
|
|
22348
|
+
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
22349
|
+
* @param {*} [options] Override http request option.
|
|
22350
|
+
* @throws {RequiredError}
|
|
22351
|
+
*/
|
|
22352
|
+
runWebsiteScanV1(agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig): AxiosPromise<AgentReadinessV1ScansScanResource> {
|
|
22353
|
+
return localVarFp.runWebsiteScanV1(agentReadinessV1ScansRunScanRequest, options).then((request) => request(axios, basePath));
|
|
22354
|
+
},
|
|
22355
|
+
};
|
|
22356
|
+
};
|
|
22357
|
+
|
|
22358
|
+
/**
|
|
22359
|
+
* AgentReadinessScansApi - object-oriented interface
|
|
22360
|
+
* @export
|
|
22361
|
+
* @class AgentReadinessScansApi
|
|
22362
|
+
* @extends {BaseAPI}
|
|
22363
|
+
*/
|
|
22364
|
+
export class AgentReadinessScansApi extends BaseAPI {
|
|
22365
|
+
/**
|
|
22366
|
+
* Get the latest agent readiness scan of a website.\\n Scans started with the `Run website scan` operation are asynchronous. While the status is `pending`, the result fields are null; wait a few seconds and call this operation again until the status is `completed` or `failed`. A `failed` scan is not retried; run the scan again.\\n A completed scan has a 0-100 score, a letter grade, a score per category, and the result of every check with the evidence found and how to fix it. Check names are listed by the `List checks` operation.\\n Returns 404 when the domain has never been scanned; use the `Run website scan` operation first.
|
|
22367
|
+
* @summary Get website scan
|
|
22368
|
+
* @param {string} domain Domain name the scan was run for
|
|
22369
|
+
* @param {*} [options] Override http request option.
|
|
22370
|
+
* @throws {RequiredError}
|
|
22371
|
+
* @memberof AgentReadinessScansApi
|
|
22372
|
+
*/
|
|
22373
|
+
public getWebsiteScanV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
22374
|
+
return AgentReadinessScansApiFp(this.configuration).getWebsiteScanV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
22375
|
+
}
|
|
22376
|
+
|
|
22377
|
+
/**
|
|
22378
|
+
* Start a scan of how ready a public website is for AI agents to discover, read and act on.\\n Scanning is asynchronous: this operation only starts the scan, and the returned scan is usually `pending` with no results yet. To get the results, poll the `Get website scan` operation with the same domain every few seconds until its status is `completed` or `failed`. The scan itself is limited to 60 seconds, plus any time it waits in the queue. A `failed` scan is not retried; run this operation again.\\n Starting a scan for a domain that already has a pending scan from the last 5 minutes returns that scan instead of starting a new one.
|
|
22379
|
+
* @summary Run website scan
|
|
22380
|
+
* @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
|
|
22381
|
+
* @param {*} [options] Override http request option.
|
|
22382
|
+
* @throws {RequiredError}
|
|
22383
|
+
* @memberof AgentReadinessScansApi
|
|
22384
|
+
*/
|
|
22385
|
+
public runWebsiteScanV1(agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig) {
|
|
22386
|
+
return AgentReadinessScansApiFp(this.configuration).runWebsiteScanV1(agentReadinessV1ScansRunScanRequest, options).then((request) => request(this.axios, this.basePath));
|
|
22387
|
+
}
|
|
22388
|
+
}
|
|
22389
|
+
|
|
22390
|
+
|
|
22391
|
+
|
|
21831
22392
|
/**
|
|
21832
22393
|
* BillingCatalogApi - axios parameter creator
|
|
21833
22394
|
* @export
|
package/base.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
|
package/common.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
|
package/configuration.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
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/1.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.67.0",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|