@xemahq/biome-host-api-client 0.3.5 → 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.
- package/dist/custom-fetch.d.ts +22 -0
- package/dist/custom-fetch.js +27 -0
- package/dist/endpoints/biome-installations/biome-installations.d.ts +4 -4
- package/dist/endpoints/biome-installations/biome-installations.js +24 -5
- package/dist/endpoints/execution-targets/execution-targets.d.ts +21 -0
- package/dist/endpoints/execution-targets/execution-targets.js +50 -0
- package/dist/endpoints/org-biome-installations/org-biome-installations.d.ts +4 -4
- package/dist/endpoints/org-biome-installations/org-biome-installations.js +24 -5
- package/dist/endpoints/platform-biomes-quarantine/platform-biomes-quarantine.d.ts +11 -0
- package/dist/endpoints/platform-biomes-quarantine/platform-biomes-quarantine.js +18 -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 +2 -1
- package/dist/index.js +2 -1
- package/dist/models/biomeInstallationsControllerListParams.d.ts +11 -0
- package/dist/models/biomeInstallationsControllerListParams.js +7 -0
- package/dist/models/biomeQuarantineReportDto.d.ts +11 -0
- package/dist/models/biomeQuarantineReportDtoDataEnvelope.d.ts +9 -0
- package/dist/models/biomeQuarantineStage.d.ts +13 -0
- package/dist/models/biomeQuarantineStage.js +12 -0
- package/dist/models/biomeTarget.d.ts +13 -0
- package/dist/models/biomeTarget.js +12 -0
- package/dist/models/createExecutionTargetDto.d.ts +40 -0
- package/dist/models/createExecutionTargetDto.js +2 -0
- package/dist/models/createExecutionTargetDtoLabels.d.ts +11 -0
- package/dist/models/createExecutionTargetDtoLabels.js +7 -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/executionTargetResponseDto.js +2 -0
- package/dist/models/executionTargetResponseDtoDataArrayEnvelope.d.ts +9 -0
- package/dist/models/executionTargetResponseDtoDataArrayEnvelope.js +2 -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/executionTargetResponseDtoLabels.js +7 -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 +20 -3
- package/dist/models/index.js +20 -3
- package/dist/models/orgBiomeInstallationsControllerListParams.d.ts +11 -0
- package/dist/models/orgBiomeInstallationsControllerListParams.js +7 -0
- package/dist/models/quarantinedBiomeDto.d.ts +23 -0
- package/dist/models/quarantinedBiomeDto.js +2 -0
- 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/runtimeIsolationLevel.js +14 -0
- 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/updateExecutionTargetDtoLabels.js +7 -0
- 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/runtimeResponseDto.d.ts +0 -34
- package/dist/models/runtimeResponseDtoDataArrayEnvelope.d.ts +0 -9
- /package/dist/models/{runtimeResponseDto.js → biomeQuarantineReportDto.js} +0 -0
- /package/dist/models/{runtimeResponseDtoDataArrayEnvelope.js → biomeQuarantineReportDtoDataEnvelope.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,17 +3,17 @@
|
|
|
3
3
|
* Biome Host API
|
|
4
4
|
* OpenAPI spec version: 0.1.1
|
|
5
5
|
*/
|
|
6
|
-
import type { BiomeInstallationDeleteResponseDtoDataEnvelope, BiomeInstallationResponseDtoDataArrayEnvelope, BiomeInstallationResponseDtoDataEnvelope, BiomeInstallationsControllerCreateChain201, BiomeLifecycleTransitionResponseDtoDataEnvelope, BiomeMcpToolsManifestResponseDtoDataEnvelope, ChainInstallBiomesDto, CreateBiomeInstallationDto, LifecycleTransitionAckDto, PromoteBiomeInstallationDto, UpdateBiomeInstallationResourcesDto } from '../../models';
|
|
6
|
+
import type { BiomeInstallationDeleteResponseDtoDataEnvelope, BiomeInstallationResponseDtoDataArrayEnvelope, BiomeInstallationResponseDtoDataEnvelope, BiomeInstallationsControllerCreateChain201, BiomeInstallationsControllerListParams, BiomeLifecycleTransitionResponseDtoDataEnvelope, BiomeMcpToolsManifestResponseDtoDataEnvelope, ChainInstallBiomesDto, CreateBiomeInstallationDto, LifecycleTransitionAckDto, PromoteBiomeInstallationDto, UpdateBiomeInstallationResourcesDto } from '../../models';
|
|
7
7
|
export declare const getBiomeInstallationsControllerCreateUrl: (projectId: string) => string;
|
|
8
8
|
/**
|
|
9
9
|
* @summary Install a biome on this project with initial bindings + selectors
|
|
10
10
|
*/
|
|
11
11
|
export declare const biomeInstallationsControllerCreate: (projectId: string, createBiomeInstallationDto: CreateBiomeInstallationDto, options?: RequestInit) => Promise<BiomeInstallationResponseDtoDataEnvelope>;
|
|
12
|
-
export declare const getBiomeInstallationsControllerListUrl: (projectId: string) => string;
|
|
12
|
+
export declare const getBiomeInstallationsControllerListUrl: (projectId: string, params?: BiomeInstallationsControllerListParams) => string;
|
|
13
13
|
/**
|
|
14
|
-
* @summary List biome installations for this project
|
|
14
|
+
* @summary List biome installations for this project. Archived installations are excluded unless `includeArchived=true`.
|
|
15
15
|
*/
|
|
16
|
-
export declare const biomeInstallationsControllerList: (projectId: string, options?: RequestInit) => Promise<BiomeInstallationResponseDtoDataArrayEnvelope>;
|
|
16
|
+
export declare const biomeInstallationsControllerList: (projectId: string, params?: BiomeInstallationsControllerListParams, options?: RequestInit) => Promise<BiomeInstallationResponseDtoDataArrayEnvelope>;
|
|
17
17
|
export declare const getBiomeInstallationsControllerCreateChainUrl: (projectId: string) => string;
|
|
18
18
|
/**
|
|
19
19
|
* @summary Transactionally install a chain of biomes (target plus its dependency closure). The wizard uses this when the user-clicked biome has unresolved `xema.dependencies` — all entries install in a single Prisma transaction, or none do.
|
|
@@ -18,15 +18,34 @@ const biomeInstallationsControllerCreate = async (projectId, createBiomeInstalla
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
exports.biomeInstallationsControllerCreate = biomeInstallationsControllerCreate;
|
|
21
|
-
const getBiomeInstallationsControllerListUrl = (projectId) => {
|
|
22
|
-
|
|
21
|
+
const getBiomeInstallationsControllerListUrl = (projectId, params) => {
|
|
22
|
+
const normalizedParams = new URLSearchParams();
|
|
23
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
24
|
+
if (value === undefined)
|
|
25
|
+
return;
|
|
26
|
+
if (value === null) {
|
|
27
|
+
normalizedParams.append(key, 'null');
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (Array.isArray(value)) {
|
|
31
|
+
for (const item of value) {
|
|
32
|
+
if (item === undefined || item === null)
|
|
33
|
+
continue;
|
|
34
|
+
normalizedParams.append(key, item.toString());
|
|
35
|
+
}
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
normalizedParams.append(key, value.toString());
|
|
39
|
+
});
|
|
40
|
+
const stringifiedParams = normalizedParams.toString();
|
|
41
|
+
return stringifiedParams.length > 0 ? `/projects/${projectId}/biome-installations?${stringifiedParams}` : `/projects/${projectId}/biome-installations`;
|
|
23
42
|
};
|
|
24
43
|
exports.getBiomeInstallationsControllerListUrl = getBiomeInstallationsControllerListUrl;
|
|
25
44
|
/**
|
|
26
|
-
* @summary List biome installations for this project
|
|
45
|
+
* @summary List biome installations for this project. Archived installations are excluded unless `includeArchived=true`.
|
|
27
46
|
*/
|
|
28
|
-
const biomeInstallationsControllerList = async (projectId, options) => {
|
|
29
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getBiomeInstallationsControllerListUrl)(projectId), {
|
|
47
|
+
const biomeInstallationsControllerList = async (projectId, params, options) => {
|
|
48
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getBiomeInstallationsControllerListUrl)(projectId, params), {
|
|
30
49
|
...options,
|
|
31
50
|
method: 'GET'
|
|
32
51
|
});
|
|
@@ -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;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* Biome Host API
|
|
4
4
|
* OpenAPI spec version: 0.1.1
|
|
5
5
|
*/
|
|
6
|
-
import type { BiomeInstallationResponseDtoDataArrayEnvelope, BiomeInstallationResponseDtoDataEnvelope, CreateBiomeInstallationDto, OrgBiomeInstallationDeleteResponseDtoDataEnvelope, UpdateOrgBiomeInstallationDto } from '../../models';
|
|
7
|
-
export declare const getOrgBiomeInstallationsControllerListUrl: () => string;
|
|
6
|
+
import type { BiomeInstallationResponseDtoDataArrayEnvelope, BiomeInstallationResponseDtoDataEnvelope, CreateBiomeInstallationDto, OrgBiomeInstallationDeleteResponseDtoDataEnvelope, OrgBiomeInstallationsControllerListParams, UpdateOrgBiomeInstallationDto } from '../../models';
|
|
7
|
+
export declare const getOrgBiomeInstallationsControllerListUrl: (params?: OrgBiomeInstallationsControllerListParams) => string;
|
|
8
8
|
/**
|
|
9
|
-
* @summary List this org's ORG-SCOPED biome installations (projectId IS NULL).
|
|
9
|
+
* @summary List this org's ORG-SCOPED biome installations (projectId IS NULL). Archived installations are excluded unless `includeArchived=true`.
|
|
10
10
|
*/
|
|
11
|
-
export declare const orgBiomeInstallationsControllerList: (options?: RequestInit) => Promise<BiomeInstallationResponseDtoDataArrayEnvelope>;
|
|
11
|
+
export declare const orgBiomeInstallationsControllerList: (params?: OrgBiomeInstallationsControllerListParams, options?: RequestInit) => Promise<BiomeInstallationResponseDtoDataArrayEnvelope>;
|
|
12
12
|
export declare const getOrgBiomeInstallationsControllerCreateUrl: () => string;
|
|
13
13
|
/**
|
|
14
14
|
* @summary Install a biome at ORG scope (projectId IS NULL) with initial config + bindings + selectors. Idempotent on the org-scoped natural key — re-applying the same biome re-pins the spec in place. A remote-bundle biome is fetched + verified and dispatched as ONE org-scoped workload shared by all the org's projects.
|
|
@@ -2,15 +2,34 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.orgBiomeInstallationsControllerRemove = exports.getOrgBiomeInstallationsControllerRemoveUrl = exports.orgBiomeInstallationsControllerUpdate = exports.getOrgBiomeInstallationsControllerUpdateUrl = exports.orgBiomeInstallationsControllerGet = exports.getOrgBiomeInstallationsControllerGetUrl = exports.orgBiomeInstallationsControllerCreate = exports.getOrgBiomeInstallationsControllerCreateUrl = exports.orgBiomeInstallationsControllerList = exports.getOrgBiomeInstallationsControllerListUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
const getOrgBiomeInstallationsControllerListUrl = () => {
|
|
6
|
-
|
|
5
|
+
const getOrgBiomeInstallationsControllerListUrl = (params) => {
|
|
6
|
+
const normalizedParams = new URLSearchParams();
|
|
7
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
8
|
+
if (value === undefined)
|
|
9
|
+
return;
|
|
10
|
+
if (value === null) {
|
|
11
|
+
normalizedParams.append(key, 'null');
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
if (Array.isArray(value)) {
|
|
15
|
+
for (const item of value) {
|
|
16
|
+
if (item === undefined || item === null)
|
|
17
|
+
continue;
|
|
18
|
+
normalizedParams.append(key, item.toString());
|
|
19
|
+
}
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
normalizedParams.append(key, value.toString());
|
|
23
|
+
});
|
|
24
|
+
const stringifiedParams = normalizedParams.toString();
|
|
25
|
+
return stringifiedParams.length > 0 ? `/org-biome-installations?${stringifiedParams}` : `/org-biome-installations`;
|
|
7
26
|
};
|
|
8
27
|
exports.getOrgBiomeInstallationsControllerListUrl = getOrgBiomeInstallationsControllerListUrl;
|
|
9
28
|
/**
|
|
10
|
-
* @summary List this org's ORG-SCOPED biome installations (projectId IS NULL).
|
|
29
|
+
* @summary List this org's ORG-SCOPED biome installations (projectId IS NULL). Archived installations are excluded unless `includeArchived=true`.
|
|
11
30
|
*/
|
|
12
|
-
const orgBiomeInstallationsControllerList = async (options) => {
|
|
13
|
-
return (0, custom_fetch_1.customFetch)((0, exports.getOrgBiomeInstallationsControllerListUrl)(), {
|
|
31
|
+
const orgBiomeInstallationsControllerList = async (params, options) => {
|
|
32
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getOrgBiomeInstallationsControllerListUrl)(params), {
|
|
14
33
|
...options,
|
|
15
34
|
method: 'GET'
|
|
16
35
|
});
|
|
@@ -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
|
+
import type { BiomeQuarantineReportDtoDataEnvelope } from '../../models';
|
|
7
|
+
export declare const getBiomeQuarantineControllerReportUrl: () => string;
|
|
8
|
+
/**
|
|
9
|
+
* @summary Report every biome this replica dropped at scan time because its xema-biome.json could not be read, with the ingestion stage that failed and the parse error verbatim. An empty list means the catalog is whole; a non-empty one means this replica is serving every OTHER biome normally while the listed ones are dark. The replica stays ready either way — a biome that reached quarantine has been proven non-required, so this endpoint is how the gap is noticed.
|
|
10
|
+
*/
|
|
11
|
+
export declare const biomeQuarantineControllerReport: (options?: RequestInit) => Promise<BiomeQuarantineReportDtoDataEnvelope>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.biomeQuarantineControllerReport = exports.getBiomeQuarantineControllerReportUrl = void 0;
|
|
4
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
+
const getBiomeQuarantineControllerReportUrl = () => {
|
|
6
|
+
return `/platform/biomes/quarantine`;
|
|
7
|
+
};
|
|
8
|
+
exports.getBiomeQuarantineControllerReportUrl = getBiomeQuarantineControllerReportUrl;
|
|
9
|
+
/**
|
|
10
|
+
* @summary Report every biome this replica dropped at scan time because its xema-biome.json could not be read, with the ingestion stage that failed and the parse error verbatim. An empty list means the catalog is whole; a non-empty one means this replica is serving every OTHER biome normally while the listed ones are dark. The replica stays ready either way — a biome that reached quarantine has been proven non-required, so this endpoint is how the gap is noticed.
|
|
11
|
+
*/
|
|
12
|
+
const biomeQuarantineControllerReport = async (options) => {
|
|
13
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getBiomeQuarantineControllerReportUrl)(), {
|
|
14
|
+
...options,
|
|
15
|
+
method: 'GET'
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
exports.biomeQuarantineControllerReport = biomeQuarantineControllerReport;
|
|
@@ -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,11 +4,12 @@ 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';
|
|
11
11
|
export * from './endpoints/platform-biomes-enablement/platform-biomes-enablement';
|
|
12
|
+
export * from './endpoints/platform-biomes-quarantine/platform-biomes-quarantine';
|
|
12
13
|
export * from './endpoints/platform-biomes-server/platform-biomes-server';
|
|
13
14
|
export * from './endpoints/platform-biomes-web/platform-biomes-web';
|
|
14
15
|
export * from './endpoints/platform-runner-enrollments/platform-runner-enrollments';
|
package/dist/index.js
CHANGED
|
@@ -26,11 +26,12 @@ __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);
|
|
33
33
|
__exportStar(require("./endpoints/platform-biomes-enablement/platform-biomes-enablement"), exports);
|
|
34
|
+
__exportStar(require("./endpoints/platform-biomes-quarantine/platform-biomes-quarantine"), exports);
|
|
34
35
|
__exportStar(require("./endpoints/platform-biomes-server/platform-biomes-server"), exports);
|
|
35
36
|
__exportStar(require("./endpoints/platform-biomes-web/platform-biomes-web"), exports);
|
|
36
37
|
__exportStar(require("./endpoints/platform-runner-enrollments/platform-runner-enrollments"), exports);
|
|
@@ -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
|
+
export type BiomeInstallationsControllerListParams = {
|
|
7
|
+
/**
|
|
8
|
+
* Include installations whose lifecycle is `archived`. Default false — `archived` is terminal: archived rows are never resolved and are ineligible for runtime contribution, so listing one advertises an install nothing will route to.
|
|
9
|
+
*/
|
|
10
|
+
includeArchived?: boolean;
|
|
11
|
+
};
|
|
@@ -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
|
+
import type { QuarantinedBiomeDto } from './quarantinedBiomeDto.js';
|
|
7
|
+
export interface BiomeQuarantineReportDto {
|
|
8
|
+
/** False when at least one biome was dropped at scan time. The replica stays READY and keeps serving every other biome — a biome that reached quarantine has been proven non-required — so this flag, not a failing probe, is what says the catalog is incomplete. */
|
|
9
|
+
catalogWhole: boolean;
|
|
10
|
+
quarantinedBiomes: QuarantinedBiomeDto[];
|
|
11
|
+
}
|