@xemahq/xema-shell-api-client 0.1.0 → 0.2.0
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/LICENSE +174 -201
- package/README.md +62 -0
- package/dist/custom-fetch.d.ts +1 -1
- package/dist/custom-fetch.js +1 -1
- package/dist/endpoints/shell/shell.d.ts +18 -6
- package/dist/endpoints/shell/shell.js +39 -9
- package/dist/endpoints/xvfs/xvfs.d.ts +6 -6
- package/dist/endpoints/xvfs/xvfs.js +8 -8
- package/dist/models/index.d.ts +11 -1
- package/dist/models/index.js +11 -1
- package/dist/models/shellCommandDescriptorDto.d.ts +28 -0
- package/dist/models/shellCommandDescriptorDto.js +2 -0
- package/dist/models/shellCommandDescriptorDtoOutputSchema.d.ts +13 -0
- package/dist/models/{shellRunResponseDtoData.js → shellCommandDescriptorDtoOutputSchema.js} +1 -1
- package/dist/models/shellHelpCommandResponseDto.d.ts +12 -0
- package/dist/models/shellHelpCommandResponseDto.js +2 -0
- package/dist/models/shellHelpCommandResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/shellHelpCommandResponseDtoDataEnvelope.js +2 -0
- package/dist/models/shellHelpListResponseDto.d.ts +12 -0
- package/dist/models/shellHelpListResponseDto.js +2 -0
- package/dist/models/shellHelpListResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/shellHelpListResponseDtoDataEnvelope.js +2 -0
- package/dist/models/shellParseResponseDto.d.ts +2 -2
- package/dist/models/shellParseResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/shellParseResponseDtoDataEnvelope.js +2 -0
- package/dist/models/shellParseResponseDtoOptions.d.ts +1 -1
- package/dist/models/shellParseResponseDtoOptions.js +1 -1
- package/dist/models/shellRunDenialDto.d.ts +3 -3
- package/dist/models/shellRunDenialDtoSuggestionsItem.d.ts +1 -1
- package/dist/models/shellRunDenialDtoSuggestionsItem.js +1 -1
- package/dist/models/shellRunDenialReasonDto.d.ts +1 -1
- package/dist/models/shellRunDenialReasonDto.js +1 -1
- package/dist/models/shellRunDiagnosticDto.d.ts +2 -2
- package/dist/models/shellRunDiagnosticDtoLevel.d.ts +1 -1
- package/dist/models/shellRunDiagnosticDtoLevel.js +1 -1
- package/dist/models/shellRunRequestDto.d.ts +3 -3
- package/dist/models/shellRunRequestDtoOutputMode.d.ts +1 -1
- package/dist/models/shellRunRequestDtoOutputMode.js +1 -1
- package/dist/models/shellRunRequestDtoStdin.d.ts +1 -1
- package/dist/models/shellRunRequestDtoStdin.js +1 -1
- package/dist/models/shellRunResponseDto.d.ts +6 -6
- package/dist/models/shellRunResponseDtoDataEnvelope.d.ts +11 -0
- package/dist/models/shellRunResponseDtoDataEnvelope.js +2 -0
- package/dist/models/{shellRunResponseDtoData.d.ts → shellRunResponseDtoResult.d.ts} +2 -2
- package/dist/models/shellRunResponseDtoResult.js +9 -0
- package/dist/models/shellRunResponseDtoStatus.d.ts +1 -1
- package/dist/models/shellRunResponseDtoStatus.js +1 -1
- package/dist/models/spaceKind.d.ts +2 -2
- package/dist/models/spaceKind.js +1 -1
- package/dist/models/spaceRefDto.d.ts +2 -2
- package/dist/models/xemaObjectKind.d.ts +2 -3
- package/dist/models/xemaObjectKind.js +1 -2
- package/dist/models/xvfsControllerResolveParams.d.ts +1 -1
- package/dist/models/xvfsControllerResolveParams.js +1 -1
- package/dist/models/xvfsControllerWriteParams.d.ts +1 -1
- package/dist/models/xvfsControllerWriteParams.js +1 -1
- package/dist/models/xvfsResolvedDto.d.ts +4 -4
- package/dist/models/xvfsResolvedDtoDataEnvelope.d.ts +11 -0
- package/dist/models/xvfsResolvedDtoDataEnvelope.js +2 -0
- package/dist/models/xvfsResolvedDtoPayload.d.ts +1 -1
- package/dist/models/xvfsResolvedDtoPayload.js +1 -1
- package/dist/models/xvfsWriteBodyDto.d.ts +2 -2
- package/dist/models/xvfsWriteBodyDtoPayload.d.ts +1 -1
- package/dist/models/xvfsWriteBodyDtoPayload.js +1 -1
- package/dist/models/xvfsWriteResultDto.d.ts +1 -1
- package/dist/models/xvfsWriteResultDto.js +1 -1
- package/dist/models/xvfsWriteResultDtoDataEnvelope.d.ts +11 -0
- package/dist/models/xvfsWriteResultDtoDataEnvelope.js +2 -0
- package/package.json +14 -3
- package/dist/endpoints/health/health.d.ts +0 -15
- package/dist/endpoints/health/health.js +0 -53
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Xema Shell API
|
|
5
5
|
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { XvfsControllerResolveParams, XvfsControllerWriteParams,
|
|
8
|
+
import type { XvfsControllerResolveParams, XvfsControllerWriteParams, XvfsResolvedDtoDataEnvelope, XvfsWriteBodyDto, XvfsWriteResultDtoDataEnvelope } from '../../models';
|
|
9
|
+
export declare const getXvfsControllerResolveUrl: (params: XvfsControllerResolveParams) => string;
|
|
9
10
|
/**
|
|
10
11
|
* Parses an XVFS path and delegates to `object-registry-api` for the underlying XemaObject snapshot.
|
|
11
12
|
* @summary Resolve an XVFS path to a XemaObject
|
|
12
13
|
*/
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const xvfsControllerResolve: (params: XvfsControllerResolveParams, options?: RequestInit) => Promise<XvfsResolvedDtoDataEnvelope>;
|
|
15
|
+
export declare const getXvfsControllerWriteUrl: (params: XvfsControllerWriteParams) => string;
|
|
15
16
|
/**
|
|
16
17
|
* Parses an XVFS path, checks `xema:object.write@1` via `xema-capability-router`, then upserts the object in `object-registry-api`. Returns whether the object was created or updated.
|
|
17
18
|
* @summary Write/upsert an object at an XVFS path (capability-gated)
|
|
18
19
|
*/
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const xvfsControllerWrite: (xvfsWriteBodyDto: XvfsWriteBodyDto, params: XvfsControllerWriteParams, options?: RequestInit) => Promise<XvfsWriteResultDto>;
|
|
20
|
+
export declare const xvfsControllerWrite: (xvfsWriteBodyDto: XvfsWriteBodyDto, params: XvfsControllerWriteParams, options?: RequestInit) => Promise<XvfsWriteResultDtoDataEnvelope>;
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.xvfsControllerWrite = exports.getXvfsControllerWriteUrl = exports.xvfsControllerResolve = exports.getXvfsControllerResolveUrl = void 0;
|
|
4
4
|
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
-
/**
|
|
6
|
-
* Parses an XVFS path and delegates to `object-registry-api` for the underlying XemaObject snapshot.
|
|
7
|
-
* @summary Resolve an XVFS path to a XemaObject
|
|
8
|
-
*/
|
|
9
5
|
const getXvfsControllerResolveUrl = (params) => {
|
|
10
6
|
const normalizedParams = new URLSearchParams();
|
|
11
7
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -29,6 +25,10 @@ const getXvfsControllerResolveUrl = (params) => {
|
|
|
29
25
|
return stringifiedParams.length > 0 ? `/xvfs/resolve?${stringifiedParams}` : `/xvfs/resolve`;
|
|
30
26
|
};
|
|
31
27
|
exports.getXvfsControllerResolveUrl = getXvfsControllerResolveUrl;
|
|
28
|
+
/**
|
|
29
|
+
* Parses an XVFS path and delegates to `object-registry-api` for the underlying XemaObject snapshot.
|
|
30
|
+
* @summary Resolve an XVFS path to a XemaObject
|
|
31
|
+
*/
|
|
32
32
|
const xvfsControllerResolve = async (params, options) => {
|
|
33
33
|
return (0, custom_fetch_1.customFetch)((0, exports.getXvfsControllerResolveUrl)(params), {
|
|
34
34
|
...options,
|
|
@@ -36,10 +36,6 @@ const xvfsControllerResolve = async (params, options) => {
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
exports.xvfsControllerResolve = xvfsControllerResolve;
|
|
39
|
-
/**
|
|
40
|
-
* Parses an XVFS path, checks `xema:object.write@1` via `xema-capability-router`, then upserts the object in `object-registry-api`. Returns whether the object was created or updated.
|
|
41
|
-
* @summary Write/upsert an object at an XVFS path (capability-gated)
|
|
42
|
-
*/
|
|
43
39
|
const getXvfsControllerWriteUrl = (params) => {
|
|
44
40
|
const normalizedParams = new URLSearchParams();
|
|
45
41
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -63,6 +59,10 @@ const getXvfsControllerWriteUrl = (params) => {
|
|
|
63
59
|
return stringifiedParams.length > 0 ? `/xvfs/write?${stringifiedParams}` : `/xvfs/write`;
|
|
64
60
|
};
|
|
65
61
|
exports.getXvfsControllerWriteUrl = getXvfsControllerWriteUrl;
|
|
62
|
+
/**
|
|
63
|
+
* Parses an XVFS path, checks `xema:object.write@1` via `xema-capability-router`, then upserts the object in `object-registry-api`. Returns whether the object was created or updated.
|
|
64
|
+
* @summary Write/upsert an object at an XVFS path (capability-gated)
|
|
65
|
+
*/
|
|
66
66
|
const xvfsControllerWrite = async (xvfsWriteBodyDto, params, options) => {
|
|
67
67
|
return (0, custom_fetch_1.customFetch)((0, exports.getXvfsControllerWriteUrl)(params), {
|
|
68
68
|
...options,
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
export * from './shellCommandDescriptorDto';
|
|
2
|
+
export * from './shellCommandDescriptorDtoOutputSchema';
|
|
3
|
+
export * from './shellHelpCommandResponseDto';
|
|
4
|
+
export * from './shellHelpCommandResponseDtoDataEnvelope';
|
|
5
|
+
export * from './shellHelpListResponseDto';
|
|
6
|
+
export * from './shellHelpListResponseDtoDataEnvelope';
|
|
1
7
|
export * from './shellParseResponseDto';
|
|
8
|
+
export * from './shellParseResponseDtoDataEnvelope';
|
|
2
9
|
export * from './shellParseResponseDtoOptions';
|
|
3
10
|
export * from './shellRunDenialDto';
|
|
4
11
|
export * from './shellRunDenialDtoSuggestionsItem';
|
|
@@ -9,7 +16,8 @@ export * from './shellRunRequestDto';
|
|
|
9
16
|
export * from './shellRunRequestDtoOutputMode';
|
|
10
17
|
export * from './shellRunRequestDtoStdin';
|
|
11
18
|
export * from './shellRunResponseDto';
|
|
12
|
-
export * from './
|
|
19
|
+
export * from './shellRunResponseDtoDataEnvelope';
|
|
20
|
+
export * from './shellRunResponseDtoResult';
|
|
13
21
|
export * from './shellRunResponseDtoStatus';
|
|
14
22
|
export * from './spaceKind';
|
|
15
23
|
export * from './spaceRefDto';
|
|
@@ -17,7 +25,9 @@ export * from './xemaObjectKind';
|
|
|
17
25
|
export * from './xvfsControllerResolveParams';
|
|
18
26
|
export * from './xvfsControllerWriteParams';
|
|
19
27
|
export * from './xvfsResolvedDto';
|
|
28
|
+
export * from './xvfsResolvedDtoDataEnvelope';
|
|
20
29
|
export * from './xvfsResolvedDtoPayload';
|
|
21
30
|
export * from './xvfsWriteBodyDto';
|
|
22
31
|
export * from './xvfsWriteBodyDtoPayload';
|
|
23
32
|
export * from './xvfsWriteResultDto';
|
|
33
|
+
export * from './xvfsWriteResultDtoDataEnvelope';
|
package/dist/models/index.js
CHANGED
|
@@ -15,7 +15,14 @@ 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("./shellCommandDescriptorDto"), exports);
|
|
19
|
+
__exportStar(require("./shellCommandDescriptorDtoOutputSchema"), exports);
|
|
20
|
+
__exportStar(require("./shellHelpCommandResponseDto"), exports);
|
|
21
|
+
__exportStar(require("./shellHelpCommandResponseDtoDataEnvelope"), exports);
|
|
22
|
+
__exportStar(require("./shellHelpListResponseDto"), exports);
|
|
23
|
+
__exportStar(require("./shellHelpListResponseDtoDataEnvelope"), exports);
|
|
18
24
|
__exportStar(require("./shellParseResponseDto"), exports);
|
|
25
|
+
__exportStar(require("./shellParseResponseDtoDataEnvelope"), exports);
|
|
19
26
|
__exportStar(require("./shellParseResponseDtoOptions"), exports);
|
|
20
27
|
__exportStar(require("./shellRunDenialDto"), exports);
|
|
21
28
|
__exportStar(require("./shellRunDenialDtoSuggestionsItem"), exports);
|
|
@@ -26,7 +33,8 @@ __exportStar(require("./shellRunRequestDto"), exports);
|
|
|
26
33
|
__exportStar(require("./shellRunRequestDtoOutputMode"), exports);
|
|
27
34
|
__exportStar(require("./shellRunRequestDtoStdin"), exports);
|
|
28
35
|
__exportStar(require("./shellRunResponseDto"), exports);
|
|
29
|
-
__exportStar(require("./
|
|
36
|
+
__exportStar(require("./shellRunResponseDtoDataEnvelope"), exports);
|
|
37
|
+
__exportStar(require("./shellRunResponseDtoResult"), exports);
|
|
30
38
|
__exportStar(require("./shellRunResponseDtoStatus"), exports);
|
|
31
39
|
__exportStar(require("./spaceKind"), exports);
|
|
32
40
|
__exportStar(require("./spaceRefDto"), exports);
|
|
@@ -34,7 +42,9 @@ __exportStar(require("./xemaObjectKind"), exports);
|
|
|
34
42
|
__exportStar(require("./xvfsControllerResolveParams"), exports);
|
|
35
43
|
__exportStar(require("./xvfsControllerWriteParams"), exports);
|
|
36
44
|
__exportStar(require("./xvfsResolvedDto"), exports);
|
|
45
|
+
__exportStar(require("./xvfsResolvedDtoDataEnvelope"), exports);
|
|
37
46
|
__exportStar(require("./xvfsResolvedDtoPayload"), exports);
|
|
38
47
|
__exportStar(require("./xvfsWriteBodyDto"), exports);
|
|
39
48
|
__exportStar(require("./xvfsWriteBodyDtoPayload"), exports);
|
|
40
49
|
__exportStar(require("./xvfsWriteResultDto"), exports);
|
|
50
|
+
__exportStar(require("./xvfsWriteResultDtoDataEnvelope"), exports);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Xema Shell API
|
|
5
|
+
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { ShellCommandDescriptorDtoOutputSchema } from './shellCommandDescriptorDtoOutputSchema.js';
|
|
9
|
+
export interface ShellCommandDescriptorDto {
|
|
10
|
+
/** Command name (the verb invoked as `xema <name>`). */
|
|
11
|
+
name: string;
|
|
12
|
+
/** One-line human summary of what the command does. */
|
|
13
|
+
summary: string;
|
|
14
|
+
/** Usage syntax string (e.g. `xema help [<command>]`). */
|
|
15
|
+
syntax: string;
|
|
16
|
+
/** Example invocations. */
|
|
17
|
+
examples: string[];
|
|
18
|
+
/** CapabilityRef strings the command requires (enforced by xema-capability-router, not here). */
|
|
19
|
+
requiredCapabilities: string[];
|
|
20
|
+
/** Environment slugs the command may run against (e.g. `project`, `sandbox`). */
|
|
21
|
+
requiredZones?: string[];
|
|
22
|
+
/** Related XemaObjectRef concept strings (e.g. `xema://concept/biome`). */
|
|
23
|
+
relatedConcepts: string[];
|
|
24
|
+
/** Whether the command is safe to expose to autonomous agents (enforced by the router). */
|
|
25
|
+
safeForAgents: boolean;
|
|
26
|
+
/** JSON Schema reference for the structured output, when declared. Carried verbatim from the kernel `JsonSchemaRefStub` (`{ "$ref": string }`); the public help endpoint never resolves it. Modelled as a free-form object because a literal `$ref`-keyed property collides with the JSON Reference keyword in the generated OpenAPI schema. */
|
|
27
|
+
outputSchema?: ShellCommandDescriptorDtoOutputSchema;
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Xema Shell API
|
|
5
|
+
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* JSON Schema reference for the structured output, when declared. Carried verbatim from the kernel `JsonSchemaRefStub` (`{ "$ref": string }`); the public help endpoint never resolves it. Modelled as a free-form object because a literal `$ref`-keyed property collides with the JSON Reference keyword in the generated OpenAPI schema.
|
|
10
|
+
*/
|
|
11
|
+
export type ShellCommandDescriptorDtoOutputSchema = {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Xema Shell API
|
|
5
|
+
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { ShellCommandDescriptorDto } from './shellCommandDescriptorDto.js';
|
|
9
|
+
export interface ShellHelpCommandResponseDto {
|
|
10
|
+
/** The matching command descriptor. */
|
|
11
|
+
command: ShellCommandDescriptorDto;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Xema Shell API
|
|
5
|
+
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { ShellHelpCommandResponseDto } from './shellHelpCommandResponseDto.js';
|
|
9
|
+
export interface ShellHelpCommandResponseDtoDataEnvelope {
|
|
10
|
+
data: ShellHelpCommandResponseDto;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Xema Shell API
|
|
5
|
+
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { ShellCommandDescriptorDto } from './shellCommandDescriptorDto.js';
|
|
9
|
+
export interface ShellHelpListResponseDto {
|
|
10
|
+
/** Every built-in Shell command descriptor, served verbatim from the registry. */
|
|
11
|
+
commands: ShellCommandDescriptorDto[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Xema Shell API
|
|
5
|
+
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { ShellHelpListResponseDto } from './shellHelpListResponseDto.js';
|
|
9
|
+
export interface ShellHelpListResponseDtoDataEnvelope {
|
|
10
|
+
data: ShellHelpListResponseDto;
|
|
11
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Xema Shell API
|
|
5
5
|
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { ShellParseResponseDtoOptions } from './shellParseResponseDtoOptions';
|
|
8
|
+
import type { ShellParseResponseDtoOptions } from './shellParseResponseDtoOptions.js';
|
|
9
9
|
export interface ShellParseResponseDto {
|
|
10
10
|
name: string;
|
|
11
11
|
positional: string[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Xema Shell API
|
|
5
|
+
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { ShellParseResponseDto } from './shellParseResponseDto.js';
|
|
9
|
+
export interface ShellParseResponseDtoDataEnvelope {
|
|
10
|
+
data: ShellParseResponseDto;
|
|
11
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Xema Shell API
|
|
5
5
|
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { ShellRunDenialDtoSuggestionsItem } from './shellRunDenialDtoSuggestionsItem';
|
|
9
|
-
import type { ShellRunDenialReasonDto } from './shellRunDenialReasonDto';
|
|
8
|
+
import type { ShellRunDenialDtoSuggestionsItem } from './shellRunDenialDtoSuggestionsItem.js';
|
|
9
|
+
import type { ShellRunDenialReasonDto } from './shellRunDenialReasonDto.js';
|
|
10
10
|
export interface ShellRunDenialDto {
|
|
11
11
|
code: string;
|
|
12
12
|
capability: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Xema Shell API
|
|
5
5
|
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { ShellRunDiagnosticDtoLevel } from './shellRunDiagnosticDtoLevel';
|
|
8
|
+
import type { ShellRunDiagnosticDtoLevel } from './shellRunDiagnosticDtoLevel.js';
|
|
9
9
|
export interface ShellRunDiagnosticDto {
|
|
10
10
|
level: ShellRunDiagnosticDtoLevel;
|
|
11
11
|
/** Structured diagnostic code (closed per handler). */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Xema Shell API
|
|
5
5
|
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { ShellRunRequestDtoOutputMode } from './shellRunRequestDtoOutputMode';
|
|
9
|
-
import type { ShellRunRequestDtoStdin } from './shellRunRequestDtoStdin';
|
|
8
|
+
import type { ShellRunRequestDtoOutputMode } from './shellRunRequestDtoOutputMode.js';
|
|
9
|
+
import type { ShellRunRequestDtoStdin } from './shellRunRequestDtoStdin.js';
|
|
10
10
|
export interface ShellRunRequestDto {
|
|
11
11
|
/** Structured argv array. Never a raw string — no shell eval anywhere in the platform. */
|
|
12
12
|
argv: string[];
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Xema Shell API
|
|
5
5
|
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { ShellRunDenialDto } from './shellRunDenialDto';
|
|
9
|
-
import type { ShellRunDiagnosticDto } from './shellRunDiagnosticDto';
|
|
10
|
-
import type {
|
|
11
|
-
import type { ShellRunResponseDtoStatus } from './shellRunResponseDtoStatus';
|
|
8
|
+
import type { ShellRunDenialDto } from './shellRunDenialDto.js';
|
|
9
|
+
import type { ShellRunDiagnosticDto } from './shellRunDiagnosticDto.js';
|
|
10
|
+
import type { ShellRunResponseDtoResult } from './shellRunResponseDtoResult.js';
|
|
11
|
+
import type { ShellRunResponseDtoStatus } from './shellRunResponseDtoStatus.js';
|
|
12
12
|
export interface ShellRunResponseDto {
|
|
13
13
|
status: ShellRunResponseDtoStatus;
|
|
14
14
|
auditId: string;
|
|
15
15
|
/** Process-style exit code (0 = success). */
|
|
16
16
|
exitCode: number;
|
|
17
17
|
/** Structured handler output (shape varies per command). */
|
|
18
|
-
|
|
18
|
+
result?: ShellRunResponseDtoResult;
|
|
19
19
|
diagnostics?: ShellRunDiagnosticDto[];
|
|
20
20
|
denial?: ShellRunDenialDto;
|
|
21
21
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Xema Shell API
|
|
5
|
+
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { ShellRunResponseDto } from './shellRunResponseDto.js';
|
|
9
|
+
export interface ShellRunResponseDtoDataEnvelope {
|
|
10
|
+
data: ShellRunResponseDto;
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Xema Shell API
|
|
5
5
|
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* Structured handler output (shape varies per command).
|
|
10
10
|
*/
|
|
11
|
-
export type
|
|
11
|
+
export type ShellRunResponseDtoResult = {
|
|
12
12
|
[key: string]: unknown;
|
|
13
13
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Xema Shell API
|
|
6
|
+
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Xema Shell API
|
|
5
5
|
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* Ownership tier (system |
|
|
9
|
+
* Ownership tier (system | org | project | app | session | biome | user).
|
|
10
10
|
*/
|
|
11
11
|
export type SpaceKind = typeof SpaceKind[keyof typeof SpaceKind];
|
|
12
12
|
export declare const SpaceKind: {
|
package/dist/models/spaceKind.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Xema Shell API
|
|
5
5
|
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
|
-
import type { SpaceKind } from './spaceKind';
|
|
8
|
+
import type { SpaceKind } from './spaceKind.js';
|
|
9
9
|
export interface SpaceRefDto {
|
|
10
10
|
/** Ownership tier (system | biome | org | project | user). */
|
|
11
11
|
tier: SpaceKind;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v8.
|
|
2
|
+
* Generated by orval v8.16.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Xema Shell API
|
|
5
5
|
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
6
6
|
* OpenAPI spec version: 0.1.0
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
* Closed
|
|
9
|
+
* Closed kind enum this object belongs to.
|
|
10
10
|
*/
|
|
11
11
|
export type XemaObjectKind = typeof XemaObjectKind[keyof typeof XemaObjectKind];
|
|
12
12
|
export declare const XemaObjectKind: {
|
|
@@ -17,7 +17,6 @@ export declare const XemaObjectKind: {
|
|
|
17
17
|
readonly 'external-subject': "external-subject";
|
|
18
18
|
readonly 'delegated-session': "delegated-session";
|
|
19
19
|
readonly agent: "agent";
|
|
20
|
-
readonly 'agent-composition': "agent-composition";
|
|
21
20
|
readonly skill: "skill";
|
|
22
21
|
readonly tool: "tool";
|
|
23
22
|
readonly model: "model";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Generated by orval v8.
|
|
3
|
+
* Generated by orval v8.16.0 🍺
|
|
4
4
|
* Do not edit manually.
|
|
5
5
|
* Xema Shell API
|
|
6
6
|
* Xema Shell + XVFS. Phase 2 ships the read-only XVFS resolve endpoint; full Shell commands + websocket + write path land in Phase 5.
|
|
@@ -16,7 +16,6 @@ exports.XemaObjectKind = {
|
|
|
16
16
|
'external-subject': 'external-subject',
|
|
17
17
|
'delegated-session': 'delegated-session',
|
|
18
18
|
agent: 'agent',
|
|
19
|
-
'agent-composition': 'agent-composition',
|
|
20
19
|
skill: 'skill',
|
|
21
20
|
tool: 'tool',
|
|
22
21
|
model: 'model',
|