@xemahq/space-registry-internal-api-client 0.2.4 → 0.2.7
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/spaces/spaces.d.ts +26 -0
- package/dist/endpoints/spaces/spaces.js +83 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/createSpaceDto.d.ts +18 -0
- package/dist/models/createSpaceDto.js +2 -0
- package/dist/models/createSpaceDtoLabels.d.ts +8 -0
- package/dist/models/createSpaceDtoLabels.js +7 -0
- package/dist/models/dataClassification.d.ts +16 -0
- package/dist/models/dataClassification.js +15 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/dist/models/internalSpacesControllerClassificationOverridesParams.d.ts +15 -0
- package/dist/models/internalSpacesControllerClassificationOverridesParams.js +7 -0
- package/dist/models/spaceClassificationOverrideDto.d.ts +20 -0
- package/dist/models/spaceClassificationOverrideDto.js +2 -0
- package/dist/models/spaceClassificationOverridePageDto.d.ts +14 -0
- package/dist/models/spaceClassificationOverridePageDto.js +2 -0
- package/dist/models/spaceClassificationOverridePageDtoDataEnvelope.d.ts +9 -0
- package/dist/models/spaceClassificationOverridePageDtoDataEnvelope.js +2 -0
- package/dist/models/spaceDto.d.ts +34 -0
- package/dist/models/spaceDto.js +2 -0
- package/dist/models/spaceDtoDataEnvelope.d.ts +9 -0
- package/dist/models/spaceDtoDataEnvelope.js +2 -0
- package/dist/models/spaceDtoLabels.d.ts +11 -0
- package/dist/models/spaceDtoLabels.js +7 -0
- package/dist/models/spaceKind.d.ts +18 -0
- package/dist/models/spaceKind.js +17 -0
- package/dist/models/updateClassificationDto.d.ts +13 -0
- package/dist/models/updateClassificationDto.js +2 -0
- 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,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Space Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.0
|
|
5
|
+
*/
|
|
6
|
+
import type { CreateSpaceDto, InternalSpacesControllerClassificationOverridesParams, SpaceClassificationOverridePageDtoDataEnvelope, SpaceDtoDataEnvelope, UpdateClassificationDto } from '../../models';
|
|
7
|
+
export declare const getInternalSpacesControllerClassificationOverridesUrl: (params?: InternalSpacesControllerClassificationOverridesParams) => string;
|
|
8
|
+
/**
|
|
9
|
+
* @summary Every persisted Space classification declaration, across every tenant, for a consumer-owned projection.
|
|
10
|
+
*/
|
|
11
|
+
export declare const internalSpacesControllerClassificationOverrides: (params?: InternalSpacesControllerClassificationOverridesParams, options?: RequestInit) => Promise<SpaceClassificationOverridePageDtoDataEnvelope>;
|
|
12
|
+
export declare const getInternalSpacesControllerCreateUrl: () => string;
|
|
13
|
+
/**
|
|
14
|
+
* @summary Declare a Space on behalf of a Xema-as-Code apply (idempotent on refUri).
|
|
15
|
+
*/
|
|
16
|
+
export declare const internalSpacesControllerCreate: (createSpaceDto: CreateSpaceDto, options?: RequestInit) => Promise<SpaceDtoDataEnvelope>;
|
|
17
|
+
export declare const getInternalSpacesControllerSetClassificationUrl: (id: string) => string;
|
|
18
|
+
/**
|
|
19
|
+
* @summary Set/change a Space's own classification on behalf of a Xema-as-Code apply.
|
|
20
|
+
*/
|
|
21
|
+
export declare const internalSpacesControllerSetClassification: (id: string, updateClassificationDto: UpdateClassificationDto, options?: RequestInit) => Promise<SpaceDtoDataEnvelope>;
|
|
22
|
+
export declare const getInternalSpacesControllerRemoveUrl: (id: string) => string;
|
|
23
|
+
/**
|
|
24
|
+
* @summary Delete a Space override on behalf of a Xema-as-Code apply. Refuses system-managed Spaces.
|
|
25
|
+
*/
|
|
26
|
+
export declare const internalSpacesControllerRemove: (id: string, options?: RequestInit) => Promise<void>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.internalSpacesControllerRemove = exports.getInternalSpacesControllerRemoveUrl = exports.internalSpacesControllerSetClassification = exports.getInternalSpacesControllerSetClassificationUrl = exports.internalSpacesControllerCreate = exports.getInternalSpacesControllerCreateUrl = exports.internalSpacesControllerClassificationOverrides = exports.getInternalSpacesControllerClassificationOverridesUrl = void 0;
|
|
4
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
+
const getInternalSpacesControllerClassificationOverridesUrl = (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/spaces/classification-overrides?${stringifiedParams}` : `/internal/spaces/classification-overrides`;
|
|
26
|
+
};
|
|
27
|
+
exports.getInternalSpacesControllerClassificationOverridesUrl = getInternalSpacesControllerClassificationOverridesUrl;
|
|
28
|
+
/**
|
|
29
|
+
* @summary Every persisted Space classification declaration, across every tenant, for a consumer-owned projection.
|
|
30
|
+
*/
|
|
31
|
+
const internalSpacesControllerClassificationOverrides = async (params, options) => {
|
|
32
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getInternalSpacesControllerClassificationOverridesUrl)(params), {
|
|
33
|
+
...options,
|
|
34
|
+
method: 'GET'
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
exports.internalSpacesControllerClassificationOverrides = internalSpacesControllerClassificationOverrides;
|
|
38
|
+
const getInternalSpacesControllerCreateUrl = () => {
|
|
39
|
+
return `/internal/spaces`;
|
|
40
|
+
};
|
|
41
|
+
exports.getInternalSpacesControllerCreateUrl = getInternalSpacesControllerCreateUrl;
|
|
42
|
+
/**
|
|
43
|
+
* @summary Declare a Space on behalf of a Xema-as-Code apply (idempotent on refUri).
|
|
44
|
+
*/
|
|
45
|
+
const internalSpacesControllerCreate = async (createSpaceDto, options) => {
|
|
46
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getInternalSpacesControllerCreateUrl)(), {
|
|
47
|
+
...options,
|
|
48
|
+
method: 'POST',
|
|
49
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
50
|
+
body: JSON.stringify(createSpaceDto)
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
exports.internalSpacesControllerCreate = internalSpacesControllerCreate;
|
|
54
|
+
const getInternalSpacesControllerSetClassificationUrl = (id) => {
|
|
55
|
+
return `/internal/spaces/${id}/classification`;
|
|
56
|
+
};
|
|
57
|
+
exports.getInternalSpacesControllerSetClassificationUrl = getInternalSpacesControllerSetClassificationUrl;
|
|
58
|
+
/**
|
|
59
|
+
* @summary Set/change a Space's own classification on behalf of a Xema-as-Code apply.
|
|
60
|
+
*/
|
|
61
|
+
const internalSpacesControllerSetClassification = async (id, updateClassificationDto, options) => {
|
|
62
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getInternalSpacesControllerSetClassificationUrl)(id), {
|
|
63
|
+
...options,
|
|
64
|
+
method: 'PATCH',
|
|
65
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
66
|
+
body: JSON.stringify(updateClassificationDto)
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
exports.internalSpacesControllerSetClassification = internalSpacesControllerSetClassification;
|
|
70
|
+
const getInternalSpacesControllerRemoveUrl = (id) => {
|
|
71
|
+
return `/internal/spaces/${id}`;
|
|
72
|
+
};
|
|
73
|
+
exports.getInternalSpacesControllerRemoveUrl = getInternalSpacesControllerRemoveUrl;
|
|
74
|
+
/**
|
|
75
|
+
* @summary Delete a Space override on behalf of a Xema-as-Code apply. Refuses system-managed Spaces.
|
|
76
|
+
*/
|
|
77
|
+
const internalSpacesControllerRemove = async (id, options) => {
|
|
78
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getInternalSpacesControllerRemoveUrl)(id), {
|
|
79
|
+
...options,
|
|
80
|
+
method: 'DELETE'
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
exports.internalSpacesControllerRemove = internalSpacesControllerRemove;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -24,3 +24,4 @@ Object.defineProperty(exports, "customFetch", { enumerable: true, get: function
|
|
|
24
24
|
__exportStar(require("./models"), exports);
|
|
25
25
|
__exportStar(require("./endpoints/capabilities/capabilities"), exports);
|
|
26
26
|
__exportStar(require("./endpoints/org-erasure/org-erasure"), exports);
|
|
27
|
+
__exportStar(require("./endpoints/spaces/spaces"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Space Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.0
|
|
5
|
+
*/
|
|
6
|
+
import type { CreateSpaceDtoLabels } from './createSpaceDtoLabels.js';
|
|
7
|
+
import type { DataClassification } from './dataClassification.js';
|
|
8
|
+
export interface CreateSpaceDto {
|
|
9
|
+
/** Canonical xema:// Space URI to create. */
|
|
10
|
+
ref: string;
|
|
11
|
+
/** Human-readable label for this Space. */
|
|
12
|
+
displayName: string;
|
|
13
|
+
/** Own data classification. MUST be >= the INHERITED floor (the join over the ancestor refs) unless allowClassificationBelowParent is set. */
|
|
14
|
+
classification?: DataClassification;
|
|
15
|
+
labels?: CreateSpaceDtoLabels;
|
|
16
|
+
/** Privileged policy flag. When true, permits PERSISTING a classification strictly below the inherited floor. Resolution is a monotone join, so such a value can never lower the effective classification — the flag only suppresses the fail-fast that says so. */
|
|
17
|
+
allowClassificationBelowParent?: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Space Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* The classification DECLARED on this ref.
|
|
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
|
+
* Space Registry API
|
|
5
|
+
* OpenAPI spec version: 0.1.0
|
|
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
|
+
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
+
export * from './createSpaceDto';
|
|
2
|
+
export * from './createSpaceDtoLabels';
|
|
3
|
+
export * from './dataClassification';
|
|
4
|
+
export * from './internalSpacesControllerClassificationOverridesParams';
|
|
5
|
+
export * from './spaceClassificationOverrideDto';
|
|
6
|
+
export * from './spaceClassificationOverridePageDto';
|
|
7
|
+
export * from './spaceClassificationOverridePageDtoDataEnvelope';
|
|
8
|
+
export * from './spaceDto';
|
|
9
|
+
export * from './spaceDtoDataEnvelope';
|
|
10
|
+
export * from './spaceDtoLabels';
|
|
1
11
|
export * from './spaceItemPublishCapabilityRequestDto';
|
|
12
|
+
export * from './spaceKind';
|
|
13
|
+
export * from './updateClassificationDto';
|
package/dist/models/index.js
CHANGED
|
@@ -15,4 +15,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
// Auto-generated by tooling/codegen/regenerate-models-barrel.js — do not edit manually.
|
|
18
|
+
__exportStar(require("./createSpaceDto"), exports);
|
|
19
|
+
__exportStar(require("./createSpaceDtoLabels"), exports);
|
|
20
|
+
__exportStar(require("./dataClassification"), exports);
|
|
21
|
+
__exportStar(require("./internalSpacesControllerClassificationOverridesParams"), exports);
|
|
22
|
+
__exportStar(require("./spaceClassificationOverrideDto"), exports);
|
|
23
|
+
__exportStar(require("./spaceClassificationOverridePageDto"), exports);
|
|
24
|
+
__exportStar(require("./spaceClassificationOverridePageDtoDataEnvelope"), exports);
|
|
25
|
+
__exportStar(require("./spaceDto"), exports);
|
|
26
|
+
__exportStar(require("./spaceDtoDataEnvelope"), exports);
|
|
27
|
+
__exportStar(require("./spaceDtoLabels"), exports);
|
|
18
28
|
__exportStar(require("./spaceItemPublishCapabilityRequestDto"), exports);
|
|
29
|
+
__exportStar(require("./spaceKind"), exports);
|
|
30
|
+
__exportStar(require("./updateClassificationDto"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Space Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.0
|
|
5
|
+
*/
|
|
6
|
+
export type InternalSpacesControllerClassificationOverridesParams = {
|
|
7
|
+
/**
|
|
8
|
+
* Max rows per page (1–500, default 500).
|
|
9
|
+
*/
|
|
10
|
+
limit?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Opaque `nextCursor` from the previous page. Page to exhaustion — a consumer that stops early holds an INCOMPLETE set.
|
|
13
|
+
*/
|
|
14
|
+
cursor?: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Space Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DataClassification } from './dataClassification.js';
|
|
7
|
+
import type { SpaceKind } from './spaceKind.js';
|
|
8
|
+
export interface SpaceClassificationOverrideDto {
|
|
9
|
+
/** Canonical `xema://` ref this declaration is made ON. */
|
|
10
|
+
refUri: string;
|
|
11
|
+
/** The ref's tier. */
|
|
12
|
+
tier: SpaceKind;
|
|
13
|
+
/**
|
|
14
|
+
* Owning organization, or `null` for the org-less tiers (system / biome / user / session). Org-less rows are platform-global: every org's ancestor walk ends at `xema://system`, so they contribute to every tenant's inherited floor.
|
|
15
|
+
* @nullable
|
|
16
|
+
*/
|
|
17
|
+
orgId?: string | null;
|
|
18
|
+
/** The classification DECLARED on this ref. */
|
|
19
|
+
classification: DataClassification;
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Space Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.0
|
|
5
|
+
*/
|
|
6
|
+
import type { SpaceClassificationOverrideDto } from './spaceClassificationOverrideDto.js';
|
|
7
|
+
export interface SpaceClassificationOverridePageDto {
|
|
8
|
+
overrides: SpaceClassificationOverrideDto[];
|
|
9
|
+
/**
|
|
10
|
+
* Opaque cursor for the NEXT page, or `null` when this is the last one. A consumer that stops before `null` has an INCOMPLETE set and must discard it — a partial reconcile that replaces the full projection would delete every declaration it never read.
|
|
11
|
+
* @nullable
|
|
12
|
+
*/
|
|
13
|
+
nextCursor?: string | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Space Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.0
|
|
5
|
+
*/
|
|
6
|
+
import type { SpaceClassificationOverridePageDto } from './spaceClassificationOverridePageDto.js';
|
|
7
|
+
export interface SpaceClassificationOverridePageDtoDataEnvelope {
|
|
8
|
+
data: SpaceClassificationOverridePageDto;
|
|
9
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Space Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DataClassification } from './dataClassification.js';
|
|
7
|
+
import type { SpaceDtoLabels } from './spaceDtoLabels.js';
|
|
8
|
+
import type { SpaceKind } from './spaceKind.js';
|
|
9
|
+
export interface SpaceDto {
|
|
10
|
+
/** Opaque Space id (cuid). */
|
|
11
|
+
id: string;
|
|
12
|
+
/** Canonical xema:// Space URI. Unique idempotency key. */
|
|
13
|
+
refUri: string;
|
|
14
|
+
tier: SpaceKind;
|
|
15
|
+
/** @nullable */
|
|
16
|
+
orgId?: string | null;
|
|
17
|
+
/** @nullable */
|
|
18
|
+
projectId?: string | null;
|
|
19
|
+
/** @nullable */
|
|
20
|
+
appId?: string | null;
|
|
21
|
+
/** @nullable */
|
|
22
|
+
sessionId?: string | null;
|
|
23
|
+
/** @nullable */
|
|
24
|
+
biomeId?: string | null;
|
|
25
|
+
/** @nullable */
|
|
26
|
+
userId?: string | null;
|
|
27
|
+
displayName: string;
|
|
28
|
+
/** Own classification, if explicitly set on this Space. */
|
|
29
|
+
classification?: DataClassification | null;
|
|
30
|
+
/** @nullable */
|
|
31
|
+
labels?: SpaceDtoLabels;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
updatedAt: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Space Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* The ref's tier.
|
|
8
|
+
*/
|
|
9
|
+
export type SpaceKind = typeof SpaceKind[keyof typeof SpaceKind];
|
|
10
|
+
export declare const SpaceKind: {
|
|
11
|
+
readonly system: "system";
|
|
12
|
+
readonly org: "org";
|
|
13
|
+
readonly project: "project";
|
|
14
|
+
readonly app: "app";
|
|
15
|
+
readonly session: "session";
|
|
16
|
+
readonly biome: "biome";
|
|
17
|
+
readonly user: "user";
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
4
|
+
* Space Registry API
|
|
5
|
+
* OpenAPI spec version: 0.1.0
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.SpaceKind = void 0;
|
|
9
|
+
exports.SpaceKind = {
|
|
10
|
+
system: 'system',
|
|
11
|
+
org: 'org',
|
|
12
|
+
project: 'project',
|
|
13
|
+
app: 'app',
|
|
14
|
+
session: 'session',
|
|
15
|
+
biome: 'biome',
|
|
16
|
+
user: 'user',
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
3
|
+
* Space Registry API
|
|
4
|
+
* OpenAPI spec version: 0.1.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DataClassification } from './dataClassification.js';
|
|
7
|
+
export interface UpdateClassificationDto {
|
|
8
|
+
classification: DataClassification;
|
|
9
|
+
/** Privileged flag required to LOWER the classification (downgrade). Audited. */
|
|
10
|
+
allowDowngrade?: boolean;
|
|
11
|
+
/** Privileged flag permitting a value strictly below the inherited floor. Audited. */
|
|
12
|
+
allowBelowParent?: boolean;
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/space-registry-internal-api-client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"service": "space-registry-api",
|
|
20
20
|
"biome": "space-registry",
|
|
21
21
|
"target": "server",
|
|
22
|
-
"generator": "@xemahq/api-client-generator@0.
|
|
22
|
+
"generator": "@xemahq/api-client-generator@0.14.1",
|
|
23
23
|
"source": "openapi.internal.json"
|
|
24
24
|
},
|
|
25
25
|
"license": "LicenseRef-Xema-BSL-1.1",
|