@mutagent/sdk 0.3.41 → 0.3.42
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/README.md +14 -8
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-checkpoints.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-checkpoints.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-checkpoints.js +124 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-checkpoints.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-stream.d.ts +1 -1
- package/dist/commonjs/funcs/sandbox-get-api-sandbox-by-id-stream.js +1 -1
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-checkpoint.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-checkpoint.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-checkpoint.js +125 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-checkpoint.js.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-restore.d.ts +18 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-restore.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-restore.js +125 -0
- package/dist/commonjs/funcs/sandbox-post-api-sandbox-by-id-restore.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/definition-provider.d.ts +35 -0
- package/dist/commonjs/models/definition-provider.d.ts.map +1 -1
- package/dist/commonjs/models/definition-provider.js +21 -1
- package/dist/commonjs/models/definition-provider.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +5 -3
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +5 -3
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mode-arm-args.d.ts +62 -0
- package/dist/commonjs/models/mode-arm-args.d.ts.map +1 -0
- package/dist/commonjs/models/mode-arm-args.js +64 -0
- package/dist/commonjs/models/mode-arm-args.js.map +1 -0
- package/dist/commonjs/models/name-image-arch.d.ts +35 -0
- package/dist/commonjs/models/name-image-arch.d.ts.map +1 -1
- package/dist/commonjs/models/name-image-arch.js +21 -1
- package/dist/commonjs/models/name-image-arch.js.map +1 -1
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-checkpoints.d.ts +38 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-checkpoints.d.ts.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-checkpoints.js +74 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id-checkpoints.js.map +1 -0
- package/dist/commonjs/models/operations/get-api-sandbox-by-id.d.ts +1 -1
- package/dist/commonjs/models/operations/get-api-sandbox-by-id.js +1 -1
- package/dist/commonjs/models/operations/get-api-sandbox.d.ts +1 -1
- package/dist/commonjs/models/operations/get-api-sandbox.js +1 -1
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-checkpoint.d.ts +83 -0
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-checkpoint.d.ts.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-checkpoint.js +77 -0
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-checkpoint.js.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-restore.d.ts +151 -0
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-restore.d.ts.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-restore.js +121 -0
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-restore.js.map +1 -0
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-session.d.ts +7 -3
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-session.d.ts.map +1 -1
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-session.js +3 -2
- package/dist/commonjs/models/operations/post-api-sandbox-by-id-session.js.map +1 -1
- package/dist/commonjs/models/operations/post-api-sandbox.d.ts +1 -1
- package/dist/commonjs/models/operations/post-api-sandbox.js +1 -1
- package/dist/commonjs/models/operations/update-organization-member.d.ts +1 -1
- package/dist/commonjs/models/operations/update-organization-member.js +1 -1
- package/dist/commonjs/models/operations/update-workspace-member.d.ts +1 -1
- package/dist/commonjs/models/operations/update-workspace-member.d.ts.map +1 -1
- package/dist/commonjs/models/operations/update-workspace-member.js +1 -1
- package/dist/commonjs/models/operations/update-workspace-member.js.map +1 -1
- package/dist/commonjs/models/preset-timeout-ms-keep2.d.ts +10 -0
- package/dist/commonjs/models/preset-timeout-ms-keep2.d.ts.map +1 -1
- package/dist/commonjs/models/preset-timeout-ms-keep2.js +2 -0
- package/dist/commonjs/models/preset-timeout-ms-keep2.js.map +1 -1
- package/dist/commonjs/models/schemadefaul11.d.ts +9 -0
- package/dist/commonjs/models/schemadefaul11.d.ts.map +1 -0
- package/dist/commonjs/models/{schemadefaul8.js → schemadefaul11.js} +9 -9
- package/dist/commonjs/models/schemadefaul11.js.map +1 -0
- package/dist/commonjs/models/schemadefaul5.d.ts +7 -4
- package/dist/commonjs/models/schemadefaul5.d.ts.map +1 -1
- package/dist/commonjs/models/schemadefaul5.js +8 -5
- package/dist/commonjs/models/schemadefaul5.js.map +1 -1
- package/dist/commonjs/models/schemadefaul6.d.ts +7 -5
- package/dist/commonjs/models/schemadefaul6.d.ts.map +1 -1
- package/dist/commonjs/models/schemadefaul6.js +7 -7
- package/dist/commonjs/models/schemadefaul6.js.map +1 -1
- package/dist/commonjs/models/schemadefaul7.d.ts +13 -0
- package/dist/commonjs/models/schemadefaul7.d.ts.map +1 -0
- package/dist/commonjs/models/{schemadefaul4.js → schemadefaul7.js} +11 -13
- package/dist/commonjs/models/schemadefaul7.js.map +1 -0
- package/dist/commonjs/models/schemadefaul9.d.ts +10 -0
- package/dist/commonjs/models/schemadefaul9.d.ts.map +1 -0
- package/dist/commonjs/models/{mode-args-env.js → schemadefaul9.js} +10 -13
- package/dist/commonjs/models/schemadefaul9.js.map +1 -0
- package/dist/commonjs/models/snapshot-id-definition-partial.d.ts +40 -0
- package/dist/commonjs/models/snapshot-id-definition-partial.d.ts.map +1 -0
- package/dist/commonjs/models/snapshot-id-definition-partial.js +63 -0
- package/dist/commonjs/models/snapshot-id-definition-partial.js.map +1 -0
- package/dist/commonjs/sdk/sandbox.d.ts +34 -13
- package/dist/commonjs/sdk/sandbox.d.ts.map +1 -1
- package/dist/commonjs/sdk/sandbox.js +47 -17
- package/dist/commonjs/sdk/sandbox.js.map +1 -1
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-checkpoints.d.ts +18 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-checkpoints.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-checkpoints.js +88 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-checkpoints.js.map +1 -0
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-stream.d.ts +1 -1
- package/dist/esm/funcs/sandbox-get-api-sandbox-by-id-stream.js +1 -1
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-checkpoint.d.ts +18 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-checkpoint.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-checkpoint.js +89 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-checkpoint.js.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-restore.d.ts +18 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-restore.d.ts.map +1 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-restore.js +89 -0
- package/dist/esm/funcs/sandbox-post-api-sandbox-by-id-restore.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/definition-provider.d.ts +35 -0
- package/dist/esm/models/definition-provider.d.ts.map +1 -1
- package/dist/esm/models/definition-provider.js +19 -0
- package/dist/esm/models/definition-provider.js.map +1 -1
- package/dist/esm/models/index.d.ts +5 -3
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +5 -3
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mode-arm-args.d.ts +62 -0
- package/dist/esm/models/mode-arm-args.d.ts.map +1 -0
- package/dist/esm/models/mode-arm-args.js +26 -0
- package/dist/esm/models/mode-arm-args.js.map +1 -0
- package/dist/esm/models/name-image-arch.d.ts +35 -0
- package/dist/esm/models/name-image-arch.d.ts.map +1 -1
- package/dist/esm/models/name-image-arch.js +19 -0
- package/dist/esm/models/name-image-arch.js.map +1 -1
- package/dist/esm/models/operations/get-api-sandbox-by-id-checkpoints.d.ts +38 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id-checkpoints.d.ts.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id-checkpoints.js +35 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id-checkpoints.js.map +1 -0
- package/dist/esm/models/operations/get-api-sandbox-by-id.d.ts +1 -1
- package/dist/esm/models/operations/get-api-sandbox-by-id.js +1 -1
- package/dist/esm/models/operations/get-api-sandbox.d.ts +1 -1
- package/dist/esm/models/operations/get-api-sandbox.js +1 -1
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/post-api-sandbox-by-id-checkpoint.d.ts +83 -0
- package/dist/esm/models/operations/post-api-sandbox-by-id-checkpoint.d.ts.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox-by-id-checkpoint.js +38 -0
- package/dist/esm/models/operations/post-api-sandbox-by-id-checkpoint.js.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox-by-id-restore.d.ts +151 -0
- package/dist/esm/models/operations/post-api-sandbox-by-id-restore.d.ts.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox-by-id-restore.js +80 -0
- package/dist/esm/models/operations/post-api-sandbox-by-id-restore.js.map +1 -0
- package/dist/esm/models/operations/post-api-sandbox-by-id-session.d.ts +7 -3
- package/dist/esm/models/operations/post-api-sandbox-by-id-session.d.ts.map +1 -1
- package/dist/esm/models/operations/post-api-sandbox-by-id-session.js +3 -2
- package/dist/esm/models/operations/post-api-sandbox-by-id-session.js.map +1 -1
- package/dist/esm/models/operations/post-api-sandbox.d.ts +1 -1
- package/dist/esm/models/operations/post-api-sandbox.js +1 -1
- package/dist/esm/models/operations/update-organization-member.d.ts +1 -1
- package/dist/esm/models/operations/update-organization-member.js +1 -1
- package/dist/esm/models/operations/update-workspace-member.d.ts +1 -1
- package/dist/esm/models/operations/update-workspace-member.d.ts.map +1 -1
- package/dist/esm/models/operations/update-workspace-member.js +1 -1
- package/dist/esm/models/operations/update-workspace-member.js.map +1 -1
- package/dist/esm/models/preset-timeout-ms-keep2.d.ts +10 -0
- package/dist/esm/models/preset-timeout-ms-keep2.d.ts.map +1 -1
- package/dist/esm/models/preset-timeout-ms-keep2.js +2 -0
- package/dist/esm/models/preset-timeout-ms-keep2.js.map +1 -1
- package/dist/esm/models/schemadefaul11.d.ts +9 -0
- package/dist/esm/models/schemadefaul11.d.ts.map +1 -0
- package/dist/esm/models/schemadefaul11.js +13 -0
- package/dist/esm/models/schemadefaul11.js.map +1 -0
- package/dist/esm/models/schemadefaul5.d.ts +7 -4
- package/dist/esm/models/schemadefaul5.d.ts.map +1 -1
- package/dist/esm/models/schemadefaul5.js +7 -4
- package/dist/esm/models/schemadefaul5.js.map +1 -1
- package/dist/esm/models/schemadefaul6.d.ts +7 -5
- package/dist/esm/models/schemadefaul6.d.ts.map +1 -1
- package/dist/esm/models/schemadefaul6.js +6 -6
- package/dist/esm/models/schemadefaul6.js.map +1 -1
- package/dist/esm/models/schemadefaul7.d.ts +13 -0
- package/dist/esm/models/schemadefaul7.d.ts.map +1 -0
- package/dist/esm/models/schemadefaul7.js +15 -0
- package/dist/esm/models/schemadefaul7.js.map +1 -0
- package/dist/esm/models/schemadefaul9.d.ts +10 -0
- package/dist/esm/models/schemadefaul9.d.ts.map +1 -0
- package/dist/esm/models/schemadefaul9.js +14 -0
- package/dist/esm/models/schemadefaul9.js.map +1 -0
- package/dist/esm/models/snapshot-id-definition-partial.d.ts +40 -0
- package/dist/esm/models/snapshot-id-definition-partial.d.ts.map +1 -0
- package/dist/esm/models/snapshot-id-definition-partial.js +26 -0
- package/dist/esm/models/snapshot-id-definition-partial.js.map +1 -0
- package/dist/esm/sdk/sandbox.d.ts +34 -13
- package/dist/esm/sdk/sandbox.d.ts.map +1 -1
- package/dist/esm/sdk/sandbox.js +47 -17
- package/dist/esm/sdk/sandbox.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/sandbox-get-api-sandbox-by-id-checkpoints.ts +184 -0
- package/src/funcs/sandbox-get-api-sandbox-by-id-stream.ts +1 -1
- package/src/funcs/sandbox-post-api-sandbox-by-id-checkpoint.ts +186 -0
- package/src/funcs/sandbox-post-api-sandbox-by-id-restore.ts +186 -0
- package/src/lib/config.ts +2 -2
- package/src/models/definition-provider.ts +59 -0
- package/src/models/index.ts +5 -3
- package/src/models/mode-arm-args.ts +100 -0
- package/src/models/name-image-arch.ts +59 -0
- package/src/models/operations/get-api-sandbox-by-id-checkpoints.ts +97 -0
- package/src/models/operations/get-api-sandbox-by-id.ts +3 -3
- package/src/models/operations/get-api-sandbox.ts +3 -3
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/post-api-sandbox-by-id-checkpoint.ts +151 -0
- package/src/models/operations/post-api-sandbox-by-id-restore.ts +263 -0
- package/src/models/operations/post-api-sandbox-by-id-session.ts +14 -6
- package/src/models/operations/post-api-sandbox.ts +3 -3
- package/src/models/operations/update-organization-member.ts +3 -3
- package/src/models/operations/update-workspace-member.ts +3 -3
- package/src/models/preset-timeout-ms-keep2.ts +12 -0
- package/src/models/{schemadefaul8.ts → schemadefaul11.ts} +4 -3
- package/src/models/schemadefaul5.ts +7 -7
- package/src/models/schemadefaul6.ts +14 -6
- package/src/models/schemadefaul7.ts +25 -0
- package/src/models/schemadefaul9.ts +16 -0
- package/src/models/snapshot-id-definition-partial.ts +70 -0
- package/src/sdk/sandbox.ts +82 -28
- package/dist/commonjs/models/mode-args-env.d.ts +0 -35
- package/dist/commonjs/models/mode-args-env.d.ts.map +0 -1
- package/dist/commonjs/models/mode-args-env.js.map +0 -1
- package/dist/commonjs/models/schemadefaul4.d.ts +0 -15
- package/dist/commonjs/models/schemadefaul4.d.ts.map +0 -1
- package/dist/commonjs/models/schemadefaul4.js.map +0 -1
- package/dist/commonjs/models/schemadefaul8.d.ts +0 -9
- package/dist/commonjs/models/schemadefaul8.d.ts.map +0 -1
- package/dist/commonjs/models/schemadefaul8.js.map +0 -1
- package/dist/esm/models/mode-args-env.d.ts +0 -35
- package/dist/esm/models/mode-args-env.d.ts.map +0 -1
- package/dist/esm/models/mode-args-env.js +0 -16
- package/dist/esm/models/mode-args-env.js.map +0 -1
- package/dist/esm/models/schemadefaul4.d.ts +0 -15
- package/dist/esm/models/schemadefaul4.d.ts.map +0 -1
- package/dist/esm/models/schemadefaul4.js +0 -17
- package/dist/esm/models/schemadefaul4.js.map +0 -1
- package/dist/esm/models/schemadefaul8.d.ts +0 -9
- package/dist/esm/models/schemadefaul8.d.ts.map +0 -1
- package/dist/esm/models/schemadefaul8.js +0 -13
- package/dist/esm/models/schemadefaul8.js.map +0 -1
- package/src/models/mode-args-env.ts +0 -52
- package/src/models/schemadefaul4.ts +0 -24
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Capture a running Helix session's own transcript into a snapshot
|
|
13
|
+
*/
|
|
14
|
+
export type PostApiSandboxByIdCheckpointRequestBody = {
|
|
15
|
+
/**
|
|
16
|
+
* The Helix session to capture — from the `start` that created it. The harness writes its session file LAZILY, so a session that has not completed a turn has nothing to capture and answers 409.
|
|
17
|
+
*/
|
|
18
|
+
sessionId: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type PostApiSandboxByIdCheckpointRequest = {
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* Capture a running Helix session's own transcript into a snapshot
|
|
25
|
+
*/
|
|
26
|
+
body: PostApiSandboxByIdCheckpointRequestBody;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* A stored checkpoint of the agent’s own conversation state
|
|
31
|
+
*/
|
|
32
|
+
export type PostApiSandboxByIdCheckpointResponse = {
|
|
33
|
+
/**
|
|
34
|
+
* Names the snapshot in a later restore.
|
|
35
|
+
*/
|
|
36
|
+
snapshotId: string;
|
|
37
|
+
/**
|
|
38
|
+
* Size of the captured file in RAW bytes, not base64.
|
|
39
|
+
*/
|
|
40
|
+
bytes: number;
|
|
41
|
+
/**
|
|
42
|
+
* sha256 of the raw bytes, hex. A restore re-reads this from the receiving box and refuses to switch the session if it differs.
|
|
43
|
+
*/
|
|
44
|
+
sha256: string;
|
|
45
|
+
/**
|
|
46
|
+
* The harness's OWN session id, from inside the file. Distinct from the control-plane sessionId, and the one that survives a restore.
|
|
47
|
+
*/
|
|
48
|
+
harnessSessionId: string;
|
|
49
|
+
/**
|
|
50
|
+
* Messages the harness reported at capture time. Never zero — a zero capture is refused.
|
|
51
|
+
*/
|
|
52
|
+
messageCount: number;
|
|
53
|
+
/**
|
|
54
|
+
* Where the file lived on the origin box. Diagnostic only — a restore derives its path from the RECEIVING box, since cwd is a per-session choice.
|
|
55
|
+
*/
|
|
56
|
+
sourcePath: string;
|
|
57
|
+
/**
|
|
58
|
+
* Where the settings-and-queue manifest was written in the object store, or null when this deployment has none. The manifest also holds the workspace and extension-state archive references.
|
|
59
|
+
*/
|
|
60
|
+
manifestKey: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Size of the workspace archive that travelled with this checkpoint. Null when none did.
|
|
63
|
+
*/
|
|
64
|
+
workspaceBytes: number | null;
|
|
65
|
+
/**
|
|
66
|
+
* How many files that archive holds. Null when no workspace travelled.
|
|
67
|
+
*/
|
|
68
|
+
workspaceFiles: number | null;
|
|
69
|
+
/**
|
|
70
|
+
* One line per leg that did NOT travel, each naming the leg and the reason. Empty means everything was captured. Read this before treating a 200 as a full-state checkpoint: a capture that stored the conversation and carried no workspace is a legitimate outcome and must not look like one that carried it.
|
|
71
|
+
*/
|
|
72
|
+
notCaptured: Array<string>;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export type PostApiSandboxByIdCheckpointRequestBody$Outbound = {
|
|
77
|
+
sessionId: string;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const PostApiSandboxByIdCheckpointRequestBody$outboundSchema:
|
|
82
|
+
z.ZodMiniType<
|
|
83
|
+
PostApiSandboxByIdCheckpointRequestBody$Outbound,
|
|
84
|
+
PostApiSandboxByIdCheckpointRequestBody
|
|
85
|
+
> = z.object({
|
|
86
|
+
sessionId: z.string(),
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
export function postApiSandboxByIdCheckpointRequestBodyToJSON(
|
|
90
|
+
postApiSandboxByIdCheckpointRequestBody:
|
|
91
|
+
PostApiSandboxByIdCheckpointRequestBody,
|
|
92
|
+
): string {
|
|
93
|
+
return JSON.stringify(
|
|
94
|
+
PostApiSandboxByIdCheckpointRequestBody$outboundSchema.parse(
|
|
95
|
+
postApiSandboxByIdCheckpointRequestBody,
|
|
96
|
+
),
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export type PostApiSandboxByIdCheckpointRequest$Outbound = {
|
|
102
|
+
id: string;
|
|
103
|
+
body: PostApiSandboxByIdCheckpointRequestBody$Outbound;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const PostApiSandboxByIdCheckpointRequest$outboundSchema: z.ZodMiniType<
|
|
108
|
+
PostApiSandboxByIdCheckpointRequest$Outbound,
|
|
109
|
+
PostApiSandboxByIdCheckpointRequest
|
|
110
|
+
> = z.object({
|
|
111
|
+
id: z.string(),
|
|
112
|
+
body: z.lazy(() => PostApiSandboxByIdCheckpointRequestBody$outboundSchema),
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
export function postApiSandboxByIdCheckpointRequestToJSON(
|
|
116
|
+
postApiSandboxByIdCheckpointRequest: PostApiSandboxByIdCheckpointRequest,
|
|
117
|
+
): string {
|
|
118
|
+
return JSON.stringify(
|
|
119
|
+
PostApiSandboxByIdCheckpointRequest$outboundSchema.parse(
|
|
120
|
+
postApiSandboxByIdCheckpointRequest,
|
|
121
|
+
),
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const PostApiSandboxByIdCheckpointResponse$inboundSchema: z.ZodMiniType<
|
|
127
|
+
PostApiSandboxByIdCheckpointResponse,
|
|
128
|
+
unknown
|
|
129
|
+
> = z.object({
|
|
130
|
+
snapshotId: types.string(),
|
|
131
|
+
bytes: types.number(),
|
|
132
|
+
sha256: types.string(),
|
|
133
|
+
harnessSessionId: types.string(),
|
|
134
|
+
messageCount: types.number(),
|
|
135
|
+
sourcePath: types.string(),
|
|
136
|
+
manifestKey: types.nullable(types.string()),
|
|
137
|
+
workspaceBytes: types.nullable(types.number()),
|
|
138
|
+
workspaceFiles: types.nullable(types.number()),
|
|
139
|
+
notCaptured: z.array(types.string()),
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
export function postApiSandboxByIdCheckpointResponseFromJSON(
|
|
143
|
+
jsonString: string,
|
|
144
|
+
): SafeParseResult<PostApiSandboxByIdCheckpointResponse, SDKValidationError> {
|
|
145
|
+
return safeParse(
|
|
146
|
+
jsonString,
|
|
147
|
+
(x) =>
|
|
148
|
+
PostApiSandboxByIdCheckpointResponse$inboundSchema.parse(JSON.parse(x)),
|
|
149
|
+
`Failed to parse 'PostApiSandboxByIdCheckpointResponse' from JSON`,
|
|
150
|
+
);
|
|
151
|
+
}
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as types from "../../types/primitives.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
12
|
+
import * as models from "../index.js";
|
|
13
|
+
|
|
14
|
+
export type PostApiSandboxByIdRestoreRequest = {
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Rebuild this sandbox from a checkpoint: a fresh box under the SAME id at generation+1, the workspace and extension state extracted before Helix starts, the conversation restored and switched to, then the runtime settings and pending queue replayed.
|
|
18
|
+
*/
|
|
19
|
+
body: models.SnapshotIdDefinitionPartial;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type Workspace = {
|
|
23
|
+
files: number;
|
|
24
|
+
bytes: number;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* `clean` — probed, the box has every referenced file. `drifted` — probed, `missing` lists what it lacks. `unchecked` — no probe ran (`reason` says why); NOT a clean bill of health.
|
|
29
|
+
*/
|
|
30
|
+
export enum Status {
|
|
31
|
+
Clean = "clean",
|
|
32
|
+
Drifted = "drifted",
|
|
33
|
+
Unchecked = "unchecked",
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* `clean` — probed, the box has every referenced file. `drifted` — probed, `missing` lists what it lacks. `unchecked` — no probe ran (`reason` says why); NOT a clean bill of health.
|
|
37
|
+
*/
|
|
38
|
+
export type StatusOpen = OpenEnum<typeof Status>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Whether the restored context refers to files this box does not have
|
|
42
|
+
*/
|
|
43
|
+
export type WorkspaceDrift = {
|
|
44
|
+
/**
|
|
45
|
+
* `clean` — probed, the box has every referenced file. `drifted` — probed, `missing` lists what it lacks. `unchecked` — no probe ran (`reason` says why); NOT a clean bill of health.
|
|
46
|
+
*/
|
|
47
|
+
status: StatusOpen;
|
|
48
|
+
/**
|
|
49
|
+
* How many files the transcript was found to claim. A FLOOR, not a count of the workspace: detection reads write-shaped tool calls only, so files created by shell are invisible to it.
|
|
50
|
+
*/
|
|
51
|
+
referenced: number;
|
|
52
|
+
/**
|
|
53
|
+
* Referenced paths the box does not have. VERIFIED by the box, not inferred — the candidate list is heuristic, this absence is not.
|
|
54
|
+
*/
|
|
55
|
+
missing: Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The detector’s own read was incomplete — it hit its path cap or met lines it could not parse. An empty `missing` under `partial: true` proves less than it appears to.
|
|
58
|
+
*/
|
|
59
|
+
partial: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Why `status` is `unchecked`. Absent otherwise.
|
|
62
|
+
*/
|
|
63
|
+
reason?: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export type SkippedSnapshot = {
|
|
67
|
+
id: string;
|
|
68
|
+
reason: string;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The sandbox has been rebuilt and the agent is continuing the checkpoint’s conversation
|
|
73
|
+
*/
|
|
74
|
+
export type PostApiSandboxByIdRestoreResponse = {
|
|
75
|
+
/**
|
|
76
|
+
* True only. The digest matched and the harness confirmed the switch; anything else is an error status, never a `false` here.
|
|
77
|
+
*/
|
|
78
|
+
restored: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* UNCHANGED across the restore. That is the design: the logical sandbox keeps its id so a client cursor stays valid, and `generation` is what says the instance underneath was replaced.
|
|
81
|
+
*/
|
|
82
|
+
sandboxId: string;
|
|
83
|
+
/**
|
|
84
|
+
* The previous generation plus one.
|
|
85
|
+
*/
|
|
86
|
+
generation: number;
|
|
87
|
+
snapshotId: string;
|
|
88
|
+
/**
|
|
89
|
+
* The NEW control-plane Helix session in the rebuilt box. Use it for `POST /:id/input`.
|
|
90
|
+
*/
|
|
91
|
+
sessionId: string;
|
|
92
|
+
/**
|
|
93
|
+
* The harness's OWN session id, carried through from the snapshot. Unlike `sessionId` it survives the restore, so it is what identifies one conversation across the seam.
|
|
94
|
+
*/
|
|
95
|
+
harnessSessionId: string;
|
|
96
|
+
/**
|
|
97
|
+
* The working directory the restored session runs in, from the checkpoint. Null when the checkpoint recorded none.
|
|
98
|
+
*/
|
|
99
|
+
cwd: string | null;
|
|
100
|
+
bytes: number;
|
|
101
|
+
/**
|
|
102
|
+
* What the box reported. Equal to the stored digest, or this call failed.
|
|
103
|
+
*/
|
|
104
|
+
sha256: string;
|
|
105
|
+
/**
|
|
106
|
+
* The wire seq the `restored` marker took on the stream. It CONTINUES the killed instance's numbering, which is what lets a client keep using its old `?since=` cursor. -1 when this deployment has no event relay and no marker could be written.
|
|
107
|
+
*/
|
|
108
|
+
seq: number;
|
|
109
|
+
/**
|
|
110
|
+
* Which runtime modes were actually replayed onto the restored session. A mode the checkpoint did not record is not replayed — imposing a default nobody chose is worse than leaving one unset.
|
|
111
|
+
*/
|
|
112
|
+
settingsReplayed: Array<string>;
|
|
113
|
+
/**
|
|
114
|
+
* How many pending steer/follow-up instructions were re-enqueued.
|
|
115
|
+
*/
|
|
116
|
+
queueReplayed: number;
|
|
117
|
+
/**
|
|
118
|
+
* What the workspace archive put back, or null when none travelled.
|
|
119
|
+
*/
|
|
120
|
+
workspace: Workspace | null;
|
|
121
|
+
/**
|
|
122
|
+
* Whether the restored context refers to files this box does not have
|
|
123
|
+
*/
|
|
124
|
+
workspaceDrift: WorkspaceDrift;
|
|
125
|
+
/**
|
|
126
|
+
* One line per thing that did NOT come back, each naming the leg and why. Read this before believing the rest: restoring the conversation alone is a legitimate outcome (a deployment with no object store, or a checkpoint whose manifest never landed) and must not be indistinguishable from a full-state restore.
|
|
127
|
+
*/
|
|
128
|
+
notRestored: Array<string>;
|
|
129
|
+
/**
|
|
130
|
+
* True when the transcript restored is the incremental prefix beyond the checkpoint (`partial: true` was asked AND the prefix extended the row). The `session {status:"restored"}` frame carries the same flag. False when the checkpoint row was restored — including a `partial: true` request that fell back, which `notRestored` explains.
|
|
131
|
+
*/
|
|
132
|
+
partial: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Transcript bytes restored BEYOND the checkpoint row. 0 unless `partial`.
|
|
135
|
+
*/
|
|
136
|
+
partialBytes: number;
|
|
137
|
+
/**
|
|
138
|
+
* Newer checkpoints a DEFAULTED restore passed over to reach one with a manifest, each with why. A consistency point writes its conversation row first and its manifest last, so a box that dies in between leaves a newest row that cannot be restored in full; the default walks back to the newest one that can and names what it skipped here. Empty when the newest row was used or when `snapshotId` was given (a named snapshot is restored as-is, with the session file’s own header cwd when it has no manifest).
|
|
139
|
+
*/
|
|
140
|
+
skippedSnapshots: Array<SkippedSnapshot>;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
/** @internal */
|
|
144
|
+
export type PostApiSandboxByIdRestoreRequest$Outbound = {
|
|
145
|
+
id: string;
|
|
146
|
+
body: models.SnapshotIdDefinitionPartial$Outbound;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
/** @internal */
|
|
150
|
+
export const PostApiSandboxByIdRestoreRequest$outboundSchema: z.ZodMiniType<
|
|
151
|
+
PostApiSandboxByIdRestoreRequest$Outbound,
|
|
152
|
+
PostApiSandboxByIdRestoreRequest
|
|
153
|
+
> = z.object({
|
|
154
|
+
id: z.string(),
|
|
155
|
+
body: models.SnapshotIdDefinitionPartial$outboundSchema,
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
export function postApiSandboxByIdRestoreRequestToJSON(
|
|
159
|
+
postApiSandboxByIdRestoreRequest: PostApiSandboxByIdRestoreRequest,
|
|
160
|
+
): string {
|
|
161
|
+
return JSON.stringify(
|
|
162
|
+
PostApiSandboxByIdRestoreRequest$outboundSchema.parse(
|
|
163
|
+
postApiSandboxByIdRestoreRequest,
|
|
164
|
+
),
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const Workspace$inboundSchema: z.ZodMiniType<Workspace, unknown> = z
|
|
170
|
+
.object({
|
|
171
|
+
files: types.number(),
|
|
172
|
+
bytes: types.number(),
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
export function workspaceFromJSON(
|
|
176
|
+
jsonString: string,
|
|
177
|
+
): SafeParseResult<Workspace, SDKValidationError> {
|
|
178
|
+
return safeParse(
|
|
179
|
+
jsonString,
|
|
180
|
+
(x) => Workspace$inboundSchema.parse(JSON.parse(x)),
|
|
181
|
+
`Failed to parse 'Workspace' from JSON`,
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** @internal */
|
|
186
|
+
export const Status$inboundSchema: z.ZodMiniType<StatusOpen, unknown> =
|
|
187
|
+
openEnums.inboundSchema(Status);
|
|
188
|
+
|
|
189
|
+
/** @internal */
|
|
190
|
+
export const WorkspaceDrift$inboundSchema: z.ZodMiniType<
|
|
191
|
+
WorkspaceDrift,
|
|
192
|
+
unknown
|
|
193
|
+
> = z.object({
|
|
194
|
+
status: z._default(Status$inboundSchema, Status.Clean),
|
|
195
|
+
referenced: types.number(),
|
|
196
|
+
missing: z.array(types.string()),
|
|
197
|
+
partial: types.boolean(),
|
|
198
|
+
reason: types.optional(types.string()),
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
export function workspaceDriftFromJSON(
|
|
202
|
+
jsonString: string,
|
|
203
|
+
): SafeParseResult<WorkspaceDrift, SDKValidationError> {
|
|
204
|
+
return safeParse(
|
|
205
|
+
jsonString,
|
|
206
|
+
(x) => WorkspaceDrift$inboundSchema.parse(JSON.parse(x)),
|
|
207
|
+
`Failed to parse 'WorkspaceDrift' from JSON`,
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/** @internal */
|
|
212
|
+
export const SkippedSnapshot$inboundSchema: z.ZodMiniType<
|
|
213
|
+
SkippedSnapshot,
|
|
214
|
+
unknown
|
|
215
|
+
> = z.object({
|
|
216
|
+
id: types.string(),
|
|
217
|
+
reason: types.string(),
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
export function skippedSnapshotFromJSON(
|
|
221
|
+
jsonString: string,
|
|
222
|
+
): SafeParseResult<SkippedSnapshot, SDKValidationError> {
|
|
223
|
+
return safeParse(
|
|
224
|
+
jsonString,
|
|
225
|
+
(x) => SkippedSnapshot$inboundSchema.parse(JSON.parse(x)),
|
|
226
|
+
`Failed to parse 'SkippedSnapshot' from JSON`,
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/** @internal */
|
|
231
|
+
export const PostApiSandboxByIdRestoreResponse$inboundSchema: z.ZodMiniType<
|
|
232
|
+
PostApiSandboxByIdRestoreResponse,
|
|
233
|
+
unknown
|
|
234
|
+
> = z.object({
|
|
235
|
+
restored: types.boolean(),
|
|
236
|
+
sandboxId: types.string(),
|
|
237
|
+
generation: types.number(),
|
|
238
|
+
snapshotId: types.string(),
|
|
239
|
+
sessionId: types.string(),
|
|
240
|
+
harnessSessionId: types.string(),
|
|
241
|
+
cwd: types.nullable(types.string()),
|
|
242
|
+
bytes: types.number(),
|
|
243
|
+
sha256: types.string(),
|
|
244
|
+
seq: types.number(),
|
|
245
|
+
settingsReplayed: z.array(types.string()),
|
|
246
|
+
queueReplayed: types.number(),
|
|
247
|
+
workspace: types.nullable(z.lazy(() => Workspace$inboundSchema)),
|
|
248
|
+
workspaceDrift: z.lazy(() => WorkspaceDrift$inboundSchema),
|
|
249
|
+
notRestored: z.array(types.string()),
|
|
250
|
+
partial: types.boolean(),
|
|
251
|
+
partialBytes: types.number(),
|
|
252
|
+
skippedSnapshots: z.array(z.lazy(() => SkippedSnapshot$inboundSchema)),
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
export function postApiSandboxByIdRestoreResponseFromJSON(
|
|
256
|
+
jsonString: string,
|
|
257
|
+
): SafeParseResult<PostApiSandboxByIdRestoreResponse, SDKValidationError> {
|
|
258
|
+
return safeParse(
|
|
259
|
+
jsonString,
|
|
260
|
+
(x) => PostApiSandboxByIdRestoreResponse$inboundSchema.parse(JSON.parse(x)),
|
|
261
|
+
`Failed to parse 'PostApiSandboxByIdRestoreResponse' from JSON`,
|
|
262
|
+
);
|
|
263
|
+
}
|
|
@@ -14,7 +14,7 @@ export type PostApiSandboxByIdSessionRequest = {
|
|
|
14
14
|
/**
|
|
15
15
|
* Start a Helix session inside a running sandbox
|
|
16
16
|
*/
|
|
17
|
-
body: models.
|
|
17
|
+
body: models.ModeArmArgs;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -32,13 +32,17 @@ export type PostApiSandboxByIdSessionResponse = {
|
|
|
32
32
|
/**
|
|
33
33
|
* The mode the session was actually started in.
|
|
34
34
|
*/
|
|
35
|
-
mode: models.
|
|
35
|
+
mode: models.Schemadefaul6Open;
|
|
36
|
+
/**
|
|
37
|
+
* The launcher arm the session was actually started on.
|
|
38
|
+
*/
|
|
39
|
+
arm: models.Schemadefaul7Open;
|
|
36
40
|
};
|
|
37
41
|
|
|
38
42
|
/** @internal */
|
|
39
43
|
export type PostApiSandboxByIdSessionRequest$Outbound = {
|
|
40
44
|
id: string;
|
|
41
|
-
body: models.
|
|
45
|
+
body: models.ModeArmArgs$Outbound;
|
|
42
46
|
};
|
|
43
47
|
|
|
44
48
|
/** @internal */
|
|
@@ -47,7 +51,7 @@ export const PostApiSandboxByIdSessionRequest$outboundSchema: z.ZodMiniType<
|
|
|
47
51
|
PostApiSandboxByIdSessionRequest
|
|
48
52
|
> = z.object({
|
|
49
53
|
id: z.string(),
|
|
50
|
-
body: models.
|
|
54
|
+
body: models.ModeArmArgs$outboundSchema,
|
|
51
55
|
});
|
|
52
56
|
|
|
53
57
|
export function postApiSandboxByIdSessionRequestToJSON(
|
|
@@ -68,8 +72,12 @@ export const PostApiSandboxByIdSessionResponse$inboundSchema: z.ZodMiniType<
|
|
|
68
72
|
sessionId: types.string(),
|
|
69
73
|
status: types.string(),
|
|
70
74
|
mode: z._default(
|
|
71
|
-
models.
|
|
72
|
-
models.
|
|
75
|
+
models.Schemadefaul6$inboundSchema,
|
|
76
|
+
models.Schemadefaul6.Oneshot,
|
|
77
|
+
),
|
|
78
|
+
arm: z._default(
|
|
79
|
+
models.Schemadefaul7$inboundSchema,
|
|
80
|
+
models.Schemadefaul7.Classic,
|
|
73
81
|
),
|
|
74
82
|
});
|
|
75
83
|
|
|
@@ -29,7 +29,7 @@ export type PostApiSandboxResponse = {
|
|
|
29
29
|
* CPU architecture the image was built for. Validated against the provider at preflight.
|
|
30
30
|
*/
|
|
31
31
|
arch: models.SchemadefaulOpen;
|
|
32
|
-
status: models.
|
|
32
|
+
status: models.Schemadefaul5Open;
|
|
33
33
|
definitionName: string;
|
|
34
34
|
environmentName?: string | undefined;
|
|
35
35
|
/**
|
|
@@ -51,8 +51,8 @@ export const PostApiSandboxResponse$inboundSchema: z.ZodMiniType<
|
|
|
51
51
|
models.Schemadefaul.X8664,
|
|
52
52
|
),
|
|
53
53
|
status: z._default(
|
|
54
|
-
models.
|
|
55
|
-
models.
|
|
54
|
+
models.Schemadefaul5$inboundSchema,
|
|
55
|
+
models.Schemadefaul5.Pending,
|
|
56
56
|
),
|
|
57
57
|
definitionName: types.string(),
|
|
58
58
|
environmentName: types.optional(types.string()),
|
|
@@ -9,7 +9,7 @@ export type UpdateOrganizationMemberRequestBody = {
|
|
|
9
9
|
/**
|
|
10
10
|
* The new role for the member
|
|
11
11
|
*/
|
|
12
|
-
role?: models.
|
|
12
|
+
role?: models.Schemadefaul9 | undefined;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export type UpdateOrganizationMemberRequest = {
|
|
@@ -29,8 +29,8 @@ export const UpdateOrganizationMemberRequestBody$outboundSchema: z.ZodMiniType<
|
|
|
29
29
|
UpdateOrganizationMemberRequestBody
|
|
30
30
|
> = z.object({
|
|
31
31
|
role: z._default(
|
|
32
|
-
models.
|
|
33
|
-
models.
|
|
32
|
+
models.Schemadefaul9$outboundSchema,
|
|
33
|
+
models.Schemadefaul9.Owner,
|
|
34
34
|
),
|
|
35
35
|
});
|
|
36
36
|
|
|
@@ -9,7 +9,7 @@ export type UpdateWorkspaceMemberRequestBody = {
|
|
|
9
9
|
/**
|
|
10
10
|
* The new role for the member
|
|
11
11
|
*/
|
|
12
|
-
role?: models.
|
|
12
|
+
role?: models.Schemadefaul11 | undefined;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export type UpdateWorkspaceMemberRequest = {
|
|
@@ -29,8 +29,8 @@ export const UpdateWorkspaceMemberRequestBody$outboundSchema: z.ZodMiniType<
|
|
|
29
29
|
UpdateWorkspaceMemberRequestBody
|
|
30
30
|
> = z.object({
|
|
31
31
|
role: z._default(
|
|
32
|
-
models.
|
|
33
|
-
models.
|
|
32
|
+
models.Schemadefaul11$outboundSchema,
|
|
33
|
+
models.Schemadefaul11.Admin,
|
|
34
34
|
),
|
|
35
35
|
});
|
|
36
36
|
|
|
@@ -33,6 +33,14 @@ export type PresetTimeoutMsKeep2 = {
|
|
|
33
33
|
* Run the agent on the ASPS-Prime scaffold instead of the default ASPS one — leaner, code-first, no orchestrator persona. Forwarded to the binary as `--prime`.
|
|
34
34
|
*/
|
|
35
35
|
prime?: boolean | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Harness argv, forwarded verbatim between the definition flags and `-p <task>`. Not interpreted here: the flag vocabulary belongs to the binary. Max 64 entries, 4 KiB each, no NUL.
|
|
38
|
+
*/
|
|
39
|
+
args?: Array<string> | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Working directory for the turn inside the sandbox. Omitted takes the box default.
|
|
42
|
+
*/
|
|
43
|
+
cwd?: string | undefined;
|
|
36
44
|
};
|
|
37
45
|
|
|
38
46
|
/** @internal */
|
|
@@ -44,6 +52,8 @@ export type PresetTimeoutMsKeep2$Outbound = {
|
|
|
44
52
|
prompt: string;
|
|
45
53
|
task: string;
|
|
46
54
|
prime?: boolean | undefined;
|
|
55
|
+
args?: Array<string> | undefined;
|
|
56
|
+
cwd?: string | undefined;
|
|
47
57
|
};
|
|
48
58
|
|
|
49
59
|
/** @internal */
|
|
@@ -58,6 +68,8 @@ export const PresetTimeoutMsKeep2$outboundSchema: z.ZodMiniType<
|
|
|
58
68
|
prompt: z.string(),
|
|
59
69
|
task: z.string(),
|
|
60
70
|
prime: z.optional(z.boolean()),
|
|
71
|
+
args: z.optional(z.array(z.string())),
|
|
72
|
+
cwd: z.optional(z.string()),
|
|
61
73
|
});
|
|
62
74
|
|
|
63
75
|
export function presetTimeoutMsKeep2ToJSON(
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
|
|
7
|
-
export enum
|
|
7
|
+
export enum Schemadefaul11 {
|
|
8
8
|
Admin = "admin",
|
|
9
9
|
Editor = "editor",
|
|
10
10
|
Viewer = "viewer",
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
/** @internal */
|
|
14
|
-
export const
|
|
15
|
-
|
|
14
|
+
export const Schemadefaul11$outboundSchema: z.ZodMiniEnum<
|
|
15
|
+
typeof Schemadefaul11
|
|
16
|
+
> = z.enum(Schemadefaul11);
|
|
@@ -7,8 +7,13 @@ import * as openEnums from "../types/enums.js";
|
|
|
7
7
|
import { OpenEnum } from "../types/enums.js";
|
|
8
8
|
|
|
9
9
|
export enum Schemadefaul5 {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
Pending = "pending",
|
|
11
|
+
Starting = "starting",
|
|
12
|
+
Running = "running",
|
|
13
|
+
Paused = "paused",
|
|
14
|
+
Stopping = "stopping",
|
|
15
|
+
Stopped = "stopped",
|
|
16
|
+
Failed = "failed",
|
|
12
17
|
}
|
|
13
18
|
export type Schemadefaul5Open = OpenEnum<typeof Schemadefaul5>;
|
|
14
19
|
|
|
@@ -17,8 +22,3 @@ export const Schemadefaul5$inboundSchema: z.ZodMiniType<
|
|
|
17
22
|
Schemadefaul5Open,
|
|
18
23
|
unknown
|
|
19
24
|
> = openEnums.inboundSchema(Schemadefaul5);
|
|
20
|
-
/** @internal */
|
|
21
|
-
export const Schemadefaul5$outboundSchema: z.ZodMiniType<
|
|
22
|
-
string,
|
|
23
|
-
Schemadefaul5Open
|
|
24
|
-
> = openEnums.outboundSchema(Schemadefaul5);
|
|
@@ -3,14 +3,22 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../types/enums.js";
|
|
6
8
|
|
|
7
9
|
export enum Schemadefaul6 {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Editor = "editor",
|
|
11
|
-
Viewer = "viewer",
|
|
10
|
+
Oneshot = "oneshot",
|
|
11
|
+
Rpc = "rpc",
|
|
12
12
|
}
|
|
13
|
+
export type Schemadefaul6Open = OpenEnum<typeof Schemadefaul6>;
|
|
13
14
|
|
|
14
15
|
/** @internal */
|
|
15
|
-
export const Schemadefaul6$
|
|
16
|
-
|
|
16
|
+
export const Schemadefaul6$inboundSchema: z.ZodMiniType<
|
|
17
|
+
Schemadefaul6Open,
|
|
18
|
+
unknown
|
|
19
|
+
> = openEnums.inboundSchema(Schemadefaul6);
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const Schemadefaul6$outboundSchema: z.ZodMiniType<
|
|
22
|
+
string,
|
|
23
|
+
Schemadefaul6Open
|
|
24
|
+
> = openEnums.outboundSchema(Schemadefaul6);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export enum Schemadefaul7 {
|
|
10
|
+
Classic = "classic",
|
|
11
|
+
Prime = "prime",
|
|
12
|
+
Agent = "agent",
|
|
13
|
+
}
|
|
14
|
+
export type Schemadefaul7Open = OpenEnum<typeof Schemadefaul7>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const Schemadefaul7$inboundSchema: z.ZodMiniType<
|
|
18
|
+
Schemadefaul7Open,
|
|
19
|
+
unknown
|
|
20
|
+
> = openEnums.inboundSchema(Schemadefaul7);
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const Schemadefaul7$outboundSchema: z.ZodMiniType<
|
|
23
|
+
string,
|
|
24
|
+
Schemadefaul7Open
|
|
25
|
+
> = openEnums.outboundSchema(Schemadefaul7);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export enum Schemadefaul9 {
|
|
8
|
+
Owner = "owner",
|
|
9
|
+
Admin = "admin",
|
|
10
|
+
Editor = "editor",
|
|
11
|
+
Viewer = "viewer",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const Schemadefaul9$outboundSchema: z.ZodMiniEnum<typeof Schemadefaul9> =
|
|
16
|
+
z.enum(Schemadefaul9);
|