@xemahq/biome-host-api-client 0.3.7 → 0.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-fetch.d.ts +22 -0
- package/dist/custom-fetch.js +27 -0
- package/dist/endpoints/biome-approvals/biome-approvals.d.ts +1 -6
- package/dist/endpoints/biome-approvals/biome-approvals.js +1 -17
- package/dist/endpoints/execution-targets/execution-targets.d.ts +21 -0
- package/dist/endpoints/execution-targets/execution-targets.js +50 -0
- package/dist/endpoints/platform-runner-enrollments/platform-runner-enrollments.d.ts +10 -10
- package/dist/endpoints/platform-runner-enrollments/platform-runner-enrollments.js +20 -20
- package/dist/endpoints/runner-enrollments/runner-enrollments.d.ts +8 -8
- package/dist/endpoints/runner-enrollments/runner-enrollments.js +16 -16
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/biomeApprovalResponseDto.d.ts +3 -6
- package/dist/models/{biomeApprovalResponseDtoResolvedAt.d.ts → biomeApprovalResponseDtoDecisionId.d.ts} +4 -1
- package/dist/models/contributionKind.d.ts +5 -0
- package/dist/models/contributionKind.js +5 -0
- package/dist/models/createBiomeInstallationDto.d.ts +0 -2
- package/dist/models/createExecutionTargetDto.d.ts +40 -0
- package/dist/models/createExecutionTargetDtoLabels.d.ts +11 -0
- package/dist/models/createRunnerEnrollmentDto.d.ts +2 -0
- package/dist/models/createRuntimeBindingDto.d.ts +1 -1
- package/dist/models/dataClassification.d.ts +16 -0
- package/dist/models/dataClassification.js +15 -0
- package/dist/models/executionTargetResponseDto.d.ts +49 -0
- package/dist/models/executionTargetResponseDtoDataArrayEnvelope.d.ts +9 -0
- package/dist/models/executionTargetResponseDtoDataEnvelope.d.ts +9 -0
- package/dist/models/executionTargetResponseDtoDataEnvelope.js +2 -0
- package/dist/models/executionTargetResponseDtoLabels.d.ts +11 -0
- package/dist/models/{runtimeResponseDtoStatus.d.ts → executionTargetStatus.d.ts} +2 -2
- package/dist/models/{runtimeResponseDtoStatus.js → executionTargetStatus.js} +2 -2
- package/dist/models/index.d.ts +14 -8
- package/dist/models/index.js +14 -8
- package/dist/models/runnerEnrollmentManagementResponseDto.d.ts +4 -1
- package/dist/models/runnerEnrollmentResponseDto.d.ts +4 -1
- package/dist/models/runnerKind.d.ts +18 -0
- package/dist/models/runnerKind.js +17 -0
- package/dist/models/runtimeBindingResponseDto.d.ts +2 -2
- package/dist/models/runtimeIsolationLevel.d.ts +15 -0
- package/dist/models/{resolveApprovalDtoStatus.js → runtimeIsolationLevel.js} +6 -4
- package/dist/models/spaceKind.d.ts +18 -0
- package/dist/models/spaceKind.js +17 -0
- package/dist/models/updateExecutionTargetDto.d.ts +27 -0
- package/dist/models/updateExecutionTargetDto.js +2 -0
- package/dist/models/updateExecutionTargetDtoLabels.d.ts +11 -0
- package/dist/models/{biomeApprovalResponseDtoResolvedBy.d.ts → updateExecutionTargetDtoLabels.js} +2 -3
- package/package.json +2 -2
- package/dist/endpoints/biome-runtimes/biome-runtimes.d.ts +0 -11
- package/dist/endpoints/biome-runtimes/biome-runtimes.js +0 -18
- package/dist/models/biomeApprovalResponseDtoResolveReason.d.ts +0 -8
- package/dist/models/resolveApprovalDto.d.ts +0 -12
- package/dist/models/resolveApprovalDtoStatus.d.ts +0 -13
- package/dist/models/runtimeResponseDto.d.ts +0 -34
- package/dist/models/runtimeResponseDtoDataArrayEnvelope.d.ts +0 -9
- /package/dist/models/{biomeApprovalResponseDtoResolveReason.js → biomeApprovalResponseDtoDecisionId.js} +0 -0
- /package/dist/models/{resolveApprovalDto.js → createExecutionTargetDto.js} +0 -0
- /package/dist/models/{biomeApprovalResponseDtoResolvedAt.js → createExecutionTargetDtoLabels.js} +0 -0
- /package/dist/models/{runtimeResponseDto.js → executionTargetResponseDto.js} +0 -0
- /package/dist/models/{runtimeResponseDtoDataArrayEnvelope.js → executionTargetResponseDtoDataArrayEnvelope.js} +0 -0
- /package/dist/models/{biomeApprovalResponseDtoResolvedBy.js → executionTargetResponseDtoLabels.js} +0 -0
package/dist/custom-fetch.d.ts
CHANGED
|
@@ -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
|
package/dist/custom-fetch.js
CHANGED
|
@@ -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();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Biome Host API
|
|
4
4
|
* OpenAPI spec version: 0.1.1
|
|
5
5
|
*/
|
|
6
|
-
import type { BiomeApprovalResponseDtoDataArrayEnvelope, BiomeApprovalResponseDtoDataEnvelope, RequestApprovalDto
|
|
6
|
+
import type { BiomeApprovalResponseDtoDataArrayEnvelope, BiomeApprovalResponseDtoDataEnvelope, RequestApprovalDto } from '../../models';
|
|
7
7
|
export declare const getBiomeApprovalsControllerRequestUrl: (biomeId: string, installationId: string) => string;
|
|
8
8
|
/**
|
|
9
9
|
* @summary Request an approval for a lifecycle transition on a biome installation.
|
|
@@ -14,8 +14,3 @@ export declare const getBiomeApprovalsControllerListPendingUrl: (biomeId: string
|
|
|
14
14
|
* @summary List pending approvals for a biome installation.
|
|
15
15
|
*/
|
|
16
16
|
export declare const biomeApprovalsControllerListPending: (biomeId: string, installationId: string, options?: RequestInit) => Promise<BiomeApprovalResponseDtoDataArrayEnvelope>;
|
|
17
|
-
export declare const getBiomeApprovalsControllerResolveUrl: (biomeId: string, installationId: string, approvalId: string) => string;
|
|
18
|
-
/**
|
|
19
|
-
* @summary Approve or reject a pending approval request.
|
|
20
|
-
*/
|
|
21
|
-
export declare const biomeApprovalsControllerResolve: (biomeId: string, installationId: string, approvalId: string, resolveApprovalDto: ResolveApprovalDto, options?: RequestInit) => Promise<BiomeApprovalResponseDtoDataEnvelope>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.biomeApprovalsControllerListPending = exports.getBiomeApprovalsControllerListPendingUrl = exports.biomeApprovalsControllerRequest = exports.getBiomeApprovalsControllerRequestUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
5
|
const getBiomeApprovalsControllerRequestUrl = (biomeId, installationId) => {
|
|
6
6
|
return `/platform/biomes/${biomeId}/installations/${installationId}/approvals`;
|
|
@@ -32,19 +32,3 @@ const biomeApprovalsControllerListPending = async (biomeId, installationId, opti
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
exports.biomeApprovalsControllerListPending = biomeApprovalsControllerListPending;
|
|
35
|
-
const getBiomeApprovalsControllerResolveUrl = (biomeId, installationId, approvalId) => {
|
|
36
|
-
return `/platform/biomes/${biomeId}/installations/${installationId}/approvals/${approvalId}`;
|
|
37
|
-
};
|
|
38
|
-
exports.getBiomeApprovalsControllerResolveUrl = getBiomeApprovalsControllerResolveUrl;
|
|
39
|
-
/**
|
|
40
|
-
* @summary Approve or reject a pending approval request.
|
|
41
|
-
*/
|
|
42
|
-
const biomeApprovalsControllerResolve = async (biomeId, installationId, approvalId, resolveApprovalDto, options) => {
|
|
43
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getBiomeApprovalsControllerResolveUrl)(biomeId, installationId, approvalId), {
|
|
44
|
-
...options,
|
|
45
|
-
method: 'PATCH',
|
|
46
|
-
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
47
|
-
body: JSON.stringify(resolveApprovalDto)
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
exports.biomeApprovalsControllerResolve = biomeApprovalsControllerResolve;
|
|
@@ -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: (
|
|
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: (
|
|
12
|
-
export declare const getPlatformRunnerEnrollmentsControllerCreateUrl: (
|
|
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: (
|
|
17
|
-
export declare const getPlatformRunnerEnrollmentsControllerRotateUrl: (
|
|
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: (
|
|
22
|
-
export declare const getPlatformRunnerEnrollmentsControllerDrainUrl: (
|
|
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: (
|
|
27
|
-
export declare const getPlatformRunnerEnrollmentsControllerBreakGlassRevokeUrl: (
|
|
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: (
|
|
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 = (
|
|
6
|
-
return `/platform/runtimes/${
|
|
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 (
|
|
13
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getPlatformRunnerEnrollmentsControllerListUrl)(
|
|
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 = (
|
|
20
|
-
return `/platform/runtimes/${
|
|
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 (
|
|
27
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getPlatformRunnerEnrollmentsControllerCreateUrl)(
|
|
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 = (
|
|
36
|
-
return `/platform/runtimes/${
|
|
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 (
|
|
43
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getPlatformRunnerEnrollmentsControllerRotateUrl)(
|
|
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 = (
|
|
52
|
-
return `/platform/runtimes/${
|
|
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 (
|
|
59
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getPlatformRunnerEnrollmentsControllerDrainUrl)(
|
|
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 = (
|
|
66
|
-
return `/platform/runtimes/${
|
|
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 (
|
|
73
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getPlatformRunnerEnrollmentsControllerBreakGlassRevokeUrl)(
|
|
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: (
|
|
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: (
|
|
12
|
-
export declare const getRunnerEnrollmentsControllerCreateUrl: (
|
|
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: (
|
|
17
|
-
export declare const getRunnerEnrollmentsControllerRotateUrl: (
|
|
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: (
|
|
22
|
-
export declare const getRunnerEnrollmentsControllerDrainUrl: (
|
|
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: (
|
|
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 = (
|
|
6
|
-
return `/runtimes/${
|
|
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 (
|
|
13
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getRunnerEnrollmentsControllerListUrl)(
|
|
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 = (
|
|
20
|
-
return `/runtimes/${
|
|
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 (
|
|
27
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getRunnerEnrollmentsControllerCreateUrl)(
|
|
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 = (
|
|
36
|
-
return `/runtimes/${
|
|
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 (
|
|
43
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getRunnerEnrollmentsControllerRotateUrl)(
|
|
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 = (
|
|
52
|
-
return `/runtimes/${
|
|
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 (
|
|
59
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getRunnerEnrollmentsControllerDrainUrl)(
|
|
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/
|
|
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/
|
|
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);
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
* Biome Host API
|
|
4
4
|
* OpenAPI spec version: 0.1.1
|
|
5
5
|
*/
|
|
6
|
-
import type {
|
|
7
|
-
import type { BiomeApprovalResponseDtoResolvedBy } from './biomeApprovalResponseDtoResolvedBy.js';
|
|
8
|
-
import type { BiomeApprovalResponseDtoResolveReason } from './biomeApprovalResponseDtoResolveReason.js';
|
|
6
|
+
import type { BiomeApprovalResponseDtoDecisionId } from './biomeApprovalResponseDtoDecisionId.js';
|
|
9
7
|
import type { BiomeApprovalStatus } from './biomeApprovalStatus.js';
|
|
10
8
|
export interface BiomeApprovalResponseDto {
|
|
11
9
|
id: string;
|
|
@@ -17,8 +15,7 @@ export interface BiomeApprovalResponseDto {
|
|
|
17
15
|
requestedBy: string;
|
|
18
16
|
requestedAt: string;
|
|
19
17
|
status: BiomeApprovalStatus;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
resolveReason?: BiomeApprovalResponseDtoResolveReason;
|
|
18
|
+
/** The decision gating this transition. Null before the ask is opened. */
|
|
19
|
+
decisionId?: BiomeApprovalResponseDtoDecisionId;
|
|
23
20
|
expiresAt: string;
|
|
24
21
|
}
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* Biome Host API
|
|
4
4
|
* OpenAPI spec version: 0.1.1
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* The decision gating this transition. Null before the ask is opened.
|
|
8
|
+
*/
|
|
9
|
+
export type BiomeApprovalResponseDtoDecisionId = {
|
|
7
10
|
[key: string]: unknown;
|
|
8
11
|
};
|
|
@@ -16,6 +16,10 @@ export declare const ContributionKind: {
|
|
|
16
16
|
readonly 'widget-kind': "widget-kind";
|
|
17
17
|
readonly 'surface-kind': "surface-kind";
|
|
18
18
|
readonly 'artifact-type': "artifact-type";
|
|
19
|
+
readonly 'template-kind': "template-kind";
|
|
20
|
+
readonly 'design-system-kind': "design-system-kind";
|
|
21
|
+
readonly template: "template";
|
|
22
|
+
readonly 'design-system': "design-system";
|
|
19
23
|
readonly 'inquiry-kind': "inquiry-kind";
|
|
20
24
|
readonly 'role-capability': "role-capability";
|
|
21
25
|
readonly 'biome-install-schema': "biome-install-schema";
|
|
@@ -23,6 +27,7 @@ export declare const ContributionKind: {
|
|
|
23
27
|
readonly 'project-kit': "project-kit";
|
|
24
28
|
readonly 'provisioning-scaffold': "provisioning-scaffold";
|
|
25
29
|
readonly 'connector-adapter': "connector-adapter";
|
|
30
|
+
readonly 'inbound-endpoint': "inbound-endpoint";
|
|
26
31
|
readonly 'workflow-config': "workflow-config";
|
|
27
32
|
readonly 'deliverable-spec': "deliverable-spec";
|
|
28
33
|
readonly 'workspace-manifest': "workspace-manifest";
|
|
@@ -15,6 +15,10 @@ exports.ContributionKind = {
|
|
|
15
15
|
'widget-kind': 'widget-kind',
|
|
16
16
|
'surface-kind': 'surface-kind',
|
|
17
17
|
'artifact-type': 'artifact-type',
|
|
18
|
+
'template-kind': 'template-kind',
|
|
19
|
+
'design-system-kind': 'design-system-kind',
|
|
20
|
+
template: 'template',
|
|
21
|
+
'design-system': 'design-system',
|
|
18
22
|
'inquiry-kind': 'inquiry-kind',
|
|
19
23
|
'role-capability': 'role-capability',
|
|
20
24
|
'biome-install-schema': 'biome-install-schema',
|
|
@@ -22,6 +26,7 @@ exports.ContributionKind = {
|
|
|
22
26
|
'project-kit': 'project-kit',
|
|
23
27
|
'provisioning-scaffold': 'provisioning-scaffold',
|
|
24
28
|
'connector-adapter': 'connector-adapter',
|
|
29
|
+
'inbound-endpoint': 'inbound-endpoint',
|
|
25
30
|
'workflow-config': 'workflow-config',
|
|
26
31
|
'deliverable-spec': 'deliverable-spec',
|
|
27
32
|
'workspace-manifest': 'workspace-manifest',
|
|
@@ -15,6 +15,4 @@ export interface CreateBiomeInstallationDto {
|
|
|
15
15
|
connections: BiomeInstallationConnectionBindingInputDto[];
|
|
16
16
|
/** Per-adapter resource selector slices the dispatcher will feed into the biome's webhookFilters predicate as $selector.*. */
|
|
17
17
|
resources: BiomeInstallationResourceInputDto[];
|
|
18
|
-
/** Optional pinned biome version (defaults to the catalog version at install time). */
|
|
19
|
-
version?: string;
|
|
20
18
|
}
|
|
@@ -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
|
+
};
|
|
@@ -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
|
-
|
|
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 {}. */
|