@xemahq/workload-runtime-api-client 0.1.1 → 0.2.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.
Files changed (107) hide show
  1. package/LICENSE +174 -1
  2. package/README.md +62 -0
  3. package/dist/custom-fetch.d.ts +6 -28
  4. package/dist/custom-fetch.js +14 -29
  5. package/dist/endpoints/runner-operations/runner-operations.d.ts +14 -0
  6. package/dist/endpoints/runner-operations/runner-operations.js +75 -0
  7. package/dist/index.d.ts +1 -5
  8. package/dist/index.js +2 -6
  9. package/dist/models/index.d.ts +11 -34
  10. package/dist/models/index.js +11 -34
  11. package/dist/models/paginationMeta.d.ts +1 -1
  12. package/dist/models/paginationMeta.js +1 -1
  13. package/dist/models/runnerJobDeliveryState.d.ts +17 -0
  14. package/dist/models/runnerJobDeliveryState.js +19 -0
  15. package/dist/models/runnerJobManagementControllerListParams.d.ts +14 -0
  16. package/dist/models/{runnerJobsControllerListState.d.ts → runnerJobManagementControllerListState.d.ts} +3 -3
  17. package/dist/models/{runnerJobsControllerListState.js → runnerJobManagementControllerListState.js} +3 -3
  18. package/dist/models/runnerJobState.d.ts +1 -1
  19. package/dist/models/runnerJobState.js +1 -1
  20. package/dist/models/runnerJobSummaryDto.d.ts +27 -0
  21. package/dist/models/{runnerJobDtoPaginatedEnvelope.d.ts → runnerJobSummaryDtoPaginatedEnvelope.d.ts} +5 -5
  22. package/dist/models/{workloadsControllerListKind.d.ts → runnerWorkloadManagementControllerListKind.d.ts} +5 -3
  23. package/dist/models/{workloadsControllerListKind.js → runnerWorkloadManagementControllerListKind.js} +5 -3
  24. package/dist/models/runnerWorkloadManagementControllerListParams.d.ts +17 -0
  25. package/dist/models/{workloadsControllerListState.d.ts → runnerWorkloadManagementControllerListState.d.ts} +3 -3
  26. package/dist/models/{workloadsControllerListState.js → runnerWorkloadManagementControllerListState.js} +3 -3
  27. package/dist/models/runnerWorkloadSummaryDto.d.ts +22 -0
  28. package/dist/models/{workloadConnectionInfoDto.d.ts → runnerWorkloadSummaryDtoDataEnvelope.d.ts} +4 -5
  29. package/dist/models/{workloadInstanceDtoPaginatedEnvelope.d.ts → runnerWorkloadSummaryDtoPaginatedEnvelope.d.ts} +5 -5
  30. package/dist/models/workloadHealthConditionDto.d.ts +1 -1
  31. package/dist/models/workloadHealthConditionDtoStatus.d.ts +1 -1
  32. package/dist/models/workloadHealthConditionDtoStatus.js +1 -1
  33. package/dist/models/workloadHealthSnapshotDto.d.ts +1 -1
  34. package/dist/models/workloadKind.d.ts +3 -1
  35. package/dist/models/workloadKind.js +3 -1
  36. package/dist/models/workloadState.d.ts +1 -1
  37. package/dist/models/workloadState.js +1 -1
  38. package/package.json +12 -2
  39. package/dist/endpoints/health/health.d.ts +0 -15
  40. package/dist/endpoints/health/health.js +0 -53
  41. package/dist/endpoints/internal/internal.d.ts +0 -6
  42. package/dist/endpoints/internal/internal.js +0 -26
  43. package/dist/endpoints/internal-/342/200/224-build-container-image/internal-/342/200/224-build-container-image.d.ts +0 -14
  44. package/dist/endpoints/internal-/342/200/224-build-container-image/internal-/342/200/224-build-container-image.js +0 -21
  45. package/dist/endpoints/runner-jobs/runner-jobs.d.ts +0 -37
  46. package/dist/endpoints/runner-jobs/runner-jobs.js +0 -101
  47. package/dist/endpoints/workloads/workloads.d.ts +0 -45
  48. package/dist/endpoints/workloads/workloads.js +0 -125
  49. package/dist/models/createRunnerJobDto.d.ts +0 -27
  50. package/dist/models/createRunnerJobDto.js +0 -9
  51. package/dist/models/runKanikoRequestDto.d.ts +0 -30
  52. package/dist/models/runKanikoRequestDtoBuildArgs.d.ts +0 -10
  53. package/dist/models/runKanikoRequestDtoBuildArgs.js +0 -9
  54. package/dist/models/runKanikoResponseDto.d.ts +0 -13
  55. package/dist/models/runKanikoResponseDto.js +0 -9
  56. package/dist/models/runnerJobDto.d.ts +0 -30
  57. package/dist/models/runnerJobDtoOutput.d.ts +0 -14
  58. package/dist/models/runnerJobDtoOutput.js +0 -9
  59. package/dist/models/runnerJobReportDto.d.ts +0 -23
  60. package/dist/models/runnerJobReportDtoOutput.d.ts +0 -13
  61. package/dist/models/runnerJobReportDtoOutput.js +0 -9
  62. package/dist/models/runnerJobsControllerListParams.d.ts +0 -14
  63. package/dist/models/workloadConnectionInfoDto.js +0 -9
  64. package/dist/models/workloadDescriptorDto.d.ts +0 -33
  65. package/dist/models/workloadDescriptorDtoCapabilitiesItem.d.ts +0 -12
  66. package/dist/models/workloadDescriptorDtoCapabilitiesItemKind.d.ts +0 -14
  67. package/dist/models/workloadDescriptorDtoCapabilitiesItemKind.js +0 -16
  68. package/dist/models/workloadDescriptorDtoSpec.d.ts +0 -13
  69. package/dist/models/workloadDescriptorDtoSpec.js +0 -9
  70. package/dist/models/workloadEndpointDto.d.ts +0 -11
  71. package/dist/models/workloadEndpointDto.js +0 -9
  72. package/dist/models/workloadGatewayRouteDto.d.ts +0 -22
  73. package/dist/models/workloadGatewayRouteDto.js +0 -2
  74. package/dist/models/workloadGatewayRouteDtoAuthParams.d.ts +0 -13
  75. package/dist/models/workloadGatewayRouteDtoAuthParams.js +0 -9
  76. package/dist/models/workloadGatewayRouteDtoAuthScheme.d.ts +0 -14
  77. package/dist/models/workloadGatewayRouteDtoAuthScheme.js +0 -13
  78. package/dist/models/workloadIngressSourceDto.d.ts +0 -11
  79. package/dist/models/workloadIngressSourceDto.js +0 -9
  80. package/dist/models/workloadInstanceDto.d.ts +0 -36
  81. package/dist/models/workloadInstanceDto.js +0 -2
  82. package/dist/models/workloadInstanceDtoPaginatedEnvelope.js +0 -2
  83. package/dist/models/workloadInstanceDtoSubjectLabels.d.ts +0 -10
  84. package/dist/models/workloadInstanceDtoSubjectLabels.js +0 -9
  85. package/dist/models/workloadLifecycleDto.d.ts +0 -12
  86. package/dist/models/workloadLifecycleDto.js +0 -9
  87. package/dist/models/workloadNetworkDto.d.ts +0 -12
  88. package/dist/models/workloadNetworkDto.js +0 -2
  89. package/dist/models/workloadNodeAffinityDto.d.ts +0 -10
  90. package/dist/models/workloadNodeAffinityDto.js +0 -9
  91. package/dist/models/workloadTarget.d.ts +0 -11
  92. package/dist/models/workloadTarget.js +0 -13
  93. package/dist/models/workloadTenancyDto.d.ts +0 -15
  94. package/dist/models/workloadTenancyDto.js +0 -2
  95. package/dist/models/workloadTenancyDtoSubjectLabels.d.ts +0 -10
  96. package/dist/models/workloadTenancyDtoSubjectLabels.js +0 -9
  97. package/dist/models/workloadVolumeMountDto.d.ts +0 -16
  98. package/dist/models/workloadVolumeMountDto.js +0 -9
  99. package/dist/models/workloadsControllerListParams.d.ts +0 -18
  100. package/dist/models/workloadsControllerListParams.js +0 -2
  101. /package/dist/models/{runKanikoRequestDto.js → runnerJobManagementControllerListParams.js} +0 -0
  102. /package/dist/models/{runnerJobDto.js → runnerJobSummaryDto.js} +0 -0
  103. /package/dist/models/{runnerJobDtoPaginatedEnvelope.js → runnerJobSummaryDtoPaginatedEnvelope.js} +0 -0
  104. /package/dist/models/{runnerJobReportDto.js → runnerWorkloadManagementControllerListParams.js} +0 -0
  105. /package/dist/models/{runnerJobsControllerListParams.js → runnerWorkloadSummaryDto.js} +0 -0
  106. /package/dist/models/{workloadDescriptorDto.js → runnerWorkloadSummaryDtoDataEnvelope.js} +0 -0
  107. /package/dist/models/{workloadDescriptorDtoCapabilitiesItem.js → runnerWorkloadSummaryDtoPaginatedEnvelope.js} +0 -0
@@ -0,0 +1,17 @@
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,
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.6.2 🍺
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.6.2 🍺
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';
9
+ export type RunnerJobManagementControllerListParams = {
10
+ runnerId?: string;
11
+ cursor?: string;
12
+ limit?: number;
13
+ state?: RunnerJobManagementControllerListState;
14
+ };
@@ -2,11 +2,11 @@
2
2
  * Generated by orval v8.6.2 🍺
3
3
  * Do not edit manually.
4
4
  * Workload Runtime API
5
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
5
+ * Declarative workload scheduling for biome sidecars, biome APIs,
6
6
  * OpenAPI spec version: 0.1.0
7
7
  */
8
- export type RunnerJobsControllerListState = typeof RunnerJobsControllerListState[keyof typeof RunnerJobsControllerListState];
9
- export declare const RunnerJobsControllerListState: {
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";
@@ -3,12 +3,12 @@
3
3
  * Generated by orval v8.6.2 🍺
4
4
  * Do not edit manually.
5
5
  * Workload Runtime API
6
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
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.RunnerJobsControllerListState = void 0;
11
- exports.RunnerJobsControllerListState = {
10
+ exports.RunnerJobManagementControllerListState = void 0;
11
+ exports.RunnerJobManagementControllerListState = {
12
12
  pending: 'pending',
13
13
  dispatched: 'dispatched',
14
14
  accepted: 'accepted',
@@ -2,7 +2,7 @@
2
2
  * Generated by orval v8.6.2 🍺
3
3
  * Do not edit manually.
4
4
  * Workload Runtime API
5
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
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];
@@ -3,7 +3,7 @@
3
3
  * Generated by orval v8.6.2 🍺
4
4
  * Do not edit manually.
5
5
  * Workload Runtime API
6
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
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.6.2 🍺
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';
9
+ import type { RunnerJobState } from './runnerJobState';
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
+ }
@@ -2,12 +2,12 @@
2
2
  * Generated by orval v8.6.2 🍺
3
3
  * Do not edit manually.
4
4
  * Workload Runtime API
5
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
5
+ * Declarative workload scheduling for biome sidecars, biome APIs,
6
6
  * OpenAPI spec version: 0.1.0
7
7
  */
8
8
  import type { PaginationMeta } from './paginationMeta';
9
- import type { RunnerJobDto } from './runnerJobDto';
10
- export interface RunnerJobDtoPaginatedEnvelope {
11
- data: RunnerJobDto[];
12
- pagination?: PaginationMeta;
9
+ import type { RunnerJobSummaryDto } from './runnerJobSummaryDto';
10
+ export interface RunnerJobSummaryDtoPaginatedEnvelope {
11
+ data: RunnerJobSummaryDto[];
12
+ pagination: PaginationMeta;
13
13
  }
@@ -2,15 +2,17 @@
2
2
  * Generated by orval v8.6.2 🍺
3
3
  * Do not edit manually.
4
4
  * Workload Runtime API
5
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
5
+ * Declarative workload scheduling for biome sidecars, biome APIs,
6
6
  * OpenAPI spec version: 0.1.0
7
7
  */
8
- export type WorkloadsControllerListKind = typeof WorkloadsControllerListKind[keyof typeof WorkloadsControllerListKind];
9
- export declare const WorkloadsControllerListKind: {
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
  };
@@ -3,16 +3,18 @@
3
3
  * Generated by orval v8.6.2 🍺
4
4
  * Do not edit manually.
5
5
  * Workload Runtime API
6
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
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.WorkloadsControllerListKind = void 0;
11
- exports.WorkloadsControllerListKind = {
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.6.2 🍺
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';
9
+ import type { RunnerWorkloadManagementControllerListState } from './runnerWorkloadManagementControllerListState';
10
+ export type RunnerWorkloadManagementControllerListParams = {
11
+ projectId?: string;
12
+ ownerKey?: string;
13
+ cursor?: string;
14
+ limit?: number;
15
+ state?: RunnerWorkloadManagementControllerListState;
16
+ kind?: RunnerWorkloadManagementControllerListKind;
17
+ };
@@ -2,11 +2,11 @@
2
2
  * Generated by orval v8.6.2 🍺
3
3
  * Do not edit manually.
4
4
  * Workload Runtime API
5
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
5
+ * Declarative workload scheduling for biome sidecars, biome APIs,
6
6
  * OpenAPI spec version: 0.1.0
7
7
  */
8
- export type WorkloadsControllerListState = typeof WorkloadsControllerListState[keyof typeof WorkloadsControllerListState];
9
- export declare const WorkloadsControllerListState: {
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";
@@ -3,12 +3,12 @@
3
3
  * Generated by orval v8.6.2 🍺
4
4
  * Do not edit manually.
5
5
  * Workload Runtime API
6
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
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.WorkloadsControllerListState = void 0;
11
- exports.WorkloadsControllerListState = {
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.6.2 🍺
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';
9
+ import type { WorkloadKind } from './workloadKind';
10
+ import type { WorkloadState } from './workloadState';
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
+ }
@@ -2,11 +2,10 @@
2
2
  * Generated by orval v8.6.2 🍺
3
3
  * Do not edit manually.
4
4
  * Workload Runtime API
5
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
5
+ * Declarative workload scheduling for biome sidecars, biome APIs,
6
6
  * OpenAPI spec version: 0.1.0
7
7
  */
8
- export interface WorkloadConnectionInfoDto {
9
- schemaName: string;
10
- roleName: string;
11
- secretRef: string;
8
+ import type { RunnerWorkloadSummaryDto } from './runnerWorkloadSummaryDto';
9
+ export interface RunnerWorkloadSummaryDtoDataEnvelope {
10
+ data: RunnerWorkloadSummaryDto;
12
11
  }
@@ -2,12 +2,12 @@
2
2
  * Generated by orval v8.6.2 🍺
3
3
  * Do not edit manually.
4
4
  * Workload Runtime API
5
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
5
+ * Declarative workload scheduling for biome sidecars, biome APIs,
6
6
  * OpenAPI spec version: 0.1.0
7
7
  */
8
8
  import type { PaginationMeta } from './paginationMeta';
9
- import type { WorkloadInstanceDto } from './workloadInstanceDto';
10
- export interface WorkloadInstanceDtoPaginatedEnvelope {
11
- data: WorkloadInstanceDto[];
12
- pagination?: PaginationMeta;
9
+ import type { RunnerWorkloadSummaryDto } from './runnerWorkloadSummaryDto';
10
+ export interface RunnerWorkloadSummaryDtoPaginatedEnvelope {
11
+ data: RunnerWorkloadSummaryDto[];
12
+ pagination: PaginationMeta;
13
13
  }
@@ -2,7 +2,7 @@
2
2
  * Generated by orval v8.6.2 🍺
3
3
  * Do not edit manually.
4
4
  * Workload Runtime API
5
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
5
+ * Declarative workload scheduling for biome sidecars, biome APIs,
6
6
  * OpenAPI spec version: 0.1.0
7
7
  */
8
8
  import type { WorkloadHealthConditionDtoStatus } from './workloadHealthConditionDtoStatus';
@@ -2,7 +2,7 @@
2
2
  * Generated by orval v8.6.2 🍺
3
3
  * Do not edit manually.
4
4
  * Workload Runtime API
5
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
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];
@@ -3,7 +3,7 @@
3
3
  * Generated by orval v8.6.2 🍺
4
4
  * Do not edit manually.
5
5
  * Workload Runtime API
6
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
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 });
@@ -2,7 +2,7 @@
2
2
  * Generated by orval v8.6.2 🍺
3
3
  * Do not edit manually.
4
4
  * Workload Runtime API
5
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
5
+ * Declarative workload scheduling for biome sidecars, biome APIs,
6
6
  * OpenAPI spec version: 0.1.0
7
7
  */
8
8
  import type { WorkloadHealthConditionDto } from './workloadHealthConditionDto';
@@ -2,7 +2,7 @@
2
2
  * Generated by orval v8.6.2 🍺
3
3
  * Do not edit manually.
4
4
  * Workload Runtime API
5
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
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
  };
@@ -3,7 +3,7 @@
3
3
  * Generated by orval v8.6.2 🍺
4
4
  * Do not edit manually.
5
5
  * Workload Runtime API
6
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
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
  };
@@ -2,7 +2,7 @@
2
2
  * Generated by orval v8.6.2 🍺
3
3
  * Do not edit manually.
4
4
  * Workload Runtime API
5
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
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];
@@ -3,7 +3,7 @@
3
3
  * Generated by orval v8.6.2 🍺
4
4
  * Do not edit manually.
5
5
  * Workload Runtime API
6
- * Declarative workload scheduling for biome sidecars, biome APIs, opencode workers, previews, and DB schemas.
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,27 @@
1
1
  {
2
2
  "name": "@xemahq/workload-runtime-api-client",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "publishConfig": {
10
- "registry": "https://npm.pkg.github.com"
10
+ "access": "public",
11
+ "registry": "https://registry.npmjs.org/"
11
12
  },
12
13
  "devDependencies": {
13
14
  "typescript": "5.9.3"
14
15
  },
16
+ "xema": {
17
+ "kind": "api-client",
18
+ "surface": "public",
19
+ "service": "workload-runtime-api",
20
+ "biome": "workload-runtime",
21
+ "target": "server",
22
+ "generator": "@xemahq/api-client-generator@0.2.0",
23
+ "source": "openapi.public.json"
24
+ },
15
25
  "scripts": {
16
26
  "build": "tsc -p tsconfig.json"
17
27
  }
@@ -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>;
@@ -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>;