@nylorun/core 0.20.0-beta → 0.21.0-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/README.md +2 -2
  3. package/dist/compatibility.d.ts +84 -10
  4. package/dist/compatibility.js +84 -10
  5. package/dist/contracts.d.ts +1328 -110
  6. package/dist/contracts.js +544 -157
  7. package/dist/define.d.ts +14 -12
  8. package/dist/define.js +10 -7
  9. package/dist/definition/approval.js +12 -14
  10. package/dist/definition/assemble.d.ts +6 -10
  11. package/dist/definition/assemble.js +48 -105
  12. package/dist/definition/bind-agent.d.ts +3 -4
  13. package/dist/definition/bind-agent.js +12 -30
  14. package/dist/definition/binding.d.ts +2 -2
  15. package/dist/definition/bound.d.ts +10 -10
  16. package/dist/definition/builder.d.ts +16 -20
  17. package/dist/definition/builder.js +29 -81
  18. package/dist/definition/code-tools.d.ts +3 -3
  19. package/dist/definition/code-tools.js +6 -21
  20. package/dist/definition/declaration.d.ts +4 -7
  21. package/dist/definition/declaration.js +29 -99
  22. package/dist/definition/{tools-capability.d.ts → deferred-tools.d.ts} +3 -13
  23. package/dist/definition/{tools-capability.js → deferred-tools.js} +2 -18
  24. package/dist/definition/delegate.d.ts +2 -4
  25. package/dist/definition/delegate.js +8 -10
  26. package/dist/definition/from.d.ts +7 -4
  27. package/dist/definition/from.js +72 -117
  28. package/dist/definition/helpers.d.ts +0 -7
  29. package/dist/definition/helpers.js +0 -5
  30. package/dist/definition/implementations.d.ts +6 -8
  31. package/dist/definition/manifest.d.ts +11 -5
  32. package/dist/definition/manifest.js +26 -26
  33. package/dist/definition/mcp.d.ts +1 -52
  34. package/dist/definition/mcp.js +0 -52
  35. package/dist/definition/media-reference.d.ts +23 -0
  36. package/dist/definition/media-reference.js +26 -0
  37. package/dist/definition/removed.d.ts +3 -10
  38. package/dist/definition/removed.js +10 -17
  39. package/dist/definition/runtime-manifest.d.ts +30 -0
  40. package/dist/definition/runtime-manifest.js +132 -0
  41. package/dist/definition/sandbox-tools.d.ts +1 -1
  42. package/dist/definition/sandbox-tools.js +1 -1
  43. package/dist/definition/skill-tools.d.ts +13 -7
  44. package/dist/definition/skill-tools.js +23 -10
  45. package/dist/definition/trace.d.ts +18 -0
  46. package/dist/definition/trace.js +42 -0
  47. package/dist/definition/variant.d.ts +5 -4
  48. package/dist/definition/variant.js +18 -51
  49. package/dist/definition/workflow/runnable.js +1 -1
  50. package/dist/errors.d.ts +1 -1
  51. package/dist/harness-api/entries.d.ts +1 -0
  52. package/dist/harness-api/entries.js +1 -0
  53. package/dist/harness-api/gates.d.ts +1 -6
  54. package/dist/harness-api/gates.js +1 -3
  55. package/dist/harness-api/harness-api.schema.json +11 -92
  56. package/dist/harness-api/index.d.ts +2 -2
  57. package/dist/harness-api/index.js +2 -2
  58. package/dist/harness-api/mcp.d.ts +0 -4
  59. package/dist/harness-api/mcp.js +0 -2
  60. package/dist/harness-api/messages.d.ts +1 -3
  61. package/dist/harness-api/messages.js +1 -3
  62. package/dist/harness-api/schema.d.ts +5 -17
  63. package/dist/harness-api/schema.js +9 -6
  64. package/dist/index.d.ts +1 -1
  65. package/dist/manifest-schemas.d.ts +6 -0
  66. package/dist/manifest-schemas.js +34 -0
  67. package/dist/schemas/agent-manifest.schema.json +897 -0
  68. package/dist/schemas/environment-manifest.schema.json +329 -0
  69. package/dist/types/agent.d.ts +1 -1
  70. package/dist/types/manifest.d.ts +33 -19
  71. package/dist/types/model.d.ts +2 -2
  72. package/dist/types/observe.d.ts +5 -18
  73. package/dist/types/part.d.ts +25 -0
  74. package/dist/types/tool.d.ts +1 -1
  75. package/dist/types/transcript.d.ts +5 -0
  76. package/dist/utils/definition-files.d.ts +11 -6
  77. package/dist/utils/definition-files.js +19 -9
  78. package/dist/utils/runtime-tools.d.ts +19 -0
  79. package/dist/utils/runtime-tools.js +30 -0
  80. package/dist/utils/sandbox.d.ts +1 -1
  81. package/dist/utils/sandbox.js +1 -1
  82. package/package.json +9 -3
  83. package/dist/definition/capability.d.ts +0 -43
  84. package/dist/definition/capability.js +0 -82
  85. package/dist/definition/sandbox-capability.d.ts +0 -44
  86. package/dist/definition/sandbox-capability.js +0 -139
  87. package/dist/types/middleware.d.ts +0 -94
  88. /package/dist/types/{middleware.js → part.js} +0 -0
@@ -15,8 +15,8 @@ export declare const IdempotencyKeySchema: z.ZodString;
15
15
  /** A remote MCP server as a manifest declares it (`streamable-http` or `sse`). */
16
16
  export declare const McpServerManifestSchema: z.ZodType<McpServerManifest>;
17
17
  /**
18
- * An agent's manifest (manifest v5 and v6). Its output is checked against `AgentManifest` here and
19
- * below (`ManifestDrift`): the hand-written type keeps its read-only fields and its docs.
18
+ * An agent's manifest (manifest v7). Its output is checked against `AgentManifest` here and below
19
+ * (`ManifestDrift`): the hand-written type keeps its read-only fields and its docs.
20
20
  */
21
21
  export declare const AgentManifestSchema: z.ZodType<AgentManifest>;
22
22
  /** Workflow definition document. `kind: "workflow"`; a missing `kind` is never a workflow. */
@@ -87,22 +87,46 @@ export type EnvironmentSetupCommand = z.infer<typeof EnvironmentSetupCommandSche
87
87
  * is made or reset, before the setup commands. A file artifact is written at `path`; a folder
88
88
  * artifact is unpacked under it.
89
89
  */
90
- export declare const EnvironmentFileSchema: z.ZodObject<{
90
+ /** The most files one `files` entry by hash names (Q6). */
91
+ export declare const ENVIRONMENT_FILES_MAX = 1000;
92
+ /**
93
+ * One input file entry (pods only): an artifact version copied to `path` (a file artifact, or a
94
+ * folder's files under it), or (Q6) files by content hash, each `sha256:<hex>` of a definition
95
+ * file the Tenant holds (`PUT /v1/files/sha256:<hex>`, at most 10 MiB each), copied under `path`
96
+ * at its relative path. A manifest by hash moves to another Tenant with its files.
97
+ */
98
+ export declare const EnvironmentFileSchema: z.ZodUnion<readonly [z.ZodObject<{
91
99
  artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
92
100
  version: z.ZodNumber;
93
101
  path: z.ZodString;
94
- }, z.core.$strict>;
102
+ }, z.core.$strict>, z.ZodObject<{
103
+ path: z.ZodString;
104
+ files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
105
+ }, z.core.$strict>]>;
95
106
  export type EnvironmentFile = z.infer<typeof EnvironmentFileSchema>;
107
+ export declare function isEnvironmentManifestName(value: unknown): value is string;
108
+ export declare const EnvironmentManifestNameSchema: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
109
+ /**
110
+ * Which manifest an Environment is made from: `name` (its latest version when the Environment is
111
+ * created) or `name@n` (version `n`). Either way the Environment keeps that version for life.
112
+ */
113
+ export declare function parseEnvironmentManifestRef(ref: string): {
114
+ name: string;
115
+ version?: number;
116
+ } | undefined;
117
+ export declare const EnvironmentManifestRefSchema: z.ZodString;
96
118
  /**
97
119
  * `PUT /v1/environments/{environmentId}`: creates the Environment and its vault, or finds the
98
- * one with this id, so "get or create" is one call. On an existing one the fields sent are
99
- * compared: `kind` and `storage` are fixed (a difference is `409`), `labels` replace its labels,
100
- * and any other difference changes its recipe and bumps its `version`. Image and resources
101
- * reach a pod when it next starts from stopped; `network.allowedHosts` applies within seconds.
102
- * A `PUT` that changes nothing answers the view unchanged.
120
+ * one with this id, so "get or create" is one call. An Environment is made from one version of an
121
+ * environment manifest (`manifest`) or from the inline manifest these fields make, and never
122
+ * changes what it runs after that (protocol 14, D63): on an existing one, `labels` replace its
123
+ * labels and `ownerUserId` sets or clears its owner guard, a field that matches what it runs is
124
+ * accepted, and anything else is `409 environment_immutable`, naming the fork that makes a new
125
+ * Environment instead.
103
126
  */
104
127
  export declare const PutEnvironmentRequestSchema: z.ZodObject<{
105
128
  requestId: z.ZodOptional<z.ZodString>;
129
+ manifest: z.ZodOptional<z.ZodString>;
106
130
  kind: z.ZodOptional<z.ZodEnum<{
107
131
  none: "none";
108
132
  pod: "pod";
@@ -129,18 +153,56 @@ export declare const PutEnvironmentRequestSchema: z.ZodObject<{
129
153
  cwd: z.ZodOptional<z.ZodString>;
130
154
  timeout: z.ZodOptional<z.ZodString>;
131
155
  }, z.core.$strict>>>;
132
- files: z.ZodOptional<z.ZodArray<z.ZodObject<{
156
+ files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
133
157
  artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
134
158
  version: z.ZodNumber;
135
159
  path: z.ZodString;
136
- }, z.core.$strict>>>;
160
+ }, z.core.$strict>, z.ZodObject<{
161
+ path: z.ZodString;
162
+ files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
163
+ }, z.core.$strict>]>>>;
164
+ secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
165
+ required: z.ZodOptional<z.ZodBoolean>;
166
+ description: z.ZodOptional<z.ZodString>;
167
+ type: z.ZodLiteral<"environment_secret">;
168
+ allowedHosts: z.ZodArray<z.ZodString>;
169
+ inject: z.ZodOptional<z.ZodObject<{
170
+ header: z.ZodString;
171
+ format: z.ZodString;
172
+ }, z.core.$strict>>;
173
+ }, z.core.$strict>, z.ZodObject<{
174
+ required: z.ZodOptional<z.ZodBoolean>;
175
+ description: z.ZodOptional<z.ZodString>;
176
+ type: z.ZodLiteral<"environment_variable">;
177
+ }, z.core.$strict>, z.ZodObject<{
178
+ via: z.ZodOptional<z.ZodString>;
179
+ identity: z.ZodOptional<z.ZodObject<{
180
+ header: z.ZodString;
181
+ }, z.core.$strict>>;
182
+ required: z.ZodOptional<z.ZodBoolean>;
183
+ description: z.ZodOptional<z.ZodString>;
184
+ type: z.ZodLiteral<"bearer">;
185
+ url: z.ZodString;
186
+ }, z.core.$strict>, z.ZodObject<{
187
+ via: z.ZodOptional<z.ZodString>;
188
+ identity: z.ZodOptional<z.ZodObject<{
189
+ header: z.ZodString;
190
+ }, z.core.$strict>>;
191
+ required: z.ZodOptional<z.ZodBoolean>;
192
+ description: z.ZodOptional<z.ZodString>;
193
+ type: z.ZodLiteral<"headers">;
194
+ url: z.ZodString;
195
+ }, z.core.$strict>], "type">>>>;
137
196
  from: z.ZodOptional<z.ZodObject<{
138
197
  environment: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
139
198
  version: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"latest">]>;
140
199
  }, z.core.$strict>>;
141
200
  }, z.core.$strict>;
142
201
  export type PutEnvironmentRequest = z.infer<typeof PutEnvironmentRequestSchema>;
143
- /** An Environment's recipe, resolved against the Tenant's limits. */
202
+ /**
203
+ * What an Environment runs (its inline manifest, called the recipe before protocol 14), resolved
204
+ * against the Tenant's limits when it was made. It never changes after that.
205
+ */
144
206
  export declare const EnvironmentRecipeSchema: z.ZodObject<{
145
207
  image: z.ZodOptional<z.ZodString>;
146
208
  resources: z.ZodOptional<z.ZodObject<{
@@ -161,11 +223,46 @@ export declare const EnvironmentRecipeSchema: z.ZodObject<{
161
223
  cwd: z.ZodOptional<z.ZodString>;
162
224
  timeout: z.ZodOptional<z.ZodString>;
163
225
  }, z.core.$strict>>>;
164
- files: z.ZodOptional<z.ZodArray<z.ZodObject<{
226
+ files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
165
227
  artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
166
228
  version: z.ZodNumber;
167
229
  path: z.ZodString;
168
- }, z.core.$strict>>>;
230
+ }, z.core.$strict>, z.ZodObject<{
231
+ path: z.ZodString;
232
+ files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
233
+ }, z.core.$strict>]>>>;
234
+ secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
235
+ required: z.ZodOptional<z.ZodBoolean>;
236
+ description: z.ZodOptional<z.ZodString>;
237
+ type: z.ZodLiteral<"environment_secret">;
238
+ allowedHosts: z.ZodArray<z.ZodString>;
239
+ inject: z.ZodOptional<z.ZodObject<{
240
+ header: z.ZodString;
241
+ format: z.ZodString;
242
+ }, z.core.$strict>>;
243
+ }, z.core.$strict>, z.ZodObject<{
244
+ required: z.ZodOptional<z.ZodBoolean>;
245
+ description: z.ZodOptional<z.ZodString>;
246
+ type: z.ZodLiteral<"environment_variable">;
247
+ }, z.core.$strict>, z.ZodObject<{
248
+ via: z.ZodOptional<z.ZodString>;
249
+ identity: z.ZodOptional<z.ZodObject<{
250
+ header: z.ZodString;
251
+ }, z.core.$strict>>;
252
+ required: z.ZodOptional<z.ZodBoolean>;
253
+ description: z.ZodOptional<z.ZodString>;
254
+ type: z.ZodLiteral<"bearer">;
255
+ url: z.ZodString;
256
+ }, z.core.$strict>, z.ZodObject<{
257
+ via: z.ZodOptional<z.ZodString>;
258
+ identity: z.ZodOptional<z.ZodObject<{
259
+ header: z.ZodString;
260
+ }, z.core.$strict>>;
261
+ required: z.ZodOptional<z.ZodBoolean>;
262
+ description: z.ZodOptional<z.ZodString>;
263
+ type: z.ZodLiteral<"headers">;
264
+ url: z.ZodString;
265
+ }, z.core.$strict>], "type">>>>;
169
266
  }, z.core.$strict>;
170
267
  export type EnvironmentRecipe = z.infer<typeof EnvironmentRecipeSchema>;
171
268
  /** A session that names an Environment, as the Environment's view lists it. */
@@ -195,6 +292,7 @@ export declare const EnvironmentPodViewSchema: z.ZodObject<{
195
292
  volumeGeneration: z.ZodNumber;
196
293
  hostEpoch: z.ZodNumber;
197
294
  reason: z.ZodOptional<z.ZodString>;
295
+ imageDigest: z.ZodOptional<z.ZodString>;
198
296
  }, z.core.$strict>;
199
297
  export type EnvironmentPodView = z.infer<typeof EnvironmentPodViewSchema>;
200
298
  /**
@@ -212,7 +310,7 @@ export declare const EnvironmentViewSchema: z.ZodObject<{
212
310
  virtual: "virtual";
213
311
  }>;
214
312
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
215
- recipe: z.ZodObject<{
313
+ manifest: z.ZodObject<{
216
314
  image: z.ZodOptional<z.ZodString>;
217
315
  resources: z.ZodOptional<z.ZodObject<{
218
316
  cpus: z.ZodNumber;
@@ -232,12 +330,60 @@ export declare const EnvironmentViewSchema: z.ZodObject<{
232
330
  cwd: z.ZodOptional<z.ZodString>;
233
331
  timeout: z.ZodOptional<z.ZodString>;
234
332
  }, z.core.$strict>>>;
235
- files: z.ZodOptional<z.ZodArray<z.ZodObject<{
333
+ files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
236
334
  artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
237
335
  version: z.ZodNumber;
238
336
  path: z.ZodString;
239
- }, z.core.$strict>>>;
337
+ }, z.core.$strict>, z.ZodObject<{
338
+ path: z.ZodString;
339
+ files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
340
+ }, z.core.$strict>]>>>;
341
+ secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
342
+ required: z.ZodOptional<z.ZodBoolean>;
343
+ description: z.ZodOptional<z.ZodString>;
344
+ type: z.ZodLiteral<"environment_secret">;
345
+ allowedHosts: z.ZodArray<z.ZodString>;
346
+ inject: z.ZodOptional<z.ZodObject<{
347
+ header: z.ZodString;
348
+ format: z.ZodString;
349
+ }, z.core.$strict>>;
350
+ }, z.core.$strict>, z.ZodObject<{
351
+ required: z.ZodOptional<z.ZodBoolean>;
352
+ description: z.ZodOptional<z.ZodString>;
353
+ type: z.ZodLiteral<"environment_variable">;
354
+ }, z.core.$strict>, z.ZodObject<{
355
+ via: z.ZodOptional<z.ZodString>;
356
+ identity: z.ZodOptional<z.ZodObject<{
357
+ header: z.ZodString;
358
+ }, z.core.$strict>>;
359
+ required: z.ZodOptional<z.ZodBoolean>;
360
+ description: z.ZodOptional<z.ZodString>;
361
+ type: z.ZodLiteral<"bearer">;
362
+ url: z.ZodString;
363
+ }, z.core.$strict>, z.ZodObject<{
364
+ via: z.ZodOptional<z.ZodString>;
365
+ identity: z.ZodOptional<z.ZodObject<{
366
+ header: z.ZodString;
367
+ }, z.core.$strict>>;
368
+ required: z.ZodOptional<z.ZodBoolean>;
369
+ description: z.ZodOptional<z.ZodString>;
370
+ type: z.ZodLiteral<"headers">;
371
+ url: z.ZodString;
372
+ }, z.core.$strict>], "type">>>>;
240
373
  }, z.core.$strict>;
374
+ manifestName: z.ZodOptional<z.ZodString>;
375
+ manifestVersion: z.ZodOptional<z.ZodNumber>;
376
+ manifestHash: z.ZodOptional<z.ZodString>;
377
+ forkedFrom: z.ZodOptional<z.ZodObject<{
378
+ environment: z.ZodString;
379
+ disk: z.ZodNullable<z.ZodNumber>;
380
+ }, z.core.$strict>>;
381
+ slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
382
+ name: z.ZodString;
383
+ type: z.ZodString;
384
+ required: z.ZodBoolean;
385
+ set: z.ZodBoolean;
386
+ }, z.core.$strict>>>;
241
387
  version: z.ZodNumber;
242
388
  appliedVersion: z.ZodNumber;
243
389
  ownerUserId: z.ZodNullable<z.ZodString>;
@@ -259,6 +405,7 @@ export declare const EnvironmentViewSchema: z.ZodObject<{
259
405
  volumeGeneration: z.ZodNumber;
260
406
  hostEpoch: z.ZodNumber;
261
407
  reason: z.ZodOptional<z.ZodString>;
408
+ imageDigest: z.ZodOptional<z.ZodString>;
262
409
  }, z.core.$strict>>;
263
410
  lastUsedAt: z.ZodString;
264
411
  disk: z.ZodOptional<z.ZodObject<{
@@ -332,7 +479,7 @@ export declare const ListEnvironmentsResponseSchema: z.ZodObject<{
332
479
  virtual: "virtual";
333
480
  }>;
334
481
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
335
- recipe: z.ZodObject<{
482
+ manifest: z.ZodObject<{
336
483
  image: z.ZodOptional<z.ZodString>;
337
484
  resources: z.ZodOptional<z.ZodObject<{
338
485
  cpus: z.ZodNumber;
@@ -352,12 +499,60 @@ export declare const ListEnvironmentsResponseSchema: z.ZodObject<{
352
499
  cwd: z.ZodOptional<z.ZodString>;
353
500
  timeout: z.ZodOptional<z.ZodString>;
354
501
  }, z.core.$strict>>>;
355
- files: z.ZodOptional<z.ZodArray<z.ZodObject<{
502
+ files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
356
503
  artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
357
504
  version: z.ZodNumber;
358
505
  path: z.ZodString;
359
- }, z.core.$strict>>>;
506
+ }, z.core.$strict>, z.ZodObject<{
507
+ path: z.ZodString;
508
+ files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
509
+ }, z.core.$strict>]>>>;
510
+ secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
511
+ required: z.ZodOptional<z.ZodBoolean>;
512
+ description: z.ZodOptional<z.ZodString>;
513
+ type: z.ZodLiteral<"environment_secret">;
514
+ allowedHosts: z.ZodArray<z.ZodString>;
515
+ inject: z.ZodOptional<z.ZodObject<{
516
+ header: z.ZodString;
517
+ format: z.ZodString;
518
+ }, z.core.$strict>>;
519
+ }, z.core.$strict>, z.ZodObject<{
520
+ required: z.ZodOptional<z.ZodBoolean>;
521
+ description: z.ZodOptional<z.ZodString>;
522
+ type: z.ZodLiteral<"environment_variable">;
523
+ }, z.core.$strict>, z.ZodObject<{
524
+ via: z.ZodOptional<z.ZodString>;
525
+ identity: z.ZodOptional<z.ZodObject<{
526
+ header: z.ZodString;
527
+ }, z.core.$strict>>;
528
+ required: z.ZodOptional<z.ZodBoolean>;
529
+ description: z.ZodOptional<z.ZodString>;
530
+ type: z.ZodLiteral<"bearer">;
531
+ url: z.ZodString;
532
+ }, z.core.$strict>, z.ZodObject<{
533
+ via: z.ZodOptional<z.ZodString>;
534
+ identity: z.ZodOptional<z.ZodObject<{
535
+ header: z.ZodString;
536
+ }, z.core.$strict>>;
537
+ required: z.ZodOptional<z.ZodBoolean>;
538
+ description: z.ZodOptional<z.ZodString>;
539
+ type: z.ZodLiteral<"headers">;
540
+ url: z.ZodString;
541
+ }, z.core.$strict>], "type">>>>;
360
542
  }, z.core.$strict>;
543
+ manifestName: z.ZodOptional<z.ZodString>;
544
+ manifestVersion: z.ZodOptional<z.ZodNumber>;
545
+ manifestHash: z.ZodOptional<z.ZodString>;
546
+ forkedFrom: z.ZodOptional<z.ZodObject<{
547
+ environment: z.ZodString;
548
+ disk: z.ZodNullable<z.ZodNumber>;
549
+ }, z.core.$strict>>;
550
+ slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
551
+ name: z.ZodString;
552
+ type: z.ZodString;
553
+ required: z.ZodBoolean;
554
+ set: z.ZodBoolean;
555
+ }, z.core.$strict>>>;
361
556
  version: z.ZodNumber;
362
557
  appliedVersion: z.ZodNumber;
363
558
  ownerUserId: z.ZodNullable<z.ZodString>;
@@ -379,6 +574,7 @@ export declare const ListEnvironmentsResponseSchema: z.ZodObject<{
379
574
  volumeGeneration: z.ZodNumber;
380
575
  hostEpoch: z.ZodNumber;
381
576
  reason: z.ZodOptional<z.ZodString>;
577
+ imageDigest: z.ZodOptional<z.ZodString>;
382
578
  }, z.core.$strict>>;
383
579
  lastUsedAt: z.ZodString;
384
580
  disk: z.ZodOptional<z.ZodObject<{
@@ -407,11 +603,18 @@ export declare const DeleteEnvironmentResponseSchema: z.ZodObject<{
407
603
  deleted: z.ZodBoolean;
408
604
  }, z.core.$strict>;
409
605
  export type DeleteEnvironmentResponse = z.infer<typeof DeleteEnvironmentResponseSchema>;
606
+ /** A turn that was running on an Environment when one of its connections opened (D67). */
607
+ export declare const EgressRunningTurnSchema: z.ZodObject<{
608
+ sessionId: z.ZodString;
609
+ turnId: z.ZodString;
610
+ }, z.core.$strict>;
611
+ export type EgressRunningTurn = z.infer<typeof EgressRunningTurnSchema>;
410
612
  /**
411
613
  * One connection a pod Environment opened through egress-gate (track R7, Q6): written when it
412
- * closes, or at once when the gate refused it. The session log of the turn holding the
413
- * Environment when it opened gets it as `egress.connection`; with no turn holding it, the
414
- * Environment's own stream gets it as `environment.egress` (Q7).
614
+ * closes, or at once when the gate refused it, to the Environment's own stream as
615
+ * `environment.egress` (D67). The connection is the Environment's: its egress token names the pod,
616
+ * and the Environment's sessions run turns in parallel (D66). `runningTurns` lists the turns
617
+ * active on it as the connection opened, at most 16, as context and never as the owner.
415
618
  *
416
619
  * `startedAt` is the gate's clock at CONNECT and `durationMs` runs from there to the close, so
417
620
  * the span is the gate's own measurement. `bytesUp` is what the sandbox sent, `bytesDown` what it
@@ -440,10 +643,14 @@ export declare const EgressConnectionPayloadSchema: z.ZodObject<{
440
643
  bytesDown: z.ZodNumber;
441
644
  durationMs: z.ZodNumber;
442
645
  startedAt: z.ZodString;
646
+ runningTurns: z.ZodArray<z.ZodObject<{
647
+ sessionId: z.ZodString;
648
+ turnId: z.ZodString;
649
+ }, z.core.$strict>>;
443
650
  }, z.core.$loose>;
444
651
  /** The schema id of an Environment's lifecycle events (its stream in the record). */
445
652
  export declare const ENVIRONMENT_EVENT_SCHEMA = "nylorun.environment-event/1";
446
- 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.egress"];
653
+ export declare const ENVIRONMENT_EVENT_TYPES: readonly ["environment.created", "environment.attached", "environment.detached", "environment.deleted", "environment.running", "environment.suspended", "environment.relaunched", "environment.lost", "environment.reset", "environment.failed", "environment.forked", "environment.egress"];
447
654
  export type EnvironmentEventType = (typeof ENVIRONMENT_EVENT_TYPES)[number];
448
655
  /** The payload of each Environment lifecycle event. */
449
656
  export declare const ENVIRONMENT_EVENT_PAYLOADS: {
@@ -454,6 +661,14 @@ export declare const ENVIRONMENT_EVENT_PAYLOADS: {
454
661
  virtual: "virtual";
455
662
  }>;
456
663
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
664
+ manifest: z.ZodOptional<z.ZodObject<{
665
+ name: z.ZodString;
666
+ version: z.ZodNumber;
667
+ }, z.core.$strict>>;
668
+ forkedFrom: z.ZodOptional<z.ZodObject<{
669
+ environment: z.ZodString;
670
+ disk: z.ZodNullable<z.ZodNumber>;
671
+ }, z.core.$strict>>;
457
672
  }, z.core.$loose>;
458
673
  readonly "environment.attached": z.ZodObject<{
459
674
  sessionId: z.ZodString;
@@ -498,7 +713,17 @@ export declare const ENVIRONMENT_EVENT_PAYLOADS: {
498
713
  readonly "environment.failed": z.ZodObject<{
499
714
  reason: z.ZodString;
500
715
  }, z.core.$loose>;
501
- /** A connection through egress-gate while no turn held the Environment (`egress.connection`'s payload). */
716
+ /** Forked into Environment `to`: its disk started from version `disk`, `secrets` were copied. */
717
+ readonly "environment.forked": z.ZodObject<{
718
+ to: z.ZodString;
719
+ disk: z.ZodNullable<z.ZodNumber>;
720
+ manifest: z.ZodOptional<z.ZodObject<{
721
+ name: z.ZodString;
722
+ version: z.ZodNumber;
723
+ }, z.core.$strict>>;
724
+ secrets: z.ZodNumber;
725
+ }, z.core.$loose>;
726
+ /** A connection through egress-gate, with the turns running as it opened (D67). */
502
727
  readonly "environment.egress": z.ZodObject<{
503
728
  environmentId: z.ZodString;
504
729
  host: z.ZodString;
@@ -520,6 +745,10 @@ export declare const ENVIRONMENT_EVENT_PAYLOADS: {
520
745
  bytesDown: z.ZodNumber;
521
746
  durationMs: z.ZodNumber;
522
747
  startedAt: z.ZodString;
748
+ runningTurns: z.ZodArray<z.ZodObject<{
749
+ sessionId: z.ZodString;
750
+ turnId: z.ZodString;
751
+ }, z.core.$strict>>;
523
752
  }, z.core.$loose>;
524
753
  };
525
754
  export type EnvironmentEventPayload<T extends EnvironmentEventType> = z.infer<(typeof ENVIRONMENT_EVENT_PAYLOADS)[T]>;
@@ -538,6 +767,7 @@ export declare const EnvironmentEventSchema: z.ZodObject<{
538
767
  "environment.detached": "environment.detached";
539
768
  "environment.egress": "environment.egress";
540
769
  "environment.failed": "environment.failed";
770
+ "environment.forked": "environment.forked";
541
771
  "environment.lost": "environment.lost";
542
772
  "environment.relaunched": "environment.relaunched";
543
773
  "environment.reset": "environment.reset";
@@ -562,6 +792,7 @@ export declare const ListEnvironmentEventsResponseSchema: z.ZodObject<{
562
792
  "environment.detached": "environment.detached";
563
793
  "environment.egress": "environment.egress";
564
794
  "environment.failed": "environment.failed";
795
+ "environment.forked": "environment.forked";
565
796
  "environment.lost": "environment.lost";
566
797
  "environment.relaunched": "environment.relaunched";
567
798
  "environment.reset": "environment.reset";
@@ -685,62 +916,855 @@ export declare const EnvironmentSecretInjectSchema: z.ZodObject<{
685
916
  header: z.ZodString;
686
917
  format: z.ZodString;
687
918
  }, z.core.$strict>;
688
- export type EnvironmentSecretInject = z.infer<typeof EnvironmentSecretInjectSchema>;
689
- /** The name of a credential for a tool (`bearer` or `headers`): a label of 1–64 characters. */
690
- export declare const TOOL_SECRET_NAME_PATTERN: RegExp;
919
+ export type EnvironmentSecretInject = z.infer<typeof EnvironmentSecretInjectSchema>;
920
+ /** The name of a credential for a tool (`bearer` or `headers`): a label of 1–64 characters. */
921
+ export declare const TOOL_SECRET_NAME_PATTERN: RegExp;
922
+ /**
923
+ * `PUT /v1/environments/{environmentId}/secrets/{name}` (D56): creates or replaces one credential
924
+ * in the Environment's vault. For `environment_secret` and `environment_variable` the name is
925
+ * the variable's name (a POSIX name, not reserved); for `bearer` and `headers` it is a label.
926
+ * The same name and type keeps the credential and re-seals its value and binding; another type
927
+ * replaces it. Values are write-only: no route reads them back. Two `environment_secret`
928
+ * credentials bound to one host, or two `bearer`/`headers` credentials for one URL, are
929
+ * `409 credential_conflict`.
930
+ */
931
+ export declare const PutEnvironmentSecretRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
932
+ requestId: z.ZodOptional<z.ZodString>;
933
+ type: z.ZodLiteral<"environment_secret">;
934
+ value: z.ZodString;
935
+ allowedHosts: z.ZodArray<z.ZodString>;
936
+ inject: z.ZodOptional<z.ZodObject<{
937
+ header: z.ZodString;
938
+ format: z.ZodString;
939
+ }, z.core.$strict>>;
940
+ }, z.core.$strict>, z.ZodObject<{
941
+ requestId: z.ZodOptional<z.ZodString>;
942
+ type: z.ZodLiteral<"environment_variable">;
943
+ value: z.ZodString;
944
+ }, z.core.$strict>, z.ZodObject<{
945
+ via: z.ZodOptional<z.ZodString>;
946
+ identity: z.ZodOptional<z.ZodObject<{
947
+ header: z.ZodString;
948
+ }, z.core.$strict>>;
949
+ requestId: z.ZodOptional<z.ZodString>;
950
+ type: z.ZodLiteral<"bearer">;
951
+ url: z.ZodString;
952
+ value: z.ZodString;
953
+ }, z.core.$strict>, z.ZodObject<{
954
+ via: z.ZodOptional<z.ZodString>;
955
+ identity: z.ZodOptional<z.ZodObject<{
956
+ header: z.ZodString;
957
+ }, z.core.$strict>>;
958
+ requestId: z.ZodOptional<z.ZodString>;
959
+ type: z.ZodLiteral<"headers">;
960
+ url: z.ZodString;
961
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
962
+ }, z.core.$strict>], "type">;
963
+ export type PutEnvironmentSecretRequest = z.infer<typeof PutEnvironmentSecretRequestSchema>;
964
+ /**
965
+ * A secret write on an Environment whose manifest declares the secret's slot (D64): only the
966
+ * value, `value` (or `headers` for a `headers` slot). Its type and binding come from the slot.
967
+ */
968
+ export declare const PutEnvironmentSecretValueRequestSchema: z.ZodObject<{
969
+ requestId: z.ZodOptional<z.ZodString>;
970
+ value: z.ZodOptional<z.ZodString>;
971
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
972
+ }, z.core.$strict>;
973
+ export type PutEnvironmentSecretValueRequest = z.infer<typeof PutEnvironmentSecretValueRequestSchema>;
974
+ /** Whether `name` may name a secret of `type` (`PUT .../secrets/{name}`); a message when not. */
975
+ export declare function environmentSecretNameError(type: PutEnvironmentSecretRequest["type"], name: string): string | undefined;
976
+ /**
977
+ * One secret an Environment of a kind needs (D64): its type and binding, never its value. The
978
+ * value is written into each Environment's vault (`PUT /v1/environments/{id}/secrets/{name}`
979
+ * with `{ value }`, or `{ headers }` for `headers`), and the binding comes from here.
980
+ */
981
+ export declare const EnvironmentSecretSlotSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
982
+ required: z.ZodOptional<z.ZodBoolean>;
983
+ description: z.ZodOptional<z.ZodString>;
984
+ type: z.ZodLiteral<"environment_secret">;
985
+ allowedHosts: z.ZodArray<z.ZodString>;
986
+ inject: z.ZodOptional<z.ZodObject<{
987
+ header: z.ZodString;
988
+ format: z.ZodString;
989
+ }, z.core.$strict>>;
990
+ }, z.core.$strict>, z.ZodObject<{
991
+ required: z.ZodOptional<z.ZodBoolean>;
992
+ description: z.ZodOptional<z.ZodString>;
993
+ type: z.ZodLiteral<"environment_variable">;
994
+ }, z.core.$strict>, z.ZodObject<{
995
+ via: z.ZodOptional<z.ZodString>;
996
+ identity: z.ZodOptional<z.ZodObject<{
997
+ header: z.ZodString;
998
+ }, z.core.$strict>>;
999
+ required: z.ZodOptional<z.ZodBoolean>;
1000
+ description: z.ZodOptional<z.ZodString>;
1001
+ type: z.ZodLiteral<"bearer">;
1002
+ url: z.ZodString;
1003
+ }, z.core.$strict>, z.ZodObject<{
1004
+ via: z.ZodOptional<z.ZodString>;
1005
+ identity: z.ZodOptional<z.ZodObject<{
1006
+ header: z.ZodString;
1007
+ }, z.core.$strict>>;
1008
+ required: z.ZodOptional<z.ZodBoolean>;
1009
+ description: z.ZodOptional<z.ZodString>;
1010
+ type: z.ZodLiteral<"headers">;
1011
+ url: z.ZodString;
1012
+ }, z.core.$strict>], "type">;
1013
+ export type EnvironmentSecretSlot = z.infer<typeof EnvironmentSecretSlotSchema>;
1014
+ /** The most secret slots one manifest declares. */
1015
+ export declare const ENVIRONMENT_SECRET_SLOTS_MAX = 64;
1016
+ export declare const EnvironmentSecretSlotsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1017
+ required: z.ZodOptional<z.ZodBoolean>;
1018
+ description: z.ZodOptional<z.ZodString>;
1019
+ type: z.ZodLiteral<"environment_secret">;
1020
+ allowedHosts: z.ZodArray<z.ZodString>;
1021
+ inject: z.ZodOptional<z.ZodObject<{
1022
+ header: z.ZodString;
1023
+ format: z.ZodString;
1024
+ }, z.core.$strict>>;
1025
+ }, z.core.$strict>, z.ZodObject<{
1026
+ required: z.ZodOptional<z.ZodBoolean>;
1027
+ description: z.ZodOptional<z.ZodString>;
1028
+ type: z.ZodLiteral<"environment_variable">;
1029
+ }, z.core.$strict>, z.ZodObject<{
1030
+ via: z.ZodOptional<z.ZodString>;
1031
+ identity: z.ZodOptional<z.ZodObject<{
1032
+ header: z.ZodString;
1033
+ }, z.core.$strict>>;
1034
+ required: z.ZodOptional<z.ZodBoolean>;
1035
+ description: z.ZodOptional<z.ZodString>;
1036
+ type: z.ZodLiteral<"bearer">;
1037
+ url: z.ZodString;
1038
+ }, z.core.$strict>, z.ZodObject<{
1039
+ via: z.ZodOptional<z.ZodString>;
1040
+ identity: z.ZodOptional<z.ZodObject<{
1041
+ header: z.ZodString;
1042
+ }, z.core.$strict>>;
1043
+ required: z.ZodOptional<z.ZodBoolean>;
1044
+ description: z.ZodOptional<z.ZodString>;
1045
+ type: z.ZodLiteral<"headers">;
1046
+ url: z.ZodString;
1047
+ }, z.core.$strict>], "type">>;
1048
+ export type EnvironmentSecretSlots = z.infer<typeof EnvironmentSecretSlotsSchema>;
1049
+ /** The schema version of an environment manifest; the Runtime refuses one it does not know. */
1050
+ export declare const ENVIRONMENT_MANIFEST_SCHEMA_VERSION = 1;
1051
+ /**
1052
+ * An environment manifest (protocol 14, D63): a named, versioned definition of a kind of
1053
+ * Environment, saved like an agent (`PUT /v1/environment-manifests/{name}`). It holds what every
1054
+ * Environment made from it shares; an Environment's id, labels, owner guard, disk and secret
1055
+ * values are its own. Written as a JSON file with `$schema`, which clients drop before saving.
1056
+ */
1057
+ export declare const EnvironmentManifestSchema: z.ZodObject<{
1058
+ manifestSchemaVersion: z.ZodLiteral<1>;
1059
+ name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1060
+ description: z.ZodOptional<z.ZodString>;
1061
+ kind: z.ZodOptional<z.ZodEnum<{
1062
+ none: "none";
1063
+ pod: "pod";
1064
+ virtual: "virtual";
1065
+ }>>;
1066
+ image: z.ZodOptional<z.ZodString>;
1067
+ resources: z.ZodOptional<z.ZodObject<{
1068
+ cpus: z.ZodOptional<z.ZodNumber>;
1069
+ memory: z.ZodOptional<z.ZodString>;
1070
+ }, z.core.$strict>>;
1071
+ storage: z.ZodOptional<z.ZodString>;
1072
+ network: z.ZodOptional<z.ZodObject<{
1073
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1074
+ }, z.core.$strict>>;
1075
+ harness: z.ZodOptional<z.ZodString>;
1076
+ lifecycle: z.ZodOptional<z.ZodObject<{
1077
+ idle: z.ZodOptional<z.ZodString>;
1078
+ deleteAfter: z.ZodOptional<z.ZodString>;
1079
+ }, z.core.$strict>>;
1080
+ setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
1081
+ command: z.ZodString;
1082
+ cwd: z.ZodOptional<z.ZodString>;
1083
+ timeout: z.ZodOptional<z.ZodString>;
1084
+ }, z.core.$strict>>>;
1085
+ files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1086
+ artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1087
+ version: z.ZodNumber;
1088
+ path: z.ZodString;
1089
+ }, z.core.$strict>, z.ZodObject<{
1090
+ path: z.ZodString;
1091
+ files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
1092
+ }, z.core.$strict>]>>>;
1093
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1094
+ required: z.ZodOptional<z.ZodBoolean>;
1095
+ description: z.ZodOptional<z.ZodString>;
1096
+ type: z.ZodLiteral<"environment_secret">;
1097
+ allowedHosts: z.ZodArray<z.ZodString>;
1098
+ inject: z.ZodOptional<z.ZodObject<{
1099
+ header: z.ZodString;
1100
+ format: z.ZodString;
1101
+ }, z.core.$strict>>;
1102
+ }, z.core.$strict>, z.ZodObject<{
1103
+ required: z.ZodOptional<z.ZodBoolean>;
1104
+ description: z.ZodOptional<z.ZodString>;
1105
+ type: z.ZodLiteral<"environment_variable">;
1106
+ }, z.core.$strict>, z.ZodObject<{
1107
+ via: z.ZodOptional<z.ZodString>;
1108
+ identity: z.ZodOptional<z.ZodObject<{
1109
+ header: z.ZodString;
1110
+ }, z.core.$strict>>;
1111
+ required: z.ZodOptional<z.ZodBoolean>;
1112
+ description: z.ZodOptional<z.ZodString>;
1113
+ type: z.ZodLiteral<"bearer">;
1114
+ url: z.ZodString;
1115
+ }, z.core.$strict>, z.ZodObject<{
1116
+ via: z.ZodOptional<z.ZodString>;
1117
+ identity: z.ZodOptional<z.ZodObject<{
1118
+ header: z.ZodString;
1119
+ }, z.core.$strict>>;
1120
+ required: z.ZodOptional<z.ZodBoolean>;
1121
+ description: z.ZodOptional<z.ZodString>;
1122
+ type: z.ZodLiteral<"headers">;
1123
+ url: z.ZodString;
1124
+ }, z.core.$strict>], "type">>>;
1125
+ }, z.core.$strict>;
1126
+ export type EnvironmentManifest = z.infer<typeof EnvironmentManifestSchema>;
1127
+ /** `PUT /v1/environment-manifests/{name}`: the manifest, whose `name` is the path's. */
1128
+ export declare const PutEnvironmentManifestRequestSchema: z.ZodObject<{
1129
+ manifestSchemaVersion: z.ZodLiteral<1>;
1130
+ name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1131
+ description: z.ZodOptional<z.ZodString>;
1132
+ kind: z.ZodOptional<z.ZodEnum<{
1133
+ none: "none";
1134
+ pod: "pod";
1135
+ virtual: "virtual";
1136
+ }>>;
1137
+ image: z.ZodOptional<z.ZodString>;
1138
+ resources: z.ZodOptional<z.ZodObject<{
1139
+ cpus: z.ZodOptional<z.ZodNumber>;
1140
+ memory: z.ZodOptional<z.ZodString>;
1141
+ }, z.core.$strict>>;
1142
+ storage: z.ZodOptional<z.ZodString>;
1143
+ network: z.ZodOptional<z.ZodObject<{
1144
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1145
+ }, z.core.$strict>>;
1146
+ harness: z.ZodOptional<z.ZodString>;
1147
+ lifecycle: z.ZodOptional<z.ZodObject<{
1148
+ idle: z.ZodOptional<z.ZodString>;
1149
+ deleteAfter: z.ZodOptional<z.ZodString>;
1150
+ }, z.core.$strict>>;
1151
+ setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
1152
+ command: z.ZodString;
1153
+ cwd: z.ZodOptional<z.ZodString>;
1154
+ timeout: z.ZodOptional<z.ZodString>;
1155
+ }, z.core.$strict>>>;
1156
+ files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1157
+ artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1158
+ version: z.ZodNumber;
1159
+ path: z.ZodString;
1160
+ }, z.core.$strict>, z.ZodObject<{
1161
+ path: z.ZodString;
1162
+ files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
1163
+ }, z.core.$strict>]>>>;
1164
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1165
+ required: z.ZodOptional<z.ZodBoolean>;
1166
+ description: z.ZodOptional<z.ZodString>;
1167
+ type: z.ZodLiteral<"environment_secret">;
1168
+ allowedHosts: z.ZodArray<z.ZodString>;
1169
+ inject: z.ZodOptional<z.ZodObject<{
1170
+ header: z.ZodString;
1171
+ format: z.ZodString;
1172
+ }, z.core.$strict>>;
1173
+ }, z.core.$strict>, z.ZodObject<{
1174
+ required: z.ZodOptional<z.ZodBoolean>;
1175
+ description: z.ZodOptional<z.ZodString>;
1176
+ type: z.ZodLiteral<"environment_variable">;
1177
+ }, z.core.$strict>, z.ZodObject<{
1178
+ via: z.ZodOptional<z.ZodString>;
1179
+ identity: z.ZodOptional<z.ZodObject<{
1180
+ header: z.ZodString;
1181
+ }, z.core.$strict>>;
1182
+ required: z.ZodOptional<z.ZodBoolean>;
1183
+ description: z.ZodOptional<z.ZodString>;
1184
+ type: z.ZodLiteral<"bearer">;
1185
+ url: z.ZodString;
1186
+ }, z.core.$strict>, z.ZodObject<{
1187
+ via: z.ZodOptional<z.ZodString>;
1188
+ identity: z.ZodOptional<z.ZodObject<{
1189
+ header: z.ZodString;
1190
+ }, z.core.$strict>>;
1191
+ required: z.ZodOptional<z.ZodBoolean>;
1192
+ description: z.ZodOptional<z.ZodString>;
1193
+ type: z.ZodLiteral<"headers">;
1194
+ url: z.ZodString;
1195
+ }, z.core.$strict>], "type">>>;
1196
+ requestId: z.ZodOptional<z.ZodString>;
1197
+ }, z.core.$strict>;
1198
+ export type PutEnvironmentManifestRequest = z.infer<typeof PutEnvironmentManifestRequestSchema>;
1199
+ /** Who saved a version: the subject a request acted for, else `application`. */
1200
+ export declare const EnvironmentManifestSavedBySchema: z.ZodObject<{
1201
+ actor: z.ZodString;
1202
+ }, z.core.$strict>;
1203
+ /** One version of an environment manifest. */
1204
+ export declare const EnvironmentManifestViewSchema: z.ZodObject<{
1205
+ name: z.ZodString;
1206
+ version: z.ZodNumber;
1207
+ hash: z.ZodString;
1208
+ manifest: z.ZodObject<{
1209
+ manifestSchemaVersion: z.ZodLiteral<1>;
1210
+ name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1211
+ description: z.ZodOptional<z.ZodString>;
1212
+ kind: z.ZodOptional<z.ZodEnum<{
1213
+ none: "none";
1214
+ pod: "pod";
1215
+ virtual: "virtual";
1216
+ }>>;
1217
+ image: z.ZodOptional<z.ZodString>;
1218
+ resources: z.ZodOptional<z.ZodObject<{
1219
+ cpus: z.ZodOptional<z.ZodNumber>;
1220
+ memory: z.ZodOptional<z.ZodString>;
1221
+ }, z.core.$strict>>;
1222
+ storage: z.ZodOptional<z.ZodString>;
1223
+ network: z.ZodOptional<z.ZodObject<{
1224
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1225
+ }, z.core.$strict>>;
1226
+ harness: z.ZodOptional<z.ZodString>;
1227
+ lifecycle: z.ZodOptional<z.ZodObject<{
1228
+ idle: z.ZodOptional<z.ZodString>;
1229
+ deleteAfter: z.ZodOptional<z.ZodString>;
1230
+ }, z.core.$strict>>;
1231
+ setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
1232
+ command: z.ZodString;
1233
+ cwd: z.ZodOptional<z.ZodString>;
1234
+ timeout: z.ZodOptional<z.ZodString>;
1235
+ }, z.core.$strict>>>;
1236
+ files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1237
+ artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1238
+ version: z.ZodNumber;
1239
+ path: z.ZodString;
1240
+ }, z.core.$strict>, z.ZodObject<{
1241
+ path: z.ZodString;
1242
+ files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
1243
+ }, z.core.$strict>]>>>;
1244
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1245
+ required: z.ZodOptional<z.ZodBoolean>;
1246
+ description: z.ZodOptional<z.ZodString>;
1247
+ type: z.ZodLiteral<"environment_secret">;
1248
+ allowedHosts: z.ZodArray<z.ZodString>;
1249
+ inject: z.ZodOptional<z.ZodObject<{
1250
+ header: z.ZodString;
1251
+ format: z.ZodString;
1252
+ }, z.core.$strict>>;
1253
+ }, z.core.$strict>, z.ZodObject<{
1254
+ required: z.ZodOptional<z.ZodBoolean>;
1255
+ description: z.ZodOptional<z.ZodString>;
1256
+ type: z.ZodLiteral<"environment_variable">;
1257
+ }, z.core.$strict>, z.ZodObject<{
1258
+ via: z.ZodOptional<z.ZodString>;
1259
+ identity: z.ZodOptional<z.ZodObject<{
1260
+ header: z.ZodString;
1261
+ }, z.core.$strict>>;
1262
+ required: z.ZodOptional<z.ZodBoolean>;
1263
+ description: z.ZodOptional<z.ZodString>;
1264
+ type: z.ZodLiteral<"bearer">;
1265
+ url: z.ZodString;
1266
+ }, z.core.$strict>, z.ZodObject<{
1267
+ via: z.ZodOptional<z.ZodString>;
1268
+ identity: z.ZodOptional<z.ZodObject<{
1269
+ header: z.ZodString;
1270
+ }, z.core.$strict>>;
1271
+ required: z.ZodOptional<z.ZodBoolean>;
1272
+ description: z.ZodOptional<z.ZodString>;
1273
+ type: z.ZodLiteral<"headers">;
1274
+ url: z.ZodString;
1275
+ }, z.core.$strict>], "type">>>;
1276
+ }, z.core.$strict>;
1277
+ savedBy: z.ZodObject<{
1278
+ actor: z.ZodString;
1279
+ }, z.core.$strict>;
1280
+ createdAt: z.ZodString;
1281
+ environments: z.ZodNumber;
1282
+ }, z.core.$strict>;
1283
+ export type EnvironmentManifestView = z.infer<typeof EnvironmentManifestViewSchema>;
1284
+ /** `GET /v1/environment-manifests`: each manifest's latest version, by name. */
1285
+ export declare const ListEnvironmentManifestsResponseSchema: z.ZodObject<{
1286
+ manifests: z.ZodArray<z.ZodObject<{
1287
+ name: z.ZodString;
1288
+ version: z.ZodNumber;
1289
+ hash: z.ZodString;
1290
+ manifest: z.ZodObject<{
1291
+ manifestSchemaVersion: z.ZodLiteral<1>;
1292
+ name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1293
+ description: z.ZodOptional<z.ZodString>;
1294
+ kind: z.ZodOptional<z.ZodEnum<{
1295
+ none: "none";
1296
+ pod: "pod";
1297
+ virtual: "virtual";
1298
+ }>>;
1299
+ image: z.ZodOptional<z.ZodString>;
1300
+ resources: z.ZodOptional<z.ZodObject<{
1301
+ cpus: z.ZodOptional<z.ZodNumber>;
1302
+ memory: z.ZodOptional<z.ZodString>;
1303
+ }, z.core.$strict>>;
1304
+ storage: z.ZodOptional<z.ZodString>;
1305
+ network: z.ZodOptional<z.ZodObject<{
1306
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1307
+ }, z.core.$strict>>;
1308
+ harness: z.ZodOptional<z.ZodString>;
1309
+ lifecycle: z.ZodOptional<z.ZodObject<{
1310
+ idle: z.ZodOptional<z.ZodString>;
1311
+ deleteAfter: z.ZodOptional<z.ZodString>;
1312
+ }, z.core.$strict>>;
1313
+ setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
1314
+ command: z.ZodString;
1315
+ cwd: z.ZodOptional<z.ZodString>;
1316
+ timeout: z.ZodOptional<z.ZodString>;
1317
+ }, z.core.$strict>>>;
1318
+ files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1319
+ artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1320
+ version: z.ZodNumber;
1321
+ path: z.ZodString;
1322
+ }, z.core.$strict>, z.ZodObject<{
1323
+ path: z.ZodString;
1324
+ files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
1325
+ }, z.core.$strict>]>>>;
1326
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1327
+ required: z.ZodOptional<z.ZodBoolean>;
1328
+ description: z.ZodOptional<z.ZodString>;
1329
+ type: z.ZodLiteral<"environment_secret">;
1330
+ allowedHosts: z.ZodArray<z.ZodString>;
1331
+ inject: z.ZodOptional<z.ZodObject<{
1332
+ header: z.ZodString;
1333
+ format: z.ZodString;
1334
+ }, z.core.$strict>>;
1335
+ }, z.core.$strict>, z.ZodObject<{
1336
+ required: z.ZodOptional<z.ZodBoolean>;
1337
+ description: z.ZodOptional<z.ZodString>;
1338
+ type: z.ZodLiteral<"environment_variable">;
1339
+ }, z.core.$strict>, z.ZodObject<{
1340
+ via: z.ZodOptional<z.ZodString>;
1341
+ identity: z.ZodOptional<z.ZodObject<{
1342
+ header: z.ZodString;
1343
+ }, z.core.$strict>>;
1344
+ required: z.ZodOptional<z.ZodBoolean>;
1345
+ description: z.ZodOptional<z.ZodString>;
1346
+ type: z.ZodLiteral<"bearer">;
1347
+ url: z.ZodString;
1348
+ }, z.core.$strict>, z.ZodObject<{
1349
+ via: z.ZodOptional<z.ZodString>;
1350
+ identity: z.ZodOptional<z.ZodObject<{
1351
+ header: z.ZodString;
1352
+ }, z.core.$strict>>;
1353
+ required: z.ZodOptional<z.ZodBoolean>;
1354
+ description: z.ZodOptional<z.ZodString>;
1355
+ type: z.ZodLiteral<"headers">;
1356
+ url: z.ZodString;
1357
+ }, z.core.$strict>], "type">>>;
1358
+ }, z.core.$strict>;
1359
+ savedBy: z.ZodObject<{
1360
+ actor: z.ZodString;
1361
+ }, z.core.$strict>;
1362
+ createdAt: z.ZodString;
1363
+ environments: z.ZodNumber;
1364
+ }, z.core.$strict>>;
1365
+ }, z.core.$strict>;
1366
+ export type ListEnvironmentManifestsResponse = z.infer<typeof ListEnvironmentManifestsResponseSchema>;
1367
+ /** `GET /v1/environment-manifests/{name}/versions`: every version, newest first. */
1368
+ export declare const EnvironmentManifestVersionsSchema: z.ZodObject<{
1369
+ name: z.ZodString;
1370
+ latest: z.ZodNumber;
1371
+ versions: z.ZodArray<z.ZodObject<{
1372
+ version: z.ZodNumber;
1373
+ hash: z.ZodString;
1374
+ savedBy: z.ZodObject<{
1375
+ actor: z.ZodString;
1376
+ }, z.core.$strict>;
1377
+ createdAt: z.ZodString;
1378
+ environments: z.ZodNumber;
1379
+ }, z.core.$strict>>;
1380
+ }, z.core.$strict>;
1381
+ export type EnvironmentManifestVersions = z.infer<typeof EnvironmentManifestVersionsSchema>;
1382
+ /** Something a save would do that the saver should know: never a refusal. */
1383
+ export declare const EnvironmentManifestWarningSchema: z.ZodObject<{
1384
+ code: z.ZodString;
1385
+ message: z.ZodString;
1386
+ }, z.core.$strict>;
1387
+ export type EnvironmentManifestWarning = z.infer<typeof EnvironmentManifestWarningSchema>;
1388
+ /**
1389
+ * `PUT /v1/environment-manifests/{name}?dryRun=true`: what saving it would do, with nothing
1390
+ * saved. `errors` lists every reason the Runtime would refuse it (the Tenant's limits, for one);
1391
+ * a save with errors is `400`. `behind` counts the Environments made from an older version than
1392
+ * the one it would save. No Environment changes when a version is saved (D63).
1393
+ */
1394
+ export declare const EnvironmentManifestPlanSchema: z.ZodObject<{
1395
+ name: z.ZodString;
1396
+ from: z.ZodNullable<z.ZodNumber>;
1397
+ to: z.ZodNumber;
1398
+ unchanged: z.ZodBoolean;
1399
+ changes: z.ZodArray<z.ZodObject<{
1400
+ path: z.ZodString;
1401
+ from: z.ZodOptional<z.ZodUnknown>;
1402
+ to: z.ZodOptional<z.ZodUnknown>;
1403
+ }, z.core.$strict>>;
1404
+ warnings: z.ZodArray<z.ZodObject<{
1405
+ code: z.ZodString;
1406
+ message: z.ZodString;
1407
+ }, z.core.$strict>>;
1408
+ errors: z.ZodArray<z.ZodString>;
1409
+ behind: z.ZodNumber;
1410
+ }, z.core.$strict>;
1411
+ export type EnvironmentManifestPlan = z.infer<typeof EnvironmentManifestPlanSchema>;
1412
+ /** `PUT /v1/environment-manifests/{name}`: the version saved (or the latest, unchanged). */
1413
+ export declare const SaveEnvironmentManifestResponseSchema: z.ZodObject<{
1414
+ manifest: z.ZodObject<{
1415
+ name: z.ZodString;
1416
+ version: z.ZodNumber;
1417
+ hash: z.ZodString;
1418
+ manifest: z.ZodObject<{
1419
+ manifestSchemaVersion: z.ZodLiteral<1>;
1420
+ name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1421
+ description: z.ZodOptional<z.ZodString>;
1422
+ kind: z.ZodOptional<z.ZodEnum<{
1423
+ none: "none";
1424
+ pod: "pod";
1425
+ virtual: "virtual";
1426
+ }>>;
1427
+ image: z.ZodOptional<z.ZodString>;
1428
+ resources: z.ZodOptional<z.ZodObject<{
1429
+ cpus: z.ZodOptional<z.ZodNumber>;
1430
+ memory: z.ZodOptional<z.ZodString>;
1431
+ }, z.core.$strict>>;
1432
+ storage: z.ZodOptional<z.ZodString>;
1433
+ network: z.ZodOptional<z.ZodObject<{
1434
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1435
+ }, z.core.$strict>>;
1436
+ harness: z.ZodOptional<z.ZodString>;
1437
+ lifecycle: z.ZodOptional<z.ZodObject<{
1438
+ idle: z.ZodOptional<z.ZodString>;
1439
+ deleteAfter: z.ZodOptional<z.ZodString>;
1440
+ }, z.core.$strict>>;
1441
+ setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
1442
+ command: z.ZodString;
1443
+ cwd: z.ZodOptional<z.ZodString>;
1444
+ timeout: z.ZodOptional<z.ZodString>;
1445
+ }, z.core.$strict>>>;
1446
+ files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1447
+ artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1448
+ version: z.ZodNumber;
1449
+ path: z.ZodString;
1450
+ }, z.core.$strict>, z.ZodObject<{
1451
+ path: z.ZodString;
1452
+ files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
1453
+ }, z.core.$strict>]>>>;
1454
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1455
+ required: z.ZodOptional<z.ZodBoolean>;
1456
+ description: z.ZodOptional<z.ZodString>;
1457
+ type: z.ZodLiteral<"environment_secret">;
1458
+ allowedHosts: z.ZodArray<z.ZodString>;
1459
+ inject: z.ZodOptional<z.ZodObject<{
1460
+ header: z.ZodString;
1461
+ format: z.ZodString;
1462
+ }, z.core.$strict>>;
1463
+ }, z.core.$strict>, z.ZodObject<{
1464
+ required: z.ZodOptional<z.ZodBoolean>;
1465
+ description: z.ZodOptional<z.ZodString>;
1466
+ type: z.ZodLiteral<"environment_variable">;
1467
+ }, z.core.$strict>, z.ZodObject<{
1468
+ via: z.ZodOptional<z.ZodString>;
1469
+ identity: z.ZodOptional<z.ZodObject<{
1470
+ header: z.ZodString;
1471
+ }, z.core.$strict>>;
1472
+ required: z.ZodOptional<z.ZodBoolean>;
1473
+ description: z.ZodOptional<z.ZodString>;
1474
+ type: z.ZodLiteral<"bearer">;
1475
+ url: z.ZodString;
1476
+ }, z.core.$strict>, z.ZodObject<{
1477
+ via: z.ZodOptional<z.ZodString>;
1478
+ identity: z.ZodOptional<z.ZodObject<{
1479
+ header: z.ZodString;
1480
+ }, z.core.$strict>>;
1481
+ required: z.ZodOptional<z.ZodBoolean>;
1482
+ description: z.ZodOptional<z.ZodString>;
1483
+ type: z.ZodLiteral<"headers">;
1484
+ url: z.ZodString;
1485
+ }, z.core.$strict>], "type">>>;
1486
+ }, z.core.$strict>;
1487
+ savedBy: z.ZodObject<{
1488
+ actor: z.ZodString;
1489
+ }, z.core.$strict>;
1490
+ createdAt: z.ZodString;
1491
+ environments: z.ZodNumber;
1492
+ }, z.core.$strict>;
1493
+ unchanged: z.ZodBoolean;
1494
+ warnings: z.ZodArray<z.ZodObject<{
1495
+ code: z.ZodString;
1496
+ message: z.ZodString;
1497
+ }, z.core.$strict>>;
1498
+ }, z.core.$strict>;
1499
+ export type SaveEnvironmentManifestResponse = z.infer<typeof SaveEnvironmentManifestResponseSchema>;
1500
+ export declare const DeleteEnvironmentManifestResponseSchema: z.ZodObject<{
1501
+ name: z.ZodString;
1502
+ deleted: z.ZodBoolean;
1503
+ }, z.core.$strict>;
1504
+ export type DeleteEnvironmentManifestResponse = z.infer<typeof DeleteEnvironmentManifestResponseSchema>;
691
1505
  /**
692
- * `PUT /v1/environments/{environmentId}/secrets/{name}` (D56): creates or replaces one credential
693
- * in the Environment's vault. For `environment_secret` and `environment_variable` the name is
694
- * the variable's name (a POSIX name, not reserved); for `bearer` and `headers` it is a label.
695
- * The same name and type keeps the credential and re-seals its value and binding; another type
696
- * replaces it. Values are write-only: no route reads them back. Two `environment_secret`
697
- * credentials bound to one host, or two `bearer`/`headers` credentials for one URL, are
698
- * `409 credential_conflict`.
1506
+ * `POST /v1/environments/{id}/fork` (Q15): how an Environment gets a new manifest version. The
1507
+ * fork is a new Environment, made from the version, its disk started from a version of the
1508
+ * source's disk and its secrets copied inside the Runtime. The source keeps what it runs, its
1509
+ * disk and its sessions.
699
1510
  */
700
- export declare const PutEnvironmentSecretRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1511
+ export declare const ForkEnvironmentRequestSchema: z.ZodObject<{
701
1512
  requestId: z.ZodOptional<z.ZodString>;
702
- type: z.ZodLiteral<"environment_secret">;
703
- value: z.ZodString;
704
- allowedHosts: z.ZodArray<z.ZodString>;
705
- inject: z.ZodOptional<z.ZodObject<{
706
- header: z.ZodString;
707
- format: z.ZodString;
1513
+ id: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1514
+ manifest: z.ZodOptional<z.ZodString>;
1515
+ disk: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"latest">, z.ZodLiteral<"empty">, z.ZodNumber]>>;
1516
+ secrets: z.ZodOptional<z.ZodEnum<{
1517
+ copy: "copy";
1518
+ none: "none";
1519
+ }>>;
1520
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1521
+ ownerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1522
+ dryRun: z.ZodOptional<z.ZodBoolean>;
1523
+ }, z.core.$strict>;
1524
+ export type ForkEnvironmentRequest = z.infer<typeof ForkEnvironmentRequestSchema>;
1525
+ /** What a fork does (or, with `dryRun`, would do). */
1526
+ export declare const EnvironmentForkPlanSchema: z.ZodObject<{
1527
+ source: z.ZodString;
1528
+ id: z.ZodString;
1529
+ kind: z.ZodEnum<{
1530
+ none: "none";
1531
+ pod: "pod";
1532
+ virtual: "virtual";
1533
+ }>;
1534
+ manifest: z.ZodNullable<z.ZodObject<{
1535
+ name: z.ZodString;
1536
+ version: z.ZodNumber;
708
1537
  }, z.core.$strict>>;
709
- }, z.core.$strict>, z.ZodObject<{
710
- requestId: z.ZodOptional<z.ZodString>;
711
- type: z.ZodLiteral<"environment_variable">;
712
- value: z.ZodString;
713
- }, z.core.$strict>, z.ZodObject<{
714
- via: z.ZodOptional<z.ZodString>;
715
- identity: z.ZodOptional<z.ZodObject<{
716
- header: z.ZodString;
1538
+ disk: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"latest">]>>;
1539
+ setup: z.ZodBoolean;
1540
+ secrets: z.ZodObject<{
1541
+ copied: z.ZodArray<z.ZodString>;
1542
+ dropped: z.ZodArray<z.ZodString>;
1543
+ missing: z.ZodArray<z.ZodString>;
1544
+ }, z.core.$strict>;
1545
+ changes: z.ZodArray<z.ZodObject<{
1546
+ path: z.ZodString;
1547
+ from: z.ZodOptional<z.ZodUnknown>;
1548
+ to: z.ZodOptional<z.ZodUnknown>;
717
1549
  }, z.core.$strict>>;
718
- requestId: z.ZodOptional<z.ZodString>;
719
- type: z.ZodLiteral<"bearer">;
720
- url: z.ZodString;
721
- value: z.ZodString;
1550
+ sessions: z.ZodNumber;
1551
+ }, z.core.$strict>;
1552
+ export type EnvironmentForkPlan = z.infer<typeof EnvironmentForkPlanSchema>;
1553
+ /** `POST /v1/environments/{id}/fork`: the new Environment and the plan it ran, or with `dryRun` the plan only. */
1554
+ export declare const ForkEnvironmentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1555
+ dryRun: z.ZodLiteral<true>;
1556
+ plan: z.ZodObject<{
1557
+ source: z.ZodString;
1558
+ id: z.ZodString;
1559
+ kind: z.ZodEnum<{
1560
+ none: "none";
1561
+ pod: "pod";
1562
+ virtual: "virtual";
1563
+ }>;
1564
+ manifest: z.ZodNullable<z.ZodObject<{
1565
+ name: z.ZodString;
1566
+ version: z.ZodNumber;
1567
+ }, z.core.$strict>>;
1568
+ disk: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"latest">]>>;
1569
+ setup: z.ZodBoolean;
1570
+ secrets: z.ZodObject<{
1571
+ copied: z.ZodArray<z.ZodString>;
1572
+ dropped: z.ZodArray<z.ZodString>;
1573
+ missing: z.ZodArray<z.ZodString>;
1574
+ }, z.core.$strict>;
1575
+ changes: z.ZodArray<z.ZodObject<{
1576
+ path: z.ZodString;
1577
+ from: z.ZodOptional<z.ZodUnknown>;
1578
+ to: z.ZodOptional<z.ZodUnknown>;
1579
+ }, z.core.$strict>>;
1580
+ sessions: z.ZodNumber;
1581
+ }, z.core.$strict>;
722
1582
  }, z.core.$strict>, z.ZodObject<{
723
- via: z.ZodOptional<z.ZodString>;
724
- identity: z.ZodOptional<z.ZodObject<{
725
- header: z.ZodString;
726
- }, z.core.$strict>>;
727
- requestId: z.ZodOptional<z.ZodString>;
728
- type: z.ZodLiteral<"headers">;
729
- url: z.ZodString;
730
- headers: z.ZodRecord<z.ZodString, z.ZodString>;
731
- }, z.core.$strict>], "type">;
732
- export type PutEnvironmentSecretRequest = z.infer<typeof PutEnvironmentSecretRequestSchema>;
733
- /** Whether `name` may name a secret of `type` (`PUT .../secrets/{name}`); a message when not. */
734
- export declare function environmentSecretNameError(type: PutEnvironmentSecretRequest["type"], name: string): string | undefined;
1583
+ environment: z.ZodObject<{
1584
+ id: z.ZodString;
1585
+ kind: z.ZodEnum<{
1586
+ none: "none";
1587
+ pod: "pod";
1588
+ virtual: "virtual";
1589
+ }>;
1590
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
1591
+ manifest: z.ZodObject<{
1592
+ image: z.ZodOptional<z.ZodString>;
1593
+ resources: z.ZodOptional<z.ZodObject<{
1594
+ cpus: z.ZodNumber;
1595
+ memory: z.ZodString;
1596
+ }, z.core.$strict>>;
1597
+ storage: z.ZodOptional<z.ZodString>;
1598
+ network: z.ZodOptional<z.ZodObject<{
1599
+ allowedHosts: z.ZodArray<z.ZodString>;
1600
+ }, z.core.$strict>>;
1601
+ harness: z.ZodString;
1602
+ lifecycle: z.ZodObject<{
1603
+ idle: z.ZodOptional<z.ZodString>;
1604
+ deleteAfter: z.ZodOptional<z.ZodString>;
1605
+ }, z.core.$strict>;
1606
+ setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
1607
+ command: z.ZodString;
1608
+ cwd: z.ZodOptional<z.ZodString>;
1609
+ timeout: z.ZodOptional<z.ZodString>;
1610
+ }, z.core.$strict>>>;
1611
+ files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1612
+ artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
1613
+ version: z.ZodNumber;
1614
+ path: z.ZodString;
1615
+ }, z.core.$strict>, z.ZodObject<{
1616
+ path: z.ZodString;
1617
+ files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
1618
+ }, z.core.$strict>]>>>;
1619
+ secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1620
+ required: z.ZodOptional<z.ZodBoolean>;
1621
+ description: z.ZodOptional<z.ZodString>;
1622
+ type: z.ZodLiteral<"environment_secret">;
1623
+ allowedHosts: z.ZodArray<z.ZodString>;
1624
+ inject: z.ZodOptional<z.ZodObject<{
1625
+ header: z.ZodString;
1626
+ format: z.ZodString;
1627
+ }, z.core.$strict>>;
1628
+ }, z.core.$strict>, z.ZodObject<{
1629
+ required: z.ZodOptional<z.ZodBoolean>;
1630
+ description: z.ZodOptional<z.ZodString>;
1631
+ type: z.ZodLiteral<"environment_variable">;
1632
+ }, z.core.$strict>, z.ZodObject<{
1633
+ via: z.ZodOptional<z.ZodString>;
1634
+ identity: z.ZodOptional<z.ZodObject<{
1635
+ header: z.ZodString;
1636
+ }, z.core.$strict>>;
1637
+ required: z.ZodOptional<z.ZodBoolean>;
1638
+ description: z.ZodOptional<z.ZodString>;
1639
+ type: z.ZodLiteral<"bearer">;
1640
+ url: z.ZodString;
1641
+ }, z.core.$strict>, z.ZodObject<{
1642
+ via: z.ZodOptional<z.ZodString>;
1643
+ identity: z.ZodOptional<z.ZodObject<{
1644
+ header: z.ZodString;
1645
+ }, z.core.$strict>>;
1646
+ required: z.ZodOptional<z.ZodBoolean>;
1647
+ description: z.ZodOptional<z.ZodString>;
1648
+ type: z.ZodLiteral<"headers">;
1649
+ url: z.ZodString;
1650
+ }, z.core.$strict>], "type">>>>;
1651
+ }, z.core.$strict>;
1652
+ manifestName: z.ZodOptional<z.ZodString>;
1653
+ manifestVersion: z.ZodOptional<z.ZodNumber>;
1654
+ manifestHash: z.ZodOptional<z.ZodString>;
1655
+ forkedFrom: z.ZodOptional<z.ZodObject<{
1656
+ environment: z.ZodString;
1657
+ disk: z.ZodNullable<z.ZodNumber>;
1658
+ }, z.core.$strict>>;
1659
+ slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
1660
+ name: z.ZodString;
1661
+ type: z.ZodString;
1662
+ required: z.ZodBoolean;
1663
+ set: z.ZodBoolean;
1664
+ }, z.core.$strict>>>;
1665
+ version: z.ZodNumber;
1666
+ appliedVersion: z.ZodNumber;
1667
+ ownerUserId: z.ZodNullable<z.ZodString>;
1668
+ state: z.ZodString;
1669
+ pod: z.ZodOptional<z.ZodObject<{
1670
+ desired: z.ZodEnum<{
1671
+ deleted: "deleted";
1672
+ running: "running";
1673
+ suspended: "suspended";
1674
+ }>;
1675
+ observed: z.ZodEnum<{
1676
+ creating: "creating";
1677
+ deleting: "deleting";
1678
+ failed: "failed";
1679
+ lost: "lost";
1680
+ running: "running";
1681
+ suspended: "suspended";
1682
+ }>;
1683
+ volumeGeneration: z.ZodNumber;
1684
+ hostEpoch: z.ZodNumber;
1685
+ reason: z.ZodOptional<z.ZodString>;
1686
+ imageDigest: z.ZodOptional<z.ZodString>;
1687
+ }, z.core.$strict>>;
1688
+ lastUsedAt: z.ZodString;
1689
+ disk: z.ZodOptional<z.ZodObject<{
1690
+ latestVersion: z.ZodNullable<z.ZodNumber>;
1691
+ operation: z.ZodOptional<z.ZodObject<{
1692
+ kind: z.ZodEnum<{
1693
+ restore: "restore";
1694
+ seed: "seed";
1695
+ snapshot: "snapshot";
1696
+ }>;
1697
+ version: z.ZodOptional<z.ZodNumber>;
1698
+ startedAt: z.ZodString;
1699
+ }, z.core.$strict>>;
1700
+ }, z.core.$strict>>;
1701
+ sessions: z.ZodArray<z.ZodObject<{
1702
+ id: z.ZodString;
1703
+ activeTurnId: z.ZodNullable<z.ZodString>;
1704
+ }, z.core.$strict>>;
1705
+ createdAt: z.ZodString;
1706
+ updatedAt: z.ZodString;
1707
+ }, z.core.$strict>;
1708
+ plan: z.ZodObject<{
1709
+ source: z.ZodString;
1710
+ id: z.ZodString;
1711
+ kind: z.ZodEnum<{
1712
+ none: "none";
1713
+ pod: "pod";
1714
+ virtual: "virtual";
1715
+ }>;
1716
+ manifest: z.ZodNullable<z.ZodObject<{
1717
+ name: z.ZodString;
1718
+ version: z.ZodNumber;
1719
+ }, z.core.$strict>>;
1720
+ disk: z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"latest">]>>;
1721
+ setup: z.ZodBoolean;
1722
+ secrets: z.ZodObject<{
1723
+ copied: z.ZodArray<z.ZodString>;
1724
+ dropped: z.ZodArray<z.ZodString>;
1725
+ missing: z.ZodArray<z.ZodString>;
1726
+ }, z.core.$strict>;
1727
+ changes: z.ZodArray<z.ZodObject<{
1728
+ path: z.ZodString;
1729
+ from: z.ZodOptional<z.ZodUnknown>;
1730
+ to: z.ZodOptional<z.ZodUnknown>;
1731
+ }, z.core.$strict>>;
1732
+ sessions: z.ZodNumber;
1733
+ }, z.core.$strict>;
1734
+ }, z.core.$strict>]>;
1735
+ export type ForkEnvironmentResponse = z.infer<typeof ForkEnvironmentResponseSchema>;
1736
+ /**
1737
+ * What a model may read (protocol 12): `text` always; `image`, `pdf`, `office` (Word, Excel,
1738
+ * PowerPoint), `audio` and `video` when its catalog entry or the operator says so. In this order.
1739
+ */
1740
+ export declare const MODEL_INPUTS: readonly ["text", "image", "pdf", "office", "audio", "video"];
1741
+ export declare const ModelInputSchema: z.ZodEnum<{
1742
+ audio: "audio";
1743
+ image: "image";
1744
+ office: "office";
1745
+ pdf: "pdf";
1746
+ text: "text";
1747
+ video: "video";
1748
+ }>;
1749
+ export type ModelInput = z.infer<typeof ModelInputSchema>;
735
1750
  /**
736
1751
  * What the Runtime cannot learn from a custom OpenAI-compatible endpoint (Model Calls §7):
737
- * its context window and output limit, whether it reasons, and pi-ai `compat` settings
738
- * (`thinkingFormat`, `thinkingTokenBudgetField`, `chatTemplateKwargs`, …).
1752
+ * its context window and output limit, whether it reasons, what it reads (`inputs`; default text
1753
+ * only) and pi-ai `compat` settings (`thinkingFormat`, `thinkingTokenBudgetField`,
1754
+ * `chatTemplateKwargs`, …).
739
1755
  */
740
1756
  export declare const CustomModelSettingsSchema: z.ZodObject<{
741
1757
  contextWindow: z.ZodOptional<z.ZodNumber>;
742
1758
  maxTokens: z.ZodOptional<z.ZodNumber>;
743
1759
  reasoning: z.ZodOptional<z.ZodBoolean>;
1760
+ inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1761
+ audio: "audio";
1762
+ image: "image";
1763
+ office: "office";
1764
+ pdf: "pdf";
1765
+ text: "text";
1766
+ video: "video";
1767
+ }>>>;
744
1768
  compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
745
1769
  }, z.core.$strict>;
746
1770
  export type CustomModelSettings = z.infer<typeof CustomModelSettingsSchema>;
@@ -754,6 +1778,14 @@ export declare const PutHostModelRequestSchema: z.ZodObject<{
754
1778
  contextWindow: z.ZodOptional<z.ZodNumber>;
755
1779
  maxTokens: z.ZodOptional<z.ZodNumber>;
756
1780
  reasoning: z.ZodOptional<z.ZodBoolean>;
1781
+ inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1782
+ audio: "audio";
1783
+ image: "image";
1784
+ office: "office";
1785
+ pdf: "pdf";
1786
+ text: "text";
1787
+ video: "video";
1788
+ }>>>;
757
1789
  compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
758
1790
  }, z.core.$strict>>;
759
1791
  auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1349,6 +2381,7 @@ export type AcceptedResponse = z.infer<typeof AcceptedResponseSchema>;
1349
2381
  export declare const RejectedResponseSchema: z.ZodObject<{
1350
2382
  status: z.ZodLiteral<"rejected">;
1351
2383
  code: z.ZodEnum<{
2384
+ attachment_unsupported: "attachment_unsupported";
1352
2385
  connection_missing: "connection_missing";
1353
2386
  credential_conflict: "credential_conflict";
1354
2387
  credential_invalid: "credential_invalid";
@@ -1356,10 +2389,12 @@ export declare const RejectedResponseSchema: z.ZodObject<{
1356
2389
  credential_required: "credential_required";
1357
2390
  definition_files_missing: "definition_files_missing";
1358
2391
  environment_busy: "environment_busy";
2392
+ environment_immutable: "environment_immutable";
1359
2393
  environment_lost: "environment_lost";
1360
2394
  environment_not_granted: "environment_not_granted";
1361
2395
  environment_owner_mismatch: "environment_owner_mismatch";
1362
2396
  environment_unavailable: "environment_unavailable";
2397
+ environment_unsuitable: "environment_unsuitable";
1363
2398
  harness_mismatch: "harness_mismatch";
1364
2399
  host_rejected: "host_rejected";
1365
2400
  incompatible_host: "incompatible_host";
@@ -1368,6 +2403,9 @@ export declare const RejectedResponseSchema: z.ZodObject<{
1368
2403
  issuer_unavailable: "issuer_unavailable";
1369
2404
  key_role_mismatch: "key_role_mismatch";
1370
2405
  limit_exceeded: "limit_exceeded";
2406
+ manifest_changed: "manifest_changed";
2407
+ manifest_in_use: "manifest_in_use";
2408
+ manifest_not_found: "manifest_not_found";
1371
2409
  mcp_preview_failed: "mcp_preview_failed";
1372
2410
  not_found: "not_found";
1373
2411
  origin_rejected: "origin_rejected";
@@ -1375,6 +2413,7 @@ export declare const RejectedResponseSchema: z.ZodObject<{
1375
2413
  protocol_unsupported: "protocol_unsupported";
1376
2414
  request_rejected: "request_rejected";
1377
2415
  scope_required: "scope_required";
2416
+ secret_not_in_manifest: "secret_not_in_manifest";
1378
2417
  session_closed: "session_closed";
1379
2418
  subject_invalid: "subject_invalid";
1380
2419
  subject_required: "subject_required";
@@ -1525,7 +2564,12 @@ export declare const ContextCompactedPayloadSchema: z.ZodObject<{
1525
2564
  /** How a tool call ended (R5.1): the tool answered, the Runtime ended it, or a cancel did. */
1526
2565
  export declare const TOOL_CALL_STATUSES: readonly ["completed", "failed", "cancelled"];
1527
2566
  /** Where a tool call ran (R5.1): a remote MCP server, an HTTP tool, the sandbox, or core. */
1528
- export declare const TOOL_CALL_KINDS: readonly ["mcp", "http", "sandbox", "platform"];
2567
+ /**
2568
+ * Where a tool call runs: an MCP server, an HTTP tool's URL, the session's sandbox, the Runtime
2569
+ * itself (`platform`: the artifact, skill and deferred-tool tools), or the harness that runs the
2570
+ * turn (`harness`: a tool it declared in `hello.features.tools`).
2571
+ */
2572
+ export declare const TOOL_CALL_KINDS: readonly ["mcp", "http", "sandbox", "platform", "harness"];
1529
2573
  /**
1530
2574
  * What the Tenant's tool policy did with a tool call (R5 step 2), when it did more than allow
1531
2575
  * it: `deny` refused it unsent; `ask` held it for a person, who approved it (`approvedBy`, when
@@ -1556,7 +2600,6 @@ export declare const ToolCompletedPayloadSchema: z.ZodObject<{
1556
2600
  callId: z.ZodString;
1557
2601
  invocationId: z.ZodString;
1558
2602
  effectId: z.ZodOptional<z.ZodString>;
1559
- capabilityId: z.ZodString;
1560
2603
  toolName: z.ZodString;
1561
2604
  status: z.ZodOptional<z.ZodEnum<{
1562
2605
  cancelled: "cancelled";
@@ -1564,12 +2607,18 @@ export declare const ToolCompletedPayloadSchema: z.ZodObject<{
1564
2607
  failed: "failed";
1565
2608
  }>>;
1566
2609
  kind: z.ZodOptional<z.ZodEnum<{
2610
+ harness: "harness";
1567
2611
  http: "http";
1568
2612
  mcp: "mcp";
1569
2613
  platform: "platform";
1570
2614
  sandbox: "sandbox";
1571
2615
  }>>;
1572
2616
  server: z.ZodOptional<z.ZodString>;
2617
+ skill: z.ZodOptional<z.ZodString>;
2618
+ plugin: z.ZodOptional<z.ZodObject<{
2619
+ name: z.ZodString;
2620
+ version: z.ZodOptional<z.ZodString>;
2621
+ }, z.core.$strict>>;
1573
2622
  attempts: z.ZodOptional<z.ZodNumber>;
1574
2623
  durationMs: z.ZodOptional<z.ZodNumber>;
1575
2624
  gate: z.ZodOptional<z.ZodObject<{
@@ -1753,7 +2802,6 @@ declare const TRANSCRIPT_PAYLOADS: {
1753
2802
  callId: z.ZodString;
1754
2803
  invocationId: z.ZodString;
1755
2804
  effectId: z.ZodOptional<z.ZodString>;
1756
- capabilityId: z.ZodString;
1757
2805
  toolName: z.ZodString;
1758
2806
  status: z.ZodOptional<z.ZodEnum<{
1759
2807
  cancelled: "cancelled";
@@ -1761,12 +2809,18 @@ declare const TRANSCRIPT_PAYLOADS: {
1761
2809
  failed: "failed";
1762
2810
  }>>;
1763
2811
  kind: z.ZodOptional<z.ZodEnum<{
2812
+ harness: "harness";
1764
2813
  http: "http";
1765
2814
  mcp: "mcp";
1766
2815
  platform: "platform";
1767
2816
  sandbox: "sandbox";
1768
2817
  }>>;
1769
2818
  server: z.ZodOptional<z.ZodString>;
2819
+ skill: z.ZodOptional<z.ZodString>;
2820
+ plugin: z.ZodOptional<z.ZodObject<{
2821
+ name: z.ZodString;
2822
+ version: z.ZodOptional<z.ZodString>;
2823
+ }, z.core.$strict>>;
1770
2824
  attempts: z.ZodOptional<z.ZodNumber>;
1771
2825
  durationMs: z.ZodOptional<z.ZodNumber>;
1772
2826
  gate: z.ZodOptional<z.ZodObject<{
@@ -2083,8 +3137,11 @@ export declare const ArtifactExportFailedPayloadSchema: z.ZodObject<{
2083
3137
  /** What readying one declared MCP server found (`mcp.discovered`). */
2084
3138
  export declare const McpServerOutcomeSchema: z.ZodObject<{
2085
3139
  agentId: z.ZodOptional<z.ZodString>;
2086
- capabilityId: z.ZodString;
2087
3140
  serverName: z.ZodString;
3141
+ plugin: z.ZodOptional<z.ZodObject<{
3142
+ name: z.ZodString;
3143
+ version: z.ZodOptional<z.ZodString>;
3144
+ }, z.core.$strict>>;
2088
3145
  outcome: z.ZodEnum<{
2089
3146
  connected: "connected";
2090
3147
  failed: "failed";
@@ -2110,8 +3167,11 @@ export type McpServerOutcome = z.infer<typeof McpServerOutcomeSchema>;
2110
3167
  export declare const McpDiscoveredPayloadSchema: z.ZodObject<{
2111
3168
  servers: z.ZodArray<z.ZodObject<{
2112
3169
  agentId: z.ZodOptional<z.ZodString>;
2113
- capabilityId: z.ZodString;
2114
3170
  serverName: z.ZodString;
3171
+ plugin: z.ZodOptional<z.ZodObject<{
3172
+ name: z.ZodString;
3173
+ version: z.ZodOptional<z.ZodString>;
3174
+ }, z.core.$strict>>;
2115
3175
  outcome: z.ZodEnum<{
2116
3176
  connected: "connected";
2117
3177
  failed: "failed";
@@ -2360,7 +3420,6 @@ export declare const EVENT_CATALOG: {
2360
3420
  callId: z.ZodString;
2361
3421
  invocationId: z.ZodString;
2362
3422
  effectId: z.ZodOptional<z.ZodString>;
2363
- capabilityId: z.ZodString;
2364
3423
  toolName: z.ZodString;
2365
3424
  status: z.ZodOptional<z.ZodEnum<{
2366
3425
  cancelled: "cancelled";
@@ -2368,12 +3427,18 @@ export declare const EVENT_CATALOG: {
2368
3427
  failed: "failed";
2369
3428
  }>>;
2370
3429
  kind: z.ZodOptional<z.ZodEnum<{
3430
+ harness: "harness";
2371
3431
  http: "http";
2372
3432
  mcp: "mcp";
2373
3433
  platform: "platform";
2374
3434
  sandbox: "sandbox";
2375
3435
  }>>;
2376
3436
  server: z.ZodOptional<z.ZodString>;
3437
+ skill: z.ZodOptional<z.ZodString>;
3438
+ plugin: z.ZodOptional<z.ZodObject<{
3439
+ name: z.ZodString;
3440
+ version: z.ZodOptional<z.ZodString>;
3441
+ }, z.core.$strict>>;
2377
3442
  attempts: z.ZodOptional<z.ZodNumber>;
2378
3443
  durationMs: z.ZodOptional<z.ZodNumber>;
2379
3444
  gate: z.ZodOptional<z.ZodObject<{
@@ -2436,8 +3501,11 @@ export declare const EVENT_CATALOG: {
2436
3501
  readonly payload: z.ZodObject<{
2437
3502
  servers: z.ZodArray<z.ZodObject<{
2438
3503
  agentId: z.ZodOptional<z.ZodString>;
2439
- capabilityId: z.ZodString;
2440
3504
  serverName: z.ZodString;
3505
+ plugin: z.ZodOptional<z.ZodObject<{
3506
+ name: z.ZodString;
3507
+ version: z.ZodOptional<z.ZodString>;
3508
+ }, z.core.$strict>>;
2441
3509
  outcome: z.ZodEnum<{
2442
3510
  connected: "connected";
2443
3511
  failed: "failed";
@@ -2495,32 +3563,6 @@ export declare const EVENT_CATALOG: {
2495
3563
  readonly source: "api";
2496
3564
  readonly version: 1;
2497
3565
  };
2498
- readonly "egress.connection": {
2499
- readonly payload: z.ZodObject<{
2500
- environmentId: z.ZodString;
2501
- host: z.ZodString;
2502
- port: z.ZodNumber;
2503
- outcome: z.ZodEnum<{
2504
- allowed: "allowed";
2505
- refused: "refused";
2506
- }>;
2507
- reason: z.ZodOptional<z.ZodString>;
2508
- status: z.ZodOptional<z.ZodNumber>;
2509
- mode: z.ZodEnum<{
2510
- credential: "credential";
2511
- tunnel: "tunnel";
2512
- }>;
2513
- credentialBound: z.ZodBoolean;
2514
- credentialIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2515
- requests: z.ZodOptional<z.ZodNumber>;
2516
- bytesUp: z.ZodNumber;
2517
- bytesDown: z.ZodNumber;
2518
- durationMs: z.ZodNumber;
2519
- startedAt: z.ZodString;
2520
- }, z.core.$loose>;
2521
- readonly source: "egress-gate";
2522
- readonly version: 1;
2523
- };
2524
3566
  readonly "node.started": {
2525
3567
  readonly payload: z.ZodObject<{
2526
3568
  path: z.ZodString;
@@ -2696,7 +3738,7 @@ type EventSchemaOf<T extends EventType> = z.ZodObject<typeof eventEnvelope & {
2696
3738
  /** One schema per event type, keyed by type (the OpenAPI components). */
2697
3739
  export declare const EVENT_SCHEMAS: { [T in EventType]: EventSchemaOf<T>; };
2698
3740
  /** A session event of a known type, discriminated on `type`. */
2699
- 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" | "egress.connection" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">, ...EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "egress.connection" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">[]], "type">;
3741
+ export declare const SessionEventSchema: z.ZodDiscriminatedUnion<[EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">, ...EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">[]], "type">;
2700
3742
  export type SessionEvent = {
2701
3743
  [T in EventType]: z.infer<EventSchemaOf<T>>;
2702
3744
  }[EventType];
@@ -2711,7 +3753,7 @@ export type SessionEventOf<T extends EventType> = Extract<SessionEvent, {
2711
3753
  */
2712
3754
  export declare function parseSessionEvent(value: unknown): SessionEvent | LiveEvent;
2713
3755
  export declare const SessionItemsResponseSchema: z.ZodObject<{
2714
- 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" | "egress.connection" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">, ...EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "egress.connection" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">[]], "type">>;
3756
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">, ...EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">[]], "type">>;
2715
3757
  cursor: z.ZodNullable<z.ZodString>;
2716
3758
  }, z.core.$strip>;
2717
3759
  export type SessionItemsResponse = {
@@ -2929,6 +3971,14 @@ export declare const HostModelViewSchema: z.ZodUnion<readonly [z.ZodObject<{
2929
3971
  contextWindow: z.ZodOptional<z.ZodNumber>;
2930
3972
  maxTokens: z.ZodOptional<z.ZodNumber>;
2931
3973
  reasoning: z.ZodOptional<z.ZodBoolean>;
3974
+ inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3975
+ audio: "audio";
3976
+ image: "image";
3977
+ office: "office";
3978
+ pdf: "pdf";
3979
+ text: "text";
3980
+ video: "video";
3981
+ }>>>;
2932
3982
  compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2933
3983
  }, z.core.$strict>>;
2934
3984
  }, z.core.$strict>]>;
@@ -2962,6 +4012,14 @@ export declare const TenantStatusSchema: z.ZodObject<{
2962
4012
  contextWindow: z.ZodOptional<z.ZodNumber>;
2963
4013
  maxTokens: z.ZodOptional<z.ZodNumber>;
2964
4014
  reasoning: z.ZodOptional<z.ZodBoolean>;
4015
+ inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4016
+ audio: "audio";
4017
+ image: "image";
4018
+ office: "office";
4019
+ pdf: "pdf";
4020
+ text: "text";
4021
+ video: "video";
4022
+ }>>>;
2965
4023
  compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2966
4024
  }, z.core.$strict>>;
2967
4025
  }, z.core.$strict>]>;
@@ -3058,6 +4116,14 @@ export declare const SeedTenantConfigRequestSchema: z.ZodObject<{
3058
4116
  contextWindow: z.ZodOptional<z.ZodNumber>;
3059
4117
  maxTokens: z.ZodOptional<z.ZodNumber>;
3060
4118
  reasoning: z.ZodOptional<z.ZodBoolean>;
4119
+ inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4120
+ audio: "audio";
4121
+ image: "image";
4122
+ office: "office";
4123
+ pdf: "pdf";
4124
+ text: "text";
4125
+ video: "video";
4126
+ }>>>;
3061
4127
  compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3062
4128
  }, z.core.$strict>>;
3063
4129
  auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -3292,6 +4358,7 @@ export declare const PutAgentResponseSchema: z.ZodObject<{
3292
4358
  agentId: z.ZodString;
3293
4359
  manifestHash: z.ZodString;
3294
4360
  implementationVersion: z.ZodString;
4361
+ dryRun: z.ZodOptional<z.ZodBoolean>;
3295
4362
  }, z.core.$strict>;
3296
4363
  export type PutAgentResponse = z.infer<typeof PutAgentResponseSchema>;
3297
4364
  export declare const SESSION_STATUSES: readonly ["idle", "runnable", "running", "waiting", "paused", "uncertain", "completed", "failed", "cancelled"];
@@ -3385,7 +4452,11 @@ export declare const ResetTenantResponseSchema: z.ZodObject<{
3385
4452
  ok: z.ZodLiteral<true>;
3386
4453
  }, z.core.$strict>;
3387
4454
  export type ResetTenantResponse = z.infer<typeof ResetTenantResponseSchema>;
3388
- /** `GET /v1/tenant/models`: public provider and model names, no credentials. */
4455
+ /**
4456
+ * `GET /v1/tenant/models`: public provider and model names, no credentials. Each model says what
4457
+ * it reads (`inputs`: its catalog's list and the operator's additions) and what the operator may
4458
+ * add (`addableInputs`, protocol 12).
4459
+ */
3389
4460
  export declare const HostModelCatalogSchema: z.ZodObject<{
3390
4461
  providers: z.ZodArray<z.ZodObject<{
3391
4462
  id: z.ZodString;
@@ -3393,6 +4464,22 @@ export declare const HostModelCatalogSchema: z.ZodObject<{
3393
4464
  models: z.ZodArray<z.ZodObject<{
3394
4465
  id: z.ZodString;
3395
4466
  name: z.ZodString;
4467
+ inputs: z.ZodArray<z.ZodEnum<{
4468
+ audio: "audio";
4469
+ image: "image";
4470
+ office: "office";
4471
+ pdf: "pdf";
4472
+ text: "text";
4473
+ video: "video";
4474
+ }>>;
4475
+ addableInputs: z.ZodArray<z.ZodEnum<{
4476
+ audio: "audio";
4477
+ image: "image";
4478
+ office: "office";
4479
+ pdf: "pdf";
4480
+ text: "text";
4481
+ video: "video";
4482
+ }>>;
3396
4483
  }, z.core.$strict>>;
3397
4484
  }, z.core.$strict>>;
3398
4485
  }, z.core.$strict>;
@@ -3410,11 +4497,60 @@ export declare const HostModelProviderInfoSchema: z.ZodObject<{
3410
4497
  contextWindow: z.ZodOptional<z.ZodNumber>;
3411
4498
  maxTokens: z.ZodOptional<z.ZodNumber>;
3412
4499
  reasoning: z.ZodOptional<z.ZodBoolean>;
4500
+ inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4501
+ audio: "audio";
4502
+ image: "image";
4503
+ office: "office";
4504
+ pdf: "pdf";
4505
+ text: "text";
4506
+ video: "video";
4507
+ }>>>;
3413
4508
  compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3414
4509
  }, z.core.$strict>>;
4510
+ inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4511
+ audio: "audio";
4512
+ image: "image";
4513
+ office: "office";
4514
+ pdf: "pdf";
4515
+ text: "text";
4516
+ video: "video";
4517
+ }>>>;
3415
4518
  lastUpdated: z.ZodString;
3416
4519
  active: z.ZodBoolean;
3417
4520
  }, z.core.$strict>;
4521
+ /**
4522
+ * `PUT /v1/tenant/models/inputs`: the inputs one catalog model reads (protocol 12), replacing
4523
+ * what the operator added before. Its catalog's own inputs always stay; an empty list removes
4524
+ * the additions. A custom endpoint sets `settings.inputs` on `PUT /v1/tenant/model` instead.
4525
+ */
4526
+ export declare const PutModelInputsRequestSchema: z.ZodObject<{
4527
+ requestId: z.ZodOptional<z.ZodString>;
4528
+ provider: z.ZodString;
4529
+ model: z.ZodString;
4530
+ inputs: z.ZodArray<z.ZodEnum<{
4531
+ audio: "audio";
4532
+ image: "image";
4533
+ office: "office";
4534
+ pdf: "pdf";
4535
+ text: "text";
4536
+ video: "video";
4537
+ }>>;
4538
+ }, z.core.$strict>;
4539
+ export type PutModelInputsRequest = z.infer<typeof PutModelInputsRequestSchema>;
4540
+ /** What one catalog model reads now: its catalog's inputs and the operator's additions. */
4541
+ export declare const ModelInputsViewSchema: z.ZodObject<{
4542
+ provider: z.ZodString;
4543
+ model: z.ZodString;
4544
+ inputs: z.ZodArray<z.ZodEnum<{
4545
+ audio: "audio";
4546
+ image: "image";
4547
+ office: "office";
4548
+ pdf: "pdf";
4549
+ text: "text";
4550
+ video: "video";
4551
+ }>>;
4552
+ }, z.core.$strict>;
4553
+ export type ModelInputsView = z.infer<typeof ModelInputsViewSchema>;
3418
4554
  export declare const ListProvidersResponseSchema: z.ZodObject<{
3419
4555
  providers: z.ZodArray<z.ZodObject<{
3420
4556
  id: z.ZodString;
@@ -3429,8 +4565,24 @@ export declare const ListProvidersResponseSchema: z.ZodObject<{
3429
4565
  contextWindow: z.ZodOptional<z.ZodNumber>;
3430
4566
  maxTokens: z.ZodOptional<z.ZodNumber>;
3431
4567
  reasoning: z.ZodOptional<z.ZodBoolean>;
4568
+ inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4569
+ audio: "audio";
4570
+ image: "image";
4571
+ office: "office";
4572
+ pdf: "pdf";
4573
+ text: "text";
4574
+ video: "video";
4575
+ }>>>;
3432
4576
  compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3433
4577
  }, z.core.$strict>>;
4578
+ inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4579
+ audio: "audio";
4580
+ image: "image";
4581
+ office: "office";
4582
+ pdf: "pdf";
4583
+ text: "text";
4584
+ video: "video";
4585
+ }>>>;
3434
4586
  lastUpdated: z.ZodString;
3435
4587
  active: z.ZodBoolean;
3436
4588
  }, z.core.$strict>>;
@@ -3749,6 +4901,7 @@ export type StreamClosedFrame = z.infer<typeof StreamClosedFrameSchema>;
3749
4901
  * (another turn is running) or `runtime_error` (the Runtime failed). Never an HTTP body's code.
3750
4902
  */
3751
4903
  export declare const AgUiRunErrorCodeSchema: z.ZodEnum<{
4904
+ attachment_unsupported: "attachment_unsupported";
3752
4905
  connection_missing: "connection_missing";
3753
4906
  credential_conflict: "credential_conflict";
3754
4907
  credential_invalid: "credential_invalid";
@@ -3756,10 +4909,12 @@ export declare const AgUiRunErrorCodeSchema: z.ZodEnum<{
3756
4909
  credential_required: "credential_required";
3757
4910
  definition_files_missing: "definition_files_missing";
3758
4911
  environment_busy: "environment_busy";
4912
+ environment_immutable: "environment_immutable";
3759
4913
  environment_lost: "environment_lost";
3760
4914
  environment_not_granted: "environment_not_granted";
3761
4915
  environment_owner_mismatch: "environment_owner_mismatch";
3762
4916
  environment_unavailable: "environment_unavailable";
4917
+ environment_unsuitable: "environment_unsuitable";
3763
4918
  harness_mismatch: "harness_mismatch";
3764
4919
  host_rejected: "host_rejected";
3765
4920
  incompatible_host: "incompatible_host";
@@ -3768,6 +4923,9 @@ export declare const AgUiRunErrorCodeSchema: z.ZodEnum<{
3768
4923
  issuer_unavailable: "issuer_unavailable";
3769
4924
  key_role_mismatch: "key_role_mismatch";
3770
4925
  limit_exceeded: "limit_exceeded";
4926
+ manifest_changed: "manifest_changed";
4927
+ manifest_in_use: "manifest_in_use";
4928
+ manifest_not_found: "manifest_not_found";
3771
4929
  mcp_preview_failed: "mcp_preview_failed";
3772
4930
  not_found: "not_found";
3773
4931
  origin_rejected: "origin_rejected";
@@ -3776,6 +4934,7 @@ export declare const AgUiRunErrorCodeSchema: z.ZodEnum<{
3776
4934
  request_rejected: "request_rejected";
3777
4935
  runtime_error: "runtime_error";
3778
4936
  scope_required: "scope_required";
4937
+ secret_not_in_manifest: "secret_not_in_manifest";
3779
4938
  session_busy: "session_busy";
3780
4939
  session_closed: "session_closed";
3781
4940
  subject_invalid: "subject_invalid";
@@ -4342,7 +5501,7 @@ export declare const SessionManifestViewSchema: z.ZodObject<{
4342
5501
  }, z.core.$strict>;
4343
5502
  export type SessionManifestView = z.infer<typeof SessionManifestViewSchema>;
4344
5503
  export declare const HistoryPageSchema: z.ZodObject<{
4345
- 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" | "egress.connection" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">, ...EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "egress.connection" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">[]], "type">>;
5504
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">, ...EventSchemaOf<"artifact.created" | "artifact.deleted" | "artifact.export.failed" | "artifact.export.skipped" | "artifact.version.created" | "command.approve" | "command.message" | "command.respond" | "context.compacted" | "delegation.completed" | "delegation.started" | "effect.uncertain" | "environment.attached" | "environment.exec" | "environment.state" | "loop.iteration" | "loop.verified" | "mcp.discovered" | "message.assistant" | "model.failed" | "node.agent" | "node.completed" | "node.started" | "tool.completed" | "transcript.updated" | "turn.cancelled" | "turn.completed" | "turn.failed" | "turn.paused">[]], "type">>;
4346
5505
  cursor: z.ZodNullable<z.ZodString>;
4347
5506
  tail: z.ZodBoolean;
4348
5507
  }, z.core.$strip>;
@@ -4464,15 +5623,20 @@ export declare const ToolCallSchema: z.ZodObject<{
4464
5623
  effectId: z.ZodString;
4465
5624
  turnId: z.ZodString;
4466
5625
  callId: z.ZodNullable<z.ZodString>;
4467
- capabilityId: z.ZodNullable<z.ZodString>;
4468
5626
  toolName: z.ZodNullable<z.ZodString>;
4469
5627
  kind: z.ZodNullable<z.ZodEnum<{
5628
+ harness: "harness";
4470
5629
  http: "http";
4471
5630
  mcp: "mcp";
4472
5631
  platform: "platform";
4473
5632
  sandbox: "sandbox";
4474
5633
  }>>;
4475
5634
  server: z.ZodNullable<z.ZodString>;
5635
+ skill: z.ZodNullable<z.ZodString>;
5636
+ plugin: z.ZodNullable<z.ZodObject<{
5637
+ name: z.ZodString;
5638
+ version: z.ZodOptional<z.ZodString>;
5639
+ }, z.core.$strict>>;
4476
5640
  status: z.ZodEnum<{
4477
5641
  cancelled: "cancelled";
4478
5642
  completed: "completed";
@@ -4497,15 +5661,20 @@ export declare const ToolCallsPageSchema: z.ZodObject<{
4497
5661
  effectId: z.ZodString;
4498
5662
  turnId: z.ZodString;
4499
5663
  callId: z.ZodNullable<z.ZodString>;
4500
- capabilityId: z.ZodNullable<z.ZodString>;
4501
5664
  toolName: z.ZodNullable<z.ZodString>;
4502
5665
  kind: z.ZodNullable<z.ZodEnum<{
5666
+ harness: "harness";
4503
5667
  http: "http";
4504
5668
  mcp: "mcp";
4505
5669
  platform: "platform";
4506
5670
  sandbox: "sandbox";
4507
5671
  }>>;
4508
5672
  server: z.ZodNullable<z.ZodString>;
5673
+ skill: z.ZodNullable<z.ZodString>;
5674
+ plugin: z.ZodNullable<z.ZodObject<{
5675
+ name: z.ZodString;
5676
+ version: z.ZodOptional<z.ZodString>;
5677
+ }, z.core.$strict>>;
4509
5678
  status: z.ZodEnum<{
4510
5679
  cancelled: "cancelled";
4511
5680
  completed: "completed";
@@ -4602,7 +5771,7 @@ export declare const EnvironmentPageSchema: z.ZodObject<{
4602
5771
  virtual: "virtual";
4603
5772
  }>;
4604
5773
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
4605
- recipe: z.ZodObject<{
5774
+ manifest: z.ZodObject<{
4606
5775
  image: z.ZodOptional<z.ZodString>;
4607
5776
  resources: z.ZodOptional<z.ZodObject<{
4608
5777
  cpus: z.ZodNumber;
@@ -4622,12 +5791,60 @@ export declare const EnvironmentPageSchema: z.ZodObject<{
4622
5791
  cwd: z.ZodOptional<z.ZodString>;
4623
5792
  timeout: z.ZodOptional<z.ZodString>;
4624
5793
  }, z.core.$strict>>>;
4625
- files: z.ZodOptional<z.ZodArray<z.ZodObject<{
5794
+ files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4626
5795
  artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
4627
5796
  version: z.ZodNumber;
4628
5797
  path: z.ZodString;
4629
- }, z.core.$strict>>>;
5798
+ }, z.core.$strict>, z.ZodObject<{
5799
+ path: z.ZodString;
5800
+ files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
5801
+ }, z.core.$strict>]>>>;
5802
+ secrets: z.ZodOptional<z.ZodLazy<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
5803
+ required: z.ZodOptional<z.ZodBoolean>;
5804
+ description: z.ZodOptional<z.ZodString>;
5805
+ type: z.ZodLiteral<"environment_secret">;
5806
+ allowedHosts: z.ZodArray<z.ZodString>;
5807
+ inject: z.ZodOptional<z.ZodObject<{
5808
+ header: z.ZodString;
5809
+ format: z.ZodString;
5810
+ }, z.core.$strict>>;
5811
+ }, z.core.$strict>, z.ZodObject<{
5812
+ required: z.ZodOptional<z.ZodBoolean>;
5813
+ description: z.ZodOptional<z.ZodString>;
5814
+ type: z.ZodLiteral<"environment_variable">;
5815
+ }, z.core.$strict>, z.ZodObject<{
5816
+ via: z.ZodOptional<z.ZodString>;
5817
+ identity: z.ZodOptional<z.ZodObject<{
5818
+ header: z.ZodString;
5819
+ }, z.core.$strict>>;
5820
+ required: z.ZodOptional<z.ZodBoolean>;
5821
+ description: z.ZodOptional<z.ZodString>;
5822
+ type: z.ZodLiteral<"bearer">;
5823
+ url: z.ZodString;
5824
+ }, z.core.$strict>, z.ZodObject<{
5825
+ via: z.ZodOptional<z.ZodString>;
5826
+ identity: z.ZodOptional<z.ZodObject<{
5827
+ header: z.ZodString;
5828
+ }, z.core.$strict>>;
5829
+ required: z.ZodOptional<z.ZodBoolean>;
5830
+ description: z.ZodOptional<z.ZodString>;
5831
+ type: z.ZodLiteral<"headers">;
5832
+ url: z.ZodString;
5833
+ }, z.core.$strict>], "type">>>>;
4630
5834
  }, z.core.$strict>;
5835
+ manifestName: z.ZodOptional<z.ZodString>;
5836
+ manifestVersion: z.ZodOptional<z.ZodNumber>;
5837
+ manifestHash: z.ZodOptional<z.ZodString>;
5838
+ forkedFrom: z.ZodOptional<z.ZodObject<{
5839
+ environment: z.ZodString;
5840
+ disk: z.ZodNullable<z.ZodNumber>;
5841
+ }, z.core.$strict>>;
5842
+ slots: z.ZodOptional<z.ZodArray<z.ZodObject<{
5843
+ name: z.ZodString;
5844
+ type: z.ZodString;
5845
+ required: z.ZodBoolean;
5846
+ set: z.ZodBoolean;
5847
+ }, z.core.$strict>>>;
4631
5848
  version: z.ZodNumber;
4632
5849
  appliedVersion: z.ZodNumber;
4633
5850
  ownerUserId: z.ZodNullable<z.ZodString>;
@@ -4649,6 +5866,7 @@ export declare const EnvironmentPageSchema: z.ZodObject<{
4649
5866
  volumeGeneration: z.ZodNumber;
4650
5867
  hostEpoch: z.ZodNumber;
4651
5868
  reason: z.ZodOptional<z.ZodString>;
5869
+ imageDigest: z.ZodOptional<z.ZodString>;
4652
5870
  }, z.core.$strict>>;
4653
5871
  lastUsedAt: z.ZodString;
4654
5872
  disk: z.ZodOptional<z.ZodObject<{