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/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.66.0
4
+ * API Version: 1.67.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1950,6 +1950,272 @@ export interface AgencyHostingV1WordPressVersionResource {
1950
1950
  */
1951
1951
  'version': string;
1952
1952
  }
1953
+ /**
1954
+ *
1955
+ * @export
1956
+ * @interface AgentReadinessV1ChecksCheckResource
1957
+ */
1958
+ export interface AgentReadinessV1ChecksCheckResource {
1959
+ /**
1960
+ * Check ID, as used by `check_id` in scan results
1961
+ * @type {string}
1962
+ * @memberof AgentReadinessV1ChecksCheckResource
1963
+ */
1964
+ 'id': string;
1965
+ /**
1966
+ * Human-readable check name
1967
+ * @type {string}
1968
+ * @memberof AgentReadinessV1ChecksCheckResource
1969
+ */
1970
+ 'name': string;
1971
+ /**
1972
+ * Category the check belongs to
1973
+ * @type {string}
1974
+ * @memberof AgentReadinessV1ChecksCheckResource
1975
+ */
1976
+ 'category': string;
1977
+ /**
1978
+ * Human-readable category name
1979
+ * @type {string}
1980
+ * @memberof AgentReadinessV1ChecksCheckResource
1981
+ */
1982
+ 'category_label': string;
1983
+ /**
1984
+ * Points this check can earn
1985
+ * @type {number}
1986
+ * @memberof AgentReadinessV1ChecksCheckResource
1987
+ */
1988
+ 'weight': number;
1989
+ }
1990
+ /**
1991
+ *
1992
+ * @export
1993
+ * @interface AgentReadinessV1ScansCategoriesResource
1994
+ */
1995
+ export interface AgentReadinessV1ScansCategoriesResource {
1996
+ /**
1997
+ *
1998
+ * @type {AgentReadinessV1ScansCategoryScoreResource}
1999
+ * @memberof AgentReadinessV1ScansCategoriesResource
2000
+ */
2001
+ 'crawl_permission': AgentReadinessV1ScansCategoryScoreResource;
2002
+ /**
2003
+ *
2004
+ * @type {AgentReadinessV1ScansCategoryScoreResource}
2005
+ * @memberof AgentReadinessV1ScansCategoriesResource
2006
+ */
2007
+ 'findability': AgentReadinessV1ScansCategoryScoreResource;
2008
+ /**
2009
+ *
2010
+ * @type {AgentReadinessV1ScansCategoryScoreResource}
2011
+ * @memberof AgentReadinessV1ScansCategoriesResource
2012
+ */
2013
+ 'readability': AgentReadinessV1ScansCategoryScoreResource;
2014
+ /**
2015
+ *
2016
+ * @type {AgentReadinessV1ScansCategoryScoreResource}
2017
+ * @memberof AgentReadinessV1ScansCategoriesResource
2018
+ */
2019
+ 'structured_meaning': AgentReadinessV1ScansCategoryScoreResource;
2020
+ /**
2021
+ *
2022
+ * @type {AgentReadinessV1ScansCategoryScoreResource}
2023
+ * @memberof AgentReadinessV1ScansCategoriesResource
2024
+ */
2025
+ 'commercial_legibility': AgentReadinessV1ScansCategoryScoreResource;
2026
+ /**
2027
+ *
2028
+ * @type {AgentReadinessV1ScansCategoryScoreResource}
2029
+ * @memberof AgentReadinessV1ScansCategoriesResource
2030
+ */
2031
+ 'agent_native_content': AgentReadinessV1ScansCategoryScoreResource;
2032
+ /**
2033
+ *
2034
+ * @type {AgentReadinessV1ScansCategoryScoreResource}
2035
+ * @memberof AgentReadinessV1ScansCategoriesResource
2036
+ */
2037
+ 'agent_interaction': AgentReadinessV1ScansCategoryScoreResource;
2038
+ }
2039
+ /**
2040
+ *
2041
+ * @export
2042
+ * @interface AgentReadinessV1ScansCategoryScoreResource
2043
+ */
2044
+ export interface AgentReadinessV1ScansCategoryScoreResource {
2045
+ /**
2046
+ * Points this category contributes to the 0-100 total score
2047
+ * @type {number}
2048
+ * @memberof AgentReadinessV1ScansCategoryScoreResource
2049
+ */
2050
+ 'score': number;
2051
+ /**
2052
+ * Maximum points this category can contribute
2053
+ * @type {number}
2054
+ * @memberof AgentReadinessV1ScansCategoryScoreResource
2055
+ */
2056
+ 'weight': number;
2057
+ /**
2058
+ * Points earned by the counted checks in this category
2059
+ * @type {number}
2060
+ * @memberof AgentReadinessV1ScansCategoryScoreResource
2061
+ */
2062
+ 'earned': number;
2063
+ /**
2064
+ * Points possible for the counted checks in this category
2065
+ * @type {number}
2066
+ * @memberof AgentReadinessV1ScansCategoryScoreResource
2067
+ */
2068
+ 'possible': number;
2069
+ }
2070
+ /**
2071
+ *
2072
+ * @export
2073
+ * @interface AgentReadinessV1ScansCheckResultResource
2074
+ */
2075
+ export interface AgentReadinessV1ScansCheckResultResource {
2076
+ /**
2077
+ * Check ID, as listed by the `List checks` operation
2078
+ * @type {string}
2079
+ * @memberof AgentReadinessV1ScansCheckResultResource
2080
+ */
2081
+ 'check_id': string;
2082
+ /**
2083
+ * Category the check belongs to
2084
+ * @type {string}
2085
+ * @memberof AgentReadinessV1ScansCheckResultResource
2086
+ */
2087
+ 'category': string;
2088
+ /**
2089
+ * Check outcome. `not_applicable` and `error` checks do not count towards the category score.
2090
+ * @type {string}
2091
+ * @memberof AgentReadinessV1ScansCheckResultResource
2092
+ */
2093
+ 'status': AgentReadinessV1ScansCheckResultResourceStatusEnum;
2094
+ /**
2095
+ * Points earned by this check
2096
+ * @type {number}
2097
+ * @memberof AgentReadinessV1ScansCheckResultResource
2098
+ */
2099
+ 'earned': number;
2100
+ /**
2101
+ * Points this check can earn
2102
+ * @type {number}
2103
+ * @memberof AgentReadinessV1ScansCheckResultResource
2104
+ */
2105
+ 'possible': number;
2106
+ /**
2107
+ * What the scanner observed
2108
+ * @type {string}
2109
+ * @memberof AgentReadinessV1ScansCheckResultResource
2110
+ */
2111
+ 'evidence': string;
2112
+ /**
2113
+ * How to improve the result, or null when there is nothing to fix
2114
+ * @type {string}
2115
+ * @memberof AgentReadinessV1ScansCheckResultResource
2116
+ */
2117
+ 'fix': string | null;
2118
+ }
2119
+ export declare const AgentReadinessV1ScansCheckResultResourceStatusEnum: {
2120
+ readonly Pass: "pass";
2121
+ readonly Partial: "partial";
2122
+ readonly Fail: "fail";
2123
+ readonly NotApplicable: "not_applicable";
2124
+ readonly Error: "error";
2125
+ };
2126
+ export type AgentReadinessV1ScansCheckResultResourceStatusEnum = typeof AgentReadinessV1ScansCheckResultResourceStatusEnum[keyof typeof AgentReadinessV1ScansCheckResultResourceStatusEnum];
2127
+ /**
2128
+ *
2129
+ * @export
2130
+ * @interface AgentReadinessV1ScansRunScanRequest
2131
+ */
2132
+ export interface AgentReadinessV1ScansRunScanRequest {
2133
+ /**
2134
+ * Domain name or full URL of the website to scan. Only the host is used.
2135
+ * @type {string}
2136
+ * @memberof AgentReadinessV1ScansRunScanRequest
2137
+ */
2138
+ 'domain': string;
2139
+ }
2140
+ /**
2141
+ *
2142
+ * @export
2143
+ * @interface AgentReadinessV1ScansScanResource
2144
+ */
2145
+ export interface AgentReadinessV1ScansScanResource {
2146
+ /**
2147
+ * Domain name that was scanned
2148
+ * @type {string}
2149
+ * @memberof AgentReadinessV1ScansScanResource
2150
+ */
2151
+ 'domain': string;
2152
+ /**
2153
+ * Scan status. Result fields are null until the status is `completed`.
2154
+ * @type {string}
2155
+ * @memberof AgentReadinessV1ScansScanResource
2156
+ */
2157
+ 'status': AgentReadinessV1ScansScanResourceStatusEnum;
2158
+ /**
2159
+ * Agent readiness score from 0 to 100. Null unless completed, and null when unreachable.
2160
+ * @type {number}
2161
+ * @memberof AgentReadinessV1ScansScanResource
2162
+ */
2163
+ 'score': number | null;
2164
+ /**
2165
+ * Letter grade for the score, from `A` to `F`. Null unless completed, and null when unreachable.
2166
+ * @type {string}
2167
+ * @memberof AgentReadinessV1ScansScanResource
2168
+ */
2169
+ 'grade': string | null;
2170
+ /**
2171
+ * Whether the website homepage could not be fetched
2172
+ * @type {boolean}
2173
+ * @memberof AgentReadinessV1ScansScanResource
2174
+ */
2175
+ 'is_unreachable': boolean;
2176
+ /**
2177
+ * Version of the scoring method that produced this scan
2178
+ * @type {number}
2179
+ * @memberof AgentReadinessV1ScansScanResource
2180
+ */
2181
+ 'scanner_version': number;
2182
+ /**
2183
+ * Whether the scan was produced by an older scoring method than the current one
2184
+ * @type {boolean}
2185
+ * @memberof AgentReadinessV1ScansScanResource
2186
+ */
2187
+ 'is_outdated': boolean;
2188
+ /**
2189
+ * When the scan finished. Null unless completed.
2190
+ * @type {string}
2191
+ * @memberof AgentReadinessV1ScansScanResource
2192
+ */
2193
+ 'scanned_at': string | null;
2194
+ /**
2195
+ *
2196
+ * @type {AgentReadinessV1ScansCategoriesResource}
2197
+ * @memberof AgentReadinessV1ScansScanResource
2198
+ */
2199
+ 'categories': AgentReadinessV1ScansCategoriesResource | null;
2200
+ /**
2201
+ * Categories where no check could be counted. They still cost their full weight. Null unless completed.
2202
+ * @type {Array<string>}
2203
+ * @memberof AgentReadinessV1ScansScanResource
2204
+ */
2205
+ 'unassessed_categories': Array<string> | null;
2206
+ /**
2207
+ * Result of every check. Null unless completed.
2208
+ * @type {Array<AgentReadinessV1ScansCheckResultResource>}
2209
+ * @memberof AgentReadinessV1ScansScanResource
2210
+ */
2211
+ 'results': Array<AgentReadinessV1ScansCheckResultResource> | null;
2212
+ }
2213
+ export declare const AgentReadinessV1ScansScanResourceStatusEnum: {
2214
+ readonly Pending: "pending";
2215
+ readonly Completed: "completed";
2216
+ readonly Failed: "failed";
2217
+ };
2218
+ export type AgentReadinessV1ScansScanResourceStatusEnum = typeof AgentReadinessV1ScansScanResourceStatusEnum[keyof typeof AgentReadinessV1ScansScanResourceStatusEnum];
1953
2219
  /**
1954
2220
  *
1955
2221
  * @export
@@ -19544,6 +19810,153 @@ export declare class AgencyHostingWordPressApi extends BaseAPI {
19544
19810
  */
19545
19811
  listAvailableWordPressVersionsV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingV1WordPressVersionResource[], any, {}, any>>;
19546
19812
  }
19813
+ /**
19814
+ * AgentReadinessChecksApi - axios parameter creator
19815
+ * @export
19816
+ */
19817
+ export declare const AgentReadinessChecksApiAxiosParamCreator: (configuration?: Configuration) => {
19818
+ /**
19819
+ * 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.
19820
+ * @summary List checks
19821
+ * @param {*} [options] Override http request option.
19822
+ * @throws {RequiredError}
19823
+ */
19824
+ listChecksV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19825
+ };
19826
+ /**
19827
+ * AgentReadinessChecksApi - functional programming interface
19828
+ * @export
19829
+ */
19830
+ export declare const AgentReadinessChecksApiFp: (configuration?: Configuration) => {
19831
+ /**
19832
+ * 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.
19833
+ * @summary List checks
19834
+ * @param {*} [options] Override http request option.
19835
+ * @throws {RequiredError}
19836
+ */
19837
+ listChecksV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgentReadinessV1ChecksCheckResource>>>;
19838
+ };
19839
+ /**
19840
+ * AgentReadinessChecksApi - factory interface
19841
+ * @export
19842
+ */
19843
+ export declare const AgentReadinessChecksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
19844
+ /**
19845
+ * 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.
19846
+ * @summary List checks
19847
+ * @param {*} [options] Override http request option.
19848
+ * @throws {RequiredError}
19849
+ */
19850
+ listChecksV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<AgentReadinessV1ChecksCheckResource>>;
19851
+ };
19852
+ /**
19853
+ * AgentReadinessChecksApi - object-oriented interface
19854
+ * @export
19855
+ * @class AgentReadinessChecksApi
19856
+ * @extends {BaseAPI}
19857
+ */
19858
+ export declare class AgentReadinessChecksApi extends BaseAPI {
19859
+ /**
19860
+ * 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.
19861
+ * @summary List checks
19862
+ * @param {*} [options] Override http request option.
19863
+ * @throws {RequiredError}
19864
+ * @memberof AgentReadinessChecksApi
19865
+ */
19866
+ listChecksV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentReadinessV1ChecksCheckResource[], any, {}, any>>;
19867
+ }
19868
+ /**
19869
+ * AgentReadinessScansApi - axios parameter creator
19870
+ * @export
19871
+ */
19872
+ export declare const AgentReadinessScansApiAxiosParamCreator: (configuration?: Configuration) => {
19873
+ /**
19874
+ * 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.
19875
+ * @summary Get website scan
19876
+ * @param {string} domain Domain name the scan was run for
19877
+ * @param {*} [options] Override http request option.
19878
+ * @throws {RequiredError}
19879
+ */
19880
+ getWebsiteScanV1: (domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19881
+ /**
19882
+ * 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.
19883
+ * @summary Run website scan
19884
+ * @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
19885
+ * @param {*} [options] Override http request option.
19886
+ * @throws {RequiredError}
19887
+ */
19888
+ runWebsiteScanV1: (agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19889
+ };
19890
+ /**
19891
+ * AgentReadinessScansApi - functional programming interface
19892
+ * @export
19893
+ */
19894
+ export declare const AgentReadinessScansApiFp: (configuration?: Configuration) => {
19895
+ /**
19896
+ * 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.
19897
+ * @summary Get website scan
19898
+ * @param {string} domain Domain name the scan was run for
19899
+ * @param {*} [options] Override http request option.
19900
+ * @throws {RequiredError}
19901
+ */
19902
+ getWebsiteScanV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentReadinessV1ScansScanResource>>;
19903
+ /**
19904
+ * 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.
19905
+ * @summary Run website scan
19906
+ * @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
19907
+ * @param {*} [options] Override http request option.
19908
+ * @throws {RequiredError}
19909
+ */
19910
+ runWebsiteScanV1(agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentReadinessV1ScansScanResource>>;
19911
+ };
19912
+ /**
19913
+ * AgentReadinessScansApi - factory interface
19914
+ * @export
19915
+ */
19916
+ export declare const AgentReadinessScansApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
19917
+ /**
19918
+ * 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.
19919
+ * @summary Get website scan
19920
+ * @param {string} domain Domain name the scan was run for
19921
+ * @param {*} [options] Override http request option.
19922
+ * @throws {RequiredError}
19923
+ */
19924
+ getWebsiteScanV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentReadinessV1ScansScanResource>;
19925
+ /**
19926
+ * 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.
19927
+ * @summary Run website scan
19928
+ * @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
19929
+ * @param {*} [options] Override http request option.
19930
+ * @throws {RequiredError}
19931
+ */
19932
+ runWebsiteScanV1(agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig): AxiosPromise<AgentReadinessV1ScansScanResource>;
19933
+ };
19934
+ /**
19935
+ * AgentReadinessScansApi - object-oriented interface
19936
+ * @export
19937
+ * @class AgentReadinessScansApi
19938
+ * @extends {BaseAPI}
19939
+ */
19940
+ export declare class AgentReadinessScansApi extends BaseAPI {
19941
+ /**
19942
+ * 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.
19943
+ * @summary Get website scan
19944
+ * @param {string} domain Domain name the scan was run for
19945
+ * @param {*} [options] Override http request option.
19946
+ * @throws {RequiredError}
19947
+ * @memberof AgentReadinessScansApi
19948
+ */
19949
+ getWebsiteScanV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentReadinessV1ScansScanResource, any, {}, any>>;
19950
+ /**
19951
+ * 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.
19952
+ * @summary Run website scan
19953
+ * @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
19954
+ * @param {*} [options] Override http request option.
19955
+ * @throws {RequiredError}
19956
+ * @memberof AgentReadinessScansApi
19957
+ */
19958
+ runWebsiteScanV1(agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentReadinessV1ScansScanResource, any, {}, any>>;
19959
+ }
19547
19960
  /**
19548
19961
  * BillingCatalogApi - axios parameter creator
19549
19962
  * @export