@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
package/dist/models/index.js
CHANGED
|
@@ -15,44 +15,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
// Auto-generated by tooling/codegen/regenerate-models-barrel.js — do not edit manually.
|
|
18
|
-
__exportStar(require("./createRunnerJobDto"), exports);
|
|
19
18
|
__exportStar(require("./paginationMeta"), exports);
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./runnerJobDto"), exports);
|
|
24
|
-
__exportStar(require("./runnerJobDtoOutput"), exports);
|
|
25
|
-
__exportStar(require("./runnerJobDtoPaginatedEnvelope"), exports);
|
|
26
|
-
__exportStar(require("./runnerJobReportDto"), exports);
|
|
27
|
-
__exportStar(require("./runnerJobReportDtoOutput"), exports);
|
|
19
|
+
__exportStar(require("./runnerJobDeliveryState"), exports);
|
|
20
|
+
__exportStar(require("./runnerJobManagementControllerListParams"), exports);
|
|
21
|
+
__exportStar(require("./runnerJobManagementControllerListState"), exports);
|
|
28
22
|
__exportStar(require("./runnerJobState"), exports);
|
|
29
|
-
__exportStar(require("./
|
|
30
|
-
__exportStar(require("./
|
|
31
|
-
__exportStar(require("./
|
|
32
|
-
__exportStar(require("./
|
|
33
|
-
__exportStar(require("./
|
|
34
|
-
__exportStar(require("./
|
|
35
|
-
__exportStar(require("./
|
|
36
|
-
__exportStar(require("./
|
|
37
|
-
__exportStar(require("./workloadGatewayRouteDto"), exports);
|
|
38
|
-
__exportStar(require("./workloadGatewayRouteDtoAuthParams"), exports);
|
|
39
|
-
__exportStar(require("./workloadGatewayRouteDtoAuthScheme"), exports);
|
|
23
|
+
__exportStar(require("./runnerJobSummaryDto"), exports);
|
|
24
|
+
__exportStar(require("./runnerJobSummaryDtoPaginatedEnvelope"), exports);
|
|
25
|
+
__exportStar(require("./runnerWorkloadManagementControllerListKind"), exports);
|
|
26
|
+
__exportStar(require("./runnerWorkloadManagementControllerListParams"), exports);
|
|
27
|
+
__exportStar(require("./runnerWorkloadManagementControllerListState"), exports);
|
|
28
|
+
__exportStar(require("./runnerWorkloadSummaryDto"), exports);
|
|
29
|
+
__exportStar(require("./runnerWorkloadSummaryDtoDataEnvelope"), exports);
|
|
30
|
+
__exportStar(require("./runnerWorkloadSummaryDtoPaginatedEnvelope"), exports);
|
|
40
31
|
__exportStar(require("./workloadHealthConditionDto"), exports);
|
|
41
32
|
__exportStar(require("./workloadHealthConditionDtoStatus"), exports);
|
|
42
33
|
__exportStar(require("./workloadHealthSnapshotDto"), exports);
|
|
43
|
-
__exportStar(require("./workloadIngressSourceDto"), exports);
|
|
44
|
-
__exportStar(require("./workloadInstanceDto"), exports);
|
|
45
|
-
__exportStar(require("./workloadInstanceDtoPaginatedEnvelope"), exports);
|
|
46
|
-
__exportStar(require("./workloadInstanceDtoSubjectLabels"), exports);
|
|
47
34
|
__exportStar(require("./workloadKind"), exports);
|
|
48
|
-
__exportStar(require("./workloadLifecycleDto"), exports);
|
|
49
|
-
__exportStar(require("./workloadNetworkDto"), exports);
|
|
50
|
-
__exportStar(require("./workloadNodeAffinityDto"), exports);
|
|
51
35
|
__exportStar(require("./workloadState"), exports);
|
|
52
|
-
__exportStar(require("./workloadTarget"), exports);
|
|
53
|
-
__exportStar(require("./workloadTenancyDto"), exports);
|
|
54
|
-
__exportStar(require("./workloadTenancyDtoSubjectLabels"), exports);
|
|
55
|
-
__exportStar(require("./workloadVolumeMountDto"), exports);
|
|
56
|
-
__exportStar(require("./workloadsControllerListKind"), exports);
|
|
57
|
-
__exportStar(require("./workloadsControllerListParams"), exports);
|
|
58
|
-
__exportStar(require("./workloadsControllerListState"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
8
|
export interface PaginationMeta {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Generated by orval v8.
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
* Workload Runtime API
|
|
6
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
7
7
|
* OpenAPI spec version: 0.1.0
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Workload Runtime API
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type RunnerJobDeliveryState = typeof RunnerJobDeliveryState[keyof typeof RunnerJobDeliveryState];
|
|
9
|
+
export declare const RunnerJobDeliveryState: {
|
|
10
|
+
readonly queued: "queued";
|
|
11
|
+
readonly claiming: "claiming";
|
|
12
|
+
readonly claimed: "claimed";
|
|
13
|
+
readonly cancel_requested: "cancel_requested";
|
|
14
|
+
readonly cancelled: "cancelled";
|
|
15
|
+
readonly completed: "completed";
|
|
16
|
+
readonly expired: "expired";
|
|
17
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Workload Runtime API
|
|
6
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.RunnerJobDeliveryState = void 0;
|
|
11
|
+
exports.RunnerJobDeliveryState = {
|
|
12
|
+
queued: 'queued',
|
|
13
|
+
claiming: 'claiming',
|
|
14
|
+
claimed: 'claimed',
|
|
15
|
+
cancel_requested: 'cancel_requested',
|
|
16
|
+
cancelled: 'cancelled',
|
|
17
|
+
completed: 'completed',
|
|
18
|
+
expired: 'expired',
|
|
19
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Workload Runtime API
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { RunnerJobManagementControllerListState } from './runnerJobManagementControllerListState.js';
|
|
9
|
+
export type RunnerJobManagementControllerListParams = {
|
|
10
|
+
runnerId?: string;
|
|
11
|
+
cursor?: string;
|
|
12
|
+
limit?: number;
|
|
13
|
+
state?: RunnerJobManagementControllerListState;
|
|
14
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
export type
|
|
9
|
-
export declare const
|
|
8
|
+
export type RunnerJobManagementControllerListState = typeof RunnerJobManagementControllerListState[keyof typeof RunnerJobManagementControllerListState];
|
|
9
|
+
export declare const RunnerJobManagementControllerListState: {
|
|
10
10
|
readonly pending: "pending";
|
|
11
11
|
readonly dispatched: "dispatched";
|
|
12
12
|
readonly accepted: "accepted";
|
package/dist/models/{runnerJobsControllerListState.js → runnerJobManagementControllerListState.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Generated by orval v8.
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
* Workload Runtime API
|
|
6
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
7
7
|
* OpenAPI spec version: 0.1.0
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
10
|
+
exports.RunnerJobManagementControllerListState = void 0;
|
|
11
|
+
exports.RunnerJobManagementControllerListState = {
|
|
12
12
|
pending: 'pending',
|
|
13
13
|
dispatched: 'dispatched',
|
|
14
14
|
accepted: 'accepted',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
8
|
export type RunnerJobState = typeof RunnerJobState[keyof typeof RunnerJobState];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Generated by orval v8.
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
* Workload Runtime API
|
|
6
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
7
7
|
* OpenAPI spec version: 0.1.0
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Workload Runtime API
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { RunnerJobDeliveryState } from './runnerJobDeliveryState.js';
|
|
9
|
+
import type { RunnerJobState } from './runnerJobState.js';
|
|
10
|
+
export interface RunnerJobSummaryDto {
|
|
11
|
+
jobId: string;
|
|
12
|
+
projectId?: string;
|
|
13
|
+
biomeId: string;
|
|
14
|
+
installationId: string;
|
|
15
|
+
runtimeId: string;
|
|
16
|
+
runnerId: string;
|
|
17
|
+
capabilityRef: string;
|
|
18
|
+
environmentId: string;
|
|
19
|
+
subject: string;
|
|
20
|
+
state: RunnerJobState;
|
|
21
|
+
deliveryState: RunnerJobDeliveryState;
|
|
22
|
+
hasOutput: boolean;
|
|
23
|
+
hasError: boolean;
|
|
24
|
+
expiresAt: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
updatedAt: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Workload Runtime API
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { PaginationMeta } from './paginationMeta.js';
|
|
9
|
+
import type { RunnerJobSummaryDto } from './runnerJobSummaryDto.js';
|
|
10
|
+
export interface RunnerJobSummaryDtoPaginatedEnvelope {
|
|
11
|
+
data: RunnerJobSummaryDto[];
|
|
12
|
+
pagination: PaginationMeta;
|
|
13
|
+
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
export type
|
|
9
|
-
export declare const
|
|
8
|
+
export type RunnerWorkloadManagementControllerListKind = typeof RunnerWorkloadManagementControllerListKind[keyof typeof RunnerWorkloadManagementControllerListKind];
|
|
9
|
+
export declare const RunnerWorkloadManagementControllerListKind: {
|
|
10
10
|
readonly container_service: "container_service";
|
|
11
11
|
readonly http_api: "http_api";
|
|
12
12
|
readonly pool_worker: "pool_worker";
|
|
13
13
|
readonly preview_deployment: "preview_deployment";
|
|
14
14
|
readonly postgres_schema: "postgres_schema";
|
|
15
15
|
readonly image_builder: "image_builder";
|
|
16
|
+
readonly web_remote_builder: "web_remote_builder";
|
|
17
|
+
readonly app_function_host: "app_function_host";
|
|
16
18
|
};
|
package/dist/models/{workloadsControllerListKind.js → runnerWorkloadManagementControllerListKind.js}
RENAMED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Generated by orval v8.
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
* Workload Runtime API
|
|
6
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
7
7
|
* OpenAPI spec version: 0.1.0
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
10
|
+
exports.RunnerWorkloadManagementControllerListKind = void 0;
|
|
11
|
+
exports.RunnerWorkloadManagementControllerListKind = {
|
|
12
12
|
container_service: 'container_service',
|
|
13
13
|
http_api: 'http_api',
|
|
14
14
|
pool_worker: 'pool_worker',
|
|
15
15
|
preview_deployment: 'preview_deployment',
|
|
16
16
|
postgres_schema: 'postgres_schema',
|
|
17
17
|
image_builder: 'image_builder',
|
|
18
|
+
web_remote_builder: 'web_remote_builder',
|
|
19
|
+
app_function_host: 'app_function_host',
|
|
18
20
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Workload Runtime API
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { RunnerWorkloadManagementControllerListKind } from './runnerWorkloadManagementControllerListKind.js';
|
|
9
|
+
import type { RunnerWorkloadManagementControllerListState } from './runnerWorkloadManagementControllerListState.js';
|
|
10
|
+
export type RunnerWorkloadManagementControllerListParams = {
|
|
11
|
+
projectId?: string;
|
|
12
|
+
ownerKey?: string;
|
|
13
|
+
cursor?: string;
|
|
14
|
+
limit?: number;
|
|
15
|
+
state?: RunnerWorkloadManagementControllerListState;
|
|
16
|
+
kind?: RunnerWorkloadManagementControllerListKind;
|
|
17
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
export type
|
|
9
|
-
export declare const
|
|
8
|
+
export type RunnerWorkloadManagementControllerListState = typeof RunnerWorkloadManagementControllerListState[keyof typeof RunnerWorkloadManagementControllerListState];
|
|
9
|
+
export declare const RunnerWorkloadManagementControllerListState: {
|
|
10
10
|
readonly pending: "pending";
|
|
11
11
|
readonly scheduling: "scheduling";
|
|
12
12
|
readonly ready: "ready";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Generated by orval v8.
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
* Workload Runtime API
|
|
6
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
7
7
|
* OpenAPI spec version: 0.1.0
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
10
|
+
exports.RunnerWorkloadManagementControllerListState = void 0;
|
|
11
|
+
exports.RunnerWorkloadManagementControllerListState = {
|
|
12
12
|
pending: 'pending',
|
|
13
13
|
scheduling: 'scheduling',
|
|
14
14
|
ready: 'ready',
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Workload Runtime API
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { WorkloadHealthSnapshotDto } from './workloadHealthSnapshotDto.js';
|
|
9
|
+
import type { WorkloadKind } from './workloadKind.js';
|
|
10
|
+
import type { WorkloadState } from './workloadState.js';
|
|
11
|
+
export interface RunnerWorkloadSummaryDto {
|
|
12
|
+
id: string;
|
|
13
|
+
kind: WorkloadKind;
|
|
14
|
+
ownerKey: string;
|
|
15
|
+
state: WorkloadState;
|
|
16
|
+
/** @nullable */
|
|
17
|
+
projectId: string | null;
|
|
18
|
+
health: WorkloadHealthSnapshotDto | null;
|
|
19
|
+
applyFailures: number;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Workload Runtime API
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { RunnerWorkloadSummaryDto } from './runnerWorkloadSummaryDto.js';
|
|
9
|
+
export interface RunnerWorkloadSummaryDtoDataEnvelope {
|
|
10
|
+
data: RunnerWorkloadSummaryDto;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Workload Runtime API
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { PaginationMeta } from './paginationMeta.js';
|
|
9
|
+
import type { RunnerWorkloadSummaryDto } from './runnerWorkloadSummaryDto.js';
|
|
10
|
+
export interface RunnerWorkloadSummaryDtoPaginatedEnvelope {
|
|
11
|
+
data: RunnerWorkloadSummaryDto[];
|
|
12
|
+
pagination: PaginationMeta;
|
|
13
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { WorkloadHealthConditionDtoStatus } from './workloadHealthConditionDtoStatus';
|
|
8
|
+
import type { WorkloadHealthConditionDtoStatus } from './workloadHealthConditionDtoStatus.js';
|
|
9
9
|
export interface WorkloadHealthConditionDto {
|
|
10
10
|
type: string;
|
|
11
11
|
status: WorkloadHealthConditionDtoStatus;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
8
|
export type WorkloadHealthConditionDtoStatus = typeof WorkloadHealthConditionDtoStatus[keyof typeof WorkloadHealthConditionDtoStatus];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Generated by orval v8.
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
* Workload Runtime API
|
|
6
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
7
7
|
* OpenAPI spec version: 0.1.0
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { WorkloadHealthConditionDto } from './workloadHealthConditionDto';
|
|
8
|
+
import type { WorkloadHealthConditionDto } from './workloadHealthConditionDto.js';
|
|
9
9
|
export interface WorkloadHealthSnapshotDto {
|
|
10
10
|
replicasReady: number;
|
|
11
11
|
replicasDesired: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
8
|
export type WorkloadKind = typeof WorkloadKind[keyof typeof WorkloadKind];
|
|
@@ -13,4 +13,6 @@ export declare const WorkloadKind: {
|
|
|
13
13
|
readonly preview_deployment: "preview_deployment";
|
|
14
14
|
readonly postgres_schema: "postgres_schema";
|
|
15
15
|
readonly image_builder: "image_builder";
|
|
16
|
+
readonly web_remote_builder: "web_remote_builder";
|
|
17
|
+
readonly app_function_host: "app_function_host";
|
|
16
18
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Generated by orval v8.
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
* Workload Runtime API
|
|
6
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
7
7
|
* OpenAPI spec version: 0.1.0
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -15,4 +15,6 @@ exports.WorkloadKind = {
|
|
|
15
15
|
preview_deployment: 'preview_deployment',
|
|
16
16
|
postgres_schema: 'postgres_schema',
|
|
17
17
|
image_builder: 'image_builder',
|
|
18
|
+
web_remote_builder: 'web_remote_builder',
|
|
19
|
+
app_function_host: 'app_function_host',
|
|
18
20
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Workload Runtime API
|
|
5
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
5
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
8
|
export type WorkloadState = typeof WorkloadState[keyof typeof WorkloadState];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Generated by orval v8.
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
* Workload Runtime API
|
|
6
|
-
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
6
|
+
* Declarative workload scheduling for biome sidecars, biome APIs,
|
|
7
7
|
* OpenAPI spec version: 0.1.0
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/package.json
CHANGED
|
@@ -1,17 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/workload-runtime-api-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/xema-dev/xema-base.git",
|
|
7
|
+
"directory": "packages/clients/workload-runtime-api"
|
|
8
|
+
},
|
|
9
|
+
"license": "LicenseRef-Xema-BSL-1.1",
|
|
4
10
|
"main": "./dist/index.js",
|
|
5
11
|
"types": "./dist/index.d.ts",
|
|
6
12
|
"files": [
|
|
7
13
|
"dist"
|
|
8
14
|
],
|
|
9
15
|
"publishConfig": {
|
|
10
|
-
"
|
|
16
|
+
"access": "public",
|
|
17
|
+
"registry": "https://registry.npmjs.org/"
|
|
11
18
|
},
|
|
12
19
|
"devDependencies": {
|
|
13
20
|
"typescript": "5.9.3"
|
|
14
21
|
},
|
|
22
|
+
"xema": {
|
|
23
|
+
"kind": "api-client",
|
|
24
|
+
"surface": "public",
|
|
25
|
+
"service": "workload-runtime-api",
|
|
26
|
+
"biome": "workload-runtime",
|
|
27
|
+
"target": "server",
|
|
28
|
+
"generator": "@xemahq/api-client-generator@0.2.0",
|
|
29
|
+
"source": "openapi.public.json"
|
|
30
|
+
},
|
|
15
31
|
"scripts": {
|
|
16
32
|
"build": "tsc -p tsconfig.json"
|
|
17
33
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @summary Health check
|
|
3
|
-
*/
|
|
4
|
-
export declare const getHealthControllerCheckUrl: () => string;
|
|
5
|
-
export declare const healthControllerCheck: (options?: RequestInit) => Promise<void>;
|
|
6
|
-
/**
|
|
7
|
-
* @summary Liveness probe
|
|
8
|
-
*/
|
|
9
|
-
export declare const getHealthControllerLiveUrl: () => string;
|
|
10
|
-
export declare const healthControllerLive: (options?: RequestInit) => Promise<void>;
|
|
11
|
-
/**
|
|
12
|
-
* @summary Readiness probe — checks database connectivity
|
|
13
|
-
*/
|
|
14
|
-
export declare const getHealthControllerReadyUrl: () => string;
|
|
15
|
-
export declare const healthControllerReady: (options?: RequestInit) => Promise<void>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.healthControllerReady = exports.getHealthControllerReadyUrl = exports.healthControllerLive = exports.getHealthControllerLiveUrl = exports.healthControllerCheck = exports.getHealthControllerCheckUrl = 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
|
-
* @summary Health check
|
|
14
|
-
*/
|
|
15
|
-
const getHealthControllerCheckUrl = () => {
|
|
16
|
-
return `/health`;
|
|
17
|
-
};
|
|
18
|
-
exports.getHealthControllerCheckUrl = getHealthControllerCheckUrl;
|
|
19
|
-
const healthControllerCheck = async (options) => {
|
|
20
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getHealthControllerCheckUrl)(), {
|
|
21
|
-
...options,
|
|
22
|
-
method: 'GET'
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
exports.healthControllerCheck = healthControllerCheck;
|
|
26
|
-
/**
|
|
27
|
-
* @summary Liveness probe
|
|
28
|
-
*/
|
|
29
|
-
const getHealthControllerLiveUrl = () => {
|
|
30
|
-
return `/health/live`;
|
|
31
|
-
};
|
|
32
|
-
exports.getHealthControllerLiveUrl = getHealthControllerLiveUrl;
|
|
33
|
-
const healthControllerLive = async (options) => {
|
|
34
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getHealthControllerLiveUrl)(), {
|
|
35
|
-
...options,
|
|
36
|
-
method: 'GET'
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
exports.healthControllerLive = healthControllerLive;
|
|
40
|
-
/**
|
|
41
|
-
* @summary Readiness probe — checks database connectivity
|
|
42
|
-
*/
|
|
43
|
-
const getHealthControllerReadyUrl = () => {
|
|
44
|
-
return `/health/ready`;
|
|
45
|
-
};
|
|
46
|
-
exports.getHealthControllerReadyUrl = getHealthControllerReadyUrl;
|
|
47
|
-
const healthControllerReady = async (options) => {
|
|
48
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getHealthControllerReadyUrl)(), {
|
|
49
|
-
...options,
|
|
50
|
-
method: 'GET'
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
exports.healthControllerReady = healthControllerReady;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Service-to-service endpoint fired by the workload-reconcile Temporal Schedule. Runs a full reconcile sweep and returns the per-category counts.
|
|
3
|
-
* @summary Run one workload reconcile sweep
|
|
4
|
-
*/
|
|
5
|
-
export declare const getInternalReconcileControllerTickUrl: () => string;
|
|
6
|
-
export declare const internalReconcileControllerTick: (options?: RequestInit) => Promise<void>;
|