@nylorun/core 0.23.0-beta → 0.25.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 +37 -0
- package/dist/compatibility.d.ts +127 -59
- package/dist/compatibility.js +128 -60
- package/dist/contracts.d.ts +2413 -893
- package/dist/contracts.js +1144 -491
- package/dist/define.d.ts +1 -0
- package/dist/define.js +1 -0
- package/dist/definition/approval.d.ts +1 -1
- package/dist/definition/bound.d.ts +2 -0
- package/dist/definition/builder.d.ts +2 -2
- package/dist/definition/builder.js +1 -1
- package/dist/definition/code-tools.d.ts +1 -1
- package/dist/definition/declaration.js +3 -0
- package/dist/definition/delegate.d.ts +1 -1
- package/dist/definition/delegate.js +1 -1
- package/dist/definition/from.d.ts +2 -2
- package/dist/definition/from.js +1 -1
- package/dist/definition/http-tool.d.ts +3 -3
- package/dist/definition/mcp.d.ts +4 -4
- package/dist/definition/mcp.js +3 -3
- package/dist/definition/removed.d.ts +7 -0
- package/dist/definition/removed.js +21 -1
- package/dist/definition/sections.d.ts +64 -0
- package/dist/definition/sections.js +227 -0
- package/dist/definition/variant.d.ts +1 -1
- package/dist/definition/variant.js +4 -4
- package/dist/harness-api/entries.d.ts +1 -1
- package/dist/harness-api/entries.js +1 -1
- package/dist/harness-api/gates.d.ts +1 -1
- package/dist/harness-api/gates.js +1 -1
- package/dist/harness-api/harness-api.schema.json +182 -6
- package/dist/harness-api/index.d.ts +3 -3
- package/dist/harness-api/index.js +3 -3
- package/dist/harness-api/json-schema.d.ts +1 -1
- package/dist/harness-api/json-schema.js +3 -3
- package/dist/harness-api/mcp.js +1 -1
- package/dist/harness-api/messages.d.ts +10 -8
- package/dist/harness-api/messages.js +1 -1
- package/dist/harness-api/schema.d.ts +82 -13
- package/dist/harness-api/schema.js +63 -19
- package/dist/harness-api/transcript.d.ts +1 -1
- package/dist/harness-api/transport.d.ts +1 -1
- package/dist/harness-api/transport.js +1 -1
- package/dist/manifest-schemas.d.ts +9 -5
- package/dist/manifest-schemas.js +24 -27
- package/dist/schemas/agent-manifest.schema.json +1534 -250
- package/dist/schemas/harness-manifest.schema.json +1273 -0
- package/dist/schemas/{environment-manifest.schema.json → runtime-manifest.schema.json} +109 -68
- package/dist/types/manifest.d.ts +87 -15
- package/dist/types/manifest.js +4 -0
- package/dist/types/model.d.ts +5 -0
- package/dist/types/observe.d.ts +1 -1
- package/dist/types/part.d.ts +5 -0
- package/dist/types/tool.d.ts +4 -4
- package/dist/utils/definition-files.d.ts +3 -2
- package/dist/utils/definition-files.js +4 -3
- package/dist/utils/file-systems.d.ts +1 -1
- package/dist/utils/file-systems.js +1 -1
- package/dist/utils/harness-id.d.ts +1 -1
- package/dist/utils/harness-id.js +1 -1
- package/dist/utils/memory.d.ts +64 -0
- package/dist/utils/memory.js +139 -0
- package/dist/utils/runtime-limits.d.ts +55 -4
- package/dist/utils/runtime-limits.js +106 -3
- package/dist/utils/runtime-tools.d.ts +3 -3
- package/dist/utils/runtime-tools.js +3 -3
- package/package.json +6 -5
package/dist/contracts.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/** Public wire contracts only. Never import checkpoint or engine modules here. */
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import type { AgentManifest, McpServerManifest } from "./types/manifest.js";
|
|
4
|
-
import type { JsonValue } from "./types/shared.js";
|
|
3
|
+
import type { AgentHarnessSection, AgentManifest, McpServerManifest, WorkflowHarnessSection } from "./types/manifest.js";
|
|
4
|
+
import type { JsonObject, JsonValue } from "./types/shared.js";
|
|
5
5
|
import type { WorkflowManifest } from "./types/workflow.js";
|
|
6
6
|
export { FILE_NAME_MAX, FILE_PATH_MAX } from "./utils/file-systems.js";
|
|
7
7
|
import { DEFAULT_HARNESS, HARNESS_ID_PATTERN, isHarnessId } from "./utils/harness-id.js";
|
|
8
8
|
export { DEFAULT_HARNESS, HARNESS_ID_PATTERN, isHarnessId };
|
|
9
|
-
export type
|
|
9
|
+
export { MEMORY_ACCESS, MEMORY_COMMANDS, MEMORY_DESCRIPTION_MAX, MEMORY_INSTRUCTIONS_MAX, MEMORY_OPERATIONS, MEMORY_PATH_MAX, MEMORY_ROOT, checkMemoryCall, memoryAliasOf, memoryDescriptionOf, memoryPathOf, memoryPathWithin, type MemoryAccess, type MemoryCommandName, type MemoryOperation, } from "./utils/memory.js";
|
|
10
|
+
export type { AgentHarnessSection, AgentManifest, AgentMemorySettings, HarnessMcpServer, HarnessSection, HarnessSkill, WorkflowHarnessSection, } from "./types/manifest.js";
|
|
10
11
|
export type { WorkflowManifest } from "./types/workflow.js";
|
|
11
12
|
export { PROTOCOL_VERSION, ERROR_CODES } from "./compatibility.js";
|
|
12
13
|
export { SKILL_TOTAL_BYTES_DEFAULT, definitionFilesOf, isDefinitionFileHash, skillsOf, } from "./utils/definition-files.js";
|
|
@@ -19,7 +20,7 @@ export declare const IdempotencyKeySchema: z.ZodString;
|
|
|
19
20
|
/** A remote MCP server as a manifest declares it (`streamable-http` or `sse`). */
|
|
20
21
|
export declare const McpServerManifestSchema: z.ZodType<McpServerManifest>;
|
|
21
22
|
/**
|
|
22
|
-
* An environment variable name a shell secret or plain variable may take
|
|
23
|
+
* An environment variable name a shell secret or plain variable may take: a POSIX
|
|
23
24
|
* name, of any length (POSIX and Linux set none; a request's body bounds it). Names the sandbox
|
|
24
25
|
* needs for itself (the proxy, the trust store, `PATH`, `HOME`) and `NYLORUN_*` are reserved.
|
|
25
26
|
*/
|
|
@@ -31,31 +32,29 @@ export declare const ENVIRONMENT_NAME_PATTERN: RegExp;
|
|
|
31
32
|
export declare const AgentManifestSchema: z.ZodType<AgentManifest>;
|
|
32
33
|
/** Workflow definition document. `kind: "workflow"`; a missing `kind` is never a workflow. */
|
|
33
34
|
export declare const WorkflowManifestSchema: z.ZodType<WorkflowManifest, unknown, z.core.$ZodTypeInternals<WorkflowManifest, unknown>>;
|
|
34
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* A loop manifest: what the engine runs (agent manifest v7's shape, or workflow manifest v3's),
|
|
37
|
+
* as the Runtime makes it from an agent manifest v8's harness section (`loopManifestOf`) and a
|
|
38
|
+
* session pins it.
|
|
39
|
+
*/
|
|
35
40
|
export declare const DefinitionDocumentSchema: z.ZodUnion<readonly [z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>, z.ZodType<WorkflowManifest, unknown, z.core.$ZodTypeInternals<WorkflowManifest, unknown>>]>;
|
|
36
41
|
export type DefinitionDocument = AgentManifest | WorkflowManifest;
|
|
37
|
-
export declare const PutAgentRequestSchema: z.ZodObject<{
|
|
38
|
-
requestId: z.ZodString;
|
|
39
|
-
manifest: z.ZodUnion<readonly [z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>, z.ZodType<WorkflowManifest, unknown, z.core.$ZodTypeInternals<WorkflowManifest, unknown>>]>;
|
|
40
|
-
implementationVersion: z.ZodString;
|
|
41
|
-
}, z.core.$strict>;
|
|
42
|
-
export type PutAgentRequest = z.infer<typeof PutAgentRequestSchema>;
|
|
43
42
|
/**
|
|
44
|
-
* An identifier's grammar is the protocol's
|
|
45
|
-
* and means the same in every installation, so its length is a constant of protocol
|
|
43
|
+
* An identifier's grammar is the protocol's: it crosses the Runtime API, tokens and grants
|
|
44
|
+
* and means the same in every installation, so its length is a constant of the protocol, not a
|
|
46
45
|
* setting.
|
|
47
46
|
*/
|
|
48
|
-
export declare const
|
|
49
|
-
export declare function
|
|
50
|
-
/** An
|
|
51
|
-
export declare function
|
|
47
|
+
export declare const AGENT_ID_MAX_LENGTH = 200;
|
|
48
|
+
export declare function isAgentId(value: unknown): value is string;
|
|
49
|
+
/** An Agent grant: an exact Agent id, or a prefix ending in `/*` (`team-a/*`). */
|
|
50
|
+
export declare function isAgentGrant(value: unknown): value is string;
|
|
52
51
|
/**
|
|
53
|
-
* Whether `grants` (a token caller's
|
|
54
|
-
*
|
|
52
|
+
* Whether `grants` (a token caller's Agent grants) reach Agent `id`: `*`, an exact entry, or a
|
|
53
|
+
* prefix entry `p/*` for any id below `p/`. No grants reach no Agent.
|
|
55
54
|
*/
|
|
56
|
-
export declare function
|
|
57
|
-
export declare const
|
|
58
|
-
export declare const
|
|
55
|
+
export declare function agentGranted(grants: readonly string[] | undefined, id: string): boolean;
|
|
56
|
+
export declare const AgentIdSchema: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
57
|
+
export declare const AgentGrantSchema: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
59
58
|
/**
|
|
60
59
|
* `virtual`: a just-bash workspace in the harness container, no cluster (a local convenience).
|
|
61
60
|
* `pod`: an agent-sandbox pod with its own volume (Host feature `sandbox-pods`). `none`: no
|
|
@@ -72,7 +71,7 @@ export type SandboxKind = Exclude<EnvironmentKind, "none">;
|
|
|
72
71
|
*/
|
|
73
72
|
export declare const EnvironmentLabelsSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
74
73
|
export type EnvironmentLabels = z.infer<typeof EnvironmentLabelsSchema>;
|
|
75
|
-
/** A harness id
|
|
74
|
+
/** A harness id: what a harness names itself in `hello`. */
|
|
76
75
|
export declare const HarnessIdSchema: z.ZodString;
|
|
77
76
|
/**
|
|
78
77
|
* An Environment's lifecycle. `idle`: stop compute after this long without a turn, at most the
|
|
@@ -103,7 +102,7 @@ export declare const EnvironmentSetupCommandSchema: z.ZodObject<{
|
|
|
103
102
|
export type EnvironmentSetupCommand = z.infer<typeof EnvironmentSetupCommandSchema>;
|
|
104
103
|
/**
|
|
105
104
|
* One input file entry (pods only): an artifact version copied to `path` (a file artifact, or a
|
|
106
|
-
* folder's files under it), or
|
|
105
|
+
* folder's files under it), or files by content hash, each `sha256:<hex>` of a definition
|
|
107
106
|
* file the Tenant holds (`PUT /v1/files/sha256:<hex>`, at most 2 GiB each), copied under `path`
|
|
108
107
|
* at its relative path. A manifest by hash moves to another Tenant with its files.
|
|
109
108
|
*/
|
|
@@ -116,17 +115,17 @@ export declare const EnvironmentFileSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
116
115
|
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
117
116
|
}, z.core.$strict>]>;
|
|
118
117
|
export type EnvironmentFile = z.infer<typeof EnvironmentFileSchema>;
|
|
119
|
-
export declare function
|
|
120
|
-
export declare const
|
|
118
|
+
export declare function isAgentManifestName(value: unknown): value is string;
|
|
119
|
+
export declare const AgentManifestNameSchema: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
121
120
|
/**
|
|
122
|
-
* Which manifest an
|
|
123
|
-
* created) or `name@n` (version `n`).
|
|
121
|
+
* Which agent manifest an Agent is made from: `name` (tracking: the latest version when the Agent
|
|
122
|
+
* is created, and each version saved later) or `name@n` (pinned to version `n`).
|
|
124
123
|
*/
|
|
125
|
-
export declare function
|
|
124
|
+
export declare function parseAgentManifestRef(ref: string): {
|
|
126
125
|
name: string;
|
|
127
126
|
version?: number;
|
|
128
127
|
} | undefined;
|
|
129
|
-
export declare const
|
|
128
|
+
export declare const AgentManifestRefSchema: z.ZodString;
|
|
130
129
|
/**
|
|
131
130
|
* What an Environment's artifacts, its sessions' skills and its disk versions may hold: part of
|
|
132
131
|
* its manifest, fixed for its life. Each limit left out is the Tenant's (`/v1/tenant/artifacts`,
|
|
@@ -148,105 +147,34 @@ export declare const EnvironmentLimitsSchema: z.ZodObject<{
|
|
|
148
147
|
}, z.core.$strict>;
|
|
149
148
|
export type EnvironmentLimits = z.infer<typeof EnvironmentLimitsSchema>;
|
|
150
149
|
/**
|
|
151
|
-
* `PUT /v1/
|
|
152
|
-
* one with this id, so "get or create" is one call. An
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
150
|
+
* `PUT /v1/agents/{agentId}` (protocol 16): creates the Agent, its vault and its compute from a
|
|
151
|
+
* saved agent manifest, or finds the one with this id, so "get or create" is one call. An Agent is
|
|
152
|
+
* the live instance of one version of an agent manifest: `manifest: "name"` records that it
|
|
153
|
+
* tracks the manifest (its latest version, and every version saved later) and `"name@n"` that it
|
|
154
|
+
* is pinned to one; the version it runs is `resolvedVersion`. On an existing Agent, `labels`
|
|
155
|
+
* replace its labels, `owner` sets or clears its owner guard, and `manifest` moves it:
|
|
156
|
+
* to another version of its manifest, tracking or pinned. A move changes no data: its id,
|
|
157
|
+
* disk, vault and sessions stay. A harness-only change applies at once; a runtime change of a pod
|
|
158
|
+
* waits for its next start; one that adds a required secret waits for its value. Its manifest's
|
|
159
|
+
* name, kind, harness and storage are fixed (`409 agent_fixed_field`); fork it to change them.
|
|
160
|
+
* `?dryRun=true` answers the move's plan (`AgentMovePlan`) and changes nothing.
|
|
158
161
|
*/
|
|
159
|
-
export declare const
|
|
162
|
+
export declare const PutAgentRequestSchema: z.ZodObject<{
|
|
160
163
|
requestId: z.ZodOptional<z.ZodString>;
|
|
161
|
-
manifest: z.
|
|
162
|
-
|
|
163
|
-
none: "none";
|
|
164
|
-
pod: "pod";
|
|
165
|
-
virtual: "virtual";
|
|
166
|
-
}>>;
|
|
164
|
+
manifest: z.ZodString;
|
|
165
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
167
166
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
168
|
-
image: z.ZodOptional<z.ZodString>;
|
|
169
|
-
resources: z.ZodOptional<z.ZodObject<{
|
|
170
|
-
cpus: z.ZodOptional<z.ZodNumber>;
|
|
171
|
-
memory: z.ZodOptional<z.ZodString>;
|
|
172
|
-
}, z.core.$strict>>;
|
|
173
|
-
storage: z.ZodOptional<z.ZodString>;
|
|
174
|
-
network: z.ZodOptional<z.ZodObject<{
|
|
175
|
-
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
176
|
-
}, z.core.$strict>>;
|
|
177
|
-
harness: z.ZodOptional<z.ZodString>;
|
|
178
|
-
ownerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
|
-
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
180
|
-
idle: z.ZodOptional<z.ZodString>;
|
|
181
|
-
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
182
|
-
}, z.core.$strict>>;
|
|
183
|
-
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
184
|
-
command: z.ZodString;
|
|
185
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
186
|
-
timeout: z.ZodOptional<z.ZodString>;
|
|
187
|
-
}, z.core.$strict>>>;
|
|
188
|
-
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
189
|
-
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
190
|
-
version: z.ZodNumber;
|
|
191
|
-
path: z.ZodString;
|
|
192
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
193
|
-
path: z.ZodString;
|
|
194
|
-
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
195
|
-
}, z.core.$strict>]>>>;
|
|
196
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
197
|
-
artifacts: z.ZodOptional<z.ZodObject<{
|
|
198
|
-
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
199
|
-
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
200
|
-
}, z.core.$strict>>;
|
|
201
|
-
skills: z.ZodOptional<z.ZodObject<{
|
|
202
|
-
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
203
|
-
}, z.core.$strict>>;
|
|
204
|
-
disk: z.ZodOptional<z.ZodObject<{
|
|
205
|
-
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
206
|
-
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
207
|
-
}, z.core.$strict>>;
|
|
208
|
-
}, z.core.$strict>>;
|
|
209
|
-
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
210
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
-
description: z.ZodOptional<z.ZodString>;
|
|
212
|
-
type: z.ZodLiteral<"environment_secret">;
|
|
213
|
-
allowedHosts: z.ZodArray<z.ZodString>;
|
|
214
|
-
inject: z.ZodOptional<z.ZodObject<{
|
|
215
|
-
header: z.ZodString;
|
|
216
|
-
format: z.ZodString;
|
|
217
|
-
}, z.core.$strict>>;
|
|
218
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
219
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
220
|
-
description: z.ZodOptional<z.ZodString>;
|
|
221
|
-
type: z.ZodLiteral<"environment_variable">;
|
|
222
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
223
|
-
via: z.ZodOptional<z.ZodString>;
|
|
224
|
-
identity: z.ZodOptional<z.ZodObject<{
|
|
225
|
-
header: z.ZodString;
|
|
226
|
-
}, z.core.$strict>>;
|
|
227
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
-
description: z.ZodOptional<z.ZodString>;
|
|
229
|
-
type: z.ZodLiteral<"bearer">;
|
|
230
|
-
url: z.ZodString;
|
|
231
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
232
|
-
via: z.ZodOptional<z.ZodString>;
|
|
233
|
-
identity: z.ZodOptional<z.ZodObject<{
|
|
234
|
-
header: z.ZodString;
|
|
235
|
-
}, z.core.$strict>>;
|
|
236
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
-
description: z.ZodOptional<z.ZodString>;
|
|
238
|
-
type: z.ZodLiteral<"headers">;
|
|
239
|
-
url: z.ZodString;
|
|
240
|
-
}, z.core.$strict>], "type">>>>;
|
|
241
167
|
from: z.ZodOptional<z.ZodObject<{
|
|
242
|
-
|
|
168
|
+
agent: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
243
169
|
version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"latest">]>;
|
|
244
170
|
}, z.core.$strict>>;
|
|
245
171
|
}, z.core.$strict>;
|
|
246
|
-
export type
|
|
172
|
+
export type PutAgentRequest = z.infer<typeof PutAgentRequestSchema>;
|
|
247
173
|
/**
|
|
248
|
-
* What an
|
|
249
|
-
* against the Tenant's limits when
|
|
174
|
+
* What an Agent's environment runs: the runtime section of the manifest version it runs, resolved
|
|
175
|
+
* against the Tenant's limits when the Agent was made or moved to that version, with the harness
|
|
176
|
+
* that runs its loop. A move to another version changes it; its kind, harness and storage never
|
|
177
|
+
* change.
|
|
250
178
|
*/
|
|
251
179
|
export declare const EnvironmentRecipeSchema: z.ZodObject<{
|
|
252
180
|
image: z.ZodOptional<z.ZodString>;
|
|
@@ -323,9 +251,11 @@ export declare const EnvironmentRecipeSchema: z.ZodObject<{
|
|
|
323
251
|
}, z.core.$strict>], "type">>>>;
|
|
324
252
|
}, z.core.$strict>;
|
|
325
253
|
export type EnvironmentRecipe = z.infer<typeof EnvironmentRecipeSchema>;
|
|
326
|
-
/** A session
|
|
327
|
-
export declare const
|
|
254
|
+
/** A session on an Agent, as the Agent's view lists it: none is special. */
|
|
255
|
+
export declare const AgentSessionSchema: z.ZodObject<{
|
|
328
256
|
id: z.ZodString;
|
|
257
|
+
ownerUserId: z.ZodString;
|
|
258
|
+
status: z.ZodString;
|
|
329
259
|
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
330
260
|
}, z.core.$strict>;
|
|
331
261
|
/** What the Runtime wants of a pod (`desired`) and what it last saw (`observed`). */
|
|
@@ -333,7 +263,7 @@ export declare const POD_DESIRED: readonly ["running", "suspended", "deleted"];
|
|
|
333
263
|
export declare const POD_OBSERVED: readonly ["creating", "running", "suspended", "lost", "failed", "deleting"];
|
|
334
264
|
export type PodDesired = (typeof POD_DESIRED)[number];
|
|
335
265
|
export type PodObserved = (typeof POD_OBSERVED)[number];
|
|
336
|
-
export declare const
|
|
266
|
+
export declare const AgentPodViewSchema: z.ZodObject<{
|
|
337
267
|
desired: z.ZodEnum<{
|
|
338
268
|
deleted: "deleted";
|
|
339
269
|
running: "running";
|
|
@@ -352,23 +282,108 @@ export declare const EnvironmentPodViewSchema: z.ZodObject<{
|
|
|
352
282
|
reason: z.ZodOptional<z.ZodString>;
|
|
353
283
|
imageDigest: z.ZodOptional<z.ZodString>;
|
|
354
284
|
}, z.core.$strict>;
|
|
355
|
-
export type
|
|
285
|
+
export type AgentPodView = z.infer<typeof AgentPodViewSchema>;
|
|
286
|
+
/**
|
|
287
|
+
* The compute states an Agent's environment reports (`compute.state`): `ready` until a tool
|
|
288
|
+
* first runs in a virtual one, then `creating`, `running` or `stopped`. An open set: clients must
|
|
289
|
+
* accept values they do not know.
|
|
290
|
+
*/
|
|
291
|
+
export declare const COMPUTE_STATES: readonly ["ready", "creating", "running", "stopped"];
|
|
356
292
|
/**
|
|
357
|
-
*
|
|
358
|
-
*
|
|
359
|
-
*
|
|
293
|
+
* An Agent's state (protocol 16), derived when it is read, the first that holds:
|
|
294
|
+
*
|
|
295
|
+
* - `paused`: its desired state is `off` (nothing in protocol 16 sets it).
|
|
296
|
+
* - `failing`: its compute failed or was lost, or a session's latest finished turn failed.
|
|
297
|
+
* - `input_required`: a session waits on a person (an approval or interaction, or an uncertain
|
|
298
|
+
* effect), even while another works.
|
|
299
|
+
* - `working`: a turn runs.
|
|
300
|
+
* - `sleeping`: nothing to do.
|
|
301
|
+
*
|
|
302
|
+
* An open set: clients must accept values they do not know.
|
|
360
303
|
*/
|
|
361
|
-
export declare const
|
|
362
|
-
|
|
363
|
-
|
|
304
|
+
export declare const AGENT_STATES: readonly ["paused", "failing", "input_required", "working", "sleeping"];
|
|
305
|
+
export type AgentState = (typeof AGENT_STATES)[number];
|
|
306
|
+
/** What made an Agent's state, or another state that also holds (`attention`). */
|
|
307
|
+
export declare const AgentAttentionSchema: z.ZodObject<{
|
|
308
|
+
state: z.ZodEnum<{
|
|
309
|
+
failing: "failing";
|
|
310
|
+
input_required: "input_required";
|
|
311
|
+
paused: "paused";
|
|
312
|
+
sleeping: "sleeping";
|
|
313
|
+
working: "working";
|
|
314
|
+
}>;
|
|
315
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
316
|
+
reason: z.ZodString;
|
|
317
|
+
}, z.core.$strict>;
|
|
318
|
+
export type AgentAttention = z.infer<typeof AgentAttentionSchema>;
|
|
319
|
+
/** `PUT` and `GET /v1/agents/{agentId}`. */
|
|
320
|
+
export declare const AgentViewSchema: z.ZodObject<{
|
|
364
321
|
id: z.ZodString;
|
|
322
|
+
manifest: z.ZodString;
|
|
323
|
+
resolvedVersion: z.ZodNumber;
|
|
324
|
+
manifestHash: z.ZodString;
|
|
325
|
+
tracking: z.ZodEnum<{
|
|
326
|
+
pinned: "pinned";
|
|
327
|
+
tracking: "tracking";
|
|
328
|
+
}>;
|
|
329
|
+
targetVersion: z.ZodNullable<z.ZodNumber>;
|
|
330
|
+
waitingFor: z.ZodNullable<z.ZodEnum<{
|
|
331
|
+
secrets: "secrets";
|
|
332
|
+
start: "start";
|
|
333
|
+
}>>;
|
|
334
|
+
failedVersion: z.ZodNullable<z.ZodNumber>;
|
|
335
|
+
startCheck: z.ZodNullable<z.ZodObject<{
|
|
336
|
+
from: z.ZodNumber;
|
|
337
|
+
startedAt: z.ZodString;
|
|
338
|
+
}, z.core.$strict>>;
|
|
365
339
|
kind: z.ZodEnum<{
|
|
366
340
|
none: "none";
|
|
367
341
|
pod: "pod";
|
|
368
342
|
virtual: "virtual";
|
|
369
343
|
}>;
|
|
344
|
+
harness: z.ZodString;
|
|
345
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
370
346
|
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
371
|
-
|
|
347
|
+
state: z.ZodString;
|
|
348
|
+
attention: z.ZodArray<z.ZodObject<{
|
|
349
|
+
state: z.ZodEnum<{
|
|
350
|
+
failing: "failing";
|
|
351
|
+
input_required: "input_required";
|
|
352
|
+
paused: "paused";
|
|
353
|
+
sleeping: "sleeping";
|
|
354
|
+
working: "working";
|
|
355
|
+
}>;
|
|
356
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
357
|
+
reason: z.ZodString;
|
|
358
|
+
}, z.core.$strict>>;
|
|
359
|
+
desired: z.ZodEnum<{
|
|
360
|
+
off: "off";
|
|
361
|
+
on: "on";
|
|
362
|
+
}>;
|
|
363
|
+
nextWakeAt: z.ZodNullable<z.ZodString>;
|
|
364
|
+
compute: z.ZodObject<{
|
|
365
|
+
state: z.ZodString;
|
|
366
|
+
pod: z.ZodOptional<z.ZodObject<{
|
|
367
|
+
desired: z.ZodEnum<{
|
|
368
|
+
deleted: "deleted";
|
|
369
|
+
running: "running";
|
|
370
|
+
suspended: "suspended";
|
|
371
|
+
}>;
|
|
372
|
+
observed: z.ZodEnum<{
|
|
373
|
+
creating: "creating";
|
|
374
|
+
deleting: "deleting";
|
|
375
|
+
failed: "failed";
|
|
376
|
+
lost: "lost";
|
|
377
|
+
running: "running";
|
|
378
|
+
suspended: "suspended";
|
|
379
|
+
}>;
|
|
380
|
+
volumeGeneration: z.ZodNumber;
|
|
381
|
+
hostEpoch: z.ZodNumber;
|
|
382
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
383
|
+
imageDigest: z.ZodOptional<z.ZodString>;
|
|
384
|
+
}, z.core.$strict>>;
|
|
385
|
+
}, z.core.$strict>;
|
|
386
|
+
runtime: z.ZodObject<{
|
|
372
387
|
image: z.ZodOptional<z.ZodString>;
|
|
373
388
|
resources: z.ZodOptional<z.ZodObject<{
|
|
374
389
|
cpus: z.ZodNumber;
|
|
@@ -442,9 +457,6 @@ export declare const EnvironmentViewSchema: z.ZodObject<{
|
|
|
442
457
|
url: z.ZodString;
|
|
443
458
|
}, z.core.$strict>], "type">>>>;
|
|
444
459
|
}, z.core.$strict>;
|
|
445
|
-
manifestName: z.ZodOptional<z.ZodString>;
|
|
446
|
-
manifestVersion: z.ZodOptional<z.ZodNumber>;
|
|
447
|
-
manifestHash: z.ZodOptional<z.ZodString>;
|
|
448
460
|
limits: z.ZodObject<{
|
|
449
461
|
artifacts: z.ZodObject<{
|
|
450
462
|
fileBytes: z.ZodNumber;
|
|
@@ -458,43 +470,21 @@ export declare const EnvironmentViewSchema: z.ZodObject<{
|
|
|
458
470
|
versionEntries: z.ZodNumber;
|
|
459
471
|
}, z.core.$strict>;
|
|
460
472
|
}, z.core.$strict>;
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
473
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
474
|
+
id: z.ZodString;
|
|
475
|
+
ownerUserId: z.ZodString;
|
|
476
|
+
status: z.ZodString;
|
|
477
|
+
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
464
478
|
}, z.core.$strict>>;
|
|
465
|
-
slots: z.
|
|
479
|
+
slots: z.ZodArray<z.ZodObject<{
|
|
466
480
|
name: z.ZodString;
|
|
467
481
|
type: z.ZodString;
|
|
468
482
|
required: z.ZodBoolean;
|
|
469
483
|
set: z.ZodBoolean;
|
|
470
|
-
}, z.core.$strict>>>;
|
|
471
|
-
version: z.ZodNumber;
|
|
472
|
-
appliedVersion: z.ZodNumber;
|
|
473
|
-
ownerUserId: z.ZodNullable<z.ZodString>;
|
|
474
|
-
state: z.ZodString;
|
|
475
|
-
pod: z.ZodOptional<z.ZodObject<{
|
|
476
|
-
desired: z.ZodEnum<{
|
|
477
|
-
deleted: "deleted";
|
|
478
|
-
running: "running";
|
|
479
|
-
suspended: "suspended";
|
|
480
|
-
}>;
|
|
481
|
-
observed: z.ZodEnum<{
|
|
482
|
-
creating: "creating";
|
|
483
|
-
deleting: "deleting";
|
|
484
|
-
failed: "failed";
|
|
485
|
-
lost: "lost";
|
|
486
|
-
running: "running";
|
|
487
|
-
suspended: "suspended";
|
|
488
|
-
}>;
|
|
489
|
-
volumeGeneration: z.ZodNumber;
|
|
490
|
-
hostEpoch: z.ZodNumber;
|
|
491
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
492
|
-
imageDigest: z.ZodOptional<z.ZodString>;
|
|
493
484
|
}, z.core.$strict>>;
|
|
494
|
-
lastUsedAt: z.ZodString;
|
|
495
485
|
disk: z.ZodOptional<z.ZodObject<{
|
|
496
486
|
latestVersion: z.ZodNullable<z.ZodNumber>;
|
|
497
|
-
operation: z.
|
|
487
|
+
operation: z.ZodNullable<z.ZodObject<{
|
|
498
488
|
kind: z.ZodEnum<{
|
|
499
489
|
restore: "restore";
|
|
500
490
|
seed: "seed";
|
|
@@ -504,17 +494,18 @@ export declare const EnvironmentViewSchema: z.ZodObject<{
|
|
|
504
494
|
startedAt: z.ZodString;
|
|
505
495
|
}, z.core.$strict>>;
|
|
506
496
|
}, z.core.$strict>>;
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
497
|
+
forkedFrom: z.ZodNullable<z.ZodObject<{
|
|
498
|
+
agent: z.ZodString;
|
|
499
|
+
disk: z.ZodNullable<z.ZodNumber>;
|
|
510
500
|
}, z.core.$strict>>;
|
|
501
|
+
lastUsedAt: z.ZodString;
|
|
511
502
|
createdAt: z.ZodString;
|
|
512
503
|
updatedAt: z.ZodString;
|
|
513
504
|
}, z.core.$strict>;
|
|
514
|
-
export type
|
|
515
|
-
/** `POST /v1/
|
|
516
|
-
export declare const
|
|
517
|
-
|
|
505
|
+
export type AgentView = z.infer<typeof AgentViewSchema>;
|
|
506
|
+
/** `POST /v1/agents/{id}/snapshot`: a new version of the Agent's disk. */
|
|
507
|
+
export declare const AgentSnapshotSchema: z.ZodObject<{
|
|
508
|
+
agentId: z.ZodString;
|
|
518
509
|
artifactId: z.ZodString;
|
|
519
510
|
version: z.ZodNumber;
|
|
520
511
|
format: z.ZodString;
|
|
@@ -525,15 +516,15 @@ export declare const EnvironmentSnapshotSchema: z.ZodObject<{
|
|
|
525
516
|
unchanged: z.ZodBoolean;
|
|
526
517
|
createdAt: z.ZodString;
|
|
527
518
|
}, z.core.$strict>;
|
|
528
|
-
export type
|
|
529
|
-
/** `POST /v1/
|
|
530
|
-
export declare const
|
|
519
|
+
export type AgentSnapshot = z.infer<typeof AgentSnapshotSchema>;
|
|
520
|
+
/** `POST /v1/agents/{id}/restore`: which version of its disk to put back. */
|
|
521
|
+
export declare const RestoreAgentRequestSchema: z.ZodObject<{
|
|
531
522
|
requestId: z.ZodOptional<z.ZodString>;
|
|
532
523
|
version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"latest">]>;
|
|
533
524
|
}, z.core.$strict>;
|
|
534
|
-
export type
|
|
535
|
-
export declare const
|
|
536
|
-
|
|
525
|
+
export type RestoreAgentRequest = z.infer<typeof RestoreAgentRequestSchema>;
|
|
526
|
+
export declare const AgentRestoreSchema: z.ZodObject<{
|
|
527
|
+
agentId: z.ZodString;
|
|
537
528
|
restored: z.ZodNumber;
|
|
538
529
|
status: z.ZodEnum<{
|
|
539
530
|
done: "done";
|
|
@@ -541,10 +532,10 @@ export declare const EnvironmentRestoreSchema: z.ZodObject<{
|
|
|
541
532
|
}>;
|
|
542
533
|
volumeGeneration: z.ZodOptional<z.ZodNumber>;
|
|
543
534
|
}, z.core.$strict>;
|
|
544
|
-
export type
|
|
545
|
-
/** `GET /v1/
|
|
546
|
-
export declare const
|
|
547
|
-
|
|
535
|
+
export type AgentRestore = z.infer<typeof AgentRestoreSchema>;
|
|
536
|
+
/** `GET /v1/agents/{id}/versions`: its disk versions, newest first. */
|
|
537
|
+
export declare const AgentDiskVersionsSchema: z.ZodObject<{
|
|
538
|
+
agentId: z.ZodString;
|
|
548
539
|
artifactId: z.ZodNullable<z.ZodString>;
|
|
549
540
|
latest: z.ZodNullable<z.ZodNumber>;
|
|
550
541
|
versions: z.ZodArray<z.ZodObject<{
|
|
@@ -553,10 +544,83 @@ export declare const EnvironmentVersionsSchema: z.ZodObject<{
|
|
|
553
544
|
createdAt: z.ZodString;
|
|
554
545
|
}, z.core.$strict>>;
|
|
555
546
|
}, z.core.$strict>;
|
|
556
|
-
export type
|
|
557
|
-
export declare const
|
|
558
|
-
|
|
559
|
-
|
|
547
|
+
export type AgentDiskVersions = z.infer<typeof AgentDiskVersionsSchema>;
|
|
548
|
+
export declare const DeleteAgentResponseSchema: z.ZodObject<{
|
|
549
|
+
id: z.ZodString;
|
|
550
|
+
deleted: z.ZodBoolean;
|
|
551
|
+
}, z.core.$strict>;
|
|
552
|
+
export type DeleteAgentResponse = z.infer<typeof DeleteAgentResponseSchema>;
|
|
553
|
+
/** A turn that was running on an Agent when one of its connections opened. */
|
|
554
|
+
export declare const EgressRunningTurnSchema: z.ZodObject<{
|
|
555
|
+
sessionId: z.ZodString;
|
|
556
|
+
turnId: z.ZodString;
|
|
557
|
+
}, z.core.$strict>;
|
|
558
|
+
export type EgressRunningTurn = z.infer<typeof EgressRunningTurnSchema>;
|
|
559
|
+
/**
|
|
560
|
+
* One connection a pod Agent opened through egress-gate: written when it closes,
|
|
561
|
+
* or at once when the gate refused it, to the Agent's own stream as `agent.egress`. The
|
|
562
|
+
* connection is the Agent's: its egress token names the pod, and the Agent's sessions run turns
|
|
563
|
+
* in parallel. `runningTurns` lists the turns active on it as the connection opened, at
|
|
564
|
+
* most 16, as context and never as the owner.
|
|
565
|
+
*
|
|
566
|
+
* `startedAt` is the gate's clock at CONNECT and `durationMs` runs from there to the close, so
|
|
567
|
+
* the span is the gate's own measurement. `bytesUp` is what the sandbox sent, `bytesDown` what it
|
|
568
|
+
* got. `mode: "credential"` is a host an `environment_secret` is bound to: the gate read
|
|
569
|
+
* each request (`requests`) and set a credential on it (`credentialIds`, ids only). It never
|
|
570
|
+
* carries a header value, a URL path or a body.
|
|
571
|
+
*/
|
|
572
|
+
export declare const EgressConnectionPayloadSchema: z.ZodObject<{
|
|
573
|
+
agentId: z.ZodString;
|
|
574
|
+
host: z.ZodString;
|
|
575
|
+
port: z.ZodNumber;
|
|
576
|
+
outcome: z.ZodEnum<{
|
|
577
|
+
allowed: "allowed";
|
|
578
|
+
refused: "refused";
|
|
579
|
+
}>;
|
|
580
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
581
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
582
|
+
mode: z.ZodEnum<{
|
|
583
|
+
credential: "credential";
|
|
584
|
+
tunnel: "tunnel";
|
|
585
|
+
}>;
|
|
586
|
+
credentialBound: z.ZodBoolean;
|
|
587
|
+
credentialIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
588
|
+
requests: z.ZodOptional<z.ZodNumber>;
|
|
589
|
+
bytesUp: z.ZodNumber;
|
|
590
|
+
bytesDown: z.ZodNumber;
|
|
591
|
+
durationMs: z.ZodNumber;
|
|
592
|
+
startedAt: z.ZodString;
|
|
593
|
+
runningTurns: z.ZodArray<z.ZodObject<{
|
|
594
|
+
sessionId: z.ZodString;
|
|
595
|
+
turnId: z.ZodString;
|
|
596
|
+
}, z.core.$strict>>;
|
|
597
|
+
}, z.core.$loose>;
|
|
598
|
+
/** The schema id of an Agent's lifecycle events (its stream in the record). */
|
|
599
|
+
export declare const AGENT_EVENT_SCHEMA = "nylorun.agent-event/1";
|
|
600
|
+
/**
|
|
601
|
+
* `memory.updated`: the session's agent changed the Agent's memory with its
|
|
602
|
+
* `memory` tool: each memory the call changed, what changed it and its version after. The Agent's
|
|
603
|
+
* stream carries the same as `agent.memory_updated`, with the session.
|
|
604
|
+
*/
|
|
605
|
+
export declare const MemoryUpdatedPayloadSchema: z.ZodObject<{
|
|
606
|
+
effectId: z.ZodString;
|
|
607
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
608
|
+
path: z.ZodString;
|
|
609
|
+
operation: z.ZodEnum<{
|
|
610
|
+
create: "create";
|
|
611
|
+
delete: "delete";
|
|
612
|
+
insert: "insert";
|
|
613
|
+
rename: "rename";
|
|
614
|
+
str_replace: "str_replace";
|
|
615
|
+
}>;
|
|
616
|
+
version: z.ZodNumber;
|
|
617
|
+
}, z.core.$strict>>;
|
|
618
|
+
}, z.core.$loose>;
|
|
619
|
+
export declare const AGENT_EVENT_TYPES: readonly ["agent.created", "agent.attached", "agent.detached", "agent.deleted", "agent.running", "agent.suspended", "agent.relaunched", "agent.lost", "agent.reset", "agent.failed", "agent.forked", "agent.outdated", "agent.version_changed", "agent.start_failed", "agent.egress", "agent.run", "agent.trigger_paused", "agent.trigger_resumed", "agent.trigger_secret_rotated", "agent.memory_updated"];
|
|
620
|
+
export type AgentEventType = (typeof AGENT_EVENT_TYPES)[number];
|
|
621
|
+
/** The payload of each Agent lifecycle event. */
|
|
622
|
+
export declare const AGENT_EVENT_PAYLOADS: {
|
|
623
|
+
readonly "agent.created": z.ZodObject<{
|
|
560
624
|
kind: z.ZodEnum<{
|
|
561
625
|
none: "none";
|
|
562
626
|
pod: "pod";
|
|
@@ -564,278 +628,102 @@ export declare const ListEnvironmentsResponseSchema: z.ZodObject<{
|
|
|
564
628
|
}>;
|
|
565
629
|
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
566
630
|
manifest: z.ZodObject<{
|
|
567
|
-
image: z.ZodOptional<z.ZodString>;
|
|
568
|
-
resources: z.ZodOptional<z.ZodObject<{
|
|
569
|
-
cpus: z.ZodNumber;
|
|
570
|
-
memory: z.ZodString;
|
|
571
|
-
}, z.core.$strict>>;
|
|
572
|
-
storage: z.ZodOptional<z.ZodString>;
|
|
573
|
-
network: z.ZodOptional<z.ZodObject<{
|
|
574
|
-
allowedHosts: z.ZodArray<z.ZodString>;
|
|
575
|
-
}, z.core.$strict>>;
|
|
576
|
-
harness: z.ZodString;
|
|
577
|
-
lifecycle: z.ZodObject<{
|
|
578
|
-
idle: z.ZodOptional<z.ZodString>;
|
|
579
|
-
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
580
|
-
}, z.core.$strict>;
|
|
581
|
-
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
582
|
-
command: z.ZodString;
|
|
583
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
584
|
-
timeout: z.ZodOptional<z.ZodString>;
|
|
585
|
-
}, z.core.$strict>>>;
|
|
586
|
-
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
587
|
-
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
588
|
-
version: z.ZodNumber;
|
|
589
|
-
path: z.ZodString;
|
|
590
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
591
|
-
path: z.ZodString;
|
|
592
|
-
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
593
|
-
}, z.core.$strict>]>>>;
|
|
594
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
595
|
-
artifacts: z.ZodOptional<z.ZodObject<{
|
|
596
|
-
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
597
|
-
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
598
|
-
}, z.core.$strict>>;
|
|
599
|
-
skills: z.ZodOptional<z.ZodObject<{
|
|
600
|
-
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
601
|
-
}, z.core.$strict>>;
|
|
602
|
-
disk: z.ZodOptional<z.ZodObject<{
|
|
603
|
-
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
604
|
-
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
605
|
-
}, z.core.$strict>>;
|
|
606
|
-
}, z.core.$strict>>;
|
|
607
|
-
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
608
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
609
|
-
description: z.ZodOptional<z.ZodString>;
|
|
610
|
-
type: z.ZodLiteral<"environment_secret">;
|
|
611
|
-
allowedHosts: z.ZodArray<z.ZodString>;
|
|
612
|
-
inject: z.ZodOptional<z.ZodObject<{
|
|
613
|
-
header: z.ZodString;
|
|
614
|
-
format: z.ZodString;
|
|
615
|
-
}, z.core.$strict>>;
|
|
616
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
617
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
618
|
-
description: z.ZodOptional<z.ZodString>;
|
|
619
|
-
type: z.ZodLiteral<"environment_variable">;
|
|
620
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
621
|
-
via: z.ZodOptional<z.ZodString>;
|
|
622
|
-
identity: z.ZodOptional<z.ZodObject<{
|
|
623
|
-
header: z.ZodString;
|
|
624
|
-
}, z.core.$strict>>;
|
|
625
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
626
|
-
description: z.ZodOptional<z.ZodString>;
|
|
627
|
-
type: z.ZodLiteral<"bearer">;
|
|
628
|
-
url: z.ZodString;
|
|
629
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
630
|
-
via: z.ZodOptional<z.ZodString>;
|
|
631
|
-
identity: z.ZodOptional<z.ZodObject<{
|
|
632
|
-
header: z.ZodString;
|
|
633
|
-
}, z.core.$strict>>;
|
|
634
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
635
|
-
description: z.ZodOptional<z.ZodString>;
|
|
636
|
-
type: z.ZodLiteral<"headers">;
|
|
637
|
-
url: z.ZodString;
|
|
638
|
-
}, z.core.$strict>], "type">>>>;
|
|
639
|
-
}, z.core.$strict>;
|
|
640
|
-
manifestName: z.ZodOptional<z.ZodString>;
|
|
641
|
-
manifestVersion: z.ZodOptional<z.ZodNumber>;
|
|
642
|
-
manifestHash: z.ZodOptional<z.ZodString>;
|
|
643
|
-
limits: z.ZodObject<{
|
|
644
|
-
artifacts: z.ZodObject<{
|
|
645
|
-
fileBytes: z.ZodNumber;
|
|
646
|
-
totalBytes: z.ZodNumber;
|
|
647
|
-
}, z.core.$strict>;
|
|
648
|
-
skills: z.ZodObject<{
|
|
649
|
-
totalBytes: z.ZodNumber;
|
|
650
|
-
}, z.core.$strict>;
|
|
651
|
-
disk: z.ZodObject<{
|
|
652
|
-
versionBytes: z.ZodNumber;
|
|
653
|
-
versionEntries: z.ZodNumber;
|
|
654
|
-
}, z.core.$strict>;
|
|
655
|
-
}, z.core.$strict>;
|
|
656
|
-
forkedFrom: z.ZodOptional<z.ZodObject<{
|
|
657
|
-
environment: z.ZodString;
|
|
658
|
-
disk: z.ZodNullable<z.ZodNumber>;
|
|
659
|
-
}, z.core.$strict>>;
|
|
660
|
-
slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
661
|
-
name: z.ZodString;
|
|
662
|
-
type: z.ZodString;
|
|
663
|
-
required: z.ZodBoolean;
|
|
664
|
-
set: z.ZodBoolean;
|
|
665
|
-
}, z.core.$strict>>>;
|
|
666
|
-
version: z.ZodNumber;
|
|
667
|
-
appliedVersion: z.ZodNumber;
|
|
668
|
-
ownerUserId: z.ZodNullable<z.ZodString>;
|
|
669
|
-
state: z.ZodString;
|
|
670
|
-
pod: z.ZodOptional<z.ZodObject<{
|
|
671
|
-
desired: z.ZodEnum<{
|
|
672
|
-
deleted: "deleted";
|
|
673
|
-
running: "running";
|
|
674
|
-
suspended: "suspended";
|
|
675
|
-
}>;
|
|
676
|
-
observed: z.ZodEnum<{
|
|
677
|
-
creating: "creating";
|
|
678
|
-
deleting: "deleting";
|
|
679
|
-
failed: "failed";
|
|
680
|
-
lost: "lost";
|
|
681
|
-
running: "running";
|
|
682
|
-
suspended: "suspended";
|
|
683
|
-
}>;
|
|
684
|
-
volumeGeneration: z.ZodNumber;
|
|
685
|
-
hostEpoch: z.ZodNumber;
|
|
686
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
687
|
-
imageDigest: z.ZodOptional<z.ZodString>;
|
|
688
|
-
}, z.core.$strict>>;
|
|
689
|
-
lastUsedAt: z.ZodString;
|
|
690
|
-
disk: z.ZodOptional<z.ZodObject<{
|
|
691
|
-
latestVersion: z.ZodNullable<z.ZodNumber>;
|
|
692
|
-
operation: z.ZodOptional<z.ZodObject<{
|
|
693
|
-
kind: z.ZodEnum<{
|
|
694
|
-
restore: "restore";
|
|
695
|
-
seed: "seed";
|
|
696
|
-
snapshot: "snapshot";
|
|
697
|
-
}>;
|
|
698
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
699
|
-
startedAt: z.ZodString;
|
|
700
|
-
}, z.core.$strict>>;
|
|
701
|
-
}, z.core.$strict>>;
|
|
702
|
-
sessions: z.ZodArray<z.ZodObject<{
|
|
703
|
-
id: z.ZodString;
|
|
704
|
-
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
705
|
-
}, z.core.$strict>>;
|
|
706
|
-
createdAt: z.ZodString;
|
|
707
|
-
updatedAt: z.ZodString;
|
|
708
|
-
}, z.core.$strict>>;
|
|
709
|
-
}, z.core.$strict>;
|
|
710
|
-
export type ListEnvironmentsResponse = z.infer<typeof ListEnvironmentsResponseSchema>;
|
|
711
|
-
export declare const DeleteEnvironmentResponseSchema: z.ZodObject<{
|
|
712
|
-
id: z.ZodString;
|
|
713
|
-
deleted: z.ZodBoolean;
|
|
714
|
-
}, z.core.$strict>;
|
|
715
|
-
export type DeleteEnvironmentResponse = z.infer<typeof DeleteEnvironmentResponseSchema>;
|
|
716
|
-
/** A turn that was running on an Environment when one of its connections opened (D67). */
|
|
717
|
-
export declare const EgressRunningTurnSchema: z.ZodObject<{
|
|
718
|
-
sessionId: z.ZodString;
|
|
719
|
-
turnId: z.ZodString;
|
|
720
|
-
}, z.core.$strict>;
|
|
721
|
-
export type EgressRunningTurn = z.infer<typeof EgressRunningTurnSchema>;
|
|
722
|
-
/**
|
|
723
|
-
* One connection a pod Environment opened through egress-gate (track R7, Q6): written when it
|
|
724
|
-
* closes, or at once when the gate refused it, to the Environment's own stream as
|
|
725
|
-
* `environment.egress` (D67). The connection is the Environment's: its egress token names the pod,
|
|
726
|
-
* and the Environment's sessions run turns in parallel (D66). `runningTurns` lists the turns
|
|
727
|
-
* active on it as the connection opened, at most 16, as context and never as the owner.
|
|
728
|
-
*
|
|
729
|
-
* `startedAt` is the gate's clock at CONNECT and `durationMs` runs from there to the close, so
|
|
730
|
-
* the span is the gate's own measurement. `bytesUp` is what the sandbox sent, `bytesDown` what it
|
|
731
|
-
* got. `mode: "credential"` is a host an `environment_secret` is bound to (R2c): the gate read
|
|
732
|
-
* each request (`requests`) and set a credential on it (`credentialIds`, ids only). It never
|
|
733
|
-
* carries a header value, a URL path or a body.
|
|
734
|
-
*/
|
|
735
|
-
export declare const EgressConnectionPayloadSchema: z.ZodObject<{
|
|
736
|
-
environmentId: z.ZodString;
|
|
737
|
-
host: z.ZodString;
|
|
738
|
-
port: z.ZodNumber;
|
|
739
|
-
outcome: z.ZodEnum<{
|
|
740
|
-
allowed: "allowed";
|
|
741
|
-
refused: "refused";
|
|
742
|
-
}>;
|
|
743
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
744
|
-
status: z.ZodOptional<z.ZodNumber>;
|
|
745
|
-
mode: z.ZodEnum<{
|
|
746
|
-
credential: "credential";
|
|
747
|
-
tunnel: "tunnel";
|
|
748
|
-
}>;
|
|
749
|
-
credentialBound: z.ZodBoolean;
|
|
750
|
-
credentialIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
751
|
-
requests: z.ZodOptional<z.ZodNumber>;
|
|
752
|
-
bytesUp: z.ZodNumber;
|
|
753
|
-
bytesDown: z.ZodNumber;
|
|
754
|
-
durationMs: z.ZodNumber;
|
|
755
|
-
startedAt: z.ZodString;
|
|
756
|
-
runningTurns: z.ZodArray<z.ZodObject<{
|
|
757
|
-
sessionId: z.ZodString;
|
|
758
|
-
turnId: z.ZodString;
|
|
759
|
-
}, z.core.$strict>>;
|
|
760
|
-
}, z.core.$loose>;
|
|
761
|
-
/** The schema id of an Environment's lifecycle events (its stream in the record). */
|
|
762
|
-
export declare const ENVIRONMENT_EVENT_SCHEMA = "nylorun.environment-event/1";
|
|
763
|
-
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"];
|
|
764
|
-
export type EnvironmentEventType = (typeof ENVIRONMENT_EVENT_TYPES)[number];
|
|
765
|
-
/** The payload of each Environment lifecycle event. */
|
|
766
|
-
export declare const ENVIRONMENT_EVENT_PAYLOADS: {
|
|
767
|
-
readonly "environment.created": z.ZodObject<{
|
|
768
|
-
kind: z.ZodEnum<{
|
|
769
|
-
none: "none";
|
|
770
|
-
pod: "pod";
|
|
771
|
-
virtual: "virtual";
|
|
772
|
-
}>;
|
|
773
|
-
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
774
|
-
manifest: z.ZodOptional<z.ZodObject<{
|
|
775
631
|
name: z.ZodString;
|
|
776
632
|
version: z.ZodNumber;
|
|
777
|
-
|
|
633
|
+
tracking: z.ZodEnum<{
|
|
634
|
+
pinned: "pinned";
|
|
635
|
+
tracking: "tracking";
|
|
636
|
+
}>;
|
|
637
|
+
}, z.core.$strict>;
|
|
778
638
|
forkedFrom: z.ZodOptional<z.ZodObject<{
|
|
779
|
-
|
|
639
|
+
agent: z.ZodString;
|
|
780
640
|
disk: z.ZodNullable<z.ZodNumber>;
|
|
781
641
|
}, z.core.$strict>>;
|
|
782
642
|
}, z.core.$loose>;
|
|
783
|
-
readonly "
|
|
643
|
+
readonly "agent.attached": z.ZodObject<{
|
|
784
644
|
sessionId: z.ZodString;
|
|
785
645
|
}, z.core.$loose>;
|
|
786
|
-
readonly "
|
|
646
|
+
readonly "agent.detached": z.ZodObject<{
|
|
787
647
|
sessionId: z.ZodString;
|
|
788
648
|
reason: z.ZodEnum<{
|
|
789
649
|
reset: "reset";
|
|
790
650
|
}>;
|
|
791
651
|
}, z.core.$loose>;
|
|
792
652
|
/** Deleted by a `DELETE`, or by the sweep once `lifecycle.deleteAfter` passed (`reason`). */
|
|
793
|
-
readonly "
|
|
653
|
+
readonly "agent.deleted": z.ZodObject<{
|
|
794
654
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
795
655
|
delete: "delete";
|
|
796
656
|
deleteAfter: "deleteAfter";
|
|
797
657
|
}>>;
|
|
798
658
|
}, z.core.$loose>;
|
|
799
|
-
/** A pod joined and serves the
|
|
800
|
-
readonly "
|
|
659
|
+
/** A pod joined and serves the Agent. */
|
|
660
|
+
readonly "agent.running": z.ZodObject<{
|
|
801
661
|
hostEpoch: z.ZodNumber;
|
|
802
662
|
}, z.core.$loose>;
|
|
803
663
|
/** Stopped (`POST .../stop`, or idle): the volume is kept; the next turn starts it again. */
|
|
804
|
-
readonly "
|
|
664
|
+
readonly "agent.suspended": z.ZodObject<{
|
|
805
665
|
reason: z.ZodEnum<{
|
|
806
666
|
idle: "idle";
|
|
667
|
+
restart: "restart";
|
|
807
668
|
stop: "stop";
|
|
808
669
|
}>;
|
|
809
670
|
}, z.core.$loose>;
|
|
810
671
|
/** Its pod was replaced (same volume): the old pod's host token no longer works. */
|
|
811
|
-
readonly "
|
|
672
|
+
readonly "agent.relaunched": z.ZodObject<{
|
|
812
673
|
hostEpoch: z.ZodNumber;
|
|
813
674
|
}, z.core.$loose>;
|
|
814
675
|
/** Its volume or node is gone: turns are refused until a reset. */
|
|
815
|
-
readonly "
|
|
676
|
+
readonly "agent.lost": z.ZodObject<{
|
|
816
677
|
reason: z.ZodString;
|
|
817
678
|
}, z.core.$loose>;
|
|
818
679
|
/** Reset: a new pod on a new, empty volume. */
|
|
819
|
-
readonly "
|
|
680
|
+
readonly "agent.reset": z.ZodObject<{
|
|
820
681
|
volumeGeneration: z.ZodNumber;
|
|
821
682
|
}, z.core.$loose>;
|
|
822
683
|
/** The pod did not become ready. */
|
|
823
|
-
readonly "
|
|
684
|
+
readonly "agent.failed": z.ZodObject<{
|
|
824
685
|
reason: z.ZodString;
|
|
825
686
|
}, z.core.$loose>;
|
|
826
|
-
/** Forked into
|
|
827
|
-
readonly "
|
|
687
|
+
/** Forked into Agent `to`: its disk started from version `disk`, `secrets` were copied. */
|
|
688
|
+
readonly "agent.forked": z.ZodObject<{
|
|
828
689
|
to: z.ZodString;
|
|
829
690
|
disk: z.ZodNullable<z.ZodNumber>;
|
|
830
|
-
manifest: z.
|
|
691
|
+
manifest: z.ZodObject<{
|
|
831
692
|
name: z.ZodString;
|
|
832
693
|
version: z.ZodNumber;
|
|
833
|
-
}, z.core.$strict
|
|
694
|
+
}, z.core.$strict>;
|
|
834
695
|
secrets: z.ZodNumber;
|
|
835
696
|
}, z.core.$loose>;
|
|
836
|
-
/**
|
|
837
|
-
|
|
838
|
-
|
|
697
|
+
/**
|
|
698
|
+
* Asked to move to version `to` of its manifest, which waits: for a value of each
|
|
699
|
+
* required secret it adds (`secrets`), or for its pod's next start (`start`).
|
|
700
|
+
*/
|
|
701
|
+
readonly "agent.outdated": z.ZodObject<{
|
|
702
|
+
from: z.ZodNumber;
|
|
703
|
+
to: z.ZodNumber;
|
|
704
|
+
waitingFor: z.ZodEnum<{
|
|
705
|
+
secrets: "secrets";
|
|
706
|
+
start: "start";
|
|
707
|
+
}>;
|
|
708
|
+
}, z.core.$loose>;
|
|
709
|
+
/** Runs version `to` of its manifest now: turns that start from here run it. */
|
|
710
|
+
readonly "agent.version_changed": z.ZodObject<{
|
|
711
|
+
from: z.ZodNumber;
|
|
712
|
+
to: z.ZodNumber;
|
|
713
|
+
}, z.core.$loose>;
|
|
714
|
+
/**
|
|
715
|
+
* Its pod did not start on version `to` (its setup failed, the pod failed, or it took longer
|
|
716
|
+
* than the Host allows): it went back to version `from`, with its disk as it was.
|
|
717
|
+
*/
|
|
718
|
+
readonly "agent.start_failed": z.ZodObject<{
|
|
719
|
+
from: z.ZodNumber;
|
|
720
|
+
to: z.ZodNumber;
|
|
721
|
+
reason: z.ZodString;
|
|
722
|
+
reverted: z.ZodBoolean;
|
|
723
|
+
}, z.core.$loose>;
|
|
724
|
+
/** A connection through egress-gate, with the turns running as it opened. */
|
|
725
|
+
readonly "agent.egress": z.ZodObject<{
|
|
726
|
+
agentId: z.ZodString;
|
|
839
727
|
host: z.ZodString;
|
|
840
728
|
port: z.ZodNumber;
|
|
841
729
|
outcome: z.ZodEnum<{
|
|
@@ -860,67 +748,126 @@ export declare const ENVIRONMENT_EVENT_PAYLOADS: {
|
|
|
860
748
|
turnId: z.ZodString;
|
|
861
749
|
}, z.core.$strict>>;
|
|
862
750
|
}, z.core.$loose>;
|
|
751
|
+
/** A trigger fired, or was run by hand: the run and what came of it (`TriggerRunSchema`). */
|
|
752
|
+
readonly "agent.run": z.ZodObject<{
|
|
753
|
+
runId: z.ZodString;
|
|
754
|
+
triggerId: z.ZodString;
|
|
755
|
+
dueAt: z.ZodString;
|
|
756
|
+
late: z.ZodBoolean;
|
|
757
|
+
status: z.ZodString;
|
|
758
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
759
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
760
|
+
}, z.core.$loose>;
|
|
761
|
+
readonly "agent.trigger_paused": z.ZodObject<{
|
|
762
|
+
triggerId: z.ZodString;
|
|
763
|
+
reason: z.ZodString;
|
|
764
|
+
}, z.core.$loose>;
|
|
765
|
+
readonly "agent.trigger_resumed": z.ZodObject<{
|
|
766
|
+
triggerId: z.ZodString;
|
|
767
|
+
}, z.core.$loose>;
|
|
768
|
+
/** A webhook trigger's signing secret was made or replaced; the one before stopped working. */
|
|
769
|
+
readonly "agent.trigger_secret_rotated": z.ZodObject<{
|
|
770
|
+
triggerId: z.ZodString;
|
|
771
|
+
}, z.core.$loose>;
|
|
772
|
+
/** A turn changed the Agent's memories (`memory.updated` in its session): which, and how. */
|
|
773
|
+
readonly "agent.memory_updated": z.ZodObject<{
|
|
774
|
+
effectId: z.ZodString;
|
|
775
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
776
|
+
path: z.ZodString;
|
|
777
|
+
operation: z.ZodEnum<{
|
|
778
|
+
create: "create";
|
|
779
|
+
delete: "delete";
|
|
780
|
+
insert: "insert";
|
|
781
|
+
rename: "rename";
|
|
782
|
+
str_replace: "str_replace";
|
|
783
|
+
}>;
|
|
784
|
+
version: z.ZodNumber;
|
|
785
|
+
}, z.core.$strict>>;
|
|
786
|
+
sessionId: z.ZodString;
|
|
787
|
+
turnId: z.ZodString;
|
|
788
|
+
}, z.core.$loose>;
|
|
863
789
|
};
|
|
864
|
-
export type
|
|
865
|
-
/** One lifecycle event on an
|
|
866
|
-
export declare const
|
|
867
|
-
schema: z.ZodLiteral<"nylorun.
|
|
790
|
+
export type AgentEventPayload<T extends AgentEventType> = z.infer<(typeof AGENT_EVENT_PAYLOADS)[T]>;
|
|
791
|
+
/** One lifecycle event on an Agent's stream, numbered from 0. */
|
|
792
|
+
export declare const AgentEventSchema: z.ZodObject<{
|
|
793
|
+
schema: z.ZodLiteral<"nylorun.agent-event/1">;
|
|
868
794
|
eventId: z.ZodString;
|
|
869
795
|
tenantId: z.ZodString;
|
|
870
|
-
|
|
796
|
+
agentId: z.ZodString;
|
|
871
797
|
seq: z.ZodNumber;
|
|
872
798
|
time: z.ZodString;
|
|
873
799
|
type: z.ZodEnum<{
|
|
874
|
-
"
|
|
875
|
-
"
|
|
876
|
-
"
|
|
877
|
-
"
|
|
878
|
-
"
|
|
879
|
-
"
|
|
880
|
-
"
|
|
881
|
-
"
|
|
882
|
-
"
|
|
883
|
-
"
|
|
884
|
-
"
|
|
885
|
-
"
|
|
800
|
+
"agent.attached": "agent.attached";
|
|
801
|
+
"agent.created": "agent.created";
|
|
802
|
+
"agent.deleted": "agent.deleted";
|
|
803
|
+
"agent.detached": "agent.detached";
|
|
804
|
+
"agent.egress": "agent.egress";
|
|
805
|
+
"agent.failed": "agent.failed";
|
|
806
|
+
"agent.forked": "agent.forked";
|
|
807
|
+
"agent.lost": "agent.lost";
|
|
808
|
+
"agent.memory_updated": "agent.memory_updated";
|
|
809
|
+
"agent.outdated": "agent.outdated";
|
|
810
|
+
"agent.relaunched": "agent.relaunched";
|
|
811
|
+
"agent.reset": "agent.reset";
|
|
812
|
+
"agent.run": "agent.run";
|
|
813
|
+
"agent.running": "agent.running";
|
|
814
|
+
"agent.start_failed": "agent.start_failed";
|
|
815
|
+
"agent.suspended": "agent.suspended";
|
|
816
|
+
"agent.trigger_paused": "agent.trigger_paused";
|
|
817
|
+
"agent.trigger_resumed": "agent.trigger_resumed";
|
|
818
|
+
"agent.trigger_secret_rotated": "agent.trigger_secret_rotated";
|
|
819
|
+
"agent.version_changed": "agent.version_changed";
|
|
886
820
|
}>;
|
|
887
821
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
888
822
|
}, z.core.$strict>;
|
|
889
|
-
export type
|
|
890
|
-
export declare const
|
|
823
|
+
export type AgentEvent = z.infer<typeof AgentEventSchema>;
|
|
824
|
+
export declare const ListAgentEventsResponseSchema: z.ZodObject<{
|
|
891
825
|
events: z.ZodArray<z.ZodObject<{
|
|
892
|
-
schema: z.ZodLiteral<"nylorun.
|
|
826
|
+
schema: z.ZodLiteral<"nylorun.agent-event/1">;
|
|
893
827
|
eventId: z.ZodString;
|
|
894
828
|
tenantId: z.ZodString;
|
|
895
|
-
|
|
829
|
+
agentId: z.ZodString;
|
|
896
830
|
seq: z.ZodNumber;
|
|
897
831
|
time: z.ZodString;
|
|
898
832
|
type: z.ZodEnum<{
|
|
899
|
-
"
|
|
900
|
-
"
|
|
901
|
-
"
|
|
902
|
-
"
|
|
903
|
-
"
|
|
904
|
-
"
|
|
905
|
-
"
|
|
906
|
-
"
|
|
907
|
-
"
|
|
908
|
-
"
|
|
909
|
-
"
|
|
910
|
-
"
|
|
833
|
+
"agent.attached": "agent.attached";
|
|
834
|
+
"agent.created": "agent.created";
|
|
835
|
+
"agent.deleted": "agent.deleted";
|
|
836
|
+
"agent.detached": "agent.detached";
|
|
837
|
+
"agent.egress": "agent.egress";
|
|
838
|
+
"agent.failed": "agent.failed";
|
|
839
|
+
"agent.forked": "agent.forked";
|
|
840
|
+
"agent.lost": "agent.lost";
|
|
841
|
+
"agent.memory_updated": "agent.memory_updated";
|
|
842
|
+
"agent.outdated": "agent.outdated";
|
|
843
|
+
"agent.relaunched": "agent.relaunched";
|
|
844
|
+
"agent.reset": "agent.reset";
|
|
845
|
+
"agent.run": "agent.run";
|
|
846
|
+
"agent.running": "agent.running";
|
|
847
|
+
"agent.start_failed": "agent.start_failed";
|
|
848
|
+
"agent.suspended": "agent.suspended";
|
|
849
|
+
"agent.trigger_paused": "agent.trigger_paused";
|
|
850
|
+
"agent.trigger_resumed": "agent.trigger_resumed";
|
|
851
|
+
"agent.trigger_secret_rotated": "agent.trigger_secret_rotated";
|
|
852
|
+
"agent.version_changed": "agent.version_changed";
|
|
911
853
|
}>;
|
|
912
854
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
913
855
|
}, z.core.$strict>>;
|
|
914
856
|
}, z.core.$strict>;
|
|
857
|
+
/**
|
|
858
|
+
* `PUT /v1/sessions/{id}` (protocol 16): the session's Agent, owner and info. The session runs on
|
|
859
|
+
* the Agent for its life (its sandbox, its vault's credentials) and pins the manifest version the
|
|
860
|
+
* Agent runs when it opens. No session is special: an app that keeps one conversation
|
|
861
|
+
* going reuses its id.
|
|
862
|
+
*/
|
|
915
863
|
export declare const PutSessionRequestSchema: z.ZodObject<{
|
|
916
864
|
requestId: z.ZodString;
|
|
917
|
-
|
|
865
|
+
agent: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
918
866
|
ownerUserId: z.ZodString;
|
|
919
867
|
info: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
920
|
-
environment: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
921
868
|
}, z.core.$strict>;
|
|
922
869
|
export type PutSessionRequest = z.infer<typeof PutSessionRequestSchema>;
|
|
923
|
-
/** The hosts a harness can run on
|
|
870
|
+
/** The hosts a harness can run on. */
|
|
924
871
|
export declare const PLACEMENT_HOSTS: readonly ["harness-container", "sandbox"];
|
|
925
872
|
export type PlacementHost = (typeof PLACEMENT_HOSTS)[number];
|
|
926
873
|
/**
|
|
@@ -984,14 +931,14 @@ export declare const HEADER_NAME_PATTERN: RegExp;
|
|
|
984
931
|
/** A loopback host as a URL's `hostname` names it: plain `http` reaches only these. */
|
|
985
932
|
export declare const LOOPBACK_HOSTS: RegExp;
|
|
986
933
|
/**
|
|
987
|
-
* `via
|
|
934
|
+
* `via`: where this installation reaches the credential's server, such as a
|
|
988
935
|
* gateway's endpoint for it. An absolute `https` URL (`http` only to a loopback host), with no
|
|
989
936
|
* userinfo, query string or fragment. Credentials are still matched by the URL the manifest
|
|
990
937
|
* names; `via` changes only where the request goes.
|
|
991
938
|
*/
|
|
992
939
|
export declare const CredentialViaSchema: z.ZodString;
|
|
993
940
|
/**
|
|
994
|
-
* The identity header
|
|
941
|
+
* The identity header: each request carries the session owner's subject in
|
|
995
942
|
* `header`, for a gateway that keeps each person's accounts. A session with no person as its
|
|
996
943
|
* owner (the reserved `installation`) sends none.
|
|
997
944
|
*/
|
|
@@ -1002,13 +949,13 @@ export type CredentialIdentity = z.infer<typeof CredentialIdentitySchema>;
|
|
|
1002
949
|
export declare const RESERVED_ENVIRONMENT_NAMES: ReadonlySet<string>;
|
|
1003
950
|
export declare function isReservedEnvironmentName(name: string): boolean;
|
|
1004
951
|
/**
|
|
1005
|
-
* The value a sandbox sees for every `environment_secret
|
|
952
|
+
* The value a sandbox sees for every `environment_secret`: never the secret. Word
|
|
1006
953
|
* characters only, so CLIs that check a token's format before sending it (the Vercel CLI
|
|
1007
954
|
* refuses anything matching `\W`) still send the request egress-gate sets the header on.
|
|
1008
955
|
*/
|
|
1009
956
|
export declare const ENVIRONMENT_SECRET_SENTINEL = "nylorun_managed";
|
|
1010
957
|
/**
|
|
1011
|
-
* How egress-gate writes an `environment_secret` into a request
|
|
958
|
+
* How egress-gate writes an `environment_secret` into a request: one header, set on
|
|
1012
959
|
* every request to a bound host. `format` is text with `{value}` once, optionally inside a
|
|
1013
960
|
* `{base64:…}` group, for example `Bearer {value}` (the default),
|
|
1014
961
|
* `Basic {base64:x-access-token:{value}}` or `{value}`.
|
|
@@ -1027,13 +974,13 @@ export declare const EnvironmentSecretInjectSchema: z.ZodObject<{
|
|
|
1027
974
|
export type EnvironmentSecretInject = z.infer<typeof EnvironmentSecretInjectSchema>;
|
|
1028
975
|
/**
|
|
1029
976
|
* The name of a credential for a tool (`bearer` or `headers`): a label of 1–64 characters.
|
|
1030
|
-
* An identifier's grammar is the protocol's
|
|
977
|
+
* An identifier's grammar is the protocol's: it crosses the Runtime API, tokens and grants
|
|
1031
978
|
* and means the same in every installation, so its length is a constant of protocol 15, not a
|
|
1032
979
|
* setting.
|
|
1033
980
|
*/
|
|
1034
981
|
export declare const TOOL_SECRET_NAME_PATTERN: RegExp;
|
|
1035
982
|
/**
|
|
1036
|
-
* `PUT /v1/
|
|
983
|
+
* `PUT /v1/agents/{agentId}/secrets/{name}`: creates or replaces one credential
|
|
1037
984
|
* in the Environment's vault. For `environment_secret` and `environment_variable` the name is
|
|
1038
985
|
* the variable's name (a POSIX name, not reserved); for `bearer` and `headers` it is a label.
|
|
1039
986
|
* The same name and type keeps the credential and re-seals its value and binding; another type
|
|
@@ -1041,7 +988,7 @@ export declare const TOOL_SECRET_NAME_PATTERN: RegExp;
|
|
|
1041
988
|
* credentials bound to one host, or two `bearer`/`headers` credentials for one URL, are
|
|
1042
989
|
* `409 credential_conflict`.
|
|
1043
990
|
*/
|
|
1044
|
-
export declare const
|
|
991
|
+
export declare const PutAgentSecretRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1045
992
|
requestId: z.ZodOptional<z.ZodString>;
|
|
1046
993
|
type: z.ZodLiteral<"environment_secret">;
|
|
1047
994
|
value: z.ZodString;
|
|
@@ -1073,22 +1020,22 @@ export declare const PutEnvironmentSecretRequestSchema: z.ZodDiscriminatedUnion<
|
|
|
1073
1020
|
url: z.ZodString;
|
|
1074
1021
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1075
1022
|
}, z.core.$strict>], "type">;
|
|
1076
|
-
export type
|
|
1023
|
+
export type PutAgentSecretRequest = z.infer<typeof PutAgentSecretRequestSchema>;
|
|
1077
1024
|
/**
|
|
1078
|
-
* A secret write on an Environment whose manifest declares the secret's slot
|
|
1025
|
+
* A secret write on an Environment whose manifest declares the secret's slot: only the
|
|
1079
1026
|
* value, `value` (or `headers` for a `headers` slot). Its type and binding come from the slot.
|
|
1080
1027
|
*/
|
|
1081
|
-
export declare const
|
|
1028
|
+
export declare const PutAgentSecretValueRequestSchema: z.ZodObject<{
|
|
1082
1029
|
requestId: z.ZodOptional<z.ZodString>;
|
|
1083
1030
|
value: z.ZodOptional<z.ZodString>;
|
|
1084
1031
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1085
1032
|
}, z.core.$strict>;
|
|
1086
|
-
export type
|
|
1033
|
+
export type PutAgentSecretValueRequest = z.infer<typeof PutAgentSecretValueRequestSchema>;
|
|
1087
1034
|
/** Whether `name` may name a secret of `type` (`PUT .../secrets/{name}`); a message when not. */
|
|
1088
|
-
export declare function environmentSecretNameError(type:
|
|
1035
|
+
export declare function environmentSecretNameError(type: PutAgentSecretRequest["type"], name: string): string | undefined;
|
|
1089
1036
|
/**
|
|
1090
|
-
* One secret an Environment of a kind needs
|
|
1091
|
-
* value is written into each Environment's vault (`PUT /v1/
|
|
1037
|
+
* One secret an Environment of a kind needs: its type and binding, never its value. The
|
|
1038
|
+
* value is written into each Environment's vault (`PUT /v1/agents/{id}/secrets/{name}`
|
|
1092
1039
|
* with `{ value }`, or `{ headers }` for `headers`), and the binding comes from here.
|
|
1093
1040
|
*/
|
|
1094
1041
|
export declare const EnvironmentSecretSlotSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1158,41 +1105,353 @@ export declare const EnvironmentSecretSlotsSchema: z.ZodRecord<z.ZodString, z.Zo
|
|
|
1158
1105
|
url: z.ZodString;
|
|
1159
1106
|
}, z.core.$strict>], "type">>;
|
|
1160
1107
|
export type EnvironmentSecretSlots = z.infer<typeof EnvironmentSecretSlotsSchema>;
|
|
1161
|
-
/** The schema version of an
|
|
1162
|
-
export declare const
|
|
1108
|
+
/** The schema version of an agent manifest the Runtime saves at `/v1/agent-manifests/{name}`. */
|
|
1109
|
+
export declare const AGENT_MANIFEST_V8_SCHEMA_VERSION = 8;
|
|
1110
|
+
/** What runs inside the loop of an agent: the `harness` section of agent manifest v8. */
|
|
1111
|
+
export declare const AgentHarnessSectionSchema: z.ZodType<AgentHarnessSection>;
|
|
1112
|
+
/** A flow's `harness` section (`kind: "workflow"`). */
|
|
1113
|
+
export declare const WorkflowHarnessSectionSchema: z.ZodType<WorkflowHarnessSection>;
|
|
1114
|
+
/** The `harness` section: an agent's loop, or a flow (`kind: "workflow"`). */
|
|
1115
|
+
export declare const HarnessSectionSchema: z.ZodUnion<readonly [z.ZodType<WorkflowHarnessSection, unknown, z.core.$ZodTypeInternals<WorkflowHarnessSection, unknown>>, z.ZodType<AgentHarnessSection, unknown, z.core.$ZodTypeInternals<AgentHarnessSection, unknown>>]>;
|
|
1163
1116
|
/**
|
|
1164
|
-
*
|
|
1165
|
-
*
|
|
1166
|
-
* Environment made from it shares; an Environment's id, labels, owner guard, disk and secret
|
|
1167
|
-
* values are its own. Written as a JSON file with `$schema`, which clients drop before saving.
|
|
1117
|
+
* A trigger's id in `runtime.triggers`: 1–64 letters, digits, `.`, `_` and `-`,
|
|
1118
|
+
* starting with a letter or digit. The map key; it names the trigger in routes and runs.
|
|
1168
1119
|
*/
|
|
1169
|
-
export declare const
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1120
|
+
export declare const TriggerIdSchema: z.ZodString;
|
|
1121
|
+
/** The signature schemes a webhook trigger verifies: Standard Webhooks only. */
|
|
1122
|
+
export declare const WEBHOOK_SCHEMES: readonly ["standard-webhooks"];
|
|
1123
|
+
/**
|
|
1124
|
+
* One trigger of an agent manifest's `runtime.triggers`: exactly one of
|
|
1125
|
+
* `schedule` (five-field cron, minute granularity, in `timezone`, an IANA name, default UTC), `at`
|
|
1126
|
+
* (one run at an RFC 3339 time with an offset) or `webhook` (a webhook endpoint verified with the
|
|
1127
|
+
* named scheme), plus the `session` each run goes to and the author's `prompt`.
|
|
1128
|
+
*
|
|
1129
|
+
* `session` is a session id of the Agent, opened on the trigger's first run if it does not
|
|
1130
|
+
* exist, or `"new"` for a new session per run (`run-<runId>`). The Runtime keeps no main session.
|
|
1131
|
+
* The cron's smallest gap, the `at` time, the prompt's length and how many triggers a
|
|
1132
|
+
* manifest holds are checked against the Tenant's Runtime limits when it is saved.
|
|
1133
|
+
*/
|
|
1134
|
+
export declare const TriggerSchema: z.ZodObject<{
|
|
1135
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
1136
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1137
|
+
at: z.ZodOptional<z.ZodISODateTime>;
|
|
1138
|
+
webhook: z.ZodOptional<z.ZodEnum<{
|
|
1139
|
+
"standard-webhooks": "standard-webhooks";
|
|
1177
1140
|
}>>;
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1141
|
+
session: z.ZodString;
|
|
1142
|
+
prompt: z.ZodString;
|
|
1143
|
+
}, z.core.$strict>;
|
|
1144
|
+
export type Trigger = z.infer<typeof TriggerSchema>;
|
|
1145
|
+
/** What a trigger is: the field it has, or `wake` for a session's own booking. */
|
|
1146
|
+
export declare const TRIGGER_KINDS: readonly ["schedule", "at", "webhook", "wake"];
|
|
1147
|
+
export type TriggerKind = (typeof TRIGGER_KINDS)[number];
|
|
1148
|
+
/** A trigger's kind, from its manifest entry. */
|
|
1149
|
+
export declare function triggerKindOf(trigger: Trigger): Exclude<TriggerKind, "wake">;
|
|
1150
|
+
/**
|
|
1151
|
+
* A trigger's status on an Agent: `active` fires, `paused` does not (`pausedReason`
|
|
1152
|
+
* `manual`, or `new` for one an upgrade added), `completed` is an `at` that ran.
|
|
1153
|
+
*/
|
|
1154
|
+
export declare const TRIGGER_STATUSES: readonly ["active", "paused", "completed"];
|
|
1155
|
+
/** `GET /v1/agents/{id}/triggers`: one trigger, from its manifest entry and the Agent's state. */
|
|
1156
|
+
export declare const TriggerViewSchema: z.ZodObject<{
|
|
1157
|
+
id: z.ZodString;
|
|
1158
|
+
kind: z.ZodEnum<{
|
|
1159
|
+
at: "at";
|
|
1160
|
+
schedule: "schedule";
|
|
1161
|
+
wake: "wake";
|
|
1162
|
+
webhook: "webhook";
|
|
1163
|
+
}>;
|
|
1164
|
+
status: z.ZodEnum<{
|
|
1165
|
+
active: "active";
|
|
1166
|
+
completed: "completed";
|
|
1167
|
+
paused: "paused";
|
|
1168
|
+
}>;
|
|
1169
|
+
pausedReason: z.ZodNullable<z.ZodString>;
|
|
1170
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
1171
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1172
|
+
at: z.ZodOptional<z.ZodString>;
|
|
1173
|
+
session: z.ZodString;
|
|
1174
|
+
nextRunAt: z.ZodNullable<z.ZodString>;
|
|
1175
|
+
lastRunAt: z.ZodNullable<z.ZodString>;
|
|
1176
|
+
webhookUrl: z.ZodOptional<z.ZodString>;
|
|
1177
|
+
secretSet: z.ZodOptional<z.ZodBoolean>;
|
|
1178
|
+
}, z.core.$strict>;
|
|
1179
|
+
export type TriggerView = z.infer<typeof TriggerViewSchema>;
|
|
1180
|
+
export declare const TriggerListSchema: z.ZodObject<{
|
|
1181
|
+
triggers: z.ZodArray<z.ZodObject<{
|
|
1182
|
+
id: z.ZodString;
|
|
1183
|
+
kind: z.ZodEnum<{
|
|
1184
|
+
at: "at";
|
|
1185
|
+
schedule: "schedule";
|
|
1186
|
+
wake: "wake";
|
|
1187
|
+
webhook: "webhook";
|
|
1188
|
+
}>;
|
|
1189
|
+
status: z.ZodEnum<{
|
|
1190
|
+
active: "active";
|
|
1191
|
+
completed: "completed";
|
|
1192
|
+
paused: "paused";
|
|
1193
|
+
}>;
|
|
1194
|
+
pausedReason: z.ZodNullable<z.ZodString>;
|
|
1195
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
1196
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1197
|
+
at: z.ZodOptional<z.ZodString>;
|
|
1198
|
+
session: z.ZodString;
|
|
1199
|
+
nextRunAt: z.ZodNullable<z.ZodString>;
|
|
1200
|
+
lastRunAt: z.ZodNullable<z.ZodString>;
|
|
1201
|
+
webhookUrl: z.ZodOptional<z.ZodString>;
|
|
1202
|
+
secretSet: z.ZodOptional<z.ZodBoolean>;
|
|
1182
1203
|
}, z.core.$strict>>;
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1204
|
+
}, z.core.$strict>;
|
|
1205
|
+
/**
|
|
1206
|
+
* What a run came to: `started` a turn, `queued` a message behind a running turn,
|
|
1207
|
+
* `skipped` (nothing started: `overlap`, `rate_limited`, `paused`) or `failed` (`queue_full`,
|
|
1208
|
+
* `session_conflict`, `agent_unavailable`).
|
|
1209
|
+
*/
|
|
1210
|
+
export declare const TRIGGER_RUN_STATUSES: readonly ["started", "queued", "skipped", "failed"];
|
|
1211
|
+
/** One run: a trigger fired, or was run by hand. */
|
|
1212
|
+
export declare const TriggerRunSchema: z.ZodObject<{
|
|
1213
|
+
id: z.ZodString;
|
|
1214
|
+
triggerId: z.ZodString;
|
|
1215
|
+
kind: z.ZodEnum<{
|
|
1216
|
+
at: "at";
|
|
1217
|
+
schedule: "schedule";
|
|
1218
|
+
wake: "wake";
|
|
1219
|
+
webhook: "webhook";
|
|
1220
|
+
}>;
|
|
1221
|
+
dueAt: z.ZodString;
|
|
1222
|
+
firedAt: z.ZodString;
|
|
1223
|
+
late: z.ZodBoolean;
|
|
1224
|
+
status: z.ZodEnum<{
|
|
1225
|
+
failed: "failed";
|
|
1226
|
+
queued: "queued";
|
|
1227
|
+
skipped: "skipped";
|
|
1228
|
+
started: "started";
|
|
1229
|
+
}>;
|
|
1230
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1231
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1232
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
1233
|
+
queuedMessageId: z.ZodNullable<z.ZodString>;
|
|
1234
|
+
}, z.core.$strict>;
|
|
1235
|
+
export type TriggerRun = z.infer<typeof TriggerRunSchema>;
|
|
1236
|
+
/** `GET /v1/agents/{id}/runs`: runs, newest first. */
|
|
1237
|
+
export declare const TriggerRunPageSchema: z.ZodObject<{
|
|
1238
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
1239
|
+
id: z.ZodString;
|
|
1240
|
+
triggerId: z.ZodString;
|
|
1241
|
+
kind: z.ZodEnum<{
|
|
1242
|
+
at: "at";
|
|
1243
|
+
schedule: "schedule";
|
|
1244
|
+
wake: "wake";
|
|
1245
|
+
webhook: "webhook";
|
|
1246
|
+
}>;
|
|
1247
|
+
dueAt: z.ZodString;
|
|
1248
|
+
firedAt: z.ZodString;
|
|
1249
|
+
late: z.ZodBoolean;
|
|
1250
|
+
status: z.ZodEnum<{
|
|
1251
|
+
failed: "failed";
|
|
1252
|
+
queued: "queued";
|
|
1253
|
+
skipped: "skipped";
|
|
1254
|
+
started: "started";
|
|
1255
|
+
}>;
|
|
1256
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1257
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1258
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
1259
|
+
queuedMessageId: z.ZodNullable<z.ZodString>;
|
|
1186
1260
|
}, z.core.$strict>>;
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1261
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1262
|
+
}, z.core.$strict>;
|
|
1263
|
+
export type TriggerRunPage = z.infer<typeof TriggerRunPageSchema>;
|
|
1264
|
+
/**
|
|
1265
|
+
* `POST /v1/agents/{id}/triggers/{triggerId}/secret`: a webhook trigger's new signing secret,
|
|
1266
|
+
* in the Standard Webhooks format (`whsec_` and 32 random bytes in base64), shown this once. It
|
|
1267
|
+
* replaces the one before at once.
|
|
1268
|
+
*/
|
|
1269
|
+
export declare const WebhookSecretResponseSchema: z.ZodObject<{
|
|
1270
|
+
triggerId: z.ZodString;
|
|
1271
|
+
webhookUrl: z.ZodString;
|
|
1272
|
+
secret: z.ZodString;
|
|
1273
|
+
}, z.core.$strict>;
|
|
1274
|
+
/** `POST /v1/webhooks/{endpointId}`: the run a delivery made, or the run a repeated delivery made. */
|
|
1275
|
+
export declare const WebhookAcceptedResponseSchema: z.ZodObject<{
|
|
1276
|
+
runId: z.ZodString;
|
|
1277
|
+
status: z.ZodEnum<{
|
|
1278
|
+
failed: "failed";
|
|
1279
|
+
queued: "queued";
|
|
1280
|
+
skipped: "skipped";
|
|
1281
|
+
started: "started";
|
|
1282
|
+
}>;
|
|
1283
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1284
|
+
}, z.core.$strict>;
|
|
1285
|
+
/** `POST /v1/agents/{id}/triggers/{triggerId}/run`: the run it made. */
|
|
1286
|
+
export declare const RunTriggerResponseSchema: z.ZodObject<{
|
|
1287
|
+
run: z.ZodObject<{
|
|
1288
|
+
id: z.ZodString;
|
|
1289
|
+
triggerId: z.ZodString;
|
|
1290
|
+
kind: z.ZodEnum<{
|
|
1291
|
+
at: "at";
|
|
1292
|
+
schedule: "schedule";
|
|
1293
|
+
wake: "wake";
|
|
1294
|
+
webhook: "webhook";
|
|
1295
|
+
}>;
|
|
1296
|
+
dueAt: z.ZodString;
|
|
1297
|
+
firedAt: z.ZodString;
|
|
1298
|
+
late: z.ZodBoolean;
|
|
1299
|
+
status: z.ZodEnum<{
|
|
1300
|
+
failed: "failed";
|
|
1301
|
+
queued: "queued";
|
|
1302
|
+
skipped: "skipped";
|
|
1303
|
+
started: "started";
|
|
1304
|
+
}>;
|
|
1305
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1306
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1307
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
1308
|
+
queuedMessageId: z.ZodNullable<z.ZodString>;
|
|
1309
|
+
}, z.core.$strict>;
|
|
1310
|
+
}, z.core.$strict>;
|
|
1311
|
+
/**
|
|
1312
|
+
* One of an Agent's memories, as `GET /v1/agents/{id}/memories` lists it: its
|
|
1313
|
+
* path under `/memories`, size, content hash (the precondition a `PUT` may send), the
|
|
1314
|
+
* `description` of its frontmatter when it has one, and its version, which every change bumps.
|
|
1315
|
+
*/
|
|
1316
|
+
export declare const MemorySummarySchema: z.ZodObject<{
|
|
1317
|
+
path: z.ZodString;
|
|
1318
|
+
bytes: z.ZodNumber;
|
|
1319
|
+
contentSha256: z.ZodString;
|
|
1320
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1321
|
+
version: z.ZodNumber;
|
|
1322
|
+
updatedAt: z.ZodString;
|
|
1323
|
+
}, z.core.$strict>;
|
|
1324
|
+
export type MemorySummary = z.infer<typeof MemorySummarySchema>;
|
|
1325
|
+
/** `GET /v1/agents/{id}/memories`: memories by path. */
|
|
1326
|
+
export declare const MemoryListSchema: z.ZodObject<{
|
|
1327
|
+
memories: z.ZodArray<z.ZodObject<{
|
|
1328
|
+
path: z.ZodString;
|
|
1329
|
+
bytes: z.ZodNumber;
|
|
1330
|
+
contentSha256: z.ZodString;
|
|
1331
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1332
|
+
version: z.ZodNumber;
|
|
1333
|
+
updatedAt: z.ZodString;
|
|
1191
1334
|
}, z.core.$strict>>;
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1335
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1336
|
+
}, z.core.$strict>;
|
|
1337
|
+
export type MemoryList = z.infer<typeof MemoryListSchema>;
|
|
1338
|
+
/** `GET /v1/agents/{id}/memories/{path}`: one memory with its content. */
|
|
1339
|
+
export declare const MemorySchema: z.ZodObject<{
|
|
1340
|
+
path: z.ZodString;
|
|
1341
|
+
bytes: z.ZodNumber;
|
|
1342
|
+
contentSha256: z.ZodString;
|
|
1343
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1344
|
+
version: z.ZodNumber;
|
|
1345
|
+
updatedAt: z.ZodString;
|
|
1346
|
+
content: z.ZodString;
|
|
1347
|
+
}, z.core.$strict>;
|
|
1348
|
+
export type Memory = z.infer<typeof MemorySchema>;
|
|
1349
|
+
/**
|
|
1350
|
+
* `PUT /v1/agents/{id}/memories/{path}`: the memory's whole content, creating it or replacing it.
|
|
1351
|
+
* With `contentSha256`, the write applies only while the memory's content still has that hash
|
|
1352
|
+
* (`409 memory_conflict` with the current text otherwise); an empty string requires that no
|
|
1353
|
+
* memory has the path.
|
|
1354
|
+
*/
|
|
1355
|
+
export declare const PutMemoryRequestSchema: z.ZodObject<{
|
|
1356
|
+
content: z.ZodString;
|
|
1357
|
+
contentSha256: z.ZodOptional<z.ZodString>;
|
|
1358
|
+
}, z.core.$strict>;
|
|
1359
|
+
export type PutMemoryRequest = z.infer<typeof PutMemoryRequestSchema>;
|
|
1360
|
+
/**
|
|
1361
|
+
* One change to a memory: what changed it (`create`, `str_replace`, `insert`, `delete`,
|
|
1362
|
+
* `rename`), the content it left (`null` for a delete), and who made it: `agent:<manifest>@<n>`
|
|
1363
|
+
* for a turn, with its session, turn and trigger run, or the principal of an API call. A rename's
|
|
1364
|
+
* version is on the new path and names the old one in `fromPath`.
|
|
1365
|
+
*/
|
|
1366
|
+
export declare const MemoryVersionSchema: z.ZodObject<{
|
|
1367
|
+
id: z.ZodString;
|
|
1368
|
+
path: z.ZodString;
|
|
1369
|
+
fromPath: z.ZodNullable<z.ZodString>;
|
|
1370
|
+
operation: z.ZodEnum<{
|
|
1371
|
+
create: "create";
|
|
1372
|
+
delete: "delete";
|
|
1373
|
+
insert: "insert";
|
|
1374
|
+
rename: "rename";
|
|
1375
|
+
str_replace: "str_replace";
|
|
1376
|
+
}>;
|
|
1377
|
+
bytes: z.ZodNullable<z.ZodNumber>;
|
|
1378
|
+
contentSha256: z.ZodNullable<z.ZodString>;
|
|
1379
|
+
actor: z.ZodString;
|
|
1380
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1381
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
1382
|
+
triggerRunId: z.ZodNullable<z.ZodString>;
|
|
1383
|
+
createdAt: z.ZodString;
|
|
1384
|
+
}, z.core.$strict>;
|
|
1385
|
+
export type MemoryVersion = z.infer<typeof MemoryVersionSchema>;
|
|
1386
|
+
/** `GET /v1/agents/{id}/memory_versions/{versionId}`: one version with the content it left. */
|
|
1387
|
+
export declare const MemoryVersionDetailSchema: z.ZodObject<{
|
|
1388
|
+
id: z.ZodString;
|
|
1389
|
+
path: z.ZodString;
|
|
1390
|
+
fromPath: z.ZodNullable<z.ZodString>;
|
|
1391
|
+
operation: z.ZodEnum<{
|
|
1392
|
+
create: "create";
|
|
1393
|
+
delete: "delete";
|
|
1394
|
+
insert: "insert";
|
|
1395
|
+
rename: "rename";
|
|
1396
|
+
str_replace: "str_replace";
|
|
1397
|
+
}>;
|
|
1398
|
+
bytes: z.ZodNullable<z.ZodNumber>;
|
|
1399
|
+
contentSha256: z.ZodNullable<z.ZodString>;
|
|
1400
|
+
actor: z.ZodString;
|
|
1401
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1402
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
1403
|
+
triggerRunId: z.ZodNullable<z.ZodString>;
|
|
1404
|
+
createdAt: z.ZodString;
|
|
1405
|
+
content: z.ZodNullable<z.ZodString>;
|
|
1406
|
+
}, z.core.$strict>;
|
|
1407
|
+
export type MemoryVersionDetail = z.infer<typeof MemoryVersionDetailSchema>;
|
|
1408
|
+
/** `GET /v1/agents/{id}/memory_versions`: versions, newest first. */
|
|
1409
|
+
export declare const MemoryVersionPageSchema: z.ZodObject<{
|
|
1410
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
1411
|
+
id: z.ZodString;
|
|
1412
|
+
path: z.ZodString;
|
|
1413
|
+
fromPath: z.ZodNullable<z.ZodString>;
|
|
1414
|
+
operation: z.ZodEnum<{
|
|
1415
|
+
create: "create";
|
|
1416
|
+
delete: "delete";
|
|
1417
|
+
insert: "insert";
|
|
1418
|
+
rename: "rename";
|
|
1419
|
+
str_replace: "str_replace";
|
|
1420
|
+
}>;
|
|
1421
|
+
bytes: z.ZodNullable<z.ZodNumber>;
|
|
1422
|
+
contentSha256: z.ZodNullable<z.ZodString>;
|
|
1423
|
+
actor: z.ZodString;
|
|
1424
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1425
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
1426
|
+
triggerRunId: z.ZodNullable<z.ZodString>;
|
|
1427
|
+
createdAt: z.ZodString;
|
|
1428
|
+
}, z.core.$strict>>;
|
|
1429
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1430
|
+
}, z.core.$strict>;
|
|
1431
|
+
export type MemoryVersionPage = z.infer<typeof MemoryVersionPageSchema>;
|
|
1432
|
+
export declare const RuntimeSectionSchema: z.ZodObject<{
|
|
1433
|
+
kind: z.ZodEnum<{
|
|
1434
|
+
none: "none";
|
|
1435
|
+
pod: "pod";
|
|
1436
|
+
virtual: "virtual";
|
|
1437
|
+
}>;
|
|
1438
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1439
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1440
|
+
cpus: z.ZodOptional<z.ZodNumber>;
|
|
1441
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
1442
|
+
}, z.core.$strict>>;
|
|
1443
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
1444
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
1445
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1446
|
+
}, z.core.$strict>>;
|
|
1447
|
+
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
1448
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
1449
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
1450
|
+
}, z.core.$strict>>;
|
|
1451
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1452
|
+
command: z.ZodString;
|
|
1453
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1454
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
1196
1455
|
}, z.core.$strict>>>;
|
|
1197
1456
|
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1198
1457
|
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
@@ -1247,18 +1506,240 @@ export declare const EnvironmentManifestSchema: z.ZodObject<{
|
|
|
1247
1506
|
type: z.ZodLiteral<"headers">;
|
|
1248
1507
|
url: z.ZodString;
|
|
1249
1508
|
}, z.core.$strict>], "type">>>;
|
|
1509
|
+
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1510
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
1511
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1512
|
+
at: z.ZodOptional<z.ZodISODateTime>;
|
|
1513
|
+
webhook: z.ZodOptional<z.ZodEnum<{
|
|
1514
|
+
"standard-webhooks": "standard-webhooks";
|
|
1515
|
+
}>>;
|
|
1516
|
+
session: z.ZodString;
|
|
1517
|
+
prompt: z.ZodString;
|
|
1518
|
+
}, z.core.$strict>>>;
|
|
1519
|
+
selfWake: z.ZodOptional<z.ZodBoolean>;
|
|
1250
1520
|
}, z.core.$strict>;
|
|
1251
|
-
export type
|
|
1252
|
-
/**
|
|
1253
|
-
|
|
1254
|
-
|
|
1521
|
+
export type RuntimeSection = z.infer<typeof RuntimeSectionSchema>;
|
|
1522
|
+
/**
|
|
1523
|
+
* Agent manifest v8 (protocol 16): one versioned document with what runs inside the
|
|
1524
|
+
* agent loop (`harness`) and what the Runtime provides around it (`runtime`), saved at
|
|
1525
|
+
* `PUT /v1/agent-manifests/{name}`. Without `runtime`, an Agent made from it is kind `none`.
|
|
1526
|
+
* The Runtime also checks the two sections against each other when it is saved (`sectionGaps`).
|
|
1527
|
+
*/
|
|
1528
|
+
export declare const AgentManifestV8Schema: z.ZodObject<{
|
|
1529
|
+
manifestSchemaVersion: z.ZodLiteral<8>;
|
|
1255
1530
|
name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1256
1531
|
description: z.ZodOptional<z.ZodString>;
|
|
1257
|
-
|
|
1532
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
1533
|
+
harness: z.ZodUnion<readonly [z.ZodType<WorkflowHarnessSection, unknown, z.core.$ZodTypeInternals<WorkflowHarnessSection, unknown>>, z.ZodType<AgentHarnessSection, unknown, z.core.$ZodTypeInternals<AgentHarnessSection, unknown>>]>;
|
|
1534
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
1535
|
+
kind: z.ZodEnum<{
|
|
1536
|
+
none: "none";
|
|
1537
|
+
pod: "pod";
|
|
1538
|
+
virtual: "virtual";
|
|
1539
|
+
}>;
|
|
1540
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1541
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1542
|
+
cpus: z.ZodOptional<z.ZodNumber>;
|
|
1543
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
1544
|
+
}, z.core.$strict>>;
|
|
1545
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
1546
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
1547
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1548
|
+
}, z.core.$strict>>;
|
|
1549
|
+
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
1550
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
1551
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
1552
|
+
}, z.core.$strict>>;
|
|
1553
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1554
|
+
command: z.ZodString;
|
|
1555
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1556
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
1557
|
+
}, z.core.$strict>>>;
|
|
1558
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1559
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1560
|
+
version: z.ZodNumber;
|
|
1561
|
+
path: z.ZodString;
|
|
1562
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1563
|
+
path: z.ZodString;
|
|
1564
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1565
|
+
}, z.core.$strict>]>>>;
|
|
1566
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1567
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
1568
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
1569
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1570
|
+
}, z.core.$strict>>;
|
|
1571
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
1572
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1573
|
+
}, z.core.$strict>>;
|
|
1574
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
1575
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
1576
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
1577
|
+
}, z.core.$strict>>;
|
|
1578
|
+
}, z.core.$strict>>;
|
|
1579
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1580
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1581
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1582
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
1583
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
1584
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
1585
|
+
header: z.ZodString;
|
|
1586
|
+
format: z.ZodString;
|
|
1587
|
+
}, z.core.$strict>>;
|
|
1588
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1589
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1590
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1591
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
1592
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1593
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1594
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1595
|
+
header: z.ZodString;
|
|
1596
|
+
}, z.core.$strict>>;
|
|
1597
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1598
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1599
|
+
type: z.ZodLiteral<"bearer">;
|
|
1600
|
+
url: z.ZodString;
|
|
1601
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1602
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1603
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1604
|
+
header: z.ZodString;
|
|
1605
|
+
}, z.core.$strict>>;
|
|
1606
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1607
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1608
|
+
type: z.ZodLiteral<"headers">;
|
|
1609
|
+
url: z.ZodString;
|
|
1610
|
+
}, z.core.$strict>], "type">>>;
|
|
1611
|
+
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1612
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
1613
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1614
|
+
at: z.ZodOptional<z.ZodISODateTime>;
|
|
1615
|
+
webhook: z.ZodOptional<z.ZodEnum<{
|
|
1616
|
+
"standard-webhooks": "standard-webhooks";
|
|
1617
|
+
}>>;
|
|
1618
|
+
session: z.ZodString;
|
|
1619
|
+
prompt: z.ZodString;
|
|
1620
|
+
}, z.core.$strict>>>;
|
|
1621
|
+
selfWake: z.ZodOptional<z.ZodBoolean>;
|
|
1622
|
+
}, z.core.$strict>>;
|
|
1623
|
+
}, z.core.$strict>;
|
|
1624
|
+
export type AgentManifestV8 = z.infer<typeof AgentManifestV8Schema>;
|
|
1625
|
+
/**
|
|
1626
|
+
* `harness.manifest.json`, an authoring file `nylorun apply` and the SDK's `composeManifest`
|
|
1627
|
+
* read: the harness section, whose `skills`, `mcpServers` and `plugins` may be paths relative to
|
|
1628
|
+
* the file, with a `credentials` map from MCP server or HTTP tool names to `runtime.secrets`
|
|
1629
|
+
* slots, and `requires`, a portable contract the composer checks against the runtime section.
|
|
1630
|
+
* The API never sees it.
|
|
1631
|
+
*/
|
|
1632
|
+
export declare const HARNESS_MANIFEST_FILE_SCHEMA_VERSION = 1;
|
|
1633
|
+
export declare const HarnessManifestFileSchema: z.ZodObject<{
|
|
1634
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
1635
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1636
|
+
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1637
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1638
|
+
name: z.ZodString;
|
|
1639
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1640
|
+
inputSchema: z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
1641
|
+
outputSchema: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
1642
|
+
agent: z.ZodOptional<z.ZodLazy<z.ZodUnion<readonly [z.ZodType<WorkflowManifest, unknown, z.core.$ZodTypeInternals<WorkflowManifest, unknown>>, z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>]>>>;
|
|
1643
|
+
http: z.ZodOptional<z.ZodObject<{
|
|
1644
|
+
url: z.ZodString;
|
|
1645
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
1646
|
+
DELETE: "DELETE";
|
|
1647
|
+
GET: "GET";
|
|
1648
|
+
PATCH: "PATCH";
|
|
1649
|
+
POST: "POST";
|
|
1650
|
+
PUT: "PUT";
|
|
1651
|
+
}>>;
|
|
1652
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
1653
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1654
|
+
}, z.core.$strict>>;
|
|
1655
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
1656
|
+
always: "always";
|
|
1657
|
+
never: "never";
|
|
1658
|
+
}>>;
|
|
1659
|
+
fn: z.ZodOptional<z.ZodUnknown & z.ZodType<undefined, unknown, z.core.$ZodTypeInternals<undefined, unknown>>>;
|
|
1660
|
+
command: z.ZodOptional<z.ZodUnknown & z.ZodType<undefined, unknown, z.core.$ZodTypeInternals<undefined, unknown>>>;
|
|
1661
|
+
}, z.core.$strict>>>;
|
|
1662
|
+
skills: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1663
|
+
name: z.ZodString;
|
|
1664
|
+
description: z.ZodString;
|
|
1665
|
+
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1666
|
+
plugin: z.ZodOptional<z.ZodObject<{
|
|
1667
|
+
name: z.ZodString;
|
|
1668
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1669
|
+
}, z.core.$strict>>;
|
|
1670
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1671
|
+
}, z.core.$strict>>]>>;
|
|
1672
|
+
mcpServers: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1673
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1674
|
+
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1675
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1676
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
1677
|
+
always: "always";
|
|
1678
|
+
never: "never";
|
|
1679
|
+
}>>;
|
|
1680
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1681
|
+
}, z.core.$strict>>>;
|
|
1682
|
+
plugin: z.ZodOptional<z.ZodObject<{
|
|
1683
|
+
name: z.ZodString;
|
|
1684
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1685
|
+
}, z.core.$strict>>;
|
|
1686
|
+
name: z.ZodString;
|
|
1687
|
+
url: z.ZodString;
|
|
1688
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1689
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
1690
|
+
type: z.ZodLiteral<"streamable-http">;
|
|
1691
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1692
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1693
|
+
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1694
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1695
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
1696
|
+
always: "always";
|
|
1697
|
+
never: "never";
|
|
1698
|
+
}>>;
|
|
1699
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1700
|
+
}, z.core.$strict>>>;
|
|
1701
|
+
plugin: z.ZodOptional<z.ZodObject<{
|
|
1702
|
+
name: z.ZodString;
|
|
1703
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1704
|
+
}, z.core.$strict>>;
|
|
1705
|
+
name: z.ZodString;
|
|
1706
|
+
url: z.ZodString;
|
|
1707
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1708
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
1709
|
+
type: z.ZodLiteral<"sse">;
|
|
1710
|
+
}, z.core.$strict>], "type">>]>>;
|
|
1711
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1712
|
+
name: z.ZodString;
|
|
1713
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1714
|
+
}, z.core.$strict>]>>>;
|
|
1715
|
+
outputSchema: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
1716
|
+
loop: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
1717
|
+
memory: z.ZodOptional<z.ZodObject<{
|
|
1718
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
1719
|
+
read_only: "read_only";
|
|
1720
|
+
read_write: "read_write";
|
|
1721
|
+
}>>;
|
|
1722
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
1723
|
+
}, z.core.$strict>>;
|
|
1724
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1725
|
+
requires: z.ZodOptional<z.ZodObject<{
|
|
1726
|
+
sandbox: z.ZodOptional<z.ZodEnum<{
|
|
1727
|
+
any: "any";
|
|
1728
|
+
none: "none";
|
|
1729
|
+
pod: "pod";
|
|
1730
|
+
}>>;
|
|
1731
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1732
|
+
}, z.core.$strict>>;
|
|
1733
|
+
}, z.core.$strict>;
|
|
1734
|
+
export type HarnessManifestFile = z.infer<typeof HarnessManifestFileSchema>;
|
|
1735
|
+
/** `runtime.manifest.json`: the runtime section as a file, often shared by many agents. */
|
|
1736
|
+
export declare const RUNTIME_MANIFEST_FILE_SCHEMA_VERSION = 1;
|
|
1737
|
+
export declare const RuntimeManifestFileSchema: z.ZodObject<{
|
|
1738
|
+
kind: z.ZodEnum<{
|
|
1258
1739
|
none: "none";
|
|
1259
1740
|
pod: "pod";
|
|
1260
1741
|
virtual: "virtual";
|
|
1261
|
-
}
|
|
1742
|
+
}>;
|
|
1262
1743
|
image: z.ZodOptional<z.ZodString>;
|
|
1263
1744
|
resources: z.ZodOptional<z.ZodObject<{
|
|
1264
1745
|
cpus: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1268,7 +1749,6 @@ export declare const PutEnvironmentManifestRequestSchema: z.ZodObject<{
|
|
|
1268
1749
|
network: z.ZodOptional<z.ZodObject<{
|
|
1269
1750
|
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1270
1751
|
}, z.core.$strict>>;
|
|
1271
|
-
harness: z.ZodOptional<z.ZodString>;
|
|
1272
1752
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
1273
1753
|
idle: z.ZodOptional<z.ZodString>;
|
|
1274
1754
|
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
@@ -1278,14 +1758,6 @@ export declare const PutEnvironmentManifestRequestSchema: z.ZodObject<{
|
|
|
1278
1758
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1279
1759
|
timeout: z.ZodOptional<z.ZodString>;
|
|
1280
1760
|
}, z.core.$strict>>>;
|
|
1281
|
-
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1282
|
-
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1283
|
-
version: z.ZodNumber;
|
|
1284
|
-
path: z.ZodString;
|
|
1285
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1286
|
-
path: z.ZodString;
|
|
1287
|
-
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1288
|
-
}, z.core.$strict>]>>>;
|
|
1289
1761
|
limits: z.ZodOptional<z.ZodObject<{
|
|
1290
1762
|
artifacts: z.ZodOptional<z.ZodObject<{
|
|
1291
1763
|
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1331,27 +1803,250 @@ export declare const PutEnvironmentManifestRequestSchema: z.ZodObject<{
|
|
|
1331
1803
|
type: z.ZodLiteral<"headers">;
|
|
1332
1804
|
url: z.ZodString;
|
|
1333
1805
|
}, z.core.$strict>], "type">>>;
|
|
1334
|
-
|
|
1806
|
+
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1807
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
1808
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1809
|
+
at: z.ZodOptional<z.ZodISODateTime>;
|
|
1810
|
+
webhook: z.ZodOptional<z.ZodEnum<{
|
|
1811
|
+
"standard-webhooks": "standard-webhooks";
|
|
1812
|
+
}>>;
|
|
1813
|
+
session: z.ZodString;
|
|
1814
|
+
prompt: z.ZodString;
|
|
1815
|
+
}, z.core.$strict>>>;
|
|
1816
|
+
selfWake: z.ZodOptional<z.ZodBoolean>;
|
|
1817
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
1818
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
1819
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1820
|
+
version: z.ZodNumber;
|
|
1821
|
+
path: z.ZodString;
|
|
1822
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1823
|
+
path: z.ZodString;
|
|
1824
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1825
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
1826
|
+
path: z.ZodString;
|
|
1827
|
+
from: z.ZodString;
|
|
1828
|
+
}, z.core.$strict>]>>>;
|
|
1335
1829
|
}, z.core.$strict>;
|
|
1336
|
-
export type
|
|
1337
|
-
/**
|
|
1338
|
-
|
|
1339
|
-
|
|
1830
|
+
export type RuntimeManifestFile = z.infer<typeof RuntimeManifestFileSchema>;
|
|
1831
|
+
/**
|
|
1832
|
+
* `agent.manifest.json`: an agent manifest v8 whose `harness` and `runtime` may each be a path to
|
|
1833
|
+
* an authoring file (or inline). The composer resolves both and sends one document.
|
|
1834
|
+
*/
|
|
1835
|
+
export declare const AgentManifestFileSchema: z.ZodObject<{
|
|
1836
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
1837
|
+
manifestSchemaVersion: z.ZodLiteral<8>;
|
|
1838
|
+
name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1839
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1840
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
1841
|
+
harness: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1842
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
1843
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1844
|
+
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1845
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1846
|
+
name: z.ZodString;
|
|
1847
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1848
|
+
inputSchema: z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
1849
|
+
outputSchema: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
1850
|
+
agent: z.ZodOptional<z.ZodLazy<z.ZodUnion<readonly [z.ZodType<WorkflowManifest, unknown, z.core.$ZodTypeInternals<WorkflowManifest, unknown>>, z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>]>>>;
|
|
1851
|
+
http: z.ZodOptional<z.ZodObject<{
|
|
1852
|
+
url: z.ZodString;
|
|
1853
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
1854
|
+
DELETE: "DELETE";
|
|
1855
|
+
GET: "GET";
|
|
1856
|
+
PATCH: "PATCH";
|
|
1857
|
+
POST: "POST";
|
|
1858
|
+
PUT: "PUT";
|
|
1859
|
+
}>>;
|
|
1860
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
1861
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1862
|
+
}, z.core.$strict>>;
|
|
1863
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
1864
|
+
always: "always";
|
|
1865
|
+
never: "never";
|
|
1866
|
+
}>>;
|
|
1867
|
+
fn: z.ZodOptional<z.ZodUnknown & z.ZodType<undefined, unknown, z.core.$ZodTypeInternals<undefined, unknown>>>;
|
|
1868
|
+
command: z.ZodOptional<z.ZodUnknown & z.ZodType<undefined, unknown, z.core.$ZodTypeInternals<undefined, unknown>>>;
|
|
1869
|
+
}, z.core.$strict>>>;
|
|
1870
|
+
skills: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1871
|
+
name: z.ZodString;
|
|
1872
|
+
description: z.ZodString;
|
|
1873
|
+
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1874
|
+
plugin: z.ZodOptional<z.ZodObject<{
|
|
1875
|
+
name: z.ZodString;
|
|
1876
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1877
|
+
}, z.core.$strict>>;
|
|
1878
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1879
|
+
}, z.core.$strict>>]>>;
|
|
1880
|
+
mcpServers: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1881
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1882
|
+
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1883
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1884
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
1885
|
+
always: "always";
|
|
1886
|
+
never: "never";
|
|
1887
|
+
}>>;
|
|
1888
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1889
|
+
}, z.core.$strict>>>;
|
|
1890
|
+
plugin: z.ZodOptional<z.ZodObject<{
|
|
1891
|
+
name: z.ZodString;
|
|
1892
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1893
|
+
}, z.core.$strict>>;
|
|
1894
|
+
name: z.ZodString;
|
|
1895
|
+
url: z.ZodString;
|
|
1896
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1897
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
1898
|
+
type: z.ZodLiteral<"streamable-http">;
|
|
1899
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1900
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1901
|
+
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1902
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1903
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
1904
|
+
always: "always";
|
|
1905
|
+
never: "never";
|
|
1906
|
+
}>>;
|
|
1907
|
+
deferred: z.ZodOptional<z.ZodBoolean>;
|
|
1908
|
+
}, z.core.$strict>>>;
|
|
1909
|
+
plugin: z.ZodOptional<z.ZodObject<{
|
|
1910
|
+
name: z.ZodString;
|
|
1911
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1912
|
+
}, z.core.$strict>>;
|
|
1913
|
+
name: z.ZodString;
|
|
1914
|
+
url: z.ZodString;
|
|
1915
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1916
|
+
credential: z.ZodOptional<z.ZodString>;
|
|
1917
|
+
type: z.ZodLiteral<"sse">;
|
|
1918
|
+
}, z.core.$strict>], "type">>]>>;
|
|
1919
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1920
|
+
name: z.ZodString;
|
|
1921
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1922
|
+
}, z.core.$strict>]>>>;
|
|
1923
|
+
outputSchema: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
1924
|
+
loop: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
1925
|
+
memory: z.ZodOptional<z.ZodObject<{
|
|
1926
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
1927
|
+
read_only: "read_only";
|
|
1928
|
+
read_write: "read_write";
|
|
1929
|
+
}>>;
|
|
1930
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
1931
|
+
}, z.core.$strict>>;
|
|
1932
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1933
|
+
requires: z.ZodOptional<z.ZodObject<{
|
|
1934
|
+
sandbox: z.ZodOptional<z.ZodEnum<{
|
|
1935
|
+
any: "any";
|
|
1936
|
+
none: "none";
|
|
1937
|
+
pod: "pod";
|
|
1938
|
+
}>>;
|
|
1939
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1940
|
+
}, z.core.$strict>>;
|
|
1941
|
+
}, z.core.$strict>, z.ZodType<WorkflowHarnessSection, unknown, z.core.$ZodTypeInternals<WorkflowHarnessSection, unknown>>]>;
|
|
1942
|
+
runtime: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1943
|
+
kind: z.ZodEnum<{
|
|
1944
|
+
none: "none";
|
|
1945
|
+
pod: "pod";
|
|
1946
|
+
virtual: "virtual";
|
|
1947
|
+
}>;
|
|
1948
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1949
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1950
|
+
cpus: z.ZodOptional<z.ZodNumber>;
|
|
1951
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
1952
|
+
}, z.core.$strict>>;
|
|
1953
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
1954
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
1955
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1956
|
+
}, z.core.$strict>>;
|
|
1957
|
+
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
1958
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
1959
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
1960
|
+
}, z.core.$strict>>;
|
|
1961
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1962
|
+
command: z.ZodString;
|
|
1963
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1964
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
1965
|
+
}, z.core.$strict>>>;
|
|
1966
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1967
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
1968
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
1969
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1970
|
+
}, z.core.$strict>>;
|
|
1971
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
1972
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1973
|
+
}, z.core.$strict>>;
|
|
1974
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
1975
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
1976
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
1977
|
+
}, z.core.$strict>>;
|
|
1978
|
+
}, z.core.$strict>>;
|
|
1979
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1980
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1981
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1982
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
1983
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
1984
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
1985
|
+
header: z.ZodString;
|
|
1986
|
+
format: z.ZodString;
|
|
1987
|
+
}, z.core.$strict>>;
|
|
1988
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1989
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1990
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1991
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
1992
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1993
|
+
via: z.ZodOptional<z.ZodString>;
|
|
1994
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
1995
|
+
header: z.ZodString;
|
|
1996
|
+
}, z.core.$strict>>;
|
|
1997
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1998
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1999
|
+
type: z.ZodLiteral<"bearer">;
|
|
2000
|
+
url: z.ZodString;
|
|
2001
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2002
|
+
via: z.ZodOptional<z.ZodString>;
|
|
2003
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2004
|
+
header: z.ZodString;
|
|
2005
|
+
}, z.core.$strict>>;
|
|
2006
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2007
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2008
|
+
type: z.ZodLiteral<"headers">;
|
|
2009
|
+
url: z.ZodString;
|
|
2010
|
+
}, z.core.$strict>], "type">>>;
|
|
2011
|
+
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2012
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
2013
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2014
|
+
at: z.ZodOptional<z.ZodISODateTime>;
|
|
2015
|
+
webhook: z.ZodOptional<z.ZodEnum<{
|
|
2016
|
+
"standard-webhooks": "standard-webhooks";
|
|
2017
|
+
}>>;
|
|
2018
|
+
session: z.ZodString;
|
|
2019
|
+
prompt: z.ZodString;
|
|
2020
|
+
}, z.core.$strict>>>;
|
|
2021
|
+
selfWake: z.ZodOptional<z.ZodBoolean>;
|
|
2022
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
2023
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
2024
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
2025
|
+
version: z.ZodNumber;
|
|
2026
|
+
path: z.ZodString;
|
|
2027
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2028
|
+
path: z.ZodString;
|
|
2029
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
2030
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
2031
|
+
path: z.ZodString;
|
|
2032
|
+
from: z.ZodString;
|
|
2033
|
+
}, z.core.$strict>]>>>;
|
|
2034
|
+
}, z.core.$strict>]>>;
|
|
1340
2035
|
}, z.core.$strict>;
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
kind: z.
|
|
2036
|
+
export type AgentManifestFile = z.infer<typeof AgentManifestFileSchema>;
|
|
2037
|
+
/** `PUT /v1/agent-manifests/{name}`: the manifest, whose `name` is the path's. */
|
|
2038
|
+
export declare const PutAgentManifestRequestSchema: z.ZodObject<{
|
|
2039
|
+
manifestSchemaVersion: z.ZodLiteral<8>;
|
|
2040
|
+
name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
2041
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2042
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
2043
|
+
harness: z.ZodUnion<readonly [z.ZodType<WorkflowHarnessSection, unknown, z.core.$ZodTypeInternals<WorkflowHarnessSection, unknown>>, z.ZodType<AgentHarnessSection, unknown, z.core.$ZodTypeInternals<AgentHarnessSection, unknown>>]>;
|
|
2044
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
2045
|
+
kind: z.ZodEnum<{
|
|
1351
2046
|
none: "none";
|
|
1352
2047
|
pod: "pod";
|
|
1353
2048
|
virtual: "virtual";
|
|
1354
|
-
}
|
|
2049
|
+
}>;
|
|
1355
2050
|
image: z.ZodOptional<z.ZodString>;
|
|
1356
2051
|
resources: z.ZodOptional<z.ZodObject<{
|
|
1357
2052
|
cpus: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1361,7 +2056,6 @@ export declare const EnvironmentManifestViewSchema: z.ZodObject<{
|
|
|
1361
2056
|
network: z.ZodOptional<z.ZodObject<{
|
|
1362
2057
|
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1363
2058
|
}, z.core.$strict>>;
|
|
1364
|
-
harness: z.ZodOptional<z.ZodString>;
|
|
1365
2059
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
1366
2060
|
idle: z.ZodOptional<z.ZodString>;
|
|
1367
2061
|
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
@@ -1424,29 +2118,42 @@ export declare const EnvironmentManifestViewSchema: z.ZodObject<{
|
|
|
1424
2118
|
type: z.ZodLiteral<"headers">;
|
|
1425
2119
|
url: z.ZodString;
|
|
1426
2120
|
}, z.core.$strict>], "type">>>;
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
2121
|
+
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2122
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
2123
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2124
|
+
at: z.ZodOptional<z.ZodISODateTime>;
|
|
2125
|
+
webhook: z.ZodOptional<z.ZodEnum<{
|
|
2126
|
+
"standard-webhooks": "standard-webhooks";
|
|
2127
|
+
}>>;
|
|
2128
|
+
session: z.ZodString;
|
|
2129
|
+
prompt: z.ZodString;
|
|
2130
|
+
}, z.core.$strict>>>;
|
|
2131
|
+
selfWake: z.ZodOptional<z.ZodBoolean>;
|
|
2132
|
+
}, z.core.$strict>>;
|
|
2133
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
1433
2134
|
}, z.core.$strict>;
|
|
1434
|
-
export type
|
|
1435
|
-
/**
|
|
1436
|
-
export declare const
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
2135
|
+
export type PutAgentManifestRequest = z.infer<typeof PutAgentManifestRequestSchema>;
|
|
2136
|
+
/** Who saved a version: the subject a request acted for, else `application`. */
|
|
2137
|
+
export declare const AgentManifestSavedBySchema: z.ZodObject<{
|
|
2138
|
+
actor: z.ZodString;
|
|
2139
|
+
}, z.core.$strict>;
|
|
2140
|
+
/** One version of an agent manifest. */
|
|
2141
|
+
export declare const AgentManifestViewSchema: z.ZodObject<{
|
|
2142
|
+
name: z.ZodString;
|
|
2143
|
+
version: z.ZodNumber;
|
|
2144
|
+
hash: z.ZodString;
|
|
2145
|
+
manifest: z.ZodObject<{
|
|
2146
|
+
manifestSchemaVersion: z.ZodLiteral<8>;
|
|
2147
|
+
name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
2148
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2149
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
2150
|
+
harness: z.ZodUnion<readonly [z.ZodType<WorkflowHarnessSection, unknown, z.core.$ZodTypeInternals<WorkflowHarnessSection, unknown>>, z.ZodType<AgentHarnessSection, unknown, z.core.$ZodTypeInternals<AgentHarnessSection, unknown>>]>;
|
|
2151
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
2152
|
+
kind: z.ZodEnum<{
|
|
1446
2153
|
none: "none";
|
|
1447
2154
|
pod: "pod";
|
|
1448
2155
|
virtual: "virtual";
|
|
1449
|
-
}
|
|
2156
|
+
}>;
|
|
1450
2157
|
image: z.ZodOptional<z.ZodString>;
|
|
1451
2158
|
resources: z.ZodOptional<z.ZodObject<{
|
|
1452
2159
|
cpus: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1456,7 +2163,6 @@ export declare const ListEnvironmentManifestsResponseSchema: z.ZodObject<{
|
|
|
1456
2163
|
network: z.ZodOptional<z.ZodObject<{
|
|
1457
2164
|
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1458
2165
|
}, z.core.$strict>>;
|
|
1459
|
-
harness: z.ZodOptional<z.ZodString>;
|
|
1460
2166
|
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
1461
2167
|
idle: z.ZodOptional<z.ZodString>;
|
|
1462
2168
|
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
@@ -1519,17 +2225,138 @@ export declare const ListEnvironmentManifestsResponseSchema: z.ZodObject<{
|
|
|
1519
2225
|
type: z.ZodLiteral<"headers">;
|
|
1520
2226
|
url: z.ZodString;
|
|
1521
2227
|
}, z.core.$strict>], "type">>>;
|
|
2228
|
+
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2229
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
2230
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2231
|
+
at: z.ZodOptional<z.ZodISODateTime>;
|
|
2232
|
+
webhook: z.ZodOptional<z.ZodEnum<{
|
|
2233
|
+
"standard-webhooks": "standard-webhooks";
|
|
2234
|
+
}>>;
|
|
2235
|
+
session: z.ZodString;
|
|
2236
|
+
prompt: z.ZodString;
|
|
2237
|
+
}, z.core.$strict>>>;
|
|
2238
|
+
selfWake: z.ZodOptional<z.ZodBoolean>;
|
|
2239
|
+
}, z.core.$strict>>;
|
|
2240
|
+
}, z.core.$strict>;
|
|
2241
|
+
savedBy: z.ZodObject<{
|
|
2242
|
+
actor: z.ZodString;
|
|
2243
|
+
}, z.core.$strict>;
|
|
2244
|
+
createdAt: z.ZodString;
|
|
2245
|
+
agents: z.ZodNumber;
|
|
2246
|
+
}, z.core.$strict>;
|
|
2247
|
+
export type AgentManifestView = z.infer<typeof AgentManifestViewSchema>;
|
|
2248
|
+
/** `GET /v1/agent-manifests`: each manifest's latest version, by name. */
|
|
2249
|
+
export declare const ListAgentManifestsResponseSchema: z.ZodObject<{
|
|
2250
|
+
manifests: z.ZodArray<z.ZodObject<{
|
|
2251
|
+
name: z.ZodString;
|
|
2252
|
+
version: z.ZodNumber;
|
|
2253
|
+
hash: z.ZodString;
|
|
2254
|
+
manifest: z.ZodObject<{
|
|
2255
|
+
manifestSchemaVersion: z.ZodLiteral<8>;
|
|
2256
|
+
name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
2257
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2258
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
2259
|
+
harness: z.ZodUnion<readonly [z.ZodType<WorkflowHarnessSection, unknown, z.core.$ZodTypeInternals<WorkflowHarnessSection, unknown>>, z.ZodType<AgentHarnessSection, unknown, z.core.$ZodTypeInternals<AgentHarnessSection, unknown>>]>;
|
|
2260
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
2261
|
+
kind: z.ZodEnum<{
|
|
2262
|
+
none: "none";
|
|
2263
|
+
pod: "pod";
|
|
2264
|
+
virtual: "virtual";
|
|
2265
|
+
}>;
|
|
2266
|
+
image: z.ZodOptional<z.ZodString>;
|
|
2267
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
2268
|
+
cpus: z.ZodOptional<z.ZodNumber>;
|
|
2269
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
2270
|
+
}, z.core.$strict>>;
|
|
2271
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
2272
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
2273
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2274
|
+
}, z.core.$strict>>;
|
|
2275
|
+
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
2276
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
2277
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
2278
|
+
}, z.core.$strict>>;
|
|
2279
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2280
|
+
command: z.ZodString;
|
|
2281
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
2282
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
2283
|
+
}, z.core.$strict>>>;
|
|
2284
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2285
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
2286
|
+
version: z.ZodNumber;
|
|
2287
|
+
path: z.ZodString;
|
|
2288
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2289
|
+
path: z.ZodString;
|
|
2290
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
2291
|
+
}, z.core.$strict>]>>>;
|
|
2292
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
2293
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
2294
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
2295
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
2296
|
+
}, z.core.$strict>>;
|
|
2297
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
2298
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
2299
|
+
}, z.core.$strict>>;
|
|
2300
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
2301
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
2302
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
2303
|
+
}, z.core.$strict>>;
|
|
2304
|
+
}, z.core.$strict>>;
|
|
2305
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2306
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2307
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2308
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
2309
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
2310
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
2311
|
+
header: z.ZodString;
|
|
2312
|
+
format: z.ZodString;
|
|
2313
|
+
}, z.core.$strict>>;
|
|
2314
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2315
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2316
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2317
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
2318
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2319
|
+
via: z.ZodOptional<z.ZodString>;
|
|
2320
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2321
|
+
header: z.ZodString;
|
|
2322
|
+
}, z.core.$strict>>;
|
|
2323
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2324
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2325
|
+
type: z.ZodLiteral<"bearer">;
|
|
2326
|
+
url: z.ZodString;
|
|
2327
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2328
|
+
via: z.ZodOptional<z.ZodString>;
|
|
2329
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2330
|
+
header: z.ZodString;
|
|
2331
|
+
}, z.core.$strict>>;
|
|
2332
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2333
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2334
|
+
type: z.ZodLiteral<"headers">;
|
|
2335
|
+
url: z.ZodString;
|
|
2336
|
+
}, z.core.$strict>], "type">>>;
|
|
2337
|
+
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2338
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
2339
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2340
|
+
at: z.ZodOptional<z.ZodISODateTime>;
|
|
2341
|
+
webhook: z.ZodOptional<z.ZodEnum<{
|
|
2342
|
+
"standard-webhooks": "standard-webhooks";
|
|
2343
|
+
}>>;
|
|
2344
|
+
session: z.ZodString;
|
|
2345
|
+
prompt: z.ZodString;
|
|
2346
|
+
}, z.core.$strict>>>;
|
|
2347
|
+
selfWake: z.ZodOptional<z.ZodBoolean>;
|
|
2348
|
+
}, z.core.$strict>>;
|
|
1522
2349
|
}, z.core.$strict>;
|
|
1523
2350
|
savedBy: z.ZodObject<{
|
|
1524
2351
|
actor: z.ZodString;
|
|
1525
2352
|
}, z.core.$strict>;
|
|
1526
2353
|
createdAt: z.ZodString;
|
|
1527
|
-
|
|
2354
|
+
agents: z.ZodNumber;
|
|
1528
2355
|
}, z.core.$strict>>;
|
|
1529
2356
|
}, z.core.$strict>;
|
|
1530
|
-
export type
|
|
1531
|
-
/** `GET /v1/
|
|
1532
|
-
export declare const
|
|
2357
|
+
export type ListAgentManifestsResponse = z.infer<typeof ListAgentManifestsResponseSchema>;
|
|
2358
|
+
/** `GET /v1/agent-manifests/{name}/versions`: every version, newest first. */
|
|
2359
|
+
export declare const AgentManifestVersionsSchema: z.ZodObject<{
|
|
1533
2360
|
name: z.ZodString;
|
|
1534
2361
|
latest: z.ZodNumber;
|
|
1535
2362
|
versions: z.ZodArray<z.ZodObject<{
|
|
@@ -1539,29 +2366,57 @@ export declare const EnvironmentManifestVersionsSchema: z.ZodObject<{
|
|
|
1539
2366
|
actor: z.ZodString;
|
|
1540
2367
|
}, z.core.$strict>;
|
|
1541
2368
|
createdAt: z.ZodString;
|
|
1542
|
-
|
|
2369
|
+
agents: z.ZodNumber;
|
|
1543
2370
|
}, z.core.$strict>>;
|
|
1544
2371
|
}, z.core.$strict>;
|
|
1545
|
-
export type
|
|
2372
|
+
export type AgentManifestVersions = z.infer<typeof AgentManifestVersionsSchema>;
|
|
1546
2373
|
/** Something a save would do that the saver should know: never a refusal. */
|
|
1547
|
-
export declare const
|
|
2374
|
+
export declare const AgentManifestWarningSchema: z.ZodObject<{
|
|
1548
2375
|
code: z.ZodString;
|
|
1549
2376
|
message: z.ZodString;
|
|
1550
2377
|
}, z.core.$strict>;
|
|
1551
|
-
export type
|
|
2378
|
+
export type AgentManifestWarning = z.infer<typeof AgentManifestWarningSchema>;
|
|
2379
|
+
/** One field a save changes, by its section and its path in it. */
|
|
2380
|
+
export declare const AgentManifestChangeSchema: z.ZodObject<{
|
|
2381
|
+
section: z.ZodEnum<{
|
|
2382
|
+
harness: "harness";
|
|
2383
|
+
manifest: "manifest";
|
|
2384
|
+
runtime: "runtime";
|
|
2385
|
+
}>;
|
|
2386
|
+
path: z.ZodString;
|
|
2387
|
+
op: z.ZodEnum<{
|
|
2388
|
+
add: "add";
|
|
2389
|
+
remove: "remove";
|
|
2390
|
+
replace: "replace";
|
|
2391
|
+
}>;
|
|
2392
|
+
from: z.ZodOptional<z.ZodUnknown>;
|
|
2393
|
+
to: z.ZodOptional<z.ZodUnknown>;
|
|
2394
|
+
}, z.core.$strict>;
|
|
2395
|
+
export type AgentManifestChange = z.infer<typeof AgentManifestChangeSchema>;
|
|
1552
2396
|
/**
|
|
1553
|
-
* `PUT /v1/
|
|
1554
|
-
*
|
|
1555
|
-
* a save with errors is
|
|
1556
|
-
* the
|
|
2397
|
+
* `PUT /v1/agent-manifests/{name}?dryRun=true`: what saving it would do, with nothing saved.
|
|
2398
|
+
* `errors` lists every reason the Runtime would refuse it: the gaps between its sections, the
|
|
2399
|
+
* Tenant's limits, its files; a save with errors is refused. A save moves every Agent that tracks
|
|
2400
|
+
* the manifest: `moves` counts them by when the new version applies. `behind` counts
|
|
2401
|
+
* the Agents that stay on an older version: pinned ones, and tracking ones it cannot move.
|
|
1557
2402
|
*/
|
|
1558
|
-
export declare const
|
|
2403
|
+
export declare const AgentManifestPlanSchema: z.ZodObject<{
|
|
1559
2404
|
name: z.ZodString;
|
|
1560
2405
|
from: z.ZodNullable<z.ZodNumber>;
|
|
1561
2406
|
to: z.ZodNumber;
|
|
1562
2407
|
unchanged: z.ZodBoolean;
|
|
1563
2408
|
changes: z.ZodArray<z.ZodObject<{
|
|
2409
|
+
section: z.ZodEnum<{
|
|
2410
|
+
harness: "harness";
|
|
2411
|
+
manifest: "manifest";
|
|
2412
|
+
runtime: "runtime";
|
|
2413
|
+
}>;
|
|
1564
2414
|
path: z.ZodString;
|
|
2415
|
+
op: z.ZodEnum<{
|
|
2416
|
+
add: "add";
|
|
2417
|
+
remove: "remove";
|
|
2418
|
+
replace: "replace";
|
|
2419
|
+
}>;
|
|
1565
2420
|
from: z.ZodOptional<z.ZodUnknown>;
|
|
1566
2421
|
to: z.ZodOptional<z.ZodUnknown>;
|
|
1567
2422
|
}, z.core.$strict>>;
|
|
@@ -1571,101 +2426,120 @@ export declare const EnvironmentManifestPlanSchema: z.ZodObject<{
|
|
|
1571
2426
|
}, z.core.$strict>>;
|
|
1572
2427
|
errors: z.ZodArray<z.ZodString>;
|
|
1573
2428
|
behind: z.ZodNumber;
|
|
2429
|
+
moves: z.ZodObject<{
|
|
2430
|
+
now: z.ZodNumber;
|
|
2431
|
+
nextStart: z.ZodNumber;
|
|
2432
|
+
secrets: z.ZodNumber;
|
|
2433
|
+
}, z.core.$strict>;
|
|
1574
2434
|
}, z.core.$strict>;
|
|
1575
|
-
export type
|
|
1576
|
-
/** `PUT /v1/
|
|
1577
|
-
export declare const
|
|
2435
|
+
export type AgentManifestPlan = z.infer<typeof AgentManifestPlanSchema>;
|
|
2436
|
+
/** `PUT /v1/agent-manifests/{name}`: the version saved (or the latest, unchanged). */
|
|
2437
|
+
export declare const SaveAgentManifestResponseSchema: z.ZodObject<{
|
|
1578
2438
|
manifest: z.ZodObject<{
|
|
1579
2439
|
name: z.ZodString;
|
|
1580
2440
|
version: z.ZodNumber;
|
|
1581
2441
|
hash: z.ZodString;
|
|
1582
2442
|
manifest: z.ZodObject<{
|
|
1583
|
-
manifestSchemaVersion: z.ZodLiteral<
|
|
2443
|
+
manifestSchemaVersion: z.ZodLiteral<8>;
|
|
1584
2444
|
name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1585
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1599
|
-
}, z.core.$strict>>;
|
|
1600
|
-
harness: z.ZodOptional<z.ZodString>;
|
|
1601
|
-
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
1602
|
-
idle: z.ZodOptional<z.ZodString>;
|
|
1603
|
-
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
1604
|
-
}, z.core.$strict>>;
|
|
1605
|
-
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1606
|
-
command: z.ZodString;
|
|
1607
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
1608
|
-
timeout: z.ZodOptional<z.ZodString>;
|
|
1609
|
-
}, z.core.$strict>>>;
|
|
1610
|
-
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1611
|
-
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1612
|
-
version: z.ZodNumber;
|
|
1613
|
-
path: z.ZodString;
|
|
1614
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1615
|
-
path: z.ZodString;
|
|
1616
|
-
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
1617
|
-
}, z.core.$strict>]>>>;
|
|
1618
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
1619
|
-
artifacts: z.ZodOptional<z.ZodObject<{
|
|
1620
|
-
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
1621
|
-
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1622
|
-
}, z.core.$strict>>;
|
|
1623
|
-
skills: z.ZodOptional<z.ZodObject<{
|
|
1624
|
-
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
1625
|
-
}, z.core.$strict>>;
|
|
1626
|
-
disk: z.ZodOptional<z.ZodObject<{
|
|
1627
|
-
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
1628
|
-
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
1629
|
-
}, z.core.$strict>>;
|
|
1630
|
-
}, z.core.$strict>>;
|
|
1631
|
-
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1632
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
1633
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1634
|
-
type: z.ZodLiteral<"environment_secret">;
|
|
1635
|
-
allowedHosts: z.ZodArray<z.ZodString>;
|
|
1636
|
-
inject: z.ZodOptional<z.ZodObject<{
|
|
1637
|
-
header: z.ZodString;
|
|
1638
|
-
format: z.ZodString;
|
|
2445
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2446
|
+
metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
|
|
2447
|
+
harness: z.ZodUnion<readonly [z.ZodType<WorkflowHarnessSection, unknown, z.core.$ZodTypeInternals<WorkflowHarnessSection, unknown>>, z.ZodType<AgentHarnessSection, unknown, z.core.$ZodTypeInternals<AgentHarnessSection, unknown>>]>;
|
|
2448
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
2449
|
+
kind: z.ZodEnum<{
|
|
2450
|
+
none: "none";
|
|
2451
|
+
pod: "pod";
|
|
2452
|
+
virtual: "virtual";
|
|
2453
|
+
}>;
|
|
2454
|
+
image: z.ZodOptional<z.ZodString>;
|
|
2455
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
2456
|
+
cpus: z.ZodOptional<z.ZodNumber>;
|
|
2457
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
1639
2458
|
}, z.core.$strict>>;
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
type: z.ZodLiteral<"environment_variable">;
|
|
1644
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1645
|
-
via: z.ZodOptional<z.ZodString>;
|
|
1646
|
-
identity: z.ZodOptional<z.ZodObject<{
|
|
1647
|
-
header: z.ZodString;
|
|
2459
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
2460
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
2461
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1648
2462
|
}, z.core.$strict>>;
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
url: z.ZodString;
|
|
1653
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1654
|
-
via: z.ZodOptional<z.ZodString>;
|
|
1655
|
-
identity: z.ZodOptional<z.ZodObject<{
|
|
1656
|
-
header: z.ZodString;
|
|
2463
|
+
lifecycle: z.ZodOptional<z.ZodObject<{
|
|
2464
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
2465
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
1657
2466
|
}, z.core.$strict>>;
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
2467
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2468
|
+
command: z.ZodString;
|
|
2469
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
2470
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
2471
|
+
}, z.core.$strict>>>;
|
|
2472
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2473
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
2474
|
+
version: z.ZodNumber;
|
|
2475
|
+
path: z.ZodString;
|
|
2476
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2477
|
+
path: z.ZodString;
|
|
2478
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
2479
|
+
}, z.core.$strict>]>>>;
|
|
2480
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
2481
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
2482
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
2483
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
2484
|
+
}, z.core.$strict>>;
|
|
2485
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
2486
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
2487
|
+
}, z.core.$strict>>;
|
|
2488
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
2489
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
2490
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
2491
|
+
}, z.core.$strict>>;
|
|
2492
|
+
}, z.core.$strict>>;
|
|
2493
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2494
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2495
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2496
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
2497
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
2498
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
2499
|
+
header: z.ZodString;
|
|
2500
|
+
format: z.ZodString;
|
|
2501
|
+
}, z.core.$strict>>;
|
|
2502
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2503
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2504
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2505
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
2506
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2507
|
+
via: z.ZodOptional<z.ZodString>;
|
|
2508
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2509
|
+
header: z.ZodString;
|
|
2510
|
+
}, z.core.$strict>>;
|
|
2511
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2512
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2513
|
+
type: z.ZodLiteral<"bearer">;
|
|
2514
|
+
url: z.ZodString;
|
|
2515
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2516
|
+
via: z.ZodOptional<z.ZodString>;
|
|
2517
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
2518
|
+
header: z.ZodString;
|
|
2519
|
+
}, z.core.$strict>>;
|
|
2520
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2521
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2522
|
+
type: z.ZodLiteral<"headers">;
|
|
2523
|
+
url: z.ZodString;
|
|
2524
|
+
}, z.core.$strict>], "type">>>;
|
|
2525
|
+
triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2526
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
2527
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
2528
|
+
at: z.ZodOptional<z.ZodISODateTime>;
|
|
2529
|
+
webhook: z.ZodOptional<z.ZodEnum<{
|
|
2530
|
+
"standard-webhooks": "standard-webhooks";
|
|
2531
|
+
}>>;
|
|
2532
|
+
session: z.ZodString;
|
|
2533
|
+
prompt: z.ZodString;
|
|
2534
|
+
}, z.core.$strict>>>;
|
|
2535
|
+
selfWake: z.ZodOptional<z.ZodBoolean>;
|
|
2536
|
+
}, z.core.$strict>>;
|
|
1663
2537
|
}, z.core.$strict>;
|
|
1664
2538
|
savedBy: z.ZodObject<{
|
|
1665
2539
|
actor: z.ZodString;
|
|
1666
2540
|
}, z.core.$strict>;
|
|
1667
2541
|
createdAt: z.ZodString;
|
|
1668
|
-
|
|
2542
|
+
agents: z.ZodNumber;
|
|
1669
2543
|
}, z.core.$strict>;
|
|
1670
2544
|
unchanged: z.ZodBoolean;
|
|
1671
2545
|
warnings: z.ZodArray<z.ZodObject<{
|
|
@@ -1673,19 +2547,19 @@ export declare const SaveEnvironmentManifestResponseSchema: z.ZodObject<{
|
|
|
1673
2547
|
message: z.ZodString;
|
|
1674
2548
|
}, z.core.$strict>>;
|
|
1675
2549
|
}, z.core.$strict>;
|
|
1676
|
-
export type
|
|
1677
|
-
export declare const
|
|
2550
|
+
export type SaveAgentManifestResponse = z.infer<typeof SaveAgentManifestResponseSchema>;
|
|
2551
|
+
export declare const DeleteAgentManifestResponseSchema: z.ZodObject<{
|
|
1678
2552
|
name: z.ZodString;
|
|
1679
2553
|
deleted: z.ZodBoolean;
|
|
1680
2554
|
}, z.core.$strict>;
|
|
1681
|
-
export type
|
|
2555
|
+
export type DeleteAgentManifestResponse = z.infer<typeof DeleteAgentManifestResponseSchema>;
|
|
1682
2556
|
/**
|
|
1683
|
-
* `POST /v1/
|
|
1684
|
-
*
|
|
1685
|
-
*
|
|
1686
|
-
* disk and its sessions.
|
|
2557
|
+
* `POST /v1/agents/{id}/fork`: copies an Agent, with its disk and vault, into a new one,
|
|
2558
|
+
* made from `manifest` (default the source's manifest at its latest version): how an Agent
|
|
2559
|
+
* changes what is fixed for its life (its kind, harness, storage or manifest). The source keeps
|
|
2560
|
+
* what it runs, its disk and its sessions.
|
|
1687
2561
|
*/
|
|
1688
|
-
export declare const
|
|
2562
|
+
export declare const ForkAgentRequestSchema: z.ZodObject<{
|
|
1689
2563
|
requestId: z.ZodOptional<z.ZodString>;
|
|
1690
2564
|
id: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
1691
2565
|
manifest: z.ZodOptional<z.ZodString>;
|
|
@@ -1695,12 +2569,12 @@ export declare const ForkEnvironmentRequestSchema: z.ZodObject<{
|
|
|
1695
2569
|
none: "none";
|
|
1696
2570
|
}>>;
|
|
1697
2571
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1698
|
-
|
|
2572
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1699
2573
|
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
1700
2574
|
}, z.core.$strict>;
|
|
1701
|
-
export type
|
|
2575
|
+
export type ForkAgentRequest = z.infer<typeof ForkAgentRequestSchema>;
|
|
1702
2576
|
/** What a fork does (or, with `dryRun`, would do). */
|
|
1703
|
-
export declare const
|
|
2577
|
+
export declare const AgentForkPlanSchema: z.ZodObject<{
|
|
1704
2578
|
source: z.ZodString;
|
|
1705
2579
|
id: z.ZodString;
|
|
1706
2580
|
kind: z.ZodEnum<{
|
|
@@ -1708,10 +2582,10 @@ export declare const EnvironmentForkPlanSchema: z.ZodObject<{
|
|
|
1708
2582
|
pod: "pod";
|
|
1709
2583
|
virtual: "virtual";
|
|
1710
2584
|
}>;
|
|
1711
|
-
manifest: z.
|
|
2585
|
+
manifest: z.ZodObject<{
|
|
1712
2586
|
name: z.ZodString;
|
|
1713
2587
|
version: z.ZodNumber;
|
|
1714
|
-
}, z.core.$strict
|
|
2588
|
+
}, z.core.$strict>;
|
|
1715
2589
|
disk: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"latest">]>>;
|
|
1716
2590
|
setup: z.ZodBoolean;
|
|
1717
2591
|
secrets: z.ZodObject<{
|
|
@@ -1725,10 +2599,11 @@ export declare const EnvironmentForkPlanSchema: z.ZodObject<{
|
|
|
1725
2599
|
to: z.ZodOptional<z.ZodUnknown>;
|
|
1726
2600
|
}, z.core.$strict>>;
|
|
1727
2601
|
sessions: z.ZodNumber;
|
|
2602
|
+
memories: z.ZodNumber;
|
|
1728
2603
|
}, z.core.$strict>;
|
|
1729
|
-
export type
|
|
1730
|
-
/** `POST /v1/
|
|
1731
|
-
export declare const
|
|
2604
|
+
export type AgentForkPlan = z.infer<typeof AgentForkPlanSchema>;
|
|
2605
|
+
/** `POST /v1/agents/{id}/fork`: the new Agent and the plan it ran, or with `dryRun` the plan only. */
|
|
2606
|
+
export declare const ForkAgentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1732
2607
|
dryRun: z.ZodLiteral<true>;
|
|
1733
2608
|
plan: z.ZodObject<{
|
|
1734
2609
|
source: z.ZodString;
|
|
@@ -1738,10 +2613,10 @@ export declare const ForkEnvironmentResponseSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1738
2613
|
pod: "pod";
|
|
1739
2614
|
virtual: "virtual";
|
|
1740
2615
|
}>;
|
|
1741
|
-
manifest: z.
|
|
2616
|
+
manifest: z.ZodObject<{
|
|
1742
2617
|
name: z.ZodString;
|
|
1743
2618
|
version: z.ZodNumber;
|
|
1744
|
-
}, z.core.$strict
|
|
2619
|
+
}, z.core.$strict>;
|
|
1745
2620
|
disk: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"latest">]>>;
|
|
1746
2621
|
setup: z.ZodBoolean;
|
|
1747
2622
|
secrets: z.ZodObject<{
|
|
@@ -1755,17 +2630,76 @@ export declare const ForkEnvironmentResponseSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1755
2630
|
to: z.ZodOptional<z.ZodUnknown>;
|
|
1756
2631
|
}, z.core.$strict>>;
|
|
1757
2632
|
sessions: z.ZodNumber;
|
|
2633
|
+
memories: z.ZodNumber;
|
|
1758
2634
|
}, z.core.$strict>;
|
|
1759
2635
|
}, z.core.$strict>, z.ZodObject<{
|
|
1760
|
-
|
|
2636
|
+
agent: z.ZodObject<{
|
|
1761
2637
|
id: z.ZodString;
|
|
2638
|
+
manifest: z.ZodString;
|
|
2639
|
+
resolvedVersion: z.ZodNumber;
|
|
2640
|
+
manifestHash: z.ZodString;
|
|
2641
|
+
tracking: z.ZodEnum<{
|
|
2642
|
+
pinned: "pinned";
|
|
2643
|
+
tracking: "tracking";
|
|
2644
|
+
}>;
|
|
2645
|
+
targetVersion: z.ZodNullable<z.ZodNumber>;
|
|
2646
|
+
waitingFor: z.ZodNullable<z.ZodEnum<{
|
|
2647
|
+
secrets: "secrets";
|
|
2648
|
+
start: "start";
|
|
2649
|
+
}>>;
|
|
2650
|
+
failedVersion: z.ZodNullable<z.ZodNumber>;
|
|
2651
|
+
startCheck: z.ZodNullable<z.ZodObject<{
|
|
2652
|
+
from: z.ZodNumber;
|
|
2653
|
+
startedAt: z.ZodString;
|
|
2654
|
+
}, z.core.$strict>>;
|
|
1762
2655
|
kind: z.ZodEnum<{
|
|
1763
2656
|
none: "none";
|
|
1764
2657
|
pod: "pod";
|
|
1765
2658
|
virtual: "virtual";
|
|
1766
2659
|
}>;
|
|
2660
|
+
harness: z.ZodString;
|
|
2661
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
1767
2662
|
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1768
|
-
|
|
2663
|
+
state: z.ZodString;
|
|
2664
|
+
attention: z.ZodArray<z.ZodObject<{
|
|
2665
|
+
state: z.ZodEnum<{
|
|
2666
|
+
failing: "failing";
|
|
2667
|
+
input_required: "input_required";
|
|
2668
|
+
paused: "paused";
|
|
2669
|
+
sleeping: "sleeping";
|
|
2670
|
+
working: "working";
|
|
2671
|
+
}>;
|
|
2672
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
2673
|
+
reason: z.ZodString;
|
|
2674
|
+
}, z.core.$strict>>;
|
|
2675
|
+
desired: z.ZodEnum<{
|
|
2676
|
+
off: "off";
|
|
2677
|
+
on: "on";
|
|
2678
|
+
}>;
|
|
2679
|
+
nextWakeAt: z.ZodNullable<z.ZodString>;
|
|
2680
|
+
compute: z.ZodObject<{
|
|
2681
|
+
state: z.ZodString;
|
|
2682
|
+
pod: z.ZodOptional<z.ZodObject<{
|
|
2683
|
+
desired: z.ZodEnum<{
|
|
2684
|
+
deleted: "deleted";
|
|
2685
|
+
running: "running";
|
|
2686
|
+
suspended: "suspended";
|
|
2687
|
+
}>;
|
|
2688
|
+
observed: z.ZodEnum<{
|
|
2689
|
+
creating: "creating";
|
|
2690
|
+
deleting: "deleting";
|
|
2691
|
+
failed: "failed";
|
|
2692
|
+
lost: "lost";
|
|
2693
|
+
running: "running";
|
|
2694
|
+
suspended: "suspended";
|
|
2695
|
+
}>;
|
|
2696
|
+
volumeGeneration: z.ZodNumber;
|
|
2697
|
+
hostEpoch: z.ZodNumber;
|
|
2698
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2699
|
+
imageDigest: z.ZodOptional<z.ZodString>;
|
|
2700
|
+
}, z.core.$strict>>;
|
|
2701
|
+
}, z.core.$strict>;
|
|
2702
|
+
runtime: z.ZodObject<{
|
|
1769
2703
|
image: z.ZodOptional<z.ZodString>;
|
|
1770
2704
|
resources: z.ZodOptional<z.ZodObject<{
|
|
1771
2705
|
cpus: z.ZodNumber;
|
|
@@ -1839,9 +2773,6 @@ export declare const ForkEnvironmentResponseSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1839
2773
|
url: z.ZodString;
|
|
1840
2774
|
}, z.core.$strict>], "type">>>>;
|
|
1841
2775
|
}, z.core.$strict>;
|
|
1842
|
-
manifestName: z.ZodOptional<z.ZodString>;
|
|
1843
|
-
manifestVersion: z.ZodOptional<z.ZodNumber>;
|
|
1844
|
-
manifestHash: z.ZodOptional<z.ZodString>;
|
|
1845
2776
|
limits: z.ZodObject<{
|
|
1846
2777
|
artifacts: z.ZodObject<{
|
|
1847
2778
|
fileBytes: z.ZodNumber;
|
|
@@ -1855,43 +2786,21 @@ export declare const ForkEnvironmentResponseSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1855
2786
|
versionEntries: z.ZodNumber;
|
|
1856
2787
|
}, z.core.$strict>;
|
|
1857
2788
|
}, z.core.$strict>;
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
2789
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
2790
|
+
id: z.ZodString;
|
|
2791
|
+
ownerUserId: z.ZodString;
|
|
2792
|
+
status: z.ZodString;
|
|
2793
|
+
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
1861
2794
|
}, z.core.$strict>>;
|
|
1862
|
-
slots: z.
|
|
2795
|
+
slots: z.ZodArray<z.ZodObject<{
|
|
1863
2796
|
name: z.ZodString;
|
|
1864
2797
|
type: z.ZodString;
|
|
1865
2798
|
required: z.ZodBoolean;
|
|
1866
2799
|
set: z.ZodBoolean;
|
|
1867
|
-
}, z.core.$strict>>>;
|
|
1868
|
-
version: z.ZodNumber;
|
|
1869
|
-
appliedVersion: z.ZodNumber;
|
|
1870
|
-
ownerUserId: z.ZodNullable<z.ZodString>;
|
|
1871
|
-
state: z.ZodString;
|
|
1872
|
-
pod: z.ZodOptional<z.ZodObject<{
|
|
1873
|
-
desired: z.ZodEnum<{
|
|
1874
|
-
deleted: "deleted";
|
|
1875
|
-
running: "running";
|
|
1876
|
-
suspended: "suspended";
|
|
1877
|
-
}>;
|
|
1878
|
-
observed: z.ZodEnum<{
|
|
1879
|
-
creating: "creating";
|
|
1880
|
-
deleting: "deleting";
|
|
1881
|
-
failed: "failed";
|
|
1882
|
-
lost: "lost";
|
|
1883
|
-
running: "running";
|
|
1884
|
-
suspended: "suspended";
|
|
1885
|
-
}>;
|
|
1886
|
-
volumeGeneration: z.ZodNumber;
|
|
1887
|
-
hostEpoch: z.ZodNumber;
|
|
1888
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
1889
|
-
imageDigest: z.ZodOptional<z.ZodString>;
|
|
1890
2800
|
}, z.core.$strict>>;
|
|
1891
|
-
lastUsedAt: z.ZodString;
|
|
1892
2801
|
disk: z.ZodOptional<z.ZodObject<{
|
|
1893
2802
|
latestVersion: z.ZodNullable<z.ZodNumber>;
|
|
1894
|
-
operation: z.
|
|
2803
|
+
operation: z.ZodNullable<z.ZodObject<{
|
|
1895
2804
|
kind: z.ZodEnum<{
|
|
1896
2805
|
restore: "restore";
|
|
1897
2806
|
seed: "seed";
|
|
@@ -1901,10 +2810,11 @@ export declare const ForkEnvironmentResponseSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1901
2810
|
startedAt: z.ZodString;
|
|
1902
2811
|
}, z.core.$strict>>;
|
|
1903
2812
|
}, z.core.$strict>>;
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
2813
|
+
forkedFrom: z.ZodNullable<z.ZodObject<{
|
|
2814
|
+
agent: z.ZodString;
|
|
2815
|
+
disk: z.ZodNullable<z.ZodNumber>;
|
|
1907
2816
|
}, z.core.$strict>>;
|
|
2817
|
+
lastUsedAt: z.ZodString;
|
|
1908
2818
|
createdAt: z.ZodString;
|
|
1909
2819
|
updatedAt: z.ZodString;
|
|
1910
2820
|
}, z.core.$strict>;
|
|
@@ -1916,10 +2826,10 @@ export declare const ForkEnvironmentResponseSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1916
2826
|
pod: "pod";
|
|
1917
2827
|
virtual: "virtual";
|
|
1918
2828
|
}>;
|
|
1919
|
-
manifest: z.
|
|
2829
|
+
manifest: z.ZodObject<{
|
|
1920
2830
|
name: z.ZodString;
|
|
1921
2831
|
version: z.ZodNumber;
|
|
1922
|
-
}, z.core.$strict
|
|
2832
|
+
}, z.core.$strict>;
|
|
1923
2833
|
disk: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"latest">]>>;
|
|
1924
2834
|
setup: z.ZodBoolean;
|
|
1925
2835
|
secrets: z.ZodObject<{
|
|
@@ -1933,9 +2843,112 @@ export declare const ForkEnvironmentResponseSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
1933
2843
|
to: z.ZodOptional<z.ZodUnknown>;
|
|
1934
2844
|
}, z.core.$strict>>;
|
|
1935
2845
|
sessions: z.ZodNumber;
|
|
2846
|
+
memories: z.ZodNumber;
|
|
1936
2847
|
}, z.core.$strict>;
|
|
1937
2848
|
}, z.core.$strict>]>;
|
|
1938
|
-
export type
|
|
2849
|
+
export type ForkAgentResponse = z.infer<typeof ForkAgentResponseSchema>;
|
|
2850
|
+
/**
|
|
2851
|
+
* `PUT /v1/agents/{id}?dryRun=true` on an existing Agent: what moving it to the
|
|
2852
|
+
* version `manifest` names would do, with nothing changed. `applies`: `none` (it runs that
|
|
2853
|
+
* version), `now` (turns that start from here run it), `next_start` (a runtime change: its pod's
|
|
2854
|
+
* next start applies it), `secrets` (it waits for a value of each of `missingSecrets`), or
|
|
2855
|
+
* `refused` (`refusals` names each fixed field it would change: `409 agent_fixed_field`).
|
|
2856
|
+
*/
|
|
2857
|
+
export declare const AgentMovePlanSchema: z.ZodObject<{
|
|
2858
|
+
agent: z.ZodString;
|
|
2859
|
+
manifest: z.ZodString;
|
|
2860
|
+
from: z.ZodNumber;
|
|
2861
|
+
to: z.ZodNumber;
|
|
2862
|
+
tracking: z.ZodEnum<{
|
|
2863
|
+
pinned: "pinned";
|
|
2864
|
+
tracking: "tracking";
|
|
2865
|
+
}>;
|
|
2866
|
+
applies: z.ZodEnum<{
|
|
2867
|
+
next_start: "next_start";
|
|
2868
|
+
none: "none";
|
|
2869
|
+
now: "now";
|
|
2870
|
+
refused: "refused";
|
|
2871
|
+
secrets: "secrets";
|
|
2872
|
+
}>;
|
|
2873
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2874
|
+
section: z.ZodEnum<{
|
|
2875
|
+
harness: "harness";
|
|
2876
|
+
manifest: "manifest";
|
|
2877
|
+
runtime: "runtime";
|
|
2878
|
+
}>;
|
|
2879
|
+
path: z.ZodString;
|
|
2880
|
+
op: z.ZodEnum<{
|
|
2881
|
+
add: "add";
|
|
2882
|
+
remove: "remove";
|
|
2883
|
+
replace: "replace";
|
|
2884
|
+
}>;
|
|
2885
|
+
from: z.ZodOptional<z.ZodUnknown>;
|
|
2886
|
+
to: z.ZodOptional<z.ZodUnknown>;
|
|
2887
|
+
}, z.core.$strict>>;
|
|
2888
|
+
missingSecrets: z.ZodArray<z.ZodString>;
|
|
2889
|
+
dormantSecrets: z.ZodArray<z.ZodString>;
|
|
2890
|
+
refusals: z.ZodArray<z.ZodObject<{
|
|
2891
|
+
field: z.ZodString;
|
|
2892
|
+
from: z.ZodOptional<z.ZodUnknown>;
|
|
2893
|
+
to: z.ZodOptional<z.ZodUnknown>;
|
|
2894
|
+
}, z.core.$strict>>;
|
|
2895
|
+
sessions: z.ZodNumber;
|
|
2896
|
+
}, z.core.$strict>;
|
|
2897
|
+
export type AgentMovePlan = z.infer<typeof AgentMovePlanSchema>;
|
|
2898
|
+
/**
|
|
2899
|
+
* `POST /v1/agents/{id}/restart`: applies a pending version now. A running pod stops,
|
|
2900
|
+
* so the next turn starts it on the version (a stopped one starts at once); `retry` first moves
|
|
2901
|
+
* it to the version that failed to start (`failedVersion`) again.
|
|
2902
|
+
*/
|
|
2903
|
+
export declare const RestartAgentRequestSchema: z.ZodObject<{
|
|
2904
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
2905
|
+
retry: z.ZodOptional<z.ZodBoolean>;
|
|
2906
|
+
}, z.core.$strict>;
|
|
2907
|
+
export type RestartAgentRequest = z.infer<typeof RestartAgentRequestSchema>;
|
|
2908
|
+
export declare const PutAgentDryRunResponseSchema: z.ZodObject<{
|
|
2909
|
+
dryRun: z.ZodLiteral<true>;
|
|
2910
|
+
plan: z.ZodObject<{
|
|
2911
|
+
agent: z.ZodString;
|
|
2912
|
+
manifest: z.ZodString;
|
|
2913
|
+
from: z.ZodNumber;
|
|
2914
|
+
to: z.ZodNumber;
|
|
2915
|
+
tracking: z.ZodEnum<{
|
|
2916
|
+
pinned: "pinned";
|
|
2917
|
+
tracking: "tracking";
|
|
2918
|
+
}>;
|
|
2919
|
+
applies: z.ZodEnum<{
|
|
2920
|
+
next_start: "next_start";
|
|
2921
|
+
none: "none";
|
|
2922
|
+
now: "now";
|
|
2923
|
+
refused: "refused";
|
|
2924
|
+
secrets: "secrets";
|
|
2925
|
+
}>;
|
|
2926
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2927
|
+
section: z.ZodEnum<{
|
|
2928
|
+
harness: "harness";
|
|
2929
|
+
manifest: "manifest";
|
|
2930
|
+
runtime: "runtime";
|
|
2931
|
+
}>;
|
|
2932
|
+
path: z.ZodString;
|
|
2933
|
+
op: z.ZodEnum<{
|
|
2934
|
+
add: "add";
|
|
2935
|
+
remove: "remove";
|
|
2936
|
+
replace: "replace";
|
|
2937
|
+
}>;
|
|
2938
|
+
from: z.ZodOptional<z.ZodUnknown>;
|
|
2939
|
+
to: z.ZodOptional<z.ZodUnknown>;
|
|
2940
|
+
}, z.core.$strict>>;
|
|
2941
|
+
missingSecrets: z.ZodArray<z.ZodString>;
|
|
2942
|
+
dormantSecrets: z.ZodArray<z.ZodString>;
|
|
2943
|
+
refusals: z.ZodArray<z.ZodObject<{
|
|
2944
|
+
field: z.ZodString;
|
|
2945
|
+
from: z.ZodOptional<z.ZodUnknown>;
|
|
2946
|
+
to: z.ZodOptional<z.ZodUnknown>;
|
|
2947
|
+
}, z.core.$strict>>;
|
|
2948
|
+
sessions: z.ZodNumber;
|
|
2949
|
+
}, z.core.$strict>;
|
|
2950
|
+
}, z.core.$strict>;
|
|
2951
|
+
export type PutAgentDryRunResponse = z.infer<typeof PutAgentDryRunResponseSchema>;
|
|
1939
2952
|
/**
|
|
1940
2953
|
* What a model may read (protocol 12): `text` always; `image`, `pdf`, `office` (Word, Excel,
|
|
1941
2954
|
* PowerPoint), `audio` and `video` when its catalog entry or the operator says so. In this order.
|
|
@@ -2036,7 +3049,7 @@ export declare const ENVIRONMENT_SECRET_TYPES: readonly ["bearer", "headers", "e
|
|
|
2036
3049
|
* One credential of an Environment's vault, never its value: what it is bound to (the server
|
|
2037
3050
|
* `url` for `bearer` and `headers`; the hosts and header for `environment_secret`).
|
|
2038
3051
|
*/
|
|
2039
|
-
export declare const
|
|
3052
|
+
export declare const AgentSecretViewSchema: z.ZodObject<{
|
|
2040
3053
|
name: z.ZodString;
|
|
2041
3054
|
type: z.ZodEnum<{
|
|
2042
3055
|
bearer: "bearer";
|
|
@@ -2060,8 +3073,8 @@ export declare const EnvironmentSecretViewSchema: z.ZodObject<{
|
|
|
2060
3073
|
createdAt: z.ZodString;
|
|
2061
3074
|
rotatedAt: z.ZodOptional<z.ZodString>;
|
|
2062
3075
|
}, z.core.$strict>;
|
|
2063
|
-
export type
|
|
2064
|
-
export declare const
|
|
3076
|
+
export type AgentSecretView = z.infer<typeof AgentSecretViewSchema>;
|
|
3077
|
+
export declare const ListAgentSecretsResponseSchema: z.ZodObject<{
|
|
2065
3078
|
secrets: z.ZodArray<z.ZodObject<{
|
|
2066
3079
|
name: z.ZodString;
|
|
2067
3080
|
type: z.ZodEnum<{
|
|
@@ -2087,12 +3100,12 @@ export declare const ListEnvironmentSecretsResponseSchema: z.ZodObject<{
|
|
|
2087
3100
|
rotatedAt: z.ZodOptional<z.ZodString>;
|
|
2088
3101
|
}, z.core.$strict>>;
|
|
2089
3102
|
}, z.core.$strict>;
|
|
2090
|
-
export type
|
|
3103
|
+
export type ListAgentSecretsResponse = z.infer<typeof ListAgentSecretsResponseSchema>;
|
|
2091
3104
|
/** The MCP transports a preview speaks: a manifest's remote server types. */
|
|
2092
3105
|
export declare const MCP_PREVIEW_TYPES: readonly ["streamable-http", "sse"];
|
|
2093
3106
|
/**
|
|
2094
|
-
* `POST /v1/tenant/mcp/preview
|
|
2095
|
-
* names it. The Runtime connects with the credential for `url` in the vault of `
|
|
3107
|
+
* `POST /v1/tenant/mcp/preview`: what a remote MCP server offers, before an agent
|
|
3108
|
+
* names it. The Runtime connects with the credential for `url` in the vault of Agent `agentId`
|
|
2096
3109
|
* (none without one), lists the tools and closes the connection; it never calls a tool.
|
|
2097
3110
|
*/
|
|
2098
3111
|
export declare const McpPreviewRequestSchema: z.ZodObject<{
|
|
@@ -2103,7 +3116,7 @@ export declare const McpPreviewRequestSchema: z.ZodObject<{
|
|
|
2103
3116
|
"streamable-http": "streamable-http";
|
|
2104
3117
|
}>>;
|
|
2105
3118
|
name: z.ZodOptional<z.ZodString>;
|
|
2106
|
-
|
|
3119
|
+
agentId: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
2107
3120
|
}, z.core.$strict>;
|
|
2108
3121
|
export type McpPreviewRequest = z.infer<typeof McpPreviewRequestSchema>;
|
|
2109
3122
|
/** One tool a preview found. */
|
|
@@ -2116,7 +3129,7 @@ export declare const McpPreviewToolSchema: z.ZodObject<{
|
|
|
2116
3129
|
}, z.core.$strict>;
|
|
2117
3130
|
export type McpPreviewTool = z.infer<typeof McpPreviewToolSchema>;
|
|
2118
3131
|
/**
|
|
2119
|
-
* A preview
|
|
3132
|
+
* A preview. A server that answered `401` is `authRequired`, with its RFC 9728
|
|
2120
3133
|
* protected-resource metadata when it publishes any: it needs a person's sign-in or a key the
|
|
2121
3134
|
* Environment's vault does not hold, so reach it with a key or through a gateway (`via`).
|
|
2122
3135
|
*/
|
|
@@ -2148,19 +3161,19 @@ export declare const McpPreviewSchema: z.ZodObject<{
|
|
|
2148
3161
|
}, z.core.$strict>;
|
|
2149
3162
|
export type McpPreview = z.infer<typeof McpPreviewSchema>;
|
|
2150
3163
|
/**
|
|
2151
|
-
* `POST /v1/tenant/credential-coverage`: which credential each of
|
|
2152
|
-
*
|
|
2153
|
-
* session's tool calls decide it (by URL). It reads no secret and calls no
|
|
3164
|
+
* `POST /v1/tenant/credential-coverage`: which credential each of an Agent's remote MCP servers
|
|
3165
|
+
* and HTTP tools (those of the manifest version it runs) would get in its sessions, decided as the
|
|
3166
|
+
* session's tool calls decide it (by URL) from the Agent's vault. It reads no secret and calls no
|
|
3167
|
+
* server.
|
|
2154
3168
|
*/
|
|
2155
3169
|
export declare const CredentialCoverageRequestSchema: z.ZodObject<{
|
|
2156
3170
|
requestId: z.ZodOptional<z.ZodString>;
|
|
2157
|
-
agentId: z.ZodString
|
|
2158
|
-
environmentId: z.ZodOptional<z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
3171
|
+
agentId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
2159
3172
|
}, z.core.$strict>;
|
|
2160
3173
|
export type CredentialCoverageRequest = z.infer<typeof CredentialCoverageRequestSchema>;
|
|
2161
3174
|
/** A credential coverage names: where it is, never its value. */
|
|
2162
3175
|
export declare const CoverageCredentialSchema: z.ZodObject<{
|
|
2163
|
-
|
|
3176
|
+
agentId: z.ZodString;
|
|
2164
3177
|
name: z.ZodString;
|
|
2165
3178
|
via: z.ZodOptional<z.ZodString>;
|
|
2166
3179
|
}, z.core.$strict>;
|
|
@@ -2190,7 +3203,7 @@ export declare const CredentialCoverageEntrySchema: z.ZodObject<{
|
|
|
2190
3203
|
missing: "missing";
|
|
2191
3204
|
}>;
|
|
2192
3205
|
credential: z.ZodOptional<z.ZodObject<{
|
|
2193
|
-
|
|
3206
|
+
agentId: z.ZodString;
|
|
2194
3207
|
name: z.ZodString;
|
|
2195
3208
|
via: z.ZodOptional<z.ZodString>;
|
|
2196
3209
|
}, z.core.$strict>>;
|
|
@@ -2199,7 +3212,6 @@ export declare const CredentialCoverageEntrySchema: z.ZodObject<{
|
|
|
2199
3212
|
export type CredentialCoverageEntry = z.infer<typeof CredentialCoverageEntrySchema>;
|
|
2200
3213
|
export declare const CredentialCoverageSchema: z.ZodObject<{
|
|
2201
3214
|
agentId: z.ZodString;
|
|
2202
|
-
environmentId: z.ZodNullable<z.ZodString>;
|
|
2203
3215
|
complete: z.ZodBoolean;
|
|
2204
3216
|
entries: z.ZodArray<z.ZodObject<{
|
|
2205
3217
|
kind: z.ZodEnum<{
|
|
@@ -2217,7 +3229,7 @@ export declare const CredentialCoverageSchema: z.ZodObject<{
|
|
|
2217
3229
|
missing: "missing";
|
|
2218
3230
|
}>;
|
|
2219
3231
|
credential: z.ZodOptional<z.ZodObject<{
|
|
2220
|
-
|
|
3232
|
+
agentId: z.ZodString;
|
|
2221
3233
|
name: z.ZodString;
|
|
2222
3234
|
via: z.ZodOptional<z.ZodString>;
|
|
2223
3235
|
}, z.core.$strict>>;
|
|
@@ -2225,6 +3237,16 @@ export declare const CredentialCoverageSchema: z.ZodObject<{
|
|
|
2225
3237
|
}, z.core.$strict>>;
|
|
2226
3238
|
}, z.core.$strict>;
|
|
2227
3239
|
export type CredentialCoverage = z.infer<typeof CredentialCoverageSchema>;
|
|
3240
|
+
/**
|
|
3241
|
+
* What a message to a busy session does (protocol 17): `queue` waits for the running turn to
|
|
3242
|
+
* end and starts the next one; `reject` is refused with `409 session_busy`. A protocol 17 client's
|
|
3243
|
+
* default is `queue`, a protocol 16 client's `reject`.
|
|
3244
|
+
*/
|
|
3245
|
+
export declare const MessageDeliverySchema: z.ZodEnum<{
|
|
3246
|
+
queue: "queue";
|
|
3247
|
+
reject: "reject";
|
|
3248
|
+
}>;
|
|
3249
|
+
export type MessageDelivery = z.infer<typeof MessageDeliverySchema>;
|
|
2228
3250
|
/**
|
|
2229
3251
|
* One part of a user message (protocol 6): text, or a file by artifact id. A file part without
|
|
2230
3252
|
* `version` means the artifact's latest version when the message is accepted; the Runtime pins
|
|
@@ -2248,18 +3270,30 @@ export declare const MessageEventBodySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2248
3270
|
idempotencyKey: z.ZodString;
|
|
2249
3271
|
type: z.ZodLiteral<"message">;
|
|
2250
3272
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3273
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3274
|
+
queue: "queue";
|
|
3275
|
+
reject: "reject";
|
|
3276
|
+
}>>;
|
|
2251
3277
|
content: z.ZodString;
|
|
2252
3278
|
}, z.core.$strict>, z.ZodObject<{
|
|
2253
3279
|
requestId: z.ZodString;
|
|
2254
3280
|
idempotencyKey: z.ZodString;
|
|
2255
3281
|
type: z.ZodLiteral<"message">;
|
|
2256
3282
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3283
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3284
|
+
queue: "queue";
|
|
3285
|
+
reject: "reject";
|
|
3286
|
+
}>>;
|
|
2257
3287
|
data: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
2258
3288
|
}, z.core.$strict>, z.ZodObject<{
|
|
2259
3289
|
requestId: z.ZodString;
|
|
2260
3290
|
idempotencyKey: z.ZodString;
|
|
2261
3291
|
type: z.ZodLiteral<"message">;
|
|
2262
3292
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3293
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3294
|
+
queue: "queue";
|
|
3295
|
+
reject: "reject";
|
|
3296
|
+
}>>;
|
|
2263
3297
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2264
3298
|
type: z.ZodLiteral<"text">;
|
|
2265
3299
|
text: z.ZodString;
|
|
@@ -2280,18 +3314,30 @@ export declare const SessionCommandSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
2280
3314
|
idempotencyKey: z.ZodString;
|
|
2281
3315
|
type: z.ZodLiteral<"message">;
|
|
2282
3316
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3317
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3318
|
+
queue: "queue";
|
|
3319
|
+
reject: "reject";
|
|
3320
|
+
}>>;
|
|
2283
3321
|
content: z.ZodString;
|
|
2284
3322
|
}, z.core.$strict>, z.ZodObject<{
|
|
2285
3323
|
requestId: z.ZodString;
|
|
2286
3324
|
idempotencyKey: z.ZodString;
|
|
2287
3325
|
type: z.ZodLiteral<"message">;
|
|
2288
3326
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3327
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3328
|
+
queue: "queue";
|
|
3329
|
+
reject: "reject";
|
|
3330
|
+
}>>;
|
|
2289
3331
|
data: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
2290
3332
|
}, z.core.$strict>, z.ZodObject<{
|
|
2291
3333
|
requestId: z.ZodString;
|
|
2292
3334
|
idempotencyKey: z.ZodString;
|
|
2293
3335
|
type: z.ZodLiteral<"message">;
|
|
2294
3336
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3337
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3338
|
+
queue: "queue";
|
|
3339
|
+
reject: "reject";
|
|
3340
|
+
}>>;
|
|
2295
3341
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2296
3342
|
type: z.ZodLiteral<"text">;
|
|
2297
3343
|
text: z.ZodString;
|
|
@@ -2323,18 +3369,30 @@ export declare const SessionEventBodySchema: z.ZodUnion<readonly [z.ZodUnion<rea
|
|
|
2323
3369
|
idempotencyKey: z.ZodString;
|
|
2324
3370
|
type: z.ZodLiteral<"message">;
|
|
2325
3371
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3372
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3373
|
+
queue: "queue";
|
|
3374
|
+
reject: "reject";
|
|
3375
|
+
}>>;
|
|
2326
3376
|
content: z.ZodString;
|
|
2327
3377
|
}, z.core.$strict>, z.ZodObject<{
|
|
2328
3378
|
requestId: z.ZodString;
|
|
2329
3379
|
idempotencyKey: z.ZodString;
|
|
2330
3380
|
type: z.ZodLiteral<"message">;
|
|
2331
3381
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3382
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3383
|
+
queue: "queue";
|
|
3384
|
+
reject: "reject";
|
|
3385
|
+
}>>;
|
|
2332
3386
|
data: z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>;
|
|
2333
3387
|
}, z.core.$strict>, z.ZodObject<{
|
|
2334
3388
|
requestId: z.ZodString;
|
|
2335
3389
|
idempotencyKey: z.ZodString;
|
|
2336
3390
|
type: z.ZodLiteral<"message">;
|
|
2337
3391
|
manifest: z.ZodOptional<z.ZodType<AgentManifest, unknown, z.core.$ZodTypeInternals<AgentManifest, unknown>>>;
|
|
3392
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3393
|
+
queue: "queue";
|
|
3394
|
+
reject: "reject";
|
|
3395
|
+
}>>;
|
|
2338
3396
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2339
3397
|
type: z.ZodLiteral<"text">;
|
|
2340
3398
|
text: z.ZodString;
|
|
@@ -2367,11 +3425,11 @@ export type MessageEventBody = z.infer<typeof MessageEventBodySchema>;
|
|
|
2367
3425
|
/** The envelope every session event carries (`nylorun.event/2`, Durable Streams §9.5). */
|
|
2368
3426
|
export declare const EVENT_SCHEMA = "nylorun.event/2";
|
|
2369
3427
|
/**
|
|
2370
|
-
* Who wrote an event
|
|
3428
|
+
* Who wrote an event: the writer says so, not the event's type. `client` is a
|
|
2371
3429
|
* command over the Runtime API (its `principal` says who sent it), `core` is core's own logic
|
|
2372
3430
|
* (settle, sweeps, the flow host, exports, the tools core serves), `harness` is what a harness
|
|
2373
3431
|
* reported (`source.id` is its harness id, `runId` its run), and the gates are themselves.
|
|
2374
|
-
* `loop` and `api` are what events
|
|
3432
|
+
* `loop` and `api` are what older events say.
|
|
2375
3433
|
*/
|
|
2376
3434
|
export declare const EventSourceKindSchema: z.ZodEnum<{
|
|
2377
3435
|
api: "api";
|
|
@@ -2406,19 +3464,20 @@ export declare const EvidenceClassSchema: z.ZodEnum<{
|
|
|
2406
3464
|
observed: "observed";
|
|
2407
3465
|
}>;
|
|
2408
3466
|
export type EvidenceClass = z.infer<typeof EvidenceClassSchema>;
|
|
2409
|
-
/** A command's sender
|
|
3467
|
+
/** A command's sender: from the request's credential, never from its body. */
|
|
2410
3468
|
export declare const EventPrincipalSchema: z.ZodObject<{
|
|
2411
3469
|
kind: z.ZodEnum<{
|
|
2412
3470
|
application: "application";
|
|
2413
3471
|
core: "core";
|
|
2414
3472
|
"flow-host": "flow-host";
|
|
2415
3473
|
subject: "subject";
|
|
3474
|
+
trigger: "trigger";
|
|
2416
3475
|
}>;
|
|
2417
3476
|
id: z.ZodString;
|
|
2418
3477
|
}, z.core.$strict>;
|
|
2419
3478
|
export type EventPrincipal = z.infer<typeof EventPrincipalSchema>;
|
|
2420
3479
|
/**
|
|
2421
|
-
* Who wrote an event, as its writer says
|
|
3480
|
+
* Who wrote an event, as its writer says. Absent, core wrote it and saw it (`core`,
|
|
2422
3481
|
* `observed`).
|
|
2423
3482
|
*/
|
|
2424
3483
|
export interface EventWriter {
|
|
@@ -2483,13 +3542,14 @@ declare const eventEnvelope: {
|
|
|
2483
3542
|
measured: "measured";
|
|
2484
3543
|
observed: "observed";
|
|
2485
3544
|
}>;
|
|
2486
|
-
/** Who sent a command (`command.*`, a cancel's `turn.cancelled`), from its credential
|
|
3545
|
+
/** Who sent a command (`command.*`, a cancel's `turn.cancelled`), from its credential. */
|
|
2487
3546
|
principal: z.ZodOptional<z.ZodObject<{
|
|
2488
3547
|
kind: z.ZodEnum<{
|
|
2489
3548
|
application: "application";
|
|
2490
3549
|
core: "core";
|
|
2491
3550
|
"flow-host": "flow-host";
|
|
2492
3551
|
subject: "subject";
|
|
3552
|
+
trigger: "trigger";
|
|
2493
3553
|
}>;
|
|
2494
3554
|
id: z.ZodString;
|
|
2495
3555
|
}, z.core.$strict>>;
|
|
@@ -2559,6 +3619,7 @@ export declare const LiveEventSchema: z.ZodObject<{
|
|
|
2559
3619
|
core: "core";
|
|
2560
3620
|
"flow-host": "flow-host";
|
|
2561
3621
|
subject: "subject";
|
|
3622
|
+
trigger: "trigger";
|
|
2562
3623
|
}>;
|
|
2563
3624
|
id: z.ZodString;
|
|
2564
3625
|
}, z.core.$strict>>;
|
|
@@ -2588,22 +3649,47 @@ export declare const AcceptedResponseSchema: z.ZodObject<{
|
|
|
2588
3649
|
requestId: z.ZodString;
|
|
2589
3650
|
}, z.core.$strip>;
|
|
2590
3651
|
export type AcceptedResponse = z.infer<typeof AcceptedResponseSchema>;
|
|
3652
|
+
/**
|
|
3653
|
+
* A message the session queued because a turn runs or waits (protocol 17): it starts the next
|
|
3654
|
+
* turn when this one ends. `position` counts from 1, the first to go.
|
|
3655
|
+
*/
|
|
3656
|
+
export declare const QueuedResponseSchema: z.ZodObject<{
|
|
3657
|
+
status: z.ZodLiteral<"queued">;
|
|
3658
|
+
queuedMessageId: z.ZodString;
|
|
3659
|
+
position: z.ZodNumber;
|
|
3660
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
3661
|
+
requestId: z.ZodString;
|
|
3662
|
+
}, z.core.$strip>;
|
|
3663
|
+
export type QueuedResponse = z.infer<typeof QueuedResponseSchema>;
|
|
3664
|
+
/** What a session command answers: accepted, or, for a message, queued. */
|
|
3665
|
+
export declare const CommandResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3666
|
+
status: z.ZodLiteral<"accepted">;
|
|
3667
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
3668
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
3669
|
+
requestId: z.ZodString;
|
|
3670
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3671
|
+
status: z.ZodLiteral<"queued">;
|
|
3672
|
+
queuedMessageId: z.ZodString;
|
|
3673
|
+
position: z.ZodNumber;
|
|
3674
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
3675
|
+
requestId: z.ZodString;
|
|
3676
|
+
}, z.core.$strip>]>;
|
|
3677
|
+
export type CommandResponse = z.infer<typeof CommandResponseSchema>;
|
|
2591
3678
|
export declare const RejectedResponseSchema: z.ZodObject<{
|
|
2592
3679
|
status: z.ZodLiteral<"rejected">;
|
|
2593
3680
|
code: z.ZodEnum<{
|
|
3681
|
+
agent_busy: "agent_busy";
|
|
3682
|
+
agent_fixed_field: "agent_fixed_field";
|
|
3683
|
+
agent_lost: "agent_lost";
|
|
3684
|
+
agent_not_granted: "agent_not_granted";
|
|
3685
|
+
agent_owner_mismatch: "agent_owner_mismatch";
|
|
3686
|
+
agent_unavailable: "agent_unavailable";
|
|
2594
3687
|
connection_missing: "connection_missing";
|
|
2595
3688
|
credential_conflict: "credential_conflict";
|
|
2596
3689
|
credential_invalid: "credential_invalid";
|
|
2597
3690
|
credential_rejected: "credential_rejected";
|
|
2598
3691
|
credential_required: "credential_required";
|
|
2599
3692
|
definition_files_missing: "definition_files_missing";
|
|
2600
|
-
environment_busy: "environment_busy";
|
|
2601
|
-
environment_immutable: "environment_immutable";
|
|
2602
|
-
environment_lost: "environment_lost";
|
|
2603
|
-
environment_not_granted: "environment_not_granted";
|
|
2604
|
-
environment_owner_mismatch: "environment_owner_mismatch";
|
|
2605
|
-
environment_unavailable: "environment_unavailable";
|
|
2606
|
-
environment_unsuitable: "environment_unsuitable";
|
|
2607
3693
|
harness_mismatch: "harness_mismatch";
|
|
2608
3694
|
host_rejected: "host_rejected";
|
|
2609
3695
|
incompatible_host: "incompatible_host";
|
|
@@ -2614,19 +3700,25 @@ export declare const RejectedResponseSchema: z.ZodObject<{
|
|
|
2614
3700
|
limit_exceeded: "limit_exceeded";
|
|
2615
3701
|
manifest_changed: "manifest_changed";
|
|
2616
3702
|
manifest_in_use: "manifest_in_use";
|
|
3703
|
+
manifest_inconsistent: "manifest_inconsistent";
|
|
2617
3704
|
manifest_not_found: "manifest_not_found";
|
|
2618
3705
|
mcp_preview_failed: "mcp_preview_failed";
|
|
3706
|
+
memory_conflict: "memory_conflict";
|
|
2619
3707
|
not_found: "not_found";
|
|
2620
3708
|
origin_rejected: "origin_rejected";
|
|
2621
3709
|
placement_refused: "placement_refused";
|
|
2622
3710
|
protocol_unsupported: "protocol_unsupported";
|
|
3711
|
+
queue_full: "queue_full";
|
|
2623
3712
|
request_rejected: "request_rejected";
|
|
2624
3713
|
scope_required: "scope_required";
|
|
2625
3714
|
secret_not_in_manifest: "secret_not_in_manifest";
|
|
3715
|
+
session_busy: "session_busy";
|
|
2626
3716
|
session_closed: "session_closed";
|
|
2627
3717
|
subject_invalid: "subject_invalid";
|
|
2628
3718
|
subject_required: "subject_required";
|
|
2629
3719
|
token_expired: "token_expired";
|
|
3720
|
+
trigger_expired: "trigger_expired";
|
|
3721
|
+
trigger_paused: "trigger_paused";
|
|
2630
3722
|
unsupported_media_type: "unsupported_media_type";
|
|
2631
3723
|
}>;
|
|
2632
3724
|
message: z.ZodString;
|
|
@@ -2642,7 +3734,7 @@ export declare const AgentRefSchema: z.ZodObject<{
|
|
|
2642
3734
|
delegationId: z.ZodOptional<z.ZodString>;
|
|
2643
3735
|
}, z.core.$strict>;
|
|
2644
3736
|
/**
|
|
2645
|
-
* When a gate served a call
|
|
3737
|
+
* When a gate served a call: its own start and end, as it measured them. Absent when no
|
|
2646
3738
|
* gate measured the call (a fixture model, a sandbox or core-served tool, a call refused before
|
|
2647
3739
|
* it was sent).
|
|
2648
3740
|
*/
|
|
@@ -2651,7 +3743,7 @@ export declare const GateTimesSchema: z.ZodObject<{
|
|
|
2651
3743
|
endedAt: z.ZodString;
|
|
2652
3744
|
}, z.core.$loose>;
|
|
2653
3745
|
/**
|
|
2654
|
-
* What the Model Gate's meter recorded for a model call
|
|
3746
|
+
* What the Model Gate's meter recorded for a model call, from the usage ledger: the
|
|
2655
3747
|
* tokens and cost the Runtime counts, beside the `usage` the harness reported. `cachedTokens`
|
|
2656
3748
|
* and `costUsd` are absent when zero.
|
|
2657
3749
|
*/
|
|
@@ -2702,7 +3794,7 @@ export declare const AssistantMessagePayloadSchema: z.ZodObject<{
|
|
|
2702
3794
|
input: z.ZodUnknown;
|
|
2703
3795
|
}, z.core.$loose>>;
|
|
2704
3796
|
}, z.core.$loose>;
|
|
2705
|
-
/** True when a `message.assistant` said nothing: no text and no tool calls
|
|
3797
|
+
/** True when a `message.assistant` said nothing: no text and no tool calls. */
|
|
2706
3798
|
export declare function isEmptyAssistantMessage(payload: {
|
|
2707
3799
|
readonly text?: unknown;
|
|
2708
3800
|
readonly toolCalls?: readonly unknown[];
|
|
@@ -2770,16 +3862,17 @@ export declare const ContextCompactedPayloadSchema: z.ZodObject<{
|
|
|
2770
3862
|
tokensBefore: z.ZodNumber;
|
|
2771
3863
|
tokensAfter: z.ZodNumber;
|
|
2772
3864
|
}, z.core.$loose>;
|
|
2773
|
-
/** How a tool call ended
|
|
3865
|
+
/** How a tool call ended: the tool answered, the Runtime ended it, or a cancel did. */
|
|
2774
3866
|
export declare const TOOL_CALL_STATUSES: readonly ["completed", "failed", "cancelled"];
|
|
2775
3867
|
/**
|
|
2776
|
-
* Where a tool call ran
|
|
2777
|
-
* tool's URL, the session's sandbox,
|
|
2778
|
-
* in its own process, such as our engine's skill, artifact and `tool_search` tools)
|
|
3868
|
+
* Where a tool call ran, its effect's target kind (protocol 15): an MCP server, an HTTP
|
|
3869
|
+
* tool's URL, the session's sandbox, the harness that runs the turn (`harness`: a tool it runs
|
|
3870
|
+
* in its own process, such as our engine's skill, artifact and `tool_search` tools), or the
|
|
3871
|
+
* Runtime itself (`runtime`: `schedule_wake`).
|
|
2779
3872
|
*/
|
|
2780
|
-
export declare const TOOL_CALL_KINDS: readonly ["mcp", "http", "sandbox", "harness"];
|
|
3873
|
+
export declare const TOOL_CALL_KINDS: readonly ["mcp", "http", "sandbox", "harness", "runtime"];
|
|
2781
3874
|
/**
|
|
2782
|
-
* What the Tenant's tool policy did with a tool call
|
|
3875
|
+
* What the Tenant's tool policy did with a tool call, when it did more than allow
|
|
2783
3876
|
* it: `deny` refused it unsent; `ask` held it for a person, who approved it (`approvedBy`, when
|
|
2784
3877
|
* known) or denied it.
|
|
2785
3878
|
*/
|
|
@@ -2792,7 +3885,7 @@ export declare const ToolPolicyFactSchema: z.ZodObject<{
|
|
|
2792
3885
|
approvedBy: z.ZodOptional<z.ZodString>;
|
|
2793
3886
|
}, z.core.$loose>;
|
|
2794
3887
|
/**
|
|
2795
|
-
* `tool.completed`: how one tool call ended, written once per call
|
|
3888
|
+
* `tool.completed`: how one tool call ended, written once per call. `status`
|
|
2796
3889
|
* `completed`: the tool answered, with its output or the tool error it reported (`error`).
|
|
2797
3890
|
* `failed`: the Runtime ended the call (`tool.disabled`, `tool.unavailable`, `tool.denied`, or
|
|
2798
3891
|
* `tool.interrupted` for a call a crash interrupted, which may have run). `cancelled`: the turn
|
|
@@ -2818,6 +3911,7 @@ export declare const ToolCompletedPayloadSchema: z.ZodObject<{
|
|
|
2818
3911
|
harness: "harness";
|
|
2819
3912
|
http: "http";
|
|
2820
3913
|
mcp: "mcp";
|
|
3914
|
+
runtime: "runtime";
|
|
2821
3915
|
sandbox: "sandbox";
|
|
2822
3916
|
}>>;
|
|
2823
3917
|
server: z.ZodOptional<z.ZodString>;
|
|
@@ -2858,6 +3952,10 @@ export declare const TurnCompletedPayloadSchema: z.ZodObject<{
|
|
|
2858
3952
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2859
3953
|
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
2860
3954
|
agentId: z.ZodOptional<z.ZodString>;
|
|
3955
|
+
manifest: z.ZodOptional<z.ZodObject<{
|
|
3956
|
+
name: z.ZodString;
|
|
3957
|
+
version: z.ZodNumber;
|
|
3958
|
+
}, z.core.$loose>>;
|
|
2861
3959
|
totals: z.ZodOptional<z.ZodObject<{
|
|
2862
3960
|
steps: z.ZodNumber;
|
|
2863
3961
|
tokens: z.ZodNumber;
|
|
@@ -2881,6 +3979,10 @@ export declare const TurnFailedPayloadSchema: z.ZodObject<{
|
|
|
2881
3979
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2882
3980
|
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
2883
3981
|
agentId: z.ZodOptional<z.ZodString>;
|
|
3982
|
+
manifest: z.ZodOptional<z.ZodObject<{
|
|
3983
|
+
name: z.ZodString;
|
|
3984
|
+
version: z.ZodNumber;
|
|
3985
|
+
}, z.core.$loose>>;
|
|
2884
3986
|
totals: z.ZodOptional<z.ZodObject<{
|
|
2885
3987
|
steps: z.ZodNumber;
|
|
2886
3988
|
tokens: z.ZodNumber;
|
|
@@ -2896,6 +3998,10 @@ export declare const TurnCancelledPayloadSchema: z.ZodObject<{
|
|
|
2896
3998
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2897
3999
|
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
2898
4000
|
agentId: z.ZodOptional<z.ZodString>;
|
|
4001
|
+
manifest: z.ZodOptional<z.ZodObject<{
|
|
4002
|
+
name: z.ZodString;
|
|
4003
|
+
version: z.ZodNumber;
|
|
4004
|
+
}, z.core.$loose>>;
|
|
2899
4005
|
totals: z.ZodOptional<z.ZodObject<{
|
|
2900
4006
|
steps: z.ZodNumber;
|
|
2901
4007
|
tokens: z.ZodNumber;
|
|
@@ -2903,6 +4009,34 @@ export declare const TurnCancelledPayloadSchema: z.ZodObject<{
|
|
|
2903
4009
|
}, z.core.$loose>>;
|
|
2904
4010
|
reason: z.ZodOptional<z.ZodString>;
|
|
2905
4011
|
}, z.core.$loose>;
|
|
4012
|
+
/**
|
|
4013
|
+
* `message.queued` (protocol 17): a message arrived while the session's turn ran or waited, and
|
|
4014
|
+
* waits in its queue. `position` counts from 1; the message's `command.message` is written when
|
|
4015
|
+
* a turn takes it.
|
|
4016
|
+
*/
|
|
4017
|
+
export declare const MessageQueuedPayloadSchema: z.ZodObject<{
|
|
4018
|
+
queuedMessageId: z.ZodString;
|
|
4019
|
+
position: z.ZodNumber;
|
|
4020
|
+
requestId: z.ZodString;
|
|
4021
|
+
}, z.core.$loose>;
|
|
4022
|
+
/**
|
|
4023
|
+
* `wake.booked`: the session's agent booked its next turn with `schedule_wake`,
|
|
4024
|
+
* at `at`, replacing any booking before. `wake.cancelled`: it cancelled its booking.
|
|
4025
|
+
*/
|
|
4026
|
+
export declare const WakeBookedPayloadSchema: z.ZodObject<{
|
|
4027
|
+
at: z.ZodString;
|
|
4028
|
+
note: z.ZodString;
|
|
4029
|
+
effectId: z.ZodString;
|
|
4030
|
+
replaced: z.ZodBoolean;
|
|
4031
|
+
}, z.core.$loose>;
|
|
4032
|
+
export declare const WakeCancelledPayloadSchema: z.ZodObject<{
|
|
4033
|
+
effectId: z.ZodString;
|
|
4034
|
+
}, z.core.$loose>;
|
|
4035
|
+
/** `queue.taken` (protocol 17): the turn that started with the queued messages, in order. */
|
|
4036
|
+
export declare const QueueTakenPayloadSchema: z.ZodObject<{
|
|
4037
|
+
turnId: z.ZodString;
|
|
4038
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
4039
|
+
}, z.core.$loose>;
|
|
2906
4040
|
/** Lifecycle of an agent used as a tool. `agent.delegationId` is the parent call's invocation. */
|
|
2907
4041
|
export declare const DelegationPayloadSchema: z.ZodObject<{
|
|
2908
4042
|
agent: z.ZodObject<{
|
|
@@ -3019,6 +4153,7 @@ declare const TRANSCRIPT_PAYLOADS: {
|
|
|
3019
4153
|
harness: "harness";
|
|
3020
4154
|
http: "http";
|
|
3021
4155
|
mcp: "mcp";
|
|
4156
|
+
runtime: "runtime";
|
|
3022
4157
|
sandbox: "sandbox";
|
|
3023
4158
|
}>>;
|
|
3024
4159
|
server: z.ZodOptional<z.ZodString>;
|
|
@@ -3059,6 +4194,10 @@ declare const TRANSCRIPT_PAYLOADS: {
|
|
|
3059
4194
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3060
4195
|
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
3061
4196
|
agentId: z.ZodOptional<z.ZodString>;
|
|
4197
|
+
manifest: z.ZodOptional<z.ZodObject<{
|
|
4198
|
+
name: z.ZodString;
|
|
4199
|
+
version: z.ZodNumber;
|
|
4200
|
+
}, z.core.$loose>>;
|
|
3062
4201
|
totals: z.ZodOptional<z.ZodObject<{
|
|
3063
4202
|
steps: z.ZodNumber;
|
|
3064
4203
|
tokens: z.ZodNumber;
|
|
@@ -3081,6 +4220,10 @@ declare const TRANSCRIPT_PAYLOADS: {
|
|
|
3081
4220
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3082
4221
|
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
3083
4222
|
agentId: z.ZodOptional<z.ZodString>;
|
|
4223
|
+
manifest: z.ZodOptional<z.ZodObject<{
|
|
4224
|
+
name: z.ZodString;
|
|
4225
|
+
version: z.ZodNumber;
|
|
4226
|
+
}, z.core.$loose>>;
|
|
3084
4227
|
totals: z.ZodOptional<z.ZodObject<{
|
|
3085
4228
|
steps: z.ZodNumber;
|
|
3086
4229
|
tokens: z.ZodNumber;
|
|
@@ -3096,6 +4239,10 @@ declare const TRANSCRIPT_PAYLOADS: {
|
|
|
3096
4239
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3097
4240
|
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
3098
4241
|
agentId: z.ZodOptional<z.ZodString>;
|
|
4242
|
+
manifest: z.ZodOptional<z.ZodObject<{
|
|
4243
|
+
name: z.ZodString;
|
|
4244
|
+
version: z.ZodNumber;
|
|
4245
|
+
}, z.core.$loose>>;
|
|
3099
4246
|
totals: z.ZodOptional<z.ZodObject<{
|
|
3100
4247
|
steps: z.ZodNumber;
|
|
3101
4248
|
tokens: z.ZodNumber;
|
|
@@ -3138,6 +4285,19 @@ export declare const CommandMessagePayloadSchema: z.ZodObject<{
|
|
|
3138
4285
|
version: z.ZodOptional<z.ZodNumber>;
|
|
3139
4286
|
}, z.core.$strict>], "type">>>;
|
|
3140
4287
|
manifest: z.ZodOptional<z.ZodUnknown>;
|
|
4288
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
4289
|
+
queue: "queue";
|
|
4290
|
+
reject: "reject";
|
|
4291
|
+
}>>;
|
|
4292
|
+
queuedMessageId: z.ZodOptional<z.ZodString>;
|
|
4293
|
+
cause: z.ZodOptional<z.ZodObject<{
|
|
4294
|
+
kind: z.ZodEnum<{
|
|
4295
|
+
self: "self";
|
|
4296
|
+
trigger: "trigger";
|
|
4297
|
+
}>;
|
|
4298
|
+
triggerId: z.ZodString;
|
|
4299
|
+
runId: z.ZodString;
|
|
4300
|
+
}, z.core.$strict>>;
|
|
3141
4301
|
trace: z.ZodOptional<z.ZodObject<{
|
|
3142
4302
|
traceparent: z.ZodString;
|
|
3143
4303
|
tracestate: z.ZodOptional<z.ZodString>;
|
|
@@ -3176,11 +4336,11 @@ export declare const EnvironmentStatePayloadSchema: z.ZodObject<{
|
|
|
3176
4336
|
error: z.ZodOptional<z.ZodString>;
|
|
3177
4337
|
}, z.core.$loose>;
|
|
3178
4338
|
/**
|
|
3179
|
-
* `
|
|
3180
|
-
*
|
|
4339
|
+
* `agent.attached`: the session was opened on its Agent (protocol 16; `environment.attached`
|
|
4340
|
+
* before). The Agent's own stream records the same attachment.
|
|
3181
4341
|
*/
|
|
3182
|
-
export declare const
|
|
3183
|
-
|
|
4342
|
+
export declare const AgentAttachedPayloadSchema: z.ZodObject<{
|
|
4343
|
+
agentId: z.ZodString;
|
|
3184
4344
|
}, z.core.$loose>;
|
|
3185
4345
|
/** `environment.exec`: one sandbox tool call finished. */
|
|
3186
4346
|
export declare const EnvironmentExecPayloadSchema: z.ZodObject<{
|
|
@@ -3199,7 +4359,7 @@ export declare const NodeStartedPayloadSchema: z.ZodObject<{
|
|
|
3199
4359
|
}, z.core.$loose>;
|
|
3200
4360
|
/**
|
|
3201
4361
|
* `node.completed`: a flow's HTTP stage or HTTP verifier ended, or a tool stage the Runtime
|
|
3202
|
-
* refused to run
|
|
4362
|
+
* refused to run, named as its `node.started` names it. `status` reads as
|
|
3203
4363
|
* `tool.completed`'s: `completed` when the stage's server answered (an error answer included),
|
|
3204
4364
|
* `failed` when the Runtime ended it, `cancelled` when a cancel did. `gate` is the Tool Gate's
|
|
3205
4365
|
* own start and end of its last send.
|
|
@@ -3245,7 +4405,7 @@ export declare const LoopVerifiedPayloadSchema: z.ZodObject<{
|
|
|
3245
4405
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
3246
4406
|
}, z.core.$loose>;
|
|
3247
4407
|
/**
|
|
3248
|
-
* `transcript.updated` (internal
|
|
4408
|
+
* `transcript.updated` (internal): the own loop's model-facing transcript after a
|
|
3249
4409
|
* settled segment, as an edit of the previous one: keep its first `keep` entries, then append
|
|
3250
4410
|
* `entries`; the result has `length` entries. `keep` is 0 for a snapshot (after compaction, or
|
|
3251
4411
|
* for a session written before transcripts were recorded). Large edits are split into
|
|
@@ -3271,7 +4431,7 @@ export declare const ArtifactSourceSchema: z.ZodEnum<{
|
|
|
3271
4431
|
}>;
|
|
3272
4432
|
export type ArtifactSource = z.infer<typeof ArtifactSourceSchema>;
|
|
3273
4433
|
/**
|
|
3274
|
-
* What an artifact holds: one file, or a folder
|
|
4434
|
+
* What an artifact holds: one file, or a folder, whose versions are manifests of paths to
|
|
3275
4435
|
* content-addressed files.
|
|
3276
4436
|
*/
|
|
3277
4437
|
export declare const ArtifactKindSchema: z.ZodEnum<{
|
|
@@ -3420,6 +4580,19 @@ export declare const EVENT_CATALOG: {
|
|
|
3420
4580
|
version: z.ZodOptional<z.ZodNumber>;
|
|
3421
4581
|
}, z.core.$strict>], "type">>>;
|
|
3422
4582
|
manifest: z.ZodOptional<z.ZodUnknown>;
|
|
4583
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
4584
|
+
queue: "queue";
|
|
4585
|
+
reject: "reject";
|
|
4586
|
+
}>>;
|
|
4587
|
+
queuedMessageId: z.ZodOptional<z.ZodString>;
|
|
4588
|
+
cause: z.ZodOptional<z.ZodObject<{
|
|
4589
|
+
kind: z.ZodEnum<{
|
|
4590
|
+
self: "self";
|
|
4591
|
+
trigger: "trigger";
|
|
4592
|
+
}>;
|
|
4593
|
+
triggerId: z.ZodString;
|
|
4594
|
+
runId: z.ZodString;
|
|
4595
|
+
}, z.core.$strict>>;
|
|
3423
4596
|
trace: z.ZodOptional<z.ZodObject<{
|
|
3424
4597
|
traceparent: z.ZodString;
|
|
3425
4598
|
tracestate: z.ZodOptional<z.ZodString>;
|
|
@@ -3455,6 +4628,10 @@ export declare const EVENT_CATALOG: {
|
|
|
3455
4628
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3456
4629
|
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
3457
4630
|
agentId: z.ZodOptional<z.ZodString>;
|
|
4631
|
+
manifest: z.ZodOptional<z.ZodObject<{
|
|
4632
|
+
name: z.ZodString;
|
|
4633
|
+
version: z.ZodNumber;
|
|
4634
|
+
}, z.core.$loose>>;
|
|
3458
4635
|
totals: z.ZodOptional<z.ZodObject<{
|
|
3459
4636
|
steps: z.ZodNumber;
|
|
3460
4637
|
tokens: z.ZodNumber;
|
|
@@ -3485,6 +4662,10 @@ export declare const EVENT_CATALOG: {
|
|
|
3485
4662
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3486
4663
|
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
3487
4664
|
agentId: z.ZodOptional<z.ZodString>;
|
|
4665
|
+
manifest: z.ZodOptional<z.ZodObject<{
|
|
4666
|
+
name: z.ZodString;
|
|
4667
|
+
version: z.ZodNumber;
|
|
4668
|
+
}, z.core.$loose>>;
|
|
3488
4669
|
totals: z.ZodOptional<z.ZodObject<{
|
|
3489
4670
|
steps: z.ZodNumber;
|
|
3490
4671
|
tokens: z.ZodNumber;
|
|
@@ -3496,20 +4677,76 @@ export declare const EVENT_CATALOG: {
|
|
|
3496
4677
|
}, z.core.$loose>>;
|
|
3497
4678
|
message: z.ZodOptional<z.ZodString>;
|
|
3498
4679
|
}, z.core.$loose>;
|
|
3499
|
-
readonly source: "loop";
|
|
4680
|
+
readonly source: "loop";
|
|
4681
|
+
readonly version: 1;
|
|
4682
|
+
};
|
|
4683
|
+
readonly "turn.cancelled": {
|
|
4684
|
+
readonly payload: z.ZodObject<{
|
|
4685
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
4686
|
+
pausedMs: z.ZodOptional<z.ZodNumber>;
|
|
4687
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
4688
|
+
manifest: z.ZodOptional<z.ZodObject<{
|
|
4689
|
+
name: z.ZodString;
|
|
4690
|
+
version: z.ZodNumber;
|
|
4691
|
+
}, z.core.$loose>>;
|
|
4692
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
4693
|
+
steps: z.ZodNumber;
|
|
4694
|
+
tokens: z.ZodNumber;
|
|
4695
|
+
costUsd: z.ZodNumber;
|
|
4696
|
+
}, z.core.$loose>>;
|
|
4697
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4698
|
+
}, z.core.$loose>;
|
|
4699
|
+
readonly source: "api";
|
|
4700
|
+
readonly version: 1;
|
|
4701
|
+
};
|
|
4702
|
+
readonly "message.queued": {
|
|
4703
|
+
readonly payload: z.ZodObject<{
|
|
4704
|
+
queuedMessageId: z.ZodString;
|
|
4705
|
+
position: z.ZodNumber;
|
|
4706
|
+
requestId: z.ZodString;
|
|
4707
|
+
}, z.core.$loose>;
|
|
4708
|
+
readonly source: "api";
|
|
4709
|
+
readonly version: 1;
|
|
4710
|
+
};
|
|
4711
|
+
readonly "queue.taken": {
|
|
4712
|
+
readonly payload: z.ZodObject<{
|
|
4713
|
+
turnId: z.ZodString;
|
|
4714
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
4715
|
+
}, z.core.$loose>;
|
|
4716
|
+
readonly source: "api";
|
|
4717
|
+
readonly version: 1;
|
|
4718
|
+
};
|
|
4719
|
+
readonly "wake.booked": {
|
|
4720
|
+
readonly payload: z.ZodObject<{
|
|
4721
|
+
at: z.ZodString;
|
|
4722
|
+
note: z.ZodString;
|
|
4723
|
+
effectId: z.ZodString;
|
|
4724
|
+
replaced: z.ZodBoolean;
|
|
4725
|
+
}, z.core.$loose>;
|
|
4726
|
+
readonly source: "api";
|
|
4727
|
+
readonly version: 1;
|
|
4728
|
+
};
|
|
4729
|
+
readonly "wake.cancelled": {
|
|
4730
|
+
readonly payload: z.ZodObject<{
|
|
4731
|
+
effectId: z.ZodString;
|
|
4732
|
+
}, z.core.$loose>;
|
|
4733
|
+
readonly source: "api";
|
|
3500
4734
|
readonly version: 1;
|
|
3501
4735
|
};
|
|
3502
|
-
readonly "
|
|
4736
|
+
readonly "memory.updated": {
|
|
3503
4737
|
readonly payload: z.ZodObject<{
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
4738
|
+
effectId: z.ZodString;
|
|
4739
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
4740
|
+
path: z.ZodString;
|
|
4741
|
+
operation: z.ZodEnum<{
|
|
4742
|
+
create: "create";
|
|
4743
|
+
delete: "delete";
|
|
4744
|
+
insert: "insert";
|
|
4745
|
+
rename: "rename";
|
|
4746
|
+
str_replace: "str_replace";
|
|
4747
|
+
}>;
|
|
4748
|
+
version: z.ZodNumber;
|
|
4749
|
+
}, z.core.$strict>>;
|
|
3513
4750
|
}, z.core.$loose>;
|
|
3514
4751
|
readonly source: "api";
|
|
3515
4752
|
readonly version: 1;
|
|
@@ -3633,6 +4870,7 @@ export declare const EVENT_CATALOG: {
|
|
|
3633
4870
|
harness: "harness";
|
|
3634
4871
|
http: "http";
|
|
3635
4872
|
mcp: "mcp";
|
|
4873
|
+
runtime: "runtime";
|
|
3636
4874
|
sandbox: "sandbox";
|
|
3637
4875
|
}>>;
|
|
3638
4876
|
server: z.ZodOptional<z.ZodString>;
|
|
@@ -3754,9 +4992,9 @@ export declare const EVENT_CATALOG: {
|
|
|
3754
4992
|
readonly source: "loop";
|
|
3755
4993
|
readonly version: 1;
|
|
3756
4994
|
};
|
|
3757
|
-
readonly "
|
|
4995
|
+
readonly "agent.attached": {
|
|
3758
4996
|
readonly payload: z.ZodObject<{
|
|
3759
|
-
|
|
4997
|
+
agentId: z.ZodString;
|
|
3760
4998
|
}, z.core.$loose>;
|
|
3761
4999
|
readonly source: "api";
|
|
3762
5000
|
readonly version: 1;
|
|
@@ -3937,7 +5175,7 @@ type EventSchemaOf<T extends EventType> = z.ZodObject<typeof eventEnvelope & {
|
|
|
3937
5175
|
/** One schema per event type, keyed by type (the OpenAPI components). */
|
|
3938
5176
|
export declare const EVENT_SCHEMAS: { [T in EventType]: EventSchemaOf<T>; };
|
|
3939
5177
|
/** A session event of a known type, discriminated on `type`. */
|
|
3940
|
-
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.
|
|
5178
|
+
export declare const SessionEventSchema: z.ZodDiscriminatedUnion<[EventSchemaOf<"agent.attached" | "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.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "queue.taken" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "wake.booked" | "wake.cancelled">, ...EventSchemaOf<"agent.attached" | "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.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "queue.taken" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "wake.booked" | "wake.cancelled">[]], "type">;
|
|
3941
5179
|
export type SessionEvent = {
|
|
3942
5180
|
[T in EventType]: z.infer<EventSchemaOf<T>>;
|
|
3943
5181
|
}[EventType];
|
|
@@ -3952,7 +5190,7 @@ export type SessionEventOf<T extends EventType> = Extract<SessionEvent, {
|
|
|
3952
5190
|
*/
|
|
3953
5191
|
export declare function parseSessionEvent(value: unknown): SessionEvent | LiveEvent;
|
|
3954
5192
|
export declare const SessionItemsResponseSchema: z.ZodObject<{
|
|
3955
|
-
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.
|
|
5193
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[EventSchemaOf<"agent.attached" | "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.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "queue.taken" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "wake.booked" | "wake.cancelled">, ...EventSchemaOf<"agent.attached" | "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.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "queue.taken" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "wake.booked" | "wake.cancelled">[]], "type">>;
|
|
3956
5194
|
cursor: z.ZodNullable<z.ZodString>;
|
|
3957
5195
|
}, z.core.$strip>;
|
|
3958
5196
|
export type SessionItemsResponse = {
|
|
@@ -4082,7 +5320,7 @@ export declare const StreamRelayStatusSchema: z.ZodObject<{
|
|
|
4082
5320
|
}, z.core.$strict>;
|
|
4083
5321
|
export type StreamRelayStatus = z.infer<typeof StreamRelayStatusSchema>;
|
|
4084
5322
|
/**
|
|
4085
|
-
* The Tenant's harnesses
|
|
5323
|
+
* The Tenant's harnesses: `in-process` runs one in core's process; `remote` waits for
|
|
4086
5324
|
* harnesses on the Harness API listener. `workspace` says one that serves the Tenant's
|
|
4087
5325
|
* workspaces is connected.
|
|
4088
5326
|
*/
|
|
@@ -4347,8 +5585,8 @@ export type SeedTenantConfigResponse = z.infer<typeof SeedTenantConfigResponseSc
|
|
|
4347
5585
|
export declare const ResetTenantRequestSchema: z.ZodObject<{
|
|
4348
5586
|
requestId: z.ZodString;
|
|
4349
5587
|
scope: z.ZodEnum<{
|
|
5588
|
+
agents: "agents";
|
|
4350
5589
|
all: "all";
|
|
4351
|
-
environments: "environments";
|
|
4352
5590
|
sessions: "sessions";
|
|
4353
5591
|
}>;
|
|
4354
5592
|
activeWork: z.ZodEnum<{
|
|
@@ -4360,15 +5598,15 @@ export type ResetTenantRequest = z.infer<typeof ResetTenantRequestSchema>;
|
|
|
4360
5598
|
/**
|
|
4361
5599
|
* Acting for a subject (Host feature `subject-headers`): what an application principal may
|
|
4362
5600
|
* narrow a request to. `sessions:own` reaches only the subject's own sessions; the others reach
|
|
4363
|
-
* Tenant-wide resources. `
|
|
4364
|
-
*
|
|
4365
|
-
* grants name.
|
|
5601
|
+
* Tenant-wide resources. `agents:write` creates, changes and deletes Agents and writes their
|
|
5602
|
+
* secrets (protocol 16; `environments:write` before); a token caller's reach only the ids its
|
|
5603
|
+
* Agent grants name. `agent-manifests:write` saves and deletes agent manifests.
|
|
4366
5604
|
*/
|
|
4367
|
-
export declare const SUBJECT_SCOPES: readonly ["agents:read", "agents:write", "sessions:own", "
|
|
5605
|
+
export declare const SUBJECT_SCOPES: readonly ["agents:read", "agents:write", "sessions:own", "agent-manifests:write"];
|
|
4368
5606
|
export type SubjectScope = (typeof SUBJECT_SCOPES)[number];
|
|
4369
5607
|
/**
|
|
4370
5608
|
* The owner of a session opened for no person: an MCP server's or HTTP tool's identity header
|
|
4371
|
-
*
|
|
5609
|
+
* names nobody for it. A reserved subject.
|
|
4372
5610
|
*/
|
|
4373
5611
|
export declare const INSTALLATION_OWNER = "installation";
|
|
4374
5612
|
/** A valid subject: 1–200 visible ASCII characters, not reserved by the Runtime. */
|
|
@@ -4386,9 +5624,10 @@ export declare function parseSubjectHeaders(subject: string, scopes: string | un
|
|
|
4386
5624
|
message: string;
|
|
4387
5625
|
};
|
|
4388
5626
|
/**
|
|
4389
|
-
* Scopes a token caller (a trusted issuer's token) may carry: never `
|
|
5627
|
+
* Scopes a token caller (a trusted issuer's token) may carry: never `agent-manifests:write`.
|
|
5628
|
+
* `agents:write` reaches only the Agents its grants name.
|
|
4390
5629
|
*/
|
|
4391
|
-
export declare const TOKEN_SCOPES: readonly ["agents:read", "sessions:own", "
|
|
5630
|
+
export declare const TOKEN_SCOPES: readonly ["agents:read", "sessions:own", "agents:write"];
|
|
4392
5631
|
export type TokenScope = (typeof TOKEN_SCOPES)[number];
|
|
4393
5632
|
/**
|
|
4394
5633
|
* The `iss` of every token a Tenant's Runtime signs itself: capability links, run, host and
|
|
@@ -4481,10 +5720,10 @@ export declare const RevokeSigningKeyRequestSchema: z.ZodObject<{
|
|
|
4481
5720
|
* token scopes, and `studio`, an operator scope no Runtime route requires (Studio
|
|
4482
5721
|
* admits a person who holds it, Tenant-wide).
|
|
4483
5722
|
*/
|
|
4484
|
-
export declare const ISSUER_SCOPES: readonly ["agents:read", "sessions:own", "
|
|
5723
|
+
export declare const ISSUER_SCOPES: readonly ["agents:read", "sessions:own", "agents:write", "studio"];
|
|
4485
5724
|
export type IssuerScope = (typeof ISSUER_SCOPES)[number];
|
|
4486
5725
|
/** Every scope a caller can hold: the subject scopes, and an issuer token's `studio`. */
|
|
4487
|
-
export declare const CALLER_SCOPES: readonly ["agents:read", "agents:write", "sessions:own", "
|
|
5726
|
+
export declare const CALLER_SCOPES: readonly ["agents:read", "agents:write", "sessions:own", "agent-manifests:write", "studio"];
|
|
4488
5727
|
export type CallerScope = (typeof CALLER_SCOPES)[number];
|
|
4489
5728
|
/**
|
|
4490
5729
|
* `GET /v1/me`: who the Runtime takes the caller to be, for any credential.
|
|
@@ -4494,65 +5733,213 @@ export type CallerScope = (typeof CALLER_SCOPES)[number];
|
|
|
4494
5733
|
* `issuer:<name>` (a token from the identity file's issuer `name`).
|
|
4495
5734
|
* - `subject` is the person the request acts for; absent for an application key alone.
|
|
4496
5735
|
* - `scopes`: what the caller holds. An application key alone holds every subject scope.
|
|
4497
|
-
* - `agents`: the
|
|
4498
|
-
*
|
|
4499
|
-
* an application key, alone or acting for a subject, which no grant limits.
|
|
5736
|
+
* - `agents`: the Agents it may reach: `*` for all, else a token caller's Agent grants (ids
|
|
5737
|
+
* and `p/*` prefixes; empty reaches none).
|
|
4500
5738
|
*/
|
|
4501
5739
|
export declare const MeResponseSchema: z.ZodObject<{
|
|
4502
5740
|
subject: z.ZodOptional<z.ZodString>;
|
|
4503
5741
|
scopes: z.ZodArray<z.ZodEnum<{
|
|
5742
|
+
"agent-manifests:write": "agent-manifests:write";
|
|
4504
5743
|
"agents:read": "agents:read";
|
|
4505
5744
|
"agents:write": "agents:write";
|
|
4506
|
-
"environments:write": "environments:write";
|
|
4507
5745
|
"sessions:own": "sessions:own";
|
|
4508
5746
|
studio: "studio";
|
|
4509
5747
|
}>>;
|
|
4510
5748
|
agents: z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>;
|
|
4511
|
-
environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4512
5749
|
via: z.ZodString;
|
|
4513
5750
|
}, z.core.$strict>;
|
|
4514
5751
|
export type MeResponse = z.infer<typeof MeResponseSchema>;
|
|
4515
5752
|
/** True for a serialized web origin: `scheme://host[:port]`, lowercase, no path. */
|
|
4516
5753
|
export declare function isSerializedOrigin(value: string): boolean;
|
|
4517
|
-
/** `GET /v1/agents
|
|
4518
|
-
export declare const AgentDefinitionViewSchema: z.ZodObject<{
|
|
4519
|
-
agentId: z.ZodString;
|
|
4520
|
-
manifest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4521
|
-
manifestHash: z.ZodString;
|
|
4522
|
-
implementationVersion: z.ZodString;
|
|
4523
|
-
}, z.core.$strict>;
|
|
4524
|
-
export type AgentDefinitionView = z.infer<typeof AgentDefinitionViewSchema>;
|
|
5754
|
+
/** `GET /v1/agents`: the Agents the caller reaches. */
|
|
4525
5755
|
export declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
4526
5756
|
agents: z.ZodArray<z.ZodObject<{
|
|
4527
|
-
|
|
4528
|
-
manifest: z.
|
|
5757
|
+
id: z.ZodString;
|
|
5758
|
+
manifest: z.ZodString;
|
|
5759
|
+
resolvedVersion: z.ZodNumber;
|
|
4529
5760
|
manifestHash: z.ZodString;
|
|
4530
|
-
|
|
5761
|
+
tracking: z.ZodEnum<{
|
|
5762
|
+
pinned: "pinned";
|
|
5763
|
+
tracking: "tracking";
|
|
5764
|
+
}>;
|
|
5765
|
+
targetVersion: z.ZodNullable<z.ZodNumber>;
|
|
5766
|
+
waitingFor: z.ZodNullable<z.ZodEnum<{
|
|
5767
|
+
secrets: "secrets";
|
|
5768
|
+
start: "start";
|
|
5769
|
+
}>>;
|
|
5770
|
+
failedVersion: z.ZodNullable<z.ZodNumber>;
|
|
5771
|
+
startCheck: z.ZodNullable<z.ZodObject<{
|
|
5772
|
+
from: z.ZodNumber;
|
|
5773
|
+
startedAt: z.ZodString;
|
|
5774
|
+
}, z.core.$strict>>;
|
|
5775
|
+
kind: z.ZodEnum<{
|
|
5776
|
+
none: "none";
|
|
5777
|
+
pod: "pod";
|
|
5778
|
+
virtual: "virtual";
|
|
5779
|
+
}>;
|
|
5780
|
+
harness: z.ZodString;
|
|
5781
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
5782
|
+
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5783
|
+
state: z.ZodString;
|
|
5784
|
+
attention: z.ZodArray<z.ZodObject<{
|
|
5785
|
+
state: z.ZodEnum<{
|
|
5786
|
+
failing: "failing";
|
|
5787
|
+
input_required: "input_required";
|
|
5788
|
+
paused: "paused";
|
|
5789
|
+
sleeping: "sleeping";
|
|
5790
|
+
working: "working";
|
|
5791
|
+
}>;
|
|
5792
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
5793
|
+
reason: z.ZodString;
|
|
5794
|
+
}, z.core.$strict>>;
|
|
5795
|
+
desired: z.ZodEnum<{
|
|
5796
|
+
off: "off";
|
|
5797
|
+
on: "on";
|
|
5798
|
+
}>;
|
|
5799
|
+
nextWakeAt: z.ZodNullable<z.ZodString>;
|
|
5800
|
+
compute: z.ZodObject<{
|
|
5801
|
+
state: z.ZodString;
|
|
5802
|
+
pod: z.ZodOptional<z.ZodObject<{
|
|
5803
|
+
desired: z.ZodEnum<{
|
|
5804
|
+
deleted: "deleted";
|
|
5805
|
+
running: "running";
|
|
5806
|
+
suspended: "suspended";
|
|
5807
|
+
}>;
|
|
5808
|
+
observed: z.ZodEnum<{
|
|
5809
|
+
creating: "creating";
|
|
5810
|
+
deleting: "deleting";
|
|
5811
|
+
failed: "failed";
|
|
5812
|
+
lost: "lost";
|
|
5813
|
+
running: "running";
|
|
5814
|
+
suspended: "suspended";
|
|
5815
|
+
}>;
|
|
5816
|
+
volumeGeneration: z.ZodNumber;
|
|
5817
|
+
hostEpoch: z.ZodNumber;
|
|
5818
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5819
|
+
imageDigest: z.ZodOptional<z.ZodString>;
|
|
5820
|
+
}, z.core.$strict>>;
|
|
5821
|
+
}, z.core.$strict>;
|
|
5822
|
+
runtime: z.ZodObject<{
|
|
5823
|
+
image: z.ZodOptional<z.ZodString>;
|
|
5824
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
5825
|
+
cpus: z.ZodNumber;
|
|
5826
|
+
memory: z.ZodString;
|
|
5827
|
+
}, z.core.$strict>>;
|
|
5828
|
+
storage: z.ZodOptional<z.ZodString>;
|
|
5829
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
5830
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
5831
|
+
}, z.core.$strict>>;
|
|
5832
|
+
harness: z.ZodString;
|
|
5833
|
+
lifecycle: z.ZodObject<{
|
|
5834
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
5835
|
+
deleteAfter: z.ZodOptional<z.ZodString>;
|
|
5836
|
+
}, z.core.$strict>;
|
|
5837
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5838
|
+
command: z.ZodString;
|
|
5839
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
5840
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
5841
|
+
}, z.core.$strict>>>;
|
|
5842
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
5843
|
+
artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
5844
|
+
version: z.ZodNumber;
|
|
5845
|
+
path: z.ZodString;
|
|
5846
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5847
|
+
path: z.ZodString;
|
|
5848
|
+
files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
|
|
5849
|
+
}, z.core.$strict>]>>>;
|
|
5850
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
5851
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
5852
|
+
fileBytes: z.ZodOptional<z.ZodNumber>;
|
|
5853
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
5854
|
+
}, z.core.$strict>>;
|
|
5855
|
+
skills: z.ZodOptional<z.ZodObject<{
|
|
5856
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
5857
|
+
}, z.core.$strict>>;
|
|
5858
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
5859
|
+
versionBytes: z.ZodOptional<z.ZodNumber>;
|
|
5860
|
+
versionEntries: z.ZodOptional<z.ZodNumber>;
|
|
5861
|
+
}, z.core.$strict>>;
|
|
5862
|
+
}, z.core.$strict>>;
|
|
5863
|
+
secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5864
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
5865
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5866
|
+
type: z.ZodLiteral<"environment_secret">;
|
|
5867
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
5868
|
+
inject: z.ZodOptional<z.ZodObject<{
|
|
5869
|
+
header: z.ZodString;
|
|
5870
|
+
format: z.ZodString;
|
|
5871
|
+
}, z.core.$strict>>;
|
|
5872
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5873
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
5874
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5875
|
+
type: z.ZodLiteral<"environment_variable">;
|
|
5876
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5877
|
+
via: z.ZodOptional<z.ZodString>;
|
|
5878
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
5879
|
+
header: z.ZodString;
|
|
5880
|
+
}, z.core.$strict>>;
|
|
5881
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
5882
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5883
|
+
type: z.ZodLiteral<"bearer">;
|
|
5884
|
+
url: z.ZodString;
|
|
5885
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5886
|
+
via: z.ZodOptional<z.ZodString>;
|
|
5887
|
+
identity: z.ZodOptional<z.ZodObject<{
|
|
5888
|
+
header: z.ZodString;
|
|
5889
|
+
}, z.core.$strict>>;
|
|
5890
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
5891
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5892
|
+
type: z.ZodLiteral<"headers">;
|
|
5893
|
+
url: z.ZodString;
|
|
5894
|
+
}, z.core.$strict>], "type">>>>;
|
|
5895
|
+
}, z.core.$strict>;
|
|
5896
|
+
limits: z.ZodObject<{
|
|
5897
|
+
artifacts: z.ZodObject<{
|
|
5898
|
+
fileBytes: z.ZodNumber;
|
|
5899
|
+
totalBytes: z.ZodNumber;
|
|
5900
|
+
}, z.core.$strict>;
|
|
5901
|
+
skills: z.ZodObject<{
|
|
5902
|
+
totalBytes: z.ZodNumber;
|
|
5903
|
+
}, z.core.$strict>;
|
|
5904
|
+
disk: z.ZodObject<{
|
|
5905
|
+
versionBytes: z.ZodNumber;
|
|
5906
|
+
versionEntries: z.ZodNumber;
|
|
5907
|
+
}, z.core.$strict>;
|
|
5908
|
+
}, z.core.$strict>;
|
|
5909
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
5910
|
+
id: z.ZodString;
|
|
5911
|
+
ownerUserId: z.ZodString;
|
|
5912
|
+
status: z.ZodString;
|
|
5913
|
+
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
5914
|
+
}, z.core.$strict>>;
|
|
5915
|
+
slots: z.ZodArray<z.ZodObject<{
|
|
5916
|
+
name: z.ZodString;
|
|
5917
|
+
type: z.ZodString;
|
|
5918
|
+
required: z.ZodBoolean;
|
|
5919
|
+
set: z.ZodBoolean;
|
|
5920
|
+
}, z.core.$strict>>;
|
|
5921
|
+
disk: z.ZodOptional<z.ZodObject<{
|
|
5922
|
+
latestVersion: z.ZodNullable<z.ZodNumber>;
|
|
5923
|
+
operation: z.ZodNullable<z.ZodObject<{
|
|
5924
|
+
kind: z.ZodEnum<{
|
|
5925
|
+
restore: "restore";
|
|
5926
|
+
seed: "seed";
|
|
5927
|
+
snapshot: "snapshot";
|
|
5928
|
+
}>;
|
|
5929
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
5930
|
+
startedAt: z.ZodString;
|
|
5931
|
+
}, z.core.$strict>>;
|
|
5932
|
+
}, z.core.$strict>>;
|
|
5933
|
+
forkedFrom: z.ZodNullable<z.ZodObject<{
|
|
5934
|
+
agent: z.ZodString;
|
|
5935
|
+
disk: z.ZodNullable<z.ZodNumber>;
|
|
5936
|
+
}, z.core.$strict>>;
|
|
5937
|
+
lastUsedAt: z.ZodString;
|
|
5938
|
+
createdAt: z.ZodString;
|
|
5939
|
+
updatedAt: z.ZodString;
|
|
4531
5940
|
}, z.core.$strict>>;
|
|
4532
5941
|
}, z.core.$strict>;
|
|
4533
5942
|
export type ListAgentsResponse = z.infer<typeof ListAgentsResponseSchema>;
|
|
4534
|
-
/** `GET /v1/agents` with a token caller's credential: the allowed agents' names only. */
|
|
4535
|
-
export declare const PublicAgentSchema: z.ZodObject<{
|
|
4536
|
-
agentId: z.ZodString;
|
|
4537
|
-
name: z.ZodOptional<z.ZodString>;
|
|
4538
|
-
description: z.ZodOptional<z.ZodString>;
|
|
4539
|
-
}, z.core.$strict>;
|
|
4540
|
-
export type PublicAgent = z.infer<typeof PublicAgentSchema>;
|
|
4541
|
-
export declare const ListPublicAgentsResponseSchema: z.ZodObject<{
|
|
4542
|
-
agents: z.ZodArray<z.ZodObject<{
|
|
4543
|
-
agentId: z.ZodString;
|
|
4544
|
-
name: z.ZodOptional<z.ZodString>;
|
|
4545
|
-
description: z.ZodOptional<z.ZodString>;
|
|
4546
|
-
}, z.core.$strict>>;
|
|
4547
|
-
}, z.core.$strict>;
|
|
4548
|
-
export type ListPublicAgentsResponse = z.infer<typeof ListPublicAgentsResponseSchema>;
|
|
4549
|
-
export declare const PutAgentResponseSchema: z.ZodObject<{
|
|
4550
|
-
agentId: z.ZodString;
|
|
4551
|
-
manifestHash: z.ZodString;
|
|
4552
|
-
implementationVersion: z.ZodString;
|
|
4553
|
-
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
4554
|
-
}, z.core.$strict>;
|
|
4555
|
-
export type PutAgentResponse = z.infer<typeof PutAgentResponseSchema>;
|
|
4556
5943
|
export declare const SESSION_STATUSES: readonly ["idle", "runnable", "running", "waiting", "paused", "uncertain", "completed", "failed", "cancelled"];
|
|
4557
5944
|
export declare const SessionSummarySchema: z.ZodObject<{
|
|
4558
5945
|
id: z.ZodString;
|
|
@@ -4597,9 +5984,11 @@ export declare const SessionViewSchema: z.ZodObject<{
|
|
|
4597
5984
|
id: z.ZodString;
|
|
4598
5985
|
agentId: z.ZodString;
|
|
4599
5986
|
ownerUserId: z.ZodString;
|
|
5987
|
+
manifest: z.ZodNullable<z.ZodObject<{
|
|
5988
|
+
name: z.ZodString;
|
|
5989
|
+
version: z.ZodNumber;
|
|
5990
|
+
}, z.core.$strict>>;
|
|
4600
5991
|
manifestHash: z.ZodString;
|
|
4601
|
-
definitionHash: z.ZodOptional<z.ZodString>;
|
|
4602
|
-
implementationVersion: z.ZodString;
|
|
4603
5992
|
status: z.ZodEnum<{
|
|
4604
5993
|
cancelled: "cancelled";
|
|
4605
5994
|
completed: "completed";
|
|
@@ -4612,10 +6001,7 @@ export declare const SessionViewSchema: z.ZodObject<{
|
|
|
4612
6001
|
waiting: "waiting";
|
|
4613
6002
|
}>;
|
|
4614
6003
|
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
4615
|
-
|
|
4616
|
-
id: z.ZodString;
|
|
4617
|
-
version: z.ZodNumber;
|
|
4618
|
-
}, z.core.$strict>>;
|
|
6004
|
+
queuedMessages: z.ZodNumber;
|
|
4619
6005
|
harness: z.ZodString;
|
|
4620
6006
|
closedReason: z.ZodOptional<z.ZodString>;
|
|
4621
6007
|
mcpSnapshot: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -4871,9 +6257,12 @@ export declare const TenantSandboxViewSchema: z.ZodObject<{
|
|
|
4871
6257
|
}, z.core.$strip>>>;
|
|
4872
6258
|
}, z.core.$strict>;
|
|
4873
6259
|
export type TenantSandboxView = z.infer<typeof TenantSandboxViewSchema>;
|
|
4874
|
-
/**
|
|
6260
|
+
/**
|
|
6261
|
+
* What a usage total or a budget covers: the whole Tenant, the Agents made from one agent manifest
|
|
6262
|
+
* (`manifest`, by its name; scope `agent` keyed a definition id before protocol 16), or one turn.
|
|
6263
|
+
*/
|
|
4875
6264
|
export declare const ModelUsageScopeSchema: z.ZodEnum<{
|
|
4876
|
-
|
|
6265
|
+
manifest: "manifest";
|
|
4877
6266
|
tenant: "tenant";
|
|
4878
6267
|
turn: "turn";
|
|
4879
6268
|
}>;
|
|
@@ -4881,7 +6270,7 @@ export type ModelUsageScope = z.infer<typeof ModelUsageScopeSchema>;
|
|
|
4881
6270
|
/** `GET /v1/tenant/usage`: which rows of the model usage ledger to total. */
|
|
4882
6271
|
export declare const ModelUsageQuerySchema: z.ZodObject<{
|
|
4883
6272
|
scope: z.ZodDefault<z.ZodEnum<{
|
|
4884
|
-
|
|
6273
|
+
manifest: "manifest";
|
|
4885
6274
|
tenant: "tenant";
|
|
4886
6275
|
turn: "turn";
|
|
4887
6276
|
}>>;
|
|
@@ -4896,7 +6285,7 @@ export type ModelUsageQuery = z.infer<typeof ModelUsageQuerySchema>;
|
|
|
4896
6285
|
/** The model calls the ledger recorded for one scope and period, and what they cost. */
|
|
4897
6286
|
export declare const ModelUsageTotalsSchema: z.ZodObject<{
|
|
4898
6287
|
scope: z.ZodEnum<{
|
|
4899
|
-
|
|
6288
|
+
manifest: "manifest";
|
|
4900
6289
|
tenant: "tenant";
|
|
4901
6290
|
turn: "turn";
|
|
4902
6291
|
}>;
|
|
@@ -4919,7 +6308,7 @@ export type ModelUsageTotals = z.infer<typeof ModelUsageTotalsSchema>;
|
|
|
4919
6308
|
*/
|
|
4920
6309
|
export declare const ModelBudgetSchema: z.ZodObject<{
|
|
4921
6310
|
scope: z.ZodEnum<{
|
|
4922
|
-
|
|
6311
|
+
manifest: "manifest";
|
|
4923
6312
|
tenant: "tenant";
|
|
4924
6313
|
turn: "turn";
|
|
4925
6314
|
}>;
|
|
@@ -4937,7 +6326,7 @@ export declare const PutModelBudgetsRequestSchema: z.ZodObject<{
|
|
|
4937
6326
|
requestId: z.ZodOptional<z.ZodString>;
|
|
4938
6327
|
budgets: z.ZodArray<z.ZodObject<{
|
|
4939
6328
|
scope: z.ZodEnum<{
|
|
4940
|
-
|
|
6329
|
+
manifest: "manifest";
|
|
4941
6330
|
tenant: "tenant";
|
|
4942
6331
|
turn: "turn";
|
|
4943
6332
|
}>;
|
|
@@ -4954,7 +6343,7 @@ export type PutModelBudgetsRequest = z.infer<typeof PutModelBudgetsRequestSchema
|
|
|
4954
6343
|
export declare const ModelBudgetsSchema: z.ZodObject<{
|
|
4955
6344
|
budgets: z.ZodArray<z.ZodObject<{
|
|
4956
6345
|
scope: z.ZodEnum<{
|
|
4957
|
-
|
|
6346
|
+
manifest: "manifest";
|
|
4958
6347
|
tenant: "tenant";
|
|
4959
6348
|
turn: "turn";
|
|
4960
6349
|
}>;
|
|
@@ -4968,7 +6357,7 @@ export declare const ModelBudgetsSchema: z.ZodObject<{
|
|
|
4968
6357
|
}, z.core.$strict>>;
|
|
4969
6358
|
}, z.core.$strict>;
|
|
4970
6359
|
export type ModelBudgets = z.infer<typeof ModelBudgetsSchema>;
|
|
4971
|
-
/** What a tool policy rule does to a call it matches
|
|
6360
|
+
/** What a tool policy rule does to a call it matches. */
|
|
4972
6361
|
export declare const TOOL_POLICY_EFFECTS: readonly ["allow", "ask", "deny"];
|
|
4973
6362
|
/** A test of one field of a tool call's input; every test it sets must hold. */
|
|
4974
6363
|
export declare const ToolInputConditionSchema: z.ZodObject<{
|
|
@@ -4982,12 +6371,13 @@ export declare const ToolInputConditionSchema: z.ZodObject<{
|
|
|
4982
6371
|
}, z.core.$strict>;
|
|
4983
6372
|
export type ToolInputCondition = z.infer<typeof ToolInputConditionSchema>;
|
|
4984
6373
|
/**
|
|
4985
|
-
* One rule of the Tenant's tool policy
|
|
4986
|
-
*
|
|
4987
|
-
*
|
|
4988
|
-
*
|
|
4989
|
-
*
|
|
4990
|
-
*
|
|
6374
|
+
* One rule of the Tenant's tool policy, applied at the Tool Gate to every MCP and HTTP tool call
|
|
6375
|
+
* of every harness. A rule matches a call when every selector it sets matches: `tool` (the tool's
|
|
6376
|
+
* identity: an MCP tool's own name on its server, or an HTTP tool's declared name; never the name
|
|
6377
|
+
* a harness gave the model; `*` for any run of characters), `server` (an MCP server's name),
|
|
6378
|
+
* `kind`, `agent` (the agent that calls it: the agent manifest's name, or the id of an agent used
|
|
6379
|
+
* as a tool or of a flow's agent; never an Agent's id) and `when` (fields of the input, by dotted
|
|
6380
|
+
* path). The strictest matching rule decides: `deny` refuses the call before it is sent,
|
|
4991
6381
|
* `ask` holds it until a person approves it on the session (`approve`), `allow` runs it. A call no
|
|
4992
6382
|
* rule matches runs. Sandbox tools never cross the gate; their network side is egress policy.
|
|
4993
6383
|
*
|
|
@@ -5097,19 +6487,18 @@ export type StreamClosedFrame = z.infer<typeof StreamClosedFrameSchema>;
|
|
|
5097
6487
|
* (another turn is running) or `runtime_error` (the Runtime failed). Never an HTTP body's code.
|
|
5098
6488
|
*/
|
|
5099
6489
|
export declare const AgUiRunErrorCodeSchema: z.ZodEnum<{
|
|
6490
|
+
agent_busy: "agent_busy";
|
|
6491
|
+
agent_fixed_field: "agent_fixed_field";
|
|
6492
|
+
agent_lost: "agent_lost";
|
|
6493
|
+
agent_not_granted: "agent_not_granted";
|
|
6494
|
+
agent_owner_mismatch: "agent_owner_mismatch";
|
|
6495
|
+
agent_unavailable: "agent_unavailable";
|
|
5100
6496
|
connection_missing: "connection_missing";
|
|
5101
6497
|
credential_conflict: "credential_conflict";
|
|
5102
6498
|
credential_invalid: "credential_invalid";
|
|
5103
6499
|
credential_rejected: "credential_rejected";
|
|
5104
6500
|
credential_required: "credential_required";
|
|
5105
6501
|
definition_files_missing: "definition_files_missing";
|
|
5106
|
-
environment_busy: "environment_busy";
|
|
5107
|
-
environment_immutable: "environment_immutable";
|
|
5108
|
-
environment_lost: "environment_lost";
|
|
5109
|
-
environment_not_granted: "environment_not_granted";
|
|
5110
|
-
environment_owner_mismatch: "environment_owner_mismatch";
|
|
5111
|
-
environment_unavailable: "environment_unavailable";
|
|
5112
|
-
environment_unsuitable: "environment_unsuitable";
|
|
5113
6502
|
harness_mismatch: "harness_mismatch";
|
|
5114
6503
|
host_rejected: "host_rejected";
|
|
5115
6504
|
incompatible_host: "incompatible_host";
|
|
@@ -5120,12 +6509,15 @@ export declare const AgUiRunErrorCodeSchema: z.ZodEnum<{
|
|
|
5120
6509
|
limit_exceeded: "limit_exceeded";
|
|
5121
6510
|
manifest_changed: "manifest_changed";
|
|
5122
6511
|
manifest_in_use: "manifest_in_use";
|
|
6512
|
+
manifest_inconsistent: "manifest_inconsistent";
|
|
5123
6513
|
manifest_not_found: "manifest_not_found";
|
|
5124
6514
|
mcp_preview_failed: "mcp_preview_failed";
|
|
6515
|
+
memory_conflict: "memory_conflict";
|
|
5125
6516
|
not_found: "not_found";
|
|
5126
6517
|
origin_rejected: "origin_rejected";
|
|
5127
6518
|
placement_refused: "placement_refused";
|
|
5128
6519
|
protocol_unsupported: "protocol_unsupported";
|
|
6520
|
+
queue_full: "queue_full";
|
|
5129
6521
|
request_rejected: "request_rejected";
|
|
5130
6522
|
runtime_error: "runtime_error";
|
|
5131
6523
|
scope_required: "scope_required";
|
|
@@ -5135,6 +6527,8 @@ export declare const AgUiRunErrorCodeSchema: z.ZodEnum<{
|
|
|
5135
6527
|
subject_invalid: "subject_invalid";
|
|
5136
6528
|
subject_required: "subject_required";
|
|
5137
6529
|
token_expired: "token_expired";
|
|
6530
|
+
trigger_expired: "trigger_expired";
|
|
6531
|
+
trigger_paused: "trigger_paused";
|
|
5138
6532
|
unsupported_media_type: "unsupported_media_type";
|
|
5139
6533
|
}>;
|
|
5140
6534
|
export type AgUiRunErrorCode = z.infer<typeof AgUiRunErrorCodeSchema>;
|
|
@@ -5280,7 +6674,7 @@ export declare const ARTIFACT_TOTAL_BYTES_DEFAULT: number;
|
|
|
5280
6674
|
/**
|
|
5281
6675
|
* The longest artifact name, in characters: the longest file name a workspace's file system takes
|
|
5282
6676
|
* (`NAME_MAX`), since a name becomes one when the artifact is copied into a sandbox or downloaded.
|
|
5283
|
-
* A standard's constant, not a limit
|
|
6677
|
+
* A standard's constant, not a limit.
|
|
5284
6678
|
*/
|
|
5285
6679
|
export declare const ARTIFACT_NAME_MAX = 255;
|
|
5286
6680
|
/**
|
|
@@ -5313,7 +6707,7 @@ export declare const ArtifactVersionViewSchema: z.ZodObject<{
|
|
|
5313
6707
|
export type ArtifactVersionView = z.infer<typeof ArtifactVersionViewSchema>;
|
|
5314
6708
|
/**
|
|
5315
6709
|
* An artifact: an id, a name and numbered versions, its bytes in the Object store. A file's
|
|
5316
|
-
* version is its bytes; a folder's
|
|
6710
|
+
* version is its bytes; a folder's is a manifest of paths to content-addressed files.
|
|
5317
6711
|
*/
|
|
5318
6712
|
export declare const ArtifactViewSchema: z.ZodObject<{
|
|
5319
6713
|
artifactId: z.ZodString;
|
|
@@ -5324,7 +6718,7 @@ export declare const ArtifactViewSchema: z.ZodObject<{
|
|
|
5324
6718
|
name: z.ZodString;
|
|
5325
6719
|
contentType: z.ZodString;
|
|
5326
6720
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
5327
|
-
|
|
6721
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
5328
6722
|
latestVersion: z.ZodNumber;
|
|
5329
6723
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5330
6724
|
createdAt: z.ZodString;
|
|
@@ -5354,7 +6748,7 @@ export declare const ListArtifactsResponseSchema: z.ZodObject<{
|
|
|
5354
6748
|
name: z.ZodString;
|
|
5355
6749
|
contentType: z.ZodString;
|
|
5356
6750
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
5357
|
-
|
|
6751
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
5358
6752
|
latestVersion: z.ZodNumber;
|
|
5359
6753
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5360
6754
|
createdAt: z.ZodString;
|
|
@@ -5385,7 +6779,7 @@ export declare const ArtifactListItemSchema: z.ZodObject<{
|
|
|
5385
6779
|
name: z.ZodString;
|
|
5386
6780
|
contentType: z.ZodString;
|
|
5387
6781
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
5388
|
-
|
|
6782
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
5389
6783
|
latestVersion: z.ZodNumber;
|
|
5390
6784
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5391
6785
|
createdAt: z.ZodString;
|
|
@@ -5402,7 +6796,7 @@ export declare const ArtifactPageSchema: z.ZodObject<{
|
|
|
5402
6796
|
name: z.ZodString;
|
|
5403
6797
|
contentType: z.ZodString;
|
|
5404
6798
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
5405
|
-
|
|
6799
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
5406
6800
|
latestVersion: z.ZodNumber;
|
|
5407
6801
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5408
6802
|
createdAt: z.ZodString;
|
|
@@ -5422,7 +6816,7 @@ export declare const UploadArtifactResponseSchema: z.ZodObject<{
|
|
|
5422
6816
|
name: z.ZodString;
|
|
5423
6817
|
contentType: z.ZodString;
|
|
5424
6818
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
5425
|
-
|
|
6819
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
5426
6820
|
latestVersion: z.ZodNumber;
|
|
5427
6821
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5428
6822
|
createdAt: z.ZodString;
|
|
@@ -5457,7 +6851,7 @@ export declare const UploadArtifactResponseSchema: z.ZodObject<{
|
|
|
5457
6851
|
}, z.core.$strict>;
|
|
5458
6852
|
export type UploadArtifactResponse = z.infer<typeof UploadArtifactResponseSchema>;
|
|
5459
6853
|
/**
|
|
5460
|
-
* `PUT /v1/files/sha256:{hex}`: a definition file the Runtime holds
|
|
6854
|
+
* `PUT /v1/files/sha256:{hex}`: a definition file the Runtime holds, named by the
|
|
5461
6855
|
* SHA-256 of its bytes. `201` stored it, `200` already had it.
|
|
5462
6856
|
*/
|
|
5463
6857
|
export declare const DefinitionFileViewSchema: z.ZodObject<{
|
|
@@ -5492,7 +6886,7 @@ export declare const FOLDER_CONTENT_TYPE = "application/vnd.nylorun.folder+json"
|
|
|
5492
6886
|
/** The manifest format a folder version is stored as. */
|
|
5493
6887
|
export declare const FOLDER_MANIFEST_FORMAT = "nylorun.folder.v1";
|
|
5494
6888
|
/**
|
|
5495
|
-
* The manifest format of an Environment's disk versions
|
|
6889
|
+
* The manifest format of an Environment's disk versions: v1's entries, plus file
|
|
5496
6890
|
* modes and modification times, symbolic links and empty directories. Readers accept both.
|
|
5497
6891
|
*/
|
|
5498
6892
|
export declare const FOLDER_MANIFEST_FORMAT_V2 = "nylorun.folder.v2";
|
|
@@ -5520,7 +6914,7 @@ export declare const FolderEntrySchema: z.ZodObject<{
|
|
|
5520
6914
|
export type FolderEntry = z.infer<typeof FolderEntrySchema>;
|
|
5521
6915
|
/**
|
|
5522
6916
|
* A folder version as stored: the files, sorted by path, each naming its content-addressed
|
|
5523
|
-
* bytes by SHA-256. The one manifest format for folders, reused by
|
|
6917
|
+
* bytes by SHA-256. The one manifest format for folders, reused by disk snapshots.
|
|
5524
6918
|
*/
|
|
5525
6919
|
export declare const FolderManifestSchema: z.ZodObject<{
|
|
5526
6920
|
format: z.ZodEnum<{
|
|
@@ -5673,7 +7067,7 @@ export declare const TenantSkillsViewSchema: z.ZodObject<{
|
|
|
5673
7067
|
}, z.core.$strict>;
|
|
5674
7068
|
export type TenantSkillsView = z.infer<typeof TenantSkillsViewSchema>;
|
|
5675
7069
|
/**
|
|
5676
|
-
* A Tenant's Runtime limits
|
|
7070
|
+
* A Tenant's Runtime limits, stored as Tenant setting `limits.config`: what
|
|
5677
7071
|
* one record entry, model call, model file, tool answer, harness state and Harness API chunk may
|
|
5678
7072
|
* hold. Each limit left out is its default (`RUNTIME_LIMIT_DEFAULTS`); none may pass its ceiling
|
|
5679
7073
|
* (`RUNTIME_LIMIT_CEILINGS`, a `400` naming it).
|
|
@@ -5732,6 +7126,21 @@ export declare const TenantLimitsConfigSchema: z.ZodObject<{
|
|
|
5732
7126
|
toolRuleFieldChars: z.ZodOptional<z.ZodNumber>;
|
|
5733
7127
|
toolRuleTextChars: z.ZodOptional<z.ZodNumber>;
|
|
5734
7128
|
modelBudgets: z.ZodOptional<z.ZodNumber>;
|
|
7129
|
+
triggersPerAgent: z.ZodOptional<z.ZodNumber>;
|
|
7130
|
+
triggerMinIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
7131
|
+
triggerRunsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
7132
|
+
triggerJitterPercent: z.ZodOptional<z.ZodNumber>;
|
|
7133
|
+
triggerJitterMaxMs: z.ZodOptional<z.ZodNumber>;
|
|
7134
|
+
triggerPromptChars: z.ZodOptional<z.ZodNumber>;
|
|
7135
|
+
triggerRunRetentionMs: z.ZodOptional<z.ZodNumber>;
|
|
7136
|
+
webhookBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
7137
|
+
wakeMaxAheadMs: z.ZodOptional<z.ZodNumber>;
|
|
7138
|
+
wakeNoteChars: z.ZodOptional<z.ZodNumber>;
|
|
7139
|
+
memoryBytes: z.ZodOptional<z.ZodNumber>;
|
|
7140
|
+
memoriesPerAgent: z.ZodOptional<z.ZodNumber>;
|
|
7141
|
+
memoryIndexLines: z.ZodOptional<z.ZodNumber>;
|
|
7142
|
+
memoryIndexBytes: z.ZodOptional<z.ZodNumber>;
|
|
7143
|
+
sessionQueuedMessages: z.ZodOptional<z.ZodNumber>;
|
|
5735
7144
|
flowConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
5736
7145
|
flowMapItems: z.ZodOptional<z.ZodNumber>;
|
|
5737
7146
|
flowLoopIterations: z.ZodOptional<z.ZodNumber>;
|
|
@@ -5793,6 +7202,21 @@ export declare const PutTenantLimitsRequestSchema: z.ZodObject<{
|
|
|
5793
7202
|
toolRuleFieldChars: z.ZodOptional<z.ZodNumber>;
|
|
5794
7203
|
toolRuleTextChars: z.ZodOptional<z.ZodNumber>;
|
|
5795
7204
|
modelBudgets: z.ZodOptional<z.ZodNumber>;
|
|
7205
|
+
triggersPerAgent: z.ZodOptional<z.ZodNumber>;
|
|
7206
|
+
triggerMinIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
7207
|
+
triggerRunsPerHour: z.ZodOptional<z.ZodNumber>;
|
|
7208
|
+
triggerJitterPercent: z.ZodOptional<z.ZodNumber>;
|
|
7209
|
+
triggerJitterMaxMs: z.ZodOptional<z.ZodNumber>;
|
|
7210
|
+
triggerPromptChars: z.ZodOptional<z.ZodNumber>;
|
|
7211
|
+
triggerRunRetentionMs: z.ZodOptional<z.ZodNumber>;
|
|
7212
|
+
webhookBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
7213
|
+
wakeMaxAheadMs: z.ZodOptional<z.ZodNumber>;
|
|
7214
|
+
wakeNoteChars: z.ZodOptional<z.ZodNumber>;
|
|
7215
|
+
memoryBytes: z.ZodOptional<z.ZodNumber>;
|
|
7216
|
+
memoriesPerAgent: z.ZodOptional<z.ZodNumber>;
|
|
7217
|
+
memoryIndexLines: z.ZodOptional<z.ZodNumber>;
|
|
7218
|
+
memoryIndexBytes: z.ZodOptional<z.ZodNumber>;
|
|
7219
|
+
sessionQueuedMessages: z.ZodOptional<z.ZodNumber>;
|
|
5796
7220
|
flowConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
5797
7221
|
flowMapItems: z.ZodOptional<z.ZodNumber>;
|
|
5798
7222
|
flowLoopIterations: z.ZodOptional<z.ZodNumber>;
|
|
@@ -5855,6 +7279,21 @@ export declare const TenantLimitsViewSchema: z.ZodObject<{
|
|
|
5855
7279
|
toolRuleFieldChars: z.ZodNumber;
|
|
5856
7280
|
toolRuleTextChars: z.ZodNumber;
|
|
5857
7281
|
modelBudgets: z.ZodNumber;
|
|
7282
|
+
triggersPerAgent: z.ZodNumber;
|
|
7283
|
+
triggerMinIntervalMs: z.ZodNumber;
|
|
7284
|
+
triggerRunsPerHour: z.ZodNumber;
|
|
7285
|
+
triggerJitterPercent: z.ZodNumber;
|
|
7286
|
+
triggerJitterMaxMs: z.ZodNumber;
|
|
7287
|
+
triggerPromptChars: z.ZodNumber;
|
|
7288
|
+
triggerRunRetentionMs: z.ZodNumber;
|
|
7289
|
+
webhookBodyBytes: z.ZodNumber;
|
|
7290
|
+
wakeMaxAheadMs: z.ZodNumber;
|
|
7291
|
+
wakeNoteChars: z.ZodNumber;
|
|
7292
|
+
memoryBytes: z.ZodNumber;
|
|
7293
|
+
memoriesPerAgent: z.ZodNumber;
|
|
7294
|
+
memoryIndexLines: z.ZodNumber;
|
|
7295
|
+
memoryIndexBytes: z.ZodNumber;
|
|
7296
|
+
sessionQueuedMessages: z.ZodNumber;
|
|
5858
7297
|
flowConcurrency: z.ZodNumber;
|
|
5859
7298
|
flowMapItems: z.ZodNumber;
|
|
5860
7299
|
flowLoopIterations: z.ZodNumber;
|
|
@@ -5879,7 +7318,6 @@ export declare const SessionListItemSchema: z.ZodObject<{
|
|
|
5879
7318
|
}>;
|
|
5880
7319
|
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
5881
7320
|
lastTurnId: z.ZodNullable<z.ZodString>;
|
|
5882
|
-
environmentId: z.ZodNullable<z.ZodString>;
|
|
5883
7321
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
5884
7322
|
lastEventAt: z.ZodNullable<z.ZodString>;
|
|
5885
7323
|
}, z.core.$strict>;
|
|
@@ -5902,7 +7340,6 @@ export declare const SessionPageSchema: z.ZodObject<{
|
|
|
5902
7340
|
}>;
|
|
5903
7341
|
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
5904
7342
|
lastTurnId: z.ZodNullable<z.ZodString>;
|
|
5905
|
-
environmentId: z.ZodNullable<z.ZodString>;
|
|
5906
7343
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
5907
7344
|
lastEventAt: z.ZodNullable<z.ZodString>;
|
|
5908
7345
|
}, z.core.$strict>>;
|
|
@@ -5912,17 +7349,31 @@ export type SessionPage = z.infer<typeof SessionPageSchema>;
|
|
|
5912
7349
|
export declare const SessionManifestViewSchema: z.ZodObject<{
|
|
5913
7350
|
sessionId: z.ZodString;
|
|
5914
7351
|
agentId: z.ZodString;
|
|
7352
|
+
definition: z.ZodNullable<z.ZodObject<{
|
|
7353
|
+
name: z.ZodString;
|
|
7354
|
+
version: z.ZodNumber;
|
|
7355
|
+
}, z.core.$strict>>;
|
|
5915
7356
|
manifestHash: z.ZodString;
|
|
5916
|
-
implementationVersion: z.ZodString;
|
|
5917
7357
|
manifest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5918
7358
|
}, z.core.$strict>;
|
|
5919
7359
|
export type SessionManifestView = z.infer<typeof SessionManifestViewSchema>;
|
|
5920
7360
|
export declare const HistoryPageSchema: z.ZodObject<{
|
|
5921
|
-
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.
|
|
7361
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[EventSchemaOf<"agent.attached" | "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.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "queue.taken" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "wake.booked" | "wake.cancelled">, ...EventSchemaOf<"agent.attached" | "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.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "memory.updated" | "message.assistant" | "message.queued" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "queue.taken" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused" | "wake.booked" | "wake.cancelled">[]], "type">>;
|
|
5922
7362
|
cursor: z.ZodNullable<z.ZodString>;
|
|
5923
7363
|
tail: z.ZodBoolean;
|
|
5924
7364
|
}, z.core.$strip>;
|
|
5925
7365
|
export type HistoryPage = z.infer<typeof HistoryPageSchema>;
|
|
7366
|
+
/**
|
|
7367
|
+
* A cost by the token kind it paid for, at the prices in force when the call was made:
|
|
7368
|
+
* uncached input, input read from the provider's cache, input written to it, and output.
|
|
7369
|
+
*/
|
|
7370
|
+
export declare const CostSplitSchema: z.ZodObject<{
|
|
7371
|
+
input: z.ZodNumber;
|
|
7372
|
+
cacheRead: z.ZodNumber;
|
|
7373
|
+
cacheWrite: z.ZodNumber;
|
|
7374
|
+
output: z.ZodNumber;
|
|
7375
|
+
}, z.core.$strict>;
|
|
7376
|
+
export type CostSplit = z.infer<typeof CostSplitSchema>;
|
|
5926
7377
|
export declare const SessionUsageTotalsSchema: z.ZodObject<{
|
|
5927
7378
|
inputTokens: z.ZodNumber;
|
|
5928
7379
|
outputTokens: z.ZodNumber;
|
|
@@ -5939,6 +7390,15 @@ export declare const SessionUsageTotalsSchema: z.ZodObject<{
|
|
|
5939
7390
|
unpricedCalls: z.ZodNumber;
|
|
5940
7391
|
unreportedCalls: z.ZodNumber;
|
|
5941
7392
|
unknownQualityCalls: z.ZodNumber;
|
|
7393
|
+
costSplit: z.ZodObject<{
|
|
7394
|
+
input: z.ZodNumber;
|
|
7395
|
+
cacheRead: z.ZodNumber;
|
|
7396
|
+
cacheWrite: z.ZodNumber;
|
|
7397
|
+
output: z.ZodNumber;
|
|
7398
|
+
}, z.core.$strict>;
|
|
7399
|
+
splitCalls: z.ZodNumber;
|
|
7400
|
+
modelTimeMs: z.ZodNumber;
|
|
7401
|
+
timedCalls: z.ZodNumber;
|
|
5942
7402
|
}, z.core.$strict>;
|
|
5943
7403
|
export type SessionUsageTotals = z.infer<typeof SessionUsageTotalsSchema>;
|
|
5944
7404
|
export declare const ModelCallSchema: z.ZodObject<{
|
|
@@ -5946,10 +7406,12 @@ export declare const ModelCallSchema: z.ZodObject<{
|
|
|
5946
7406
|
effectId: z.ZodString;
|
|
5947
7407
|
sessionId: z.ZodString;
|
|
5948
7408
|
turnId: z.ZodString;
|
|
5949
|
-
|
|
7409
|
+
manifestName: z.ZodString;
|
|
5950
7410
|
provider: z.ZodNullable<z.ZodString>;
|
|
5951
7411
|
model: z.ZodNullable<z.ZodString>;
|
|
5952
7412
|
at: z.ZodString;
|
|
7413
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
7414
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
5953
7415
|
outcome: z.ZodEnum<{
|
|
5954
7416
|
completed: "completed";
|
|
5955
7417
|
failed: "failed";
|
|
@@ -5965,6 +7427,12 @@ export declare const ModelCallSchema: z.ZodObject<{
|
|
|
5965
7427
|
duplicate: z.ZodBoolean;
|
|
5966
7428
|
tokensReported: z.ZodNullable<z.ZodBoolean>;
|
|
5967
7429
|
costKnown: z.ZodNullable<z.ZodBoolean>;
|
|
7430
|
+
costSplit: z.ZodNullable<z.ZodObject<{
|
|
7431
|
+
input: z.ZodNumber;
|
|
7432
|
+
cacheRead: z.ZodNumber;
|
|
7433
|
+
cacheWrite: z.ZodNumber;
|
|
7434
|
+
output: z.ZodNumber;
|
|
7435
|
+
}, z.core.$strict>>;
|
|
5968
7436
|
}, z.core.$strict>>;
|
|
5969
7437
|
}, z.core.$strict>;
|
|
5970
7438
|
export type ModelCall = z.infer<typeof ModelCallSchema>;
|
|
@@ -5974,10 +7442,12 @@ export declare const ModelCallsPageSchema: z.ZodObject<{
|
|
|
5974
7442
|
effectId: z.ZodString;
|
|
5975
7443
|
sessionId: z.ZodString;
|
|
5976
7444
|
turnId: z.ZodString;
|
|
5977
|
-
|
|
7445
|
+
manifestName: z.ZodString;
|
|
5978
7446
|
provider: z.ZodNullable<z.ZodString>;
|
|
5979
7447
|
model: z.ZodNullable<z.ZodString>;
|
|
5980
7448
|
at: z.ZodString;
|
|
7449
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
7450
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
5981
7451
|
outcome: z.ZodEnum<{
|
|
5982
7452
|
completed: "completed";
|
|
5983
7453
|
failed: "failed";
|
|
@@ -5993,6 +7463,12 @@ export declare const ModelCallsPageSchema: z.ZodObject<{
|
|
|
5993
7463
|
duplicate: z.ZodBoolean;
|
|
5994
7464
|
tokensReported: z.ZodNullable<z.ZodBoolean>;
|
|
5995
7465
|
costKnown: z.ZodNullable<z.ZodBoolean>;
|
|
7466
|
+
costSplit: z.ZodNullable<z.ZodObject<{
|
|
7467
|
+
input: z.ZodNumber;
|
|
7468
|
+
cacheRead: z.ZodNumber;
|
|
7469
|
+
cacheWrite: z.ZodNumber;
|
|
7470
|
+
output: z.ZodNumber;
|
|
7471
|
+
}, z.core.$strict>>;
|
|
5996
7472
|
}, z.core.$strict>>;
|
|
5997
7473
|
}, z.core.$strict>>;
|
|
5998
7474
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
@@ -6005,10 +7481,12 @@ export declare const ModelCallExportPageSchema: z.ZodObject<{
|
|
|
6005
7481
|
effectId: z.ZodString;
|
|
6006
7482
|
sessionId: z.ZodString;
|
|
6007
7483
|
turnId: z.ZodString;
|
|
6008
|
-
|
|
7484
|
+
manifestName: z.ZodString;
|
|
6009
7485
|
provider: z.ZodNullable<z.ZodString>;
|
|
6010
7486
|
model: z.ZodNullable<z.ZodString>;
|
|
6011
7487
|
at: z.ZodString;
|
|
7488
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
7489
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
6012
7490
|
outcome: z.ZodEnum<{
|
|
6013
7491
|
completed: "completed";
|
|
6014
7492
|
failed: "failed";
|
|
@@ -6024,6 +7502,12 @@ export declare const ModelCallExportPageSchema: z.ZodObject<{
|
|
|
6024
7502
|
duplicate: z.ZodBoolean;
|
|
6025
7503
|
tokensReported: z.ZodNullable<z.ZodBoolean>;
|
|
6026
7504
|
costKnown: z.ZodNullable<z.ZodBoolean>;
|
|
7505
|
+
costSplit: z.ZodNullable<z.ZodObject<{
|
|
7506
|
+
input: z.ZodNumber;
|
|
7507
|
+
cacheRead: z.ZodNumber;
|
|
7508
|
+
cacheWrite: z.ZodNumber;
|
|
7509
|
+
output: z.ZodNumber;
|
|
7510
|
+
}, z.core.$strict>>;
|
|
6027
7511
|
}, z.core.$strict>>;
|
|
6028
7512
|
}, z.core.$strict>>;
|
|
6029
7513
|
next: z.ZodNullable<z.ZodString>;
|
|
@@ -6032,9 +7516,9 @@ export declare const ModelCallExportPageSchema: z.ZodObject<{
|
|
|
6032
7516
|
}, z.core.$strict>;
|
|
6033
7517
|
export type ModelCallExportPage = z.infer<typeof ModelCallExportPageSchema>;
|
|
6034
7518
|
/**
|
|
6035
|
-
* One tool call of a session
|
|
7519
|
+
* One tool call of a session, read from the effect journal: what ran, with what input,
|
|
6036
7520
|
* how many sends, and how it ended. `invoking` while it runs. `uncertain` only for a call
|
|
6037
|
-
* recorded
|
|
7521
|
+
* recorded by an older Runtime. The output is in the session's log (`tool.completed`).
|
|
6038
7522
|
*/
|
|
6039
7523
|
export declare const ToolCallSchema: z.ZodObject<{
|
|
6040
7524
|
effectId: z.ZodString;
|
|
@@ -6045,6 +7529,7 @@ export declare const ToolCallSchema: z.ZodObject<{
|
|
|
6045
7529
|
harness: "harness";
|
|
6046
7530
|
http: "http";
|
|
6047
7531
|
mcp: "mcp";
|
|
7532
|
+
runtime: "runtime";
|
|
6048
7533
|
sandbox: "sandbox";
|
|
6049
7534
|
}>>;
|
|
6050
7535
|
server: z.ZodNullable<z.ZodString>;
|
|
@@ -6083,6 +7568,7 @@ export declare const ToolCallsPageSchema: z.ZodObject<{
|
|
|
6083
7568
|
harness: "harness";
|
|
6084
7569
|
http: "http";
|
|
6085
7570
|
mcp: "mcp";
|
|
7571
|
+
runtime: "runtime";
|
|
6086
7572
|
sandbox: "sandbox";
|
|
6087
7573
|
}>>;
|
|
6088
7574
|
server: z.ZodNullable<z.ZodString>;
|
|
@@ -6114,13 +7600,13 @@ export declare const ToolCallsPageSchema: z.ZodObject<{
|
|
|
6114
7600
|
asOf: z.ZodString;
|
|
6115
7601
|
}, z.core.$strict>;
|
|
6116
7602
|
export type ToolCallsPage = z.infer<typeof ToolCallsPageSchema>;
|
|
6117
|
-
/** One OTLP attribute
|
|
7603
|
+
/** One OTLP attribute: a key and an `AnyValue` (`stringValue`, `intValue`, …). */
|
|
6118
7604
|
export declare const OtlpKeyValueSchema: z.ZodObject<{
|
|
6119
7605
|
key: z.ZodString;
|
|
6120
7606
|
value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6121
7607
|
}, z.core.$loose>;
|
|
6122
7608
|
/**
|
|
6123
|
-
* One span as OTLP/HTTP JSON encodes it
|
|
7609
|
+
* One span as OTLP/HTTP JSON encodes it: hex ids, times in nanoseconds as decimal strings,
|
|
6124
7610
|
* `kind` (1 internal, 3 client) and `status.code` (0 unset, 1 ok, 2 error) as numbers.
|
|
6125
7611
|
*/
|
|
6126
7612
|
export declare const OtlpSpanSchema: z.ZodObject<{
|
|
@@ -6142,7 +7628,7 @@ export declare const OtlpSpanSchema: z.ZodObject<{
|
|
|
6142
7628
|
}, z.core.$loose>;
|
|
6143
7629
|
export type OtlpSpan = z.infer<typeof OtlpSpanSchema>;
|
|
6144
7630
|
/**
|
|
6145
|
-
* A turn's trace (
|
|
7631
|
+
* A turn's trace (feature `traces`): the OTLP `ExportTraceServiceRequest` JSON the Runtime
|
|
6146
7632
|
* posts to a collector, built from the turn's log rows. One resource, one scope.
|
|
6147
7633
|
*/
|
|
6148
7634
|
export declare const TurnTraceSchema: z.ZodObject<{
|
|
@@ -6179,16 +7665,74 @@ export declare const TurnTraceSchema: z.ZodObject<{
|
|
|
6179
7665
|
}, z.core.$loose>>;
|
|
6180
7666
|
}, z.core.$loose>;
|
|
6181
7667
|
export type TurnTrace = z.infer<typeof TurnTraceSchema>;
|
|
6182
|
-
export declare const
|
|
6183
|
-
|
|
7668
|
+
export declare const AgentPageSchema: z.ZodObject<{
|
|
7669
|
+
agents: z.ZodArray<z.ZodObject<{
|
|
6184
7670
|
id: z.ZodString;
|
|
7671
|
+
manifest: z.ZodString;
|
|
7672
|
+
resolvedVersion: z.ZodNumber;
|
|
7673
|
+
manifestHash: z.ZodString;
|
|
7674
|
+
tracking: z.ZodEnum<{
|
|
7675
|
+
pinned: "pinned";
|
|
7676
|
+
tracking: "tracking";
|
|
7677
|
+
}>;
|
|
7678
|
+
targetVersion: z.ZodNullable<z.ZodNumber>;
|
|
7679
|
+
waitingFor: z.ZodNullable<z.ZodEnum<{
|
|
7680
|
+
secrets: "secrets";
|
|
7681
|
+
start: "start";
|
|
7682
|
+
}>>;
|
|
7683
|
+
failedVersion: z.ZodNullable<z.ZodNumber>;
|
|
7684
|
+
startCheck: z.ZodNullable<z.ZodObject<{
|
|
7685
|
+
from: z.ZodNumber;
|
|
7686
|
+
startedAt: z.ZodString;
|
|
7687
|
+
}, z.core.$strict>>;
|
|
6185
7688
|
kind: z.ZodEnum<{
|
|
6186
7689
|
none: "none";
|
|
6187
7690
|
pod: "pod";
|
|
6188
7691
|
virtual: "virtual";
|
|
6189
7692
|
}>;
|
|
7693
|
+
harness: z.ZodString;
|
|
7694
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
6190
7695
|
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
6191
|
-
|
|
7696
|
+
state: z.ZodString;
|
|
7697
|
+
attention: z.ZodArray<z.ZodObject<{
|
|
7698
|
+
state: z.ZodEnum<{
|
|
7699
|
+
failing: "failing";
|
|
7700
|
+
input_required: "input_required";
|
|
7701
|
+
paused: "paused";
|
|
7702
|
+
sleeping: "sleeping";
|
|
7703
|
+
working: "working";
|
|
7704
|
+
}>;
|
|
7705
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
7706
|
+
reason: z.ZodString;
|
|
7707
|
+
}, z.core.$strict>>;
|
|
7708
|
+
desired: z.ZodEnum<{
|
|
7709
|
+
off: "off";
|
|
7710
|
+
on: "on";
|
|
7711
|
+
}>;
|
|
7712
|
+
nextWakeAt: z.ZodNullable<z.ZodString>;
|
|
7713
|
+
compute: z.ZodObject<{
|
|
7714
|
+
state: z.ZodString;
|
|
7715
|
+
pod: z.ZodOptional<z.ZodObject<{
|
|
7716
|
+
desired: z.ZodEnum<{
|
|
7717
|
+
deleted: "deleted";
|
|
7718
|
+
running: "running";
|
|
7719
|
+
suspended: "suspended";
|
|
7720
|
+
}>;
|
|
7721
|
+
observed: z.ZodEnum<{
|
|
7722
|
+
creating: "creating";
|
|
7723
|
+
deleting: "deleting";
|
|
7724
|
+
failed: "failed";
|
|
7725
|
+
lost: "lost";
|
|
7726
|
+
running: "running";
|
|
7727
|
+
suspended: "suspended";
|
|
7728
|
+
}>;
|
|
7729
|
+
volumeGeneration: z.ZodNumber;
|
|
7730
|
+
hostEpoch: z.ZodNumber;
|
|
7731
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7732
|
+
imageDigest: z.ZodOptional<z.ZodString>;
|
|
7733
|
+
}, z.core.$strict>>;
|
|
7734
|
+
}, z.core.$strict>;
|
|
7735
|
+
runtime: z.ZodObject<{
|
|
6192
7736
|
image: z.ZodOptional<z.ZodString>;
|
|
6193
7737
|
resources: z.ZodOptional<z.ZodObject<{
|
|
6194
7738
|
cpus: z.ZodNumber;
|
|
@@ -6262,9 +7806,6 @@ export declare const EnvironmentPageSchema: z.ZodObject<{
|
|
|
6262
7806
|
url: z.ZodString;
|
|
6263
7807
|
}, z.core.$strict>], "type">>>>;
|
|
6264
7808
|
}, z.core.$strict>;
|
|
6265
|
-
manifestName: z.ZodOptional<z.ZodString>;
|
|
6266
|
-
manifestVersion: z.ZodOptional<z.ZodNumber>;
|
|
6267
|
-
manifestHash: z.ZodOptional<z.ZodString>;
|
|
6268
7809
|
limits: z.ZodObject<{
|
|
6269
7810
|
artifacts: z.ZodObject<{
|
|
6270
7811
|
fileBytes: z.ZodNumber;
|
|
@@ -6278,43 +7819,21 @@ export declare const EnvironmentPageSchema: z.ZodObject<{
|
|
|
6278
7819
|
versionEntries: z.ZodNumber;
|
|
6279
7820
|
}, z.core.$strict>;
|
|
6280
7821
|
}, z.core.$strict>;
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
7822
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
7823
|
+
id: z.ZodString;
|
|
7824
|
+
ownerUserId: z.ZodString;
|
|
7825
|
+
status: z.ZodString;
|
|
7826
|
+
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
6284
7827
|
}, z.core.$strict>>;
|
|
6285
|
-
slots: z.
|
|
7828
|
+
slots: z.ZodArray<z.ZodObject<{
|
|
6286
7829
|
name: z.ZodString;
|
|
6287
7830
|
type: z.ZodString;
|
|
6288
7831
|
required: z.ZodBoolean;
|
|
6289
7832
|
set: z.ZodBoolean;
|
|
6290
|
-
}, z.core.$strict>>>;
|
|
6291
|
-
version: z.ZodNumber;
|
|
6292
|
-
appliedVersion: z.ZodNumber;
|
|
6293
|
-
ownerUserId: z.ZodNullable<z.ZodString>;
|
|
6294
|
-
state: z.ZodString;
|
|
6295
|
-
pod: z.ZodOptional<z.ZodObject<{
|
|
6296
|
-
desired: z.ZodEnum<{
|
|
6297
|
-
deleted: "deleted";
|
|
6298
|
-
running: "running";
|
|
6299
|
-
suspended: "suspended";
|
|
6300
|
-
}>;
|
|
6301
|
-
observed: z.ZodEnum<{
|
|
6302
|
-
creating: "creating";
|
|
6303
|
-
deleting: "deleting";
|
|
6304
|
-
failed: "failed";
|
|
6305
|
-
lost: "lost";
|
|
6306
|
-
running: "running";
|
|
6307
|
-
suspended: "suspended";
|
|
6308
|
-
}>;
|
|
6309
|
-
volumeGeneration: z.ZodNumber;
|
|
6310
|
-
hostEpoch: z.ZodNumber;
|
|
6311
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
6312
|
-
imageDigest: z.ZodOptional<z.ZodString>;
|
|
6313
7833
|
}, z.core.$strict>>;
|
|
6314
|
-
lastUsedAt: z.ZodString;
|
|
6315
7834
|
disk: z.ZodOptional<z.ZodObject<{
|
|
6316
7835
|
latestVersion: z.ZodNullable<z.ZodNumber>;
|
|
6317
|
-
operation: z.
|
|
7836
|
+
operation: z.ZodNullable<z.ZodObject<{
|
|
6318
7837
|
kind: z.ZodEnum<{
|
|
6319
7838
|
restore: "restore";
|
|
6320
7839
|
seed: "seed";
|
|
@@ -6324,13 +7843,14 @@ export declare const EnvironmentPageSchema: z.ZodObject<{
|
|
|
6324
7843
|
startedAt: z.ZodString;
|
|
6325
7844
|
}, z.core.$strict>>;
|
|
6326
7845
|
}, z.core.$strict>>;
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
7846
|
+
forkedFrom: z.ZodNullable<z.ZodObject<{
|
|
7847
|
+
agent: z.ZodString;
|
|
7848
|
+
disk: z.ZodNullable<z.ZodNumber>;
|
|
6330
7849
|
}, z.core.$strict>>;
|
|
7850
|
+
lastUsedAt: z.ZodString;
|
|
6331
7851
|
createdAt: z.ZodString;
|
|
6332
7852
|
updatedAt: z.ZodString;
|
|
6333
7853
|
}, z.core.$strict>>;
|
|
6334
7854
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
6335
7855
|
}, z.core.$strict>;
|
|
6336
|
-
export type
|
|
7856
|
+
export type AgentPage = z.infer<typeof AgentPageSchema>;
|