@xemahq/biome-host-api-client 0.3.7 → 0.3.10

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 (48) hide show
  1. package/dist/custom-fetch.d.ts +22 -0
  2. package/dist/custom-fetch.js +27 -0
  3. package/dist/endpoints/execution-targets/execution-targets.d.ts +21 -0
  4. package/dist/endpoints/execution-targets/execution-targets.js +50 -0
  5. package/dist/endpoints/platform-runner-enrollments/platform-runner-enrollments.d.ts +10 -10
  6. package/dist/endpoints/platform-runner-enrollments/platform-runner-enrollments.js +20 -20
  7. package/dist/endpoints/runner-enrollments/runner-enrollments.d.ts +8 -8
  8. package/dist/endpoints/runner-enrollments/runner-enrollments.js +16 -16
  9. package/dist/index.d.ts +1 -1
  10. package/dist/index.js +1 -1
  11. package/dist/models/createExecutionTargetDto.d.ts +40 -0
  12. package/dist/models/createExecutionTargetDtoLabels.d.ts +11 -0
  13. package/dist/models/createExecutionTargetDtoLabels.js +7 -0
  14. package/dist/models/createRunnerEnrollmentDto.d.ts +2 -0
  15. package/dist/models/createRuntimeBindingDto.d.ts +1 -1
  16. package/dist/models/dataClassification.d.ts +16 -0
  17. package/dist/models/dataClassification.js +15 -0
  18. package/dist/models/executionTargetResponseDto.d.ts +49 -0
  19. package/dist/models/executionTargetResponseDtoDataArrayEnvelope.d.ts +9 -0
  20. package/dist/models/executionTargetResponseDtoDataArrayEnvelope.js +2 -0
  21. package/dist/models/executionTargetResponseDtoDataEnvelope.d.ts +9 -0
  22. package/dist/models/executionTargetResponseDtoDataEnvelope.js +2 -0
  23. package/dist/models/executionTargetResponseDtoLabels.d.ts +11 -0
  24. package/dist/models/executionTargetResponseDtoLabels.js +7 -0
  25. package/dist/models/{runtimeResponseDtoStatus.d.ts → executionTargetStatus.d.ts} +2 -2
  26. package/dist/models/{runtimeResponseDtoStatus.js → executionTargetStatus.js} +2 -2
  27. package/dist/models/index.d.ts +13 -3
  28. package/dist/models/index.js +13 -3
  29. package/dist/models/runnerEnrollmentManagementResponseDto.d.ts +4 -1
  30. package/dist/models/runnerEnrollmentResponseDto.d.ts +4 -1
  31. package/dist/models/runnerKind.d.ts +18 -0
  32. package/dist/models/runnerKind.js +17 -0
  33. package/dist/models/runtimeBindingResponseDto.d.ts +2 -2
  34. package/dist/models/runtimeIsolationLevel.d.ts +15 -0
  35. package/dist/models/runtimeIsolationLevel.js +14 -0
  36. package/dist/models/spaceKind.d.ts +18 -0
  37. package/dist/models/spaceKind.js +17 -0
  38. package/dist/models/updateExecutionTargetDto.d.ts +27 -0
  39. package/dist/models/updateExecutionTargetDto.js +2 -0
  40. package/dist/models/updateExecutionTargetDtoLabels.d.ts +11 -0
  41. package/dist/models/updateExecutionTargetDtoLabels.js +7 -0
  42. package/package.json +2 -2
  43. package/dist/endpoints/biome-runtimes/biome-runtimes.d.ts +0 -11
  44. package/dist/endpoints/biome-runtimes/biome-runtimes.js +0 -18
  45. package/dist/models/runtimeResponseDto.d.ts +0 -34
  46. package/dist/models/runtimeResponseDtoDataArrayEnvelope.d.ts +0 -9
  47. /package/dist/models/{runtimeResponseDto.js → createExecutionTargetDto.js} +0 -0
  48. /package/dist/models/{runtimeResponseDtoDataArrayEnvelope.js → executionTargetResponseDto.js} +0 -0
@@ -47,6 +47,28 @@ export interface ClientConfig {
47
47
  getAuthToken?: () => Promise<string>;
48
48
  /** Optional callback returning headers to inject on every request. Per-call headers take precedence. */
49
49
  getHeaders?: () => Record<string, string> | Promise<Record<string, string>>;
50
+ /**
51
+ * Optional resolver for the CORRELATION ID of the request being made — the
52
+ * handle that ties one causal chain together across every service hop.
53
+ *
54
+ * WHY IT IS A CALLBACK AND NOT A VALUE. `ClientConfig` is process-global
55
+ * (`configureClient` is called once at wiring time), and a correlation id is
56
+ * per-request. This is invoked INSIDE the request, so a server can point it
57
+ * at whatever carries its ambient request context and get the CURRENT id
58
+ * rather than the one that happened to be live at boot.
59
+ *
60
+ * WHY THE TRANSPORT DOES NOT MINT ONE. Returning `undefined` sends no header,
61
+ * and the receiving service's `RequestContextMiddleware` mints its own — a
62
+ * new trace, which is honest. A transport that minted per call would produce
63
+ * a FRESH id on every hop while looking like propagation, which is strictly
64
+ * worse than none: every row would carry a correlation id and no two rows
65
+ * that belong together would share one. That is the exact defect this exists
66
+ * to fix, so the transport must not reproduce it one layer down.
67
+ *
68
+ * A caller-supplied `X-Correlation-Id` header always wins, and so does one
69
+ * from `getHeaders`.
70
+ */
71
+ getCorrelationId?: () => string | undefined | Promise<string | undefined>;
50
72
  /**
51
73
  * Optional callback invoked on a 401 before ONE re-attempt. Supplying it is
52
74
  * what opts this client into that re-attempt; without it a 401 comes back to
@@ -89,6 +89,16 @@ function getClientConfig() {
89
89
  */
90
90
  /** The only statuses that state the request was NOT processed. See above. */
91
91
  const RETRYABLE_STATUSES = [429, 503];
92
+ /**
93
+ * The platform's correlation header, spelled once.
94
+ *
95
+ * Value-identical to what `RequestContextMiddleware` reads in
96
+ * `@xemahq/platform-common`. It is a literal here rather than an import
97
+ * because this file has ZERO imports on purpose: it ships byte-identical into
98
+ * browser-target clients as well as server-target ones, and a dependency on a
99
+ * NestJS-peer package would follow it into every one of them.
100
+ */
101
+ const CORRELATION_ID_HEADER = 'X-Correlation-Id';
92
102
  /** Backoff floor, doubling per attempt up to {@link MAX_BACKOFF_MS}. */
93
103
  const BASE_BACKOFF_MS = 1000;
94
104
  /** Ceiling on a single backoff, however many attempts have elapsed. */
@@ -104,6 +114,23 @@ async function buildHeaders(config, callerHeaders) {
104
114
  }
105
115
  }
106
116
  }
117
+ // Correlation id (caller and global headers still take precedence).
118
+ //
119
+ // Without this, every server-to-server hop through a generated client started
120
+ // a NEW trace: the id is read-or-minted per hop by the receiving service's
121
+ // RequestContextMiddleware, and nothing carried it outbound — so an audit
122
+ // journal could record a whole causal chain and offer no way to join it back
123
+ // together.
124
+ //
125
+ // Absent resolver, or a resolver that answers `undefined`: NO header. The
126
+ // receiver mints and a new trace begins, which is the truthful outcome when
127
+ // there is nothing to continue.
128
+ if (config.getCorrelationId && !headers.has(CORRELATION_ID_HEADER)) {
129
+ const correlationId = await Promise.resolve(config.getCorrelationId());
130
+ if (correlationId) {
131
+ headers.set(CORRELATION_ID_HEADER, correlationId);
132
+ }
133
+ }
107
134
  // Auth token (caller or global headers take precedence)
108
135
  if (config.getAuthToken && !headers.has('Authorization')) {
109
136
  const token = await config.getAuthToken();
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Biome Host API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ import type { CreateExecutionTargetDto, ExecutionTargetResponseDtoDataArrayEnvelope, ExecutionTargetResponseDtoDataEnvelope, UpdateExecutionTargetDto } from '../../models';
7
+ export declare const getExecutionTargetsControllerListUrl: () => string;
8
+ /**
9
+ * @summary List every execution target visible to this organisation, across owner spaces
10
+ */
11
+ export declare const executionTargetsControllerList: (options?: RequestInit) => Promise<ExecutionTargetResponseDtoDataArrayEnvelope>;
12
+ export declare const getExecutionTargetsControllerCreateUrl: () => string;
13
+ /**
14
+ * @summary Declare an execution target owned by this organisation's Space
15
+ */
16
+ export declare const executionTargetsControllerCreate: (createExecutionTargetDto: CreateExecutionTargetDto, options?: RequestInit) => Promise<ExecutionTargetResponseDtoDataEnvelope>;
17
+ export declare const getExecutionTargetsControllerUpdateUrl: (slug: string) => string;
18
+ /**
19
+ * @summary Patch the mutable subset of an execution target this organisation owns
20
+ */
21
+ export declare const executionTargetsControllerUpdate: (slug: string, updateExecutionTargetDto: UpdateExecutionTargetDto, options?: RequestInit) => Promise<ExecutionTargetResponseDtoDataEnvelope>;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.executionTargetsControllerUpdate = exports.getExecutionTargetsControllerUpdateUrl = exports.executionTargetsControllerCreate = exports.getExecutionTargetsControllerCreateUrl = exports.executionTargetsControllerList = exports.getExecutionTargetsControllerListUrl = void 0;
4
+ const custom_fetch_1 = require("../../custom-fetch");
5
+ const getExecutionTargetsControllerListUrl = () => {
6
+ return `/execution-targets`;
7
+ };
8
+ exports.getExecutionTargetsControllerListUrl = getExecutionTargetsControllerListUrl;
9
+ /**
10
+ * @summary List every execution target visible to this organisation, across owner spaces
11
+ */
12
+ const executionTargetsControllerList = async (options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getExecutionTargetsControllerListUrl)(), {
14
+ ...options,
15
+ method: 'GET'
16
+ });
17
+ };
18
+ exports.executionTargetsControllerList = executionTargetsControllerList;
19
+ const getExecutionTargetsControllerCreateUrl = () => {
20
+ return `/execution-targets`;
21
+ };
22
+ exports.getExecutionTargetsControllerCreateUrl = getExecutionTargetsControllerCreateUrl;
23
+ /**
24
+ * @summary Declare an execution target owned by this organisation's Space
25
+ */
26
+ const executionTargetsControllerCreate = async (createExecutionTargetDto, options) => {
27
+ return (0, custom_fetch_1.customFetch)((0, exports.getExecutionTargetsControllerCreateUrl)(), {
28
+ ...options,
29
+ method: 'POST',
30
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
31
+ body: JSON.stringify(createExecutionTargetDto)
32
+ });
33
+ };
34
+ exports.executionTargetsControllerCreate = executionTargetsControllerCreate;
35
+ const getExecutionTargetsControllerUpdateUrl = (slug) => {
36
+ return `/execution-targets/${slug}`;
37
+ };
38
+ exports.getExecutionTargetsControllerUpdateUrl = getExecutionTargetsControllerUpdateUrl;
39
+ /**
40
+ * @summary Patch the mutable subset of an execution target this organisation owns
41
+ */
42
+ const executionTargetsControllerUpdate = async (slug, updateExecutionTargetDto, options) => {
43
+ return (0, custom_fetch_1.customFetch)((0, exports.getExecutionTargetsControllerUpdateUrl)(slug), {
44
+ ...options,
45
+ method: 'PATCH',
46
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
47
+ body: JSON.stringify(updateExecutionTargetDto)
48
+ });
49
+ };
50
+ exports.executionTargetsControllerUpdate = executionTargetsControllerUpdate;
@@ -4,28 +4,28 @@
4
4
  * OpenAPI spec version: 0.1.1
5
5
  */
6
6
  import type { BreakGlassRevokeRunnerEnrollmentDto, CreateRunnerEnrollmentDto, RotateRunnerEnrollmentDto, RunnerEnrollmentManagementResponseDtoDataArrayEnvelope, RunnerEnrollmentManagementResponseDtoDataEnvelope, RunnerEnrollmentManagementRotationResponseDtoDataEnvelope } from '../../models';
7
- export declare const getPlatformRunnerEnrollmentsControllerListUrl: (runtimeId: string) => string;
7
+ export declare const getPlatformRunnerEnrollmentsControllerListUrl: (executionTargetId: string) => string;
8
8
  /**
9
9
  * @summary List enrollments for an ownerless platform runtime
10
10
  */
11
- export declare const platformRunnerEnrollmentsControllerList: (runtimeId: string, options?: RequestInit) => Promise<RunnerEnrollmentManagementResponseDtoDataArrayEnvelope>;
12
- export declare const getPlatformRunnerEnrollmentsControllerCreateUrl: (runtimeId: string) => string;
11
+ export declare const platformRunnerEnrollmentsControllerList: (executionTargetId: string, options?: RequestInit) => Promise<RunnerEnrollmentManagementResponseDtoDataArrayEnvelope>;
12
+ export declare const getPlatformRunnerEnrollmentsControllerCreateUrl: (executionTargetId: string) => string;
13
13
  /**
14
14
  * @summary Create an enrollment for an ownerless platform runtime
15
15
  */
16
- export declare const platformRunnerEnrollmentsControllerCreate: (runtimeId: string, createRunnerEnrollmentDto: CreateRunnerEnrollmentDto, options?: RequestInit) => Promise<RunnerEnrollmentManagementResponseDtoDataEnvelope>;
17
- export declare const getPlatformRunnerEnrollmentsControllerRotateUrl: (runtimeId: string, enrollmentId: string) => string;
16
+ export declare const platformRunnerEnrollmentsControllerCreate: (executionTargetId: string, createRunnerEnrollmentDto: CreateRunnerEnrollmentDto, options?: RequestInit) => Promise<RunnerEnrollmentManagementResponseDtoDataEnvelope>;
17
+ export declare const getPlatformRunnerEnrollmentsControllerRotateUrl: (executionTargetId: string, enrollmentId: string) => string;
18
18
  /**
19
19
  * @summary Issue a successor platform runner credential
20
20
  */
21
- export declare const platformRunnerEnrollmentsControllerRotate: (runtimeId: string, enrollmentId: string, rotateRunnerEnrollmentDto: RotateRunnerEnrollmentDto, options?: RequestInit) => Promise<RunnerEnrollmentManagementRotationResponseDtoDataEnvelope>;
22
- export declare const getPlatformRunnerEnrollmentsControllerDrainUrl: (runtimeId: string, enrollmentId: string) => string;
21
+ export declare const platformRunnerEnrollmentsControllerRotate: (executionTargetId: string, enrollmentId: string, rotateRunnerEnrollmentDto: RotateRunnerEnrollmentDto, options?: RequestInit) => Promise<RunnerEnrollmentManagementRotationResponseDtoDataEnvelope>;
22
+ export declare const getPlatformRunnerEnrollmentsControllerDrainUrl: (executionTargetId: string, enrollmentId: string) => string;
23
23
  /**
24
24
  * @summary Stop new work and begin platform enrollment revocation
25
25
  */
26
- export declare const platformRunnerEnrollmentsControllerDrain: (runtimeId: string, enrollmentId: string, options?: RequestInit) => Promise<RunnerEnrollmentManagementResponseDtoDataEnvelope>;
27
- export declare const getPlatformRunnerEnrollmentsControllerBreakGlassRevokeUrl: (runtimeId: string, enrollmentId: string) => string;
26
+ export declare const platformRunnerEnrollmentsControllerDrain: (executionTargetId: string, enrollmentId: string, options?: RequestInit) => Promise<RunnerEnrollmentManagementResponseDtoDataEnvelope>;
27
+ export declare const getPlatformRunnerEnrollmentsControllerBreakGlassRevokeUrl: (executionTargetId: string, enrollmentId: string) => string;
28
28
  /**
29
29
  * @summary Immediately fence and revoke an enrollment with a durable security audit and alert
30
30
  */
31
- export declare const platformRunnerEnrollmentsControllerBreakGlassRevoke: (runtimeId: string, enrollmentId: string, breakGlassRevokeRunnerEnrollmentDto: BreakGlassRevokeRunnerEnrollmentDto, options?: RequestInit) => Promise<RunnerEnrollmentManagementResponseDtoDataEnvelope>;
31
+ export declare const platformRunnerEnrollmentsControllerBreakGlassRevoke: (executionTargetId: string, enrollmentId: string, breakGlassRevokeRunnerEnrollmentDto: BreakGlassRevokeRunnerEnrollmentDto, options?: RequestInit) => Promise<RunnerEnrollmentManagementResponseDtoDataEnvelope>;
@@ -2,29 +2,29 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.platformRunnerEnrollmentsControllerBreakGlassRevoke = exports.getPlatformRunnerEnrollmentsControllerBreakGlassRevokeUrl = exports.platformRunnerEnrollmentsControllerDrain = exports.getPlatformRunnerEnrollmentsControllerDrainUrl = exports.platformRunnerEnrollmentsControllerRotate = exports.getPlatformRunnerEnrollmentsControllerRotateUrl = exports.platformRunnerEnrollmentsControllerCreate = exports.getPlatformRunnerEnrollmentsControllerCreateUrl = exports.platformRunnerEnrollmentsControllerList = exports.getPlatformRunnerEnrollmentsControllerListUrl = void 0;
4
4
  const custom_fetch_1 = require("../../custom-fetch");
5
- const getPlatformRunnerEnrollmentsControllerListUrl = (runtimeId) => {
6
- return `/platform/runtimes/${runtimeId}/enrollments`;
5
+ const getPlatformRunnerEnrollmentsControllerListUrl = (executionTargetId) => {
6
+ return `/platform/runtimes/${executionTargetId}/enrollments`;
7
7
  };
8
8
  exports.getPlatformRunnerEnrollmentsControllerListUrl = getPlatformRunnerEnrollmentsControllerListUrl;
9
9
  /**
10
10
  * @summary List enrollments for an ownerless platform runtime
11
11
  */
12
- const platformRunnerEnrollmentsControllerList = async (runtimeId, options) => {
13
- return (0, custom_fetch_1.customFetch)((0, exports.getPlatformRunnerEnrollmentsControllerListUrl)(runtimeId), {
12
+ const platformRunnerEnrollmentsControllerList = async (executionTargetId, options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getPlatformRunnerEnrollmentsControllerListUrl)(executionTargetId), {
14
14
  ...options,
15
15
  method: 'GET'
16
16
  });
17
17
  };
18
18
  exports.platformRunnerEnrollmentsControllerList = platformRunnerEnrollmentsControllerList;
19
- const getPlatformRunnerEnrollmentsControllerCreateUrl = (runtimeId) => {
20
- return `/platform/runtimes/${runtimeId}/enrollments`;
19
+ const getPlatformRunnerEnrollmentsControllerCreateUrl = (executionTargetId) => {
20
+ return `/platform/runtimes/${executionTargetId}/enrollments`;
21
21
  };
22
22
  exports.getPlatformRunnerEnrollmentsControllerCreateUrl = getPlatformRunnerEnrollmentsControllerCreateUrl;
23
23
  /**
24
24
  * @summary Create an enrollment for an ownerless platform runtime
25
25
  */
26
- const platformRunnerEnrollmentsControllerCreate = async (runtimeId, createRunnerEnrollmentDto, options) => {
27
- return (0, custom_fetch_1.customFetch)((0, exports.getPlatformRunnerEnrollmentsControllerCreateUrl)(runtimeId), {
26
+ const platformRunnerEnrollmentsControllerCreate = async (executionTargetId, createRunnerEnrollmentDto, options) => {
27
+ return (0, custom_fetch_1.customFetch)((0, exports.getPlatformRunnerEnrollmentsControllerCreateUrl)(executionTargetId), {
28
28
  ...options,
29
29
  method: 'POST',
30
30
  headers: { 'Content-Type': 'application/json', ...options?.headers },
@@ -32,15 +32,15 @@ const platformRunnerEnrollmentsControllerCreate = async (runtimeId, createRunner
32
32
  });
33
33
  };
34
34
  exports.platformRunnerEnrollmentsControllerCreate = platformRunnerEnrollmentsControllerCreate;
35
- const getPlatformRunnerEnrollmentsControllerRotateUrl = (runtimeId, enrollmentId) => {
36
- return `/platform/runtimes/${runtimeId}/enrollments/${enrollmentId}/rotate`;
35
+ const getPlatformRunnerEnrollmentsControllerRotateUrl = (executionTargetId, enrollmentId) => {
36
+ return `/platform/runtimes/${executionTargetId}/enrollments/${enrollmentId}/rotate`;
37
37
  };
38
38
  exports.getPlatformRunnerEnrollmentsControllerRotateUrl = getPlatformRunnerEnrollmentsControllerRotateUrl;
39
39
  /**
40
40
  * @summary Issue a successor platform runner credential
41
41
  */
42
- const platformRunnerEnrollmentsControllerRotate = async (runtimeId, enrollmentId, rotateRunnerEnrollmentDto, options) => {
43
- return (0, custom_fetch_1.customFetch)((0, exports.getPlatformRunnerEnrollmentsControllerRotateUrl)(runtimeId, enrollmentId), {
42
+ const platformRunnerEnrollmentsControllerRotate = async (executionTargetId, enrollmentId, rotateRunnerEnrollmentDto, options) => {
43
+ return (0, custom_fetch_1.customFetch)((0, exports.getPlatformRunnerEnrollmentsControllerRotateUrl)(executionTargetId, enrollmentId), {
44
44
  ...options,
45
45
  method: 'POST',
46
46
  headers: { 'Content-Type': 'application/json', ...options?.headers },
@@ -48,29 +48,29 @@ const platformRunnerEnrollmentsControllerRotate = async (runtimeId, enrollmentId
48
48
  });
49
49
  };
50
50
  exports.platformRunnerEnrollmentsControllerRotate = platformRunnerEnrollmentsControllerRotate;
51
- const getPlatformRunnerEnrollmentsControllerDrainUrl = (runtimeId, enrollmentId) => {
52
- return `/platform/runtimes/${runtimeId}/enrollments/${enrollmentId}/drain`;
51
+ const getPlatformRunnerEnrollmentsControllerDrainUrl = (executionTargetId, enrollmentId) => {
52
+ return `/platform/runtimes/${executionTargetId}/enrollments/${enrollmentId}/drain`;
53
53
  };
54
54
  exports.getPlatformRunnerEnrollmentsControllerDrainUrl = getPlatformRunnerEnrollmentsControllerDrainUrl;
55
55
  /**
56
56
  * @summary Stop new work and begin platform enrollment revocation
57
57
  */
58
- const platformRunnerEnrollmentsControllerDrain = async (runtimeId, enrollmentId, options) => {
59
- return (0, custom_fetch_1.customFetch)((0, exports.getPlatformRunnerEnrollmentsControllerDrainUrl)(runtimeId, enrollmentId), {
58
+ const platformRunnerEnrollmentsControllerDrain = async (executionTargetId, enrollmentId, options) => {
59
+ return (0, custom_fetch_1.customFetch)((0, exports.getPlatformRunnerEnrollmentsControllerDrainUrl)(executionTargetId, enrollmentId), {
60
60
  ...options,
61
61
  method: 'POST'
62
62
  });
63
63
  };
64
64
  exports.platformRunnerEnrollmentsControllerDrain = platformRunnerEnrollmentsControllerDrain;
65
- const getPlatformRunnerEnrollmentsControllerBreakGlassRevokeUrl = (runtimeId, enrollmentId) => {
66
- return `/platform/runtimes/${runtimeId}/enrollments/${enrollmentId}/revoke`;
65
+ const getPlatformRunnerEnrollmentsControllerBreakGlassRevokeUrl = (executionTargetId, enrollmentId) => {
66
+ return `/platform/runtimes/${executionTargetId}/enrollments/${enrollmentId}/revoke`;
67
67
  };
68
68
  exports.getPlatformRunnerEnrollmentsControllerBreakGlassRevokeUrl = getPlatformRunnerEnrollmentsControllerBreakGlassRevokeUrl;
69
69
  /**
70
70
  * @summary Immediately fence and revoke an enrollment with a durable security audit and alert
71
71
  */
72
- const platformRunnerEnrollmentsControllerBreakGlassRevoke = async (runtimeId, enrollmentId, breakGlassRevokeRunnerEnrollmentDto, options) => {
73
- return (0, custom_fetch_1.customFetch)((0, exports.getPlatformRunnerEnrollmentsControllerBreakGlassRevokeUrl)(runtimeId, enrollmentId), {
72
+ const platformRunnerEnrollmentsControllerBreakGlassRevoke = async (executionTargetId, enrollmentId, breakGlassRevokeRunnerEnrollmentDto, options) => {
73
+ return (0, custom_fetch_1.customFetch)((0, exports.getPlatformRunnerEnrollmentsControllerBreakGlassRevokeUrl)(executionTargetId, enrollmentId), {
74
74
  ...options,
75
75
  method: 'POST',
76
76
  headers: { 'Content-Type': 'application/json', ...options?.headers },
@@ -4,23 +4,23 @@
4
4
  * OpenAPI spec version: 0.1.1
5
5
  */
6
6
  import type { CreateRunnerEnrollmentDto, RotateRunnerEnrollmentDto, RunnerEnrollmentManagementResponseDtoDataArrayEnvelope, RunnerEnrollmentManagementResponseDtoDataEnvelope, RunnerEnrollmentManagementRotationResponseDtoDataEnvelope } from '../../models';
7
- export declare const getRunnerEnrollmentsControllerListUrl: (runtimeId: string) => string;
7
+ export declare const getRunnerEnrollmentsControllerListUrl: (executionTargetId: string) => string;
8
8
  /**
9
9
  * @summary List runner enrollments for an accessible runtime
10
10
  */
11
- export declare const runnerEnrollmentsControllerList: (runtimeId: string, options?: RequestInit) => Promise<RunnerEnrollmentManagementResponseDtoDataArrayEnvelope>;
12
- export declare const getRunnerEnrollmentsControllerCreateUrl: (runtimeId: string) => string;
11
+ export declare const runnerEnrollmentsControllerList: (executionTargetId: string, options?: RequestInit) => Promise<RunnerEnrollmentManagementResponseDtoDataArrayEnvelope>;
12
+ export declare const getRunnerEnrollmentsControllerCreateUrl: (executionTargetId: string) => string;
13
13
  /**
14
14
  * @summary Create a non-active enrollment for asynchronous identity provisioning
15
15
  */
16
- export declare const runnerEnrollmentsControllerCreate: (runtimeId: string, createRunnerEnrollmentDto: CreateRunnerEnrollmentDto, options?: RequestInit) => Promise<RunnerEnrollmentManagementResponseDtoDataEnvelope>;
17
- export declare const getRunnerEnrollmentsControllerRotateUrl: (runtimeId: string, enrollmentId: string) => string;
16
+ export declare const runnerEnrollmentsControllerCreate: (executionTargetId: string, createRunnerEnrollmentDto: CreateRunnerEnrollmentDto, options?: RequestInit) => Promise<RunnerEnrollmentManagementResponseDtoDataEnvelope>;
17
+ export declare const getRunnerEnrollmentsControllerRotateUrl: (executionTargetId: string, enrollmentId: string) => string;
18
18
  /**
19
19
  * @summary Issue a successor credential for this enrollment
20
20
  */
21
- export declare const runnerEnrollmentsControllerRotate: (runtimeId: string, enrollmentId: string, rotateRunnerEnrollmentDto: RotateRunnerEnrollmentDto, options?: RequestInit) => Promise<RunnerEnrollmentManagementRotationResponseDtoDataEnvelope>;
22
- export declare const getRunnerEnrollmentsControllerDrainUrl: (runtimeId: string, enrollmentId: string) => string;
21
+ export declare const runnerEnrollmentsControllerRotate: (executionTargetId: string, enrollmentId: string, rotateRunnerEnrollmentDto: RotateRunnerEnrollmentDto, options?: RequestInit) => Promise<RunnerEnrollmentManagementRotationResponseDtoDataEnvelope>;
22
+ export declare const getRunnerEnrollmentsControllerDrainUrl: (executionTargetId: string, enrollmentId: string) => string;
23
23
  /**
24
24
  * @summary Stop new work and begin enrollment revocation
25
25
  */
26
- export declare const runnerEnrollmentsControllerDrain: (runtimeId: string, enrollmentId: string, options?: RequestInit) => Promise<RunnerEnrollmentManagementResponseDtoDataEnvelope>;
26
+ export declare const runnerEnrollmentsControllerDrain: (executionTargetId: string, enrollmentId: string, options?: RequestInit) => Promise<RunnerEnrollmentManagementResponseDtoDataEnvelope>;
@@ -2,29 +2,29 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.runnerEnrollmentsControllerDrain = exports.getRunnerEnrollmentsControllerDrainUrl = exports.runnerEnrollmentsControllerRotate = exports.getRunnerEnrollmentsControllerRotateUrl = exports.runnerEnrollmentsControllerCreate = exports.getRunnerEnrollmentsControllerCreateUrl = exports.runnerEnrollmentsControllerList = exports.getRunnerEnrollmentsControllerListUrl = void 0;
4
4
  const custom_fetch_1 = require("../../custom-fetch");
5
- const getRunnerEnrollmentsControllerListUrl = (runtimeId) => {
6
- return `/runtimes/${runtimeId}/enrollments`;
5
+ const getRunnerEnrollmentsControllerListUrl = (executionTargetId) => {
6
+ return `/runtimes/${executionTargetId}/enrollments`;
7
7
  };
8
8
  exports.getRunnerEnrollmentsControllerListUrl = getRunnerEnrollmentsControllerListUrl;
9
9
  /**
10
10
  * @summary List runner enrollments for an accessible runtime
11
11
  */
12
- const runnerEnrollmentsControllerList = async (runtimeId, options) => {
13
- return (0, custom_fetch_1.customFetch)((0, exports.getRunnerEnrollmentsControllerListUrl)(runtimeId), {
12
+ const runnerEnrollmentsControllerList = async (executionTargetId, options) => {
13
+ return (0, custom_fetch_1.customFetch)((0, exports.getRunnerEnrollmentsControllerListUrl)(executionTargetId), {
14
14
  ...options,
15
15
  method: 'GET'
16
16
  });
17
17
  };
18
18
  exports.runnerEnrollmentsControllerList = runnerEnrollmentsControllerList;
19
- const getRunnerEnrollmentsControllerCreateUrl = (runtimeId) => {
20
- return `/runtimes/${runtimeId}/enrollments`;
19
+ const getRunnerEnrollmentsControllerCreateUrl = (executionTargetId) => {
20
+ return `/runtimes/${executionTargetId}/enrollments`;
21
21
  };
22
22
  exports.getRunnerEnrollmentsControllerCreateUrl = getRunnerEnrollmentsControllerCreateUrl;
23
23
  /**
24
24
  * @summary Create a non-active enrollment for asynchronous identity provisioning
25
25
  */
26
- const runnerEnrollmentsControllerCreate = async (runtimeId, createRunnerEnrollmentDto, options) => {
27
- return (0, custom_fetch_1.customFetch)((0, exports.getRunnerEnrollmentsControllerCreateUrl)(runtimeId), {
26
+ const runnerEnrollmentsControllerCreate = async (executionTargetId, createRunnerEnrollmentDto, options) => {
27
+ return (0, custom_fetch_1.customFetch)((0, exports.getRunnerEnrollmentsControllerCreateUrl)(executionTargetId), {
28
28
  ...options,
29
29
  method: 'POST',
30
30
  headers: { 'Content-Type': 'application/json', ...options?.headers },
@@ -32,15 +32,15 @@ const runnerEnrollmentsControllerCreate = async (runtimeId, createRunnerEnrollme
32
32
  });
33
33
  };
34
34
  exports.runnerEnrollmentsControllerCreate = runnerEnrollmentsControllerCreate;
35
- const getRunnerEnrollmentsControllerRotateUrl = (runtimeId, enrollmentId) => {
36
- return `/runtimes/${runtimeId}/enrollments/${enrollmentId}/rotate`;
35
+ const getRunnerEnrollmentsControllerRotateUrl = (executionTargetId, enrollmentId) => {
36
+ return `/runtimes/${executionTargetId}/enrollments/${enrollmentId}/rotate`;
37
37
  };
38
38
  exports.getRunnerEnrollmentsControllerRotateUrl = getRunnerEnrollmentsControllerRotateUrl;
39
39
  /**
40
40
  * @summary Issue a successor credential for this enrollment
41
41
  */
42
- const runnerEnrollmentsControllerRotate = async (runtimeId, enrollmentId, rotateRunnerEnrollmentDto, options) => {
43
- return (0, custom_fetch_1.customFetch)((0, exports.getRunnerEnrollmentsControllerRotateUrl)(runtimeId, enrollmentId), {
42
+ const runnerEnrollmentsControllerRotate = async (executionTargetId, enrollmentId, rotateRunnerEnrollmentDto, options) => {
43
+ return (0, custom_fetch_1.customFetch)((0, exports.getRunnerEnrollmentsControllerRotateUrl)(executionTargetId, enrollmentId), {
44
44
  ...options,
45
45
  method: 'POST',
46
46
  headers: { 'Content-Type': 'application/json', ...options?.headers },
@@ -48,15 +48,15 @@ const runnerEnrollmentsControllerRotate = async (runtimeId, enrollmentId, rotate
48
48
  });
49
49
  };
50
50
  exports.runnerEnrollmentsControllerRotate = runnerEnrollmentsControllerRotate;
51
- const getRunnerEnrollmentsControllerDrainUrl = (runtimeId, enrollmentId) => {
52
- return `/runtimes/${runtimeId}/enrollments/${enrollmentId}/drain`;
51
+ const getRunnerEnrollmentsControllerDrainUrl = (executionTargetId, enrollmentId) => {
52
+ return `/runtimes/${executionTargetId}/enrollments/${enrollmentId}/drain`;
53
53
  };
54
54
  exports.getRunnerEnrollmentsControllerDrainUrl = getRunnerEnrollmentsControllerDrainUrl;
55
55
  /**
56
56
  * @summary Stop new work and begin enrollment revocation
57
57
  */
58
- const runnerEnrollmentsControllerDrain = async (runtimeId, enrollmentId, options) => {
59
- return (0, custom_fetch_1.customFetch)((0, exports.getRunnerEnrollmentsControllerDrainUrl)(runtimeId, enrollmentId), {
58
+ const runnerEnrollmentsControllerDrain = async (executionTargetId, enrollmentId, options) => {
59
+ return (0, custom_fetch_1.customFetch)((0, exports.getRunnerEnrollmentsControllerDrainUrl)(executionTargetId, enrollmentId), {
60
60
  ...options,
61
61
  method: 'POST'
62
62
  });
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ export * from './endpoints/authoring/authoring';
4
4
  export * from './endpoints/biome-approvals/biome-approvals';
5
5
  export * from './endpoints/biome-installations/biome-installations';
6
6
  export * from './endpoints/biome-runtime-bindings/biome-runtime-bindings';
7
- export * from './endpoints/biome-runtimes/biome-runtimes';
7
+ export * from './endpoints/execution-targets/execution-targets';
8
8
  export * from './endpoints/org-biome-installations/org-biome-installations';
9
9
  export * from './endpoints/platform-biomes-availability/platform-biomes-availability';
10
10
  export * from './endpoints/platform-biomes-contribution-sync/platform-biomes-contribution-sync';
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ __exportStar(require("./endpoints/authoring/authoring"), exports);
26
26
  __exportStar(require("./endpoints/biome-approvals/biome-approvals"), exports);
27
27
  __exportStar(require("./endpoints/biome-installations/biome-installations"), exports);
28
28
  __exportStar(require("./endpoints/biome-runtime-bindings/biome-runtime-bindings"), exports);
29
- __exportStar(require("./endpoints/biome-runtimes/biome-runtimes"), exports);
29
+ __exportStar(require("./endpoints/execution-targets/execution-targets"), exports);
30
30
  __exportStar(require("./endpoints/org-biome-installations/org-biome-installations"), exports);
31
31
  __exportStar(require("./endpoints/platform-biomes-availability/platform-biomes-availability"), exports);
32
32
  __exportStar(require("./endpoints/platform-biomes-contribution-sync/platform-biomes-contribution-sync"), exports);
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Biome Host API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ import type { CreateExecutionTargetDtoLabels } from './createExecutionTargetDtoLabels.js';
7
+ import type { CredentialDeliveryKind } from './credentialDeliveryKind.js';
8
+ import type { DataClassification } from './dataClassification.js';
9
+ import type { RunnerDataLocality } from './runnerDataLocality.js';
10
+ import type { RunnerTrustTier } from './runnerTrustTier.js';
11
+ import type { RuntimeIsolationLevel } from './runtimeIsolationLevel.js';
12
+ import type { RuntimeOperatorKind } from './runtimeOperatorKind.js';
13
+ import type { SpaceKind } from './spaceKind.js';
14
+ export interface CreateExecutionTargetDto {
15
+ /** Human-meaningful key, unique WITHIN its owner space. Embedded verbatim in a task-queue name, so `:`, `.` and `_` are refused. */
16
+ slug: string;
17
+ displayName: string;
18
+ /** The owner TIER. Only 'org' is writable through this endpoint — 'system' is the platform's seeded pool, and every other tier is outside `EXECUTION_TARGET_SPACE_KINDS`. The identity comes from the request context, never from the body. */
19
+ ownerSpaceKind: SpaceKind;
20
+ /** Isolation boundary this target PROVIDES. */
21
+ isolation: RuntimeIsolationLevel;
22
+ /** Data locality this target PROVIDES. */
23
+ locality: RunnerDataLocality;
24
+ /** Minimum runner trust tier admitted onto this target. */
25
+ minTrustTier: RunnerTrustTier;
26
+ /** Maximum runner trust tier this target may grant. */
27
+ maxTrustTier: RunnerTrustTier;
28
+ /** Localities a runner enrolling onto this target may declare. Never empty — a target no runner can enrol into is a pool the platform cannot keep. */
29
+ allowedLocalities: RunnerDataLocality[];
30
+ /** Who operates the executors behind this target. */
31
+ operatorKind: RuntimeOperatorKind;
32
+ /** How a newly issued runtime credential reaches its holder. */
33
+ credentialDelivery: CredentialDeliveryKind;
34
+ /** OPEN operator label map. `region`, `residency` and `accelerator` are the keys the platform itself reads. Defaults to {}. */
35
+ labels?: CreateExecutionTargetDtoLabels;
36
+ /** Classification CEILING this target accepts. Omitted means un-configured — never a defaulted `public`. */
37
+ maxDataClassification?: DataClassification;
38
+ /** Make this the fallback target WITHIN its owner space. At most one per space; setting it demotes the incumbent in the same transaction. */
39
+ isDefault?: boolean;
40
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Biome Host API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ /**
7
+ * OPEN operator label map. `region`, `residency` and `accelerator` are the keys the platform itself reads. Defaults to {}.
8
+ */
9
+ export type CreateExecutionTargetDtoLabels = {
10
+ [key: string]: string;
11
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Biome Host API
5
+ * OpenAPI spec version: 0.1.1
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,11 +5,13 @@
5
5
  */
6
6
  import type { InFlightRevocationPolicy } from './inFlightRevocationPolicy.js';
7
7
  import type { RunnerDataLocality } from './runnerDataLocality.js';
8
+ import type { RunnerKind } from './runnerKind.js';
8
9
  import type { RunnerTrustTier } from './runnerTrustTier.js';
9
10
  export interface CreateRunnerEnrollmentDto {
10
11
  runnerId: string;
11
12
  allowedEnvironmentIds: string[];
12
13
  maxTrustTier: RunnerTrustTier;
13
14
  allowedLocalities: RunnerDataLocality[];
15
+ allowedKinds: RunnerKind[];
14
16
  inFlightPolicy?: InFlightRevocationPolicy;
15
17
  }
@@ -8,7 +8,7 @@ import type { CreateRuntimeBindingDtoRequiredLabels } from './createRuntimeBindi
8
8
  import type { InFlightRevocationPolicy } from './inFlightRevocationPolicy.js';
9
9
  export interface CreateRuntimeBindingDto {
10
10
  /** Slug of the runtime to bind this installation onto. */
11
- runtimeSlug: string;
11
+ executionTargetSlug: string;
12
12
  /** Labels a runner MUST advertise (key/value, AND-matched) to be eligible. Defaults to {}. */
13
13
  requiredLabels?: CreateRuntimeBindingDtoRequiredLabels;
14
14
  /** Labels that DISQUALIFY a runner from running this installation. Defaults to {}. */
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Biome Host API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ /**
7
+ * Classification CEILING this target accepts, or null for un-configured. Joined monotonically — it may only ever RAISE restriction.
8
+ */
9
+ export type DataClassification = typeof DataClassification[keyof typeof DataClassification];
10
+ export declare const DataClassification: {
11
+ readonly public: "public";
12
+ readonly internal: "internal";
13
+ readonly confidential: "confidential";
14
+ readonly secret: "secret";
15
+ readonly regulated: "regulated";
16
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Biome Host API
5
+ * OpenAPI spec version: 0.1.1
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.DataClassification = void 0;
9
+ exports.DataClassification = {
10
+ public: 'public',
11
+ internal: 'internal',
12
+ confidential: 'confidential',
13
+ secret: 'secret',
14
+ regulated: 'regulated',
15
+ };
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Biome Host API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ import type { CredentialDeliveryKind } from './credentialDeliveryKind.js';
7
+ import type { DataClassification } from './dataClassification.js';
8
+ import type { ExecutionTargetResponseDtoLabels } from './executionTargetResponseDtoLabels.js';
9
+ import type { ExecutionTargetStatus } from './executionTargetStatus.js';
10
+ import type { RunnerDataLocality } from './runnerDataLocality.js';
11
+ import type { RunnerTrustTier } from './runnerTrustTier.js';
12
+ import type { RuntimeOperatorKind } from './runtimeOperatorKind.js';
13
+ import type { SpaceKind } from './spaceKind.js';
14
+ export interface ExecutionTargetResponseDto {
15
+ id: string;
16
+ slug: string;
17
+ displayName: string;
18
+ /** Canonical `xema://…` SpaceRef URI of the owner. THE address — the tier and the tenant fence below are projections of it. */
19
+ ownerSpaceUri: string;
20
+ /** The owner TIER, projected from `ownerSpaceUri`. Only `system` and `org` are admissible for a placement target. */
21
+ ownerSpaceKind: SpaceKind;
22
+ /** Isolation level this target PROVIDES (RuntimeIsolationLevel wire value). */
23
+ isolation: string;
24
+ /** Data locality this target PROVIDES (RunnerDataLocality wire value). */
25
+ locality: string;
26
+ /** Minimum runner trust tier admitted (RunnerTrustTier wire value). */
27
+ minTrustTier: string;
28
+ operatorKind: RuntimeOperatorKind;
29
+ /**
30
+ * The tenant fence. `null` for the org-less System-owned platform target.
31
+ * @nullable
32
+ */
33
+ ownerOrgId: string | null;
34
+ credentialDelivery: CredentialDeliveryKind;
35
+ maxTrustTier: RunnerTrustTier;
36
+ allowedLocalities: RunnerDataLocality[];
37
+ /** OPEN operator label map declaring what this pool provides. `ExecutionTargetLabel` names the three keys the platform itself reads (region, residency, accelerator); anything else is an operator vocabulary. */
38
+ labels: ExecutionTargetResponseDtoLabels;
39
+ /** Classification CEILING this target accepts, or null for un-configured. Joined monotonically — it may only ever RAISE restriction. */
40
+ maxDataClassification: DataClassification | null;
41
+ status: ExecutionTargetStatus;
42
+ /** @minimum 1 */
43
+ revision: number;
44
+ /** The fallback target WITHIN its owner space. At most one. */
45
+ isDefault: boolean;
46
+ createdBy: string;
47
+ createdAt: string;
48
+ updatedAt: string;
49
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Biome Host API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ import type { ExecutionTargetResponseDto } from './executionTargetResponseDto.js';
7
+ export interface ExecutionTargetResponseDtoDataArrayEnvelope {
8
+ data: ExecutionTargetResponseDto[];
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Biome Host API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ import type { ExecutionTargetResponseDto } from './executionTargetResponseDto.js';
7
+ export interface ExecutionTargetResponseDtoDataEnvelope {
8
+ data: ExecutionTargetResponseDto;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Biome Host API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ /**
7
+ * OPEN operator label map declaring what this pool provides. `ExecutionTargetLabel` names the three keys the platform itself reads (region, residency, accelerator); anything else is an operator vocabulary.
8
+ */
9
+ export type ExecutionTargetResponseDtoLabels = {
10
+ [key: string]: string;
11
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Biome Host API
5
+ * OpenAPI spec version: 0.1.1
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,8 +3,8 @@
3
3
  * Biome Host API
4
4
  * OpenAPI spec version: 0.1.1
5
5
  */
6
- export type RuntimeResponseDtoStatus = typeof RuntimeResponseDtoStatus[keyof typeof RuntimeResponseDtoStatus];
7
- export declare const RuntimeResponseDtoStatus: {
6
+ export type ExecutionTargetStatus = typeof ExecutionTargetStatus[keyof typeof ExecutionTargetStatus];
7
+ export declare const ExecutionTargetStatus: {
8
8
  readonly provisioning: "provisioning";
9
9
  readonly active: "active";
10
10
  readonly draining: "draining";
@@ -5,8 +5,8 @@
5
5
  * OpenAPI spec version: 0.1.1
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.RuntimeResponseDtoStatus = void 0;
9
- exports.RuntimeResponseDtoStatus = {
8
+ exports.ExecutionTargetStatus = void 0;
9
+ exports.ExecutionTargetStatus = {
10
10
  provisioning: 'provisioning',
11
11
  active: 'active',
12
12
  draining: 'draining',
@@ -82,16 +82,24 @@ export * from './contributionKind';
82
82
  export * from './contributionSyncStatus';
83
83
  export * from './createBiomeInstallationDto';
84
84
  export * from './createBiomeInstallationDtoConfigJson';
85
+ export * from './createExecutionTargetDto';
86
+ export * from './createExecutionTargetDtoLabels';
85
87
  export * from './createRunnerEnrollmentDto';
86
88
  export * from './createRuntimeBindingDto';
87
89
  export * from './createRuntimeBindingDtoDeniedLabels';
88
90
  export * from './createRuntimeBindingDtoRequiredLabels';
89
91
  export * from './credentialDeliveryKind';
92
+ export * from './dataClassification';
90
93
  export * from './errorDetailsDto';
91
94
  export * from './errorDetailsDtoDetails';
92
95
  export * from './errorPayloadDto';
93
96
  export * from './errorResponseDto';
94
97
  export * from './exchangeRunnerEnrollmentChallengeDto';
98
+ export * from './executionTargetResponseDto';
99
+ export * from './executionTargetResponseDtoDataArrayEnvelope';
100
+ export * from './executionTargetResponseDtoDataEnvelope';
101
+ export * from './executionTargetResponseDtoLabels';
102
+ export * from './executionTargetStatus';
95
103
  export * from './inFlightRevocationPolicy';
96
104
  export * from './lifecycleTransitionAckDto';
97
105
  export * from './orgBiomeEffectiveEnablementDto';
@@ -127,6 +135,7 @@ export * from './runnerEnrollmentManagementRotationResponseDto';
127
135
  export * from './runnerEnrollmentManagementRotationResponseDtoDataEnvelope';
128
136
  export * from './runnerEnrollmentObservedState';
129
137
  export * from './runnerEnrollmentResponseDto';
138
+ export * from './runnerKind';
130
139
  export * from './runnerTrustTier';
131
140
  export * from './runtimeBindingDesiredState';
132
141
  export * from './runtimeBindingManagementAction';
@@ -136,10 +145,8 @@ export * from './runtimeBindingResponseDtoDataArrayEnvelope';
136
145
  export * from './runtimeBindingResponseDtoDataEnvelope';
137
146
  export * from './runtimeBindingResponseDtoDeniedLabels';
138
147
  export * from './runtimeBindingResponseDtoRequiredLabels';
148
+ export * from './runtimeIsolationLevel';
139
149
  export * from './runtimeOperatorKind';
140
- export * from './runtimeResponseDto';
141
- export * from './runtimeResponseDtoDataArrayEnvelope';
142
- export * from './runtimeResponseDtoStatus';
143
150
  export * from './scaffoldTemplate';
144
151
  export * from './serverBiomeRegistrationResponseDto';
145
152
  export * from './serverBiomeRegistrationResponseDtoContributionPaths';
@@ -154,11 +161,14 @@ export * from './serviceMeshEntryDto';
154
161
  export * from './serviceMeshResponseDto';
155
162
  export * from './serviceMeshResponseDtoDataEnvelope';
156
163
  export * from './setBiomeAvailabilityDto';
164
+ export * from './spaceKind';
157
165
  export * from './subjectKind';
158
166
  export * from './surfaceKindValidationDto';
159
167
  export * from './surfaceKindValidationDtoDataEnvelope';
160
168
  export * from './surfaceKindValidationDtoManifest';
161
169
  export * from './updateBiomeInstallationResourcesDto';
170
+ export * from './updateExecutionTargetDto';
171
+ export * from './updateExecutionTargetDtoLabels';
162
172
  export * from './updateOrgBiomeEnablementDto';
163
173
  export * from './updateOrgBiomeInstallationDto';
164
174
  export * from './updateOrgBiomeInstallationDtoConfigJson';
@@ -99,16 +99,24 @@ __exportStar(require("./contributionKind"), exports);
99
99
  __exportStar(require("./contributionSyncStatus"), exports);
100
100
  __exportStar(require("./createBiomeInstallationDto"), exports);
101
101
  __exportStar(require("./createBiomeInstallationDtoConfigJson"), exports);
102
+ __exportStar(require("./createExecutionTargetDto"), exports);
103
+ __exportStar(require("./createExecutionTargetDtoLabels"), exports);
102
104
  __exportStar(require("./createRunnerEnrollmentDto"), exports);
103
105
  __exportStar(require("./createRuntimeBindingDto"), exports);
104
106
  __exportStar(require("./createRuntimeBindingDtoDeniedLabels"), exports);
105
107
  __exportStar(require("./createRuntimeBindingDtoRequiredLabels"), exports);
106
108
  __exportStar(require("./credentialDeliveryKind"), exports);
109
+ __exportStar(require("./dataClassification"), exports);
107
110
  __exportStar(require("./errorDetailsDto"), exports);
108
111
  __exportStar(require("./errorDetailsDtoDetails"), exports);
109
112
  __exportStar(require("./errorPayloadDto"), exports);
110
113
  __exportStar(require("./errorResponseDto"), exports);
111
114
  __exportStar(require("./exchangeRunnerEnrollmentChallengeDto"), exports);
115
+ __exportStar(require("./executionTargetResponseDto"), exports);
116
+ __exportStar(require("./executionTargetResponseDtoDataArrayEnvelope"), exports);
117
+ __exportStar(require("./executionTargetResponseDtoDataEnvelope"), exports);
118
+ __exportStar(require("./executionTargetResponseDtoLabels"), exports);
119
+ __exportStar(require("./executionTargetStatus"), exports);
112
120
  __exportStar(require("./inFlightRevocationPolicy"), exports);
113
121
  __exportStar(require("./lifecycleTransitionAckDto"), exports);
114
122
  __exportStar(require("./orgBiomeEffectiveEnablementDto"), exports);
@@ -144,6 +152,7 @@ __exportStar(require("./runnerEnrollmentManagementRotationResponseDto"), exports
144
152
  __exportStar(require("./runnerEnrollmentManagementRotationResponseDtoDataEnvelope"), exports);
145
153
  __exportStar(require("./runnerEnrollmentObservedState"), exports);
146
154
  __exportStar(require("./runnerEnrollmentResponseDto"), exports);
155
+ __exportStar(require("./runnerKind"), exports);
147
156
  __exportStar(require("./runnerTrustTier"), exports);
148
157
  __exportStar(require("./runtimeBindingDesiredState"), exports);
149
158
  __exportStar(require("./runtimeBindingManagementAction"), exports);
@@ -153,10 +162,8 @@ __exportStar(require("./runtimeBindingResponseDtoDataArrayEnvelope"), exports);
153
162
  __exportStar(require("./runtimeBindingResponseDtoDataEnvelope"), exports);
154
163
  __exportStar(require("./runtimeBindingResponseDtoDeniedLabels"), exports);
155
164
  __exportStar(require("./runtimeBindingResponseDtoRequiredLabels"), exports);
165
+ __exportStar(require("./runtimeIsolationLevel"), exports);
156
166
  __exportStar(require("./runtimeOperatorKind"), exports);
157
- __exportStar(require("./runtimeResponseDto"), exports);
158
- __exportStar(require("./runtimeResponseDtoDataArrayEnvelope"), exports);
159
- __exportStar(require("./runtimeResponseDtoStatus"), exports);
160
167
  __exportStar(require("./scaffoldTemplate"), exports);
161
168
  __exportStar(require("./serverBiomeRegistrationResponseDto"), exports);
162
169
  __exportStar(require("./serverBiomeRegistrationResponseDtoContributionPaths"), exports);
@@ -171,11 +178,14 @@ __exportStar(require("./serviceMeshEntryDto"), exports);
171
178
  __exportStar(require("./serviceMeshResponseDto"), exports);
172
179
  __exportStar(require("./serviceMeshResponseDtoDataEnvelope"), exports);
173
180
  __exportStar(require("./setBiomeAvailabilityDto"), exports);
181
+ __exportStar(require("./spaceKind"), exports);
174
182
  __exportStar(require("./subjectKind"), exports);
175
183
  __exportStar(require("./surfaceKindValidationDto"), exports);
176
184
  __exportStar(require("./surfaceKindValidationDtoDataEnvelope"), exports);
177
185
  __exportStar(require("./surfaceKindValidationDtoManifest"), exports);
178
186
  __exportStar(require("./updateBiomeInstallationResourcesDto"), exports);
187
+ __exportStar(require("./updateExecutionTargetDto"), exports);
188
+ __exportStar(require("./updateExecutionTargetDtoLabels"), exports);
179
189
  __exportStar(require("./updateOrgBiomeEnablementDto"), exports);
180
190
  __exportStar(require("./updateOrgBiomeInstallationDto"), exports);
181
191
  __exportStar(require("./updateOrgBiomeInstallationDtoConfigJson"), exports);
@@ -8,13 +8,14 @@ import type { RunnerDataLocality } from './runnerDataLocality.js';
8
8
  import type { RunnerEnrollmentDesiredState } from './runnerEnrollmentDesiredState.js';
9
9
  import type { RunnerEnrollmentManagementAction } from './runnerEnrollmentManagementAction.js';
10
10
  import type { RunnerEnrollmentObservedState } from './runnerEnrollmentObservedState.js';
11
+ import type { RunnerKind } from './runnerKind.js';
11
12
  import type { RunnerTrustTier } from './runnerTrustTier.js';
12
13
  import type { RuntimeOperatorKind } from './runtimeOperatorKind.js';
13
14
  export interface RunnerEnrollmentManagementResponseDto {
14
15
  id: string;
15
16
  /** @minimum 1 */
16
17
  revision: number;
17
- runtimeId: string;
18
+ executionTargetId: string;
18
19
  runnerId: string;
19
20
  /** @nullable */
20
21
  principalId: string | null;
@@ -27,6 +28,8 @@ export interface RunnerEnrollmentManagementResponseDto {
27
28
  allowedEnvironmentIds: string[];
28
29
  maxTrustTier: RunnerTrustTier;
29
30
  allowedLocalities: RunnerDataLocality[];
31
+ /** Runner kinds this enrollment permits. Capped at attestation; a runner asserting a kind outside this set is REFUSED, never signed. */
32
+ allowedKinds: RunnerKind[];
30
33
  attestationRevision: number;
31
34
  inFlightPolicy: InFlightRevocationPolicy;
32
35
  operatorKind: RuntimeOperatorKind;
@@ -7,13 +7,14 @@ import type { InFlightRevocationPolicy } from './inFlightRevocationPolicy.js';
7
7
  import type { RunnerDataLocality } from './runnerDataLocality.js';
8
8
  import type { RunnerEnrollmentDesiredState } from './runnerEnrollmentDesiredState.js';
9
9
  import type { RunnerEnrollmentObservedState } from './runnerEnrollmentObservedState.js';
10
+ import type { RunnerKind } from './runnerKind.js';
10
11
  import type { RunnerTrustTier } from './runnerTrustTier.js';
11
12
  import type { RuntimeOperatorKind } from './runtimeOperatorKind.js';
12
13
  export interface RunnerEnrollmentResponseDto {
13
14
  id: string;
14
15
  /** @minimum 1 */
15
16
  revision: number;
16
- runtimeId: string;
17
+ executionTargetId: string;
17
18
  runnerId: string;
18
19
  /** @nullable */
19
20
  principalId: string | null;
@@ -26,6 +27,8 @@ export interface RunnerEnrollmentResponseDto {
26
27
  allowedEnvironmentIds: string[];
27
28
  maxTrustTier: RunnerTrustTier;
28
29
  allowedLocalities: RunnerDataLocality[];
30
+ /** Runner kinds this enrollment permits. Capped at attestation; a runner asserting a kind outside this set is REFUSED, never signed. */
31
+ allowedKinds: RunnerKind[];
29
32
  attestationRevision: number;
30
33
  inFlightPolicy: InFlightRevocationPolicy;
31
34
  operatorKind: RuntimeOperatorKind;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Biome Host API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ /**
7
+ * Runner kinds this enrollment permits. Capped at attestation; a runner asserting a kind outside this set is REFUSED, never signed.
8
+ */
9
+ export type RunnerKind = typeof RunnerKind[keyof typeof RunnerKind];
10
+ export declare const RunnerKind: {
11
+ readonly local: "local";
12
+ readonly cloud: "cloud";
13
+ readonly 'customer-edge': "customer-edge";
14
+ readonly gpu: "gpu";
15
+ readonly sandbox: "sandbox";
16
+ readonly ci: "ci";
17
+ readonly 'mcp-external': "mcp-external";
18
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Biome Host API
5
+ * OpenAPI spec version: 0.1.1
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.RunnerKind = void 0;
9
+ exports.RunnerKind = {
10
+ local: 'local',
11
+ cloud: 'cloud',
12
+ 'customer-edge': 'customer-edge',
13
+ gpu: 'gpu',
14
+ sandbox: 'sandbox',
15
+ ci: 'ci',
16
+ 'mcp-external': 'mcp-external',
17
+ };
@@ -12,9 +12,9 @@ import type { RuntimeBindingResponseDtoRequiredLabels } from './runtimeBindingRe
12
12
  export interface RuntimeBindingResponseDto {
13
13
  id: string;
14
14
  installationId: string;
15
- runtimeId: string;
15
+ executionTargetId: string;
16
16
  /** Denormalized slug of the bound runtime, for client convenience. */
17
- runtimeSlug: string;
17
+ executionTargetSlug: string;
18
18
  /** Labels a runner MUST advertise (key/value, AND-matched) to be eligible. */
19
19
  requiredLabels: RuntimeBindingResponseDtoRequiredLabels;
20
20
  /** Labels that DISQUALIFY a runner from running this installation. */
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Biome Host API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ /**
7
+ * Isolation boundary this target PROVIDES.
8
+ */
9
+ export type RuntimeIsolationLevel = typeof RuntimeIsolationLevel[keyof typeof RuntimeIsolationLevel];
10
+ export declare const RuntimeIsolationLevel: {
11
+ readonly none: "none";
12
+ readonly process: "process";
13
+ readonly container: "container";
14
+ readonly vm: "vm";
15
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Biome Host API
5
+ * OpenAPI spec version: 0.1.1
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.RuntimeIsolationLevel = void 0;
9
+ exports.RuntimeIsolationLevel = {
10
+ none: 'none',
11
+ process: 'process',
12
+ container: 'container',
13
+ vm: 'vm',
14
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Biome Host API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ /**
7
+ * The owner TIER, projected from `ownerSpaceUri`. Only `system` and `org` are admissible for a placement target.
8
+ */
9
+ export type SpaceKind = typeof SpaceKind[keyof typeof SpaceKind];
10
+ export declare const SpaceKind: {
11
+ readonly system: "system";
12
+ readonly org: "org";
13
+ readonly project: "project";
14
+ readonly app: "app";
15
+ readonly session: "session";
16
+ readonly biome: "biome";
17
+ readonly user: "user";
18
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Biome Host API
5
+ * OpenAPI spec version: 0.1.1
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.SpaceKind = void 0;
9
+ exports.SpaceKind = {
10
+ system: 'system',
11
+ org: 'org',
12
+ project: 'project',
13
+ app: 'app',
14
+ session: 'session',
15
+ biome: 'biome',
16
+ user: 'user',
17
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Biome Host API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ import type { DataClassification } from './dataClassification.js';
7
+ import type { ExecutionTargetStatus } from './executionTargetStatus.js';
8
+ import type { RunnerDataLocality } from './runnerDataLocality.js';
9
+ import type { RunnerTrustTier } from './runnerTrustTier.js';
10
+ import type { RuntimeIsolationLevel } from './runtimeIsolationLevel.js';
11
+ import type { UpdateExecutionTargetDtoLabels } from './updateExecutionTargetDtoLabels.js';
12
+ export interface UpdateExecutionTargetDto {
13
+ displayName?: string;
14
+ isolation?: RuntimeIsolationLevel;
15
+ locality?: RunnerDataLocality;
16
+ minTrustTier?: RunnerTrustTier;
17
+ maxTrustTier?: RunnerTrustTier;
18
+ allowedLocalities?: RunnerDataLocality[];
19
+ /** Replaces the whole label map — never merged. A partial merge would make a label impossible to remove. */
20
+ labels?: UpdateExecutionTargetDtoLabels;
21
+ /** Classification CEILING. Explicit `null` CLEARS it back to un-configured; omitting the field leaves it untouched. */
22
+ maxDataClassification?: DataClassification | null;
23
+ /** Lifecycle. `draining` is how an org takes its own pool away without stranding work: the target stops being SELECTED while its queue is still polled. */
24
+ status?: ExecutionTargetStatus;
25
+ /** Make this the fallback WITHIN its owner space. At most one per space; setting it demotes the incumbent in the same transaction. */
26
+ isDefault?: boolean;
27
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by @xemahq/api-client-generator — do not edit manually.
3
+ * Biome Host API
4
+ * OpenAPI spec version: 0.1.1
5
+ */
6
+ /**
7
+ * Replaces the whole label map — never merged. A partial merge would make a label impossible to remove.
8
+ */
9
+ export type UpdateExecutionTargetDtoLabels = {
10
+ [key: string]: string;
11
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * Generated by @xemahq/api-client-generator — do not edit manually.
4
+ * Biome Host API
5
+ * OpenAPI spec version: 0.1.1
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/biome-host-api-client",
3
- "version": "0.3.7",
3
+ "version": "0.3.10",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -19,7 +19,7 @@
19
19
  "service": "biome-host-api",
20
20
  "biome": "biome-host",
21
21
  "target": "server",
22
- "generator": "@xemahq/api-client-generator@0.12.1",
22
+ "generator": "@xemahq/api-client-generator@0.14.1",
23
23
  "source": "openapi.public.json"
24
24
  },
25
25
  "license": "LicenseRef-Xema-BSL-1.1",
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Biome Host API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- import type { RuntimeResponseDtoDataArrayEnvelope } from '../../models';
7
- export declare const getRuntimesControllerListUrl: () => string;
8
- /**
9
- * @summary List the registered biome runtimes
10
- */
11
- export declare const runtimesControllerList: (options?: RequestInit) => Promise<RuntimeResponseDtoDataArrayEnvelope>;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runtimesControllerList = exports.getRuntimesControllerListUrl = void 0;
4
- const custom_fetch_1 = require("../../custom-fetch");
5
- const getRuntimesControllerListUrl = () => {
6
- return `/runtimes`;
7
- };
8
- exports.getRuntimesControllerListUrl = getRuntimesControllerListUrl;
9
- /**
10
- * @summary List the registered biome runtimes
11
- */
12
- const runtimesControllerList = async (options) => {
13
- return (0, custom_fetch_1.customFetch)((0, exports.getRuntimesControllerListUrl)(), {
14
- ...options,
15
- method: 'GET'
16
- });
17
- };
18
- exports.runtimesControllerList = runtimesControllerList;
@@ -1,34 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Biome Host API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- import type { CredentialDeliveryKind } from './credentialDeliveryKind.js';
7
- import type { RunnerDataLocality } from './runnerDataLocality.js';
8
- import type { RunnerTrustTier } from './runnerTrustTier.js';
9
- import type { RuntimeOperatorKind } from './runtimeOperatorKind.js';
10
- import type { RuntimeResponseDtoStatus } from './runtimeResponseDtoStatus.js';
11
- export interface RuntimeResponseDto {
12
- id: string;
13
- slug: string;
14
- displayName: string;
15
- /** Isolation level this runtime PROVIDES (RuntimeIsolationLevel wire value). */
16
- isolation: string;
17
- /** Data locality this runtime PROVIDES (DataLocality wire value). */
18
- locality: string;
19
- /** Minimum runner trust tier admitted (RunnerTrustTier wire value). */
20
- minTrustTier: string;
21
- operatorKind: RuntimeOperatorKind;
22
- /** @nullable */
23
- ownerOrgId: string | null;
24
- credentialDelivery: CredentialDeliveryKind;
25
- maxTrustTier: RunnerTrustTier;
26
- allowedLocalities: RunnerDataLocality[];
27
- status: RuntimeResponseDtoStatus;
28
- /** @minimum 1 */
29
- revision: number;
30
- isDefault: boolean;
31
- createdBy: string;
32
- createdAt: string;
33
- updatedAt: string;
34
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * Generated by @xemahq/api-client-generator — do not edit manually.
3
- * Biome Host API
4
- * OpenAPI spec version: 0.1.1
5
- */
6
- import type { RuntimeResponseDto } from './runtimeResponseDto.js';
7
- export interface RuntimeResponseDtoDataArrayEnvelope {
8
- data: RuntimeResponseDto[];
9
- }