@xemahq/biome-host-internal-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/bundle-bytes/bundle-bytes.d.ts +5 -0
- package/dist/endpoints/bundle-bytes/bundle-bytes.js +23 -0
- package/dist/endpoints/execution-targets-internal/execution-targets-internal.d.ts +11 -0
- package/dist/endpoints/execution-targets-internal/execution-targets-internal.js +37 -0
- package/dist/endpoints/org-erasure/org-erasure.d.ts +5 -0
- package/dist/endpoints/org-erasure/org-erasure.js +23 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/models/credentialDeliveryKind.d.ts +11 -0
- package/dist/models/credentialDeliveryKind.js +13 -0
- package/dist/models/dataClassification.d.ts +16 -0
- package/dist/models/dataClassification.js +15 -0
- package/dist/models/dispatchAuthorizationResponseDto.d.ts +1 -1
- package/dist/models/executionTargetInternalControllerResolveParams.d.ts +15 -0
- package/dist/models/executionTargetInternalControllerResolveParams.js +7 -0
- package/dist/models/executionTargetResponseDto.d.ts +49 -0
- package/dist/models/executionTargetResponseDto.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/executionTargetStatus.d.ts +13 -0
- package/dist/models/executionTargetStatus.js +15 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/models/recordRunnerAttestationDto.d.ts +2 -0
- 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/runtimeBindingCandidateResponseDto.d.ts +2 -2
- package/dist/models/spaceKind.d.ts +1 -1
- package/dist/models/xemaObjectKind.d.ts +2 -2
- package/dist/models/xemaObjectKind.js +2 -2
- package/package.json +2 -2
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();
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const getBundleBytesControllerDownloadUrl: (grantId: string) => string;
|
|
2
|
+
/**
|
|
3
|
+
* @summary Stream the granted biome bundle's tarball (raw gzip) to a dispatched adapter host.
|
|
4
|
+
*/
|
|
5
|
+
export declare const bundleBytesControllerDownload: (grantId: string, options?: RequestInit) => Promise<void>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bundleBytesControllerDownload = exports.getBundleBytesControllerDownloadUrl = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
6
|
+
* Biome Host API
|
|
7
|
+
* OpenAPI spec version: 0.1.1
|
|
8
|
+
*/
|
|
9
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
10
|
+
const getBundleBytesControllerDownloadUrl = (grantId) => {
|
|
11
|
+
return `/internal/bundle-bytes/${grantId}`;
|
|
12
|
+
};
|
|
13
|
+
exports.getBundleBytesControllerDownloadUrl = getBundleBytesControllerDownloadUrl;
|
|
14
|
+
/**
|
|
15
|
+
* @summary Stream the granted biome bundle's tarball (raw gzip) to a dispatched adapter host.
|
|
16
|
+
*/
|
|
17
|
+
const bundleBytesControllerDownload = async (grantId, options) => {
|
|
18
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getBundleBytesControllerDownloadUrl)(grantId), {
|
|
19
|
+
...options,
|
|
20
|
+
method: 'GET'
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
exports.bundleBytesControllerDownload = bundleBytesControllerDownload;
|
|
@@ -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 { ExecutionTargetInternalControllerResolveParams, ExecutionTargetResponseDtoDataEnvelope } from '../../models';
|
|
7
|
+
export declare const getExecutionTargetInternalControllerResolveUrl: (params: ExecutionTargetInternalControllerResolveParams) => string;
|
|
8
|
+
/**
|
|
9
|
+
* @summary Resolve the one execution target an org should place work on — by slug, or the org default
|
|
10
|
+
*/
|
|
11
|
+
export declare const executionTargetInternalControllerResolve: (params: ExecutionTargetInternalControllerResolveParams, options?: RequestInit) => Promise<ExecutionTargetResponseDtoDataEnvelope>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.executionTargetInternalControllerResolve = exports.getExecutionTargetInternalControllerResolveUrl = void 0;
|
|
4
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
+
const getExecutionTargetInternalControllerResolveUrl = (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 ? `/internal/execution-targets/resolve?${stringifiedParams}` : `/internal/execution-targets/resolve`;
|
|
26
|
+
};
|
|
27
|
+
exports.getExecutionTargetInternalControllerResolveUrl = getExecutionTargetInternalControllerResolveUrl;
|
|
28
|
+
/**
|
|
29
|
+
* @summary Resolve the one execution target an org should place work on — by slug, or the org default
|
|
30
|
+
*/
|
|
31
|
+
const executionTargetInternalControllerResolve = async (params, options) => {
|
|
32
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getExecutionTargetInternalControllerResolveUrl)(params), {
|
|
33
|
+
...options,
|
|
34
|
+
method: 'GET'
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
exports.executionTargetInternalControllerResolve = executionTargetInternalControllerResolve;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const getOrgErasureControllerEraseUrl: (orgId: string) => string;
|
|
2
|
+
/**
|
|
3
|
+
* @summary Erase every row belonging to an org across this service's org-scoped models
|
|
4
|
+
*/
|
|
5
|
+
export declare const orgErasureControllerErase: (orgId: string, options?: RequestInit) => Promise<void>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orgErasureControllerErase = exports.getOrgErasureControllerEraseUrl = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
6
|
+
* Biome Host API
|
|
7
|
+
* OpenAPI spec version: 0.1.1
|
|
8
|
+
*/
|
|
9
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
10
|
+
const getOrgErasureControllerEraseUrl = (orgId) => {
|
|
11
|
+
return `/internal/org-erasure/${orgId}`;
|
|
12
|
+
};
|
|
13
|
+
exports.getOrgErasureControllerEraseUrl = getOrgErasureControllerEraseUrl;
|
|
14
|
+
/**
|
|
15
|
+
* @summary Erase every row belonging to an org across this service's org-scoped models
|
|
16
|
+
*/
|
|
17
|
+
const orgErasureControllerErase = async (orgId, options) => {
|
|
18
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getOrgErasureControllerEraseUrl)(orgId), {
|
|
19
|
+
...options,
|
|
20
|
+
method: 'POST'
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
exports.orgErasureControllerErase = orgErasureControllerErase;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export { configureClient, getClientConfig, ClientError, customFetch, type ClientConfig, type RetryNotice } from './custom-fetch';
|
|
2
2
|
export * from './models';
|
|
3
|
+
export * from './endpoints/bundle-bytes/bundle-bytes';
|
|
3
4
|
export * from './endpoints/describe-objects/describe-objects';
|
|
5
|
+
export * from './endpoints/execution-targets-internal/execution-targets-internal';
|
|
6
|
+
export * from './endpoints/org-erasure/org-erasure';
|
|
4
7
|
export * from './endpoints/runtime-authority-internal/runtime-authority-internal';
|
package/dist/index.js
CHANGED
|
@@ -22,5 +22,8 @@ Object.defineProperty(exports, "getClientConfig", { enumerable: true, get: funct
|
|
|
22
22
|
Object.defineProperty(exports, "ClientError", { enumerable: true, get: function () { return custom_fetch_1.ClientError; } });
|
|
23
23
|
Object.defineProperty(exports, "customFetch", { enumerable: true, get: function () { return custom_fetch_1.customFetch; } });
|
|
24
24
|
__exportStar(require("./models"), exports);
|
|
25
|
+
__exportStar(require("./endpoints/bundle-bytes/bundle-bytes"), exports);
|
|
25
26
|
__exportStar(require("./endpoints/describe-objects/describe-objects"), exports);
|
|
27
|
+
__exportStar(require("./endpoints/execution-targets-internal/execution-targets-internal"), exports);
|
|
28
|
+
__exportStar(require("./endpoints/org-erasure/org-erasure"), exports);
|
|
26
29
|
__exportStar(require("./endpoints/runtime-authority-internal/runtime-authority-internal"), 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 CredentialDeliveryKind = typeof CredentialDeliveryKind[keyof typeof CredentialDeliveryKind];
|
|
7
|
+
export declare const CredentialDeliveryKind: {
|
|
8
|
+
readonly platform_custody: "platform_custody";
|
|
9
|
+
readonly one_time_exchange: "one_time_exchange";
|
|
10
|
+
readonly token_only: "token_only";
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
+
* Biome Host API
|
|
5
|
+
* OpenAPI spec version: 0.1.1
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.CredentialDeliveryKind = void 0;
|
|
9
|
+
exports.CredentialDeliveryKind = {
|
|
10
|
+
platform_custody: 'platform_custody',
|
|
11
|
+
one_time_exchange: 'one_time_exchange',
|
|
12
|
+
token_only: 'token_only',
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Biome Host API
|
|
4
|
+
* OpenAPI spec version: 0.1.1
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Classification CEILING this target accepts, or null for un-configured. Joined monotonically — it may only ever RAISE restriction.
|
|
8
|
+
*/
|
|
9
|
+
export type DataClassification = typeof DataClassification[keyof typeof DataClassification];
|
|
10
|
+
export declare const DataClassification: {
|
|
11
|
+
readonly public: "public";
|
|
12
|
+
readonly internal: "internal";
|
|
13
|
+
readonly confidential: "confidential";
|
|
14
|
+
readonly secret: "secret";
|
|
15
|
+
readonly regulated: "regulated";
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
+
* Biome Host API
|
|
5
|
+
* OpenAPI spec version: 0.1.1
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.DataClassification = void 0;
|
|
9
|
+
exports.DataClassification = {
|
|
10
|
+
public: 'public',
|
|
11
|
+
internal: 'internal',
|
|
12
|
+
confidential: 'confidential',
|
|
13
|
+
secret: 'secret',
|
|
14
|
+
regulated: 'regulated',
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Biome Host API
|
|
4
|
+
* OpenAPI spec version: 0.1.1
|
|
5
|
+
*/
|
|
6
|
+
export type ExecutionTargetInternalControllerResolveParams = {
|
|
7
|
+
/**
|
|
8
|
+
* The tenant whose Space ladder to resolve against.
|
|
9
|
+
*/
|
|
10
|
+
orgId: string;
|
|
11
|
+
/**
|
|
12
|
+
* The target to resolve. Omitted resolves the org's default. A named slug NEVER falls back: a target that exists but is not active is a typed refusal, because quietly running work somewhere else is what the placement plane exists to prevent.
|
|
13
|
+
*/
|
|
14
|
+
slug?: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Biome Host API
|
|
4
|
+
* OpenAPI spec version: 0.1.1
|
|
5
|
+
*/
|
|
6
|
+
import type { CredentialDeliveryKind } from './credentialDeliveryKind.js';
|
|
7
|
+
import type { DataClassification } from './dataClassification.js';
|
|
8
|
+
import type { ExecutionTargetResponseDtoLabels } from './executionTargetResponseDtoLabels.js';
|
|
9
|
+
import type { ExecutionTargetStatus } from './executionTargetStatus.js';
|
|
10
|
+
import type { RunnerDataLocality } from './runnerDataLocality.js';
|
|
11
|
+
import type { RunnerTrustTier } from './runnerTrustTier.js';
|
|
12
|
+
import type { RuntimeOperatorKind } from './runtimeOperatorKind.js';
|
|
13
|
+
import type { SpaceKind } from './spaceKind.js';
|
|
14
|
+
export interface ExecutionTargetResponseDto {
|
|
15
|
+
id: string;
|
|
16
|
+
slug: string;
|
|
17
|
+
displayName: string;
|
|
18
|
+
/** Canonical `xema://…` SpaceRef URI of the owner. THE address — the tier and the tenant fence below are projections of it. */
|
|
19
|
+
ownerSpaceUri: string;
|
|
20
|
+
/** The owner TIER, projected from `ownerSpaceUri`. Only `system` and `org` are admissible for a placement target. */
|
|
21
|
+
ownerSpaceKind: SpaceKind;
|
|
22
|
+
/** Isolation level this target PROVIDES (RuntimeIsolationLevel wire value). */
|
|
23
|
+
isolation: string;
|
|
24
|
+
/** Data locality this target PROVIDES (RunnerDataLocality wire value). */
|
|
25
|
+
locality: string;
|
|
26
|
+
/** Minimum runner trust tier admitted (RunnerTrustTier wire value). */
|
|
27
|
+
minTrustTier: string;
|
|
28
|
+
operatorKind: RuntimeOperatorKind;
|
|
29
|
+
/**
|
|
30
|
+
* The tenant fence. `null` for the org-less System-owned platform target.
|
|
31
|
+
* @nullable
|
|
32
|
+
*/
|
|
33
|
+
ownerOrgId: string | null;
|
|
34
|
+
credentialDelivery: CredentialDeliveryKind;
|
|
35
|
+
maxTrustTier: RunnerTrustTier;
|
|
36
|
+
allowedLocalities: RunnerDataLocality[];
|
|
37
|
+
/** OPEN operator label map declaring what this pool provides. `ExecutionTargetLabel` names the three keys the platform itself reads (region, residency, accelerator); anything else is an operator vocabulary. */
|
|
38
|
+
labels: ExecutionTargetResponseDtoLabels;
|
|
39
|
+
/** Classification CEILING this target accepts, or null for un-configured. Joined monotonically — it may only ever RAISE restriction. */
|
|
40
|
+
maxDataClassification: DataClassification | null;
|
|
41
|
+
status: ExecutionTargetStatus;
|
|
42
|
+
/** @minimum 1 */
|
|
43
|
+
revision: number;
|
|
44
|
+
/** The fallback target WITHIN its owner space. At most one. */
|
|
45
|
+
isDefault: boolean;
|
|
46
|
+
createdBy: string;
|
|
47
|
+
createdAt: string;
|
|
48
|
+
updatedAt: string;
|
|
49
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Biome Host API
|
|
4
|
+
* OpenAPI spec version: 0.1.1
|
|
5
|
+
*/
|
|
6
|
+
import type { ExecutionTargetResponseDto } from './executionTargetResponseDto.js';
|
|
7
|
+
export interface ExecutionTargetResponseDtoDataEnvelope {
|
|
8
|
+
data: ExecutionTargetResponseDto;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Biome Host API
|
|
4
|
+
* OpenAPI spec version: 0.1.1
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* OPEN operator label map declaring what this pool provides. `ExecutionTargetLabel` names the three keys the platform itself reads (region, residency, accelerator); anything else is an operator vocabulary.
|
|
8
|
+
*/
|
|
9
|
+
export type ExecutionTargetResponseDtoLabels = {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
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 ExecutionTargetStatus = typeof ExecutionTargetStatus[keyof typeof ExecutionTargetStatus];
|
|
7
|
+
export declare const ExecutionTargetStatus: {
|
|
8
|
+
readonly provisioning: "provisioning";
|
|
9
|
+
readonly active: "active";
|
|
10
|
+
readonly draining: "draining";
|
|
11
|
+
readonly revoked: "revoked";
|
|
12
|
+
readonly failed: "failed";
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
+
* Biome Host API
|
|
5
|
+
* OpenAPI spec version: 0.1.1
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ExecutionTargetStatus = void 0;
|
|
9
|
+
exports.ExecutionTargetStatus = {
|
|
10
|
+
provisioning: 'provisioning',
|
|
11
|
+
active: 'active',
|
|
12
|
+
draining: 'draining',
|
|
13
|
+
revoked: 'revoked',
|
|
14
|
+
failed: 'failed',
|
|
15
|
+
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export * from './biomeTrustTier';
|
|
|
6
6
|
export * from './claimDispatchAuthorizationDto';
|
|
7
7
|
export * from './claimRunnerCredentialMaterializationDto';
|
|
8
8
|
export * from './completeDispatchAuthorizationDto';
|
|
9
|
+
export * from './credentialDeliveryKind';
|
|
10
|
+
export * from './dataClassification';
|
|
9
11
|
export * from './describeObjectsResponseDto';
|
|
10
12
|
export * from './describeObjectsResponseDtoDataEnvelope';
|
|
11
13
|
export * from './dispatchAuthorizationResponseDto';
|
|
@@ -25,6 +27,11 @@ export * from './errorDetailsDto';
|
|
|
25
27
|
export * from './errorDetailsDtoDetails';
|
|
26
28
|
export * from './errorPayloadDto';
|
|
27
29
|
export * from './errorResponseDto';
|
|
30
|
+
export * from './executionTargetInternalControllerResolveParams';
|
|
31
|
+
export * from './executionTargetResponseDto';
|
|
32
|
+
export * from './executionTargetResponseDtoDataEnvelope';
|
|
33
|
+
export * from './executionTargetResponseDtoLabels';
|
|
34
|
+
export * from './executionTargetStatus';
|
|
28
35
|
export * from './inFlightRevocationPolicy';
|
|
29
36
|
export * from './objectLifecycle';
|
|
30
37
|
export * from './recordRunnerAttestationDto';
|
|
@@ -40,6 +47,7 @@ export * from './runnerEnrollmentDesiredState';
|
|
|
40
47
|
export * from './runnerEnrollmentObservedState';
|
|
41
48
|
export * from './runnerEnrollmentResponseDto';
|
|
42
49
|
export * from './runnerEnrollmentResponseDtoDataEnvelope';
|
|
50
|
+
export * from './runnerKind';
|
|
43
51
|
export * from './runnerTrustTier';
|
|
44
52
|
export * from './runtimeBindingCandidateResponseDto';
|
|
45
53
|
export * from './runtimeBindingCandidateResponseDtoDataArrayEnvelope';
|
package/dist/models/index.js
CHANGED
|
@@ -23,6 +23,8 @@ __exportStar(require("./biomeTrustTier"), exports);
|
|
|
23
23
|
__exportStar(require("./claimDispatchAuthorizationDto"), exports);
|
|
24
24
|
__exportStar(require("./claimRunnerCredentialMaterializationDto"), exports);
|
|
25
25
|
__exportStar(require("./completeDispatchAuthorizationDto"), exports);
|
|
26
|
+
__exportStar(require("./credentialDeliveryKind"), exports);
|
|
27
|
+
__exportStar(require("./dataClassification"), exports);
|
|
26
28
|
__exportStar(require("./describeObjectsResponseDto"), exports);
|
|
27
29
|
__exportStar(require("./describeObjectsResponseDtoDataEnvelope"), exports);
|
|
28
30
|
__exportStar(require("./dispatchAuthorizationResponseDto"), exports);
|
|
@@ -42,6 +44,11 @@ __exportStar(require("./errorDetailsDto"), exports);
|
|
|
42
44
|
__exportStar(require("./errorDetailsDtoDetails"), exports);
|
|
43
45
|
__exportStar(require("./errorPayloadDto"), exports);
|
|
44
46
|
__exportStar(require("./errorResponseDto"), exports);
|
|
47
|
+
__exportStar(require("./executionTargetInternalControllerResolveParams"), exports);
|
|
48
|
+
__exportStar(require("./executionTargetResponseDto"), exports);
|
|
49
|
+
__exportStar(require("./executionTargetResponseDtoDataEnvelope"), exports);
|
|
50
|
+
__exportStar(require("./executionTargetResponseDtoLabels"), exports);
|
|
51
|
+
__exportStar(require("./executionTargetStatus"), exports);
|
|
45
52
|
__exportStar(require("./inFlightRevocationPolicy"), exports);
|
|
46
53
|
__exportStar(require("./objectLifecycle"), exports);
|
|
47
54
|
__exportStar(require("./recordRunnerAttestationDto"), exports);
|
|
@@ -57,6 +64,7 @@ __exportStar(require("./runnerEnrollmentDesiredState"), exports);
|
|
|
57
64
|
__exportStar(require("./runnerEnrollmentObservedState"), exports);
|
|
58
65
|
__exportStar(require("./runnerEnrollmentResponseDto"), exports);
|
|
59
66
|
__exportStar(require("./runnerEnrollmentResponseDtoDataEnvelope"), exports);
|
|
67
|
+
__exportStar(require("./runnerKind"), exports);
|
|
60
68
|
__exportStar(require("./runnerTrustTier"), exports);
|
|
61
69
|
__exportStar(require("./runtimeBindingCandidateResponseDto"), exports);
|
|
62
70
|
__exportStar(require("./runtimeBindingCandidateResponseDtoDataArrayEnvelope"), exports);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.1
|
|
5
5
|
*/
|
|
6
6
|
import type { RunnerDataLocality } from './runnerDataLocality.js';
|
|
7
|
+
import type { RunnerKind } from './runnerKind.js';
|
|
7
8
|
import type { RunnerTrustTier } from './runnerTrustTier.js';
|
|
8
9
|
export interface RecordRunnerAttestationDto {
|
|
9
10
|
principalId: string;
|
|
@@ -11,5 +12,6 @@ export interface RecordRunnerAttestationDto {
|
|
|
11
12
|
credentialRevision: number;
|
|
12
13
|
trustTier: RunnerTrustTier;
|
|
13
14
|
locality: RunnerDataLocality;
|
|
15
|
+
kind: RunnerKind;
|
|
14
16
|
environmentIds: string[];
|
|
15
17
|
}
|
|
@@ -7,13 +7,14 @@ import type { InFlightRevocationPolicy } from './inFlightRevocationPolicy.js';
|
|
|
7
7
|
import type { RunnerDataLocality } from './runnerDataLocality.js';
|
|
8
8
|
import type { RunnerEnrollmentDesiredState } from './runnerEnrollmentDesiredState.js';
|
|
9
9
|
import type { RunnerEnrollmentObservedState } from './runnerEnrollmentObservedState.js';
|
|
10
|
+
import type { RunnerKind } from './runnerKind.js';
|
|
10
11
|
import type { RunnerTrustTier } from './runnerTrustTier.js';
|
|
11
12
|
import type { RuntimeOperatorKind } from './runtimeOperatorKind.js';
|
|
12
13
|
export interface RunnerEnrollmentResponseDto {
|
|
13
14
|
id: string;
|
|
14
15
|
/** @minimum 1 */
|
|
15
16
|
revision: number;
|
|
16
|
-
|
|
17
|
+
executionTargetId: string;
|
|
17
18
|
runnerId: string;
|
|
18
19
|
/** @nullable */
|
|
19
20
|
principalId: string | null;
|
|
@@ -26,6 +27,8 @@ export interface RunnerEnrollmentResponseDto {
|
|
|
26
27
|
allowedEnvironmentIds: string[];
|
|
27
28
|
maxTrustTier: RunnerTrustTier;
|
|
28
29
|
allowedLocalities: RunnerDataLocality[];
|
|
30
|
+
/** Runner kinds this enrollment permits. Capped at attestation; a runner asserting a kind outside this set is REFUSED, never signed. */
|
|
31
|
+
allowedKinds: RunnerKind[];
|
|
29
32
|
attestationRevision: number;
|
|
30
33
|
inFlightPolicy: InFlightRevocationPolicy;
|
|
31
34
|
operatorKind: RuntimeOperatorKind;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Biome Host API
|
|
4
|
+
* OpenAPI spec version: 0.1.1
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Runner kinds this enrollment permits. Capped at attestation; a runner asserting a kind outside this set is REFUSED, never signed.
|
|
8
|
+
*/
|
|
9
|
+
export type RunnerKind = typeof RunnerKind[keyof typeof RunnerKind];
|
|
10
|
+
export declare const RunnerKind: {
|
|
11
|
+
readonly local: "local";
|
|
12
|
+
readonly cloud: "cloud";
|
|
13
|
+
readonly 'customer-edge': "customer-edge";
|
|
14
|
+
readonly gpu: "gpu";
|
|
15
|
+
readonly sandbox: "sandbox";
|
|
16
|
+
readonly ci: "ci";
|
|
17
|
+
readonly 'mcp-external': "mcp-external";
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
+
* Biome Host API
|
|
5
|
+
* OpenAPI spec version: 0.1.1
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.RunnerKind = void 0;
|
|
9
|
+
exports.RunnerKind = {
|
|
10
|
+
local: 'local',
|
|
11
|
+
cloud: 'cloud',
|
|
12
|
+
'customer-edge': 'customer-edge',
|
|
13
|
+
gpu: 'gpu',
|
|
14
|
+
sandbox: 'sandbox',
|
|
15
|
+
ci: 'ci',
|
|
16
|
+
'mcp-external': 'mcp-external',
|
|
17
|
+
};
|
|
@@ -22,8 +22,8 @@ export interface RuntimeBindingCandidateResponseDto {
|
|
|
22
22
|
bindingPrincipalId: string;
|
|
23
23
|
/** @minimum 1 */
|
|
24
24
|
bindingCredentialRevision: number;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
executionTargetId: string;
|
|
26
|
+
executionTargetSlug: string;
|
|
27
27
|
runtimeOperatorKind: RuntimeOperatorKind;
|
|
28
28
|
/** @nullable */
|
|
29
29
|
runtimeOwnerOrgId: RuntimeBindingCandidateResponseDtoRuntimeOwnerOrgId;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* OpenAPI spec version: 0.1.1
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* The owner TIER, projected from `ownerSpaceUri`. Only `system` and `org` are admissible for a placement target.
|
|
8
8
|
*/
|
|
9
9
|
export type SpaceKind = typeof SpaceKind[keyof typeof SpaceKind];
|
|
10
10
|
export declare const SpaceKind: {
|
|
@@ -27,10 +27,10 @@ export declare const XemaObjectKind: {
|
|
|
27
27
|
readonly 'mount-source': "mount-source";
|
|
28
28
|
readonly 'artifact-type': "artifact-type";
|
|
29
29
|
readonly artifact: "artifact";
|
|
30
|
+
readonly 'output-route': "output-route";
|
|
31
|
+
readonly resource: "resource";
|
|
30
32
|
readonly 'knowledge-space': "knowledge-space";
|
|
31
33
|
readonly 'knowledge-page': "knowledge-page";
|
|
32
|
-
readonly 'document-template': "document-template";
|
|
33
|
-
readonly 'document-theme': "document-theme";
|
|
34
34
|
readonly 'chart-runtime': "chart-runtime";
|
|
35
35
|
readonly 'presentation-runtime': "presentation-runtime";
|
|
36
36
|
readonly 'widget-kind': "widget-kind";
|
|
@@ -26,10 +26,10 @@ exports.XemaObjectKind = {
|
|
|
26
26
|
'mount-source': 'mount-source',
|
|
27
27
|
'artifact-type': 'artifact-type',
|
|
28
28
|
artifact: 'artifact',
|
|
29
|
+
'output-route': 'output-route',
|
|
30
|
+
resource: 'resource',
|
|
29
31
|
'knowledge-space': 'knowledge-space',
|
|
30
32
|
'knowledge-page': 'knowledge-page',
|
|
31
|
-
'document-template': 'document-template',
|
|
32
|
-
'document-theme': 'document-theme',
|
|
33
33
|
'chart-runtime': 'chart-runtime',
|
|
34
34
|
'presentation-runtime': 'presentation-runtime',
|
|
35
35
|
'widget-kind': 'widget-kind',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/biome-host-internal-api-client",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.12",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/xema-dev/xema-base.git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"service": "biome-host-api",
|
|
26
26
|
"biome": "biome-host",
|
|
27
27
|
"target": "server",
|
|
28
|
-
"generator": "@xemahq/api-client-generator@0.
|
|
28
|
+
"generator": "@xemahq/api-client-generator@0.15.0",
|
|
29
29
|
"source": "openapi.internal.json"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|