@nylorun/core 0.19.0-beta → 0.21.0-beta
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/CHANGELOG.md +191 -0
- package/README.md +2 -2
- package/dist/compatibility.d.ts +148 -32
- package/dist/compatibility.js +154 -33
- package/dist/contracts.d.ts +2714 -495
- package/dist/contracts.js +1395 -493
- package/dist/define.d.ts +15 -12
- package/dist/define.js +11 -7
- package/dist/definition/approval.d.ts +16 -0
- package/dist/definition/approval.js +33 -0
- package/dist/definition/assemble.d.ts +6 -10
- package/dist/definition/assemble.js +48 -105
- package/dist/definition/bind-agent.d.ts +3 -4
- package/dist/definition/bind-agent.js +12 -30
- package/dist/definition/binding.d.ts +2 -2
- package/dist/definition/bound.d.ts +10 -10
- package/dist/definition/builder.d.ts +16 -20
- package/dist/definition/builder.js +29 -81
- package/dist/definition/code-tools.d.ts +4 -4
- package/dist/definition/code-tools.js +7 -22
- package/dist/definition/declaration.d.ts +4 -7
- package/dist/definition/declaration.js +29 -99
- package/dist/definition/{tools-capability.d.ts → deferred-tools.d.ts} +3 -13
- package/dist/definition/{tools-capability.js → deferred-tools.js} +2 -18
- package/dist/definition/delegate.d.ts +2 -4
- package/dist/definition/delegate.js +8 -10
- package/dist/definition/flow/compile.js +0 -2
- package/dist/definition/from.d.ts +7 -4
- package/dist/definition/from.js +72 -117
- package/dist/definition/helpers.d.ts +0 -7
- package/dist/definition/helpers.js +0 -5
- package/dist/definition/http-tool.d.ts +7 -4
- package/dist/definition/http-tool.js +6 -10
- package/dist/definition/implementations.d.ts +6 -8
- package/dist/definition/manifest.d.ts +11 -5
- package/dist/definition/manifest.js +27 -26
- package/dist/definition/mcp.d.ts +1 -52
- package/dist/definition/mcp.js +11 -60
- package/dist/definition/media-reference.d.ts +23 -0
- package/dist/definition/media-reference.js +26 -0
- package/dist/definition/removed.d.ts +3 -10
- package/dist/definition/removed.js +10 -17
- package/dist/definition/runtime-manifest.d.ts +30 -0
- package/dist/definition/runtime-manifest.js +132 -0
- package/dist/definition/sandbox-tools.d.ts +1 -1
- package/dist/definition/sandbox-tools.js +1 -1
- package/dist/definition/skill-tools.d.ts +13 -7
- package/dist/definition/skill-tools.js +23 -10
- package/dist/definition/trace.d.ts +18 -0
- package/dist/definition/trace.js +42 -0
- package/dist/definition/variant.d.ts +5 -4
- package/dist/definition/variant.js +23 -55
- package/dist/definition/workflow/runnable.js +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/harness-api/entries.d.ts +242 -0
- package/dist/harness-api/entries.js +118 -0
- package/dist/harness-api/gates.d.ts +167 -0
- package/dist/harness-api/gates.js +117 -0
- package/dist/harness-api/harness-api.schema.json +4975 -0
- package/dist/harness-api/index.d.ts +19 -3
- package/dist/harness-api/index.js +16 -3
- package/dist/harness-api/json-schema.d.ts +12 -0
- package/dist/harness-api/json-schema.js +61 -0
- package/dist/harness-api/mcp.d.ts +57 -0
- package/dist/harness-api/mcp.js +39 -0
- package/dist/harness-api/messages.d.ts +11 -5
- package/dist/harness-api/messages.js +5 -3
- package/dist/harness-api/schema.d.ts +346 -36
- package/dist/harness-api/schema.js +143 -22
- package/dist/harness-api/transport.d.ts +55 -0
- package/dist/harness-api/transport.js +61 -0
- package/dist/index.d.ts +1 -1
- package/dist/manifest-schemas.d.ts +6 -0
- package/dist/manifest-schemas.js +34 -0
- package/dist/schemas/agent-manifest.schema.json +897 -0
- package/dist/schemas/environment-manifest.schema.json +329 -0
- package/dist/types/agent.d.ts +1 -1
- package/dist/types/manifest.d.ts +48 -28
- package/dist/types/model.d.ts +2 -2
- package/dist/types/observe.d.ts +8 -20
- package/dist/types/part.d.ts +25 -0
- package/dist/types/tool.d.ts +1 -1
- package/dist/types/transcript.d.ts +5 -0
- package/dist/utils/definition-files.d.ts +11 -6
- package/dist/utils/definition-files.js +19 -9
- package/dist/utils/harness-id.d.ts +9 -0
- package/dist/utils/harness-id.js +11 -0
- package/dist/utils/runtime-tools.d.ts +19 -0
- package/dist/utils/runtime-tools.js +30 -0
- package/dist/utils/sandbox.d.ts +1 -1
- package/dist/utils/sandbox.js +1 -1
- package/package.json +11 -4
- package/dist/definition/capability.d.ts +0 -43
- package/dist/definition/capability.js +0 -82
- package/dist/definition/sandbox-capability.d.ts +0 -44
- package/dist/definition/sandbox-capability.js +0 -139
- package/dist/types/middleware.d.ts +0 -94
- /package/dist/types/{middleware.js → part.js} +0 -0
package/dist/contracts.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { z } from "zod";
|
|
|
3
3
|
import type { AgentManifest, McpServerManifest } from "./types/manifest.js";
|
|
4
4
|
import type { JsonValue } from "./types/shared.js";
|
|
5
5
|
import type { WorkflowManifest } from "./types/workflow.js";
|
|
6
|
+
import { DEFAULT_HARNESS, HARNESS_ID_PATTERN, isHarnessId } from "./utils/harness-id.js";
|
|
7
|
+
export { DEFAULT_HARNESS, HARNESS_ID_PATTERN, isHarnessId };
|
|
6
8
|
export type { AgentManifest } from "./types/manifest.js";
|
|
7
9
|
export type { WorkflowManifest } from "./types/workflow.js";
|
|
8
10
|
export { PROTOCOL_VERSION, ERROR_CODES } from "./compatibility.js";
|
|
@@ -13,8 +15,8 @@ export declare const IdempotencyKeySchema: z.ZodString;
|
|
|
13
15
|
/** A remote MCP server as a manifest declares it (`streamable-http` or `sse`). */
|
|
14
16
|
export declare const McpServerManifestSchema: z.ZodType<McpServerManifest>;
|
|
15
17
|
/**
|
|
16
|
-
* An agent's manifest (manifest
|
|
17
|
-
*
|
|
18
|
+
* An agent's manifest (manifest v7). Its output is checked against `AgentManifest` here and below
|
|
19
|
+
* (`ManifestDrift`): the hand-written type keeps its read-only fields and its docs.
|
|
18
20
|
*/
|
|
19
21
|
export declare const AgentManifestSchema: z.ZodType<AgentManifest>;
|
|
20
22
|
/** Workflow definition document. `kind: "workflow"`; a missing `kind` is never a workflow. */
|
|
@@ -28,86 +30,252 @@ export declare const PutAgentRequestSchema: z.ZodObject<{
|
|
|
28
30
|
implementationVersion: z.ZodString;
|
|
29
31
|
}, z.core.$strict>;
|
|
30
32
|
export type PutAgentRequest = z.infer<typeof PutAgentRequestSchema>;
|
|
31
|
-
export declare const
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
export declare const ENVIRONMENT_ID_MAX_LENGTH = 200;
|
|
34
|
+
export declare function isEnvironmentId(value: unknown): value is string;
|
|
35
|
+
/** An Environment grant: an exact Environment id, or a prefix ending in `/*` (`team-a/*`). */
|
|
36
|
+
export declare function isEnvironmentGrant(value: unknown): value is string;
|
|
37
|
+
/**
|
|
38
|
+
* Whether `grants` (a token caller's Environment grants) reach Environment `id`: an exact entry,
|
|
39
|
+
* or a prefix entry `p/*` for any id below `p/`. No grants reach no Environment.
|
|
40
|
+
*/
|
|
41
|
+
export declare function environmentGranted(grants: readonly string[] | undefined, id: string): boolean;
|
|
42
|
+
export declare const EnvironmentIdSchema: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
43
|
+
export declare const EnvironmentGrantSchema: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
44
|
+
/**
|
|
45
|
+
* `virtual`: a just-bash workspace in the harness container, no cluster (a local convenience).
|
|
46
|
+
* `pod`: an agent-sandbox pod with its own volume (Host feature `sandbox-pods`). `none`: no
|
|
47
|
+
* compute, only the vault, for agents whose tools are remote MCP servers and HTTP tools.
|
|
48
|
+
*/
|
|
49
|
+
export declare const ENVIRONMENT_KINDS: readonly ["virtual", "pod", "none"];
|
|
50
|
+
export type EnvironmentKind = (typeof ENVIRONMENT_KINDS)[number];
|
|
51
|
+
/** The kinds with a sandbox (a disk and the sandbox tools). */
|
|
52
|
+
export type SandboxKind = Exclude<EnvironmentKind, "none">;
|
|
53
|
+
export declare const ENVIRONMENT_LABELS_MAX = 32;
|
|
54
|
+
/** The developer's own key-value pairs; the Runtime stores and filters them, never reads them. */
|
|
55
|
+
export declare const EnvironmentLabelsSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
56
|
+
export type EnvironmentLabels = z.infer<typeof EnvironmentLabelsSchema>;
|
|
57
|
+
/** A harness id (track R4): what a harness names itself in `hello`. */
|
|
58
|
+
export declare const HarnessIdSchema: z.ZodString;
|
|
59
|
+
/**
|
|
60
|
+
* An Environment's lifecycle. `idle`: stop compute after this long without a turn, at most the
|
|
61
|
+
* Tenant's `limits.idle` (default the Tenant's). `deleteAfter`: delete the Environment, its vault
|
|
62
|
+
* and its disk once it has gone this long unused (no turn, recipe change, secret write, stop or
|
|
63
|
+
* reset); default never.
|
|
64
|
+
*/
|
|
65
|
+
export declare const EnvironmentLifecycleSchema: z.ZodObject<{
|
|
66
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
67
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
34
68
|
}, z.core.$strict>;
|
|
35
|
-
export type
|
|
69
|
+
export type EnvironmentLifecycle = z.infer<typeof EnvironmentLifecycleSchema>;
|
|
70
|
+
/** The most setup commands and input files an Environment's recipe holds (step 2). */
|
|
71
|
+
export declare const ENVIRONMENT_SETUP_MAX = 16;
|
|
72
|
+
/** A setup command's longest timeout (default 10m). */
|
|
73
|
+
export declare const ENVIRONMENT_SETUP_TIMEOUT_MAX_MS: number;
|
|
36
74
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
75
|
+
* One setup command (pods only): run with `/bin/sh -c` when the pod's disk is made or reset,
|
|
76
|
+
* before the engine takes a turn, with the Environment's variables, secrets (as the sentinel)
|
|
77
|
+
* and egress, as a turn's commands are.
|
|
39
78
|
*/
|
|
40
|
-
export declare const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}, z.core.$strict>>;
|
|
45
|
-
resources: z.ZodOptional<z.ZodObject<{
|
|
46
|
-
cpus: z.ZodOptional<z.ZodNumber>;
|
|
47
|
-
memory: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$strict>>;
|
|
79
|
+
export declare const EnvironmentSetupCommandSchema: z.ZodObject<{
|
|
80
|
+
command: z.ZodString;
|
|
81
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
82
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
49
83
|
}, z.core.$strict>;
|
|
50
|
-
export type
|
|
51
|
-
export declare const SANDBOX_ID_MAX_LENGTH = 200;
|
|
52
|
-
export declare function isSandboxId(value: unknown): value is string;
|
|
53
|
-
/** A sandbox grant: an exact sandbox id, or a prefix ending in `/*` (`team-a/*`). */
|
|
54
|
-
export declare function isSandboxGrant(value: unknown): value is string;
|
|
84
|
+
export type EnvironmentSetupCommand = z.infer<typeof EnvironmentSetupCommandSchema>;
|
|
55
85
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
86
|
+
* One input file (pods only): a version of a Tenant-wide artifact, copied in when the pod's disk
|
|
87
|
+
* is made or reset, before the setup commands. A file artifact is written at `path`; a folder
|
|
88
|
+
* artifact is unpacked under it.
|
|
58
89
|
*/
|
|
59
|
-
|
|
60
|
-
export declare const
|
|
61
|
-
export declare const SandboxGrantSchema: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
62
|
-
/** `virtual`: a just-bash workspace, no cluster (F7.1). `pod`: an agent-sandbox pod (F7.2). */
|
|
63
|
-
export declare const SANDBOX_KINDS: readonly ["virtual", "pod"];
|
|
64
|
-
export type SandboxKind = (typeof SANDBOX_KINDS)[number];
|
|
65
|
-
export declare const SANDBOX_LABELS_MAX = 32;
|
|
66
|
-
/** The developer's own key-value pairs; the Runtime stores and filters them, never reads them. */
|
|
67
|
-
export declare const SandboxLabelsSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
68
|
-
export type SandboxLabels = z.infer<typeof SandboxLabelsSchema>;
|
|
90
|
+
/** The most files one `files` entry by hash names (Q6). */
|
|
91
|
+
export declare const ENVIRONMENT_FILES_MAX = 1000;
|
|
69
92
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
93
|
+
* One input file entry (pods only): an artifact version copied to `path` (a file artifact, or a
|
|
94
|
+
* folder's files under it), or (Q6) files by content hash, each `sha256:<hex>` of a definition
|
|
95
|
+
* file the Tenant holds (`PUT /v1/files/sha256:<hex>`, at most 10 MiB each), copied under `path`
|
|
96
|
+
* at its relative path. A manifest by hash moves to another Tenant with its files.
|
|
97
|
+
*/
|
|
98
|
+
export declare const EnvironmentFileSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
99
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
100
|
+
version: z.ZodNumber;
|
|
101
|
+
path: z.ZodString;
|
|
102
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
103
|
+
path: z.ZodString;
|
|
104
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
105
|
+
}, z.core.$strict>]>;
|
|
106
|
+
export type EnvironmentFile = z.infer<typeof EnvironmentFileSchema>;
|
|
107
|
+
export declare function isEnvironmentManifestName(value: unknown): value is string;
|
|
108
|
+
export declare const EnvironmentManifestNameSchema: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
109
|
+
/**
|
|
110
|
+
* Which manifest an Environment is made from: `name` (its latest version when the Environment is
|
|
111
|
+
* created) or `name@n` (version `n`). Either way the Environment keeps that version for life.
|
|
78
112
|
*/
|
|
79
|
-
export declare
|
|
113
|
+
export declare function parseEnvironmentManifestRef(ref: string): {
|
|
114
|
+
name: string;
|
|
115
|
+
version?: number;
|
|
116
|
+
} | undefined;
|
|
117
|
+
export declare const EnvironmentManifestRefSchema: z.ZodString;
|
|
118
|
+
/**
|
|
119
|
+
* `PUT /v1/environments/{environmentId}`: creates the Environment and its vault, or finds the
|
|
120
|
+
* one with this id, so "get or create" is one call. An Environment is made from one version of an
|
|
121
|
+
* environment manifest (`manifest`) or from the inline manifest these fields make, and never
|
|
122
|
+
* changes what it runs after that (protocol 14, D63): on an existing one, `labels` replace its
|
|
123
|
+
* labels and `ownerUserId` sets or clears its owner guard, a field that matches what it runs is
|
|
124
|
+
* accepted, and anything else is `409 environment_immutable`, naming the fork that makes a new
|
|
125
|
+
* Environment instead.
|
|
126
|
+
*/
|
|
127
|
+
export declare const PutEnvironmentRequestSchema: z.ZodObject<{
|
|
80
128
|
requestId: z.ZodOptional<z.ZodString>;
|
|
129
|
+
manifest: z.ZodOptional<z.ZodString>;
|
|
81
130
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
none: "none";
|
|
82
132
|
pod: "pod";
|
|
83
133
|
virtual: "virtual";
|
|
84
134
|
}>>;
|
|
85
135
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
86
136
|
image: z.ZodOptional<z.ZodString>;
|
|
87
|
-
network: z.ZodOptional<z.ZodObject<{
|
|
88
|
-
allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
|
-
}, z.core.$strict>>;
|
|
90
137
|
resources: z.ZodOptional<z.ZodObject<{
|
|
91
138
|
cpus: z.ZodOptional<z.ZodNumber>;
|
|
92
139
|
memory: z.ZodOptional<z.ZodString>;
|
|
93
140
|
}, z.core.$strict>>;
|
|
94
141
|
storage: z.ZodOptional<z.ZodString>;
|
|
142
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
144
|
+
}, z.core.$strict>>;
|
|
145
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
146
|
+
ownerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
147
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
96
|
-
|
|
148
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
149
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, z.core.$strict>>;
|
|
151
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
152
|
+
command: z.ZodString;
|
|
153
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
154
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
155
|
+
}, z.core.$strict>>>;
|
|
156
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
157
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
158
|
+
version: z.ZodNumber;
|
|
159
|
+
path: z.ZodString;
|
|
160
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
161
|
+
path: z.ZodString;
|
|
162
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
163
|
+
}, z.core.$strict>]>>>;
|
|
164
|
+
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
165
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
166
|
+
description: z.ZodOptional<z.ZodString>;
|
|
167
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
168
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
169
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
170
|
+
header: z.ZodString;
|
|
171
|
+
format: z.ZodString;
|
|
172
|
+
}, z.core.$strict>>;
|
|
173
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
174
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
+
description: z.ZodOptional<z.ZodString>;
|
|
176
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
177
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
178
|
+
via: z.ZodOptional<z.ZodString>;
|
|
179
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
180
|
+
header: z.ZodString;
|
|
181
|
+
}, z.core.$strict>>;
|
|
182
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
183
|
+
description: z.ZodOptional<z.ZodString>;
|
|
184
|
+
type: z.ZodLiteral<"bearer">;
|
|
185
|
+
url: z.ZodString;
|
|
186
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
187
|
+
via: z.ZodOptional<z.ZodString>;
|
|
188
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
189
|
+
header: z.ZodString;
|
|
190
|
+
}, z.core.$strict>>;
|
|
191
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
192
|
+
description: z.ZodOptional<z.ZodString>;
|
|
193
|
+
type: z.ZodLiteral<"headers">;
|
|
194
|
+
url: z.ZodString;
|
|
195
|
+
}, z.core.$strict>], "type">>>>;
|
|
196
|
+
from: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
environment: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
198
|
+
version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"latest">]>;
|
|
97
199
|
}, z.core.$strict>>;
|
|
98
200
|
}, z.core.$strict>;
|
|
99
|
-
export type
|
|
100
|
-
/**
|
|
101
|
-
|
|
201
|
+
export type PutEnvironmentRequest = z.infer<typeof PutEnvironmentRequestSchema>;
|
|
202
|
+
/**
|
|
203
|
+
* What an Environment runs (its inline manifest, called the recipe before protocol 14), resolved
|
|
204
|
+
* against the Tenant's limits when it was made. It never changes after that.
|
|
205
|
+
*/
|
|
206
|
+
export declare const EnvironmentRecipeSchema: z.ZodObject<{
|
|
207
|
+
image: z.ZodOptional<z.ZodString>;
|
|
208
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
209
|
+
cpus: z.ZodNumber;
|
|
210
|
+
memory: z.ZodString;
|
|
211
|
+
}, z.core.$strict>>;
|
|
212
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
213
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
214
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
215
|
+
}, z.core.$strict>>;
|
|
216
|
+
harness: z.ZodString;
|
|
217
|
+
lifecycle: z.ZodObject<{
|
|
218
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
219
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
220
|
+
}, z.core.$strict>;
|
|
221
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
222
|
+
command: z.ZodString;
|
|
223
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
224
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, z.core.$strict>>>;
|
|
226
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
227
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
228
|
+
version: z.ZodNumber;
|
|
229
|
+
path: z.ZodString;
|
|
230
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
231
|
+
path: z.ZodString;
|
|
232
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
233
|
+
}, z.core.$strict>]>>>;
|
|
234
|
+
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
235
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
236
|
+
description: z.ZodOptional<z.ZodString>;
|
|
237
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
238
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
239
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
240
|
+
header: z.ZodString;
|
|
241
|
+
format: z.ZodString;
|
|
242
|
+
}, z.core.$strict>>;
|
|
243
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
244
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
245
|
+
description: z.ZodOptional<z.ZodString>;
|
|
246
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
247
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
248
|
+
via: z.ZodOptional<z.ZodString>;
|
|
249
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
250
|
+
header: z.ZodString;
|
|
251
|
+
}, z.core.$strict>>;
|
|
252
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
253
|
+
description: z.ZodOptional<z.ZodString>;
|
|
254
|
+
type: z.ZodLiteral<"bearer">;
|
|
255
|
+
url: z.ZodString;
|
|
256
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
257
|
+
via: z.ZodOptional<z.ZodString>;
|
|
258
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
259
|
+
header: z.ZodString;
|
|
260
|
+
}, z.core.$strict>>;
|
|
261
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
+
description: z.ZodOptional<z.ZodString>;
|
|
263
|
+
type: z.ZodLiteral<"headers">;
|
|
264
|
+
url: z.ZodString;
|
|
265
|
+
}, z.core.$strict>], "type">>>>;
|
|
266
|
+
}, z.core.$strict>;
|
|
267
|
+
export type EnvironmentRecipe = z.infer<typeof EnvironmentRecipeSchema>;
|
|
268
|
+
/** A session that names an Environment, as the Environment's view lists it. */
|
|
269
|
+
export declare const EnvironmentSessionSchema: z.ZodObject<{
|
|
102
270
|
id: z.ZodString;
|
|
103
271
|
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
104
272
|
}, z.core.$strict>;
|
|
105
|
-
/** What the Runtime wants of a pod
|
|
106
|
-
export declare const
|
|
107
|
-
export declare const
|
|
108
|
-
export type
|
|
109
|
-
export type
|
|
110
|
-
export declare const
|
|
273
|
+
/** What the Runtime wants of a pod (`desired`) and what it last saw (`observed`). */
|
|
274
|
+
export declare const POD_DESIRED: readonly ["running", "suspended", "deleted"];
|
|
275
|
+
export declare const POD_OBSERVED: readonly ["creating", "running", "suspended", "lost", "failed", "deleting"];
|
|
276
|
+
export type PodDesired = (typeof POD_DESIRED)[number];
|
|
277
|
+
export type PodObserved = (typeof POD_OBSERVED)[number];
|
|
278
|
+
export declare const EnvironmentPodViewSchema: z.ZodObject<{
|
|
111
279
|
desired: z.ZodEnum<{
|
|
112
280
|
deleted: "deleted";
|
|
113
281
|
running: "running";
|
|
@@ -116,7 +284,6 @@ export declare const SandboxPodViewSchema: z.ZodObject<{
|
|
|
116
284
|
observed: z.ZodEnum<{
|
|
117
285
|
creating: "creating";
|
|
118
286
|
deleting: "deleting";
|
|
119
|
-
expired: "expired";
|
|
120
287
|
failed: "failed";
|
|
121
288
|
lost: "lost";
|
|
122
289
|
running: "running";
|
|
@@ -124,25 +291,103 @@ export declare const SandboxPodViewSchema: z.ZodObject<{
|
|
|
124
291
|
}>;
|
|
125
292
|
volumeGeneration: z.ZodNumber;
|
|
126
293
|
hostEpoch: z.ZodNumber;
|
|
127
|
-
expiresAt: z.ZodOptional<z.ZodString>;
|
|
128
294
|
reason: z.ZodOptional<z.ZodString>;
|
|
295
|
+
imageDigest: z.ZodOptional<z.ZodString>;
|
|
129
296
|
}, z.core.$strict>;
|
|
130
|
-
export type
|
|
131
|
-
/**
|
|
132
|
-
|
|
297
|
+
export type EnvironmentPodView = z.infer<typeof EnvironmentPodViewSchema>;
|
|
298
|
+
/**
|
|
299
|
+
* The compute states an Environment reports today: `ready` until a tool first runs in a virtual
|
|
300
|
+
* one, then `creating`, `running` or `stopped`. An open set: clients must accept values they do
|
|
301
|
+
* not know (a later release may add one, such as `cold`).
|
|
302
|
+
*/
|
|
303
|
+
export declare const ENVIRONMENT_STATES: readonly ["ready", "creating", "running", "stopped"];
|
|
304
|
+
/** `PUT` and `GET /v1/environments/{environmentId}`. */
|
|
305
|
+
export declare const EnvironmentViewSchema: z.ZodObject<{
|
|
133
306
|
id: z.ZodString;
|
|
134
307
|
kind: z.ZodEnum<{
|
|
308
|
+
none: "none";
|
|
135
309
|
pod: "pod";
|
|
136
310
|
virtual: "virtual";
|
|
137
311
|
}>;
|
|
138
312
|
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
313
|
+
manifest: z.ZodObject<{
|
|
314
|
+
image: z.ZodOptional<z.ZodString>;
|
|
315
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
316
|
+
cpus: z.ZodNumber;
|
|
317
|
+
memory: z.ZodString;
|
|
318
|
+
}, z.core.$strict>>;
|
|
319
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
320
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
321
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
322
|
+
}, z.core.$strict>>;
|
|
323
|
+
harness: z.ZodString;
|
|
324
|
+
lifecycle: z.ZodObject<{
|
|
325
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
326
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, z.core.$strict>;
|
|
328
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
329
|
+
command: z.ZodString;
|
|
330
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
331
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
332
|
+
}, z.core.$strict>>>;
|
|
333
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
334
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
335
|
+
version: z.ZodNumber;
|
|
336
|
+
path: z.ZodString;
|
|
337
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
338
|
+
path: z.ZodString;
|
|
339
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
340
|
+
}, z.core.$strict>]>>>;
|
|
341
|
+
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
342
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
343
|
+
description: z.ZodOptional<z.ZodString>;
|
|
344
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
345
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
346
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
347
|
+
header: z.ZodString;
|
|
348
|
+
format: z.ZodString;
|
|
349
|
+
}, z.core.$strict>>;
|
|
350
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
351
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
352
|
+
description: z.ZodOptional<z.ZodString>;
|
|
353
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
354
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
355
|
+
via: z.ZodOptional<z.ZodString>;
|
|
356
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
357
|
+
header: z.ZodString;
|
|
358
|
+
}, z.core.$strict>>;
|
|
359
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
360
|
+
description: z.ZodOptional<z.ZodString>;
|
|
361
|
+
type: z.ZodLiteral<"bearer">;
|
|
362
|
+
url: z.ZodString;
|
|
363
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
364
|
+
via: z.ZodOptional<z.ZodString>;
|
|
365
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
366
|
+
header: z.ZodString;
|
|
367
|
+
}, z.core.$strict>>;
|
|
368
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
369
|
+
description: z.ZodOptional<z.ZodString>;
|
|
370
|
+
type: z.ZodLiteral<"headers">;
|
|
371
|
+
url: z.ZodString;
|
|
372
|
+
}, z.core.$strict>], "type">>>>;
|
|
373
|
+
}, z.core.$strict>;
|
|
374
|
+
manifestName: z.ZodOptional<z.ZodString>;
|
|
375
|
+
manifestVersion: z.ZodOptional<z.ZodNumber>;
|
|
376
|
+
manifestHash: z.ZodOptional<z.ZodString>;
|
|
377
|
+
forkedFrom: z.ZodOptional<z.ZodObject<{
|
|
378
|
+
environment: z.ZodString;
|
|
379
|
+
disk: z.ZodNullable<z.ZodNumber>;
|
|
380
|
+
}, z.core.$strict>>;
|
|
381
|
+
slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
382
|
+
name: z.ZodString;
|
|
383
|
+
type: z.ZodString;
|
|
384
|
+
required: z.ZodBoolean;
|
|
385
|
+
set: z.ZodBoolean;
|
|
386
|
+
}, z.core.$strict>>>;
|
|
387
|
+
version: z.ZodNumber;
|
|
388
|
+
appliedVersion: z.ZodNumber;
|
|
389
|
+
ownerUserId: z.ZodNullable<z.ZodString>;
|
|
390
|
+
state: z.ZodString;
|
|
146
391
|
pod: z.ZodOptional<z.ZodObject<{
|
|
147
392
|
desired: z.ZodEnum<{
|
|
148
393
|
deleted: "deleted";
|
|
@@ -152,7 +397,6 @@ export declare const SandboxViewSchema: z.ZodObject<{
|
|
|
152
397
|
observed: z.ZodEnum<{
|
|
153
398
|
creating: "creating";
|
|
154
399
|
deleting: "deleting";
|
|
155
|
-
expired: "expired";
|
|
156
400
|
failed: "failed";
|
|
157
401
|
lost: "lost";
|
|
158
402
|
running: "running";
|
|
@@ -160,8 +404,21 @@ export declare const SandboxViewSchema: z.ZodObject<{
|
|
|
160
404
|
}>;
|
|
161
405
|
volumeGeneration: z.ZodNumber;
|
|
162
406
|
hostEpoch: z.ZodNumber;
|
|
163
|
-
expiresAt: z.ZodOptional<z.ZodString>;
|
|
164
407
|
reason: z.ZodOptional<z.ZodString>;
|
|
408
|
+
imageDigest: z.ZodOptional<z.ZodString>;
|
|
409
|
+
}, z.core.$strict>>;
|
|
410
|
+
lastUsedAt: z.ZodString;
|
|
411
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
412
|
+
latestVersion: z.ZodNullable<z.ZodNumber>;
|
|
413
|
+
operation: z.ZodOptional<z.ZodObject<{
|
|
414
|
+
kind: z.ZodEnum<{
|
|
415
|
+
restore: "restore";
|
|
416
|
+
seed: "seed";
|
|
417
|
+
snapshot: "snapshot";
|
|
418
|
+
}>;
|
|
419
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
420
|
+
startedAt: z.ZodString;
|
|
421
|
+
}, z.core.$strict>>;
|
|
165
422
|
}, z.core.$strict>>;
|
|
166
423
|
sessions: z.ZodArray<z.ZodObject<{
|
|
167
424
|
id: z.ZodString;
|
|
@@ -170,22 +427,136 @@ export declare const SandboxViewSchema: z.ZodObject<{
|
|
|
170
427
|
createdAt: z.ZodString;
|
|
171
428
|
updatedAt: z.ZodString;
|
|
172
429
|
}, z.core.$strict>;
|
|
173
|
-
export type
|
|
174
|
-
|
|
175
|
-
|
|
430
|
+
export type EnvironmentView = z.infer<typeof EnvironmentViewSchema>;
|
|
431
|
+
/** `POST /v1/environments/{id}/snapshot`: a new version of the Environment's disk. */
|
|
432
|
+
export declare const EnvironmentSnapshotSchema: z.ZodObject<{
|
|
433
|
+
environmentId: z.ZodString;
|
|
434
|
+
artifactId: z.ZodString;
|
|
435
|
+
version: z.ZodNumber;
|
|
436
|
+
format: z.ZodString;
|
|
437
|
+
files: z.ZodNumber;
|
|
438
|
+
bytes: z.ZodNumber;
|
|
439
|
+
storedBytes: z.ZodNumber;
|
|
440
|
+
durationMs: z.ZodNumber;
|
|
441
|
+
unchanged: z.ZodBoolean;
|
|
442
|
+
createdAt: z.ZodString;
|
|
443
|
+
}, z.core.$strict>;
|
|
444
|
+
export type EnvironmentSnapshot = z.infer<typeof EnvironmentSnapshotSchema>;
|
|
445
|
+
/** `POST /v1/environments/{id}/restore`: which version of its disk to put back. */
|
|
446
|
+
export declare const RestoreEnvironmentRequestSchema: z.ZodObject<{
|
|
447
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
448
|
+
version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"latest">]>;
|
|
449
|
+
}, z.core.$strict>;
|
|
450
|
+
export type RestoreEnvironmentRequest = z.infer<typeof RestoreEnvironmentRequestSchema>;
|
|
451
|
+
export declare const EnvironmentRestoreSchema: z.ZodObject<{
|
|
452
|
+
environmentId: z.ZodString;
|
|
453
|
+
restored: z.ZodNumber;
|
|
454
|
+
status: z.ZodEnum<{
|
|
455
|
+
done: "done";
|
|
456
|
+
pending: "pending";
|
|
457
|
+
}>;
|
|
458
|
+
volumeGeneration: z.ZodOptional<z.ZodNumber>;
|
|
459
|
+
}, z.core.$strict>;
|
|
460
|
+
export type EnvironmentRestore = z.infer<typeof EnvironmentRestoreSchema>;
|
|
461
|
+
/** `GET /v1/environments/{id}/versions`: its disk versions, newest first. */
|
|
462
|
+
export declare const EnvironmentVersionsSchema: z.ZodObject<{
|
|
463
|
+
environmentId: z.ZodString;
|
|
464
|
+
artifactId: z.ZodNullable<z.ZodString>;
|
|
465
|
+
latest: z.ZodNullable<z.ZodNumber>;
|
|
466
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
467
|
+
version: z.ZodNumber;
|
|
468
|
+
bytes: z.ZodNumber;
|
|
469
|
+
createdAt: z.ZodString;
|
|
470
|
+
}, z.core.$strict>>;
|
|
471
|
+
}, z.core.$strict>;
|
|
472
|
+
export type EnvironmentVersions = z.infer<typeof EnvironmentVersionsSchema>;
|
|
473
|
+
export declare const ListEnvironmentsResponseSchema: z.ZodObject<{
|
|
474
|
+
environments: z.ZodArray<z.ZodObject<{
|
|
176
475
|
id: z.ZodString;
|
|
177
476
|
kind: z.ZodEnum<{
|
|
477
|
+
none: "none";
|
|
178
478
|
pod: "pod";
|
|
179
479
|
virtual: "virtual";
|
|
180
480
|
}>;
|
|
181
481
|
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
482
|
+
manifest: z.ZodObject<{
|
|
483
|
+
image: z.ZodOptional<z.ZodString>;
|
|
484
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
485
|
+
cpus: z.ZodNumber;
|
|
486
|
+
memory: z.ZodString;
|
|
487
|
+
}, z.core.$strict>>;
|
|
488
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
489
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
490
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
491
|
+
}, z.core.$strict>>;
|
|
492
|
+
harness: z.ZodString;
|
|
493
|
+
lifecycle: z.ZodObject<{
|
|
494
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
495
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
496
|
+
}, z.core.$strict>;
|
|
497
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
498
|
+
command: z.ZodString;
|
|
499
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
500
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
501
|
+
}, z.core.$strict>>>;
|
|
502
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
503
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
504
|
+
version: z.ZodNumber;
|
|
505
|
+
path: z.ZodString;
|
|
506
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
507
|
+
path: z.ZodString;
|
|
508
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
509
|
+
}, z.core.$strict>]>>>;
|
|
510
|
+
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
511
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
512
|
+
description: z.ZodOptional<z.ZodString>;
|
|
513
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
514
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
515
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
516
|
+
header: z.ZodString;
|
|
517
|
+
format: z.ZodString;
|
|
518
|
+
}, z.core.$strict>>;
|
|
519
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
520
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
521
|
+
description: z.ZodOptional<z.ZodString>;
|
|
522
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
523
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
524
|
+
via: z.ZodOptional<z.ZodString>;
|
|
525
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
526
|
+
header: z.ZodString;
|
|
527
|
+
}, z.core.$strict>>;
|
|
528
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
529
|
+
description: z.ZodOptional<z.ZodString>;
|
|
530
|
+
type: z.ZodLiteral<"bearer">;
|
|
531
|
+
url: z.ZodString;
|
|
532
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
533
|
+
via: z.ZodOptional<z.ZodString>;
|
|
534
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
535
|
+
header: z.ZodString;
|
|
536
|
+
}, z.core.$strict>>;
|
|
537
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
538
|
+
description: z.ZodOptional<z.ZodString>;
|
|
539
|
+
type: z.ZodLiteral<"headers">;
|
|
540
|
+
url: z.ZodString;
|
|
541
|
+
}, z.core.$strict>], "type">>>>;
|
|
542
|
+
}, z.core.$strict>;
|
|
543
|
+
manifestName: z.ZodOptional<z.ZodString>;
|
|
544
|
+
manifestVersion: z.ZodOptional<z.ZodNumber>;
|
|
545
|
+
manifestHash: z.ZodOptional<z.ZodString>;
|
|
546
|
+
forkedFrom: z.ZodOptional<z.ZodObject<{
|
|
547
|
+
environment: z.ZodString;
|
|
548
|
+
disk: z.ZodNullable<z.ZodNumber>;
|
|
549
|
+
}, z.core.$strict>>;
|
|
550
|
+
slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
551
|
+
name: z.ZodString;
|
|
552
|
+
type: z.ZodString;
|
|
553
|
+
required: z.ZodBoolean;
|
|
554
|
+
set: z.ZodBoolean;
|
|
555
|
+
}, z.core.$strict>>>;
|
|
556
|
+
version: z.ZodNumber;
|
|
557
|
+
appliedVersion: z.ZodNumber;
|
|
558
|
+
ownerUserId: z.ZodNullable<z.ZodString>;
|
|
559
|
+
state: z.ZodString;
|
|
189
560
|
pod: z.ZodOptional<z.ZodObject<{
|
|
190
561
|
desired: z.ZodEnum<{
|
|
191
562
|
deleted: "deleted";
|
|
@@ -195,7 +566,6 @@ export declare const ListSandboxesResponseSchema: z.ZodObject<{
|
|
|
195
566
|
observed: z.ZodEnum<{
|
|
196
567
|
creating: "creating";
|
|
197
568
|
deleting: "deleting";
|
|
198
|
-
expired: "expired";
|
|
199
569
|
failed: "failed";
|
|
200
570
|
lost: "lost";
|
|
201
571
|
running: "running";
|
|
@@ -203,8 +573,21 @@ export declare const ListSandboxesResponseSchema: z.ZodObject<{
|
|
|
203
573
|
}>;
|
|
204
574
|
volumeGeneration: z.ZodNumber;
|
|
205
575
|
hostEpoch: z.ZodNumber;
|
|
206
|
-
expiresAt: z.ZodOptional<z.ZodString>;
|
|
207
576
|
reason: z.ZodOptional<z.ZodString>;
|
|
577
|
+
imageDigest: z.ZodOptional<z.ZodString>;
|
|
578
|
+
}, z.core.$strict>>;
|
|
579
|
+
lastUsedAt: z.ZodString;
|
|
580
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
581
|
+
latestVersion: z.ZodNullable<z.ZodNumber>;
|
|
582
|
+
operation: z.ZodOptional<z.ZodObject<{
|
|
583
|
+
kind: z.ZodEnum<{
|
|
584
|
+
restore: "restore";
|
|
585
|
+
seed: "seed";
|
|
586
|
+
snapshot: "snapshot";
|
|
587
|
+
}>;
|
|
588
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
589
|
+
startedAt: z.ZodString;
|
|
590
|
+
}, z.core.$strict>>;
|
|
208
591
|
}, z.core.$strict>>;
|
|
209
592
|
sessions: z.ZodArray<z.ZodObject<{
|
|
210
593
|
id: z.ZodString;
|
|
@@ -214,182 +597,227 @@ export declare const ListSandboxesResponseSchema: z.ZodObject<{
|
|
|
214
597
|
updatedAt: z.ZodString;
|
|
215
598
|
}, z.core.$strict>>;
|
|
216
599
|
}, z.core.$strict>;
|
|
217
|
-
export type
|
|
218
|
-
export declare const
|
|
600
|
+
export type ListEnvironmentsResponse = z.infer<typeof ListEnvironmentsResponseSchema>;
|
|
601
|
+
export declare const DeleteEnvironmentResponseSchema: z.ZodObject<{
|
|
219
602
|
id: z.ZodString;
|
|
220
603
|
deleted: z.ZodBoolean;
|
|
221
604
|
}, z.core.$strict>;
|
|
222
|
-
export type
|
|
223
|
-
/**
|
|
224
|
-
export declare const
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
export
|
|
229
|
-
|
|
605
|
+
export type DeleteEnvironmentResponse = z.infer<typeof DeleteEnvironmentResponseSchema>;
|
|
606
|
+
/** A turn that was running on an Environment when one of its connections opened (D67). */
|
|
607
|
+
export declare const EgressRunningTurnSchema: z.ZodObject<{
|
|
608
|
+
sessionId: z.ZodString;
|
|
609
|
+
turnId: z.ZodString;
|
|
610
|
+
}, z.core.$strict>;
|
|
611
|
+
export type EgressRunningTurn = z.infer<typeof EgressRunningTurnSchema>;
|
|
612
|
+
/**
|
|
613
|
+
* One connection a pod Environment opened through egress-gate (track R7, Q6): written when it
|
|
614
|
+
* closes, or at once when the gate refused it, to the Environment's own stream as
|
|
615
|
+
* `environment.egress` (D67). The connection is the Environment's: its egress token names the pod,
|
|
616
|
+
* and the Environment's sessions run turns in parallel (D66). `runningTurns` lists the turns
|
|
617
|
+
* active on it as the connection opened, at most 16, as context and never as the owner.
|
|
618
|
+
*
|
|
619
|
+
* `startedAt` is the gate's clock at CONNECT and `durationMs` runs from there to the close, so
|
|
620
|
+
* the span is the gate's own measurement. `bytesUp` is what the sandbox sent, `bytesDown` what it
|
|
621
|
+
* got. `mode: "credential"` is a host an `environment_secret` is bound to (R2c): the gate read
|
|
622
|
+
* each request (`requests`) and set a credential on it (`credentialIds`, ids only). It never
|
|
623
|
+
* carries a header value, a URL path or a body.
|
|
624
|
+
*/
|
|
625
|
+
export declare const EgressConnectionPayloadSchema: z.ZodObject<{
|
|
626
|
+
environmentId: z.ZodString;
|
|
627
|
+
host: z.ZodString;
|
|
628
|
+
port: z.ZodNumber;
|
|
629
|
+
outcome: z.ZodEnum<{
|
|
630
|
+
allowed: "allowed";
|
|
631
|
+
refused: "refused";
|
|
632
|
+
}>;
|
|
633
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
634
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
635
|
+
mode: z.ZodEnum<{
|
|
636
|
+
credential: "credential";
|
|
637
|
+
tunnel: "tunnel";
|
|
638
|
+
}>;
|
|
639
|
+
credentialBound: z.ZodBoolean;
|
|
640
|
+
credentialIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
641
|
+
requests: z.ZodOptional<z.ZodNumber>;
|
|
642
|
+
bytesUp: z.ZodNumber;
|
|
643
|
+
bytesDown: z.ZodNumber;
|
|
644
|
+
durationMs: z.ZodNumber;
|
|
645
|
+
startedAt: z.ZodString;
|
|
646
|
+
runningTurns: z.ZodArray<z.ZodObject<{
|
|
647
|
+
sessionId: z.ZodString;
|
|
648
|
+
turnId: z.ZodString;
|
|
649
|
+
}, z.core.$strict>>;
|
|
650
|
+
}, z.core.$loose>;
|
|
651
|
+
/** The schema id of an Environment's lifecycle events (its stream in the record). */
|
|
652
|
+
export declare const ENVIRONMENT_EVENT_SCHEMA = "nylorun.environment-event/1";
|
|
653
|
+
export declare const ENVIRONMENT_EVENT_TYPES: readonly ["environment.created", "environment.attached", "environment.detached", "environment.deleted", "environment.running", "environment.suspended", "environment.relaunched", "environment.lost", "environment.reset", "environment.failed", "environment.forked", "environment.egress"];
|
|
654
|
+
export type EnvironmentEventType = (typeof ENVIRONMENT_EVENT_TYPES)[number];
|
|
655
|
+
/** The payload of each Environment lifecycle event. */
|
|
656
|
+
export declare const ENVIRONMENT_EVENT_PAYLOADS: {
|
|
657
|
+
readonly "environment.created": z.ZodObject<{
|
|
230
658
|
kind: z.ZodEnum<{
|
|
659
|
+
none: "none";
|
|
231
660
|
pod: "pod";
|
|
232
661
|
virtual: "virtual";
|
|
233
662
|
}>;
|
|
234
663
|
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
664
|
+
manifest: z.ZodOptional<z.ZodObject<{
|
|
665
|
+
name: z.ZodString;
|
|
666
|
+
version: z.ZodNumber;
|
|
667
|
+
}, z.core.$strict>>;
|
|
668
|
+
forkedFrom: z.ZodOptional<z.ZodObject<{
|
|
669
|
+
environment: z.ZodString;
|
|
670
|
+
disk: z.ZodNullable<z.ZodNumber>;
|
|
671
|
+
}, z.core.$strict>>;
|
|
235
672
|
}, z.core.$loose>;
|
|
236
|
-
readonly "
|
|
673
|
+
readonly "environment.attached": z.ZodObject<{
|
|
237
674
|
sessionId: z.ZodString;
|
|
238
675
|
}, z.core.$loose>;
|
|
239
|
-
readonly "
|
|
676
|
+
readonly "environment.detached": z.ZodObject<{
|
|
240
677
|
sessionId: z.ZodString;
|
|
241
678
|
reason: z.ZodEnum<{
|
|
242
679
|
reset: "reset";
|
|
243
680
|
}>;
|
|
244
681
|
}, z.core.$loose>;
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
682
|
+
/** Deleted by a `DELETE`, or by the sweep once `lifecycle.deleteAfter` passed (`reason`). */
|
|
683
|
+
readonly "environment.deleted": z.ZodObject<{
|
|
684
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
685
|
+
delete: "delete";
|
|
686
|
+
deleteAfter: "deleteAfter";
|
|
687
|
+
}>>;
|
|
688
|
+
}, z.core.$loose>;
|
|
689
|
+
/** A pod joined and serves the Environment. */
|
|
690
|
+
readonly "environment.running": z.ZodObject<{
|
|
248
691
|
hostEpoch: z.ZodNumber;
|
|
249
692
|
}, z.core.$loose>;
|
|
250
693
|
/** Stopped (`POST .../stop`, or idle): the volume is kept; the next turn starts it again. */
|
|
251
|
-
readonly "
|
|
694
|
+
readonly "environment.suspended": z.ZodObject<{
|
|
252
695
|
reason: z.ZodEnum<{
|
|
253
696
|
idle: "idle";
|
|
254
697
|
stop: "stop";
|
|
255
698
|
}>;
|
|
256
699
|
}, z.core.$loose>;
|
|
257
|
-
/** Its TTL passed: turns are refused until a `PUT` sets a longer TTL. */
|
|
258
|
-
readonly "sandbox.expired": z.ZodObject<{
|
|
259
|
-
onExpiry: z.ZodEnum<{
|
|
260
|
-
delete: "delete";
|
|
261
|
-
retain: "retain";
|
|
262
|
-
}>;
|
|
263
|
-
}, z.core.$loose>;
|
|
264
700
|
/** Its pod was replaced (same volume): the old pod's host token no longer works. */
|
|
265
|
-
readonly "
|
|
701
|
+
readonly "environment.relaunched": z.ZodObject<{
|
|
266
702
|
hostEpoch: z.ZodNumber;
|
|
267
703
|
}, z.core.$loose>;
|
|
268
704
|
/** Its volume or node is gone: turns are refused until a reset. */
|
|
269
|
-
readonly "
|
|
705
|
+
readonly "environment.lost": z.ZodObject<{
|
|
270
706
|
reason: z.ZodString;
|
|
271
707
|
}, z.core.$loose>;
|
|
272
708
|
/** Reset: a new pod on a new, empty volume. */
|
|
273
|
-
readonly "
|
|
709
|
+
readonly "environment.reset": z.ZodObject<{
|
|
274
710
|
volumeGeneration: z.ZodNumber;
|
|
275
711
|
}, z.core.$loose>;
|
|
276
712
|
/** The pod did not become ready. */
|
|
277
|
-
readonly "
|
|
713
|
+
readonly "environment.failed": z.ZodObject<{
|
|
278
714
|
reason: z.ZodString;
|
|
279
715
|
}, z.core.$loose>;
|
|
716
|
+
/** Forked into Environment `to`: its disk started from version `disk`, `secrets` were copied. */
|
|
717
|
+
readonly "environment.forked": z.ZodObject<{
|
|
718
|
+
to: z.ZodString;
|
|
719
|
+
disk: z.ZodNullable<z.ZodNumber>;
|
|
720
|
+
manifest: z.ZodOptional<z.ZodObject<{
|
|
721
|
+
name: z.ZodString;
|
|
722
|
+
version: z.ZodNumber;
|
|
723
|
+
}, z.core.$strict>>;
|
|
724
|
+
secrets: z.ZodNumber;
|
|
725
|
+
}, z.core.$loose>;
|
|
726
|
+
/** A connection through egress-gate, with the turns running as it opened (D67). */
|
|
727
|
+
readonly "environment.egress": z.ZodObject<{
|
|
728
|
+
environmentId: z.ZodString;
|
|
729
|
+
host: z.ZodString;
|
|
730
|
+
port: z.ZodNumber;
|
|
731
|
+
outcome: z.ZodEnum<{
|
|
732
|
+
allowed: "allowed";
|
|
733
|
+
refused: "refused";
|
|
734
|
+
}>;
|
|
735
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
736
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
737
|
+
mode: z.ZodEnum<{
|
|
738
|
+
credential: "credential";
|
|
739
|
+
tunnel: "tunnel";
|
|
740
|
+
}>;
|
|
741
|
+
credentialBound: z.ZodBoolean;
|
|
742
|
+
credentialIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
743
|
+
requests: z.ZodOptional<z.ZodNumber>;
|
|
744
|
+
bytesUp: z.ZodNumber;
|
|
745
|
+
bytesDown: z.ZodNumber;
|
|
746
|
+
durationMs: z.ZodNumber;
|
|
747
|
+
startedAt: z.ZodString;
|
|
748
|
+
runningTurns: z.ZodArray<z.ZodObject<{
|
|
749
|
+
sessionId: z.ZodString;
|
|
750
|
+
turnId: z.ZodString;
|
|
751
|
+
}, z.core.$strict>>;
|
|
752
|
+
}, z.core.$loose>;
|
|
280
753
|
};
|
|
281
|
-
export type
|
|
282
|
-
/** One lifecycle event on
|
|
283
|
-
export declare const
|
|
284
|
-
schema: z.ZodLiteral<"nylorun.
|
|
754
|
+
export type EnvironmentEventPayload<T extends EnvironmentEventType> = z.infer<(typeof ENVIRONMENT_EVENT_PAYLOADS)[T]>;
|
|
755
|
+
/** One lifecycle event on an Environment's stream, numbered from 0. */
|
|
756
|
+
export declare const EnvironmentEventSchema: z.ZodObject<{
|
|
757
|
+
schema: z.ZodLiteral<"nylorun.environment-event/1">;
|
|
285
758
|
eventId: z.ZodString;
|
|
286
759
|
tenantId: z.ZodString;
|
|
287
|
-
|
|
760
|
+
environmentId: z.ZodString;
|
|
288
761
|
seq: z.ZodNumber;
|
|
289
762
|
time: z.ZodString;
|
|
290
763
|
type: z.ZodEnum<{
|
|
291
|
-
"
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
"
|
|
295
|
-
"
|
|
296
|
-
"
|
|
297
|
-
"
|
|
298
|
-
"
|
|
299
|
-
"
|
|
300
|
-
"
|
|
301
|
-
"
|
|
764
|
+
"environment.attached": "environment.attached";
|
|
765
|
+
"environment.created": "environment.created";
|
|
766
|
+
"environment.deleted": "environment.deleted";
|
|
767
|
+
"environment.detached": "environment.detached";
|
|
768
|
+
"environment.egress": "environment.egress";
|
|
769
|
+
"environment.failed": "environment.failed";
|
|
770
|
+
"environment.forked": "environment.forked";
|
|
771
|
+
"environment.lost": "environment.lost";
|
|
772
|
+
"environment.relaunched": "environment.relaunched";
|
|
773
|
+
"environment.reset": "environment.reset";
|
|
774
|
+
"environment.running": "environment.running";
|
|
775
|
+
"environment.suspended": "environment.suspended";
|
|
302
776
|
}>;
|
|
303
777
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
304
778
|
}, z.core.$strict>;
|
|
305
|
-
export type
|
|
306
|
-
export declare const
|
|
779
|
+
export type EnvironmentEvent = z.infer<typeof EnvironmentEventSchema>;
|
|
780
|
+
export declare const ListEnvironmentEventsResponseSchema: z.ZodObject<{
|
|
307
781
|
events: z.ZodArray<z.ZodObject<{
|
|
308
|
-
schema: z.ZodLiteral<"nylorun.
|
|
782
|
+
schema: z.ZodLiteral<"nylorun.environment-event/1">;
|
|
309
783
|
eventId: z.ZodString;
|
|
310
784
|
tenantId: z.ZodString;
|
|
311
|
-
|
|
785
|
+
environmentId: z.ZodString;
|
|
312
786
|
seq: z.ZodNumber;
|
|
313
787
|
time: z.ZodString;
|
|
314
788
|
type: z.ZodEnum<{
|
|
315
|
-
"
|
|
316
|
-
"
|
|
317
|
-
"
|
|
318
|
-
"
|
|
319
|
-
"
|
|
320
|
-
"
|
|
321
|
-
"
|
|
322
|
-
"
|
|
323
|
-
"
|
|
324
|
-
"
|
|
325
|
-
"
|
|
789
|
+
"environment.attached": "environment.attached";
|
|
790
|
+
"environment.created": "environment.created";
|
|
791
|
+
"environment.deleted": "environment.deleted";
|
|
792
|
+
"environment.detached": "environment.detached";
|
|
793
|
+
"environment.egress": "environment.egress";
|
|
794
|
+
"environment.failed": "environment.failed";
|
|
795
|
+
"environment.forked": "environment.forked";
|
|
796
|
+
"environment.lost": "environment.lost";
|
|
797
|
+
"environment.relaunched": "environment.relaunched";
|
|
798
|
+
"environment.reset": "environment.reset";
|
|
799
|
+
"environment.running": "environment.running";
|
|
800
|
+
"environment.suspended": "environment.suspended";
|
|
326
801
|
}>;
|
|
327
802
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
328
803
|
}, z.core.$strict>>;
|
|
329
804
|
}, z.core.$strict>;
|
|
330
|
-
/**
|
|
331
|
-
* `PutSessionRequest.sandbox`: `false` for none, `{ id }` to attach a sandbox resource (Host
|
|
332
|
-
* feature `sandboxes`), `{ session }` to share another session's sandbox, or an inline sandbox.
|
|
333
|
-
* Omitted means the Tenant's default.
|
|
334
|
-
*/
|
|
335
|
-
export declare const SandboxRequestSchema: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
336
|
-
id: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
337
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
338
|
-
session: z.ZodString;
|
|
339
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
340
|
-
image: z.ZodOptional<z.ZodString>;
|
|
341
|
-
network: z.ZodOptional<z.ZodObject<{
|
|
342
|
-
allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
343
|
-
}, z.core.$strict>>;
|
|
344
|
-
resources: z.ZodOptional<z.ZodObject<{
|
|
345
|
-
cpus: z.ZodOptional<z.ZodNumber>;
|
|
346
|
-
memory: z.ZodOptional<z.ZodString>;
|
|
347
|
-
}, z.core.$strict>>;
|
|
348
|
-
}, z.core.$strict>]>;
|
|
349
|
-
export type SandboxRequest = z.infer<typeof SandboxRequestSchema>;
|
|
350
805
|
export declare const PutSessionRequestSchema: z.ZodObject<{
|
|
351
806
|
requestId: z.ZodString;
|
|
352
807
|
agentId: z.ZodString;
|
|
353
808
|
ownerUserId: z.ZodString;
|
|
354
809
|
info: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
355
|
-
|
|
356
|
-
credentialSelections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
357
|
-
serverName: z.ZodString;
|
|
358
|
-
credentialId: z.ZodString;
|
|
359
|
-
}, z.core.$strict>>>;
|
|
360
|
-
sandbox: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
361
|
-
id: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
362
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
363
|
-
session: z.ZodString;
|
|
364
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
365
|
-
image: z.ZodOptional<z.ZodString>;
|
|
366
|
-
network: z.ZodOptional<z.ZodObject<{
|
|
367
|
-
allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
368
|
-
}, z.core.$strict>>;
|
|
369
|
-
resources: z.ZodOptional<z.ZodObject<{
|
|
370
|
-
cpus: z.ZodOptional<z.ZodNumber>;
|
|
371
|
-
memory: z.ZodOptional<z.ZodString>;
|
|
372
|
-
}, z.core.$strict>>;
|
|
373
|
-
}, z.core.$strict>]>>;
|
|
810
|
+
environment: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
374
811
|
}, z.core.$strict>;
|
|
812
|
+
export type PutSessionRequest = z.infer<typeof PutSessionRequestSchema>;
|
|
375
813
|
/** The hosts a harness can run on (blueprint D38). */
|
|
376
|
-
export declare const
|
|
377
|
-
export type
|
|
814
|
+
export declare const PLACEMENT_HOSTS: readonly ["harness-container", "sandbox"];
|
|
815
|
+
export type PlacementHost = (typeof PLACEMENT_HOSTS)[number];
|
|
378
816
|
/**
|
|
379
|
-
* A Tenant's
|
|
380
|
-
*
|
|
817
|
+
* A Tenant's Environment settings (Tenant setting `environments.config`): the limits every
|
|
818
|
+
* Environment's recipe must fit, the pods' stop grace, and where harnesses may run.
|
|
381
819
|
*/
|
|
382
|
-
export declare const
|
|
383
|
-
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"virtual">, z.ZodObject<{
|
|
384
|
-
image: z.ZodOptional<z.ZodString>;
|
|
385
|
-
network: z.ZodOptional<z.ZodObject<{
|
|
386
|
-
allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
387
|
-
}, z.core.$strict>>;
|
|
388
|
-
resources: z.ZodOptional<z.ZodObject<{
|
|
389
|
-
cpus: z.ZodOptional<z.ZodNumber>;
|
|
390
|
-
memory: z.ZodOptional<z.ZodString>;
|
|
391
|
-
}, z.core.$strict>>;
|
|
392
|
-
}, z.core.$strict>]>>;
|
|
820
|
+
export declare const TenantEnvironmentsConfigSchema: z.ZodObject<{
|
|
393
821
|
limits: z.ZodOptional<z.ZodObject<{
|
|
394
822
|
network: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
395
823
|
resources: z.ZodOptional<z.ZodObject<{
|
|
@@ -401,14 +829,9 @@ export declare const TenantSandboxConfigSchema: z.ZodObject<{
|
|
|
401
829
|
memory: z.ZodOptional<z.ZodString>;
|
|
402
830
|
}, z.core.$strict>>;
|
|
403
831
|
idle: z.ZodOptional<z.ZodString>;
|
|
404
|
-
|
|
405
|
-
ttl: z.ZodOptional<z.ZodString>;
|
|
832
|
+
environments: z.ZodOptional<z.ZodNumber>;
|
|
406
833
|
}, z.core.$strict>>;
|
|
407
834
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
408
|
-
onExpiry: z.ZodOptional<z.ZodEnum<{
|
|
409
|
-
delete: "delete";
|
|
410
|
-
retain: "retain";
|
|
411
|
-
}>>;
|
|
412
835
|
stopGrace: z.ZodOptional<z.ZodString>;
|
|
413
836
|
}, z.core.$strict>>;
|
|
414
837
|
placement: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -418,19 +841,9 @@ export declare const TenantSandboxConfigSchema: z.ZodObject<{
|
|
|
418
841
|
}>>;
|
|
419
842
|
}, z.core.$strict>>>;
|
|
420
843
|
}, z.core.$strict>;
|
|
421
|
-
export type
|
|
422
|
-
/** `PUT /v1/tenant/sandbox`: replaces the Tenant's
|
|
423
|
-
export declare const
|
|
424
|
-
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"virtual">, z.ZodObject<{
|
|
425
|
-
image: z.ZodOptional<z.ZodString>;
|
|
426
|
-
network: z.ZodOptional<z.ZodObject<{
|
|
427
|
-
allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
428
|
-
}, z.core.$strict>>;
|
|
429
|
-
resources: z.ZodOptional<z.ZodObject<{
|
|
430
|
-
cpus: z.ZodOptional<z.ZodNumber>;
|
|
431
|
-
memory: z.ZodOptional<z.ZodString>;
|
|
432
|
-
}, z.core.$strict>>;
|
|
433
|
-
}, z.core.$strict>]>>;
|
|
844
|
+
export type TenantEnvironmentsConfig = z.infer<typeof TenantEnvironmentsConfigSchema>;
|
|
845
|
+
/** `PUT /v1/tenant/sandbox`: replaces the Tenant's Environment settings (`environments.config`). */
|
|
846
|
+
export declare const PutTenantEnvironmentsRequestSchema: z.ZodObject<{
|
|
434
847
|
limits: z.ZodOptional<z.ZodObject<{
|
|
435
848
|
network: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
436
849
|
resources: z.ZodOptional<z.ZodObject<{
|
|
@@ -442,14 +855,9 @@ export declare const PutTenantSandboxRequestSchema: z.ZodObject<{
|
|
|
442
855
|
memory: z.ZodOptional<z.ZodString>;
|
|
443
856
|
}, z.core.$strict>>;
|
|
444
857
|
idle: z.ZodOptional<z.ZodString>;
|
|
445
|
-
|
|
446
|
-
ttl: z.ZodOptional<z.ZodString>;
|
|
858
|
+
environments: z.ZodOptional<z.ZodNumber>;
|
|
447
859
|
}, z.core.$strict>>;
|
|
448
860
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
449
|
-
onExpiry: z.ZodOptional<z.ZodEnum<{
|
|
450
|
-
delete: "delete";
|
|
451
|
-
retain: "retain";
|
|
452
|
-
}>>;
|
|
453
861
|
stopGrace: z.ZodOptional<z.ZodString>;
|
|
454
862
|
}, z.core.$strict>>;
|
|
455
863
|
placement: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -460,22 +868,7 @@ export declare const PutTenantSandboxRequestSchema: z.ZodObject<{
|
|
|
460
868
|
}, z.core.$strict>>>;
|
|
461
869
|
requestId: z.ZodOptional<z.ZodString>;
|
|
462
870
|
}, z.core.$strict>;
|
|
463
|
-
export type
|
|
464
|
-
export type PutSessionRequest = z.infer<typeof PutSessionRequestSchema>;
|
|
465
|
-
/** The owner of every installation vault (`scope: "installation"`); a reserved subject. */
|
|
466
|
-
export declare const INSTALLATION_OWNER = "installation";
|
|
467
|
-
export declare const CreateVaultRequestSchema: z.ZodObject<{
|
|
468
|
-
requestId: z.ZodString;
|
|
469
|
-
idempotencyKey: z.ZodString;
|
|
470
|
-
name: z.ZodString;
|
|
471
|
-
scope: z.ZodOptional<z.ZodEnum<{
|
|
472
|
-
installation: "installation";
|
|
473
|
-
user: "user";
|
|
474
|
-
}>>;
|
|
475
|
-
ownerUserId: z.ZodOptional<z.ZodString>;
|
|
476
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
477
|
-
}, z.core.$strict>;
|
|
478
|
-
export type CreateVaultRequest = z.infer<typeof CreateVaultRequestSchema>;
|
|
871
|
+
export type PutTenantEnvironmentsRequest = z.infer<typeof PutTenantEnvironmentsRequestSchema>;
|
|
479
872
|
/** An RFC 9110 field name. */
|
|
480
873
|
export declare const HEADER_NAME_PATTERN: RegExp;
|
|
481
874
|
/** A loopback host as a URL's `hostname` names it: plain `http` reaches only these. */
|
|
@@ -524,86 +917,854 @@ export declare const EnvironmentSecretInjectSchema: z.ZodObject<{
|
|
|
524
917
|
format: z.ZodString;
|
|
525
918
|
}, z.core.$strict>;
|
|
526
919
|
export type EnvironmentSecretInject = z.infer<typeof EnvironmentSecretInjectSchema>;
|
|
920
|
+
/** The name of a credential for a tool (`bearer` or `headers`): a label of 1–64 characters. */
|
|
921
|
+
export declare const TOOL_SECRET_NAME_PATTERN: RegExp;
|
|
527
922
|
/**
|
|
528
|
-
*
|
|
529
|
-
*
|
|
530
|
-
* the
|
|
923
|
+
* `PUT /v1/environments/{environmentId}/secrets/{name}` (D56): creates or replaces one credential
|
|
924
|
+
* in the Environment's vault. For `environment_secret` and `environment_variable` the name is
|
|
925
|
+
* the variable's name (a POSIX name, not reserved); for `bearer` and `headers` it is a label.
|
|
926
|
+
* The same name and type keeps the credential and re-seals its value and binding; another type
|
|
927
|
+
* replaces it. Values are write-only: no route reads them back. Two `environment_secret`
|
|
928
|
+
* credentials bound to one host, or two `bearer`/`headers` credentials for one URL, are
|
|
929
|
+
* `409 credential_conflict`.
|
|
531
930
|
*/
|
|
532
|
-
export declare const
|
|
533
|
-
requestId: z.ZodString
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
931
|
+
export declare const PutEnvironmentSecretRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
932
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
933
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
934
|
+
value: z.ZodString;
|
|
935
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
936
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
937
|
+
header: z.ZodString;
|
|
938
|
+
format: z.ZodString;
|
|
939
|
+
}, z.core.$strict>>;
|
|
940
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
941
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
942
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
943
|
+
value: z.ZodString;
|
|
944
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
945
|
+
via: z.ZodOptional<z.ZodString>;
|
|
946
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
947
|
+
header: z.ZodString;
|
|
948
|
+
}, z.core.$strict>>;
|
|
949
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
950
|
+
type: z.ZodLiteral<"bearer">;
|
|
951
|
+
url: z.ZodString;
|
|
952
|
+
value: z.ZodString;
|
|
953
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
954
|
+
via: z.ZodOptional<z.ZodString>;
|
|
955
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
956
|
+
header: z.ZodString;
|
|
957
|
+
}, z.core.$strict>>;
|
|
958
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
959
|
+
type: z.ZodLiteral<"headers">;
|
|
960
|
+
url: z.ZodString;
|
|
961
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
962
|
+
}, z.core.$strict>], "type">;
|
|
963
|
+
export type PutEnvironmentSecretRequest = z.infer<typeof PutEnvironmentSecretRequestSchema>;
|
|
964
|
+
/**
|
|
965
|
+
* A secret write on an Environment whose manifest declares the secret's slot (D64): only the
|
|
966
|
+
* value, `value` (or `headers` for a `headers` slot). Its type and binding come from the slot.
|
|
967
|
+
*/
|
|
968
|
+
export declare const PutEnvironmentSecretValueRequestSchema: z.ZodObject<{
|
|
969
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
970
|
+
value: z.ZodOptional<z.ZodString>;
|
|
971
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
972
|
+
}, z.core.$strict>;
|
|
973
|
+
export type PutEnvironmentSecretValueRequest = z.infer<typeof PutEnvironmentSecretValueRequestSchema>;
|
|
974
|
+
/** Whether `name` may name a secret of `type` (`PUT .../secrets/{name}`); a message when not. */
|
|
975
|
+
export declare function environmentSecretNameError(type: PutEnvironmentSecretRequest["type"], name: string): string | undefined;
|
|
976
|
+
/**
|
|
977
|
+
* One secret an Environment of a kind needs (D64): its type and binding, never its value. The
|
|
978
|
+
* value is written into each Environment's vault (`PUT /v1/environments/{id}/secrets/{name}`
|
|
979
|
+
* with `{ value }`, or `{ headers }` for `headers`), and the binding comes from here.
|
|
980
|
+
*/
|
|
981
|
+
export declare const EnvironmentSecretSlotSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
982
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
983
|
+
description: z.ZodOptional<z.ZodString>;
|
|
984
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
985
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
986
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
987
|
+
header: z.ZodString;
|
|
988
|
+
format: z.ZodString;
|
|
989
|
+
}, z.core.$strict>>;
|
|
990
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
991
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
992
|
+
description: z.ZodOptional<z.ZodString>;
|
|
993
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
994
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
995
|
+
via: z.ZodOptional<z.ZodString>;
|
|
996
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
997
|
+
header: z.ZodString;
|
|
998
|
+
}, z.core.$strict>>;
|
|
999
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1000
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1001
|
+
type: z.ZodLiteral<"bearer">;
|
|
1002
|
+
url: z.ZodString;
|
|
1003
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1004
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1005
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1006
|
+
header: z.ZodString;
|
|
1007
|
+
}, z.core.$strict>>;
|
|
1008
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1009
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1010
|
+
type: z.ZodLiteral<"headers">;
|
|
1011
|
+
url: z.ZodString;
|
|
1012
|
+
}, z.core.$strict>], "type">;
|
|
1013
|
+
export type EnvironmentSecretSlot = z.infer<typeof EnvironmentSecretSlotSchema>;
|
|
1014
|
+
/** The most secret slots one manifest declares. */
|
|
1015
|
+
export declare const ENVIRONMENT_SECRET_SLOTS_MAX = 64;
|
|
1016
|
+
export declare const EnvironmentSecretSlotsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1017
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1018
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1019
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
1020
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
1021
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
1022
|
+
header: z.ZodString;
|
|
1023
|
+
format: z.ZodString;
|
|
1024
|
+
}, z.core.$strict>>;
|
|
1025
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1026
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1027
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1028
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
1029
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1030
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1031
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1032
|
+
header: z.ZodString;
|
|
1033
|
+
}, z.core.$strict>>;
|
|
1034
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1035
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1036
|
+
type: z.ZodLiteral<"bearer">;
|
|
1037
|
+
url: z.ZodString;
|
|
1038
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1039
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1040
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1041
|
+
header: z.ZodString;
|
|
1042
|
+
}, z.core.$strict>>;
|
|
1043
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1044
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
type: z.ZodLiteral<"headers">;
|
|
1046
|
+
url: z.ZodString;
|
|
1047
|
+
}, z.core.$strict>], "type">>;
|
|
1048
|
+
export type EnvironmentSecretSlots = z.infer<typeof EnvironmentSecretSlotsSchema>;
|
|
1049
|
+
/** The schema version of an environment manifest; the Runtime refuses one it does not know. */
|
|
1050
|
+
export declare const ENVIRONMENT_MANIFEST_SCHEMA_VERSION = 1;
|
|
1051
|
+
/**
|
|
1052
|
+
* An environment manifest (protocol 14, D63): a named, versioned definition of a kind of
|
|
1053
|
+
* Environment, saved like an agent (`PUT /v1/environment-manifests/{name}`). It holds what every
|
|
1054
|
+
* Environment made from it shares; an Environment's id, labels, owner guard, disk and secret
|
|
1055
|
+
* values are its own. Written as a JSON file with `$schema`, which clients drop before saving.
|
|
1056
|
+
*/
|
|
1057
|
+
export declare const EnvironmentManifestSchema: z.ZodObject<{
|
|
1058
|
+
manifestSchemaVersion: z.ZodLiteral<1>;
|
|
1059
|
+
name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1060
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1061
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
1062
|
+
none: "none";
|
|
1063
|
+
pod: "pod";
|
|
1064
|
+
virtual: "virtual";
|
|
1065
|
+
}>>;
|
|
1066
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1067
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1068
|
+
cpus: z.ZodOptional<z.ZodNumber>;
|
|
1069
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
1070
|
+
}, z.core.$strict>>;
|
|
1071
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
1072
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
1073
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1074
|
+
}, z.core.$strict>>;
|
|
1075
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
1076
|
+
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
1077
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
1078
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
1079
|
+
}, z.core.$strict>>;
|
|
1080
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1081
|
+
command: z.ZodString;
|
|
1082
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1083
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
1084
|
+
}, z.core.$strict>>>;
|
|
1085
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1086
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1087
|
+
version: z.ZodNumber;
|
|
1088
|
+
path: z.ZodString;
|
|
1089
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1090
|
+
path: z.ZodString;
|
|
1091
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1092
|
+
}, z.core.$strict>]>>>;
|
|
1093
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1094
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1095
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1096
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
1097
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
1098
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
1099
|
+
header: z.ZodString;
|
|
1100
|
+
format: z.ZodString;
|
|
1101
|
+
}, z.core.$strict>>;
|
|
1102
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1103
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1104
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1105
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
1106
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1107
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1108
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1109
|
+
header: z.ZodString;
|
|
1110
|
+
}, z.core.$strict>>;
|
|
1111
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1112
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1113
|
+
type: z.ZodLiteral<"bearer">;
|
|
1114
|
+
url: z.ZodString;
|
|
1115
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1116
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1117
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1118
|
+
header: z.ZodString;
|
|
1119
|
+
}, z.core.$strict>>;
|
|
1120
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1121
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1122
|
+
type: z.ZodLiteral<"headers">;
|
|
1123
|
+
url: z.ZodString;
|
|
1124
|
+
}, z.core.$strict>], "type">>>;
|
|
1125
|
+
}, z.core.$strict>;
|
|
1126
|
+
export type EnvironmentManifest = z.infer<typeof EnvironmentManifestSchema>;
|
|
1127
|
+
/** `PUT /v1/environment-manifests/{name}`: the manifest, whose `name` is the path's. */
|
|
1128
|
+
export declare const PutEnvironmentManifestRequestSchema: z.ZodObject<{
|
|
1129
|
+
manifestSchemaVersion: z.ZodLiteral<1>;
|
|
1130
|
+
name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1131
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1132
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
1133
|
+
none: "none";
|
|
1134
|
+
pod: "pod";
|
|
1135
|
+
virtual: "virtual";
|
|
1136
|
+
}>>;
|
|
1137
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1138
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1139
|
+
cpus: z.ZodOptional<z.ZodNumber>;
|
|
1140
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
1141
|
+
}, z.core.$strict>>;
|
|
1142
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
1143
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
1144
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1145
|
+
}, z.core.$strict>>;
|
|
1146
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
1147
|
+
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
1148
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
1149
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
1150
|
+
}, z.core.$strict>>;
|
|
1151
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1152
|
+
command: z.ZodString;
|
|
1153
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1154
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
1155
|
+
}, z.core.$strict>>>;
|
|
1156
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1157
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1158
|
+
version: z.ZodNumber;
|
|
1159
|
+
path: z.ZodString;
|
|
1160
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1161
|
+
path: z.ZodString;
|
|
1162
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1163
|
+
}, z.core.$strict>]>>>;
|
|
1164
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1165
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1166
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1167
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
1168
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
1169
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
1170
|
+
header: z.ZodString;
|
|
1171
|
+
format: z.ZodString;
|
|
1172
|
+
}, z.core.$strict>>;
|
|
1173
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1174
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1175
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1176
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
1177
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
537
1178
|
via: z.ZodOptional<z.ZodString>;
|
|
538
1179
|
identity: z.ZodOptional<z.ZodObject<{
|
|
539
1180
|
header: z.ZodString;
|
|
540
1181
|
}, z.core.$strict>>;
|
|
1182
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1183
|
+
description: z.ZodOptional<z.ZodString>;
|
|
541
1184
|
type: z.ZodLiteral<"bearer">;
|
|
542
1185
|
url: z.ZodString;
|
|
543
|
-
token: z.ZodString;
|
|
544
1186
|
}, z.core.$strict>, z.ZodObject<{
|
|
545
1187
|
via: z.ZodOptional<z.ZodString>;
|
|
546
1188
|
identity: z.ZodOptional<z.ZodObject<{
|
|
547
1189
|
header: z.ZodString;
|
|
548
1190
|
}, z.core.$strict>>;
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
1191
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1192
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1193
|
+
type: z.ZodLiteral<"headers">;
|
|
1194
|
+
url: z.ZodString;
|
|
1195
|
+
}, z.core.$strict>], "type">>>;
|
|
1196
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
1197
|
+
}, z.core.$strict>;
|
|
1198
|
+
export type PutEnvironmentManifestRequest = z.infer<typeof PutEnvironmentManifestRequestSchema>;
|
|
1199
|
+
/** Who saved a version: the subject a request acted for, else `application`. */
|
|
1200
|
+
export declare const EnvironmentManifestSavedBySchema: z.ZodObject<{
|
|
1201
|
+
actor: z.ZodString;
|
|
1202
|
+
}, z.core.$strict>;
|
|
1203
|
+
/** One version of an environment manifest. */
|
|
1204
|
+
export declare const EnvironmentManifestViewSchema: z.ZodObject<{
|
|
1205
|
+
name: z.ZodString;
|
|
1206
|
+
version: z.ZodNumber;
|
|
1207
|
+
hash: z.ZodString;
|
|
1208
|
+
manifest: z.ZodObject<{
|
|
1209
|
+
manifestSchemaVersion: z.ZodLiteral<1>;
|
|
1210
|
+
name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1211
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1212
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
1213
|
+
none: "none";
|
|
1214
|
+
pod: "pod";
|
|
1215
|
+
virtual: "virtual";
|
|
1216
|
+
}>>;
|
|
1217
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1218
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1219
|
+
cpus: z.ZodOptional<z.ZodNumber>;
|
|
1220
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
1221
|
+
}, z.core.$strict>>;
|
|
1222
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
1223
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
1224
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1225
|
+
}, z.core.$strict>>;
|
|
1226
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
1227
|
+
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
1228
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
1229
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
1230
|
+
}, z.core.$strict>>;
|
|
1231
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1232
|
+
command: z.ZodString;
|
|
1233
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1234
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
1235
|
+
}, z.core.$strict>>>;
|
|
1236
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1237
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1238
|
+
version: z.ZodNumber;
|
|
1239
|
+
path: z.ZodString;
|
|
1240
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1241
|
+
path: z.ZodString;
|
|
1242
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1243
|
+
}, z.core.$strict>]>>>;
|
|
1244
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1245
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1246
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1247
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
1248
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
1249
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
1250
|
+
header: z.ZodString;
|
|
1251
|
+
format: z.ZodString;
|
|
1252
|
+
}, z.core.$strict>>;
|
|
1253
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1254
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1255
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1256
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
1257
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1258
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1259
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1260
|
+
header: z.ZodString;
|
|
1261
|
+
}, z.core.$strict>>;
|
|
1262
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1263
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1264
|
+
type: z.ZodLiteral<"bearer">;
|
|
1265
|
+
url: z.ZodString;
|
|
1266
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1267
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1268
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1269
|
+
header: z.ZodString;
|
|
1270
|
+
}, z.core.$strict>>;
|
|
1271
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1272
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1273
|
+
type: z.ZodLiteral<"headers">;
|
|
1274
|
+
url: z.ZodString;
|
|
1275
|
+
}, z.core.$strict>], "type">>>;
|
|
1276
|
+
}, z.core.$strict>;
|
|
1277
|
+
savedBy: z.ZodObject<{
|
|
1278
|
+
actor: z.ZodString;
|
|
1279
|
+
}, z.core.$strict>;
|
|
1280
|
+
createdAt: z.ZodString;
|
|
1281
|
+
environments: z.ZodNumber;
|
|
1282
|
+
}, z.core.$strict>;
|
|
1283
|
+
export type EnvironmentManifestView = z.infer<typeof EnvironmentManifestViewSchema>;
|
|
1284
|
+
/** `GET /v1/environment-manifests`: each manifest's latest version, by name. */
|
|
1285
|
+
export declare const ListEnvironmentManifestsResponseSchema: z.ZodObject<{
|
|
1286
|
+
manifests: z.ZodArray<z.ZodObject<{
|
|
1287
|
+
name: z.ZodString;
|
|
1288
|
+
version: z.ZodNumber;
|
|
1289
|
+
hash: z.ZodString;
|
|
1290
|
+
manifest: z.ZodObject<{
|
|
1291
|
+
manifestSchemaVersion: z.ZodLiteral<1>;
|
|
1292
|
+
name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1293
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1294
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
1295
|
+
none: "none";
|
|
1296
|
+
pod: "pod";
|
|
1297
|
+
virtual: "virtual";
|
|
1298
|
+
}>>;
|
|
1299
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1300
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1301
|
+
cpus: z.ZodOptional<z.ZodNumber>;
|
|
1302
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
1303
|
+
}, z.core.$strict>>;
|
|
1304
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
1305
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
1306
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1307
|
+
}, z.core.$strict>>;
|
|
1308
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
1309
|
+
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
1310
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
1311
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
1312
|
+
}, z.core.$strict>>;
|
|
1313
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1314
|
+
command: z.ZodString;
|
|
1315
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1316
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
1317
|
+
}, z.core.$strict>>>;
|
|
1318
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1319
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1320
|
+
version: z.ZodNumber;
|
|
1321
|
+
path: z.ZodString;
|
|
1322
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1323
|
+
path: z.ZodString;
|
|
1324
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1325
|
+
}, z.core.$strict>]>>>;
|
|
1326
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1327
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1328
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1329
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
1330
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
1331
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
1332
|
+
header: z.ZodString;
|
|
1333
|
+
format: z.ZodString;
|
|
1334
|
+
}, z.core.$strict>>;
|
|
1335
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1336
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1337
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1338
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
1339
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1340
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1341
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1342
|
+
header: z.ZodString;
|
|
1343
|
+
}, z.core.$strict>>;
|
|
1344
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1345
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1346
|
+
type: z.ZodLiteral<"bearer">;
|
|
1347
|
+
url: z.ZodString;
|
|
1348
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1349
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1350
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1351
|
+
header: z.ZodString;
|
|
1352
|
+
}, z.core.$strict>>;
|
|
1353
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1354
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1355
|
+
type: z.ZodLiteral<"headers">;
|
|
1356
|
+
url: z.ZodString;
|
|
1357
|
+
}, z.core.$strict>], "type">>>;
|
|
1358
|
+
}, z.core.$strict>;
|
|
1359
|
+
savedBy: z.ZodObject<{
|
|
1360
|
+
actor: z.ZodString;
|
|
1361
|
+
}, z.core.$strict>;
|
|
1362
|
+
createdAt: z.ZodString;
|
|
1363
|
+
environments: z.ZodNumber;
|
|
1364
|
+
}, z.core.$strict>>;
|
|
1365
|
+
}, z.core.$strict>;
|
|
1366
|
+
export type ListEnvironmentManifestsResponse = z.infer<typeof ListEnvironmentManifestsResponseSchema>;
|
|
1367
|
+
/** `GET /v1/environment-manifests/{name}/versions`: every version, newest first. */
|
|
1368
|
+
export declare const EnvironmentManifestVersionsSchema: z.ZodObject<{
|
|
1369
|
+
name: z.ZodString;
|
|
1370
|
+
latest: z.ZodNumber;
|
|
1371
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
1372
|
+
version: z.ZodNumber;
|
|
1373
|
+
hash: z.ZodString;
|
|
1374
|
+
savedBy: z.ZodObject<{
|
|
1375
|
+
actor: z.ZodString;
|
|
1376
|
+
}, z.core.$strict>;
|
|
1377
|
+
createdAt: z.ZodString;
|
|
1378
|
+
environments: z.ZodNumber;
|
|
1379
|
+
}, z.core.$strict>>;
|
|
1380
|
+
}, z.core.$strict>;
|
|
1381
|
+
export type EnvironmentManifestVersions = z.infer<typeof EnvironmentManifestVersionsSchema>;
|
|
1382
|
+
/** Something a save would do that the saver should know: never a refusal. */
|
|
1383
|
+
export declare const EnvironmentManifestWarningSchema: z.ZodObject<{
|
|
1384
|
+
code: z.ZodString;
|
|
1385
|
+
message: z.ZodString;
|
|
1386
|
+
}, z.core.$strict>;
|
|
1387
|
+
export type EnvironmentManifestWarning = z.infer<typeof EnvironmentManifestWarningSchema>;
|
|
1388
|
+
/**
|
|
1389
|
+
* `PUT /v1/environment-manifests/{name}?dryRun=true`: what saving it would do, with nothing
|
|
1390
|
+
* saved. `errors` lists every reason the Runtime would refuse it (the Tenant's limits, for one);
|
|
1391
|
+
* a save with errors is `400`. `behind` counts the Environments made from an older version than
|
|
1392
|
+
* the one it would save. No Environment changes when a version is saved (D63).
|
|
1393
|
+
*/
|
|
1394
|
+
export declare const EnvironmentManifestPlanSchema: z.ZodObject<{
|
|
1395
|
+
name: z.ZodString;
|
|
1396
|
+
from: z.ZodNullable<z.ZodNumber>;
|
|
1397
|
+
to: z.ZodNumber;
|
|
1398
|
+
unchanged: z.ZodBoolean;
|
|
1399
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
1400
|
+
path: z.ZodString;
|
|
1401
|
+
from: z.ZodOptional<z.ZodUnknown>;
|
|
1402
|
+
to: z.ZodOptional<z.ZodUnknown>;
|
|
1403
|
+
}, z.core.$strict>>;
|
|
1404
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
1405
|
+
code: z.ZodString;
|
|
1406
|
+
message: z.ZodString;
|
|
1407
|
+
}, z.core.$strict>>;
|
|
1408
|
+
errors: z.ZodArray<z.ZodString>;
|
|
1409
|
+
behind: z.ZodNumber;
|
|
1410
|
+
}, z.core.$strict>;
|
|
1411
|
+
export type EnvironmentManifestPlan = z.infer<typeof EnvironmentManifestPlanSchema>;
|
|
1412
|
+
/** `PUT /v1/environment-manifests/{name}`: the version saved (or the latest, unchanged). */
|
|
1413
|
+
export declare const SaveEnvironmentManifestResponseSchema: z.ZodObject<{
|
|
1414
|
+
manifest: z.ZodObject<{
|
|
1415
|
+
name: z.ZodString;
|
|
1416
|
+
version: z.ZodNumber;
|
|
1417
|
+
hash: z.ZodString;
|
|
1418
|
+
manifest: z.ZodObject<{
|
|
1419
|
+
manifestSchemaVersion: z.ZodLiteral<1>;
|
|
1420
|
+
name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1421
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1422
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
1423
|
+
none: "none";
|
|
1424
|
+
pod: "pod";
|
|
1425
|
+
virtual: "virtual";
|
|
1426
|
+
}>>;
|
|
1427
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1428
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1429
|
+
cpus: z.ZodOptional<z.ZodNumber>;
|
|
1430
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
1431
|
+
}, z.core.$strict>>;
|
|
1432
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
1433
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
1434
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1435
|
+
}, z.core.$strict>>;
|
|
1436
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
1437
|
+
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
1438
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
1439
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
1440
|
+
}, z.core.$strict>>;
|
|
1441
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1442
|
+
command: z.ZodString;
|
|
1443
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1444
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
1445
|
+
}, z.core.$strict>>>;
|
|
1446
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1447
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1448
|
+
version: z.ZodNumber;
|
|
1449
|
+
path: z.ZodString;
|
|
1450
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1451
|
+
path: z.ZodString;
|
|
1452
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1453
|
+
}, z.core.$strict>]>>>;
|
|
1454
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1455
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1456
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1457
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
1458
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
1459
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
1460
|
+
header: z.ZodString;
|
|
1461
|
+
format: z.ZodString;
|
|
1462
|
+
}, z.core.$strict>>;
|
|
1463
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1464
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1465
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1466
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
1467
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1468
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1469
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1470
|
+
header: z.ZodString;
|
|
1471
|
+
}, z.core.$strict>>;
|
|
1472
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1473
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1474
|
+
type: z.ZodLiteral<"bearer">;
|
|
1475
|
+
url: z.ZodString;
|
|
1476
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1477
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1478
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1479
|
+
header: z.ZodString;
|
|
1480
|
+
}, z.core.$strict>>;
|
|
1481
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1482
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1483
|
+
type: z.ZodLiteral<"headers">;
|
|
1484
|
+
url: z.ZodString;
|
|
1485
|
+
}, z.core.$strict>], "type">>>;
|
|
1486
|
+
}, z.core.$strict>;
|
|
1487
|
+
savedBy: z.ZodObject<{
|
|
1488
|
+
actor: z.ZodString;
|
|
1489
|
+
}, z.core.$strict>;
|
|
1490
|
+
createdAt: z.ZodString;
|
|
1491
|
+
environments: z.ZodNumber;
|
|
1492
|
+
}, z.core.$strict>;
|
|
1493
|
+
unchanged: z.ZodBoolean;
|
|
1494
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
1495
|
+
code: z.ZodString;
|
|
1496
|
+
message: z.ZodString;
|
|
1497
|
+
}, z.core.$strict>>;
|
|
1498
|
+
}, z.core.$strict>;
|
|
1499
|
+
export type SaveEnvironmentManifestResponse = z.infer<typeof SaveEnvironmentManifestResponseSchema>;
|
|
1500
|
+
export declare const DeleteEnvironmentManifestResponseSchema: z.ZodObject<{
|
|
1501
|
+
name: z.ZodString;
|
|
1502
|
+
deleted: z.ZodBoolean;
|
|
1503
|
+
}, z.core.$strict>;
|
|
1504
|
+
export type DeleteEnvironmentManifestResponse = z.infer<typeof DeleteEnvironmentManifestResponseSchema>;
|
|
1505
|
+
/**
|
|
1506
|
+
* `POST /v1/environments/{id}/fork` (Q15): how an Environment gets a new manifest version. The
|
|
1507
|
+
* fork is a new Environment, made from the version, its disk started from a version of the
|
|
1508
|
+
* source's disk and its secrets copied inside the Runtime. The source keeps what it runs, its
|
|
1509
|
+
* disk and its sessions.
|
|
1510
|
+
*/
|
|
1511
|
+
export declare const ForkEnvironmentRequestSchema: z.ZodObject<{
|
|
1512
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
1513
|
+
id: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1514
|
+
manifest: z.ZodOptional<z.ZodString>;
|
|
1515
|
+
disk: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"latest">, z.ZodLiteral<"empty">, z.ZodNumber]>>;
|
|
1516
|
+
secrets: z.ZodOptional<z.ZodEnum<{
|
|
1517
|
+
copy: "copy";
|
|
1518
|
+
none: "none";
|
|
1519
|
+
}>>;
|
|
1520
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1521
|
+
ownerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1522
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
1523
|
+
}, z.core.$strict>;
|
|
1524
|
+
export type ForkEnvironmentRequest = z.infer<typeof ForkEnvironmentRequestSchema>;
|
|
1525
|
+
/** What a fork does (or, with `dryRun`, would do). */
|
|
1526
|
+
export declare const EnvironmentForkPlanSchema: z.ZodObject<{
|
|
1527
|
+
source: z.ZodString;
|
|
1528
|
+
id: z.ZodString;
|
|
1529
|
+
kind: z.ZodEnum<{
|
|
1530
|
+
none: "none";
|
|
1531
|
+
pod: "pod";
|
|
1532
|
+
virtual: "virtual";
|
|
1533
|
+
}>;
|
|
1534
|
+
manifest: z.ZodNullable<z.ZodObject<{
|
|
1535
|
+
name: z.ZodString;
|
|
1536
|
+
version: z.ZodNumber;
|
|
1537
|
+
}, z.core.$strict>>;
|
|
1538
|
+
disk: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"latest">]>>;
|
|
1539
|
+
setup: z.ZodBoolean;
|
|
1540
|
+
secrets: z.ZodObject<{
|
|
1541
|
+
copied: z.ZodArray<z.ZodString>;
|
|
1542
|
+
dropped: z.ZodArray<z.ZodString>;
|
|
1543
|
+
missing: z.ZodArray<z.ZodString>;
|
|
1544
|
+
}, z.core.$strict>;
|
|
1545
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
1546
|
+
path: z.ZodString;
|
|
1547
|
+
from: z.ZodOptional<z.ZodUnknown>;
|
|
1548
|
+
to: z.ZodOptional<z.ZodUnknown>;
|
|
1549
|
+
}, z.core.$strict>>;
|
|
1550
|
+
sessions: z.ZodNumber;
|
|
1551
|
+
}, z.core.$strict>;
|
|
1552
|
+
export type EnvironmentForkPlan = z.infer<typeof EnvironmentForkPlanSchema>;
|
|
1553
|
+
/** `POST /v1/environments/{id}/fork`: the new Environment and the plan it ran, or with `dryRun` the plan only. */
|
|
1554
|
+
export declare const ForkEnvironmentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1555
|
+
dryRun: z.ZodLiteral<true>;
|
|
1556
|
+
plan: z.ZodObject<{
|
|
1557
|
+
source: z.ZodString;
|
|
1558
|
+
id: z.ZodString;
|
|
1559
|
+
kind: z.ZodEnum<{
|
|
1560
|
+
none: "none";
|
|
1561
|
+
pod: "pod";
|
|
1562
|
+
virtual: "virtual";
|
|
1563
|
+
}>;
|
|
1564
|
+
manifest: z.ZodNullable<z.ZodObject<{
|
|
1565
|
+
name: z.ZodString;
|
|
1566
|
+
version: z.ZodNumber;
|
|
1567
|
+
}, z.core.$strict>>;
|
|
1568
|
+
disk: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"latest">]>>;
|
|
1569
|
+
setup: z.ZodBoolean;
|
|
1570
|
+
secrets: z.ZodObject<{
|
|
1571
|
+
copied: z.ZodArray<z.ZodString>;
|
|
1572
|
+
dropped: z.ZodArray<z.ZodString>;
|
|
1573
|
+
missing: z.ZodArray<z.ZodString>;
|
|
1574
|
+
}, z.core.$strict>;
|
|
1575
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
1576
|
+
path: z.ZodString;
|
|
1577
|
+
from: z.ZodOptional<z.ZodUnknown>;
|
|
1578
|
+
to: z.ZodOptional<z.ZodUnknown>;
|
|
1579
|
+
}, z.core.$strict>>;
|
|
1580
|
+
sessions: z.ZodNumber;
|
|
1581
|
+
}, z.core.$strict>;
|
|
1582
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1583
|
+
environment: z.ZodObject<{
|
|
1584
|
+
id: z.ZodString;
|
|
1585
|
+
kind: z.ZodEnum<{
|
|
1586
|
+
none: "none";
|
|
1587
|
+
pod: "pod";
|
|
1588
|
+
virtual: "virtual";
|
|
1589
|
+
}>;
|
|
1590
|
+
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1591
|
+
manifest: z.ZodObject<{
|
|
1592
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1593
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1594
|
+
cpus: z.ZodNumber;
|
|
1595
|
+
memory: z.ZodString;
|
|
1596
|
+
}, z.core.$strict>>;
|
|
1597
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
1598
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
1599
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
1600
|
+
}, z.core.$strict>>;
|
|
1601
|
+
harness: z.ZodString;
|
|
1602
|
+
lifecycle: z.ZodObject<{
|
|
1603
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
1604
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
1605
|
+
}, z.core.$strict>;
|
|
1606
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1607
|
+
command: z.ZodString;
|
|
1608
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1609
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
1610
|
+
}, z.core.$strict>>>;
|
|
1611
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1612
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1613
|
+
version: z.ZodNumber;
|
|
1614
|
+
path: z.ZodString;
|
|
1615
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1616
|
+
path: z.ZodString;
|
|
1617
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1618
|
+
}, z.core.$strict>]>>>;
|
|
1619
|
+
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1620
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1621
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1622
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
1623
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
1624
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
1625
|
+
header: z.ZodString;
|
|
1626
|
+
format: z.ZodString;
|
|
1627
|
+
}, z.core.$strict>>;
|
|
1628
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1629
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1630
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1631
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
1632
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1633
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1634
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1635
|
+
header: z.ZodString;
|
|
1636
|
+
}, z.core.$strict>>;
|
|
1637
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1638
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1639
|
+
type: z.ZodLiteral<"bearer">;
|
|
1640
|
+
url: z.ZodString;
|
|
1641
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1642
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1643
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1644
|
+
header: z.ZodString;
|
|
1645
|
+
}, z.core.$strict>>;
|
|
1646
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1647
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1648
|
+
type: z.ZodLiteral<"headers">;
|
|
1649
|
+
url: z.ZodString;
|
|
1650
|
+
}, z.core.$strict>], "type">>>>;
|
|
1651
|
+
}, z.core.$strict>;
|
|
1652
|
+
manifestName: z.ZodOptional<z.ZodString>;
|
|
1653
|
+
manifestVersion: z.ZodOptional<z.ZodNumber>;
|
|
1654
|
+
manifestHash: z.ZodOptional<z.ZodString>;
|
|
1655
|
+
forkedFrom: z.ZodOptional<z.ZodObject<{
|
|
1656
|
+
environment: z.ZodString;
|
|
1657
|
+
disk: z.ZodNullable<z.ZodNumber>;
|
|
1658
|
+
}, z.core.$strict>>;
|
|
1659
|
+
slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1660
|
+
name: z.ZodString;
|
|
1661
|
+
type: z.ZodString;
|
|
1662
|
+
required: z.ZodBoolean;
|
|
1663
|
+
set: z.ZodBoolean;
|
|
1664
|
+
}, z.core.$strict>>>;
|
|
1665
|
+
version: z.ZodNumber;
|
|
1666
|
+
appliedVersion: z.ZodNumber;
|
|
1667
|
+
ownerUserId: z.ZodNullable<z.ZodString>;
|
|
1668
|
+
state: z.ZodString;
|
|
1669
|
+
pod: z.ZodOptional<z.ZodObject<{
|
|
1670
|
+
desired: z.ZodEnum<{
|
|
1671
|
+
deleted: "deleted";
|
|
1672
|
+
running: "running";
|
|
1673
|
+
suspended: "suspended";
|
|
1674
|
+
}>;
|
|
1675
|
+
observed: z.ZodEnum<{
|
|
1676
|
+
creating: "creating";
|
|
1677
|
+
deleting: "deleting";
|
|
1678
|
+
failed: "failed";
|
|
1679
|
+
lost: "lost";
|
|
1680
|
+
running: "running";
|
|
1681
|
+
suspended: "suspended";
|
|
1682
|
+
}>;
|
|
1683
|
+
volumeGeneration: z.ZodNumber;
|
|
1684
|
+
hostEpoch: z.ZodNumber;
|
|
1685
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1686
|
+
imageDigest: z.ZodOptional<z.ZodString>;
|
|
1687
|
+
}, z.core.$strict>>;
|
|
1688
|
+
lastUsedAt: z.ZodString;
|
|
1689
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
1690
|
+
latestVersion: z.ZodNullable<z.ZodNumber>;
|
|
1691
|
+
operation: z.ZodOptional<z.ZodObject<{
|
|
1692
|
+
kind: z.ZodEnum<{
|
|
1693
|
+
restore: "restore";
|
|
1694
|
+
seed: "seed";
|
|
1695
|
+
snapshot: "snapshot";
|
|
1696
|
+
}>;
|
|
1697
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1698
|
+
startedAt: z.ZodString;
|
|
1699
|
+
}, z.core.$strict>>;
|
|
1700
|
+
}, z.core.$strict>>;
|
|
1701
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
1702
|
+
id: z.ZodString;
|
|
1703
|
+
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
1704
|
+
}, z.core.$strict>>;
|
|
1705
|
+
createdAt: z.ZodString;
|
|
1706
|
+
updatedAt: z.ZodString;
|
|
1707
|
+
}, z.core.$strict>;
|
|
1708
|
+
plan: z.ZodObject<{
|
|
1709
|
+
source: z.ZodString;
|
|
1710
|
+
id: z.ZodString;
|
|
1711
|
+
kind: z.ZodEnum<{
|
|
1712
|
+
none: "none";
|
|
1713
|
+
pod: "pod";
|
|
1714
|
+
virtual: "virtual";
|
|
1715
|
+
}>;
|
|
1716
|
+
manifest: z.ZodNullable<z.ZodObject<{
|
|
1717
|
+
name: z.ZodString;
|
|
1718
|
+
version: z.ZodNumber;
|
|
1719
|
+
}, z.core.$strict>>;
|
|
1720
|
+
disk: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"latest">]>>;
|
|
1721
|
+
setup: z.ZodBoolean;
|
|
1722
|
+
secrets: z.ZodObject<{
|
|
1723
|
+
copied: z.ZodArray<z.ZodString>;
|
|
1724
|
+
dropped: z.ZodArray<z.ZodString>;
|
|
1725
|
+
missing: z.ZodArray<z.ZodString>;
|
|
1726
|
+
}, z.core.$strict>;
|
|
1727
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
1728
|
+
path: z.ZodString;
|
|
1729
|
+
from: z.ZodOptional<z.ZodUnknown>;
|
|
1730
|
+
to: z.ZodOptional<z.ZodUnknown>;
|
|
560
1731
|
}, z.core.$strict>>;
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
}, z.core.$strict>], "type">;
|
|
566
|
-
}, z.core.$strict>;
|
|
567
|
-
export type CreateCredentialRequest = z.infer<typeof CreateCredentialRequestSchema>;
|
|
1732
|
+
sessions: z.ZodNumber;
|
|
1733
|
+
}, z.core.$strict>;
|
|
1734
|
+
}, z.core.$strict>]>;
|
|
1735
|
+
export type ForkEnvironmentResponse = z.infer<typeof ForkEnvironmentResponseSchema>;
|
|
568
1736
|
/**
|
|
569
|
-
*
|
|
570
|
-
*
|
|
1737
|
+
* What a model may read (protocol 12): `text` always; `image`, `pdf`, `office` (Word, Excel,
|
|
1738
|
+
* PowerPoint), `audio` and `video` when its catalog entry or the operator says so. In this order.
|
|
571
1739
|
*/
|
|
572
|
-
export declare const
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
583
|
-
via: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
584
|
-
identity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
585
|
-
header: z.ZodString;
|
|
586
|
-
}, z.core.$strict>>>;
|
|
587
|
-
type: z.ZodLiteral<"headers">;
|
|
588
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
589
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
590
|
-
type: z.ZodLiteral<"environment_secret">;
|
|
591
|
-
secretValue: z.ZodString;
|
|
592
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
593
|
-
type: z.ZodLiteral<"environment_variable">;
|
|
594
|
-
variableValue: z.ZodString;
|
|
595
|
-
}, z.core.$strict>], "type">;
|
|
596
|
-
}, z.core.$strict>;
|
|
597
|
-
export type RotateCredentialRequest = z.infer<typeof RotateCredentialRequestSchema>;
|
|
1740
|
+
export declare const MODEL_INPUTS: readonly ["text", "image", "pdf", "office", "audio", "video"];
|
|
1741
|
+
export declare const ModelInputSchema: z.ZodEnum<{
|
|
1742
|
+
audio: "audio";
|
|
1743
|
+
image: "image";
|
|
1744
|
+
office: "office";
|
|
1745
|
+
pdf: "pdf";
|
|
1746
|
+
text: "text";
|
|
1747
|
+
video: "video";
|
|
1748
|
+
}>;
|
|
1749
|
+
export type ModelInput = z.infer<typeof ModelInputSchema>;
|
|
598
1750
|
/**
|
|
599
1751
|
* What the Runtime cannot learn from a custom OpenAI-compatible endpoint (Model Calls §7):
|
|
600
|
-
* its context window and output limit, whether it reasons,
|
|
601
|
-
* (`thinkingFormat`, `thinkingTokenBudgetField`,
|
|
1752
|
+
* its context window and output limit, whether it reasons, what it reads (`inputs`; default text
|
|
1753
|
+
* only) and pi-ai `compat` settings (`thinkingFormat`, `thinkingTokenBudgetField`,
|
|
1754
|
+
* `chatTemplateKwargs`, …).
|
|
602
1755
|
*/
|
|
603
1756
|
export declare const CustomModelSettingsSchema: z.ZodObject<{
|
|
604
1757
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
605
1758
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
606
1759
|
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
1760
|
+
inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1761
|
+
audio: "audio";
|
|
1762
|
+
image: "image";
|
|
1763
|
+
office: "office";
|
|
1764
|
+
pdf: "pdf";
|
|
1765
|
+
text: "text";
|
|
1766
|
+
video: "video";
|
|
1767
|
+
}>>>;
|
|
607
1768
|
compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
608
1769
|
}, z.core.$strict>;
|
|
609
1770
|
export type CustomModelSettings = z.infer<typeof CustomModelSettingsSchema>;
|
|
@@ -617,6 +1778,14 @@ export declare const PutHostModelRequestSchema: z.ZodObject<{
|
|
|
617
1778
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
618
1779
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
619
1780
|
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
1781
|
+
inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1782
|
+
audio: "audio";
|
|
1783
|
+
image: "image";
|
|
1784
|
+
office: "office";
|
|
1785
|
+
pdf: "pdf";
|
|
1786
|
+
text: "text";
|
|
1787
|
+
video: "video";
|
|
1788
|
+
}>>>;
|
|
620
1789
|
compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
621
1790
|
}, z.core.$strict>>;
|
|
622
1791
|
auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -650,17 +1819,12 @@ export declare const SelectHostModelRequestSchema: z.ZodObject<{
|
|
|
650
1819
|
}, z.core.$strict>;
|
|
651
1820
|
export type SelectHostModelRequest = z.infer<typeof SelectHostModelRequestSchema>;
|
|
652
1821
|
export type HostModelProviderInfo = z.infer<typeof HostModelProviderInfoSchema>;
|
|
653
|
-
export declare const
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
}, z.core.$strict>;
|
|
660
|
-
export type VaultInfo = z.infer<typeof VaultInfoSchema>;
|
|
661
|
-
export declare const CredentialInfoSchema: z.ZodObject<{
|
|
662
|
-
id: z.ZodString;
|
|
663
|
-
vaultId: z.ZodString;
|
|
1822
|
+
export declare const ENVIRONMENT_SECRET_TYPES: readonly ["bearer", "headers", "environment_secret", "environment_variable"];
|
|
1823
|
+
/**
|
|
1824
|
+
* One credential of an Environment's vault, never its value: what it is bound to (the server
|
|
1825
|
+
* `url` for `bearer` and `headers`; the hosts and header for `environment_secret`).
|
|
1826
|
+
*/
|
|
1827
|
+
export declare const EnvironmentSecretViewSchema: z.ZodObject<{
|
|
664
1828
|
name: z.ZodString;
|
|
665
1829
|
type: z.ZodEnum<{
|
|
666
1830
|
bearer: "bearer";
|
|
@@ -670,14 +1834,11 @@ export declare const CredentialInfoSchema: z.ZodObject<{
|
|
|
670
1834
|
}>;
|
|
671
1835
|
binding: z.ZodObject<{
|
|
672
1836
|
url: z.ZodOptional<z.ZodString>;
|
|
673
|
-
secretName: z.ZodOptional<z.ZodString>;
|
|
674
1837
|
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
675
1838
|
inject: z.ZodOptional<z.ZodObject<{
|
|
676
1839
|
header: z.ZodString;
|
|
677
1840
|
format: z.ZodString;
|
|
678
1841
|
}, z.core.$strict>>;
|
|
679
|
-
variableName: z.ZodOptional<z.ZodString>;
|
|
680
|
-
variableValue: z.ZodOptional<z.ZodString>;
|
|
681
1842
|
}, z.core.$strict>;
|
|
682
1843
|
headerNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
683
1844
|
via: z.ZodOptional<z.ZodString>;
|
|
@@ -687,14 +1848,40 @@ export declare const CredentialInfoSchema: z.ZodObject<{
|
|
|
687
1848
|
createdAt: z.ZodString;
|
|
688
1849
|
rotatedAt: z.ZodOptional<z.ZodString>;
|
|
689
1850
|
}, z.core.$strict>;
|
|
690
|
-
export type
|
|
1851
|
+
export type EnvironmentSecretView = z.infer<typeof EnvironmentSecretViewSchema>;
|
|
1852
|
+
export declare const ListEnvironmentSecretsResponseSchema: z.ZodObject<{
|
|
1853
|
+
secrets: z.ZodArray<z.ZodObject<{
|
|
1854
|
+
name: z.ZodString;
|
|
1855
|
+
type: z.ZodEnum<{
|
|
1856
|
+
bearer: "bearer";
|
|
1857
|
+
environment_secret: "environment_secret";
|
|
1858
|
+
environment_variable: "environment_variable";
|
|
1859
|
+
headers: "headers";
|
|
1860
|
+
}>;
|
|
1861
|
+
binding: z.ZodObject<{
|
|
1862
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1863
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1864
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
1865
|
+
header: z.ZodString;
|
|
1866
|
+
format: z.ZodString;
|
|
1867
|
+
}, z.core.$strict>>;
|
|
1868
|
+
}, z.core.$strict>;
|
|
1869
|
+
headerNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1870
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1871
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1872
|
+
header: z.ZodString;
|
|
1873
|
+
}, z.core.$strict>>;
|
|
1874
|
+
createdAt: z.ZodString;
|
|
1875
|
+
rotatedAt: z.ZodOptional<z.ZodString>;
|
|
1876
|
+
}, z.core.$strict>>;
|
|
1877
|
+
}, z.core.$strict>;
|
|
1878
|
+
export type ListEnvironmentSecretsResponse = z.infer<typeof ListEnvironmentSecretsResponseSchema>;
|
|
691
1879
|
/** The MCP transports a preview speaks: a manifest's remote server types. */
|
|
692
1880
|
export declare const MCP_PREVIEW_TYPES: readonly ["streamable-http", "sse"];
|
|
693
1881
|
/**
|
|
694
1882
|
* `POST /v1/tenant/mcp/preview` (R2b C12): what a remote MCP server offers, before an agent
|
|
695
|
-
* names it. The Runtime connects with the
|
|
696
|
-
*
|
|
697
|
-
* closes the connection; it never calls a tool.
|
|
1883
|
+
* names it. The Runtime connects with the credential for `url` in the vault of `environmentId`
|
|
1884
|
+
* (none without one), lists the tools and closes the connection; it never calls a tool.
|
|
698
1885
|
*/
|
|
699
1886
|
export declare const McpPreviewRequestSchema: z.ZodObject<{
|
|
700
1887
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -704,7 +1891,7 @@ export declare const McpPreviewRequestSchema: z.ZodObject<{
|
|
|
704
1891
|
"streamable-http": "streamable-http";
|
|
705
1892
|
}>>;
|
|
706
1893
|
name: z.ZodOptional<z.ZodString>;
|
|
707
|
-
|
|
1894
|
+
environmentId: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
708
1895
|
}, z.core.$strict>;
|
|
709
1896
|
export type McpPreviewRequest = z.infer<typeof McpPreviewRequestSchema>;
|
|
710
1897
|
/** One tool a preview found. */
|
|
@@ -719,7 +1906,7 @@ export type McpPreviewTool = z.infer<typeof McpPreviewToolSchema>;
|
|
|
719
1906
|
/**
|
|
720
1907
|
* A preview (R2b C12). A server that answered `401` is `authRequired`, with its RFC 9728
|
|
721
1908
|
* protected-resource metadata when it publishes any: it needs a person's sign-in or a key the
|
|
722
|
-
*
|
|
1909
|
+
* Environment's vault does not hold, so reach it with a key or through a gateway (`via`).
|
|
723
1910
|
*/
|
|
724
1911
|
export declare const McpPreviewSchema: z.ZodObject<{
|
|
725
1912
|
name: z.ZodString;
|
|
@@ -748,6 +1935,84 @@ export declare const McpPreviewSchema: z.ZodObject<{
|
|
|
748
1935
|
}, z.core.$strict>>;
|
|
749
1936
|
}, z.core.$strict>;
|
|
750
1937
|
export type McpPreview = z.infer<typeof McpPreviewSchema>;
|
|
1938
|
+
/**
|
|
1939
|
+
* `POST /v1/tenant/credential-coverage`: which credential each of a saved agent's remote MCP
|
|
1940
|
+
* servers and HTTP tools would get in a session that names `environmentId`, decided as the
|
|
1941
|
+
* session's tool calls decide it (by URL). It reads no secret and calls no server.
|
|
1942
|
+
*/
|
|
1943
|
+
export declare const CredentialCoverageRequestSchema: z.ZodObject<{
|
|
1944
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
1945
|
+
agentId: z.ZodString;
|
|
1946
|
+
environmentId: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1947
|
+
}, z.core.$strict>;
|
|
1948
|
+
export type CredentialCoverageRequest = z.infer<typeof CredentialCoverageRequestSchema>;
|
|
1949
|
+
/** A credential coverage names: where it is, never its value. */
|
|
1950
|
+
export declare const CoverageCredentialSchema: z.ZodObject<{
|
|
1951
|
+
environmentId: z.ZodString;
|
|
1952
|
+
name: z.ZodString;
|
|
1953
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1954
|
+
}, z.core.$strict>;
|
|
1955
|
+
export type CoverageCredential = z.infer<typeof CoverageCredentialSchema>;
|
|
1956
|
+
/**
|
|
1957
|
+
* What a session would send for one URL an agent declares:
|
|
1958
|
+
* - `covered`: the Environment's vault holds a credential for it (`credential`);
|
|
1959
|
+
* - `missing`: it holds none: an MCP server is called without a credential (a public server
|
|
1960
|
+
* needs none), an HTTP tool fails with `http.credential`.
|
|
1961
|
+
*/
|
|
1962
|
+
export declare const COVERAGE_STATUSES: readonly ["covered", "missing"];
|
|
1963
|
+
export type CoverageStatus = (typeof COVERAGE_STATUSES)[number];
|
|
1964
|
+
/** One remote MCP server or HTTP tool credential an agent declares. */
|
|
1965
|
+
export declare const CredentialCoverageEntrySchema: z.ZodObject<{
|
|
1966
|
+
kind: z.ZodEnum<{
|
|
1967
|
+
http: "http";
|
|
1968
|
+
mcp: "mcp";
|
|
1969
|
+
}>;
|
|
1970
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
1971
|
+
stage: z.ZodOptional<z.ZodString>;
|
|
1972
|
+
name: z.ZodString;
|
|
1973
|
+
serverName: z.ZodString;
|
|
1974
|
+
url: z.ZodString;
|
|
1975
|
+
required: z.ZodBoolean;
|
|
1976
|
+
status: z.ZodEnum<{
|
|
1977
|
+
covered: "covered";
|
|
1978
|
+
missing: "missing";
|
|
1979
|
+
}>;
|
|
1980
|
+
credential: z.ZodOptional<z.ZodObject<{
|
|
1981
|
+
environmentId: z.ZodString;
|
|
1982
|
+
name: z.ZodString;
|
|
1983
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1984
|
+
}, z.core.$strict>>;
|
|
1985
|
+
message: z.ZodString;
|
|
1986
|
+
}, z.core.$strict>;
|
|
1987
|
+
export type CredentialCoverageEntry = z.infer<typeof CredentialCoverageEntrySchema>;
|
|
1988
|
+
export declare const CredentialCoverageSchema: z.ZodObject<{
|
|
1989
|
+
agentId: z.ZodString;
|
|
1990
|
+
environmentId: z.ZodNullable<z.ZodString>;
|
|
1991
|
+
complete: z.ZodBoolean;
|
|
1992
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
1993
|
+
kind: z.ZodEnum<{
|
|
1994
|
+
http: "http";
|
|
1995
|
+
mcp: "mcp";
|
|
1996
|
+
}>;
|
|
1997
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
1998
|
+
stage: z.ZodOptional<z.ZodString>;
|
|
1999
|
+
name: z.ZodString;
|
|
2000
|
+
serverName: z.ZodString;
|
|
2001
|
+
url: z.ZodString;
|
|
2002
|
+
required: z.ZodBoolean;
|
|
2003
|
+
status: z.ZodEnum<{
|
|
2004
|
+
covered: "covered";
|
|
2005
|
+
missing: "missing";
|
|
2006
|
+
}>;
|
|
2007
|
+
credential: z.ZodOptional<z.ZodObject<{
|
|
2008
|
+
environmentId: z.ZodString;
|
|
2009
|
+
name: z.ZodString;
|
|
2010
|
+
via: z.ZodOptional<z.ZodString>;
|
|
2011
|
+
}, z.core.$strict>>;
|
|
2012
|
+
message: z.ZodString;
|
|
2013
|
+
}, z.core.$strict>>;
|
|
2014
|
+
}, z.core.$strict>;
|
|
2015
|
+
export type CredentialCoverage = z.infer<typeof CredentialCoverageSchema>;
|
|
751
2016
|
/** The most parts one message may carry (protocol 6). */
|
|
752
2017
|
export declare const MAX_MESSAGE_PARTS = 32;
|
|
753
2018
|
/**
|
|
@@ -891,10 +2156,18 @@ export type SessionEventBody = SessionCommand;
|
|
|
891
2156
|
export type MessageEventBody = z.infer<typeof MessageEventBodySchema>;
|
|
892
2157
|
/** The envelope every session event carries (`nylorun.event/2`, Durable Streams §9.5). */
|
|
893
2158
|
export declare const EVENT_SCHEMA = "nylorun.event/2";
|
|
894
|
-
/**
|
|
2159
|
+
/**
|
|
2160
|
+
* Who wrote an event (track R4, R4.9): the writer says so, not the event's type. `client` is a
|
|
2161
|
+
* command over the Runtime API (its `principal` says who sent it), `core` is core's own logic
|
|
2162
|
+
* (settle, sweeps, the flow host, exports, the tools core serves), `harness` is what a harness
|
|
2163
|
+
* reported (`source.id` is its harness id, `runId` its run), and the gates are themselves.
|
|
2164
|
+
* `loop` and `api` are what events written before R4 say.
|
|
2165
|
+
*/
|
|
895
2166
|
export declare const EventSourceKindSchema: z.ZodEnum<{
|
|
896
2167
|
api: "api";
|
|
2168
|
+
client: "client";
|
|
897
2169
|
controller: "controller";
|
|
2170
|
+
core: "core";
|
|
898
2171
|
edge: "edge";
|
|
899
2172
|
"egress-gate": "egress-gate";
|
|
900
2173
|
evidence: "evidence";
|
|
@@ -909,7 +2182,12 @@ export declare const EventSourceKindSchema: z.ZodEnum<{
|
|
|
909
2182
|
"tool-gate": "tool-gate";
|
|
910
2183
|
}>;
|
|
911
2184
|
export type EventSourceKind = z.infer<typeof EventSourceKindSchema>;
|
|
912
|
-
/**
|
|
2185
|
+
/**
|
|
2186
|
+
* How far an event can be trusted, by who could forge it. `observed`: the Runtime saw it itself
|
|
2187
|
+
* (commands, the tools core serves, gate records, core's settle). `claimed`: a harness reported
|
|
2188
|
+
* it (an assistant message, a tool result it ran, its turn's end), so it is the harness's claim;
|
|
2189
|
+
* the Model Gate's usage row is the measured record of the same model call.
|
|
2190
|
+
*/
|
|
913
2191
|
export declare const EvidenceClassSchema: z.ZodEnum<{
|
|
914
2192
|
asserted: "asserted";
|
|
915
2193
|
attested: "attested";
|
|
@@ -918,6 +2196,31 @@ export declare const EvidenceClassSchema: z.ZodEnum<{
|
|
|
918
2196
|
observed: "observed";
|
|
919
2197
|
}>;
|
|
920
2198
|
export type EvidenceClass = z.infer<typeof EvidenceClassSchema>;
|
|
2199
|
+
/** A command's sender (R4.9): from the request's credential, never from its body. */
|
|
2200
|
+
export declare const EventPrincipalSchema: z.ZodObject<{
|
|
2201
|
+
kind: z.ZodEnum<{
|
|
2202
|
+
application: "application";
|
|
2203
|
+
core: "core";
|
|
2204
|
+
"flow-host": "flow-host";
|
|
2205
|
+
subject: "subject";
|
|
2206
|
+
}>;
|
|
2207
|
+
id: z.ZodString;
|
|
2208
|
+
}, z.core.$strict>;
|
|
2209
|
+
export type EventPrincipal = z.infer<typeof EventPrincipalSchema>;
|
|
2210
|
+
/**
|
|
2211
|
+
* Who wrote an event, as its writer says (R4.9). Absent, core wrote it and saw it (`core`,
|
|
2212
|
+
* `observed`).
|
|
2213
|
+
*/
|
|
2214
|
+
export interface EventWriter {
|
|
2215
|
+
readonly source: {
|
|
2216
|
+
readonly kind: EventSourceKind;
|
|
2217
|
+
readonly id: string;
|
|
2218
|
+
};
|
|
2219
|
+
readonly evidence?: EvidenceClass;
|
|
2220
|
+
/** The run the event was written in. */
|
|
2221
|
+
readonly runId?: string;
|
|
2222
|
+
readonly principal?: EventPrincipal;
|
|
2223
|
+
}
|
|
921
2224
|
/**
|
|
922
2225
|
* The envelope fields. Not strict: a client strips fields it does not know, so the envelope
|
|
923
2226
|
* can grow without a protocol bump.
|
|
@@ -945,7 +2248,9 @@ declare const eventEnvelope: {
|
|
|
945
2248
|
source: z.ZodObject<{
|
|
946
2249
|
kind: z.ZodEnum<{
|
|
947
2250
|
api: "api";
|
|
2251
|
+
client: "client";
|
|
948
2252
|
controller: "controller";
|
|
2253
|
+
core: "core";
|
|
949
2254
|
edge: "edge";
|
|
950
2255
|
"egress-gate": "egress-gate";
|
|
951
2256
|
evidence: "evidence";
|
|
@@ -968,6 +2273,16 @@ declare const eventEnvelope: {
|
|
|
968
2273
|
measured: "measured";
|
|
969
2274
|
observed: "observed";
|
|
970
2275
|
}>;
|
|
2276
|
+
/** Who sent a command (`command.*`, a cancel's `turn.cancelled`), from its credential (R4.9). */
|
|
2277
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
2278
|
+
kind: z.ZodEnum<{
|
|
2279
|
+
application: "application";
|
|
2280
|
+
core: "core";
|
|
2281
|
+
"flow-host": "flow-host";
|
|
2282
|
+
subject: "subject";
|
|
2283
|
+
}>;
|
|
2284
|
+
id: z.ZodString;
|
|
2285
|
+
}, z.core.$strict>>;
|
|
971
2286
|
trace: z.ZodOptional<z.ZodObject<{
|
|
972
2287
|
traceId: z.ZodString;
|
|
973
2288
|
spanId: z.ZodString;
|
|
@@ -1003,7 +2318,9 @@ export declare const LiveEventSchema: z.ZodObject<{
|
|
|
1003
2318
|
source: z.ZodObject<{
|
|
1004
2319
|
kind: z.ZodEnum<{
|
|
1005
2320
|
api: "api";
|
|
2321
|
+
client: "client";
|
|
1006
2322
|
controller: "controller";
|
|
2323
|
+
core: "core";
|
|
1007
2324
|
edge: "edge";
|
|
1008
2325
|
"egress-gate": "egress-gate";
|
|
1009
2326
|
evidence: "evidence";
|
|
@@ -1026,6 +2343,15 @@ export declare const LiveEventSchema: z.ZodObject<{
|
|
|
1026
2343
|
measured: "measured";
|
|
1027
2344
|
observed: "observed";
|
|
1028
2345
|
}>;
|
|
2346
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
2347
|
+
kind: z.ZodEnum<{
|
|
2348
|
+
application: "application";
|
|
2349
|
+
core: "core";
|
|
2350
|
+
"flow-host": "flow-host";
|
|
2351
|
+
subject: "subject";
|
|
2352
|
+
}>;
|
|
2353
|
+
id: z.ZodString;
|
|
2354
|
+
}, z.core.$strict>>;
|
|
1029
2355
|
trace: z.ZodOptional<z.ZodObject<{
|
|
1030
2356
|
traceId: z.ZodString;
|
|
1031
2357
|
spanId: z.ZodString;
|
|
@@ -1055,12 +2381,21 @@ export type AcceptedResponse = z.infer<typeof AcceptedResponseSchema>;
|
|
|
1055
2381
|
export declare const RejectedResponseSchema: z.ZodObject<{
|
|
1056
2382
|
status: z.ZodLiteral<"rejected">;
|
|
1057
2383
|
code: z.ZodEnum<{
|
|
2384
|
+
attachment_unsupported: "attachment_unsupported";
|
|
1058
2385
|
connection_missing: "connection_missing";
|
|
1059
2386
|
credential_conflict: "credential_conflict";
|
|
1060
2387
|
credential_invalid: "credential_invalid";
|
|
1061
2388
|
credential_rejected: "credential_rejected";
|
|
1062
2389
|
credential_required: "credential_required";
|
|
1063
2390
|
definition_files_missing: "definition_files_missing";
|
|
2391
|
+
environment_busy: "environment_busy";
|
|
2392
|
+
environment_immutable: "environment_immutable";
|
|
2393
|
+
environment_lost: "environment_lost";
|
|
2394
|
+
environment_not_granted: "environment_not_granted";
|
|
2395
|
+
environment_owner_mismatch: "environment_owner_mismatch";
|
|
2396
|
+
environment_unavailable: "environment_unavailable";
|
|
2397
|
+
environment_unsuitable: "environment_unsuitable";
|
|
2398
|
+
harness_mismatch: "harness_mismatch";
|
|
1064
2399
|
host_rejected: "host_rejected";
|
|
1065
2400
|
incompatible_host: "incompatible_host";
|
|
1066
2401
|
internal_error: "internal_error";
|
|
@@ -1068,18 +2403,18 @@ export declare const RejectedResponseSchema: z.ZodObject<{
|
|
|
1068
2403
|
issuer_unavailable: "issuer_unavailable";
|
|
1069
2404
|
key_role_mismatch: "key_role_mismatch";
|
|
1070
2405
|
limit_exceeded: "limit_exceeded";
|
|
2406
|
+
manifest_changed: "manifest_changed";
|
|
2407
|
+
manifest_in_use: "manifest_in_use";
|
|
2408
|
+
manifest_not_found: "manifest_not_found";
|
|
1071
2409
|
mcp_preview_failed: "mcp_preview_failed";
|
|
1072
2410
|
not_found: "not_found";
|
|
1073
2411
|
origin_rejected: "origin_rejected";
|
|
1074
2412
|
placement_refused: "placement_refused";
|
|
1075
2413
|
protocol_unsupported: "protocol_unsupported";
|
|
1076
2414
|
request_rejected: "request_rejected";
|
|
1077
|
-
sandbox_busy: "sandbox_busy";
|
|
1078
|
-
sandbox_expired: "sandbox_expired";
|
|
1079
|
-
sandbox_lost: "sandbox_lost";
|
|
1080
|
-
sandbox_not_granted: "sandbox_not_granted";
|
|
1081
|
-
sandbox_unavailable: "sandbox_unavailable";
|
|
1082
2415
|
scope_required: "scope_required";
|
|
2416
|
+
secret_not_in_manifest: "secret_not_in_manifest";
|
|
2417
|
+
session_closed: "session_closed";
|
|
1083
2418
|
subject_invalid: "subject_invalid";
|
|
1084
2419
|
subject_required: "subject_required";
|
|
1085
2420
|
token_expired: "token_expired";
|
|
@@ -1097,9 +2432,32 @@ export declare const AgentRefSchema: z.ZodObject<{
|
|
|
1097
2432
|
path: z.ZodString;
|
|
1098
2433
|
delegationId: z.ZodOptional<z.ZodString>;
|
|
1099
2434
|
}, z.core.$strict>;
|
|
2435
|
+
/**
|
|
2436
|
+
* When a gate served a call (R7.1): its own start and end, as it measured them. Absent when no
|
|
2437
|
+
* gate measured the call (a fixture model, a sandbox or core-served tool, a call refused before
|
|
2438
|
+
* it was sent).
|
|
2439
|
+
*/
|
|
2440
|
+
export declare const GateTimesSchema: z.ZodObject<{
|
|
2441
|
+
startedAt: z.ZodString;
|
|
2442
|
+
endedAt: z.ZodString;
|
|
2443
|
+
}, z.core.$loose>;
|
|
2444
|
+
/**
|
|
2445
|
+
* What the Model Gate's meter recorded for a model call (R7.1), from the usage ledger: the
|
|
2446
|
+
* tokens and cost the Runtime counts, beside the `usage` the harness reported. `cachedTokens`
|
|
2447
|
+
* and `costUsd` are absent when zero.
|
|
2448
|
+
*/
|
|
2449
|
+
export declare const MeteredUsageSchema: z.ZodObject<{
|
|
2450
|
+
inputTokens: z.ZodNumber;
|
|
2451
|
+
outputTokens: z.ZodNumber;
|
|
2452
|
+
totalTokens: z.ZodNumber;
|
|
2453
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
2454
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
2455
|
+
}, z.core.$loose>;
|
|
1100
2456
|
/**
|
|
1101
2457
|
* `message.assistant`: one completed model step. `invocationId` is the model call's.
|
|
1102
|
-
* `model`, `finishReason` and `usage` are present when the provider reported them.
|
|
2458
|
+
* `model`, `finishReason` and `usage` are present when the provider reported them. A step that
|
|
2459
|
+
* said nothing (no text, no tool calls, as a structured answer) has `text: ""` and no tool
|
|
2460
|
+
* calls: it is in the log for its timing, and is never a message (`isEmptyAssistantMessage`).
|
|
1103
2461
|
*/
|
|
1104
2462
|
export declare const AssistantMessagePayloadSchema: z.ZodObject<{
|
|
1105
2463
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -1107,6 +2465,20 @@ export declare const AssistantMessagePayloadSchema: z.ZodObject<{
|
|
|
1107
2465
|
path: z.ZodString;
|
|
1108
2466
|
delegationId: z.ZodOptional<z.ZodString>;
|
|
1109
2467
|
}, z.core.$loose>>;
|
|
2468
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
2469
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2470
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
2471
|
+
startedAt: z.ZodString;
|
|
2472
|
+
endedAt: z.ZodString;
|
|
2473
|
+
}, z.core.$loose>>;
|
|
2474
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
2475
|
+
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
2476
|
+
inputTokens: z.ZodNumber;
|
|
2477
|
+
outputTokens: z.ZodNumber;
|
|
2478
|
+
totalTokens: z.ZodNumber;
|
|
2479
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
2480
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
2481
|
+
}, z.core.$loose>>;
|
|
1110
2482
|
invocationId: z.ZodString;
|
|
1111
2483
|
text: z.ZodString;
|
|
1112
2484
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -1121,6 +2493,11 @@ export declare const AssistantMessagePayloadSchema: z.ZodObject<{
|
|
|
1121
2493
|
input: z.ZodUnknown;
|
|
1122
2494
|
}, z.core.$loose>>;
|
|
1123
2495
|
}, z.core.$loose>;
|
|
2496
|
+
/** True when a `message.assistant` said nothing: no text and no tool calls (R7.1). */
|
|
2497
|
+
export declare function isEmptyAssistantMessage(payload: {
|
|
2498
|
+
readonly text?: unknown;
|
|
2499
|
+
readonly toolCalls?: readonly unknown[];
|
|
2500
|
+
}): boolean;
|
|
1124
2501
|
/**
|
|
1125
2502
|
* `model.failed`: a model call that failed in a known way (Model Calls §6.4). The turn
|
|
1126
2503
|
* then fails with `model.<code>`, or recovers.
|
|
@@ -1131,6 +2508,20 @@ export declare const ModelFailedPayloadSchema: z.ZodObject<{
|
|
|
1131
2508
|
path: z.ZodString;
|
|
1132
2509
|
delegationId: z.ZodOptional<z.ZodString>;
|
|
1133
2510
|
}, z.core.$loose>>;
|
|
2511
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
2512
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2513
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
2514
|
+
startedAt: z.ZodString;
|
|
2515
|
+
endedAt: z.ZodString;
|
|
2516
|
+
}, z.core.$loose>>;
|
|
2517
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
2518
|
+
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
2519
|
+
inputTokens: z.ZodNumber;
|
|
2520
|
+
outputTokens: z.ZodNumber;
|
|
2521
|
+
totalTokens: z.ZodNumber;
|
|
2522
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
2523
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
2524
|
+
}, z.core.$loose>>;
|
|
1134
2525
|
invocationId: z.ZodOptional<z.ZodString>;
|
|
1135
2526
|
code: z.ZodString;
|
|
1136
2527
|
message: z.ZodString;
|
|
@@ -1138,7 +2529,8 @@ export declare const ModelFailedPayloadSchema: z.ZodObject<{
|
|
|
1138
2529
|
}, z.core.$loose>;
|
|
1139
2530
|
/**
|
|
1140
2531
|
* `context.compacted`: the engine summarized older history to fit the model's window
|
|
1141
|
-
* (Model Calls §8). Token counts are estimates.
|
|
2532
|
+
* (Model Calls §8). Token counts are estimates. `partial: true`: one summary call of several,
|
|
2533
|
+
* in the log for its timing; only the last one (without `partial`) replaced the history.
|
|
1142
2534
|
*/
|
|
1143
2535
|
export declare const ContextCompactedPayloadSchema: z.ZodObject<{
|
|
1144
2536
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -1146,6 +2538,20 @@ export declare const ContextCompactedPayloadSchema: z.ZodObject<{
|
|
|
1146
2538
|
path: z.ZodString;
|
|
1147
2539
|
delegationId: z.ZodOptional<z.ZodString>;
|
|
1148
2540
|
}, z.core.$loose>>;
|
|
2541
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
2542
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2543
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
2544
|
+
startedAt: z.ZodString;
|
|
2545
|
+
endedAt: z.ZodString;
|
|
2546
|
+
}, z.core.$loose>>;
|
|
2547
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
2548
|
+
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
2549
|
+
inputTokens: z.ZodNumber;
|
|
2550
|
+
outputTokens: z.ZodNumber;
|
|
2551
|
+
totalTokens: z.ZodNumber;
|
|
2552
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
2553
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
2554
|
+
}, z.core.$loose>>;
|
|
1149
2555
|
invocationId: z.ZodOptional<z.ZodString>;
|
|
1150
2556
|
trigger: z.ZodEnum<{
|
|
1151
2557
|
overflow: "overflow";
|
|
@@ -1153,8 +2559,38 @@ export declare const ContextCompactedPayloadSchema: z.ZodObject<{
|
|
|
1153
2559
|
}>;
|
|
1154
2560
|
tokensBefore: z.ZodNumber;
|
|
1155
2561
|
tokensAfter: z.ZodNumber;
|
|
2562
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2563
|
+
}, z.core.$loose>;
|
|
2564
|
+
/** How a tool call ended (R5.1): the tool answered, the Runtime ended it, or a cancel did. */
|
|
2565
|
+
export declare const TOOL_CALL_STATUSES: readonly ["completed", "failed", "cancelled"];
|
|
2566
|
+
/** Where a tool call ran (R5.1): a remote MCP server, an HTTP tool, the sandbox, or core. */
|
|
2567
|
+
/**
|
|
2568
|
+
* Where a tool call runs: an MCP server, an HTTP tool's URL, the session's sandbox, the Runtime
|
|
2569
|
+
* itself (`platform`: the artifact, skill and deferred-tool tools), or the harness that runs the
|
|
2570
|
+
* turn (`harness`: a tool it declared in `hello.features.tools`).
|
|
2571
|
+
*/
|
|
2572
|
+
export declare const TOOL_CALL_KINDS: readonly ["mcp", "http", "sandbox", "platform", "harness"];
|
|
2573
|
+
/**
|
|
2574
|
+
* What the Tenant's tool policy did with a tool call (R5 step 2), when it did more than allow
|
|
2575
|
+
* it: `deny` refused it unsent; `ask` held it for a person, who approved it (`approvedBy`, when
|
|
2576
|
+
* known) or denied it.
|
|
2577
|
+
*/
|
|
2578
|
+
export declare const ToolPolicyFactSchema: z.ZodObject<{
|
|
2579
|
+
decision: z.ZodEnum<{
|
|
2580
|
+
ask: "ask";
|
|
2581
|
+
deny: "deny";
|
|
2582
|
+
}>;
|
|
2583
|
+
reason: z.ZodString;
|
|
2584
|
+
approvedBy: z.ZodOptional<z.ZodString>;
|
|
1156
2585
|
}, z.core.$loose>;
|
|
1157
|
-
/**
|
|
2586
|
+
/**
|
|
2587
|
+
* `tool.completed`: how one tool call ended, written once per call (R5.1). `status`
|
|
2588
|
+
* `completed`: the tool answered, with its output or the tool error it reported (`error`).
|
|
2589
|
+
* `failed`: the Runtime ended the call (`tool.disabled`, `tool.unavailable`, `tool.denied`, or
|
|
2590
|
+
* `tool.interrupted` for a call a crash interrupted, which may have run). `cancelled`: the turn
|
|
2591
|
+
* was cancelled while the call ran; it may have run. `attempts` above 1: the call was sent again
|
|
2592
|
+
* after a crash, with the same key.
|
|
2593
|
+
*/
|
|
1158
2594
|
export declare const ToolCompletedPayloadSchema: z.ZodObject<{
|
|
1159
2595
|
agent: z.ZodOptional<z.ZodObject<{
|
|
1160
2596
|
id: z.ZodString;
|
|
@@ -1163,17 +2599,45 @@ export declare const ToolCompletedPayloadSchema: z.ZodObject<{
|
|
|
1163
2599
|
}, z.core.$loose>>;
|
|
1164
2600
|
callId: z.ZodString;
|
|
1165
2601
|
invocationId: z.ZodString;
|
|
1166
|
-
|
|
2602
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
1167
2603
|
toolName: z.ZodString;
|
|
2604
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
2605
|
+
cancelled: "cancelled";
|
|
2606
|
+
completed: "completed";
|
|
2607
|
+
failed: "failed";
|
|
2608
|
+
}>>;
|
|
2609
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
2610
|
+
harness: "harness";
|
|
2611
|
+
http: "http";
|
|
2612
|
+
mcp: "mcp";
|
|
2613
|
+
platform: "platform";
|
|
2614
|
+
sandbox: "sandbox";
|
|
2615
|
+
}>>;
|
|
2616
|
+
server: z.ZodOptional<z.ZodString>;
|
|
2617
|
+
skill: z.ZodOptional<z.ZodString>;
|
|
2618
|
+
plugin: z.ZodOptional<z.ZodObject<{
|
|
2619
|
+
name: z.ZodString;
|
|
2620
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2621
|
+
}, z.core.$strict>>;
|
|
2622
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
2623
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2624
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
2625
|
+
startedAt: z.ZodString;
|
|
2626
|
+
endedAt: z.ZodString;
|
|
2627
|
+
}, z.core.$loose>>;
|
|
2628
|
+
policy: z.ZodOptional<z.ZodObject<{
|
|
2629
|
+
decision: z.ZodEnum<{
|
|
2630
|
+
ask: "ask";
|
|
2631
|
+
deny: "deny";
|
|
2632
|
+
}>;
|
|
2633
|
+
reason: z.ZodString;
|
|
2634
|
+
approvedBy: z.ZodOptional<z.ZodString>;
|
|
2635
|
+
}, z.core.$loose>>;
|
|
1168
2636
|
output: z.ZodOptional<z.ZodUnknown>;
|
|
1169
2637
|
error: z.ZodOptional<z.ZodObject<{
|
|
1170
2638
|
code: z.ZodString;
|
|
1171
2639
|
message: z.ZodString;
|
|
1172
2640
|
server: z.ZodOptional<z.ZodString>;
|
|
1173
|
-
vault: z.ZodOptional<z.ZodEnum<{
|
|
1174
|
-
installation: "installation";
|
|
1175
|
-
user: "user";
|
|
1176
|
-
}>>;
|
|
1177
2641
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
1178
2642
|
}, z.core.$loose>>;
|
|
1179
2643
|
redacted: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1183,6 +2647,14 @@ export declare const EffectUncertainPayloadSchema: z.ZodObject<{
|
|
|
1183
2647
|
message: z.ZodOptional<z.ZodString>;
|
|
1184
2648
|
}, z.core.$loose>;
|
|
1185
2649
|
export declare const TurnCompletedPayloadSchema: z.ZodObject<{
|
|
2650
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2651
|
+
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
2652
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
2653
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
2654
|
+
steps: z.ZodNumber;
|
|
2655
|
+
tokens: z.ZodNumber;
|
|
2656
|
+
costUsd: z.ZodNumber;
|
|
2657
|
+
}, z.core.$loose>>;
|
|
1186
2658
|
output: z.ZodUnknown;
|
|
1187
2659
|
}, z.core.$loose>;
|
|
1188
2660
|
export declare const TurnPausedPayloadSchema: z.ZodObject<{
|
|
@@ -1198,6 +2670,14 @@ export declare const TurnPausedPayloadSchema: z.ZodObject<{
|
|
|
1198
2670
|
}, z.core.$loose>;
|
|
1199
2671
|
/** Either `{ error: { code, message } }` or, when a segment threw, `{ message }`. */
|
|
1200
2672
|
export declare const TurnFailedPayloadSchema: z.ZodObject<{
|
|
2673
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2674
|
+
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
2675
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
2676
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
2677
|
+
steps: z.ZodNumber;
|
|
2678
|
+
tokens: z.ZodNumber;
|
|
2679
|
+
costUsd: z.ZodNumber;
|
|
2680
|
+
}, z.core.$loose>>;
|
|
1201
2681
|
error: z.ZodOptional<z.ZodObject<{
|
|
1202
2682
|
code: z.ZodOptional<z.ZodString>;
|
|
1203
2683
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -1205,6 +2685,14 @@ export declare const TurnFailedPayloadSchema: z.ZodObject<{
|
|
|
1205
2685
|
message: z.ZodOptional<z.ZodString>;
|
|
1206
2686
|
}, z.core.$loose>;
|
|
1207
2687
|
export declare const TurnCancelledPayloadSchema: z.ZodObject<{
|
|
2688
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2689
|
+
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
2690
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
2691
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
2692
|
+
steps: z.ZodNumber;
|
|
2693
|
+
tokens: z.ZodNumber;
|
|
2694
|
+
costUsd: z.ZodNumber;
|
|
2695
|
+
}, z.core.$loose>>;
|
|
1208
2696
|
reason: z.ZodOptional<z.ZodString>;
|
|
1209
2697
|
}, z.core.$loose>;
|
|
1210
2698
|
/** Lifecycle of an agent used as a tool. `agent.delegationId` is the parent call's invocation. */
|
|
@@ -1223,6 +2711,20 @@ declare const TRANSCRIPT_PAYLOADS: {
|
|
|
1223
2711
|
path: z.ZodString;
|
|
1224
2712
|
delegationId: z.ZodOptional<z.ZodString>;
|
|
1225
2713
|
}, z.core.$loose>>;
|
|
2714
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
2715
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2716
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
2717
|
+
startedAt: z.ZodString;
|
|
2718
|
+
endedAt: z.ZodString;
|
|
2719
|
+
}, z.core.$loose>>;
|
|
2720
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
2721
|
+
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
2722
|
+
inputTokens: z.ZodNumber;
|
|
2723
|
+
outputTokens: z.ZodNumber;
|
|
2724
|
+
totalTokens: z.ZodNumber;
|
|
2725
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
2726
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
2727
|
+
}, z.core.$loose>>;
|
|
1226
2728
|
invocationId: z.ZodString;
|
|
1227
2729
|
text: z.ZodString;
|
|
1228
2730
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -1243,6 +2745,20 @@ declare const TRANSCRIPT_PAYLOADS: {
|
|
|
1243
2745
|
path: z.ZodString;
|
|
1244
2746
|
delegationId: z.ZodOptional<z.ZodString>;
|
|
1245
2747
|
}, z.core.$loose>>;
|
|
2748
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
2749
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2750
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
2751
|
+
startedAt: z.ZodString;
|
|
2752
|
+
endedAt: z.ZodString;
|
|
2753
|
+
}, z.core.$loose>>;
|
|
2754
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
2755
|
+
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
2756
|
+
inputTokens: z.ZodNumber;
|
|
2757
|
+
outputTokens: z.ZodNumber;
|
|
2758
|
+
totalTokens: z.ZodNumber;
|
|
2759
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
2760
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
2761
|
+
}, z.core.$loose>>;
|
|
1246
2762
|
invocationId: z.ZodOptional<z.ZodString>;
|
|
1247
2763
|
code: z.ZodString;
|
|
1248
2764
|
message: z.ZodString;
|
|
@@ -1254,6 +2770,20 @@ declare const TRANSCRIPT_PAYLOADS: {
|
|
|
1254
2770
|
path: z.ZodString;
|
|
1255
2771
|
delegationId: z.ZodOptional<z.ZodString>;
|
|
1256
2772
|
}, z.core.$loose>>;
|
|
2773
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
2774
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2775
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
2776
|
+
startedAt: z.ZodString;
|
|
2777
|
+
endedAt: z.ZodString;
|
|
2778
|
+
}, z.core.$loose>>;
|
|
2779
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
2780
|
+
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
2781
|
+
inputTokens: z.ZodNumber;
|
|
2782
|
+
outputTokens: z.ZodNumber;
|
|
2783
|
+
totalTokens: z.ZodNumber;
|
|
2784
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
2785
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
2786
|
+
}, z.core.$loose>>;
|
|
1257
2787
|
invocationId: z.ZodOptional<z.ZodString>;
|
|
1258
2788
|
trigger: z.ZodEnum<{
|
|
1259
2789
|
overflow: "overflow";
|
|
@@ -1261,6 +2791,7 @@ declare const TRANSCRIPT_PAYLOADS: {
|
|
|
1261
2791
|
}>;
|
|
1262
2792
|
tokensBefore: z.ZodNumber;
|
|
1263
2793
|
tokensAfter: z.ZodNumber;
|
|
2794
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1264
2795
|
}, z.core.$loose>;
|
|
1265
2796
|
readonly "tool.completed": z.ZodObject<{
|
|
1266
2797
|
agent: z.ZodOptional<z.ZodObject<{
|
|
@@ -1270,17 +2801,45 @@ declare const TRANSCRIPT_PAYLOADS: {
|
|
|
1270
2801
|
}, z.core.$loose>>;
|
|
1271
2802
|
callId: z.ZodString;
|
|
1272
2803
|
invocationId: z.ZodString;
|
|
1273
|
-
|
|
2804
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
1274
2805
|
toolName: z.ZodString;
|
|
2806
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
2807
|
+
cancelled: "cancelled";
|
|
2808
|
+
completed: "completed";
|
|
2809
|
+
failed: "failed";
|
|
2810
|
+
}>>;
|
|
2811
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
2812
|
+
harness: "harness";
|
|
2813
|
+
http: "http";
|
|
2814
|
+
mcp: "mcp";
|
|
2815
|
+
platform: "platform";
|
|
2816
|
+
sandbox: "sandbox";
|
|
2817
|
+
}>>;
|
|
2818
|
+
server: z.ZodOptional<z.ZodString>;
|
|
2819
|
+
skill: z.ZodOptional<z.ZodString>;
|
|
2820
|
+
plugin: z.ZodOptional<z.ZodObject<{
|
|
2821
|
+
name: z.ZodString;
|
|
2822
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2823
|
+
}, z.core.$strict>>;
|
|
2824
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
2825
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2826
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
2827
|
+
startedAt: z.ZodString;
|
|
2828
|
+
endedAt: z.ZodString;
|
|
2829
|
+
}, z.core.$loose>>;
|
|
2830
|
+
policy: z.ZodOptional<z.ZodObject<{
|
|
2831
|
+
decision: z.ZodEnum<{
|
|
2832
|
+
ask: "ask";
|
|
2833
|
+
deny: "deny";
|
|
2834
|
+
}>;
|
|
2835
|
+
reason: z.ZodString;
|
|
2836
|
+
approvedBy: z.ZodOptional<z.ZodString>;
|
|
2837
|
+
}, z.core.$loose>>;
|
|
1275
2838
|
output: z.ZodOptional<z.ZodUnknown>;
|
|
1276
2839
|
error: z.ZodOptional<z.ZodObject<{
|
|
1277
2840
|
code: z.ZodString;
|
|
1278
2841
|
message: z.ZodString;
|
|
1279
2842
|
server: z.ZodOptional<z.ZodString>;
|
|
1280
|
-
vault: z.ZodOptional<z.ZodEnum<{
|
|
1281
|
-
installation: "installation";
|
|
1282
|
-
user: "user";
|
|
1283
|
-
}>>;
|
|
1284
2843
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
1285
2844
|
}, z.core.$loose>>;
|
|
1286
2845
|
redacted: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1290,6 +2849,14 @@ declare const TRANSCRIPT_PAYLOADS: {
|
|
|
1290
2849
|
message: z.ZodOptional<z.ZodString>;
|
|
1291
2850
|
}, z.core.$loose>;
|
|
1292
2851
|
readonly "turn.completed": z.ZodObject<{
|
|
2852
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2853
|
+
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
2854
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
2855
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
2856
|
+
steps: z.ZodNumber;
|
|
2857
|
+
tokens: z.ZodNumber;
|
|
2858
|
+
costUsd: z.ZodNumber;
|
|
2859
|
+
}, z.core.$loose>>;
|
|
1293
2860
|
output: z.ZodUnknown;
|
|
1294
2861
|
}, z.core.$loose>;
|
|
1295
2862
|
readonly "turn.paused": z.ZodObject<{
|
|
@@ -1304,6 +2871,14 @@ declare const TRANSCRIPT_PAYLOADS: {
|
|
|
1304
2871
|
}, z.core.$loose>>;
|
|
1305
2872
|
}, z.core.$loose>;
|
|
1306
2873
|
readonly "turn.failed": z.ZodObject<{
|
|
2874
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2875
|
+
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
2876
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
2877
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
2878
|
+
steps: z.ZodNumber;
|
|
2879
|
+
tokens: z.ZodNumber;
|
|
2880
|
+
costUsd: z.ZodNumber;
|
|
2881
|
+
}, z.core.$loose>>;
|
|
1307
2882
|
error: z.ZodOptional<z.ZodObject<{
|
|
1308
2883
|
code: z.ZodOptional<z.ZodString>;
|
|
1309
2884
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -1311,6 +2886,14 @@ declare const TRANSCRIPT_PAYLOADS: {
|
|
|
1311
2886
|
message: z.ZodOptional<z.ZodString>;
|
|
1312
2887
|
}, z.core.$loose>;
|
|
1313
2888
|
readonly "turn.cancelled": z.ZodObject<{
|
|
2889
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2890
|
+
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
2891
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
2892
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
2893
|
+
steps: z.ZodNumber;
|
|
2894
|
+
tokens: z.ZodNumber;
|
|
2895
|
+
costUsd: z.ZodNumber;
|
|
2896
|
+
}, z.core.$loose>>;
|
|
1314
2897
|
reason: z.ZodOptional<z.ZodString>;
|
|
1315
2898
|
}, z.core.$loose>;
|
|
1316
2899
|
readonly "delegation.started": z.ZodObject<{
|
|
@@ -1348,6 +2931,10 @@ export declare const CommandMessagePayloadSchema: z.ZodObject<{
|
|
|
1348
2931
|
version: z.ZodOptional<z.ZodNumber>;
|
|
1349
2932
|
}, z.core.$strict>], "type">>>;
|
|
1350
2933
|
manifest: z.ZodOptional<z.ZodUnknown>;
|
|
2934
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
2935
|
+
traceparent: z.ZodString;
|
|
2936
|
+
tracestate: z.ZodOptional<z.ZodString>;
|
|
2937
|
+
}, z.core.$loose>>;
|
|
1351
2938
|
}, z.core.$loose>;
|
|
1352
2939
|
/** `command.approve`: an answer to an approval interaction. */
|
|
1353
2940
|
export declare const CommandApprovePayloadSchema: z.ZodObject<{
|
|
@@ -1365,8 +2952,8 @@ export declare const CommandRespondPayloadSchema: z.ZodObject<{
|
|
|
1365
2952
|
interactionId: z.ZodString;
|
|
1366
2953
|
value: z.ZodUnknown;
|
|
1367
2954
|
}, z.core.$loose>;
|
|
1368
|
-
/** `
|
|
1369
|
-
export declare const
|
|
2955
|
+
/** `environment.state`: the session's sandbox changed state. */
|
|
2956
|
+
export declare const EnvironmentStatePayloadSchema: z.ZodObject<{
|
|
1370
2957
|
state: z.ZodEnum<{
|
|
1371
2958
|
creating: "creating";
|
|
1372
2959
|
running: "running";
|
|
@@ -1382,14 +2969,14 @@ export declare const SandboxStatePayloadSchema: z.ZodObject<{
|
|
|
1382
2969
|
error: z.ZodOptional<z.ZodString>;
|
|
1383
2970
|
}, z.core.$loose>;
|
|
1384
2971
|
/**
|
|
1385
|
-
* `
|
|
1386
|
-
*
|
|
2972
|
+
* `environment.attached`: the session was opened on an Environment (`environment`). The
|
|
2973
|
+
* Environment's own stream records the same attachment.
|
|
1387
2974
|
*/
|
|
1388
|
-
export declare const
|
|
1389
|
-
|
|
2975
|
+
export declare const EnvironmentAttachedPayloadSchema: z.ZodObject<{
|
|
2976
|
+
environmentId: z.ZodString;
|
|
1390
2977
|
}, z.core.$loose>;
|
|
1391
|
-
/** `
|
|
1392
|
-
export declare const
|
|
2978
|
+
/** `environment.exec`: one sandbox tool call finished. */
|
|
2979
|
+
export declare const EnvironmentExecPayloadSchema: z.ZodObject<{
|
|
1393
2980
|
tool: z.ZodString;
|
|
1394
2981
|
command: z.ZodOptional<z.ZodString>;
|
|
1395
2982
|
outcome: z.ZodString;
|
|
@@ -1403,6 +2990,30 @@ export declare const NodeStartedPayloadSchema: z.ZodObject<{
|
|
|
1403
2990
|
key: z.ZodString;
|
|
1404
2991
|
iterations: z.ZodOptional<z.ZodString>;
|
|
1405
2992
|
}, z.core.$loose>;
|
|
2993
|
+
/**
|
|
2994
|
+
* `node.completed`: a flow's HTTP stage or HTTP verifier ended, or a tool stage the Runtime
|
|
2995
|
+
* refused to run (R7.1), named as its `node.started` names it. `status` reads as
|
|
2996
|
+
* `tool.completed`'s: `completed` when the stage's server answered (an error answer included),
|
|
2997
|
+
* `failed` when the Runtime ended it, `cancelled` when a cancel did. `gate` is the Tool Gate's
|
|
2998
|
+
* own start and end of its last send.
|
|
2999
|
+
*/
|
|
3000
|
+
export declare const NodeCompletedPayloadSchema: z.ZodObject<{
|
|
3001
|
+
path: z.ZodString;
|
|
3002
|
+
kind: z.ZodString;
|
|
3003
|
+
key: z.ZodString;
|
|
3004
|
+
iterations: z.ZodOptional<z.ZodString>;
|
|
3005
|
+
effectId: z.ZodString;
|
|
3006
|
+
status: z.ZodEnum<{
|
|
3007
|
+
cancelled: "cancelled";
|
|
3008
|
+
completed: "completed";
|
|
3009
|
+
failed: "failed";
|
|
3010
|
+
}>;
|
|
3011
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3012
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
3013
|
+
startedAt: z.ZodString;
|
|
3014
|
+
endedAt: z.ZodString;
|
|
3015
|
+
}, z.core.$loose>>;
|
|
3016
|
+
}, z.core.$loose>;
|
|
1406
3017
|
/** `node.agent`: a workflow node runs as a linked agent session. */
|
|
1407
3018
|
export declare const NodeAgentPayloadSchema: z.ZodObject<{
|
|
1408
3019
|
path: z.ZodString;
|
|
@@ -1447,6 +3058,7 @@ export declare const TranscriptUpdatedPayloadSchema: z.ZodObject<{
|
|
|
1447
3058
|
export declare const ArtifactSourceSchema: z.ZodEnum<{
|
|
1448
3059
|
engine: "engine";
|
|
1449
3060
|
export: "export";
|
|
3061
|
+
snapshot: "snapshot";
|
|
1450
3062
|
upload: "upload";
|
|
1451
3063
|
}>;
|
|
1452
3064
|
export type ArtifactSource = z.infer<typeof ArtifactSourceSchema>;
|
|
@@ -1478,6 +3090,7 @@ export declare const ArtifactVersionPayloadSchema: z.ZodObject<{
|
|
|
1478
3090
|
source: z.ZodEnum<{
|
|
1479
3091
|
engine: "engine";
|
|
1480
3092
|
export: "export";
|
|
3093
|
+
snapshot: "snapshot";
|
|
1481
3094
|
upload: "upload";
|
|
1482
3095
|
}>;
|
|
1483
3096
|
callId: z.ZodOptional<z.ZodString>;
|
|
@@ -1524,8 +3137,11 @@ export declare const ArtifactExportFailedPayloadSchema: z.ZodObject<{
|
|
|
1524
3137
|
/** What readying one declared MCP server found (`mcp.discovered`). */
|
|
1525
3138
|
export declare const McpServerOutcomeSchema: z.ZodObject<{
|
|
1526
3139
|
agentId: z.ZodOptional<z.ZodString>;
|
|
1527
|
-
capabilityId: z.ZodString;
|
|
1528
3140
|
serverName: z.ZodString;
|
|
3141
|
+
plugin: z.ZodOptional<z.ZodObject<{
|
|
3142
|
+
name: z.ZodString;
|
|
3143
|
+
version: z.ZodOptional<z.ZodString>;
|
|
3144
|
+
}, z.core.$strict>>;
|
|
1529
3145
|
outcome: z.ZodEnum<{
|
|
1530
3146
|
connected: "connected";
|
|
1531
3147
|
failed: "failed";
|
|
@@ -1551,8 +3167,11 @@ export type McpServerOutcome = z.infer<typeof McpServerOutcomeSchema>;
|
|
|
1551
3167
|
export declare const McpDiscoveredPayloadSchema: z.ZodObject<{
|
|
1552
3168
|
servers: z.ZodArray<z.ZodObject<{
|
|
1553
3169
|
agentId: z.ZodOptional<z.ZodString>;
|
|
1554
|
-
capabilityId: z.ZodString;
|
|
1555
3170
|
serverName: z.ZodString;
|
|
3171
|
+
plugin: z.ZodOptional<z.ZodObject<{
|
|
3172
|
+
name: z.ZodString;
|
|
3173
|
+
version: z.ZodOptional<z.ZodString>;
|
|
3174
|
+
}, z.core.$strict>>;
|
|
1556
3175
|
outcome: z.ZodEnum<{
|
|
1557
3176
|
connected: "connected";
|
|
1558
3177
|
failed: "failed";
|
|
@@ -1597,6 +3216,10 @@ export declare const EVENT_CATALOG: {
|
|
|
1597
3216
|
version: z.ZodOptional<z.ZodNumber>;
|
|
1598
3217
|
}, z.core.$strict>], "type">>>;
|
|
1599
3218
|
manifest: z.ZodOptional<z.ZodUnknown>;
|
|
3219
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
3220
|
+
traceparent: z.ZodString;
|
|
3221
|
+
tracestate: z.ZodOptional<z.ZodString>;
|
|
3222
|
+
}, z.core.$loose>>;
|
|
1600
3223
|
}, z.core.$loose>;
|
|
1601
3224
|
readonly source: "api";
|
|
1602
3225
|
readonly version: 1;
|
|
@@ -1625,6 +3248,14 @@ export declare const EVENT_CATALOG: {
|
|
|
1625
3248
|
};
|
|
1626
3249
|
readonly "turn.completed": {
|
|
1627
3250
|
readonly payload: z.ZodObject<{
|
|
3251
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3252
|
+
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
3253
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
3254
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
3255
|
+
steps: z.ZodNumber;
|
|
3256
|
+
tokens: z.ZodNumber;
|
|
3257
|
+
costUsd: z.ZodNumber;
|
|
3258
|
+
}, z.core.$loose>>;
|
|
1628
3259
|
output: z.ZodUnknown;
|
|
1629
3260
|
}, z.core.$loose>;
|
|
1630
3261
|
readonly source: "loop";
|
|
@@ -1647,6 +3278,14 @@ export declare const EVENT_CATALOG: {
|
|
|
1647
3278
|
};
|
|
1648
3279
|
readonly "turn.failed": {
|
|
1649
3280
|
readonly payload: z.ZodObject<{
|
|
3281
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3282
|
+
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
3283
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
3284
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
3285
|
+
steps: z.ZodNumber;
|
|
3286
|
+
tokens: z.ZodNumber;
|
|
3287
|
+
costUsd: z.ZodNumber;
|
|
3288
|
+
}, z.core.$loose>>;
|
|
1650
3289
|
error: z.ZodOptional<z.ZodObject<{
|
|
1651
3290
|
code: z.ZodOptional<z.ZodString>;
|
|
1652
3291
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -1658,6 +3297,14 @@ export declare const EVENT_CATALOG: {
|
|
|
1658
3297
|
};
|
|
1659
3298
|
readonly "turn.cancelled": {
|
|
1660
3299
|
readonly payload: z.ZodObject<{
|
|
3300
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3301
|
+
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
3302
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
3303
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
3304
|
+
steps: z.ZodNumber;
|
|
3305
|
+
tokens: z.ZodNumber;
|
|
3306
|
+
costUsd: z.ZodNumber;
|
|
3307
|
+
}, z.core.$loose>>;
|
|
1661
3308
|
reason: z.ZodOptional<z.ZodString>;
|
|
1662
3309
|
}, z.core.$loose>;
|
|
1663
3310
|
readonly source: "api";
|
|
@@ -1670,6 +3317,20 @@ export declare const EVENT_CATALOG: {
|
|
|
1670
3317
|
path: z.ZodString;
|
|
1671
3318
|
delegationId: z.ZodOptional<z.ZodString>;
|
|
1672
3319
|
}, z.core.$loose>>;
|
|
3320
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
3321
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3322
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
3323
|
+
startedAt: z.ZodString;
|
|
3324
|
+
endedAt: z.ZodString;
|
|
3325
|
+
}, z.core.$loose>>;
|
|
3326
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
3327
|
+
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
3328
|
+
inputTokens: z.ZodNumber;
|
|
3329
|
+
outputTokens: z.ZodNumber;
|
|
3330
|
+
totalTokens: z.ZodNumber;
|
|
3331
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
3332
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3333
|
+
}, z.core.$loose>>;
|
|
1673
3334
|
invocationId: z.ZodString;
|
|
1674
3335
|
text: z.ZodString;
|
|
1675
3336
|
model: z.ZodOptional<z.ZodObject<{
|
|
@@ -1694,6 +3355,20 @@ export declare const EVENT_CATALOG: {
|
|
|
1694
3355
|
path: z.ZodString;
|
|
1695
3356
|
delegationId: z.ZodOptional<z.ZodString>;
|
|
1696
3357
|
}, z.core.$loose>>;
|
|
3358
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
3359
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3360
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
3361
|
+
startedAt: z.ZodString;
|
|
3362
|
+
endedAt: z.ZodString;
|
|
3363
|
+
}, z.core.$loose>>;
|
|
3364
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
3365
|
+
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
3366
|
+
inputTokens: z.ZodNumber;
|
|
3367
|
+
outputTokens: z.ZodNumber;
|
|
3368
|
+
totalTokens: z.ZodNumber;
|
|
3369
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
3370
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3371
|
+
}, z.core.$loose>>;
|
|
1697
3372
|
invocationId: z.ZodOptional<z.ZodString>;
|
|
1698
3373
|
code: z.ZodString;
|
|
1699
3374
|
message: z.ZodString;
|
|
@@ -1709,6 +3384,20 @@ export declare const EVENT_CATALOG: {
|
|
|
1709
3384
|
path: z.ZodString;
|
|
1710
3385
|
delegationId: z.ZodOptional<z.ZodString>;
|
|
1711
3386
|
}, z.core.$loose>>;
|
|
3387
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
3388
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3389
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
3390
|
+
startedAt: z.ZodString;
|
|
3391
|
+
endedAt: z.ZodString;
|
|
3392
|
+
}, z.core.$loose>>;
|
|
3393
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
3394
|
+
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
3395
|
+
inputTokens: z.ZodNumber;
|
|
3396
|
+
outputTokens: z.ZodNumber;
|
|
3397
|
+
totalTokens: z.ZodNumber;
|
|
3398
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
3399
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
3400
|
+
}, z.core.$loose>>;
|
|
1712
3401
|
invocationId: z.ZodOptional<z.ZodString>;
|
|
1713
3402
|
trigger: z.ZodEnum<{
|
|
1714
3403
|
overflow: "overflow";
|
|
@@ -1716,6 +3405,7 @@ export declare const EVENT_CATALOG: {
|
|
|
1716
3405
|
}>;
|
|
1717
3406
|
tokensBefore: z.ZodNumber;
|
|
1718
3407
|
tokensAfter: z.ZodNumber;
|
|
3408
|
+
partial: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1719
3409
|
}, z.core.$loose>;
|
|
1720
3410
|
readonly source: "loop";
|
|
1721
3411
|
readonly version: 1;
|
|
@@ -1727,19 +3417,47 @@ export declare const EVENT_CATALOG: {
|
|
|
1727
3417
|
path: z.ZodString;
|
|
1728
3418
|
delegationId: z.ZodOptional<z.ZodString>;
|
|
1729
3419
|
}, z.core.$loose>>;
|
|
1730
|
-
callId: z.ZodString;
|
|
1731
|
-
invocationId: z.ZodString;
|
|
1732
|
-
|
|
1733
|
-
toolName: z.ZodString;
|
|
3420
|
+
callId: z.ZodString;
|
|
3421
|
+
invocationId: z.ZodString;
|
|
3422
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
3423
|
+
toolName: z.ZodString;
|
|
3424
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
3425
|
+
cancelled: "cancelled";
|
|
3426
|
+
completed: "completed";
|
|
3427
|
+
failed: "failed";
|
|
3428
|
+
}>>;
|
|
3429
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
3430
|
+
harness: "harness";
|
|
3431
|
+
http: "http";
|
|
3432
|
+
mcp: "mcp";
|
|
3433
|
+
platform: "platform";
|
|
3434
|
+
sandbox: "sandbox";
|
|
3435
|
+
}>>;
|
|
3436
|
+
server: z.ZodOptional<z.ZodString>;
|
|
3437
|
+
skill: z.ZodOptional<z.ZodString>;
|
|
3438
|
+
plugin: z.ZodOptional<z.ZodObject<{
|
|
3439
|
+
name: z.ZodString;
|
|
3440
|
+
version: z.ZodOptional<z.ZodString>;
|
|
3441
|
+
}, z.core.$strict>>;
|
|
3442
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
3443
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3444
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
3445
|
+
startedAt: z.ZodString;
|
|
3446
|
+
endedAt: z.ZodString;
|
|
3447
|
+
}, z.core.$loose>>;
|
|
3448
|
+
policy: z.ZodOptional<z.ZodObject<{
|
|
3449
|
+
decision: z.ZodEnum<{
|
|
3450
|
+
ask: "ask";
|
|
3451
|
+
deny: "deny";
|
|
3452
|
+
}>;
|
|
3453
|
+
reason: z.ZodString;
|
|
3454
|
+
approvedBy: z.ZodOptional<z.ZodString>;
|
|
3455
|
+
}, z.core.$loose>>;
|
|
1734
3456
|
output: z.ZodOptional<z.ZodUnknown>;
|
|
1735
3457
|
error: z.ZodOptional<z.ZodObject<{
|
|
1736
3458
|
code: z.ZodString;
|
|
1737
3459
|
message: z.ZodString;
|
|
1738
3460
|
server: z.ZodOptional<z.ZodString>;
|
|
1739
|
-
vault: z.ZodOptional<z.ZodEnum<{
|
|
1740
|
-
installation: "installation";
|
|
1741
|
-
user: "user";
|
|
1742
|
-
}>>;
|
|
1743
3461
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
1744
3462
|
}, z.core.$loose>>;
|
|
1745
3463
|
redacted: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1783,8 +3501,11 @@ export declare const EVENT_CATALOG: {
|
|
|
1783
3501
|
readonly payload: z.ZodObject<{
|
|
1784
3502
|
servers: z.ZodArray<z.ZodObject<{
|
|
1785
3503
|
agentId: z.ZodOptional<z.ZodString>;
|
|
1786
|
-
capabilityId: z.ZodString;
|
|
1787
3504
|
serverName: z.ZodString;
|
|
3505
|
+
plugin: z.ZodOptional<z.ZodObject<{
|
|
3506
|
+
name: z.ZodString;
|
|
3507
|
+
version: z.ZodOptional<z.ZodString>;
|
|
3508
|
+
}, z.core.$strict>>;
|
|
1788
3509
|
outcome: z.ZodEnum<{
|
|
1789
3510
|
connected: "connected";
|
|
1790
3511
|
failed: "failed";
|
|
@@ -1805,7 +3526,7 @@ export declare const EVENT_CATALOG: {
|
|
|
1805
3526
|
readonly source: "loop";
|
|
1806
3527
|
readonly version: 1;
|
|
1807
3528
|
};
|
|
1808
|
-
readonly "
|
|
3529
|
+
readonly "environment.state": {
|
|
1809
3530
|
readonly payload: z.ZodObject<{
|
|
1810
3531
|
state: z.ZodEnum<{
|
|
1811
3532
|
creating: "creating";
|
|
@@ -1824,7 +3545,7 @@ export declare const EVENT_CATALOG: {
|
|
|
1824
3545
|
readonly source: "loop";
|
|
1825
3546
|
readonly version: 1;
|
|
1826
3547
|
};
|
|
1827
|
-
readonly "
|
|
3548
|
+
readonly "environment.exec": {
|
|
1828
3549
|
readonly payload: z.ZodObject<{
|
|
1829
3550
|
tool: z.ZodString;
|
|
1830
3551
|
command: z.ZodOptional<z.ZodString>;
|
|
@@ -1835,9 +3556,9 @@ export declare const EVENT_CATALOG: {
|
|
|
1835
3556
|
readonly source: "loop";
|
|
1836
3557
|
readonly version: 1;
|
|
1837
3558
|
};
|
|
1838
|
-
readonly "
|
|
3559
|
+
readonly "environment.attached": {
|
|
1839
3560
|
readonly payload: z.ZodObject<{
|
|
1840
|
-
|
|
3561
|
+
environmentId: z.ZodString;
|
|
1841
3562
|
}, z.core.$loose>;
|
|
1842
3563
|
readonly source: "api";
|
|
1843
3564
|
readonly version: 1;
|
|
@@ -1852,6 +3573,27 @@ export declare const EVENT_CATALOG: {
|
|
|
1852
3573
|
readonly source: "loop";
|
|
1853
3574
|
readonly version: 1;
|
|
1854
3575
|
};
|
|
3576
|
+
readonly "node.completed": {
|
|
3577
|
+
readonly payload: z.ZodObject<{
|
|
3578
|
+
path: z.ZodString;
|
|
3579
|
+
kind: z.ZodString;
|
|
3580
|
+
key: z.ZodString;
|
|
3581
|
+
iterations: z.ZodOptional<z.ZodString>;
|
|
3582
|
+
effectId: z.ZodString;
|
|
3583
|
+
status: z.ZodEnum<{
|
|
3584
|
+
cancelled: "cancelled";
|
|
3585
|
+
completed: "completed";
|
|
3586
|
+
failed: "failed";
|
|
3587
|
+
}>;
|
|
3588
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3589
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
3590
|
+
startedAt: z.ZodString;
|
|
3591
|
+
endedAt: z.ZodString;
|
|
3592
|
+
}, z.core.$loose>>;
|
|
3593
|
+
}, z.core.$loose>;
|
|
3594
|
+
readonly source: "loop";
|
|
3595
|
+
readonly version: 1;
|
|
3596
|
+
};
|
|
1855
3597
|
readonly "node.agent": {
|
|
1856
3598
|
readonly payload: z.ZodObject<{
|
|
1857
3599
|
path: z.ZodString;
|
|
@@ -1899,6 +3641,7 @@ export declare const EVENT_CATALOG: {
|
|
|
1899
3641
|
source: z.ZodEnum<{
|
|
1900
3642
|
engine: "engine";
|
|
1901
3643
|
export: "export";
|
|
3644
|
+
snapshot: "snapshot";
|
|
1902
3645
|
upload: "upload";
|
|
1903
3646
|
}>;
|
|
1904
3647
|
callId: z.ZodOptional<z.ZodString>;
|
|
@@ -1923,6 +3666,7 @@ export declare const EVENT_CATALOG: {
|
|
|
1923
3666
|
source: z.ZodEnum<{
|
|
1924
3667
|
engine: "engine";
|
|
1925
3668
|
export: "export";
|
|
3669
|
+
snapshot: "snapshot";
|
|
1926
3670
|
upload: "upload";
|
|
1927
3671
|
}>;
|
|
1928
3672
|
callId: z.ZodOptional<z.ZodString>;
|
|
@@ -1994,7 +3738,7 @@ type EventSchemaOf<T extends EventType> = z.ZodObject<typeof eventEnvelope & {
|
|
|
1994
3738
|
/** One schema per event type, keyed by type (the OpenAPI components). */
|
|
1995
3739
|
export declare const EVENT_SCHEMAS: { [T in EventType]: EventSchemaOf<T>; };
|
|
1996
3740
|
/** A session event of a known type, discriminated on `type`. */
|
|
1997
|
-
export declare const SessionEventSchema: z.ZodDiscriminatedUnion<[EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.
|
|
3741
|
+
export declare const SessionEventSchema: z.ZodDiscriminatedUnion<[EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">, ...EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">[]], "type">;
|
|
1998
3742
|
export type SessionEvent = {
|
|
1999
3743
|
[T in EventType]: z.infer<EventSchemaOf<T>>;
|
|
2000
3744
|
}[EventType];
|
|
@@ -2009,7 +3753,7 @@ export type SessionEventOf<T extends EventType> = Extract<SessionEvent, {
|
|
|
2009
3753
|
*/
|
|
2010
3754
|
export declare function parseSessionEvent(value: unknown): SessionEvent | LiveEvent;
|
|
2011
3755
|
export declare const SessionItemsResponseSchema: z.ZodObject<{
|
|
2012
|
-
items: z.ZodArray<z.ZodDiscriminatedUnion<[EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.
|
|
3756
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">, ...EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">[]], "type">>;
|
|
2013
3757
|
cursor: z.ZodNullable<z.ZodString>;
|
|
2014
3758
|
}, z.core.$strip>;
|
|
2015
3759
|
export type SessionItemsResponse = {
|
|
@@ -2227,6 +3971,14 @@ export declare const HostModelViewSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2227
3971
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
2228
3972
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2229
3973
|
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
3974
|
+
inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3975
|
+
audio: "audio";
|
|
3976
|
+
image: "image";
|
|
3977
|
+
office: "office";
|
|
3978
|
+
pdf: "pdf";
|
|
3979
|
+
text: "text";
|
|
3980
|
+
video: "video";
|
|
3981
|
+
}>>>;
|
|
2230
3982
|
compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2231
3983
|
}, z.core.$strict>>;
|
|
2232
3984
|
}, z.core.$strict>]>;
|
|
@@ -2260,6 +4012,14 @@ export declare const TenantStatusSchema: z.ZodObject<{
|
|
|
2260
4012
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
2261
4013
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2262
4014
|
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
4015
|
+
inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4016
|
+
audio: "audio";
|
|
4017
|
+
image: "image";
|
|
4018
|
+
office: "office";
|
|
4019
|
+
pdf: "pdf";
|
|
4020
|
+
text: "text";
|
|
4021
|
+
video: "video";
|
|
4022
|
+
}>>>;
|
|
2263
4023
|
compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2264
4024
|
}, z.core.$strict>>;
|
|
2265
4025
|
}, z.core.$strict>]>;
|
|
@@ -2324,16 +4084,6 @@ export declare const SeedTenantConfigRequestSchema: z.ZodObject<{
|
|
|
2324
4084
|
virtual: "virtual";
|
|
2325
4085
|
}>>;
|
|
2326
4086
|
config: z.ZodOptional<z.ZodObject<{
|
|
2327
|
-
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"virtual">, z.ZodObject<{
|
|
2328
|
-
image: z.ZodOptional<z.ZodString>;
|
|
2329
|
-
network: z.ZodOptional<z.ZodObject<{
|
|
2330
|
-
allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2331
|
-
}, z.core.$strict>>;
|
|
2332
|
-
resources: z.ZodOptional<z.ZodObject<{
|
|
2333
|
-
cpus: z.ZodOptional<z.ZodNumber>;
|
|
2334
|
-
memory: z.ZodOptional<z.ZodString>;
|
|
2335
|
-
}, z.core.$strict>>;
|
|
2336
|
-
}, z.core.$strict>]>>;
|
|
2337
4087
|
limits: z.ZodOptional<z.ZodObject<{
|
|
2338
4088
|
network: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2339
4089
|
resources: z.ZodOptional<z.ZodObject<{
|
|
@@ -2345,14 +4095,9 @@ export declare const SeedTenantConfigRequestSchema: z.ZodObject<{
|
|
|
2345
4095
|
memory: z.ZodOptional<z.ZodString>;
|
|
2346
4096
|
}, z.core.$strict>>;
|
|
2347
4097
|
idle: z.ZodOptional<z.ZodString>;
|
|
2348
|
-
|
|
2349
|
-
ttl: z.ZodOptional<z.ZodString>;
|
|
4098
|
+
environments: z.ZodOptional<z.ZodNumber>;
|
|
2350
4099
|
}, z.core.$strict>>;
|
|
2351
4100
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
2352
|
-
onExpiry: z.ZodOptional<z.ZodEnum<{
|
|
2353
|
-
delete: "delete";
|
|
2354
|
-
retain: "retain";
|
|
2355
|
-
}>>;
|
|
2356
4101
|
stopGrace: z.ZodOptional<z.ZodString>;
|
|
2357
4102
|
}, z.core.$strict>>;
|
|
2358
4103
|
placement: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -2371,6 +4116,14 @@ export declare const SeedTenantConfigRequestSchema: z.ZodObject<{
|
|
|
2371
4116
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
2372
4117
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2373
4118
|
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
4119
|
+
inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4120
|
+
audio: "audio";
|
|
4121
|
+
image: "image";
|
|
4122
|
+
office: "office";
|
|
4123
|
+
pdf: "pdf";
|
|
4124
|
+
text: "text";
|
|
4125
|
+
video: "video";
|
|
4126
|
+
}>>>;
|
|
2374
4127
|
compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2375
4128
|
}, z.core.$strict>>;
|
|
2376
4129
|
auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2396,7 +4149,7 @@ export declare const ResetTenantRequestSchema: z.ZodObject<{
|
|
|
2396
4149
|
requestId: z.ZodString;
|
|
2397
4150
|
scope: z.ZodEnum<{
|
|
2398
4151
|
all: "all";
|
|
2399
|
-
|
|
4152
|
+
environments: "environments";
|
|
2400
4153
|
sessions: "sessions";
|
|
2401
4154
|
}>;
|
|
2402
4155
|
activeWork: z.ZodEnum<{
|
|
@@ -2408,12 +4161,17 @@ export type ResetTenantRequest = z.infer<typeof ResetTenantRequestSchema>;
|
|
|
2408
4161
|
/**
|
|
2409
4162
|
* Acting for a subject (Host feature `subject-headers`): what an application principal may
|
|
2410
4163
|
* narrow a request to. `sessions:own` reaches only the subject's own sessions; the others reach
|
|
2411
|
-
* Tenant-wide resources. `
|
|
2412
|
-
*
|
|
2413
|
-
*
|
|
4164
|
+
* Tenant-wide resources. `environments:write` creates, changes and deletes Environments and
|
|
4165
|
+
* writes their secrets (protocol 11); a token caller's reach only the ids its Environment
|
|
4166
|
+
* grants name.
|
|
2414
4167
|
*/
|
|
2415
|
-
export declare const SUBJECT_SCOPES: readonly ["agents:read", "agents:write", "sessions:own", "
|
|
4168
|
+
export declare const SUBJECT_SCOPES: readonly ["agents:read", "agents:write", "sessions:own", "environments:write"];
|
|
2416
4169
|
export type SubjectScope = (typeof SUBJECT_SCOPES)[number];
|
|
4170
|
+
/**
|
|
4171
|
+
* The owner of a session opened for no person: an MCP server's or HTTP tool's identity header
|
|
4172
|
+
* (R2b C2) names nobody for it. A reserved subject.
|
|
4173
|
+
*/
|
|
4174
|
+
export declare const INSTALLATION_OWNER = "installation";
|
|
2417
4175
|
/** A valid subject: 1–200 visible ASCII characters, not reserved by the Runtime. */
|
|
2418
4176
|
export declare function isSubject(value: unknown): value is string;
|
|
2419
4177
|
/**
|
|
@@ -2431,9 +4189,9 @@ export declare function parseSubjectHeaders(subject: string, scopes: string | un
|
|
|
2431
4189
|
/**
|
|
2432
4190
|
* Scopes a token caller (a trusted issuer's token) may carry: never `agents:write`.
|
|
2433
4191
|
*/
|
|
2434
|
-
export declare const TOKEN_SCOPES: readonly ["agents:read", "sessions:own", "
|
|
2435
|
-
/** The most
|
|
2436
|
-
export declare const
|
|
4192
|
+
export declare const TOKEN_SCOPES: readonly ["agents:read", "sessions:own", "environments:write"];
|
|
4193
|
+
/** The most Environment grants one token caller carries. */
|
|
4194
|
+
export declare const TOKEN_ENVIRONMENT_GRANTS_MAX = 16;
|
|
2437
4195
|
export type TokenScope = (typeof TOKEN_SCOPES)[number];
|
|
2438
4196
|
/**
|
|
2439
4197
|
* The longest a token the Runtime signs itself lives, in seconds (capability links): rotating
|
|
@@ -2531,10 +4289,10 @@ export declare const RevokeSigningKeyRequestSchema: z.ZodObject<{
|
|
|
2531
4289
|
* token scopes, and `studio`, an operator scope no Runtime route requires (Studio
|
|
2532
4290
|
* admits a person who holds it, Tenant-wide).
|
|
2533
4291
|
*/
|
|
2534
|
-
export declare const ISSUER_SCOPES: readonly ["agents:read", "sessions:own", "
|
|
4292
|
+
export declare const ISSUER_SCOPES: readonly ["agents:read", "sessions:own", "environments:write", "studio"];
|
|
2535
4293
|
export type IssuerScope = (typeof ISSUER_SCOPES)[number];
|
|
2536
4294
|
/** Every scope a caller can hold: the subject scopes, and an issuer token's `studio`. */
|
|
2537
|
-
export declare const CALLER_SCOPES: readonly ["agents:read", "agents:write", "sessions:own", "
|
|
4295
|
+
export declare const CALLER_SCOPES: readonly ["agents:read", "agents:write", "sessions:own", "environments:write", "studio"];
|
|
2538
4296
|
export type CallerScope = (typeof CALLER_SCOPES)[number];
|
|
2539
4297
|
/**
|
|
2540
4298
|
* `GET /v1/me`: who the Runtime takes the caller to be, for any credential.
|
|
@@ -2545,20 +4303,20 @@ export type CallerScope = (typeof CALLER_SCOPES)[number];
|
|
|
2545
4303
|
* - `subject` is the person the request acts for; absent for an application key alone.
|
|
2546
4304
|
* - `scopes`: what the caller holds. An application key alone holds every subject scope.
|
|
2547
4305
|
* - `agents`: the agents it may reach, `*` for all.
|
|
2548
|
-
* - `
|
|
2549
|
-
* application key, alone or acting for a subject, which no grant limits.
|
|
4306
|
+
* - `environments`: the Environment grants of a token caller (empty reaches none); absent for
|
|
4307
|
+
* an application key, alone or acting for a subject, which no grant limits.
|
|
2550
4308
|
*/
|
|
2551
4309
|
export declare const MeResponseSchema: z.ZodObject<{
|
|
2552
4310
|
subject: z.ZodOptional<z.ZodString>;
|
|
2553
4311
|
scopes: z.ZodArray<z.ZodEnum<{
|
|
2554
4312
|
"agents:read": "agents:read";
|
|
2555
4313
|
"agents:write": "agents:write";
|
|
2556
|
-
"
|
|
4314
|
+
"environments:write": "environments:write";
|
|
2557
4315
|
"sessions:own": "sessions:own";
|
|
2558
4316
|
studio: "studio";
|
|
2559
4317
|
}>>;
|
|
2560
4318
|
agents: z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>;
|
|
2561
|
-
|
|
4319
|
+
environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2562
4320
|
via: z.ZodString;
|
|
2563
4321
|
}, z.core.$strict>;
|
|
2564
4322
|
export type MeResponse = z.infer<typeof MeResponseSchema>;
|
|
@@ -2600,6 +4358,7 @@ export declare const PutAgentResponseSchema: z.ZodObject<{
|
|
|
2600
4358
|
agentId: z.ZodString;
|
|
2601
4359
|
manifestHash: z.ZodString;
|
|
2602
4360
|
implementationVersion: z.ZodString;
|
|
4361
|
+
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
2603
4362
|
}, z.core.$strict>;
|
|
2604
4363
|
export type PutAgentResponse = z.infer<typeof PutAgentResponseSchema>;
|
|
2605
4364
|
export declare const SESSION_STATUSES: readonly ["idle", "runnable", "running", "waiting", "paused", "uncertain", "completed", "failed", "cancelled"];
|
|
@@ -2661,20 +4420,12 @@ export declare const SessionViewSchema: z.ZodObject<{
|
|
|
2661
4420
|
waiting: "waiting";
|
|
2662
4421
|
}>;
|
|
2663
4422
|
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
sandboxId: z.ZodOptional<z.ZodString>;
|
|
2671
|
-
sandbox: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2672
|
-
sandboxSource: z.ZodOptional<z.ZodEnum<{
|
|
2673
|
-
default: "default";
|
|
2674
|
-
inline: "inline";
|
|
2675
|
-
sandbox: "sandbox";
|
|
2676
|
-
shared: "shared";
|
|
2677
|
-
}>>;
|
|
4423
|
+
environment: z.ZodNullable<z.ZodObject<{
|
|
4424
|
+
id: z.ZodString;
|
|
4425
|
+
version: z.ZodNumber;
|
|
4426
|
+
}, z.core.$strict>>;
|
|
4427
|
+
harness: z.ZodString;
|
|
4428
|
+
closedReason: z.ZodOptional<z.ZodString>;
|
|
2678
4429
|
mcpSnapshot: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2679
4430
|
mcpDiagnostics: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2680
4431
|
waits: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -2701,7 +4452,11 @@ export declare const ResetTenantResponseSchema: z.ZodObject<{
|
|
|
2701
4452
|
ok: z.ZodLiteral<true>;
|
|
2702
4453
|
}, z.core.$strict>;
|
|
2703
4454
|
export type ResetTenantResponse = z.infer<typeof ResetTenantResponseSchema>;
|
|
2704
|
-
/**
|
|
4455
|
+
/**
|
|
4456
|
+
* `GET /v1/tenant/models`: public provider and model names, no credentials. Each model says what
|
|
4457
|
+
* it reads (`inputs`: its catalog's list and the operator's additions) and what the operator may
|
|
4458
|
+
* add (`addableInputs`, protocol 12).
|
|
4459
|
+
*/
|
|
2705
4460
|
export declare const HostModelCatalogSchema: z.ZodObject<{
|
|
2706
4461
|
providers: z.ZodArray<z.ZodObject<{
|
|
2707
4462
|
id: z.ZodString;
|
|
@@ -2709,6 +4464,22 @@ export declare const HostModelCatalogSchema: z.ZodObject<{
|
|
|
2709
4464
|
models: z.ZodArray<z.ZodObject<{
|
|
2710
4465
|
id: z.ZodString;
|
|
2711
4466
|
name: z.ZodString;
|
|
4467
|
+
inputs: z.ZodArray<z.ZodEnum<{
|
|
4468
|
+
audio: "audio";
|
|
4469
|
+
image: "image";
|
|
4470
|
+
office: "office";
|
|
4471
|
+
pdf: "pdf";
|
|
4472
|
+
text: "text";
|
|
4473
|
+
video: "video";
|
|
4474
|
+
}>>;
|
|
4475
|
+
addableInputs: z.ZodArray<z.ZodEnum<{
|
|
4476
|
+
audio: "audio";
|
|
4477
|
+
image: "image";
|
|
4478
|
+
office: "office";
|
|
4479
|
+
pdf: "pdf";
|
|
4480
|
+
text: "text";
|
|
4481
|
+
video: "video";
|
|
4482
|
+
}>>;
|
|
2712
4483
|
}, z.core.$strict>>;
|
|
2713
4484
|
}, z.core.$strict>>;
|
|
2714
4485
|
}, z.core.$strict>;
|
|
@@ -2726,11 +4497,60 @@ export declare const HostModelProviderInfoSchema: z.ZodObject<{
|
|
|
2726
4497
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
2727
4498
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2728
4499
|
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
4500
|
+
inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4501
|
+
audio: "audio";
|
|
4502
|
+
image: "image";
|
|
4503
|
+
office: "office";
|
|
4504
|
+
pdf: "pdf";
|
|
4505
|
+
text: "text";
|
|
4506
|
+
video: "video";
|
|
4507
|
+
}>>>;
|
|
2729
4508
|
compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2730
4509
|
}, z.core.$strict>>;
|
|
4510
|
+
inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4511
|
+
audio: "audio";
|
|
4512
|
+
image: "image";
|
|
4513
|
+
office: "office";
|
|
4514
|
+
pdf: "pdf";
|
|
4515
|
+
text: "text";
|
|
4516
|
+
video: "video";
|
|
4517
|
+
}>>>;
|
|
2731
4518
|
lastUpdated: z.ZodString;
|
|
2732
4519
|
active: z.ZodBoolean;
|
|
2733
4520
|
}, z.core.$strict>;
|
|
4521
|
+
/**
|
|
4522
|
+
* `PUT /v1/tenant/models/inputs`: the inputs one catalog model reads (protocol 12), replacing
|
|
4523
|
+
* what the operator added before. Its catalog's own inputs always stay; an empty list removes
|
|
4524
|
+
* the additions. A custom endpoint sets `settings.inputs` on `PUT /v1/tenant/model` instead.
|
|
4525
|
+
*/
|
|
4526
|
+
export declare const PutModelInputsRequestSchema: z.ZodObject<{
|
|
4527
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4528
|
+
provider: z.ZodString;
|
|
4529
|
+
model: z.ZodString;
|
|
4530
|
+
inputs: z.ZodArray<z.ZodEnum<{
|
|
4531
|
+
audio: "audio";
|
|
4532
|
+
image: "image";
|
|
4533
|
+
office: "office";
|
|
4534
|
+
pdf: "pdf";
|
|
4535
|
+
text: "text";
|
|
4536
|
+
video: "video";
|
|
4537
|
+
}>>;
|
|
4538
|
+
}, z.core.$strict>;
|
|
4539
|
+
export type PutModelInputsRequest = z.infer<typeof PutModelInputsRequestSchema>;
|
|
4540
|
+
/** What one catalog model reads now: its catalog's inputs and the operator's additions. */
|
|
4541
|
+
export declare const ModelInputsViewSchema: z.ZodObject<{
|
|
4542
|
+
provider: z.ZodString;
|
|
4543
|
+
model: z.ZodString;
|
|
4544
|
+
inputs: z.ZodArray<z.ZodEnum<{
|
|
4545
|
+
audio: "audio";
|
|
4546
|
+
image: "image";
|
|
4547
|
+
office: "office";
|
|
4548
|
+
pdf: "pdf";
|
|
4549
|
+
text: "text";
|
|
4550
|
+
video: "video";
|
|
4551
|
+
}>>;
|
|
4552
|
+
}, z.core.$strict>;
|
|
4553
|
+
export type ModelInputsView = z.infer<typeof ModelInputsViewSchema>;
|
|
2734
4554
|
export declare const ListProvidersResponseSchema: z.ZodObject<{
|
|
2735
4555
|
providers: z.ZodArray<z.ZodObject<{
|
|
2736
4556
|
id: z.ZodString;
|
|
@@ -2745,25 +4565,31 @@ export declare const ListProvidersResponseSchema: z.ZodObject<{
|
|
|
2745
4565
|
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
2746
4566
|
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
2747
4567
|
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
4568
|
+
inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4569
|
+
audio: "audio";
|
|
4570
|
+
image: "image";
|
|
4571
|
+
office: "office";
|
|
4572
|
+
pdf: "pdf";
|
|
4573
|
+
text: "text";
|
|
4574
|
+
video: "video";
|
|
4575
|
+
}>>>;
|
|
2748
4576
|
compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2749
4577
|
}, z.core.$strict>>;
|
|
4578
|
+
inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4579
|
+
audio: "audio";
|
|
4580
|
+
image: "image";
|
|
4581
|
+
office: "office";
|
|
4582
|
+
pdf: "pdf";
|
|
4583
|
+
text: "text";
|
|
4584
|
+
video: "video";
|
|
4585
|
+
}>>>;
|
|
2750
4586
|
lastUpdated: z.ZodString;
|
|
2751
4587
|
active: z.ZodBoolean;
|
|
2752
4588
|
}, z.core.$strict>>;
|
|
2753
4589
|
}, z.core.$strict>;
|
|
2754
4590
|
export type ListProvidersResponse = z.infer<typeof ListProvidersResponseSchema>;
|
|
2755
|
-
/** A Tenant's
|
|
4591
|
+
/** A Tenant's Environment settings with every default applied (sizes in MiB). */
|
|
2756
4592
|
export declare const EffectiveSandboxConfigSchema: z.ZodObject<{
|
|
2757
|
-
default: z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"virtual">, z.ZodObject<{
|
|
2758
|
-
image: z.ZodOptional<z.ZodString>;
|
|
2759
|
-
network: z.ZodOptional<z.ZodObject<{
|
|
2760
|
-
allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2761
|
-
}, z.core.$strict>>;
|
|
2762
|
-
resources: z.ZodOptional<z.ZodObject<{
|
|
2763
|
-
cpus: z.ZodOptional<z.ZodNumber>;
|
|
2764
|
-
memory: z.ZodOptional<z.ZodString>;
|
|
2765
|
-
}, z.core.$strict>>;
|
|
2766
|
-
}, z.core.$strict>]>;
|
|
2767
4593
|
limits: z.ZodObject<{
|
|
2768
4594
|
network: z.ZodArray<z.ZodString>;
|
|
2769
4595
|
resources: z.ZodObject<{
|
|
@@ -2775,14 +4601,9 @@ export declare const EffectiveSandboxConfigSchema: z.ZodObject<{
|
|
|
2775
4601
|
memoryMiB: z.ZodNumber;
|
|
2776
4602
|
}, z.core.$strict>;
|
|
2777
4603
|
idle: z.ZodString;
|
|
2778
|
-
|
|
2779
|
-
ttl: z.ZodOptional<z.ZodString>;
|
|
4604
|
+
environments: z.ZodOptional<z.ZodNumber>;
|
|
2780
4605
|
}, z.core.$strict>;
|
|
2781
4606
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
2782
|
-
onExpiry: z.ZodEnum<{
|
|
2783
|
-
delete: "delete";
|
|
2784
|
-
retain: "retain";
|
|
2785
|
-
}>;
|
|
2786
4607
|
stopGrace: z.ZodString;
|
|
2787
4608
|
}, z.core.$strict>>;
|
|
2788
4609
|
placement: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -2823,16 +4644,6 @@ export declare const TenantSandboxViewSchema: z.ZodObject<{
|
|
|
2823
4644
|
}, z.core.$strict>>;
|
|
2824
4645
|
defaultImage: z.ZodString;
|
|
2825
4646
|
config: z.ZodObject<{
|
|
2826
|
-
default: z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"virtual">, z.ZodObject<{
|
|
2827
|
-
image: z.ZodOptional<z.ZodString>;
|
|
2828
|
-
network: z.ZodOptional<z.ZodObject<{
|
|
2829
|
-
allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2830
|
-
}, z.core.$strict>>;
|
|
2831
|
-
resources: z.ZodOptional<z.ZodObject<{
|
|
2832
|
-
cpus: z.ZodOptional<z.ZodNumber>;
|
|
2833
|
-
memory: z.ZodOptional<z.ZodString>;
|
|
2834
|
-
}, z.core.$strict>>;
|
|
2835
|
-
}, z.core.$strict>]>;
|
|
2836
4647
|
limits: z.ZodObject<{
|
|
2837
4648
|
network: z.ZodArray<z.ZodString>;
|
|
2838
4649
|
resources: z.ZodObject<{
|
|
@@ -2844,14 +4655,9 @@ export declare const TenantSandboxViewSchema: z.ZodObject<{
|
|
|
2844
4655
|
memoryMiB: z.ZodNumber;
|
|
2845
4656
|
}, z.core.$strict>;
|
|
2846
4657
|
idle: z.ZodString;
|
|
2847
|
-
|
|
2848
|
-
ttl: z.ZodOptional<z.ZodString>;
|
|
4658
|
+
environments: z.ZodOptional<z.ZodNumber>;
|
|
2849
4659
|
}, z.core.$strict>;
|
|
2850
4660
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
2851
|
-
onExpiry: z.ZodEnum<{
|
|
2852
|
-
delete: "delete";
|
|
2853
|
-
retain: "retain";
|
|
2854
|
-
}>;
|
|
2855
4661
|
stopGrace: z.ZodString;
|
|
2856
4662
|
}, z.core.$strict>>;
|
|
2857
4663
|
placement: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -2970,49 +4776,112 @@ export declare const ModelBudgetsSchema: z.ZodObject<{
|
|
|
2970
4776
|
}, z.core.$strict>>;
|
|
2971
4777
|
}, z.core.$strict>;
|
|
2972
4778
|
export type ModelBudgets = z.infer<typeof ModelBudgetsSchema>;
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
4779
|
+
/** What a tool policy rule does to a call it matches (R5 step 2). */
|
|
4780
|
+
export declare const TOOL_POLICY_EFFECTS: readonly ["allow", "ask", "deny"];
|
|
4781
|
+
/** A test of one field of a tool call's input; every test it sets must hold. */
|
|
4782
|
+
export declare const ToolInputConditionSchema: z.ZodObject<{
|
|
4783
|
+
equals: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
4784
|
+
in: z.ZodOptional<z.ZodArray<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
4785
|
+
gt: z.ZodOptional<z.ZodNumber>;
|
|
4786
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
4787
|
+
lt: z.ZodOptional<z.ZodNumber>;
|
|
4788
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
4789
|
+
matches: z.ZodOptional<z.ZodString>;
|
|
4790
|
+
}, z.core.$strict>;
|
|
4791
|
+
export type ToolInputCondition = z.infer<typeof ToolInputConditionSchema>;
|
|
4792
|
+
/**
|
|
4793
|
+
* One rule of the Tenant's tool policy (R5 step 2), applied at the Tool Gate to every MCP and
|
|
4794
|
+
* HTTP tool call of every harness. A rule matches a call when every selector it sets matches:
|
|
4795
|
+
* `tool` (the name the model calls it by, `*` for any run of characters), `server` (an MCP
|
|
4796
|
+
* server's name), `kind`, `agent` (the agent that calls it) and `when` (fields of the input, by
|
|
4797
|
+
* dotted path). The strictest matching rule decides: `deny` refuses the call before it is sent,
|
|
4798
|
+
* `ask` holds it until a person approves it on the session (`approve`), `allow` runs it. A call no
|
|
4799
|
+
* rule matches runs. Sandbox tools never cross the gate; their network side is egress policy.
|
|
4800
|
+
*/
|
|
4801
|
+
export declare const ToolRuleSchema: z.ZodObject<{
|
|
4802
|
+
effect: z.ZodEnum<{
|
|
4803
|
+
allow: "allow";
|
|
4804
|
+
ask: "ask";
|
|
4805
|
+
deny: "deny";
|
|
4806
|
+
}>;
|
|
4807
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
4808
|
+
server: z.ZodOptional<z.ZodString>;
|
|
4809
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
4810
|
+
http: "http";
|
|
4811
|
+
mcp: "mcp";
|
|
4812
|
+
}>>;
|
|
4813
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
4814
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4815
|
+
equals: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
4816
|
+
in: z.ZodOptional<z.ZodArray<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
4817
|
+
gt: z.ZodOptional<z.ZodNumber>;
|
|
4818
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
4819
|
+
lt: z.ZodOptional<z.ZodNumber>;
|
|
4820
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
4821
|
+
matches: z.ZodOptional<z.ZodString>;
|
|
4822
|
+
}, z.core.$strict>>>;
|
|
4823
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4824
|
+
}, z.core.$strict>;
|
|
4825
|
+
export type ToolRule = z.infer<typeof ToolRuleSchema>;
|
|
4826
|
+
/** `PUT /v1/tenant/tool-policy`: replaces every rule. An empty list allows every call. */
|
|
4827
|
+
export declare const PutToolPolicyRequestSchema: z.ZodObject<{
|
|
4828
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
4829
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
4830
|
+
effect: z.ZodEnum<{
|
|
4831
|
+
allow: "allow";
|
|
4832
|
+
ask: "ask";
|
|
4833
|
+
deny: "deny";
|
|
4834
|
+
}>;
|
|
4835
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
4836
|
+
server: z.ZodOptional<z.ZodString>;
|
|
4837
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
4838
|
+
http: "http";
|
|
4839
|
+
mcp: "mcp";
|
|
4840
|
+
}>>;
|
|
4841
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
4842
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4843
|
+
equals: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
4844
|
+
in: z.ZodOptional<z.ZodArray<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
4845
|
+
gt: z.ZodOptional<z.ZodNumber>;
|
|
4846
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
4847
|
+
lt: z.ZodOptional<z.ZodNumber>;
|
|
4848
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
4849
|
+
matches: z.ZodOptional<z.ZodString>;
|
|
4850
|
+
}, z.core.$strict>>>;
|
|
4851
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2980
4852
|
}, z.core.$strict>>;
|
|
2981
4853
|
}, z.core.$strict>;
|
|
2982
|
-
export type
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
environment_secret: "environment_secret";
|
|
2991
|
-
environment_variable: "environment_variable";
|
|
2992
|
-
headers: "headers";
|
|
4854
|
+
export type PutToolPolicyRequest = z.infer<typeof PutToolPolicyRequestSchema>;
|
|
4855
|
+
/** The Tenant's tool policy; `updatedAt` is null until one is set. */
|
|
4856
|
+
export declare const ToolPolicySchema: z.ZodObject<{
|
|
4857
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
4858
|
+
effect: z.ZodEnum<{
|
|
4859
|
+
allow: "allow";
|
|
4860
|
+
ask: "ask";
|
|
4861
|
+
deny: "deny";
|
|
2993
4862
|
}>;
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
}, z.core.$strict
|
|
3010
|
-
|
|
3011
|
-
rotatedAt: z.ZodOptional<z.ZodString>;
|
|
4863
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
4864
|
+
server: z.ZodOptional<z.ZodString>;
|
|
4865
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
4866
|
+
http: "http";
|
|
4867
|
+
mcp: "mcp";
|
|
4868
|
+
}>>;
|
|
4869
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
4870
|
+
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4871
|
+
equals: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
4872
|
+
in: z.ZodOptional<z.ZodArray<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
4873
|
+
gt: z.ZodOptional<z.ZodNumber>;
|
|
4874
|
+
gte: z.ZodOptional<z.ZodNumber>;
|
|
4875
|
+
lt: z.ZodOptional<z.ZodNumber>;
|
|
4876
|
+
lte: z.ZodOptional<z.ZodNumber>;
|
|
4877
|
+
matches: z.ZodOptional<z.ZodString>;
|
|
4878
|
+
}, z.core.$strict>>>;
|
|
4879
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3012
4880
|
}, z.core.$strict>>;
|
|
4881
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
3013
4882
|
}, z.core.$strict>;
|
|
3014
|
-
export type
|
|
3015
|
-
/** A deleted
|
|
4883
|
+
export type ToolPolicy = z.infer<typeof ToolPolicySchema>;
|
|
4884
|
+
/** A deleted resource. */
|
|
3016
4885
|
export declare const DeletedResponseSchema: z.ZodObject<{
|
|
3017
4886
|
id: z.ZodString;
|
|
3018
4887
|
}, z.core.$strict>;
|
|
@@ -3032,12 +4901,21 @@ export type StreamClosedFrame = z.infer<typeof StreamClosedFrameSchema>;
|
|
|
3032
4901
|
* (another turn is running) or `runtime_error` (the Runtime failed). Never an HTTP body's code.
|
|
3033
4902
|
*/
|
|
3034
4903
|
export declare const AgUiRunErrorCodeSchema: z.ZodEnum<{
|
|
4904
|
+
attachment_unsupported: "attachment_unsupported";
|
|
3035
4905
|
connection_missing: "connection_missing";
|
|
3036
4906
|
credential_conflict: "credential_conflict";
|
|
3037
4907
|
credential_invalid: "credential_invalid";
|
|
3038
4908
|
credential_rejected: "credential_rejected";
|
|
3039
4909
|
credential_required: "credential_required";
|
|
3040
4910
|
definition_files_missing: "definition_files_missing";
|
|
4911
|
+
environment_busy: "environment_busy";
|
|
4912
|
+
environment_immutable: "environment_immutable";
|
|
4913
|
+
environment_lost: "environment_lost";
|
|
4914
|
+
environment_not_granted: "environment_not_granted";
|
|
4915
|
+
environment_owner_mismatch: "environment_owner_mismatch";
|
|
4916
|
+
environment_unavailable: "environment_unavailable";
|
|
4917
|
+
environment_unsuitable: "environment_unsuitable";
|
|
4918
|
+
harness_mismatch: "harness_mismatch";
|
|
3041
4919
|
host_rejected: "host_rejected";
|
|
3042
4920
|
incompatible_host: "incompatible_host";
|
|
3043
4921
|
internal_error: "internal_error";
|
|
@@ -3045,6 +4923,9 @@ export declare const AgUiRunErrorCodeSchema: z.ZodEnum<{
|
|
|
3045
4923
|
issuer_unavailable: "issuer_unavailable";
|
|
3046
4924
|
key_role_mismatch: "key_role_mismatch";
|
|
3047
4925
|
limit_exceeded: "limit_exceeded";
|
|
4926
|
+
manifest_changed: "manifest_changed";
|
|
4927
|
+
manifest_in_use: "manifest_in_use";
|
|
4928
|
+
manifest_not_found: "manifest_not_found";
|
|
3048
4929
|
mcp_preview_failed: "mcp_preview_failed";
|
|
3049
4930
|
not_found: "not_found";
|
|
3050
4931
|
origin_rejected: "origin_rejected";
|
|
@@ -3052,13 +4933,10 @@ export declare const AgUiRunErrorCodeSchema: z.ZodEnum<{
|
|
|
3052
4933
|
protocol_unsupported: "protocol_unsupported";
|
|
3053
4934
|
request_rejected: "request_rejected";
|
|
3054
4935
|
runtime_error: "runtime_error";
|
|
3055
|
-
sandbox_busy: "sandbox_busy";
|
|
3056
|
-
sandbox_expired: "sandbox_expired";
|
|
3057
|
-
sandbox_lost: "sandbox_lost";
|
|
3058
|
-
sandbox_not_granted: "sandbox_not_granted";
|
|
3059
|
-
sandbox_unavailable: "sandbox_unavailable";
|
|
3060
4936
|
scope_required: "scope_required";
|
|
4937
|
+
secret_not_in_manifest: "secret_not_in_manifest";
|
|
3061
4938
|
session_busy: "session_busy";
|
|
4939
|
+
session_closed: "session_closed";
|
|
3062
4940
|
subject_invalid: "subject_invalid";
|
|
3063
4941
|
subject_required: "subject_required";
|
|
3064
4942
|
token_expired: "token_expired";
|
|
@@ -3219,6 +5097,7 @@ export declare const ArtifactVersionViewSchema: z.ZodObject<{
|
|
|
3219
5097
|
source: z.ZodEnum<{
|
|
3220
5098
|
engine: "engine";
|
|
3221
5099
|
export: "export";
|
|
5100
|
+
snapshot: "snapshot";
|
|
3222
5101
|
upload: "upload";
|
|
3223
5102
|
}>;
|
|
3224
5103
|
createdAt: z.ZodString;
|
|
@@ -3237,6 +5116,7 @@ export declare const ArtifactViewSchema: z.ZodObject<{
|
|
|
3237
5116
|
name: z.ZodString;
|
|
3238
5117
|
contentType: z.ZodString;
|
|
3239
5118
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
5119
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
3240
5120
|
latestVersion: z.ZodNumber;
|
|
3241
5121
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3242
5122
|
createdAt: z.ZodString;
|
|
@@ -3249,6 +5129,7 @@ export declare const ArtifactViewSchema: z.ZodObject<{
|
|
|
3249
5129
|
source: z.ZodEnum<{
|
|
3250
5130
|
engine: "engine";
|
|
3251
5131
|
export: "export";
|
|
5132
|
+
snapshot: "snapshot";
|
|
3252
5133
|
upload: "upload";
|
|
3253
5134
|
}>;
|
|
3254
5135
|
createdAt: z.ZodString;
|
|
@@ -3265,6 +5146,7 @@ export declare const ListArtifactsResponseSchema: z.ZodObject<{
|
|
|
3265
5146
|
name: z.ZodString;
|
|
3266
5147
|
contentType: z.ZodString;
|
|
3267
5148
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
5149
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
3268
5150
|
latestVersion: z.ZodNumber;
|
|
3269
5151
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3270
5152
|
createdAt: z.ZodString;
|
|
@@ -3277,6 +5159,7 @@ export declare const ListArtifactsResponseSchema: z.ZodObject<{
|
|
|
3277
5159
|
source: z.ZodEnum<{
|
|
3278
5160
|
engine: "engine";
|
|
3279
5161
|
export: "export";
|
|
5162
|
+
snapshot: "snapshot";
|
|
3280
5163
|
upload: "upload";
|
|
3281
5164
|
}>;
|
|
3282
5165
|
createdAt: z.ZodString;
|
|
@@ -3284,6 +5167,42 @@ export declare const ListArtifactsResponseSchema: z.ZodObject<{
|
|
|
3284
5167
|
}, z.core.$strict>>;
|
|
3285
5168
|
}, z.core.$strict>;
|
|
3286
5169
|
export type ListArtifactsResponse = z.infer<typeof ListArtifactsResponseSchema>;
|
|
5170
|
+
/** Paged metadata only; read the artifact separately for its version history and bytes. */
|
|
5171
|
+
export declare const ArtifactListItemSchema: z.ZodObject<{
|
|
5172
|
+
artifactId: z.ZodString;
|
|
5173
|
+
kind: z.ZodEnum<{
|
|
5174
|
+
file: "file";
|
|
5175
|
+
folder: "folder";
|
|
5176
|
+
}>;
|
|
5177
|
+
name: z.ZodString;
|
|
5178
|
+
contentType: z.ZodString;
|
|
5179
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
5180
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
5181
|
+
latestVersion: z.ZodNumber;
|
|
5182
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5183
|
+
createdAt: z.ZodString;
|
|
5184
|
+
updatedAt: z.ZodString;
|
|
5185
|
+
}, z.core.$strict>;
|
|
5186
|
+
export type ArtifactListItem = z.infer<typeof ArtifactListItemSchema>;
|
|
5187
|
+
export declare const ArtifactPageSchema: z.ZodObject<{
|
|
5188
|
+
artifacts: z.ZodArray<z.ZodObject<{
|
|
5189
|
+
artifactId: z.ZodString;
|
|
5190
|
+
kind: z.ZodEnum<{
|
|
5191
|
+
file: "file";
|
|
5192
|
+
folder: "folder";
|
|
5193
|
+
}>;
|
|
5194
|
+
name: z.ZodString;
|
|
5195
|
+
contentType: z.ZodString;
|
|
5196
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
5197
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
5198
|
+
latestVersion: z.ZodNumber;
|
|
5199
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5200
|
+
createdAt: z.ZodString;
|
|
5201
|
+
updatedAt: z.ZodString;
|
|
5202
|
+
}, z.core.$strict>>;
|
|
5203
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
5204
|
+
}, z.core.$strict>;
|
|
5205
|
+
export type ArtifactPage = z.infer<typeof ArtifactPageSchema>;
|
|
3287
5206
|
/** What an upload answers: the artifact, and the version the upload created. */
|
|
3288
5207
|
export declare const UploadArtifactResponseSchema: z.ZodObject<{
|
|
3289
5208
|
artifact: z.ZodObject<{
|
|
@@ -3295,6 +5214,7 @@ export declare const UploadArtifactResponseSchema: z.ZodObject<{
|
|
|
3295
5214
|
name: z.ZodString;
|
|
3296
5215
|
contentType: z.ZodString;
|
|
3297
5216
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
5217
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
3298
5218
|
latestVersion: z.ZodNumber;
|
|
3299
5219
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3300
5220
|
createdAt: z.ZodString;
|
|
@@ -3307,6 +5227,7 @@ export declare const UploadArtifactResponseSchema: z.ZodObject<{
|
|
|
3307
5227
|
source: z.ZodEnum<{
|
|
3308
5228
|
engine: "engine";
|
|
3309
5229
|
export: "export";
|
|
5230
|
+
snapshot: "snapshot";
|
|
3310
5231
|
upload: "upload";
|
|
3311
5232
|
}>;
|
|
3312
5233
|
createdAt: z.ZodString;
|
|
@@ -3320,6 +5241,7 @@ export declare const UploadArtifactResponseSchema: z.ZodObject<{
|
|
|
3320
5241
|
source: z.ZodEnum<{
|
|
3321
5242
|
engine: "engine";
|
|
3322
5243
|
export: "export";
|
|
5244
|
+
snapshot: "snapshot";
|
|
3323
5245
|
upload: "upload";
|
|
3324
5246
|
}>;
|
|
3325
5247
|
createdAt: z.ZodString;
|
|
@@ -3361,18 +5283,35 @@ export type ArtifactLink = z.infer<typeof ArtifactLinkSchema>;
|
|
|
3361
5283
|
export declare const FOLDER_CONTENT_TYPE = "application/vnd.nylorun.folder+json";
|
|
3362
5284
|
/** The manifest format a folder version is stored as. */
|
|
3363
5285
|
export declare const FOLDER_MANIFEST_FORMAT = "nylorun.folder.v1";
|
|
5286
|
+
/**
|
|
5287
|
+
* The manifest format of an Environment's disk versions (R2d step 3): v1's entries, plus file
|
|
5288
|
+
* modes and modification times, symbolic links and empty directories. Readers accept both.
|
|
5289
|
+
*/
|
|
5290
|
+
export declare const FOLDER_MANIFEST_FORMAT_V2 = "nylorun.folder.v2";
|
|
3364
5291
|
/** The folder artifact a session's turn-end export writes, one per session. */
|
|
3365
5292
|
export declare const OUTPUTS_ARTIFACT_NAME = "outputs";
|
|
3366
5293
|
/** The most files one turn-end export stores; past it the export is skipped. */
|
|
3367
5294
|
export declare const EXPORT_MAX_FILES = 10000;
|
|
3368
5295
|
/** The most bytes one turn-end export stores (before dedupe); past it the export is skipped. */
|
|
3369
5296
|
export declare const EXPORT_MAX_BYTES: number;
|
|
3370
|
-
/**
|
|
5297
|
+
/**
|
|
5298
|
+
* One file of a folder: its path in the folder (`/`-separated, relative), size, hash and type.
|
|
5299
|
+
* In a v2 manifest an entry may also be a symbolic link (`type: "link"`, its `target`) or an
|
|
5300
|
+
* empty directory (`type: "dir"`), with no bytes (`size` 0, `sha256` and `contentType` empty),
|
|
5301
|
+
* and any entry may carry its `mode` and `mtimeMs`.
|
|
5302
|
+
*/
|
|
3371
5303
|
export declare const FolderEntrySchema: z.ZodObject<{
|
|
3372
5304
|
path: z.ZodString;
|
|
3373
5305
|
size: z.ZodNumber;
|
|
3374
5306
|
sha256: z.ZodString;
|
|
3375
5307
|
contentType: z.ZodString;
|
|
5308
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
5309
|
+
dir: "dir";
|
|
5310
|
+
link: "link";
|
|
5311
|
+
}>>;
|
|
5312
|
+
mode: z.ZodOptional<z.ZodNumber>;
|
|
5313
|
+
mtimeMs: z.ZodOptional<z.ZodNumber>;
|
|
5314
|
+
target: z.ZodOptional<z.ZodString>;
|
|
3376
5315
|
}, z.core.$strict>;
|
|
3377
5316
|
export type FolderEntry = z.infer<typeof FolderEntrySchema>;
|
|
3378
5317
|
/**
|
|
@@ -3380,12 +5319,22 @@ export type FolderEntry = z.infer<typeof FolderEntrySchema>;
|
|
|
3380
5319
|
* bytes by SHA-256. The one manifest format for folders, reused by P5's snapshots.
|
|
3381
5320
|
*/
|
|
3382
5321
|
export declare const FolderManifestSchema: z.ZodObject<{
|
|
3383
|
-
format: z.
|
|
5322
|
+
format: z.ZodEnum<{
|
|
5323
|
+
"nylorun.folder.v1": "nylorun.folder.v1";
|
|
5324
|
+
"nylorun.folder.v2": "nylorun.folder.v2";
|
|
5325
|
+
}>;
|
|
3384
5326
|
entries: z.ZodArray<z.ZodObject<{
|
|
3385
5327
|
path: z.ZodString;
|
|
3386
5328
|
size: z.ZodNumber;
|
|
3387
5329
|
sha256: z.ZodString;
|
|
3388
5330
|
contentType: z.ZodString;
|
|
5331
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
5332
|
+
dir: "dir";
|
|
5333
|
+
link: "link";
|
|
5334
|
+
}>>;
|
|
5335
|
+
mode: z.ZodOptional<z.ZodNumber>;
|
|
5336
|
+
mtimeMs: z.ZodOptional<z.ZodNumber>;
|
|
5337
|
+
target: z.ZodOptional<z.ZodString>;
|
|
3389
5338
|
}, z.core.$strict>>;
|
|
3390
5339
|
}, z.core.$strict>;
|
|
3391
5340
|
export type FolderManifest = z.infer<typeof FolderManifestSchema>;
|
|
@@ -3398,6 +5347,13 @@ export declare const ArtifactTreeSchema: z.ZodObject<{
|
|
|
3398
5347
|
size: z.ZodNumber;
|
|
3399
5348
|
sha256: z.ZodString;
|
|
3400
5349
|
contentType: z.ZodString;
|
|
5350
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
5351
|
+
dir: "dir";
|
|
5352
|
+
link: "link";
|
|
5353
|
+
}>>;
|
|
5354
|
+
mode: z.ZodOptional<z.ZodNumber>;
|
|
5355
|
+
mtimeMs: z.ZodOptional<z.ZodNumber>;
|
|
5356
|
+
target: z.ZodOptional<z.ZodString>;
|
|
3401
5357
|
}, z.core.$strict>>;
|
|
3402
5358
|
}, z.core.$strict>;
|
|
3403
5359
|
export type ArtifactTree = z.infer<typeof ArtifactTreeSchema>;
|
|
@@ -3411,12 +5367,26 @@ export declare const ArtifactDiffSchema: z.ZodObject<{
|
|
|
3411
5367
|
size: z.ZodNumber;
|
|
3412
5368
|
sha256: z.ZodString;
|
|
3413
5369
|
contentType: z.ZodString;
|
|
5370
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
5371
|
+
dir: "dir";
|
|
5372
|
+
link: "link";
|
|
5373
|
+
}>>;
|
|
5374
|
+
mode: z.ZodOptional<z.ZodNumber>;
|
|
5375
|
+
mtimeMs: z.ZodOptional<z.ZodNumber>;
|
|
5376
|
+
target: z.ZodOptional<z.ZodString>;
|
|
3414
5377
|
}, z.core.$strict>>;
|
|
3415
5378
|
removed: z.ZodArray<z.ZodObject<{
|
|
3416
5379
|
path: z.ZodString;
|
|
3417
5380
|
size: z.ZodNumber;
|
|
3418
5381
|
sha256: z.ZodString;
|
|
3419
5382
|
contentType: z.ZodString;
|
|
5383
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
5384
|
+
dir: "dir";
|
|
5385
|
+
link: "link";
|
|
5386
|
+
}>>;
|
|
5387
|
+
mode: z.ZodOptional<z.ZodNumber>;
|
|
5388
|
+
mtimeMs: z.ZodOptional<z.ZodNumber>;
|
|
5389
|
+
target: z.ZodOptional<z.ZodString>;
|
|
3420
5390
|
}, z.core.$strict>>;
|
|
3421
5391
|
changed: z.ZodArray<z.ZodObject<{
|
|
3422
5392
|
path: z.ZodString;
|
|
@@ -3425,12 +5395,26 @@ export declare const ArtifactDiffSchema: z.ZodObject<{
|
|
|
3425
5395
|
size: z.ZodNumber;
|
|
3426
5396
|
sha256: z.ZodString;
|
|
3427
5397
|
contentType: z.ZodString;
|
|
5398
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
5399
|
+
dir: "dir";
|
|
5400
|
+
link: "link";
|
|
5401
|
+
}>>;
|
|
5402
|
+
mode: z.ZodOptional<z.ZodNumber>;
|
|
5403
|
+
mtimeMs: z.ZodOptional<z.ZodNumber>;
|
|
5404
|
+
target: z.ZodOptional<z.ZodString>;
|
|
3428
5405
|
}, z.core.$strict>;
|
|
3429
5406
|
to: z.ZodObject<{
|
|
3430
5407
|
path: z.ZodString;
|
|
3431
5408
|
size: z.ZodNumber;
|
|
3432
5409
|
sha256: z.ZodString;
|
|
3433
5410
|
contentType: z.ZodString;
|
|
5411
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
5412
|
+
dir: "dir";
|
|
5413
|
+
link: "link";
|
|
5414
|
+
}>>;
|
|
5415
|
+
mode: z.ZodOptional<z.ZodNumber>;
|
|
5416
|
+
mtimeMs: z.ZodOptional<z.ZodNumber>;
|
|
5417
|
+
target: z.ZodOptional<z.ZodString>;
|
|
3434
5418
|
}, z.core.$strict>;
|
|
3435
5419
|
}, z.core.$strict>>;
|
|
3436
5420
|
}, z.core.$strict>;
|
|
@@ -3478,7 +5462,7 @@ export declare const SessionListItemSchema: z.ZodObject<{
|
|
|
3478
5462
|
}>;
|
|
3479
5463
|
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
3480
5464
|
lastTurnId: z.ZodNullable<z.ZodString>;
|
|
3481
|
-
|
|
5465
|
+
environmentId: z.ZodNullable<z.ZodString>;
|
|
3482
5466
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
3483
5467
|
lastEventAt: z.ZodNullable<z.ZodString>;
|
|
3484
5468
|
}, z.core.$strict>;
|
|
@@ -3501,7 +5485,7 @@ export declare const SessionPageSchema: z.ZodObject<{
|
|
|
3501
5485
|
}>;
|
|
3502
5486
|
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
3503
5487
|
lastTurnId: z.ZodNullable<z.ZodString>;
|
|
3504
|
-
|
|
5488
|
+
environmentId: z.ZodNullable<z.ZodString>;
|
|
3505
5489
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
3506
5490
|
lastEventAt: z.ZodNullable<z.ZodString>;
|
|
3507
5491
|
}, z.core.$strict>>;
|
|
@@ -3517,7 +5501,7 @@ export declare const SessionManifestViewSchema: z.ZodObject<{
|
|
|
3517
5501
|
}, z.core.$strict>;
|
|
3518
5502
|
export type SessionManifestView = z.infer<typeof SessionManifestViewSchema>;
|
|
3519
5503
|
export declare const HistoryPageSchema: z.ZodObject<{
|
|
3520
|
-
items: z.ZodArray<z.ZodDiscriminatedUnion<[EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.
|
|
5504
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">, ...EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">[]], "type">>;
|
|
3521
5505
|
cursor: z.ZodNullable<z.ZodString>;
|
|
3522
5506
|
tail: z.ZodBoolean;
|
|
3523
5507
|
}, z.core.$strip>;
|
|
@@ -3542,6 +5526,7 @@ export declare const SessionUsageTotalsSchema: z.ZodObject<{
|
|
|
3542
5526
|
export type SessionUsageTotals = z.infer<typeof SessionUsageTotalsSchema>;
|
|
3543
5527
|
export declare const ModelCallSchema: z.ZodObject<{
|
|
3544
5528
|
id: z.ZodString;
|
|
5529
|
+
effectId: z.ZodString;
|
|
3545
5530
|
sessionId: z.ZodString;
|
|
3546
5531
|
turnId: z.ZodString;
|
|
3547
5532
|
agentId: z.ZodString;
|
|
@@ -3569,6 +5554,7 @@ export type ModelCall = z.infer<typeof ModelCallSchema>;
|
|
|
3569
5554
|
export declare const ModelCallsPageSchema: z.ZodObject<{
|
|
3570
5555
|
calls: z.ZodArray<z.ZodObject<{
|
|
3571
5556
|
id: z.ZodString;
|
|
5557
|
+
effectId: z.ZodString;
|
|
3572
5558
|
sessionId: z.ZodString;
|
|
3573
5559
|
turnId: z.ZodString;
|
|
3574
5560
|
agentId: z.ZodString;
|
|
@@ -3599,6 +5585,7 @@ export type ModelCallsPage = z.infer<typeof ModelCallsPageSchema>;
|
|
|
3599
5585
|
export declare const ModelCallExportPageSchema: z.ZodObject<{
|
|
3600
5586
|
calls: z.ZodArray<z.ZodObject<{
|
|
3601
5587
|
id: z.ZodString;
|
|
5588
|
+
effectId: z.ZodString;
|
|
3602
5589
|
sessionId: z.ZodString;
|
|
3603
5590
|
turnId: z.ZodString;
|
|
3604
5591
|
agentId: z.ZodString;
|
|
@@ -3627,21 +5614,241 @@ export declare const ModelCallExportPageSchema: z.ZodObject<{
|
|
|
3627
5614
|
asOf: z.ZodString;
|
|
3628
5615
|
}, z.core.$strict>;
|
|
3629
5616
|
export type ModelCallExportPage = z.infer<typeof ModelCallExportPageSchema>;
|
|
3630
|
-
|
|
3631
|
-
|
|
5617
|
+
/**
|
|
5618
|
+
* One tool call of a session (R5.2), read from the effect journal: what ran, with what input,
|
|
5619
|
+
* how many sends, and how it ended. `invoking` while it runs. `uncertain` only for a call
|
|
5620
|
+
* recorded before R5. The output is in the session's log (`tool.completed`).
|
|
5621
|
+
*/
|
|
5622
|
+
export declare const ToolCallSchema: z.ZodObject<{
|
|
5623
|
+
effectId: z.ZodString;
|
|
5624
|
+
turnId: z.ZodString;
|
|
5625
|
+
callId: z.ZodNullable<z.ZodString>;
|
|
5626
|
+
toolName: z.ZodNullable<z.ZodString>;
|
|
5627
|
+
kind: z.ZodNullable<z.ZodEnum<{
|
|
5628
|
+
harness: "harness";
|
|
5629
|
+
http: "http";
|
|
5630
|
+
mcp: "mcp";
|
|
5631
|
+
platform: "platform";
|
|
5632
|
+
sandbox: "sandbox";
|
|
5633
|
+
}>>;
|
|
5634
|
+
server: z.ZodNullable<z.ZodString>;
|
|
5635
|
+
skill: z.ZodNullable<z.ZodString>;
|
|
5636
|
+
plugin: z.ZodNullable<z.ZodObject<{
|
|
5637
|
+
name: z.ZodString;
|
|
5638
|
+
version: z.ZodOptional<z.ZodString>;
|
|
5639
|
+
}, z.core.$strict>>;
|
|
5640
|
+
status: z.ZodEnum<{
|
|
5641
|
+
cancelled: "cancelled";
|
|
5642
|
+
completed: "completed";
|
|
5643
|
+
failed: "failed";
|
|
5644
|
+
held: "held";
|
|
5645
|
+
invoking: "invoking";
|
|
5646
|
+
uncertain: "uncertain";
|
|
5647
|
+
}>;
|
|
5648
|
+
attempts: z.ZodNumber;
|
|
5649
|
+
input: z.ZodUnknown;
|
|
5650
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
5651
|
+
code: z.ZodString;
|
|
5652
|
+
message: z.ZodString;
|
|
5653
|
+
}, z.core.$strict>>;
|
|
5654
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
5655
|
+
settledAt: z.ZodNullable<z.ZodString>;
|
|
5656
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
5657
|
+
}, z.core.$strict>;
|
|
5658
|
+
export type ToolCall = z.infer<typeof ToolCallSchema>;
|
|
5659
|
+
export declare const ToolCallsPageSchema: z.ZodObject<{
|
|
5660
|
+
calls: z.ZodArray<z.ZodObject<{
|
|
5661
|
+
effectId: z.ZodString;
|
|
5662
|
+
turnId: z.ZodString;
|
|
5663
|
+
callId: z.ZodNullable<z.ZodString>;
|
|
5664
|
+
toolName: z.ZodNullable<z.ZodString>;
|
|
5665
|
+
kind: z.ZodNullable<z.ZodEnum<{
|
|
5666
|
+
harness: "harness";
|
|
5667
|
+
http: "http";
|
|
5668
|
+
mcp: "mcp";
|
|
5669
|
+
platform: "platform";
|
|
5670
|
+
sandbox: "sandbox";
|
|
5671
|
+
}>>;
|
|
5672
|
+
server: z.ZodNullable<z.ZodString>;
|
|
5673
|
+
skill: z.ZodNullable<z.ZodString>;
|
|
5674
|
+
plugin: z.ZodNullable<z.ZodObject<{
|
|
5675
|
+
name: z.ZodString;
|
|
5676
|
+
version: z.ZodOptional<z.ZodString>;
|
|
5677
|
+
}, z.core.$strict>>;
|
|
5678
|
+
status: z.ZodEnum<{
|
|
5679
|
+
cancelled: "cancelled";
|
|
5680
|
+
completed: "completed";
|
|
5681
|
+
failed: "failed";
|
|
5682
|
+
held: "held";
|
|
5683
|
+
invoking: "invoking";
|
|
5684
|
+
uncertain: "uncertain";
|
|
5685
|
+
}>;
|
|
5686
|
+
attempts: z.ZodNumber;
|
|
5687
|
+
input: z.ZodUnknown;
|
|
5688
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
5689
|
+
code: z.ZodString;
|
|
5690
|
+
message: z.ZodString;
|
|
5691
|
+
}, z.core.$strict>>;
|
|
5692
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
5693
|
+
settledAt: z.ZodNullable<z.ZodString>;
|
|
5694
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
5695
|
+
}, z.core.$strict>>;
|
|
5696
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
5697
|
+
asOf: z.ZodString;
|
|
5698
|
+
}, z.core.$strict>;
|
|
5699
|
+
export type ToolCallsPage = z.infer<typeof ToolCallsPageSchema>;
|
|
5700
|
+
/** One OTLP attribute (R7.5): a key and an `AnyValue` (`stringValue`, `intValue`, …). */
|
|
5701
|
+
export declare const OtlpKeyValueSchema: z.ZodObject<{
|
|
5702
|
+
key: z.ZodString;
|
|
5703
|
+
value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5704
|
+
}, z.core.$loose>;
|
|
5705
|
+
/**
|
|
5706
|
+
* One span as OTLP/HTTP JSON encodes it (R7.5): hex ids, times in nanoseconds as decimal strings,
|
|
5707
|
+
* `kind` (1 internal, 3 client) and `status.code` (0 unset, 1 ok, 2 error) as numbers.
|
|
5708
|
+
*/
|
|
5709
|
+
export declare const OtlpSpanSchema: z.ZodObject<{
|
|
5710
|
+
traceId: z.ZodString;
|
|
5711
|
+
spanId: z.ZodString;
|
|
5712
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
5713
|
+
name: z.ZodString;
|
|
5714
|
+
kind: z.ZodNumber;
|
|
5715
|
+
startTimeUnixNano: z.ZodString;
|
|
5716
|
+
endTimeUnixNano: z.ZodString;
|
|
5717
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
5718
|
+
key: z.ZodString;
|
|
5719
|
+
value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5720
|
+
}, z.core.$loose>>;
|
|
5721
|
+
status: z.ZodObject<{
|
|
5722
|
+
code: z.ZodNumber;
|
|
5723
|
+
message: z.ZodOptional<z.ZodString>;
|
|
5724
|
+
}, z.core.$loose>;
|
|
5725
|
+
}, z.core.$loose>;
|
|
5726
|
+
export type OtlpSpan = z.infer<typeof OtlpSpanSchema>;
|
|
5727
|
+
/**
|
|
5728
|
+
* A turn's trace (R7.5, feature `traces`): the OTLP `ExportTraceServiceRequest` JSON the Runtime
|
|
5729
|
+
* posts to a collector, built from the turn's log rows. One resource, one scope.
|
|
5730
|
+
*/
|
|
5731
|
+
export declare const TurnTraceSchema: z.ZodObject<{
|
|
5732
|
+
resourceSpans: z.ZodArray<z.ZodObject<{
|
|
5733
|
+
resource: z.ZodObject<{
|
|
5734
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
5735
|
+
key: z.ZodString;
|
|
5736
|
+
value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5737
|
+
}, z.core.$loose>>;
|
|
5738
|
+
}, z.core.$loose>;
|
|
5739
|
+
scopeSpans: z.ZodArray<z.ZodObject<{
|
|
5740
|
+
scope: z.ZodObject<{
|
|
5741
|
+
name: z.ZodString;
|
|
5742
|
+
version: z.ZodOptional<z.ZodString>;
|
|
5743
|
+
}, z.core.$loose>;
|
|
5744
|
+
spans: z.ZodArray<z.ZodObject<{
|
|
5745
|
+
traceId: z.ZodString;
|
|
5746
|
+
spanId: z.ZodString;
|
|
5747
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
5748
|
+
name: z.ZodString;
|
|
5749
|
+
kind: z.ZodNumber;
|
|
5750
|
+
startTimeUnixNano: z.ZodString;
|
|
5751
|
+
endTimeUnixNano: z.ZodString;
|
|
5752
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
5753
|
+
key: z.ZodString;
|
|
5754
|
+
value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5755
|
+
}, z.core.$loose>>;
|
|
5756
|
+
status: z.ZodObject<{
|
|
5757
|
+
code: z.ZodNumber;
|
|
5758
|
+
message: z.ZodOptional<z.ZodString>;
|
|
5759
|
+
}, z.core.$loose>;
|
|
5760
|
+
}, z.core.$loose>>;
|
|
5761
|
+
}, z.core.$loose>>;
|
|
5762
|
+
}, z.core.$loose>>;
|
|
5763
|
+
}, z.core.$loose>;
|
|
5764
|
+
export type TurnTrace = z.infer<typeof TurnTraceSchema>;
|
|
5765
|
+
export declare const EnvironmentPageSchema: z.ZodObject<{
|
|
5766
|
+
environments: z.ZodArray<z.ZodObject<{
|
|
3632
5767
|
id: z.ZodString;
|
|
3633
5768
|
kind: z.ZodEnum<{
|
|
5769
|
+
none: "none";
|
|
3634
5770
|
pod: "pod";
|
|
3635
5771
|
virtual: "virtual";
|
|
3636
5772
|
}>;
|
|
3637
5773
|
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
5774
|
+
manifest: z.ZodObject<{
|
|
5775
|
+
image: z.ZodOptional<z.ZodString>;
|
|
5776
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
5777
|
+
cpus: z.ZodNumber;
|
|
5778
|
+
memory: z.ZodString;
|
|
5779
|
+
}, z.core.$strict>>;
|
|
5780
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
5781
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
5782
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
5783
|
+
}, z.core.$strict>>;
|
|
5784
|
+
harness: z.ZodString;
|
|
5785
|
+
lifecycle: z.ZodObject<{
|
|
5786
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
5787
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
5788
|
+
}, z.core.$strict>;
|
|
5789
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5790
|
+
command: z.ZodString;
|
|
5791
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
5792
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
5793
|
+
}, z.core.$strict>>>;
|
|
5794
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
5795
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
5796
|
+
version: z.ZodNumber;
|
|
5797
|
+
path: z.ZodString;
|
|
5798
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5799
|
+
path: z.ZodString;
|
|
5800
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
5801
|
+
}, z.core.$strict>]>>>;
|
|
5802
|
+
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5803
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
5804
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5805
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
5806
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
5807
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
5808
|
+
header: z.ZodString;
|
|
5809
|
+
format: z.ZodString;
|
|
5810
|
+
}, z.core.$strict>>;
|
|
5811
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5812
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
5813
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5814
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
5815
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5816
|
+
via: z.ZodOptional<z.ZodString>;
|
|
5817
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
5818
|
+
header: z.ZodString;
|
|
5819
|
+
}, z.core.$strict>>;
|
|
5820
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
5821
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5822
|
+
type: z.ZodLiteral<"bearer">;
|
|
5823
|
+
url: z.ZodString;
|
|
5824
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5825
|
+
via: z.ZodOptional<z.ZodString>;
|
|
5826
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
5827
|
+
header: z.ZodString;
|
|
5828
|
+
}, z.core.$strict>>;
|
|
5829
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
5830
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5831
|
+
type: z.ZodLiteral<"headers">;
|
|
5832
|
+
url: z.ZodString;
|
|
5833
|
+
}, z.core.$strict>], "type">>>>;
|
|
5834
|
+
}, z.core.$strict>;
|
|
5835
|
+
manifestName: z.ZodOptional<z.ZodString>;
|
|
5836
|
+
manifestVersion: z.ZodOptional<z.ZodNumber>;
|
|
5837
|
+
manifestHash: z.ZodOptional<z.ZodString>;
|
|
5838
|
+
forkedFrom: z.ZodOptional<z.ZodObject<{
|
|
5839
|
+
environment: z.ZodString;
|
|
5840
|
+
disk: z.ZodNullable<z.ZodNumber>;
|
|
5841
|
+
}, z.core.$strict>>;
|
|
5842
|
+
slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5843
|
+
name: z.ZodString;
|
|
5844
|
+
type: z.ZodString;
|
|
5845
|
+
required: z.ZodBoolean;
|
|
5846
|
+
set: z.ZodBoolean;
|
|
5847
|
+
}, z.core.$strict>>>;
|
|
5848
|
+
version: z.ZodNumber;
|
|
5849
|
+
appliedVersion: z.ZodNumber;
|
|
5850
|
+
ownerUserId: z.ZodNullable<z.ZodString>;
|
|
5851
|
+
state: z.ZodString;
|
|
3645
5852
|
pod: z.ZodOptional<z.ZodObject<{
|
|
3646
5853
|
desired: z.ZodEnum<{
|
|
3647
5854
|
deleted: "deleted";
|
|
@@ -3651,7 +5858,6 @@ export declare const SandboxPageSchema: z.ZodObject<{
|
|
|
3651
5858
|
observed: z.ZodEnum<{
|
|
3652
5859
|
creating: "creating";
|
|
3653
5860
|
deleting: "deleting";
|
|
3654
|
-
expired: "expired";
|
|
3655
5861
|
failed: "failed";
|
|
3656
5862
|
lost: "lost";
|
|
3657
5863
|
running: "running";
|
|
@@ -3659,8 +5865,21 @@ export declare const SandboxPageSchema: z.ZodObject<{
|
|
|
3659
5865
|
}>;
|
|
3660
5866
|
volumeGeneration: z.ZodNumber;
|
|
3661
5867
|
hostEpoch: z.ZodNumber;
|
|
3662
|
-
expiresAt: z.ZodOptional<z.ZodString>;
|
|
3663
5868
|
reason: z.ZodOptional<z.ZodString>;
|
|
5869
|
+
imageDigest: z.ZodOptional<z.ZodString>;
|
|
5870
|
+
}, z.core.$strict>>;
|
|
5871
|
+
lastUsedAt: z.ZodString;
|
|
5872
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
5873
|
+
latestVersion: z.ZodNullable<z.ZodNumber>;
|
|
5874
|
+
operation: z.ZodOptional<z.ZodObject<{
|
|
5875
|
+
kind: z.ZodEnum<{
|
|
5876
|
+
restore: "restore";
|
|
5877
|
+
seed: "seed";
|
|
5878
|
+
snapshot: "snapshot";
|
|
5879
|
+
}>;
|
|
5880
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
5881
|
+
startedAt: z.ZodString;
|
|
5882
|
+
}, z.core.$strict>>;
|
|
3664
5883
|
}, z.core.$strict>>;
|
|
3665
5884
|
sessions: z.ZodArray<z.ZodObject<{
|
|
3666
5885
|
id: z.ZodString;
|
|
@@ -3671,4 +5890,4 @@ export declare const SandboxPageSchema: z.ZodObject<{
|
|
|
3671
5890
|
}, z.core.$strict>>;
|
|
3672
5891
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
3673
5892
|
}, z.core.$strict>;
|
|
3674
|
-
export type
|
|
5893
|
+
export type EnvironmentPage = z.infer<typeof EnvironmentPageSchema>;
|