hostinger-api-sdk 1.65.0 → 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/README.md +2 -2
- package/api.ts +357 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +294 -1
- package/dist/api.js +134 -12
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +294 -1
- package/dist/esm/api.js +119 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/HostingHeadlessApi.md +63 -0
- package/docs/HostingV1HeadlessAgentReportResource.md +24 -0
- package/docs/HostingV1HeadlessStoreAgentReportRequest.md +45 -0
- package/docs/HostingV1HeadlessStoreAgentReportRequestConsent.md +23 -0
- package/docs/HostingV1HeadlessStoreAgentReportRequestInfo.md +25 -0
- package/docs/HostingV1HeadlessStoreAgentReportRequestRun.md +27 -0
- package/docs/HostingV1HeadlessStoreAgentReportRequestTiming.md +27 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@1.
|
|
1
|
+
## @hostinger/sdk@1.66.0
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install @hostinger/sdk@1.
|
|
8
|
+
npm install @hostinger/sdk@1.66.0 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.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
|
|
@@ -7918,6 +7918,249 @@ export interface HostingV1GitWebsiteGitRepositoryWebhookResource {
|
|
|
7918
7918
|
*/
|
|
7919
7919
|
'tutorial_url': string | null;
|
|
7920
7920
|
}
|
|
7921
|
+
/**
|
|
7922
|
+
*
|
|
7923
|
+
* @export
|
|
7924
|
+
* @interface HostingV1HeadlessAgentReportResource
|
|
7925
|
+
*/
|
|
7926
|
+
export interface HostingV1HeadlessAgentReportResource {
|
|
7927
|
+
/**
|
|
7928
|
+
* Stored report ID
|
|
7929
|
+
* @type {number}
|
|
7930
|
+
* @memberof HostingV1HeadlessAgentReportResource
|
|
7931
|
+
*/
|
|
7932
|
+
'id': number;
|
|
7933
|
+
/**
|
|
7934
|
+
* ID of the run the report is for
|
|
7935
|
+
* @type {string}
|
|
7936
|
+
* @memberof HostingV1HeadlessAgentReportResource
|
|
7937
|
+
*/
|
|
7938
|
+
'run_id': string;
|
|
7939
|
+
/**
|
|
7940
|
+
* When the report was received
|
|
7941
|
+
* @type {string}
|
|
7942
|
+
* @memberof HostingV1HeadlessAgentReportResource
|
|
7943
|
+
*/
|
|
7944
|
+
'created_at': string;
|
|
7945
|
+
}
|
|
7946
|
+
/**
|
|
7947
|
+
* Headless build report (report.schema.json v1), as written by the headless skill at the end of a run. Send the report unchanged.
|
|
7948
|
+
* @export
|
|
7949
|
+
* @interface HostingV1HeadlessStoreAgentReportRequest
|
|
7950
|
+
*/
|
|
7951
|
+
export interface HostingV1HeadlessStoreAgentReportRequest {
|
|
7952
|
+
/**
|
|
7953
|
+
* Report schema version
|
|
7954
|
+
* @type {string}
|
|
7955
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7956
|
+
*/
|
|
7957
|
+
'schema_version': HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum;
|
|
7958
|
+
/**
|
|
7959
|
+
* When the report was written
|
|
7960
|
+
* @type {string}
|
|
7961
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7962
|
+
*/
|
|
7963
|
+
'generated_at': string;
|
|
7964
|
+
/**
|
|
7965
|
+
*
|
|
7966
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestConsent}
|
|
7967
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7968
|
+
*/
|
|
7969
|
+
'consent': HostingV1HeadlessStoreAgentReportRequestConsent;
|
|
7970
|
+
/**
|
|
7971
|
+
*
|
|
7972
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestRun}
|
|
7973
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7974
|
+
*/
|
|
7975
|
+
'run': HostingV1HeadlessStoreAgentReportRequestRun;
|
|
7976
|
+
/**
|
|
7977
|
+
*
|
|
7978
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestInfo}
|
|
7979
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7980
|
+
*/
|
|
7981
|
+
'info': HostingV1HeadlessStoreAgentReportRequestInfo;
|
|
7982
|
+
/**
|
|
7983
|
+
*
|
|
7984
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestTiming}
|
|
7985
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7986
|
+
*/
|
|
7987
|
+
'timing': HostingV1HeadlessStoreAgentReportRequestTiming;
|
|
7988
|
+
/**
|
|
7989
|
+
* Token usage, only when the tool reports its own usage
|
|
7990
|
+
* @type {object}
|
|
7991
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7992
|
+
*/
|
|
7993
|
+
'tokens': object | null;
|
|
7994
|
+
/**
|
|
7995
|
+
* Problems hit during the run
|
|
7996
|
+
* @type {Array<object>}
|
|
7997
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7998
|
+
*/
|
|
7999
|
+
'issues': Array<object>;
|
|
8000
|
+
/**
|
|
8001
|
+
* Feedback the user gave during the run
|
|
8002
|
+
* @type {Array<object>}
|
|
8003
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
8004
|
+
*/
|
|
8005
|
+
'user_feedback': Array<object>;
|
|
8006
|
+
/**
|
|
8007
|
+
* Places where the skill instructions were missing or wrong
|
|
8008
|
+
* @type {Array<object>}
|
|
8009
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
8010
|
+
*/
|
|
8011
|
+
'skill_gaps': Array<object>;
|
|
8012
|
+
/**
|
|
8013
|
+
* Things that worked well during the run
|
|
8014
|
+
* @type {Array<object>}
|
|
8015
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
8016
|
+
*/
|
|
8017
|
+
'what_went_well': Array<object>;
|
|
8018
|
+
/**
|
|
8019
|
+
* Where the run log is missing or unsure
|
|
8020
|
+
* @type {Array<object>}
|
|
8021
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
8022
|
+
*/
|
|
8023
|
+
'logging_gaps': Array<object>;
|
|
8024
|
+
/**
|
|
8025
|
+
* Earlier runs for the same website
|
|
8026
|
+
* @type {Array<object>}
|
|
8027
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
8028
|
+
*/
|
|
8029
|
+
'previous_runs': Array<object>;
|
|
8030
|
+
}
|
|
8031
|
+
|
|
8032
|
+
export const HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum = {
|
|
8033
|
+
_1: '1'
|
|
8034
|
+
} as const;
|
|
8035
|
+
|
|
8036
|
+
export type HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum = typeof HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum[keyof typeof HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum];
|
|
8037
|
+
|
|
8038
|
+
/**
|
|
8039
|
+
* Upload status of the report, as written by the headless skill
|
|
8040
|
+
* @export
|
|
8041
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestConsent
|
|
8042
|
+
*/
|
|
8043
|
+
export interface HostingV1HeadlessStoreAgentReportRequestConsent {
|
|
8044
|
+
/**
|
|
8045
|
+
*
|
|
8046
|
+
* @type {boolean}
|
|
8047
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestConsent
|
|
8048
|
+
*/
|
|
8049
|
+
'sent': boolean;
|
|
8050
|
+
/**
|
|
8051
|
+
*
|
|
8052
|
+
* @type {string}
|
|
8053
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestConsent
|
|
8054
|
+
*/
|
|
8055
|
+
'note': string;
|
|
8056
|
+
}
|
|
8057
|
+
/**
|
|
8058
|
+
* Website, tool and outcome of the run
|
|
8059
|
+
* @export
|
|
8060
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestInfo
|
|
8061
|
+
*/
|
|
8062
|
+
export interface HostingV1HeadlessStoreAgentReportRequestInfo {
|
|
8063
|
+
/**
|
|
8064
|
+
*
|
|
8065
|
+
* @type {string}
|
|
8066
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestInfo
|
|
8067
|
+
*/
|
|
8068
|
+
'domain': string;
|
|
8069
|
+
/**
|
|
8070
|
+
*
|
|
8071
|
+
* @type {string}
|
|
8072
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestInfo
|
|
8073
|
+
*/
|
|
8074
|
+
'tool': string | null;
|
|
8075
|
+
/**
|
|
8076
|
+
*
|
|
8077
|
+
* @type {string}
|
|
8078
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestInfo
|
|
8079
|
+
*/
|
|
8080
|
+
'outcome': HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum;
|
|
8081
|
+
}
|
|
8082
|
+
|
|
8083
|
+
export const HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum = {
|
|
8084
|
+
Live: 'live',
|
|
8085
|
+
Stopped: 'stopped',
|
|
8086
|
+
Failed: 'failed',
|
|
8087
|
+
Abandoned: 'abandoned'
|
|
8088
|
+
} as const;
|
|
8089
|
+
|
|
8090
|
+
export type HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum = typeof HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum[keyof typeof HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum];
|
|
8091
|
+
|
|
8092
|
+
/**
|
|
8093
|
+
* The run the report is for
|
|
8094
|
+
* @export
|
|
8095
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestRun
|
|
8096
|
+
*/
|
|
8097
|
+
export interface HostingV1HeadlessStoreAgentReportRequestRun {
|
|
8098
|
+
/**
|
|
8099
|
+
*
|
|
8100
|
+
* @type {string}
|
|
8101
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
8102
|
+
*/
|
|
8103
|
+
'id': string;
|
|
8104
|
+
/**
|
|
8105
|
+
*
|
|
8106
|
+
* @type {string}
|
|
8107
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
8108
|
+
*/
|
|
8109
|
+
'kind': HostingV1HeadlessStoreAgentReportRequestRunKindEnum;
|
|
8110
|
+
/**
|
|
8111
|
+
*
|
|
8112
|
+
* @type {string}
|
|
8113
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
8114
|
+
*/
|
|
8115
|
+
'skill': string | null;
|
|
8116
|
+
/**
|
|
8117
|
+
*
|
|
8118
|
+
* @type {Array<object>}
|
|
8119
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
8120
|
+
*/
|
|
8121
|
+
'follow_ups': Array<object>;
|
|
8122
|
+
}
|
|
8123
|
+
|
|
8124
|
+
export const HostingV1HeadlessStoreAgentReportRequestRunKindEnum = {
|
|
8125
|
+
Build: 'build',
|
|
8126
|
+
Resume: 'resume',
|
|
8127
|
+
Redesign: 'redesign',
|
|
8128
|
+
Iterate: 'iterate'
|
|
8129
|
+
} as const;
|
|
8130
|
+
|
|
8131
|
+
export type HostingV1HeadlessStoreAgentReportRequestRunKindEnum = typeof HostingV1HeadlessStoreAgentReportRequestRunKindEnum[keyof typeof HostingV1HeadlessStoreAgentReportRequestRunKindEnum];
|
|
8132
|
+
|
|
8133
|
+
/**
|
|
8134
|
+
* Run start and end times and per-stage timings
|
|
8135
|
+
* @export
|
|
8136
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestTiming
|
|
8137
|
+
*/
|
|
8138
|
+
export interface HostingV1HeadlessStoreAgentReportRequestTiming {
|
|
8139
|
+
/**
|
|
8140
|
+
*
|
|
8141
|
+
* @type {string}
|
|
8142
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
8143
|
+
*/
|
|
8144
|
+
'started_at': string;
|
|
8145
|
+
/**
|
|
8146
|
+
*
|
|
8147
|
+
* @type {string}
|
|
8148
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
8149
|
+
*/
|
|
8150
|
+
'ended_at': string;
|
|
8151
|
+
/**
|
|
8152
|
+
*
|
|
8153
|
+
* @type {number}
|
|
8154
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
8155
|
+
*/
|
|
8156
|
+
'minutes_total': number | null;
|
|
8157
|
+
/**
|
|
8158
|
+
*
|
|
8159
|
+
* @type {Array<object>}
|
|
8160
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
8161
|
+
*/
|
|
8162
|
+
'stages': Array<object>;
|
|
8163
|
+
}
|
|
7921
8164
|
/**
|
|
7922
8165
|
*
|
|
7923
8166
|
* @export
|
|
@@ -33267,6 +33510,119 @@ export const ListGitInstallationsV1StatusEnum = {
|
|
|
33267
33510
|
export type ListGitInstallationsV1StatusEnum = typeof ListGitInstallationsV1StatusEnum[keyof typeof ListGitInstallationsV1StatusEnum];
|
|
33268
33511
|
|
|
33269
33512
|
|
|
33513
|
+
/**
|
|
33514
|
+
* HostingHeadlessApi - axios parameter creator
|
|
33515
|
+
* @export
|
|
33516
|
+
*/
|
|
33517
|
+
export const HostingHeadlessApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33518
|
+
return {
|
|
33519
|
+
/**
|
|
33520
|
+
* 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.
|
|
33521
|
+
* @summary Submit headless build report
|
|
33522
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
33523
|
+
* @param {*} [options] Override http request option.
|
|
33524
|
+
* @throws {RequiredError}
|
|
33525
|
+
*/
|
|
33526
|
+
submitHeadlessBuildReportV1: async (hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33527
|
+
// verify required parameter 'hostingV1HeadlessStoreAgentReportRequest' is not null or undefined
|
|
33528
|
+
assertParamExists('submitHeadlessBuildReportV1', 'hostingV1HeadlessStoreAgentReportRequest', hostingV1HeadlessStoreAgentReportRequest)
|
|
33529
|
+
const localVarPath = `/api/hosting/v1/headless/agent-reports`;
|
|
33530
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33531
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33532
|
+
let baseOptions;
|
|
33533
|
+
if (configuration) {
|
|
33534
|
+
baseOptions = configuration.baseOptions;
|
|
33535
|
+
}
|
|
33536
|
+
|
|
33537
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
33538
|
+
const localVarHeaderParameter = {} as any;
|
|
33539
|
+
const localVarQueryParameter = {} as any;
|
|
33540
|
+
|
|
33541
|
+
// authentication apiToken required
|
|
33542
|
+
// http bearer authentication required
|
|
33543
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33544
|
+
|
|
33545
|
+
|
|
33546
|
+
|
|
33547
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
33548
|
+
|
|
33549
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33550
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33551
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33552
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1HeadlessStoreAgentReportRequest, localVarRequestOptions, configuration)
|
|
33553
|
+
|
|
33554
|
+
return {
|
|
33555
|
+
url: toPathString(localVarUrlObj),
|
|
33556
|
+
options: localVarRequestOptions,
|
|
33557
|
+
};
|
|
33558
|
+
},
|
|
33559
|
+
}
|
|
33560
|
+
};
|
|
33561
|
+
|
|
33562
|
+
/**
|
|
33563
|
+
* HostingHeadlessApi - functional programming interface
|
|
33564
|
+
* @export
|
|
33565
|
+
*/
|
|
33566
|
+
export const HostingHeadlessApiFp = function(configuration?: Configuration) {
|
|
33567
|
+
const localVarAxiosParamCreator = HostingHeadlessApiAxiosParamCreator(configuration)
|
|
33568
|
+
return {
|
|
33569
|
+
/**
|
|
33570
|
+
* 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.
|
|
33571
|
+
* @summary Submit headless build report
|
|
33572
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
33573
|
+
* @param {*} [options] Override http request option.
|
|
33574
|
+
* @throws {RequiredError}
|
|
33575
|
+
*/
|
|
33576
|
+
async submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1HeadlessAgentReportResource>> {
|
|
33577
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options);
|
|
33578
|
+
const localVarOperationServerBasePath = operationServerMap['HostingHeadlessApi.submitHeadlessBuildReportV1']?.[0]?.url;
|
|
33579
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33580
|
+
},
|
|
33581
|
+
}
|
|
33582
|
+
};
|
|
33583
|
+
|
|
33584
|
+
/**
|
|
33585
|
+
* HostingHeadlessApi - factory interface
|
|
33586
|
+
* @export
|
|
33587
|
+
*/
|
|
33588
|
+
export const HostingHeadlessApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
33589
|
+
const localVarFp = HostingHeadlessApiFp(configuration)
|
|
33590
|
+
return {
|
|
33591
|
+
/**
|
|
33592
|
+
* 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.
|
|
33593
|
+
* @summary Submit headless build report
|
|
33594
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
33595
|
+
* @param {*} [options] Override http request option.
|
|
33596
|
+
* @throws {RequiredError}
|
|
33597
|
+
*/
|
|
33598
|
+
submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1HeadlessAgentReportResource> {
|
|
33599
|
+
return localVarFp.submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options).then((request) => request(axios, basePath));
|
|
33600
|
+
},
|
|
33601
|
+
};
|
|
33602
|
+
};
|
|
33603
|
+
|
|
33604
|
+
/**
|
|
33605
|
+
* HostingHeadlessApi - object-oriented interface
|
|
33606
|
+
* @export
|
|
33607
|
+
* @class HostingHeadlessApi
|
|
33608
|
+
* @extends {BaseAPI}
|
|
33609
|
+
*/
|
|
33610
|
+
export class HostingHeadlessApi extends BaseAPI {
|
|
33611
|
+
/**
|
|
33612
|
+
* 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.
|
|
33613
|
+
* @summary Submit headless build report
|
|
33614
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
33615
|
+
* @param {*} [options] Override http request option.
|
|
33616
|
+
* @throws {RequiredError}
|
|
33617
|
+
* @memberof HostingHeadlessApi
|
|
33618
|
+
*/
|
|
33619
|
+
public submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options?: RawAxiosRequestConfig) {
|
|
33620
|
+
return HostingHeadlessApiFp(this.configuration).submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
33621
|
+
}
|
|
33622
|
+
}
|
|
33623
|
+
|
|
33624
|
+
|
|
33625
|
+
|
|
33270
33626
|
/**
|
|
33271
33627
|
* HostingNodeJSApi - axios parameter creator
|
|
33272
33628
|
* @export
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.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/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 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/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 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
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/1.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.66.0",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|