@xemahq/workload-runtime-api-client 0.1.1 → 0.3.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/LICENSE +175 -1
- package/README.md +62 -0
- package/dist/custom-fetch.d.ts +23 -28
- package/dist/custom-fetch.js +20 -46
- package/dist/endpoints/runner-operations/runner-operations.d.ts +14 -0
- package/dist/endpoints/runner-operations/runner-operations.js +75 -0
- package/dist/index.d.ts +1 -5
- package/dist/index.js +2 -6
- package/dist/models/index.d.ts +11 -34
- package/dist/models/index.js +11 -34
- package/dist/models/paginationMeta.d.ts +2 -2
- package/dist/models/paginationMeta.js +2 -2
- package/dist/models/runnerJobDeliveryState.d.ts +17 -0
- package/dist/models/runnerJobDeliveryState.js +19 -0
- package/dist/models/runnerJobManagementControllerListParams.d.ts +14 -0
- package/dist/models/{runnerJobsControllerListState.d.ts → runnerJobManagementControllerListState.d.ts} +4 -4
- package/dist/models/{runnerJobsControllerListState.js → runnerJobManagementControllerListState.js} +4 -4
- package/dist/models/runnerJobState.d.ts +2 -2
- package/dist/models/runnerJobState.js +2 -2
- package/dist/models/runnerJobSummaryDto.d.ts +27 -0
- package/dist/models/runnerJobSummaryDtoPaginatedEnvelope.d.ts +13 -0
- package/dist/models/{workloadsControllerListKind.d.ts → runnerWorkloadManagementControllerListKind.d.ts} +6 -4
- package/dist/models/{workloadsControllerListKind.js → runnerWorkloadManagementControllerListKind.js} +6 -4
- package/dist/models/runnerWorkloadManagementControllerListParams.d.ts +17 -0
- package/dist/models/{workloadsControllerListState.d.ts → runnerWorkloadManagementControllerListState.d.ts} +4 -4
- package/dist/models/{workloadsControllerListState.js → runnerWorkloadManagementControllerListState.js} +4 -4
- package/dist/models/runnerWorkloadSummaryDto.d.ts +22 -0
- package/dist/models/runnerWorkloadSummaryDtoDataEnvelope.d.ts +11 -0
- package/dist/models/runnerWorkloadSummaryDtoPaginatedEnvelope.d.ts +13 -0
- package/dist/models/workloadHealthConditionDto.d.ts +3 -3
- package/dist/models/workloadHealthConditionDtoStatus.d.ts +2 -2
- package/dist/models/workloadHealthConditionDtoStatus.js +2 -2
- package/dist/models/workloadHealthSnapshotDto.d.ts +3 -3
- package/dist/models/workloadKind.d.ts +4 -2
- package/dist/models/workloadKind.js +4 -2
- package/dist/models/workloadState.d.ts +2 -2
- package/dist/models/workloadState.js +2 -2
- package/package.json +18 -2
- package/dist/endpoints/health/health.d.ts +0 -15
- package/dist/endpoints/health/health.js +0 -53
- package/dist/endpoints/internal/internal.d.ts +0 -6
- package/dist/endpoints/internal/internal.js +0 -26
- package/dist/endpoints/internal-/342/200/224-build-container-image/internal-/342/200/224-build-container-image.d.ts +0 -14
- package/dist/endpoints/internal-/342/200/224-build-container-image/internal-/342/200/224-build-container-image.js +0 -21
- package/dist/endpoints/runner-jobs/runner-jobs.d.ts +0 -37
- package/dist/endpoints/runner-jobs/runner-jobs.js +0 -101
- package/dist/endpoints/workloads/workloads.d.ts +0 -45
- package/dist/endpoints/workloads/workloads.js +0 -125
- package/dist/models/createRunnerJobDto.d.ts +0 -27
- package/dist/models/createRunnerJobDto.js +0 -9
- package/dist/models/runKanikoRequestDto.d.ts +0 -30
- package/dist/models/runKanikoRequestDtoBuildArgs.d.ts +0 -10
- package/dist/models/runKanikoRequestDtoBuildArgs.js +0 -9
- package/dist/models/runKanikoResponseDto.d.ts +0 -13
- package/dist/models/runKanikoResponseDto.js +0 -9
- package/dist/models/runnerJobDto.d.ts +0 -30
- package/dist/models/runnerJobDtoOutput.d.ts +0 -14
- package/dist/models/runnerJobDtoOutput.js +0 -9
- package/dist/models/runnerJobDtoPaginatedEnvelope.d.ts +0 -13
- package/dist/models/runnerJobReportDto.d.ts +0 -23
- package/dist/models/runnerJobReportDtoOutput.d.ts +0 -13
- package/dist/models/runnerJobReportDtoOutput.js +0 -9
- package/dist/models/runnerJobsControllerListParams.d.ts +0 -14
- package/dist/models/workloadConnectionInfoDto.d.ts +0 -12
- package/dist/models/workloadConnectionInfoDto.js +0 -9
- package/dist/models/workloadDescriptorDto.d.ts +0 -33
- package/dist/models/workloadDescriptorDtoCapabilitiesItem.d.ts +0 -12
- package/dist/models/workloadDescriptorDtoCapabilitiesItemKind.d.ts +0 -14
- package/dist/models/workloadDescriptorDtoCapabilitiesItemKind.js +0 -16
- package/dist/models/workloadDescriptorDtoSpec.d.ts +0 -13
- package/dist/models/workloadDescriptorDtoSpec.js +0 -9
- package/dist/models/workloadEndpointDto.d.ts +0 -11
- package/dist/models/workloadEndpointDto.js +0 -9
- package/dist/models/workloadGatewayRouteDto.d.ts +0 -22
- package/dist/models/workloadGatewayRouteDto.js +0 -2
- package/dist/models/workloadGatewayRouteDtoAuthParams.d.ts +0 -13
- package/dist/models/workloadGatewayRouteDtoAuthParams.js +0 -9
- package/dist/models/workloadGatewayRouteDtoAuthScheme.d.ts +0 -14
- package/dist/models/workloadGatewayRouteDtoAuthScheme.js +0 -13
- package/dist/models/workloadIngressSourceDto.d.ts +0 -11
- package/dist/models/workloadIngressSourceDto.js +0 -9
- package/dist/models/workloadInstanceDto.d.ts +0 -36
- package/dist/models/workloadInstanceDto.js +0 -2
- package/dist/models/workloadInstanceDtoPaginatedEnvelope.d.ts +0 -13
- package/dist/models/workloadInstanceDtoPaginatedEnvelope.js +0 -2
- package/dist/models/workloadInstanceDtoSubjectLabels.d.ts +0 -10
- package/dist/models/workloadInstanceDtoSubjectLabels.js +0 -9
- package/dist/models/workloadLifecycleDto.d.ts +0 -12
- package/dist/models/workloadLifecycleDto.js +0 -9
- package/dist/models/workloadNetworkDto.d.ts +0 -12
- package/dist/models/workloadNetworkDto.js +0 -2
- package/dist/models/workloadNodeAffinityDto.d.ts +0 -10
- package/dist/models/workloadNodeAffinityDto.js +0 -9
- package/dist/models/workloadTarget.d.ts +0 -11
- package/dist/models/workloadTarget.js +0 -13
- package/dist/models/workloadTenancyDto.d.ts +0 -15
- package/dist/models/workloadTenancyDto.js +0 -2
- package/dist/models/workloadTenancyDtoSubjectLabels.d.ts +0 -10
- package/dist/models/workloadTenancyDtoSubjectLabels.js +0 -9
- package/dist/models/workloadVolumeMountDto.d.ts +0 -16
- package/dist/models/workloadVolumeMountDto.js +0 -9
- package/dist/models/workloadsControllerListParams.d.ts +0 -18
- package/dist/models/workloadsControllerListParams.js +0 -2
- /package/dist/models/{runKanikoRequestDto.js → runnerJobManagementControllerListParams.js} +0 -0
- /package/dist/models/{runnerJobDto.js → runnerJobSummaryDto.js} +0 -0
- /package/dist/models/{runnerJobDtoPaginatedEnvelope.js → runnerJobSummaryDtoPaginatedEnvelope.js} +0 -0
- /package/dist/models/{runnerJobReportDto.js → runnerWorkloadManagementControllerListParams.js} +0 -0
- /package/dist/models/{runnerJobsControllerListParams.js → runnerWorkloadSummaryDto.js} +0 -0
- /package/dist/models/{workloadDescriptorDto.js → runnerWorkloadSummaryDtoDataEnvelope.js} +0 -0
- /package/dist/models/{workloadDescriptorDtoCapabilitiesItem.js → runnerWorkloadSummaryDtoPaginatedEnvelope.js} +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.internalReconcileControllerTick = exports.getInternalReconcileControllerTickUrl = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Generated by orval v8.6.2 🍺
|
|
6
|
-
* Do not edit manually.
|
|
7
|
-
* Workload Runtime API
|
|
8
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
9
|
-
* OpenAPI spec version: 0.1.0
|
|
10
|
-
*/
|
|
11
|
-
const custom_fetch_1 = require("../../custom-fetch");
|
|
12
|
-
/**
|
|
13
|
-
* Service-to-service endpoint fired by the workload-reconcile Temporal Schedule. Runs a full reconcile sweep and returns the per-category counts.
|
|
14
|
-
* @summary Run one workload reconcile sweep
|
|
15
|
-
*/
|
|
16
|
-
const getInternalReconcileControllerTickUrl = () => {
|
|
17
|
-
return `/internal/reconcile/tick`;
|
|
18
|
-
};
|
|
19
|
-
exports.getInternalReconcileControllerTickUrl = getInternalReconcileControllerTickUrl;
|
|
20
|
-
const internalReconcileControllerTick = async (options) => {
|
|
21
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getInternalReconcileControllerTickUrl)(), {
|
|
22
|
-
...options,
|
|
23
|
-
method: 'POST'
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
exports.internalReconcileControllerTick = internalReconcileControllerTick;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.6.2 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
6
|
-
* OpenAPI spec version: 0.1.0
|
|
7
|
-
*/
|
|
8
|
-
import type { RunKanikoRequestDto, RunKanikoResponseDto } from '../../models';
|
|
9
|
-
/**
|
|
10
|
-
* Synchronous endpoint — blocks until Kaniko completes, fails, or the 25-minute outer timeout fires. Returns the pushed image digest + end-to-end duration. The owning Temporal workflow handles retries.
|
|
11
|
-
* @summary Run a Kaniko build via the workload runtime
|
|
12
|
-
*/
|
|
13
|
-
export declare const getBuildContainerImageControllerRunKanikoUrl: () => string;
|
|
14
|
-
export declare const buildContainerImageControllerRunKaniko: (runKanikoRequestDto: RunKanikoRequestDto, options?: RequestInit) => Promise<RunKanikoResponseDto>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildContainerImageControllerRunKaniko = exports.getBuildContainerImageControllerRunKanikoUrl = void 0;
|
|
4
|
-
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* Synchronous endpoint — blocks until Kaniko completes, fails, or the 25-minute outer timeout fires. Returns the pushed image digest + end-to-end duration. The owning Temporal workflow handles retries.
|
|
7
|
-
* @summary Run a Kaniko build via the workload runtime
|
|
8
|
-
*/
|
|
9
|
-
const getBuildContainerImageControllerRunKanikoUrl = () => {
|
|
10
|
-
return `/internal/build-container-image/run-kaniko`;
|
|
11
|
-
};
|
|
12
|
-
exports.getBuildContainerImageControllerRunKanikoUrl = getBuildContainerImageControllerRunKanikoUrl;
|
|
13
|
-
const buildContainerImageControllerRunKaniko = async (runKanikoRequestDto, options) => {
|
|
14
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getBuildContainerImageControllerRunKanikoUrl)(), {
|
|
15
|
-
...options,
|
|
16
|
-
method: 'POST',
|
|
17
|
-
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
18
|
-
body: JSON.stringify(runKanikoRequestDto)
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
exports.buildContainerImageControllerRunKaniko = buildContainerImageControllerRunKaniko;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.6.2 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
6
|
-
* OpenAPI spec version: 0.1.0
|
|
7
|
-
*/
|
|
8
|
-
import type { CreateRunnerJobDto, RunnerJobDto, RunnerJobDtoPaginatedEnvelope, RunnerJobReportDto, RunnerJobsControllerListParams } from '../../models';
|
|
9
|
-
/**
|
|
10
|
-
* Called by the capability router after it decides to dispatch a capability to a runner and the kernel-server has minted the job token. Re-POSTing the same `jobId` returns the existing row (HTTP 200) without creating a duplicate; first creation returns HTTP 201. A `jti` already bound to a different job is rejected (409) — replay guard.
|
|
11
|
-
* @summary Create a RunnerJob in `pending` (idempotent by jobId)
|
|
12
|
-
*/
|
|
13
|
-
export declare const getRunnerJobsControllerCreateUrl: () => string;
|
|
14
|
-
export declare const runnerJobsControllerCreate: (createRunnerJobDto: CreateRunnerJobDto, options?: RequestInit) => Promise<RunnerJobDto>;
|
|
15
|
-
/**
|
|
16
|
-
* Powers the operator RunnerJob inspector (runners-web). Filter by `state` and/or `runnerInstanceId`. `cursor` + `limit` page through results in `updatedAt desc` order (newest-touched first, `jobId` as a stable tiebreaker). Callers that walk every job MUST follow `nextCursor` until null. Default limit 200, max 1000. These are service-to-service routes (ServiceTokenGuard); a RunnerJob carries no org column, so there is no org filter — same scoping as `GET /:jobId`.
|
|
17
|
-
* @summary List RunnerJobs with filters and cursor pagination
|
|
18
|
-
*/
|
|
19
|
-
export declare const getRunnerJobsControllerListUrl: (params?: RunnerJobsControllerListParams) => string;
|
|
20
|
-
export declare const runnerJobsControllerList: (params?: RunnerJobsControllerListParams, options?: RequestInit) => Promise<RunnerJobDtoPaginatedEnvelope>;
|
|
21
|
-
/**
|
|
22
|
-
* @summary Fetch a RunnerJob by jobId
|
|
23
|
-
*/
|
|
24
|
-
export declare const getRunnerJobsControllerGetUrl: (jobId: string) => string;
|
|
25
|
-
export declare const runnerJobsControllerGet: (jobId: string, options?: RequestInit) => Promise<RunnerJobDto>;
|
|
26
|
-
/**
|
|
27
|
-
* Called by the capability router AFTER it hands the dispatch envelope to the runner (push CloudEvent or pull-queue enqueue). Records the `pending → dispatched` transition. Idempotent — a re-mark or a job already past dispatched is a no-op; a terminal row is rejected (409).
|
|
28
|
-
* @summary Mark a RunnerJob dispatched (router-owned; idempotent)
|
|
29
|
-
*/
|
|
30
|
-
export declare const getRunnerJobsControllerMarkDispatchedUrl: (jobId: string) => string;
|
|
31
|
-
export declare const runnerJobsControllerMarkDispatched: (jobId: string, options?: RequestInit) => Promise<RunnerJobDto>;
|
|
32
|
-
/**
|
|
33
|
-
* Advances the RunnerJob state machine from a `RunnerJobReport`. Mirror of the `xema.runner.job.*` CloudEvent consumers for runners on the pull/HTTP transport. A duplicate report (same state) is a no-op; a report against a terminal row or an illegal transition is rejected (409).
|
|
34
|
-
* @summary Apply a runner job report (direct report path; idempotent)
|
|
35
|
-
*/
|
|
36
|
-
export declare const getRunnerJobsControllerReportUrl: (jobId: string) => string;
|
|
37
|
-
export declare const runnerJobsControllerReport: (jobId: string, runnerJobReportDto: RunnerJobReportDto, options?: RequestInit) => Promise<RunnerJobDto>;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.runnerJobsControllerReport = exports.getRunnerJobsControllerReportUrl = exports.runnerJobsControllerMarkDispatched = exports.getRunnerJobsControllerMarkDispatchedUrl = exports.runnerJobsControllerGet = exports.getRunnerJobsControllerGetUrl = exports.runnerJobsControllerList = exports.getRunnerJobsControllerListUrl = exports.runnerJobsControllerCreate = exports.getRunnerJobsControllerCreateUrl = void 0;
|
|
4
|
-
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* Called by the capability router after it decides to dispatch a capability to a runner and the kernel-server has minted the job token. Re-POSTing the same `jobId` returns the existing row (HTTP 200) without creating a duplicate; first creation returns HTTP 201. A `jti` already bound to a different job is rejected (409) — replay guard.
|
|
7
|
-
* @summary Create a RunnerJob in `pending` (idempotent by jobId)
|
|
8
|
-
*/
|
|
9
|
-
const getRunnerJobsControllerCreateUrl = () => {
|
|
10
|
-
return `/runner-jobs`;
|
|
11
|
-
};
|
|
12
|
-
exports.getRunnerJobsControllerCreateUrl = getRunnerJobsControllerCreateUrl;
|
|
13
|
-
const runnerJobsControllerCreate = async (createRunnerJobDto, options) => {
|
|
14
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getRunnerJobsControllerCreateUrl)(), {
|
|
15
|
-
...options,
|
|
16
|
-
method: 'POST',
|
|
17
|
-
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
18
|
-
body: JSON.stringify(createRunnerJobDto)
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
exports.runnerJobsControllerCreate = runnerJobsControllerCreate;
|
|
22
|
-
/**
|
|
23
|
-
* Powers the operator RunnerJob inspector (runners-web). Filter by `state` and/or `runnerInstanceId`. `cursor` + `limit` page through results in `updatedAt desc` order (newest-touched first, `jobId` as a stable tiebreaker). Callers that walk every job MUST follow `nextCursor` until null. Default limit 200, max 1000. These are service-to-service routes (ServiceTokenGuard); a RunnerJob carries no org column, so there is no org filter — same scoping as `GET /:jobId`.
|
|
24
|
-
* @summary List RunnerJobs with filters and cursor pagination
|
|
25
|
-
*/
|
|
26
|
-
const getRunnerJobsControllerListUrl = (params) => {
|
|
27
|
-
const normalizedParams = new URLSearchParams();
|
|
28
|
-
Object.entries(params || {}).forEach(([key, value]) => {
|
|
29
|
-
if (value === undefined)
|
|
30
|
-
return;
|
|
31
|
-
if (value === null) {
|
|
32
|
-
normalizedParams.append(key, 'null');
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
if (Array.isArray(value)) {
|
|
36
|
-
for (const item of value) {
|
|
37
|
-
if (item === undefined || item === null)
|
|
38
|
-
continue;
|
|
39
|
-
normalizedParams.append(key, item.toString());
|
|
40
|
-
}
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
normalizedParams.append(key, value.toString());
|
|
44
|
-
});
|
|
45
|
-
const stringifiedParams = normalizedParams.toString();
|
|
46
|
-
return stringifiedParams.length > 0 ? `/runner-jobs?${stringifiedParams}` : `/runner-jobs`;
|
|
47
|
-
};
|
|
48
|
-
exports.getRunnerJobsControllerListUrl = getRunnerJobsControllerListUrl;
|
|
49
|
-
const runnerJobsControllerList = async (params, options) => {
|
|
50
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getRunnerJobsControllerListUrl)(params), {
|
|
51
|
-
...options,
|
|
52
|
-
method: 'GET'
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
exports.runnerJobsControllerList = runnerJobsControllerList;
|
|
56
|
-
/**
|
|
57
|
-
* @summary Fetch a RunnerJob by jobId
|
|
58
|
-
*/
|
|
59
|
-
const getRunnerJobsControllerGetUrl = (jobId) => {
|
|
60
|
-
return `/runner-jobs/${jobId}`;
|
|
61
|
-
};
|
|
62
|
-
exports.getRunnerJobsControllerGetUrl = getRunnerJobsControllerGetUrl;
|
|
63
|
-
const runnerJobsControllerGet = async (jobId, options) => {
|
|
64
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getRunnerJobsControllerGetUrl)(jobId), {
|
|
65
|
-
...options,
|
|
66
|
-
method: 'GET'
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
exports.runnerJobsControllerGet = runnerJobsControllerGet;
|
|
70
|
-
/**
|
|
71
|
-
* Called by the capability router AFTER it hands the dispatch envelope to the runner (push CloudEvent or pull-queue enqueue). Records the `pending → dispatched` transition. Idempotent — a re-mark or a job already past dispatched is a no-op; a terminal row is rejected (409).
|
|
72
|
-
* @summary Mark a RunnerJob dispatched (router-owned; idempotent)
|
|
73
|
-
*/
|
|
74
|
-
const getRunnerJobsControllerMarkDispatchedUrl = (jobId) => {
|
|
75
|
-
return `/runner-jobs/${jobId}/dispatched`;
|
|
76
|
-
};
|
|
77
|
-
exports.getRunnerJobsControllerMarkDispatchedUrl = getRunnerJobsControllerMarkDispatchedUrl;
|
|
78
|
-
const runnerJobsControllerMarkDispatched = async (jobId, options) => {
|
|
79
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getRunnerJobsControllerMarkDispatchedUrl)(jobId), {
|
|
80
|
-
...options,
|
|
81
|
-
method: 'POST'
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
exports.runnerJobsControllerMarkDispatched = runnerJobsControllerMarkDispatched;
|
|
85
|
-
/**
|
|
86
|
-
* Advances the RunnerJob state machine from a `RunnerJobReport`. Mirror of the `xema.runner.job.*` CloudEvent consumers for runners on the pull/HTTP transport. A duplicate report (same state) is a no-op; a report against a terminal row or an illegal transition is rejected (409).
|
|
87
|
-
* @summary Apply a runner job report (direct report path; idempotent)
|
|
88
|
-
*/
|
|
89
|
-
const getRunnerJobsControllerReportUrl = (jobId) => {
|
|
90
|
-
return `/runner-jobs/${jobId}/report`;
|
|
91
|
-
};
|
|
92
|
-
exports.getRunnerJobsControllerReportUrl = getRunnerJobsControllerReportUrl;
|
|
93
|
-
const runnerJobsControllerReport = async (jobId, runnerJobReportDto, options) => {
|
|
94
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getRunnerJobsControllerReportUrl)(jobId), {
|
|
95
|
-
...options,
|
|
96
|
-
method: 'POST',
|
|
97
|
-
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
98
|
-
body: JSON.stringify(runnerJobReportDto)
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
exports.runnerJobsControllerReport = runnerJobsControllerReport;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.6.2 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
6
|
-
* OpenAPI spec version: 0.1.0
|
|
7
|
-
*/
|
|
8
|
-
import type { WorkloadDescriptorDto, WorkloadInstanceDto, WorkloadInstanceDtoPaginatedEnvelope, WorkloadsControllerListParams } from '../../models';
|
|
9
|
-
/**
|
|
10
|
-
* Creates a workload from a descriptor. Re-POSTing with the same `(kind, ownerKey)` returns the existing workload (HTTP 200) without reapplying; first-time creation returns HTTP 201. The scheduler runs asynchronously — clients subscribe to `workload.lifecycle.*` events to learn when the workload reaches `ready`.
|
|
11
|
-
* @summary Create or upsert a workload (idempotent by kind+ownerKey)
|
|
12
|
-
*/
|
|
13
|
-
export declare const getWorkloadsControllerCreateUrl: () => string;
|
|
14
|
-
export declare const workloadsControllerCreate: (workloadDescriptorDto: WorkloadDescriptorDto, options?: RequestInit) => Promise<WorkloadInstanceDto>;
|
|
15
|
-
/**
|
|
16
|
-
* Filter by kind/state/org/project/ownerKey. `cursor` + `limit` page through results in `createdAt desc` order — callers that walk every workload (pool reconcilers, ops sweepers) MUST follow `nextCursor` until null. Default limit 200, max 1000.
|
|
17
|
-
* @summary List workloads with filters and cursor pagination
|
|
18
|
-
*/
|
|
19
|
-
export declare const getWorkloadsControllerListUrl: (params?: WorkloadsControllerListParams) => string;
|
|
20
|
-
export declare const workloadsControllerList: (params?: WorkloadsControllerListParams, options?: RequestInit) => Promise<WorkloadInstanceDtoPaginatedEnvelope>;
|
|
21
|
-
/**
|
|
22
|
-
* @summary Fetch a workload by id with last-known health snapshot
|
|
23
|
-
*/
|
|
24
|
-
export declare const getWorkloadsControllerGetUrl: (id: string) => string;
|
|
25
|
-
export declare const workloadsControllerGet: (id: string, options?: RequestInit) => Promise<WorkloadInstanceDto>;
|
|
26
|
-
/**
|
|
27
|
-
* @summary Drain then delete a workload (state → draining → deleted)
|
|
28
|
-
*/
|
|
29
|
-
export declare const getWorkloadsControllerDeleteUrl: (id: string) => string;
|
|
30
|
-
export declare const workloadsControllerDelete: (id: string, options?: RequestInit) => Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
* @summary Force scheduler.reconcile() with current descriptor (rolling restart)
|
|
33
|
-
*/
|
|
34
|
-
export declare const getWorkloadsControllerRestartUrl: (id: string) => string;
|
|
35
|
-
export declare const workloadsControllerRestart: (id: string, options?: RequestInit) => Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* @summary On-demand health probe (synchronous scheduler.describe)
|
|
38
|
-
*/
|
|
39
|
-
export declare const getWorkloadsControllerRefreshHealthUrl: (id: string) => string;
|
|
40
|
-
export declare const workloadsControllerRefreshHealth: (id: string, options?: RequestInit) => Promise<WorkloadInstanceDto>;
|
|
41
|
-
/**
|
|
42
|
-
* @summary Trigger a full reconciler sweep (admin-only)
|
|
43
|
-
*/
|
|
44
|
-
export declare const getWorkloadsControllerReconcileAllUrl: () => string;
|
|
45
|
-
export declare const workloadsControllerReconcileAll: (options?: RequestInit) => Promise<void>;
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.workloadsControllerReconcileAll = exports.getWorkloadsControllerReconcileAllUrl = exports.workloadsControllerRefreshHealth = exports.getWorkloadsControllerRefreshHealthUrl = exports.workloadsControllerRestart = exports.getWorkloadsControllerRestartUrl = exports.workloadsControllerDelete = exports.getWorkloadsControllerDeleteUrl = exports.workloadsControllerGet = exports.getWorkloadsControllerGetUrl = exports.workloadsControllerList = exports.getWorkloadsControllerListUrl = exports.workloadsControllerCreate = exports.getWorkloadsControllerCreateUrl = void 0;
|
|
4
|
-
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* Creates a workload from a descriptor. Re-POSTing with the same `(kind, ownerKey)` returns the existing workload (HTTP 200) without reapplying; first-time creation returns HTTP 201. The scheduler runs asynchronously — clients subscribe to `workload.lifecycle.*` events to learn when the workload reaches `ready`.
|
|
7
|
-
* @summary Create or upsert a workload (idempotent by kind+ownerKey)
|
|
8
|
-
*/
|
|
9
|
-
const getWorkloadsControllerCreateUrl = () => {
|
|
10
|
-
return `/workloads`;
|
|
11
|
-
};
|
|
12
|
-
exports.getWorkloadsControllerCreateUrl = getWorkloadsControllerCreateUrl;
|
|
13
|
-
const workloadsControllerCreate = async (workloadDescriptorDto, options) => {
|
|
14
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getWorkloadsControllerCreateUrl)(), {
|
|
15
|
-
...options,
|
|
16
|
-
method: 'POST',
|
|
17
|
-
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
18
|
-
body: JSON.stringify(workloadDescriptorDto)
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
exports.workloadsControllerCreate = workloadsControllerCreate;
|
|
22
|
-
/**
|
|
23
|
-
* Filter by kind/state/org/project/ownerKey. `cursor` + `limit` page through results in `createdAt desc` order — callers that walk every workload (pool reconcilers, ops sweepers) MUST follow `nextCursor` until null. Default limit 200, max 1000.
|
|
24
|
-
* @summary List workloads with filters and cursor pagination
|
|
25
|
-
*/
|
|
26
|
-
const getWorkloadsControllerListUrl = (params) => {
|
|
27
|
-
const normalizedParams = new URLSearchParams();
|
|
28
|
-
Object.entries(params || {}).forEach(([key, value]) => {
|
|
29
|
-
if (value === undefined)
|
|
30
|
-
return;
|
|
31
|
-
if (value === null) {
|
|
32
|
-
normalizedParams.append(key, 'null');
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
if (Array.isArray(value)) {
|
|
36
|
-
for (const item of value) {
|
|
37
|
-
if (item === undefined || item === null)
|
|
38
|
-
continue;
|
|
39
|
-
normalizedParams.append(key, item.toString());
|
|
40
|
-
}
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
normalizedParams.append(key, value.toString());
|
|
44
|
-
});
|
|
45
|
-
const stringifiedParams = normalizedParams.toString();
|
|
46
|
-
return stringifiedParams.length > 0 ? `/workloads?${stringifiedParams}` : `/workloads`;
|
|
47
|
-
};
|
|
48
|
-
exports.getWorkloadsControllerListUrl = getWorkloadsControllerListUrl;
|
|
49
|
-
const workloadsControllerList = async (params, options) => {
|
|
50
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getWorkloadsControllerListUrl)(params), {
|
|
51
|
-
...options,
|
|
52
|
-
method: 'GET'
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
exports.workloadsControllerList = workloadsControllerList;
|
|
56
|
-
/**
|
|
57
|
-
* @summary Fetch a workload by id with last-known health snapshot
|
|
58
|
-
*/
|
|
59
|
-
const getWorkloadsControllerGetUrl = (id) => {
|
|
60
|
-
return `/workloads/${id}`;
|
|
61
|
-
};
|
|
62
|
-
exports.getWorkloadsControllerGetUrl = getWorkloadsControllerGetUrl;
|
|
63
|
-
const workloadsControllerGet = async (id, options) => {
|
|
64
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getWorkloadsControllerGetUrl)(id), {
|
|
65
|
-
...options,
|
|
66
|
-
method: 'GET'
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
exports.workloadsControllerGet = workloadsControllerGet;
|
|
70
|
-
/**
|
|
71
|
-
* @summary Drain then delete a workload (state → draining → deleted)
|
|
72
|
-
*/
|
|
73
|
-
const getWorkloadsControllerDeleteUrl = (id) => {
|
|
74
|
-
return `/workloads/${id}`;
|
|
75
|
-
};
|
|
76
|
-
exports.getWorkloadsControllerDeleteUrl = getWorkloadsControllerDeleteUrl;
|
|
77
|
-
const workloadsControllerDelete = async (id, options) => {
|
|
78
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getWorkloadsControllerDeleteUrl)(id), {
|
|
79
|
-
...options,
|
|
80
|
-
method: 'DELETE'
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
exports.workloadsControllerDelete = workloadsControllerDelete;
|
|
84
|
-
/**
|
|
85
|
-
* @summary Force scheduler.reconcile() with current descriptor (rolling restart)
|
|
86
|
-
*/
|
|
87
|
-
const getWorkloadsControllerRestartUrl = (id) => {
|
|
88
|
-
return `/workloads/${id}/restart`;
|
|
89
|
-
};
|
|
90
|
-
exports.getWorkloadsControllerRestartUrl = getWorkloadsControllerRestartUrl;
|
|
91
|
-
const workloadsControllerRestart = async (id, options) => {
|
|
92
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getWorkloadsControllerRestartUrl)(id), {
|
|
93
|
-
...options,
|
|
94
|
-
method: 'POST'
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
exports.workloadsControllerRestart = workloadsControllerRestart;
|
|
98
|
-
/**
|
|
99
|
-
* @summary On-demand health probe (synchronous scheduler.describe)
|
|
100
|
-
*/
|
|
101
|
-
const getWorkloadsControllerRefreshHealthUrl = (id) => {
|
|
102
|
-
return `/workloads/${id}/refresh-health`;
|
|
103
|
-
};
|
|
104
|
-
exports.getWorkloadsControllerRefreshHealthUrl = getWorkloadsControllerRefreshHealthUrl;
|
|
105
|
-
const workloadsControllerRefreshHealth = async (id, options) => {
|
|
106
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getWorkloadsControllerRefreshHealthUrl)(id), {
|
|
107
|
-
...options,
|
|
108
|
-
method: 'POST'
|
|
109
|
-
});
|
|
110
|
-
};
|
|
111
|
-
exports.workloadsControllerRefreshHealth = workloadsControllerRefreshHealth;
|
|
112
|
-
/**
|
|
113
|
-
* @summary Trigger a full reconciler sweep (admin-only)
|
|
114
|
-
*/
|
|
115
|
-
const getWorkloadsControllerReconcileAllUrl = () => {
|
|
116
|
-
return `/workloads/admin/reconcile`;
|
|
117
|
-
};
|
|
118
|
-
exports.getWorkloadsControllerReconcileAllUrl = getWorkloadsControllerReconcileAllUrl;
|
|
119
|
-
const workloadsControllerReconcileAll = async (options) => {
|
|
120
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getWorkloadsControllerReconcileAllUrl)(), {
|
|
121
|
-
...options,
|
|
122
|
-
method: 'POST'
|
|
123
|
-
});
|
|
124
|
-
};
|
|
125
|
-
exports.workloadsControllerReconcileAll = workloadsControllerReconcileAll;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.6.2 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
6
|
-
* OpenAPI spec version: 0.1.0
|
|
7
|
-
*/
|
|
8
|
-
export interface CreateRunnerJobDto {
|
|
9
|
-
/** Caller-supplied job identifier. Primary key; idempotent create. Also the idempotency key carried on the dispatched capability payload. */
|
|
10
|
-
jobId: string;
|
|
11
|
-
/** Runner instance the job is dispatched to (RunnerRegistration id). */
|
|
12
|
-
runnerInstanceId: string;
|
|
13
|
-
/** Capability ref the runner executes. */
|
|
14
|
-
capabilityRef: string;
|
|
15
|
-
/** Canonical SpaceRef string the invocation runs in. */
|
|
16
|
-
spaceRef: string;
|
|
17
|
-
/** Execution environment id. */
|
|
18
|
-
environmentId: string;
|
|
19
|
-
/** Authenticated subject id under which the capability is invoked. */
|
|
20
|
-
subjectId: string;
|
|
21
|
-
/** Job-token id (`JobToken.jti`). DB-level replay/idempotency guard — the kernel-server mints exactly one token (one jti) per job. */
|
|
22
|
-
jti: string;
|
|
23
|
-
/** Token issued-at (absolute UTC ISO-8601). */
|
|
24
|
-
issuedAt: string;
|
|
25
|
-
/** Token expiry (absolute UTC ISO-8601). Drives `expireStale()` — a job that never reaches a terminal state by this instant is moved to `expired`. */
|
|
26
|
-
expiresAt: string;
|
|
27
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by orval v8.6.2 🍺
|
|
4
|
-
* Do not edit manually.
|
|
5
|
-
* Workload Runtime API
|
|
6
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
7
|
-
* OpenAPI spec version: 0.1.0
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.6.2 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
6
|
-
* OpenAPI spec version: 0.1.0
|
|
7
|
-
*/
|
|
8
|
-
import type { RunKanikoRequestDtoBuildArgs } from './runKanikoRequestDtoBuildArgs';
|
|
9
|
-
export interface RunKanikoRequestDto {
|
|
10
|
-
orgId: string;
|
|
11
|
-
projectId: string;
|
|
12
|
-
sessionId: string;
|
|
13
|
-
sha: string;
|
|
14
|
-
/** Presigned GET URL pointing at the workspace tarball. Kaniko fetches and extracts this as its build context. */
|
|
15
|
-
tarballPresignedGetUrl: string;
|
|
16
|
-
dockerfilePath: string;
|
|
17
|
-
/** Push registry host[:port], no scheme. */
|
|
18
|
-
destinationRegistry: string;
|
|
19
|
-
destinationRepository: string;
|
|
20
|
-
destinationTag: string;
|
|
21
|
-
/** Per-org cache repository under the same registry. */
|
|
22
|
-
cacheRepository: string;
|
|
23
|
-
buildArgs: RunKanikoRequestDtoBuildArgs;
|
|
24
|
-
/** Short-lived registry push token minted by container-registry-api. */
|
|
25
|
-
pushToken: string;
|
|
26
|
-
/** LLM-caller attribution string (LlmCallerKind value). */
|
|
27
|
-
callerKind: string;
|
|
28
|
-
/** Optional override for the Kaniko container activeDeadlineSeconds. */
|
|
29
|
-
activeDeadlineSeconds?: number;
|
|
30
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.6.2 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
6
|
-
* OpenAPI spec version: 0.1.0
|
|
7
|
-
*/
|
|
8
|
-
export type RunKanikoRequestDtoBuildArgs = {
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by orval v8.6.2 🍺
|
|
4
|
-
* Do not edit manually.
|
|
5
|
-
* Workload Runtime API
|
|
6
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
7
|
-
* OpenAPI spec version: 0.1.0
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.6.2 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
6
|
-
* OpenAPI spec version: 0.1.0
|
|
7
|
-
*/
|
|
8
|
-
export interface RunKanikoResponseDto {
|
|
9
|
-
/** OCI image digest reported by Kaniko after the push. */
|
|
10
|
-
digest: string;
|
|
11
|
-
/** End-to-end build duration in milliseconds. */
|
|
12
|
-
durationMs: number;
|
|
13
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by orval v8.6.2 🍺
|
|
4
|
-
* Do not edit manually.
|
|
5
|
-
* Workload Runtime API
|
|
6
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
7
|
-
* OpenAPI spec version: 0.1.0
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.6.2 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
6
|
-
* OpenAPI spec version: 0.1.0
|
|
7
|
-
*/
|
|
8
|
-
import type { RunnerJobDtoOutput } from './runnerJobDtoOutput';
|
|
9
|
-
import type { RunnerJobState } from './runnerJobState';
|
|
10
|
-
export interface RunnerJobDto {
|
|
11
|
-
jobId: string;
|
|
12
|
-
runnerInstanceId: string;
|
|
13
|
-
capabilityRef: string;
|
|
14
|
-
spaceRef: string;
|
|
15
|
-
environmentId: string;
|
|
16
|
-
subjectId: string;
|
|
17
|
-
state: RunnerJobState;
|
|
18
|
-
jti: string;
|
|
19
|
-
issuedAt: string;
|
|
20
|
-
expiresAt: string;
|
|
21
|
-
/**
|
|
22
|
-
* Capability output (present once the job has succeeded).
|
|
23
|
-
* @nullable
|
|
24
|
-
*/
|
|
25
|
-
output: RunnerJobDtoOutput;
|
|
26
|
-
/** @nullable */
|
|
27
|
-
error: string | null;
|
|
28
|
-
createdAt: string;
|
|
29
|
-
updatedAt: string;
|
|
30
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.6.2 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
6
|
-
* OpenAPI spec version: 0.1.0
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Capability output (present once the job has succeeded).
|
|
10
|
-
* @nullable
|
|
11
|
-
*/
|
|
12
|
-
export type RunnerJobDtoOutput = {
|
|
13
|
-
[key: string]: unknown;
|
|
14
|
-
} | null;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by orval v8.6.2 🍺
|
|
4
|
-
* Do not edit manually.
|
|
5
|
-
* Workload Runtime API
|
|
6
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
7
|
-
* OpenAPI spec version: 0.1.0
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.6.2 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
6
|
-
* OpenAPI spec version: 0.1.0
|
|
7
|
-
*/
|
|
8
|
-
import type { PaginationMeta } from './paginationMeta';
|
|
9
|
-
import type { RunnerJobDto } from './runnerJobDto';
|
|
10
|
-
export interface RunnerJobDtoPaginatedEnvelope {
|
|
11
|
-
data: RunnerJobDto[];
|
|
12
|
-
pagination?: PaginationMeta;
|
|
13
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.6.2 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
6
|
-
* OpenAPI spec version: 0.1.0
|
|
7
|
-
*/
|
|
8
|
-
import type { RunnerJobReportDtoOutput } from './runnerJobReportDtoOutput';
|
|
9
|
-
import type { RunnerJobState } from './runnerJobState';
|
|
10
|
-
export interface RunnerJobReportDto {
|
|
11
|
-
/** Job id. Must match the `:jobId` path param on the direct report route. */
|
|
12
|
-
jobId: string;
|
|
13
|
-
/** Runner instance emitting the report. */
|
|
14
|
-
runnerId: string;
|
|
15
|
-
/** Reported state. A runner may report `accepted`, `running`, `succeeded`, or `failed`; `pending`/`dispatched`/`expired` are not runner-reportable and are rejected fail-fast. */
|
|
16
|
-
state: RunnerJobState;
|
|
17
|
-
/** Capability output. Present only on a `succeeded` report. */
|
|
18
|
-
output?: RunnerJobReportDtoOutput;
|
|
19
|
-
/** Failure detail. Present only on a `failed` report. */
|
|
20
|
-
error?: string;
|
|
21
|
-
/** UTC ISO-8601 timestamp at which the runner emitted the report. */
|
|
22
|
-
reportedAt: string;
|
|
23
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.6.2 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
6
|
-
* OpenAPI spec version: 0.1.0
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Capability output. Present only on a `succeeded` report.
|
|
10
|
-
*/
|
|
11
|
-
export type RunnerJobReportDtoOutput = {
|
|
12
|
-
[key: string]: unknown;
|
|
13
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by orval v8.6.2 🍺
|
|
4
|
-
* Do not edit manually.
|
|
5
|
-
* Workload Runtime API
|
|
6
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
7
|
-
* OpenAPI spec version: 0.1.0
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.6.2 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
6
|
-
* OpenAPI spec version: 0.1.0
|
|
7
|
-
*/
|
|
8
|
-
import type { RunnerJobsControllerListState } from './runnerJobsControllerListState';
|
|
9
|
-
export type RunnerJobsControllerListParams = {
|
|
10
|
-
runnerInstanceId?: string;
|
|
11
|
-
cursor?: string;
|
|
12
|
-
limit?: number;
|
|
13
|
-
state?: RunnerJobsControllerListState;
|
|
14
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v8.6.2 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
|
|
6
|
-
* OpenAPI spec version: 0.1.0
|
|
7
|
-
*/
|
|
8
|
-
export interface WorkloadConnectionInfoDto {
|
|
9
|
-
schemaName: string;
|
|
10
|
-
roleName: string;
|
|
11
|
-
secretRef: string;
|
|
12
|
-
}
|