hostinger-api-sdk 1.64.1 → 1.66.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.64.1
6
+ * API Version: 1.66.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
@@ -330,6 +330,21 @@ export const HostingV1GitGitInstallationResourceStatusEnum = {
330
330
  Active: 'active',
331
331
  Suspended: 'suspended'
332
332
  };
333
+ export const HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum = {
334
+ _1: '1'
335
+ };
336
+ export const HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum = {
337
+ Live: 'live',
338
+ Stopped: 'stopped',
339
+ Failed: 'failed',
340
+ Abandoned: 'abandoned'
341
+ };
342
+ export const HostingV1HeadlessStoreAgentReportRequestRunKindEnum = {
343
+ Build: 'build',
344
+ Resume: 'resume',
345
+ Redesign: 'redesign',
346
+ Iterate: 'iterate'
347
+ };
333
348
  export const HostingV1NodeJsBuildOptionsResourceAppTypeEnum = {
334
349
  CreateReactApp: 'create-react-app',
335
350
  Gatsby: 'gatsby',
@@ -1115,6 +1130,14 @@ export const VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = {
1115
1130
  Unlocked: 'unlocked',
1116
1131
  Locked: 'locked'
1117
1132
  };
1133
+ export const WordPressV1ContentGenerateImagesRequestImageTypeEnum = {
1134
+ Hero: 'hero',
1135
+ Background: 'background',
1136
+ Inline: 'inline',
1137
+ Gallery: 'gallery',
1138
+ Product: 'product',
1139
+ Logo: 'logo'
1140
+ };
1118
1141
  export const WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = {
1119
1142
  Llmstxt: 'llmstxt',
1120
1143
  Web2agent: 'web2agent'
@@ -15550,6 +15573,109 @@ export const ListGitInstallationsV1StatusEnum = {
15550
15573
  Active: 'active',
15551
15574
  Suspended: 'suspended'
15552
15575
  };
15576
+ /**
15577
+ * HostingHeadlessApi - axios parameter creator
15578
+ * @export
15579
+ */
15580
+ export const HostingHeadlessApiAxiosParamCreator = function (configuration) {
15581
+ return {
15582
+ /**
15583
+ * 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.
15584
+ * @summary Submit headless build report
15585
+ * @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
15586
+ * @param {*} [options] Override http request option.
15587
+ * @throws {RequiredError}
15588
+ */
15589
+ submitHeadlessBuildReportV1: (hostingV1HeadlessStoreAgentReportRequest_1, ...args_1) => __awaiter(this, [hostingV1HeadlessStoreAgentReportRequest_1, ...args_1], void 0, function* (hostingV1HeadlessStoreAgentReportRequest, options = {}) {
15590
+ // verify required parameter 'hostingV1HeadlessStoreAgentReportRequest' is not null or undefined
15591
+ assertParamExists('submitHeadlessBuildReportV1', 'hostingV1HeadlessStoreAgentReportRequest', hostingV1HeadlessStoreAgentReportRequest);
15592
+ const localVarPath = `/api/hosting/v1/headless/agent-reports`;
15593
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15594
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15595
+ let baseOptions;
15596
+ if (configuration) {
15597
+ baseOptions = configuration.baseOptions;
15598
+ }
15599
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15600
+ const localVarHeaderParameter = {};
15601
+ const localVarQueryParameter = {};
15602
+ // authentication apiToken required
15603
+ // http bearer authentication required
15604
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
15605
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15606
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15607
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15608
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15609
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1HeadlessStoreAgentReportRequest, localVarRequestOptions, configuration);
15610
+ return {
15611
+ url: toPathString(localVarUrlObj),
15612
+ options: localVarRequestOptions,
15613
+ };
15614
+ }),
15615
+ };
15616
+ };
15617
+ /**
15618
+ * HostingHeadlessApi - functional programming interface
15619
+ * @export
15620
+ */
15621
+ export const HostingHeadlessApiFp = function (configuration) {
15622
+ const localVarAxiosParamCreator = HostingHeadlessApiAxiosParamCreator(configuration);
15623
+ return {
15624
+ /**
15625
+ * 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.
15626
+ * @summary Submit headless build report
15627
+ * @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
15628
+ * @param {*} [options] Override http request option.
15629
+ * @throws {RequiredError}
15630
+ */
15631
+ submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options) {
15632
+ return __awaiter(this, void 0, void 0, function* () {
15633
+ var _a, _b;
15634
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options);
15635
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingHeadlessApi.submitHeadlessBuildReportV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
15636
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15637
+ });
15638
+ },
15639
+ };
15640
+ };
15641
+ /**
15642
+ * HostingHeadlessApi - factory interface
15643
+ * @export
15644
+ */
15645
+ export const HostingHeadlessApiFactory = function (configuration, basePath, axios) {
15646
+ const localVarFp = HostingHeadlessApiFp(configuration);
15647
+ return {
15648
+ /**
15649
+ * 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.
15650
+ * @summary Submit headless build report
15651
+ * @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
15652
+ * @param {*} [options] Override http request option.
15653
+ * @throws {RequiredError}
15654
+ */
15655
+ submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options) {
15656
+ return localVarFp.submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options).then((request) => request(axios, basePath));
15657
+ },
15658
+ };
15659
+ };
15660
+ /**
15661
+ * HostingHeadlessApi - object-oriented interface
15662
+ * @export
15663
+ * @class HostingHeadlessApi
15664
+ * @extends {BaseAPI}
15665
+ */
15666
+ export class HostingHeadlessApi extends BaseAPI {
15667
+ /**
15668
+ * 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.
15669
+ * @summary Submit headless build report
15670
+ * @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
15671
+ * @param {*} [options] Override http request option.
15672
+ * @throws {RequiredError}
15673
+ * @memberof HostingHeadlessApi
15674
+ */
15675
+ submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options) {
15676
+ return HostingHeadlessApiFp(this.configuration).submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options).then((request) => request(this.axios, this.basePath));
15677
+ }
15678
+ }
15553
15679
  /**
15554
15680
  * HostingNodeJSApi - axios parameter creator
15555
15681
  * @export
@@ -32228,6 +32354,123 @@ export class VPSVirtualMachineApi extends BaseAPI {
32228
32354
  return VPSVirtualMachineApiFp(this.configuration).stopVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
32229
32355
  }
32230
32356
  }
32357
+ /**
32358
+ * WordPressAIContentApi - axios parameter creator
32359
+ * @export
32360
+ */
32361
+ export const WordPressAIContentApiAxiosParamCreator = function (configuration) {
32362
+ return {
32363
+ /**
32364
+ * Generate one or more images from a prompt and an image type for the specified WordPress installation. Images are returned inline as base64-encoded PNGs. They match the requested aspect ratio and are never smaller than the requested size; logos are transparent PNGs cropped to the mark. Generation is synchronous and can take up to a minute. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
32365
+ * @summary Generate images
32366
+ * @param {string} username
32367
+ * @param {string} software WordPress installation (software) identifier
32368
+ * @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
32369
+ * @param {*} [options] Override http request option.
32370
+ * @throws {RequiredError}
32371
+ */
32372
+ generateImagesV1: (username_1, software_1, wordPressV1ContentGenerateImagesRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1ContentGenerateImagesRequest_1, ...args_1], void 0, function* (username, software, wordPressV1ContentGenerateImagesRequest, options = {}) {
32373
+ // verify required parameter 'username' is not null or undefined
32374
+ assertParamExists('generateImagesV1', 'username', username);
32375
+ // verify required parameter 'software' is not null or undefined
32376
+ assertParamExists('generateImagesV1', 'software', software);
32377
+ // verify required parameter 'wordPressV1ContentGenerateImagesRequest' is not null or undefined
32378
+ assertParamExists('generateImagesV1', 'wordPressV1ContentGenerateImagesRequest', wordPressV1ContentGenerateImagesRequest);
32379
+ const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/content/images/generate`
32380
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
32381
+ .replace(`{${"software"}}`, encodeURIComponent(String(software)));
32382
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32383
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32384
+ let baseOptions;
32385
+ if (configuration) {
32386
+ baseOptions = configuration.baseOptions;
32387
+ }
32388
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
32389
+ const localVarHeaderParameter = {};
32390
+ const localVarQueryParameter = {};
32391
+ // authentication apiToken required
32392
+ // http bearer authentication required
32393
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
32394
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32395
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32396
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32397
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
32398
+ localVarRequestOptions.data = serializeDataIfNeeded(wordPressV1ContentGenerateImagesRequest, localVarRequestOptions, configuration);
32399
+ return {
32400
+ url: toPathString(localVarUrlObj),
32401
+ options: localVarRequestOptions,
32402
+ };
32403
+ }),
32404
+ };
32405
+ };
32406
+ /**
32407
+ * WordPressAIContentApi - functional programming interface
32408
+ * @export
32409
+ */
32410
+ export const WordPressAIContentApiFp = function (configuration) {
32411
+ const localVarAxiosParamCreator = WordPressAIContentApiAxiosParamCreator(configuration);
32412
+ return {
32413
+ /**
32414
+ * Generate one or more images from a prompt and an image type for the specified WordPress installation. Images are returned inline as base64-encoded PNGs. They match the requested aspect ratio and are never smaller than the requested size; logos are transparent PNGs cropped to the mark. Generation is synchronous and can take up to a minute. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
32415
+ * @summary Generate images
32416
+ * @param {string} username
32417
+ * @param {string} software WordPress installation (software) identifier
32418
+ * @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
32419
+ * @param {*} [options] Override http request option.
32420
+ * @throws {RequiredError}
32421
+ */
32422
+ generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options) {
32423
+ return __awaiter(this, void 0, void 0, function* () {
32424
+ var _a, _b;
32425
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options);
32426
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['WordPressAIContentApi.generateImagesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
32427
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32428
+ });
32429
+ },
32430
+ };
32431
+ };
32432
+ /**
32433
+ * WordPressAIContentApi - factory interface
32434
+ * @export
32435
+ */
32436
+ export const WordPressAIContentApiFactory = function (configuration, basePath, axios) {
32437
+ const localVarFp = WordPressAIContentApiFp(configuration);
32438
+ return {
32439
+ /**
32440
+ * Generate one or more images from a prompt and an image type for the specified WordPress installation. Images are returned inline as base64-encoded PNGs. They match the requested aspect ratio and are never smaller than the requested size; logos are transparent PNGs cropped to the mark. Generation is synchronous and can take up to a minute. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
32441
+ * @summary Generate images
32442
+ * @param {string} username
32443
+ * @param {string} software WordPress installation (software) identifier
32444
+ * @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
32445
+ * @param {*} [options] Override http request option.
32446
+ * @throws {RequiredError}
32447
+ */
32448
+ generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options) {
32449
+ return localVarFp.generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options).then((request) => request(axios, basePath));
32450
+ },
32451
+ };
32452
+ };
32453
+ /**
32454
+ * WordPressAIContentApi - object-oriented interface
32455
+ * @export
32456
+ * @class WordPressAIContentApi
32457
+ * @extends {BaseAPI}
32458
+ */
32459
+ export class WordPressAIContentApi extends BaseAPI {
32460
+ /**
32461
+ * Generate one or more images from a prompt and an image type for the specified WordPress installation. Images are returned inline as base64-encoded PNGs. They match the requested aspect ratio and are never smaller than the requested size; logos are transparent PNGs cropped to the mark. Generation is synchronous and can take up to a minute. The endpoint is limited to 10 requests per minute. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
32462
+ * @summary Generate images
32463
+ * @param {string} username
32464
+ * @param {string} software WordPress installation (software) identifier
32465
+ * @param {WordPressV1ContentGenerateImagesRequest} wordPressV1ContentGenerateImagesRequest
32466
+ * @param {*} [options] Override http request option.
32467
+ * @throws {RequiredError}
32468
+ * @memberof WordPressAIContentApi
32469
+ */
32470
+ generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options) {
32471
+ return WordPressAIContentApiFp(this.configuration).generateImagesV1(username, software, wordPressV1ContentGenerateImagesRequest, options).then((request) => request(this.axios, this.basePath));
32472
+ }
32473
+ }
32231
32474
  /**
32232
32475
  * WordPressAIToolsApi - axios parameter creator
32233
32476
  * @export
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.64.1
4
+ * API Version: 1.66.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.64.1
6
+ * API Version: 1.66.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.64.1
4
+ * API Version: 1.66.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.64.1
6
+ * API Version: 1.66.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.64.1
4
+ * API Version: 1.66.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.64.1
6
+ * API Version: 1.66.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.64.1" }, (_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.66.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.64.1
4
+ * API Version: 1.66.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.64.1
6
+ * API Version: 1.66.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.64.1
4
+ * API Version: 1.66.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.64.1
7
+ * API Version: 1.66.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,63 @@
1
+ # HostingHeadlessApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**submitHeadlessBuildReportV1**](#submitheadlessbuildreportv1) | **POST** /api/hosting/v1/headless/agent-reports | Submit headless build report|
8
+
9
+ # **submitHeadlessBuildReportV1**
10
+ > HostingV1HeadlessAgentReportResource submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest)
11
+
12
+ 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.
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ HostingHeadlessApi,
19
+ Configuration,
20
+ HostingV1HeadlessStoreAgentReportRequest
21
+ } from '@hostinger/sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new HostingHeadlessApi(configuration);
25
+
26
+ let hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest; //
27
+
28
+ const { status, data } = await apiInstance.submitHeadlessBuildReportV1(
29
+ hostingV1HeadlessStoreAgentReportRequest
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **hostingV1HeadlessStoreAgentReportRequest** | **HostingV1HeadlessStoreAgentReportRequest**| | |
38
+
39
+
40
+ ### Return type
41
+
42
+ **HostingV1HeadlessAgentReportResource**
43
+
44
+ ### Authorization
45
+
46
+ [apiToken](../README.md#apiToken)
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: application/json
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**201** | Created response | - |
58
+ |**422** | Validation error response | - |
59
+ |**401** | Unauthenticated response | - |
60
+ |**500** | Error response | - |
61
+
62
+ [[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)
63
+
@@ -0,0 +1,24 @@
1
+ # HostingV1HeadlessAgentReportResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | Stored report ID | [optional] [default to undefined]
9
+ **run_id** | **string** | ID of the run the report is for | [optional] [default to undefined]
10
+ **created_at** | **string** | When the report was received | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { HostingV1HeadlessAgentReportResource } from '@hostinger/sdk';
16
+
17
+ const instance: HostingV1HeadlessAgentReportResource = {
18
+ id,
19
+ run_id,
20
+ created_at,
21
+ };
22
+ ```
23
+
24
+ [[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,45 @@
1
+ # HostingV1HeadlessStoreAgentReportRequest
2
+
3
+ Headless build report (report.schema.json v1), as written by the headless skill at the end of a run. Send the report unchanged.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **schema_version** | **string** | Report schema version | [default to undefined]
10
+ **generated_at** | **string** | When the report was written | [default to undefined]
11
+ **consent** | [**HostingV1HeadlessStoreAgentReportRequestConsent**](HostingV1HeadlessStoreAgentReportRequestConsent.md) | | [default to undefined]
12
+ **run** | [**HostingV1HeadlessStoreAgentReportRequestRun**](HostingV1HeadlessStoreAgentReportRequestRun.md) | | [default to undefined]
13
+ **info** | [**HostingV1HeadlessStoreAgentReportRequestInfo**](HostingV1HeadlessStoreAgentReportRequestInfo.md) | | [default to undefined]
14
+ **timing** | [**HostingV1HeadlessStoreAgentReportRequestTiming**](HostingV1HeadlessStoreAgentReportRequestTiming.md) | | [default to undefined]
15
+ **tokens** | **object** | Token usage, only when the tool reports its own usage | [default to undefined]
16
+ **issues** | **Array<object>** | Problems hit during the run | [default to undefined]
17
+ **user_feedback** | **Array<object>** | Feedback the user gave during the run | [default to undefined]
18
+ **skill_gaps** | **Array<object>** | Places where the skill instructions were missing or wrong | [default to undefined]
19
+ **what_went_well** | **Array<object>** | Things that worked well during the run | [default to undefined]
20
+ **logging_gaps** | **Array<object>** | Where the run log is missing or unsure | [optional] [default to undefined]
21
+ **previous_runs** | **Array<object>** | Earlier runs for the same website | [default to undefined]
22
+
23
+ ## Example
24
+
25
+ ```typescript
26
+ import { HostingV1HeadlessStoreAgentReportRequest } from '@hostinger/sdk';
27
+
28
+ const instance: HostingV1HeadlessStoreAgentReportRequest = {
29
+ schema_version,
30
+ generated_at,
31
+ consent,
32
+ run,
33
+ info,
34
+ timing,
35
+ tokens,
36
+ issues,
37
+ user_feedback,
38
+ skill_gaps,
39
+ what_went_well,
40
+ logging_gaps,
41
+ previous_runs,
42
+ };
43
+ ```
44
+
45
+ [[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,23 @@
1
+ # HostingV1HeadlessStoreAgentReportRequestConsent
2
+
3
+ Upload status of the report, as written by the headless skill
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **sent** | **boolean** | | [default to undefined]
10
+ **note** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { HostingV1HeadlessStoreAgentReportRequestConsent } from '@hostinger/sdk';
16
+
17
+ const instance: HostingV1HeadlessStoreAgentReportRequestConsent = {
18
+ sent,
19
+ note,
20
+ };
21
+ ```
22
+
23
+ [[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,25 @@
1
+ # HostingV1HeadlessStoreAgentReportRequestInfo
2
+
3
+ Website, tool and outcome of the run
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **domain** | **string** | | [default to undefined]
10
+ **tool** | **string** | | [default to undefined]
11
+ **outcome** | **string** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { HostingV1HeadlessStoreAgentReportRequestInfo } from '@hostinger/sdk';
17
+
18
+ const instance: HostingV1HeadlessStoreAgentReportRequestInfo = {
19
+ domain,
20
+ tool,
21
+ outcome,
22
+ };
23
+ ```
24
+
25
+ [[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,27 @@
1
+ # HostingV1HeadlessStoreAgentReportRequestRun
2
+
3
+ The run the report is for
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | | [default to undefined]
10
+ **kind** | **string** | | [default to undefined]
11
+ **skill** | **string** | | [optional] [default to undefined]
12
+ **follow_ups** | **Array<object>** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { HostingV1HeadlessStoreAgentReportRequestRun } from '@hostinger/sdk';
18
+
19
+ const instance: HostingV1HeadlessStoreAgentReportRequestRun = {
20
+ id,
21
+ kind,
22
+ skill,
23
+ follow_ups,
24
+ };
25
+ ```
26
+
27
+ [[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,27 @@
1
+ # HostingV1HeadlessStoreAgentReportRequestTiming
2
+
3
+ Run start and end times and per-stage timings
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **started_at** | **string** | | [default to undefined]
10
+ **ended_at** | **string** | | [default to undefined]
11
+ **minutes_total** | **number** | | [default to undefined]
12
+ **stages** | **Array<object>** | | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { HostingV1HeadlessStoreAgentReportRequestTiming } from '@hostinger/sdk';
18
+
19
+ const instance: HostingV1HeadlessStoreAgentReportRequestTiming = {
20
+ started_at,
21
+ ended_at,
22
+ minutes_total,
23
+ stages,
24
+ };
25
+ ```
26
+
27
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)