|
3 | 3 | /** |
4 | 4 | * Hostinger API |
5 | 5 | * |
6 | | - * API Version: 1.65.0 |
| 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 |
|
0 commit comments