hostinger-api-sdk 1.65.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.
Files changed (42) hide show
  1. package/README.md +2 -2
  2. package/api.ts +918 -1
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +707 -1
  7. package/dist/api.js +421 -13
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +707 -1
  15. package/dist/esm/api.js +397 -1
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/AgentReadinessChecksApi.md +54 -0
  27. package/docs/AgentReadinessScansApi.md +117 -0
  28. package/docs/AgentReadinessV1ChecksCheckResource.md +28 -0
  29. package/docs/AgentReadinessV1ScansCategoriesResource.md +32 -0
  30. package/docs/AgentReadinessV1ScansCategoryScoreResource.md +26 -0
  31. package/docs/AgentReadinessV1ScansCheckResultResource.md +32 -0
  32. package/docs/AgentReadinessV1ScansRunScanRequest.md +20 -0
  33. package/docs/AgentReadinessV1ScansScanResource.md +40 -0
  34. package/docs/HostingHeadlessApi.md +63 -0
  35. package/docs/HostingV1HeadlessAgentReportResource.md +24 -0
  36. package/docs/HostingV1HeadlessStoreAgentReportRequest.md +45 -0
  37. package/docs/HostingV1HeadlessStoreAgentReportRequestConsent.md +23 -0
  38. package/docs/HostingV1HeadlessStoreAgentReportRequestInfo.md +25 -0
  39. package/docs/HostingV1HeadlessStoreAgentReportRequestRun.md +27 -0
  40. package/docs/HostingV1HeadlessStoreAgentReportRequestTiming.md +27 -0
  41. package/index.ts +1 -1
  42. package/package.json +1 -1
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.65.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',
@@ -330,6 +342,21 @@ export const HostingV1GitGitInstallationResourceStatusEnum = {
330
342
  Active: 'active',
331
343
  Suspended: 'suspended'
332
344
  };
345
+ export const HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum = {
346
+ _1: '1'
347
+ };
348
+ export const HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum = {
349
+ Live: 'live',
350
+ Stopped: 'stopped',
351
+ Failed: 'failed',
352
+ Abandoned: 'abandoned'
353
+ };
354
+ export const HostingV1HeadlessStoreAgentReportRequestRunKindEnum = {
355
+ Build: 'build',
356
+ Resume: 'resume',
357
+ Redesign: 'redesign',
358
+ Iterate: 'iterate'
359
+ };
333
360
  export const HostingV1NodeJsBuildOptionsResourceAppTypeEnum = {
334
361
  CreateReactApp: 'create-react-app',
335
362
  Gatsby: 'gatsby',
@@ -4659,6 +4686,272 @@ export class AgencyHostingWordPressApi extends BaseAPI {
4659
4686
  return AgencyHostingWordPressApiFp(this.configuration).listAvailableWordPressVersionsV1(websiteUid, options).then((request) => request(this.axios, this.basePath));
4660
4687
  }
4661
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
+ }
4662
4955
  /**
4663
4956
  * BillingCatalogApi - axios parameter creator
4664
4957
  * @export
@@ -15558,6 +15851,109 @@ export const ListGitInstallationsV1StatusEnum = {
15558
15851
  Active: 'active',
15559
15852
  Suspended: 'suspended'
15560
15853
  };
15854
+ /**
15855
+ * HostingHeadlessApi - axios parameter creator
15856
+ * @export
15857
+ */
15858
+ export const HostingHeadlessApiAxiosParamCreator = function (configuration) {
15859
+ return {
15860
+ /**
15861
+ * Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. Only send a report when the user agreed to it. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
15862
+ * @summary Submit headless build report
15863
+ * @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
15864
+ * @param {*} [options] Override http request option.
15865
+ * @throws {RequiredError}
15866
+ */
15867
+ submitHeadlessBuildReportV1: (hostingV1HeadlessStoreAgentReportRequest_1, ...args_1) => __awaiter(this, [hostingV1HeadlessStoreAgentReportRequest_1, ...args_1], void 0, function* (hostingV1HeadlessStoreAgentReportRequest, options = {}) {
15868
+ // verify required parameter 'hostingV1HeadlessStoreAgentReportRequest' is not null or undefined
15869
+ assertParamExists('submitHeadlessBuildReportV1', 'hostingV1HeadlessStoreAgentReportRequest', hostingV1HeadlessStoreAgentReportRequest);
15870
+ const localVarPath = `/api/hosting/v1/headless/agent-reports`;
15871
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15872
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15873
+ let baseOptions;
15874
+ if (configuration) {
15875
+ baseOptions = configuration.baseOptions;
15876
+ }
15877
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15878
+ const localVarHeaderParameter = {};
15879
+ const localVarQueryParameter = {};
15880
+ // authentication apiToken required
15881
+ // http bearer authentication required
15882
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
15883
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15884
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15885
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15886
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15887
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1HeadlessStoreAgentReportRequest, localVarRequestOptions, configuration);
15888
+ return {
15889
+ url: toPathString(localVarUrlObj),
15890
+ options: localVarRequestOptions,
15891
+ };
15892
+ }),
15893
+ };
15894
+ };
15895
+ /**
15896
+ * HostingHeadlessApi - functional programming interface
15897
+ * @export
15898
+ */
15899
+ export const HostingHeadlessApiFp = function (configuration) {
15900
+ const localVarAxiosParamCreator = HostingHeadlessApiAxiosParamCreator(configuration);
15901
+ return {
15902
+ /**
15903
+ * Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. Only send a report when the user agreed to it. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
15904
+ * @summary Submit headless build report
15905
+ * @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
15906
+ * @param {*} [options] Override http request option.
15907
+ * @throws {RequiredError}
15908
+ */
15909
+ submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options) {
15910
+ return __awaiter(this, void 0, void 0, function* () {
15911
+ var _a, _b;
15912
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options);
15913
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingHeadlessApi.submitHeadlessBuildReportV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15914
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15915
+ });
15916
+ },
15917
+ };
15918
+ };
15919
+ /**
15920
+ * HostingHeadlessApi - factory interface
15921
+ * @export
15922
+ */
15923
+ export const HostingHeadlessApiFactory = function (configuration, basePath, axios) {
15924
+ const localVarFp = HostingHeadlessApiFp(configuration);
15925
+ return {
15926
+ /**
15927
+ * Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. Only send a report when the user agreed to it. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
15928
+ * @summary Submit headless build report
15929
+ * @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
15930
+ * @param {*} [options] Override http request option.
15931
+ * @throws {RequiredError}
15932
+ */
15933
+ submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options) {
15934
+ return localVarFp.submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options).then((request) => request(axios, basePath));
15935
+ },
15936
+ };
15937
+ };
15938
+ /**
15939
+ * HostingHeadlessApi - object-oriented interface
15940
+ * @export
15941
+ * @class HostingHeadlessApi
15942
+ * @extends {BaseAPI}
15943
+ */
15944
+ export class HostingHeadlessApi extends BaseAPI {
15945
+ /**
15946
+ * Submits the build report the headless skill writes at the end of a run (including early stops), so Hostinger can learn where builds get stuck. Send one report per call, with the report JSON as the request body, unchanged. Only send a report when the user agreed to it. The report must match report.schema.json v1; an invalid report returns 422 and is not stored. The report is linked to the authenticated account, so do not add account details to it.
15947
+ * @summary Submit headless build report
15948
+ * @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
15949
+ * @param {*} [options] Override http request option.
15950
+ * @throws {RequiredError}
15951
+ * @memberof HostingHeadlessApi
15952
+ */
15953
+ submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options) {
15954
+ return HostingHeadlessApiFp(this.configuration).submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options).then((request) => request(this.axios, this.basePath));
15955
+ }
15956
+ }
15561
15957
  /**
15562
15958
  * HostingNodeJSApi - axios parameter creator
15563
15959
  * @export
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.65.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.65.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.65.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.65.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.65.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.65.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.65.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.65.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.65.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.65.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.65.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
+