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/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 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
|
|
@@ -7761,6 +7761,240 @@ export interface HostingV1GitWebsiteGitRepositoryWebhookResource {
|
|
|
7761
7761
|
*/
|
|
7762
7762
|
'tutorial_url': string | null;
|
|
7763
7763
|
}
|
|
7764
|
+
/**
|
|
7765
|
+
*
|
|
7766
|
+
* @export
|
|
7767
|
+
* @interface HostingV1HeadlessAgentReportResource
|
|
7768
|
+
*/
|
|
7769
|
+
export interface HostingV1HeadlessAgentReportResource {
|
|
7770
|
+
/**
|
|
7771
|
+
* Stored report ID
|
|
7772
|
+
* @type {number}
|
|
7773
|
+
* @memberof HostingV1HeadlessAgentReportResource
|
|
7774
|
+
*/
|
|
7775
|
+
'id': number;
|
|
7776
|
+
/**
|
|
7777
|
+
* ID of the run the report is for
|
|
7778
|
+
* @type {string}
|
|
7779
|
+
* @memberof HostingV1HeadlessAgentReportResource
|
|
7780
|
+
*/
|
|
7781
|
+
'run_id': string;
|
|
7782
|
+
/**
|
|
7783
|
+
* When the report was received
|
|
7784
|
+
* @type {string}
|
|
7785
|
+
* @memberof HostingV1HeadlessAgentReportResource
|
|
7786
|
+
*/
|
|
7787
|
+
'created_at': string;
|
|
7788
|
+
}
|
|
7789
|
+
/**
|
|
7790
|
+
* Headless build report (report.schema.json v1), as written by the headless skill at the end of a run. Send the report unchanged.
|
|
7791
|
+
* @export
|
|
7792
|
+
* @interface HostingV1HeadlessStoreAgentReportRequest
|
|
7793
|
+
*/
|
|
7794
|
+
export interface HostingV1HeadlessStoreAgentReportRequest {
|
|
7795
|
+
/**
|
|
7796
|
+
* Report schema version
|
|
7797
|
+
* @type {string}
|
|
7798
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7799
|
+
*/
|
|
7800
|
+
'schema_version': HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum;
|
|
7801
|
+
/**
|
|
7802
|
+
* When the report was written
|
|
7803
|
+
* @type {string}
|
|
7804
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7805
|
+
*/
|
|
7806
|
+
'generated_at': string;
|
|
7807
|
+
/**
|
|
7808
|
+
*
|
|
7809
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestConsent}
|
|
7810
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7811
|
+
*/
|
|
7812
|
+
'consent': HostingV1HeadlessStoreAgentReportRequestConsent;
|
|
7813
|
+
/**
|
|
7814
|
+
*
|
|
7815
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestRun}
|
|
7816
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7817
|
+
*/
|
|
7818
|
+
'run': HostingV1HeadlessStoreAgentReportRequestRun;
|
|
7819
|
+
/**
|
|
7820
|
+
*
|
|
7821
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestInfo}
|
|
7822
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7823
|
+
*/
|
|
7824
|
+
'info': HostingV1HeadlessStoreAgentReportRequestInfo;
|
|
7825
|
+
/**
|
|
7826
|
+
*
|
|
7827
|
+
* @type {HostingV1HeadlessStoreAgentReportRequestTiming}
|
|
7828
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7829
|
+
*/
|
|
7830
|
+
'timing': HostingV1HeadlessStoreAgentReportRequestTiming;
|
|
7831
|
+
/**
|
|
7832
|
+
* Token usage, only when the tool reports its own usage
|
|
7833
|
+
* @type {object}
|
|
7834
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7835
|
+
*/
|
|
7836
|
+
'tokens': object | null;
|
|
7837
|
+
/**
|
|
7838
|
+
* Problems hit during the run
|
|
7839
|
+
* @type {Array<object>}
|
|
7840
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7841
|
+
*/
|
|
7842
|
+
'issues': Array<object>;
|
|
7843
|
+
/**
|
|
7844
|
+
* Feedback the user gave during the run
|
|
7845
|
+
* @type {Array<object>}
|
|
7846
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7847
|
+
*/
|
|
7848
|
+
'user_feedback': Array<object>;
|
|
7849
|
+
/**
|
|
7850
|
+
* Places where the skill instructions were missing or wrong
|
|
7851
|
+
* @type {Array<object>}
|
|
7852
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7853
|
+
*/
|
|
7854
|
+
'skill_gaps': Array<object>;
|
|
7855
|
+
/**
|
|
7856
|
+
* Things that worked well during the run
|
|
7857
|
+
* @type {Array<object>}
|
|
7858
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7859
|
+
*/
|
|
7860
|
+
'what_went_well': Array<object>;
|
|
7861
|
+
/**
|
|
7862
|
+
* Where the run log is missing or unsure
|
|
7863
|
+
* @type {Array<object>}
|
|
7864
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7865
|
+
*/
|
|
7866
|
+
'logging_gaps': Array<object>;
|
|
7867
|
+
/**
|
|
7868
|
+
* Earlier runs for the same website
|
|
7869
|
+
* @type {Array<object>}
|
|
7870
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequest
|
|
7871
|
+
*/
|
|
7872
|
+
'previous_runs': Array<object>;
|
|
7873
|
+
}
|
|
7874
|
+
export declare const HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum: {
|
|
7875
|
+
readonly _1: "1";
|
|
7876
|
+
};
|
|
7877
|
+
export type HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum = typeof HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum[keyof typeof HostingV1HeadlessStoreAgentReportRequestSchemaVersionEnum];
|
|
7878
|
+
/**
|
|
7879
|
+
* Upload status of the report, as written by the headless skill
|
|
7880
|
+
* @export
|
|
7881
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestConsent
|
|
7882
|
+
*/
|
|
7883
|
+
export interface HostingV1HeadlessStoreAgentReportRequestConsent {
|
|
7884
|
+
/**
|
|
7885
|
+
*
|
|
7886
|
+
* @type {boolean}
|
|
7887
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestConsent
|
|
7888
|
+
*/
|
|
7889
|
+
'sent': boolean;
|
|
7890
|
+
/**
|
|
7891
|
+
*
|
|
7892
|
+
* @type {string}
|
|
7893
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestConsent
|
|
7894
|
+
*/
|
|
7895
|
+
'note': string;
|
|
7896
|
+
}
|
|
7897
|
+
/**
|
|
7898
|
+
* Website, tool and outcome of the run
|
|
7899
|
+
* @export
|
|
7900
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestInfo
|
|
7901
|
+
*/
|
|
7902
|
+
export interface HostingV1HeadlessStoreAgentReportRequestInfo {
|
|
7903
|
+
/**
|
|
7904
|
+
*
|
|
7905
|
+
* @type {string}
|
|
7906
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestInfo
|
|
7907
|
+
*/
|
|
7908
|
+
'domain': string;
|
|
7909
|
+
/**
|
|
7910
|
+
*
|
|
7911
|
+
* @type {string}
|
|
7912
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestInfo
|
|
7913
|
+
*/
|
|
7914
|
+
'tool': string | null;
|
|
7915
|
+
/**
|
|
7916
|
+
*
|
|
7917
|
+
* @type {string}
|
|
7918
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestInfo
|
|
7919
|
+
*/
|
|
7920
|
+
'outcome': HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum;
|
|
7921
|
+
}
|
|
7922
|
+
export declare const HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum: {
|
|
7923
|
+
readonly Live: "live";
|
|
7924
|
+
readonly Stopped: "stopped";
|
|
7925
|
+
readonly Failed: "failed";
|
|
7926
|
+
readonly Abandoned: "abandoned";
|
|
7927
|
+
};
|
|
7928
|
+
export type HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum = typeof HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum[keyof typeof HostingV1HeadlessStoreAgentReportRequestInfoOutcomeEnum];
|
|
7929
|
+
/**
|
|
7930
|
+
* The run the report is for
|
|
7931
|
+
* @export
|
|
7932
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestRun
|
|
7933
|
+
*/
|
|
7934
|
+
export interface HostingV1HeadlessStoreAgentReportRequestRun {
|
|
7935
|
+
/**
|
|
7936
|
+
*
|
|
7937
|
+
* @type {string}
|
|
7938
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
7939
|
+
*/
|
|
7940
|
+
'id': string;
|
|
7941
|
+
/**
|
|
7942
|
+
*
|
|
7943
|
+
* @type {string}
|
|
7944
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
7945
|
+
*/
|
|
7946
|
+
'kind': HostingV1HeadlessStoreAgentReportRequestRunKindEnum;
|
|
7947
|
+
/**
|
|
7948
|
+
*
|
|
7949
|
+
* @type {string}
|
|
7950
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
7951
|
+
*/
|
|
7952
|
+
'skill': string | null;
|
|
7953
|
+
/**
|
|
7954
|
+
*
|
|
7955
|
+
* @type {Array<object>}
|
|
7956
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestRun
|
|
7957
|
+
*/
|
|
7958
|
+
'follow_ups': Array<object>;
|
|
7959
|
+
}
|
|
7960
|
+
export declare const HostingV1HeadlessStoreAgentReportRequestRunKindEnum: {
|
|
7961
|
+
readonly Build: "build";
|
|
7962
|
+
readonly Resume: "resume";
|
|
7963
|
+
readonly Redesign: "redesign";
|
|
7964
|
+
readonly Iterate: "iterate";
|
|
7965
|
+
};
|
|
7966
|
+
export type HostingV1HeadlessStoreAgentReportRequestRunKindEnum = typeof HostingV1HeadlessStoreAgentReportRequestRunKindEnum[keyof typeof HostingV1HeadlessStoreAgentReportRequestRunKindEnum];
|
|
7967
|
+
/**
|
|
7968
|
+
* Run start and end times and per-stage timings
|
|
7969
|
+
* @export
|
|
7970
|
+
* @interface HostingV1HeadlessStoreAgentReportRequestTiming
|
|
7971
|
+
*/
|
|
7972
|
+
export interface HostingV1HeadlessStoreAgentReportRequestTiming {
|
|
7973
|
+
/**
|
|
7974
|
+
*
|
|
7975
|
+
* @type {string}
|
|
7976
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
7977
|
+
*/
|
|
7978
|
+
'started_at': string;
|
|
7979
|
+
/**
|
|
7980
|
+
*
|
|
7981
|
+
* @type {string}
|
|
7982
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
7983
|
+
*/
|
|
7984
|
+
'ended_at': string;
|
|
7985
|
+
/**
|
|
7986
|
+
*
|
|
7987
|
+
* @type {number}
|
|
7988
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
7989
|
+
*/
|
|
7990
|
+
'minutes_total': number | null;
|
|
7991
|
+
/**
|
|
7992
|
+
*
|
|
7993
|
+
* @type {Array<object>}
|
|
7994
|
+
* @memberof HostingV1HeadlessStoreAgentReportRequestTiming
|
|
7995
|
+
*/
|
|
7996
|
+
'stages': Array<object>;
|
|
7997
|
+
}
|
|
7764
7998
|
/**
|
|
7765
7999
|
*
|
|
7766
8000
|
* @export
|
|
@@ -24983,6 +25217,65 @@ export declare const ListGitInstallationsV1StatusEnum: {
|
|
|
24983
25217
|
readonly Suspended: "suspended";
|
|
24984
25218
|
};
|
|
24985
25219
|
export type ListGitInstallationsV1StatusEnum = typeof ListGitInstallationsV1StatusEnum[keyof typeof ListGitInstallationsV1StatusEnum];
|
|
25220
|
+
/**
|
|
25221
|
+
* HostingHeadlessApi - axios parameter creator
|
|
25222
|
+
* @export
|
|
25223
|
+
*/
|
|
25224
|
+
export declare const HostingHeadlessApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25225
|
+
/**
|
|
25226
|
+
* 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.
|
|
25227
|
+
* @summary Submit headless build report
|
|
25228
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
25229
|
+
* @param {*} [options] Override http request option.
|
|
25230
|
+
* @throws {RequiredError}
|
|
25231
|
+
*/
|
|
25232
|
+
submitHeadlessBuildReportV1: (hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25233
|
+
};
|
|
25234
|
+
/**
|
|
25235
|
+
* HostingHeadlessApi - functional programming interface
|
|
25236
|
+
* @export
|
|
25237
|
+
*/
|
|
25238
|
+
export declare const HostingHeadlessApiFp: (configuration?: Configuration) => {
|
|
25239
|
+
/**
|
|
25240
|
+
* 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.
|
|
25241
|
+
* @summary Submit headless build report
|
|
25242
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
25243
|
+
* @param {*} [options] Override http request option.
|
|
25244
|
+
* @throws {RequiredError}
|
|
25245
|
+
*/
|
|
25246
|
+
submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1HeadlessAgentReportResource>>;
|
|
25247
|
+
};
|
|
25248
|
+
/**
|
|
25249
|
+
* HostingHeadlessApi - factory interface
|
|
25250
|
+
* @export
|
|
25251
|
+
*/
|
|
25252
|
+
export declare const HostingHeadlessApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
25253
|
+
/**
|
|
25254
|
+
* 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.
|
|
25255
|
+
* @summary Submit headless build report
|
|
25256
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
25257
|
+
* @param {*} [options] Override http request option.
|
|
25258
|
+
* @throws {RequiredError}
|
|
25259
|
+
*/
|
|
25260
|
+
submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1HeadlessAgentReportResource>;
|
|
25261
|
+
};
|
|
25262
|
+
/**
|
|
25263
|
+
* HostingHeadlessApi - object-oriented interface
|
|
25264
|
+
* @export
|
|
25265
|
+
* @class HostingHeadlessApi
|
|
25266
|
+
* @extends {BaseAPI}
|
|
25267
|
+
*/
|
|
25268
|
+
export declare class HostingHeadlessApi extends BaseAPI {
|
|
25269
|
+
/**
|
|
25270
|
+
* 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.
|
|
25271
|
+
* @summary Submit headless build report
|
|
25272
|
+
* @param {HostingV1HeadlessStoreAgentReportRequest} hostingV1HeadlessStoreAgentReportRequest
|
|
25273
|
+
* @param {*} [options] Override http request option.
|
|
25274
|
+
* @throws {RequiredError}
|
|
25275
|
+
* @memberof HostingHeadlessApi
|
|
25276
|
+
*/
|
|
25277
|
+
submitHeadlessBuildReportV1(hostingV1HeadlessStoreAgentReportRequest: HostingV1HeadlessStoreAgentReportRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1HeadlessAgentReportResource, any, {}, any>>;
|
|
25278
|
+
}
|
|
24986
25279
|
/**
|
|
24987
25280
|
* HostingNodeJSApi - axios parameter creator
|
|
24988
25281
|
* @export
|
package/dist/esm/api.js
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
|
|
@@ -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',
|
|
@@ -15558,6 +15573,109 @@ export const ListGitInstallationsV1StatusEnum = {
|
|
|
15558
15573
|
Active: 'active',
|
|
15559
15574
|
Suspended: 'suspended'
|
|
15560
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
|
+
}
|
|
15561
15679
|
/**
|
|
15562
15680
|
* HostingNodeJSApi - axios parameter creator
|
|
15563
15681
|
* @export
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 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.
|
|
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/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 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/common.js
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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 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.
|
|
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.
|
|
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
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 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.
|
|
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.
|
|
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.
|
|
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)
|