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.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.66.0
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
@@ -76,6 +76,18 @@ export const AgencyHostingV1WebsitesWebsiteResourceStateEnum = {
76
76
  Active: 'active',
77
77
  Suspended: 'suspended'
78
78
  };
79
+ export const AgentReadinessV1ScansCheckResultResourceStatusEnum = {
80
+ Pass: 'pass',
81
+ Partial: 'partial',
82
+ Fail: 'fail',
83
+ NotApplicable: 'not_applicable',
84
+ Error: 'error'
85
+ };
86
+ export const AgentReadinessV1ScansScanResourceStatusEnum = {
87
+ Pending: 'pending',
88
+ Completed: 'completed',
89
+ Failed: 'failed'
90
+ };
79
91
  export const BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = {
80
92
  Day: 'day',
81
93
  Week: 'week',
@@ -4674,6 +4686,272 @@ export class AgencyHostingWordPressApi extends BaseAPI {
4674
4686
  return AgencyHostingWordPressApiFp(this.configuration).listAvailableWordPressVersionsV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
4675
4687
  }
4676
4688
  }
4689
+ /**
4690
+ * AgentReadinessChecksApi - axios parameter creator
4691
+ * @export
4692
+ */
4693
+ export const AgentReadinessChecksApiAxiosParamCreator = function (configuration) {
4694
+ return {
4695
+ /**
4696
+ * 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.
4697
+ * @summary List checks
4698
+ * @param {*} [options] Override http request option.
4699
+ * @throws {RequiredError}
4700
+ */
4701
+ listChecksV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
4702
+ const localVarPath = `/api/agent-readiness/v1/checks`;
4703
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4704
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4705
+ let baseOptions;
4706
+ if (configuration) {
4707
+ baseOptions = configuration.baseOptions;
4708
+ }
4709
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4710
+ const localVarHeaderParameter = {};
4711
+ const localVarQueryParameter = {};
4712
+ // authentication apiToken required
4713
+ // http bearer authentication required
4714
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4715
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4716
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4717
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4718
+ return {
4719
+ url: toPathString(localVarUrlObj),
4720
+ options: localVarRequestOptions,
4721
+ };
4722
+ }),
4723
+ };
4724
+ };
4725
+ /**
4726
+ * AgentReadinessChecksApi - functional programming interface
4727
+ * @export
4728
+ */
4729
+ export const AgentReadinessChecksApiFp = function (configuration) {
4730
+ const localVarAxiosParamCreator = AgentReadinessChecksApiAxiosParamCreator(configuration);
4731
+ return {
4732
+ /**
4733
+ * 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.
4734
+ * @summary List checks
4735
+ * @param {*} [options] Override http request option.
4736
+ * @throws {RequiredError}
4737
+ */
4738
+ listChecksV1(options) {
4739
+ return __awaiter(this, void 0, void 0, function* () {
4740
+ var _a, _b;
4741
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listChecksV1(options);
4742
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgentReadinessChecksApi.listChecksV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4743
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4744
+ });
4745
+ },
4746
+ };
4747
+ };
4748
+ /**
4749
+ * AgentReadinessChecksApi - factory interface
4750
+ * @export
4751
+ */
4752
+ export const AgentReadinessChecksApiFactory = function (configuration, basePath, axios) {
4753
+ const localVarFp = AgentReadinessChecksApiFp(configuration);
4754
+ return {
4755
+ /**
4756
+ * 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.
4757
+ * @summary List checks
4758
+ * @param {*} [options] Override http request option.
4759
+ * @throws {RequiredError}
4760
+ */
4761
+ listChecksV1(options) {
4762
+ return localVarFp.listChecksV1(options).then((request) => request(axios, basePath));
4763
+ },
4764
+ };
4765
+ };
4766
+ /**
4767
+ * AgentReadinessChecksApi - object-oriented interface
4768
+ * @export
4769
+ * @class AgentReadinessChecksApi
4770
+ * @extends {BaseAPI}
4771
+ */
4772
+ export class AgentReadinessChecksApi extends BaseAPI {
4773
+ /**
4774
+ * 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.
4775
+ * @summary List checks
4776
+ * @param {*} [options] Override http request option.
4777
+ * @throws {RequiredError}
4778
+ * @memberof AgentReadinessChecksApi
4779
+ */
4780
+ listChecksV1(options) {
4781
+ return AgentReadinessChecksApiFp(this.configuration).listChecksV1(options).then((request) => request(this.axios, this.basePath));
4782
+ }
4783
+ }
4784
+ /**
4785
+ * AgentReadinessScansApi - axios parameter creator
4786
+ * @export
4787
+ */
4788
+ export const AgentReadinessScansApiAxiosParamCreator = function (configuration) {
4789
+ return {
4790
+ /**
4791
+ * 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.
4792
+ * @summary Get website scan
4793
+ * @param {string} domain Domain name the scan was run for
4794
+ * @param {*} [options] Override http request option.
4795
+ * @throws {RequiredError}
4796
+ */
4797
+ getWebsiteScanV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
4798
+ // verify required parameter 'domain' is not null or undefined
4799
+ assertParamExists('getWebsiteScanV1', 'domain', domain);
4800
+ const localVarPath = `/api/agent-readiness/v1/scans/{domain}`
4801
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
4802
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4803
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4804
+ let baseOptions;
4805
+ if (configuration) {
4806
+ baseOptions = configuration.baseOptions;
4807
+ }
4808
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4809
+ const localVarHeaderParameter = {};
4810
+ const localVarQueryParameter = {};
4811
+ // authentication apiToken required
4812
+ // http bearer authentication required
4813
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4814
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4815
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4816
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4817
+ return {
4818
+ url: toPathString(localVarUrlObj),
4819
+ options: localVarRequestOptions,
4820
+ };
4821
+ }),
4822
+ /**
4823
+ * 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.
4824
+ * @summary Run website scan
4825
+ * @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
4826
+ * @param {*} [options] Override http request option.
4827
+ * @throws {RequiredError}
4828
+ */
4829
+ runWebsiteScanV1: (agentReadinessV1ScansRunScanRequest_1, ...args_1) => __awaiter(this, [agentReadinessV1ScansRunScanRequest_1, ...args_1], void 0, function* (agentReadinessV1ScansRunScanRequest, options = {}) {
4830
+ // verify required parameter 'agentReadinessV1ScansRunScanRequest' is not null or undefined
4831
+ assertParamExists('runWebsiteScanV1', 'agentReadinessV1ScansRunScanRequest', agentReadinessV1ScansRunScanRequest);
4832
+ const localVarPath = `/api/agent-readiness/v1/scans`;
4833
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4834
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4835
+ let baseOptions;
4836
+ if (configuration) {
4837
+ baseOptions = configuration.baseOptions;
4838
+ }
4839
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4840
+ const localVarHeaderParameter = {};
4841
+ const localVarQueryParameter = {};
4842
+ // authentication apiToken required
4843
+ // http bearer authentication required
4844
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4845
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4846
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4847
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4848
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4849
+ localVarRequestOptions.data = serializeDataIfNeeded(agentReadinessV1ScansRunScanRequest, localVarRequestOptions, configuration);
4850
+ return {
4851
+ url: toPathString(localVarUrlObj),
4852
+ options: localVarRequestOptions,
4853
+ };
4854
+ }),
4855
+ };
4856
+ };
4857
+ /**
4858
+ * AgentReadinessScansApi - functional programming interface
4859
+ * @export
4860
+ */
4861
+ export const AgentReadinessScansApiFp = function (configuration) {
4862
+ const localVarAxiosParamCreator = AgentReadinessScansApiAxiosParamCreator(configuration);
4863
+ return {
4864
+ /**
4865
+ * 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.
4866
+ * @summary Get website scan
4867
+ * @param {string} domain Domain name the scan was run for
4868
+ * @param {*} [options] Override http request option.
4869
+ * @throws {RequiredError}
4870
+ */
4871
+ getWebsiteScanV1(domain, options) {
4872
+ return __awaiter(this, void 0, void 0, function* () {
4873
+ var _a, _b;
4874
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getWebsiteScanV1(domain, options);
4875
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgentReadinessScansApi.getWebsiteScanV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4876
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4877
+ });
4878
+ },
4879
+ /**
4880
+ * 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.
4881
+ * @summary Run website scan
4882
+ * @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
4883
+ * @param {*} [options] Override http request option.
4884
+ * @throws {RequiredError}
4885
+ */
4886
+ runWebsiteScanV1(agentReadinessV1ScansRunScanRequest, options) {
4887
+ return __awaiter(this, void 0, void 0, function* () {
4888
+ var _a, _b;
4889
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.runWebsiteScanV1(agentReadinessV1ScansRunScanRequest, options);
4890
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['AgentReadinessScansApi.runWebsiteScanV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4891
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4892
+ });
4893
+ },
4894
+ };
4895
+ };
4896
+ /**
4897
+ * AgentReadinessScansApi - factory interface
4898
+ * @export
4899
+ */
4900
+ export const AgentReadinessScansApiFactory = function (configuration, basePath, axios) {
4901
+ const localVarFp = AgentReadinessScansApiFp(configuration);
4902
+ return {
4903
+ /**
4904
+ * 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.
4905
+ * @summary Get website scan
4906
+ * @param {string} domain Domain name the scan was run for
4907
+ * @param {*} [options] Override http request option.
4908
+ * @throws {RequiredError}
4909
+ */
4910
+ getWebsiteScanV1(domain, options) {
4911
+ return localVarFp.getWebsiteScanV1(domain, options).then((request) => request(axios, basePath));
4912
+ },
4913
+ /**
4914
+ * 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.
4915
+ * @summary Run website scan
4916
+ * @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
4917
+ * @param {*} [options] Override http request option.
4918
+ * @throws {RequiredError}
4919
+ */
4920
+ runWebsiteScanV1(agentReadinessV1ScansRunScanRequest, options) {
4921
+ return localVarFp.runWebsiteScanV1(agentReadinessV1ScansRunScanRequest, options).then((request) => request(axios, basePath));
4922
+ },
4923
+ };
4924
+ };
4925
+ /**
4926
+ * AgentReadinessScansApi - object-oriented interface
4927
+ * @export
4928
+ * @class AgentReadinessScansApi
4929
+ * @extends {BaseAPI}
4930
+ */
4931
+ export class AgentReadinessScansApi extends BaseAPI {
4932
+ /**
4933
+ * 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.
4934
+ * @summary Get website scan
4935
+ * @param {string} domain Domain name the scan was run for
4936
+ * @param {*} [options] Override http request option.
4937
+ * @throws {RequiredError}
4938
+ * @memberof AgentReadinessScansApi
4939
+ */
4940
+ getWebsiteScanV1(domain, options) {
4941
+ return AgentReadinessScansApiFp(this.configuration).getWebsiteScanV1(domain, options).then((request) => request(this.axios, this.basePath));
4942
+ }
4943
+ /**
4944
+ * 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.
4945
+ * @summary Run website scan
4946
+ * @param {AgentReadinessV1ScansRunScanRequest} agentReadinessV1ScansRunScanRequest
4947
+ * @param {*} [options] Override http request option.
4948
+ * @throws {RequiredError}
4949
+ * @memberof AgentReadinessScansApi
4950
+ */
4951
+ runWebsiteScanV1(agentReadinessV1ScansRunScanRequest, options) {
4952
+ return AgentReadinessScansApiFp(this.configuration).runWebsiteScanV1(agentReadinessV1ScansRunScanRequest, options).then((request) => request(this.axios, this.basePath));
4953
+ }
4954
+ }
4677
4955
  /**
4678
4956
  * BillingCatalogApi - axios parameter creator
4679
4957
  * @export
@@ -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
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.66.0
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
@@ -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
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.66.0
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
@@ -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
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.66.0
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
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.66.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.67.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -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
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.66.0
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/dist/index.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
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.66.0
7
+ * API Version: 1.67.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -0,0 +1,54 @@
1
+ # AgentReadinessChecksApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**listChecksV1**](#listchecksv1) | **GET** /api/agent-readiness/v1/checks | List checks|
8
+
9
+ # **listChecksV1**
10
+ > Array<AgentReadinessV1ChecksCheckResource> listChecksV1()
11
+
12
+ 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.
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ AgentReadinessChecksApi,
19
+ Configuration
20
+ } from '@hostinger/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new AgentReadinessChecksApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.listChecksV1();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **Array<AgentReadinessV1ChecksCheckResource>**
35
+
36
+ ### Authorization
37
+
38
+ [apiToken](../README.md#apiToken)
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: application/json
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | Success response | - |
50
+ |**401** | Unauthenticated response | - |
51
+ |**500** | Error response | - |
52
+
53
+ [[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)
54
+
@@ -0,0 +1,117 @@
1
+ # AgentReadinessScansApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getWebsiteScanV1**](#getwebsitescanv1) | **GET** /api/agent-readiness/v1/scans/{domain} | Get website scan|
8
+ |[**runWebsiteScanV1**](#runwebsitescanv1) | **POST** /api/agent-readiness/v1/scans | Run website scan|
9
+
10
+ # **getWebsiteScanV1**
11
+ > AgentReadinessV1ScansScanResource getWebsiteScanV1()
12
+
13
+ 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.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ AgentReadinessScansApi,
20
+ Configuration
21
+ } from '@hostinger/sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new AgentReadinessScansApi(configuration);
25
+
26
+ let domain: string; //Domain name the scan was run for (default to undefined)
27
+
28
+ const { status, data } = await apiInstance.getWebsiteScanV1(
29
+ domain
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **domain** | [**string**] | Domain name the scan was run for | defaults to undefined|
38
+
39
+
40
+ ### Return type
41
+
42
+ **AgentReadinessV1ScansScanResource**
43
+
44
+ ### Authorization
45
+
46
+ [apiToken](../README.md#apiToken)
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: Not defined
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**200** | Success response | - |
58
+ |**401** | Unauthenticated response | - |
59
+ |**500** | Error response | - |
60
+
61
+ [[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)
62
+
63
+ # **runWebsiteScanV1**
64
+ > AgentReadinessV1ScansScanResource runWebsiteScanV1(agentReadinessV1ScansRunScanRequest)
65
+
66
+ 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.
67
+
68
+ ### Example
69
+
70
+ ```typescript
71
+ import {
72
+ AgentReadinessScansApi,
73
+ Configuration,
74
+ AgentReadinessV1ScansRunScanRequest
75
+ } from '@hostinger/sdk';
76
+
77
+ const configuration = new Configuration();
78
+ const apiInstance = new AgentReadinessScansApi(configuration);
79
+
80
+ let agentReadinessV1ScansRunScanRequest: AgentReadinessV1ScansRunScanRequest; //
81
+
82
+ const { status, data } = await apiInstance.runWebsiteScanV1(
83
+ agentReadinessV1ScansRunScanRequest
84
+ );
85
+ ```
86
+
87
+ ### Parameters
88
+
89
+ |Name | Type | Description | Notes|
90
+ |------------- | ------------- | ------------- | -------------|
91
+ | **agentReadinessV1ScansRunScanRequest** | **AgentReadinessV1ScansRunScanRequest**| | |
92
+
93
+
94
+ ### Return type
95
+
96
+ **AgentReadinessV1ScansScanResource**
97
+
98
+ ### Authorization
99
+
100
+ [apiToken](../README.md#apiToken)
101
+
102
+ ### HTTP request headers
103
+
104
+ - **Content-Type**: application/json
105
+ - **Accept**: application/json
106
+
107
+
108
+ ### HTTP response details
109
+ | Status code | Description | Response headers |
110
+ |-------------|-------------|------------------|
111
+ |**200** | Success response | - |
112
+ |**422** | Validation error response | - |
113
+ |**401** | Unauthenticated response | - |
114
+ |**500** | Error response | - |
115
+
116
+ [[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)
117
+
@@ -0,0 +1,28 @@
1
+ # AgentReadinessV1ChecksCheckResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Check ID, as used by &#x60;check_id&#x60; in scan results | [default to undefined]
9
+ **name** | **string** | Human-readable check name | [default to undefined]
10
+ **category** | **string** | Category the check belongs to | [default to undefined]
11
+ **category_label** | **string** | Human-readable category name | [default to undefined]
12
+ **weight** | **number** | Points this check can earn | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { AgentReadinessV1ChecksCheckResource } from '@hostinger/sdk';
18
+
19
+ const instance: AgentReadinessV1ChecksCheckResource = {
20
+ id,
21
+ name,
22
+ category,
23
+ category_label,
24
+ weight,
25
+ };
26
+ ```
27
+
28
+ [[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
+ # AgentReadinessV1ScansCategoriesResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **crawl_permission** | [**AgentReadinessV1ScansCategoryScoreResource**](AgentReadinessV1ScansCategoryScoreResource.md) | | [default to undefined]
9
+ **findability** | [**AgentReadinessV1ScansCategoryScoreResource**](AgentReadinessV1ScansCategoryScoreResource.md) | | [default to undefined]
10
+ **readability** | [**AgentReadinessV1ScansCategoryScoreResource**](AgentReadinessV1ScansCategoryScoreResource.md) | | [default to undefined]
11
+ **structured_meaning** | [**AgentReadinessV1ScansCategoryScoreResource**](AgentReadinessV1ScansCategoryScoreResource.md) | | [default to undefined]
12
+ **commercial_legibility** | [**AgentReadinessV1ScansCategoryScoreResource**](AgentReadinessV1ScansCategoryScoreResource.md) | | [default to undefined]
13
+ **agent_native_content** | [**AgentReadinessV1ScansCategoryScoreResource**](AgentReadinessV1ScansCategoryScoreResource.md) | | [default to undefined]
14
+ **agent_interaction** | [**AgentReadinessV1ScansCategoryScoreResource**](AgentReadinessV1ScansCategoryScoreResource.md) | | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { AgentReadinessV1ScansCategoriesResource } from '@hostinger/sdk';
20
+
21
+ const instance: AgentReadinessV1ScansCategoriesResource = {
22
+ crawl_permission,
23
+ findability,
24
+ readability,
25
+ structured_meaning,
26
+ commercial_legibility,
27
+ agent_native_content,
28
+ agent_interaction,
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)