@alineo-labs/schema 0.0.0-stage → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,670 @@
1
+ import "./index-BnrIUYdM.mjs";
2
+ import { z } from "zod";
3
+ //#region src/alineod.d.ts
4
+ /** The real spec, not a re-model. See `agent-spec.ts`. */
5
+ export declare const AgentSpec: z.ZodObject<{
6
+ $schema: z.ZodOptional<z.ZodString>;
7
+ name: z.ZodString;
8
+ title: z.ZodOptional<z.ZodString>;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ author: z.ZodOptional<z.ZodString>;
11
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ harness: z.ZodUnion<readonly [z.ZodEnum<{
13
+ pi: "pi";
14
+ "claude-code": "claude-code";
15
+ codex: "codex";
16
+ }>, z.ZodObject<{
17
+ id: z.ZodEnum<{
18
+ pi: "pi";
19
+ "claude-code": "claude-code";
20
+ codex: "codex";
21
+ }>;
22
+ version: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>]>;
24
+ harnessVersion: z.ZodOptional<z.ZodString>;
25
+ provider: z.ZodOptional<z.ZodString>;
26
+ model: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
27
+ provider: z.ZodOptional<z.ZodString>;
28
+ id: z.ZodString;
29
+ }, z.core.$strip>]>;
30
+ packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
31
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
32
+ credential: z.ZodString;
33
+ host: z.ZodString;
34
+ pathPrefix: z.ZodOptional<z.ZodString>;
35
+ injection: z.ZodUnion<readonly [z.ZodObject<{
36
+ type: z.ZodLiteral<"header">;
37
+ name: z.ZodString;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ type: z.ZodLiteral<"substitution">;
40
+ placeholder: z.ZodString;
41
+ in: z.ZodArray<z.ZodEnum<{
42
+ path: "path";
43
+ header: "header";
44
+ query: "query";
45
+ body: "body";
46
+ }>>;
47
+ }, z.core.$strip>]>;
48
+ approval: z.ZodOptional<z.ZodLiteral<"hold">>;
49
+ }, z.core.$loose>]>>>;
50
+ resources: z.ZodOptional<z.ZodObject<{
51
+ cpu: z.ZodString;
52
+ memory: z.ZodString;
53
+ gpu: z.ZodOptional<z.ZodString>;
54
+ }, z.core.$strip>>;
55
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
56
+ registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
+ setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
58
+ name: z.ZodString;
59
+ run: z.ZodString;
60
+ cwd: z.ZodOptional<z.ZodString>;
61
+ }, z.core.$loose>>>;
62
+ spawnDepth: z.ZodOptional<z.ZodNumber>;
63
+ maxAgents: z.ZodOptional<z.ZodNumber>;
64
+ teamId: z.ZodOptional<z.ZodString>;
65
+ resourceId: z.ZodOptional<z.ZodString>;
66
+ permissions: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
67
+ readonly: "readonly";
68
+ auto: "auto";
69
+ ask: "ask";
70
+ }>, z.ZodObject<{
71
+ default: z.ZodOptional<z.ZodEnum<{
72
+ ask: "ask";
73
+ allow: "allow";
74
+ deny: "deny";
75
+ rate_limit: "rate_limit";
76
+ classify: "classify";
77
+ }>>;
78
+ rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
79
+ tool: z.ZodString;
80
+ pattern: z.ZodOptional<z.ZodString>;
81
+ action: z.ZodEnum<{
82
+ ask: "ask";
83
+ allow: "allow";
84
+ deny: "deny";
85
+ rate_limit: "rate_limit";
86
+ classify: "classify";
87
+ }>;
88
+ limit: z.ZodOptional<z.ZodObject<{
89
+ count: z.ZodNumber;
90
+ windowMs: z.ZodNumber;
91
+ }, z.core.$strip>>;
92
+ }, z.core.$loose>>>;
93
+ disabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
94
+ restrictToTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
95
+ }, z.core.$loose>]>>;
96
+ onFailure: z.ZodOptional<z.ZodEnum<{
97
+ ask: "ask";
98
+ retry: "retry";
99
+ fail: "fail";
100
+ }>>;
101
+ maxRetries: z.ZodOptional<z.ZodNumber>;
102
+ maxConsecutiveFailures: z.ZodOptional<z.ZodNumber>;
103
+ checkpoint: z.ZodOptional<z.ZodBoolean>;
104
+ }, z.core.$loose>;
105
+ export declare const BudgetOverride: z.ZodObject<{
106
+ spawnDepth: z.ZodOptional<z.ZodNumber>;
107
+ maxAgents: z.ZodOptional<z.ZodNumber>;
108
+ }, z.core.$strip>;
109
+ export declare const CloseWhen: z.ZodEnum<{
110
+ explicit: "explicit";
111
+ quiescent: "quiescent";
112
+ }>;
113
+ export type CloseWhen = z.infer<typeof CloseWhen>;
114
+ export declare const CreateRunBody: z.ZodObject<{
115
+ spec: z.ZodObject<{
116
+ $schema: z.ZodOptional<z.ZodString>;
117
+ name: z.ZodString;
118
+ title: z.ZodOptional<z.ZodString>;
119
+ description: z.ZodOptional<z.ZodString>;
120
+ author: z.ZodOptional<z.ZodString>;
121
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
122
+ harness: z.ZodUnion<readonly [z.ZodEnum<{
123
+ pi: "pi";
124
+ "claude-code": "claude-code";
125
+ codex: "codex";
126
+ }>, z.ZodObject<{
127
+ id: z.ZodEnum<{
128
+ pi: "pi";
129
+ "claude-code": "claude-code";
130
+ codex: "codex";
131
+ }>;
132
+ version: z.ZodOptional<z.ZodString>;
133
+ }, z.core.$strip>]>;
134
+ harnessVersion: z.ZodOptional<z.ZodString>;
135
+ provider: z.ZodOptional<z.ZodString>;
136
+ model: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
137
+ provider: z.ZodOptional<z.ZodString>;
138
+ id: z.ZodString;
139
+ }, z.core.$strip>]>;
140
+ packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
141
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
142
+ credential: z.ZodString;
143
+ host: z.ZodString;
144
+ pathPrefix: z.ZodOptional<z.ZodString>;
145
+ injection: z.ZodUnion<readonly [z.ZodObject<{
146
+ type: z.ZodLiteral<"header">;
147
+ name: z.ZodString;
148
+ }, z.core.$strip>, z.ZodObject<{
149
+ type: z.ZodLiteral<"substitution">;
150
+ placeholder: z.ZodString;
151
+ in: z.ZodArray<z.ZodEnum<{
152
+ path: "path";
153
+ header: "header";
154
+ query: "query";
155
+ body: "body";
156
+ }>>;
157
+ }, z.core.$strip>]>;
158
+ approval: z.ZodOptional<z.ZodLiteral<"hold">>;
159
+ }, z.core.$loose>]>>>;
160
+ resources: z.ZodOptional<z.ZodObject<{
161
+ cpu: z.ZodString;
162
+ memory: z.ZodString;
163
+ gpu: z.ZodOptional<z.ZodString>;
164
+ }, z.core.$strip>>;
165
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
166
+ registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
167
+ setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
168
+ name: z.ZodString;
169
+ run: z.ZodString;
170
+ cwd: z.ZodOptional<z.ZodString>;
171
+ }, z.core.$loose>>>;
172
+ spawnDepth: z.ZodOptional<z.ZodNumber>;
173
+ maxAgents: z.ZodOptional<z.ZodNumber>;
174
+ teamId: z.ZodOptional<z.ZodString>;
175
+ resourceId: z.ZodOptional<z.ZodString>;
176
+ permissions: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
177
+ readonly: "readonly";
178
+ auto: "auto";
179
+ ask: "ask";
180
+ }>, z.ZodObject<{
181
+ default: z.ZodOptional<z.ZodEnum<{
182
+ ask: "ask";
183
+ allow: "allow";
184
+ deny: "deny";
185
+ rate_limit: "rate_limit";
186
+ classify: "classify";
187
+ }>>;
188
+ rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
189
+ tool: z.ZodString;
190
+ pattern: z.ZodOptional<z.ZodString>;
191
+ action: z.ZodEnum<{
192
+ ask: "ask";
193
+ allow: "allow";
194
+ deny: "deny";
195
+ rate_limit: "rate_limit";
196
+ classify: "classify";
197
+ }>;
198
+ limit: z.ZodOptional<z.ZodObject<{
199
+ count: z.ZodNumber;
200
+ windowMs: z.ZodNumber;
201
+ }, z.core.$strip>>;
202
+ }, z.core.$loose>>>;
203
+ disabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
204
+ restrictToTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
205
+ }, z.core.$loose>]>>;
206
+ onFailure: z.ZodOptional<z.ZodEnum<{
207
+ ask: "ask";
208
+ retry: "retry";
209
+ fail: "fail";
210
+ }>>;
211
+ maxRetries: z.ZodOptional<z.ZodNumber>;
212
+ maxConsecutiveFailures: z.ZodOptional<z.ZodNumber>;
213
+ checkpoint: z.ZodOptional<z.ZodBoolean>;
214
+ }, z.core.$loose>;
215
+ prompt: z.ZodOptional<z.ZodString>;
216
+ budget: z.ZodOptional<z.ZodObject<{
217
+ spawnDepth: z.ZodOptional<z.ZodNumber>;
218
+ maxAgents: z.ZodOptional<z.ZodNumber>;
219
+ }, z.core.$strip>>;
220
+ closeWhen: z.ZodDefault<z.ZodEnum<{
221
+ explicit: "explicit";
222
+ quiescent: "quiescent";
223
+ }>>;
224
+ }, z.core.$strip>;
225
+ export type CreateRunBody = z.infer<typeof CreateRunBody>;
226
+ export declare const CreateRunResponse: z.ZodObject<{
227
+ runId: z.ZodString;
228
+ rootAgentId: z.ZodString;
229
+ state: z.ZodString;
230
+ }, z.core.$strip>;
231
+ export declare const WaitMode: z.ZodEnum<{
232
+ any: "any";
233
+ settled: "settled";
234
+ all: "all";
235
+ quorum: "quorum";
236
+ }>;
237
+ export declare const WaitForSpec: z.ZodObject<{
238
+ agents: z.ZodArray<z.ZodString>;
239
+ mode: z.ZodOptional<z.ZodEnum<{
240
+ any: "any";
241
+ settled: "settled";
242
+ all: "all";
243
+ quorum: "quorum";
244
+ }>>;
245
+ k: z.ZodOptional<z.ZodNumber>;
246
+ onDepFailure: z.ZodOptional<z.ZodEnum<{
247
+ fail: "fail";
248
+ proceed: "proceed";
249
+ }>>;
250
+ deadlineSec: z.ZodOptional<z.ZodNumber>;
251
+ onDeadline: z.ZodOptional<z.ZodEnum<{
252
+ fail: "fail";
253
+ proceed: "proceed";
254
+ }>>;
255
+ }, z.core.$strip>;
256
+ export declare const RunAwaitBody: z.ZodObject<{
257
+ agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
258
+ subtree: z.ZodOptional<z.ZodString>;
259
+ mode: z.ZodOptional<z.ZodEnum<{
260
+ any: "any";
261
+ settled: "settled";
262
+ all: "all";
263
+ quorum: "quorum";
264
+ }>>;
265
+ k: z.ZodOptional<z.ZodNumber>;
266
+ onDepFailure: z.ZodOptional<z.ZodEnum<{
267
+ fail: "fail";
268
+ proceed: "proceed";
269
+ }>>;
270
+ wait: z.ZodOptional<z.ZodNumber>;
271
+ }, z.core.$strip>;
272
+ export declare const RunAwaitResponse: z.ZodObject<{
273
+ outcome: z.ZodEnum<{
274
+ satisfied: "satisfied";
275
+ partial: "partial";
276
+ depfail: "depfail";
277
+ pending: "pending";
278
+ }>;
279
+ selected: z.ZodArray<z.ZodString>;
280
+ settled: z.ZodArray<z.ZodObject<{
281
+ agentId: z.ZodString;
282
+ outcome: z.ZodNullable<z.ZodString>;
283
+ }, z.core.$strip>>;
284
+ pending: z.ZodArray<z.ZodString>;
285
+ }, z.core.$strip>;
286
+ export declare const QuiescenceView: z.ZodObject<{
287
+ rootAgentId: z.ZodString;
288
+ quiescent: z.ZodBoolean;
289
+ asOf: z.ZodNumber;
290
+ members: z.ZodArray<z.ZodObject<{
291
+ agentId: z.ZodString;
292
+ state: z.ZodString;
293
+ outcome: z.ZodNullable<z.ZodString>;
294
+ resultRef: z.ZodNullable<z.ZodString>;
295
+ }, z.core.$strip>>;
296
+ blockedOnPaused: z.ZodArray<z.ZodString>;
297
+ }, z.core.$strip>;
298
+ export declare const SpawnAgentBody: z.ZodObject<{
299
+ spec: z.ZodObject<{
300
+ $schema: z.ZodOptional<z.ZodString>;
301
+ name: z.ZodString;
302
+ title: z.ZodOptional<z.ZodString>;
303
+ description: z.ZodOptional<z.ZodString>;
304
+ author: z.ZodOptional<z.ZodString>;
305
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
306
+ harness: z.ZodUnion<readonly [z.ZodEnum<{
307
+ pi: "pi";
308
+ "claude-code": "claude-code";
309
+ codex: "codex";
310
+ }>, z.ZodObject<{
311
+ id: z.ZodEnum<{
312
+ pi: "pi";
313
+ "claude-code": "claude-code";
314
+ codex: "codex";
315
+ }>;
316
+ version: z.ZodOptional<z.ZodString>;
317
+ }, z.core.$strip>]>;
318
+ harnessVersion: z.ZodOptional<z.ZodString>;
319
+ provider: z.ZodOptional<z.ZodString>;
320
+ model: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
321
+ provider: z.ZodOptional<z.ZodString>;
322
+ id: z.ZodString;
323
+ }, z.core.$strip>]>;
324
+ packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
325
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
326
+ credential: z.ZodString;
327
+ host: z.ZodString;
328
+ pathPrefix: z.ZodOptional<z.ZodString>;
329
+ injection: z.ZodUnion<readonly [z.ZodObject<{
330
+ type: z.ZodLiteral<"header">;
331
+ name: z.ZodString;
332
+ }, z.core.$strip>, z.ZodObject<{
333
+ type: z.ZodLiteral<"substitution">;
334
+ placeholder: z.ZodString;
335
+ in: z.ZodArray<z.ZodEnum<{
336
+ path: "path";
337
+ header: "header";
338
+ query: "query";
339
+ body: "body";
340
+ }>>;
341
+ }, z.core.$strip>]>;
342
+ approval: z.ZodOptional<z.ZodLiteral<"hold">>;
343
+ }, z.core.$loose>]>>>;
344
+ resources: z.ZodOptional<z.ZodObject<{
345
+ cpu: z.ZodString;
346
+ memory: z.ZodString;
347
+ gpu: z.ZodOptional<z.ZodString>;
348
+ }, z.core.$strip>>;
349
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
350
+ registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
351
+ setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
352
+ name: z.ZodString;
353
+ run: z.ZodString;
354
+ cwd: z.ZodOptional<z.ZodString>;
355
+ }, z.core.$loose>>>;
356
+ spawnDepth: z.ZodOptional<z.ZodNumber>;
357
+ maxAgents: z.ZodOptional<z.ZodNumber>;
358
+ teamId: z.ZodOptional<z.ZodString>;
359
+ resourceId: z.ZodOptional<z.ZodString>;
360
+ permissions: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
361
+ readonly: "readonly";
362
+ auto: "auto";
363
+ ask: "ask";
364
+ }>, z.ZodObject<{
365
+ default: z.ZodOptional<z.ZodEnum<{
366
+ ask: "ask";
367
+ allow: "allow";
368
+ deny: "deny";
369
+ rate_limit: "rate_limit";
370
+ classify: "classify";
371
+ }>>;
372
+ rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
373
+ tool: z.ZodString;
374
+ pattern: z.ZodOptional<z.ZodString>;
375
+ action: z.ZodEnum<{
376
+ ask: "ask";
377
+ allow: "allow";
378
+ deny: "deny";
379
+ rate_limit: "rate_limit";
380
+ classify: "classify";
381
+ }>;
382
+ limit: z.ZodOptional<z.ZodObject<{
383
+ count: z.ZodNumber;
384
+ windowMs: z.ZodNumber;
385
+ }, z.core.$strip>>;
386
+ }, z.core.$loose>>>;
387
+ disabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
388
+ restrictToTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
389
+ }, z.core.$loose>]>>;
390
+ onFailure: z.ZodOptional<z.ZodEnum<{
391
+ ask: "ask";
392
+ retry: "retry";
393
+ fail: "fail";
394
+ }>>;
395
+ maxRetries: z.ZodOptional<z.ZodNumber>;
396
+ maxConsecutiveFailures: z.ZodOptional<z.ZodNumber>;
397
+ checkpoint: z.ZodOptional<z.ZodBoolean>;
398
+ }, z.core.$loose>;
399
+ parentAgentId: z.ZodString;
400
+ waitFor: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
401
+ agents: z.ZodArray<z.ZodString>;
402
+ mode: z.ZodOptional<z.ZodEnum<{
403
+ any: "any";
404
+ settled: "settled";
405
+ all: "all";
406
+ quorum: "quorum";
407
+ }>>;
408
+ k: z.ZodOptional<z.ZodNumber>;
409
+ onDepFailure: z.ZodOptional<z.ZodEnum<{
410
+ fail: "fail";
411
+ proceed: "proceed";
412
+ }>>;
413
+ deadlineSec: z.ZodOptional<z.ZodNumber>;
414
+ onDeadline: z.ZodOptional<z.ZodEnum<{
415
+ fail: "fail";
416
+ proceed: "proceed";
417
+ }>>;
418
+ }, z.core.$strip>]>>;
419
+ prompt: z.ZodOptional<z.ZodString>;
420
+ notifyOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
421
+ budget: z.ZodOptional<z.ZodObject<{
422
+ spawnDepth: z.ZodOptional<z.ZodNumber>;
423
+ maxAgents: z.ZodOptional<z.ZodNumber>;
424
+ }, z.core.$strip>>;
425
+ idempotencyKey: z.ZodOptional<z.ZodString>;
426
+ }, z.core.$strip>;
427
+ export type SpawnAgentBody = z.infer<typeof SpawnAgentBody>;
428
+ export declare const SpawnAgentResponse: z.ZodObject<{
429
+ agentId: z.ZodString;
430
+ state: z.ZodString;
431
+ }, z.core.$strip>;
432
+ export declare const AgentView: z.ZodObject<{
433
+ agentId: z.ZodString;
434
+ runId: z.ZodString;
435
+ parentAgentId: z.ZodNullable<z.ZodString>;
436
+ depth: z.ZodNumber;
437
+ spawnIndex: z.ZodNumber;
438
+ state: z.ZodString;
439
+ specName: z.ZodString;
440
+ sandboxId: z.ZodNullable<z.ZodString>;
441
+ provider: z.ZodNullable<z.ZodString>;
442
+ createdAt: z.ZodNumber;
443
+ endedAt: z.ZodNullable<z.ZodNumber>;
444
+ outcome: z.ZodNullable<z.ZodString>;
445
+ pausedBy: z.ZodNullable<z.ZodString>;
446
+ }, z.core.$strip>;
447
+ export type AgentView = z.infer<typeof AgentView>;
448
+ export declare const TreeView: z.ZodObject<{
449
+ runId: z.ZodString;
450
+ rootAgentId: z.ZodNullable<z.ZodString>;
451
+ agents: z.ZodArray<z.ZodObject<{
452
+ agentId: z.ZodString;
453
+ runId: z.ZodString;
454
+ parentAgentId: z.ZodNullable<z.ZodString>;
455
+ depth: z.ZodNumber;
456
+ spawnIndex: z.ZodNumber;
457
+ state: z.ZodString;
458
+ specName: z.ZodString;
459
+ sandboxId: z.ZodNullable<z.ZodString>;
460
+ provider: z.ZodNullable<z.ZodString>;
461
+ createdAt: z.ZodNumber;
462
+ endedAt: z.ZodNullable<z.ZodNumber>;
463
+ outcome: z.ZodNullable<z.ZodString>;
464
+ pausedBy: z.ZodNullable<z.ZodString>;
465
+ }, z.core.$strip>>;
466
+ asOf: z.ZodNumber;
467
+ closeWhen: z.ZodEnum<{
468
+ explicit: "explicit";
469
+ quiescent: "quiescent";
470
+ }>;
471
+ state: z.ZodEnum<{
472
+ open: "open";
473
+ closed: "closed";
474
+ }>;
475
+ }, z.core.$strip>;
476
+ export declare const AgentDetail: z.ZodObject<{
477
+ agentId: z.ZodString;
478
+ runId: z.ZodString;
479
+ parentAgentId: z.ZodNullable<z.ZodString>;
480
+ depth: z.ZodNumber;
481
+ spawnIndex: z.ZodNumber;
482
+ state: z.ZodString;
483
+ specName: z.ZodString;
484
+ sandboxId: z.ZodNullable<z.ZodString>;
485
+ provider: z.ZodNullable<z.ZodString>;
486
+ createdAt: z.ZodNumber;
487
+ endedAt: z.ZodNullable<z.ZodNumber>;
488
+ outcome: z.ZodNullable<z.ZodString>;
489
+ pausedBy: z.ZodNullable<z.ZodString>;
490
+ sessionStats: z.ZodOptional<z.ZodUnknown>;
491
+ }, z.core.$strip>;
492
+ export declare const ControlScopeBody: z.ZodDefault<z.ZodObject<{
493
+ scope: z.ZodDefault<z.ZodEnum<{
494
+ subtree: "subtree";
495
+ agent: "agent";
496
+ }>>;
497
+ idempotencyKey: z.ZodOptional<z.ZodString>;
498
+ }, z.core.$strip>>;
499
+ export declare const SubtreeOpResult: z.ZodObject<{
500
+ asOf: z.ZodNumber;
501
+ results: z.ZodArray<z.ZodObject<{
502
+ agentId: z.ZodString;
503
+ outcome: z.ZodEnum<{
504
+ applied: "applied";
505
+ skipped: "skipped";
506
+ failed: "failed";
507
+ }>;
508
+ reason: z.ZodOptional<z.ZodString>;
509
+ }, z.core.$strip>>;
510
+ }, z.core.$strip>;
511
+ export type SubtreeOpResult = z.infer<typeof SubtreeOpResult>;
512
+ export declare const NotifyOnBody: z.ZodObject<{
513
+ agents: z.ZodArray<z.ZodString>;
514
+ wake: z.ZodOptional<z.ZodBoolean>;
515
+ }, z.core.$strip>;
516
+ export declare const StopAgentBody: z.ZodDefault<z.ZodObject<{
517
+ mode: z.ZodDefault<z.ZodEnum<{
518
+ abort: "abort";
519
+ drain: "drain";
520
+ }>>;
521
+ scope: z.ZodDefault<z.ZodEnum<{
522
+ subtree: "subtree";
523
+ agent: "agent";
524
+ }>>;
525
+ idempotencyKey: z.ZodOptional<z.ZodString>;
526
+ }, z.core.$strip>>;
527
+ export declare const PromptBody: z.ZodObject<{
528
+ text: z.ZodString;
529
+ }, z.core.$strip>;
530
+ export declare const SteerBody: z.ZodObject<{
531
+ message: z.ZodString;
532
+ scope: z.ZodDefault<z.ZodEnum<{
533
+ subtree: "subtree";
534
+ agent: "agent";
535
+ }>>;
536
+ idempotencyKey: z.ZodOptional<z.ZodString>;
537
+ }, z.core.$strip>;
538
+ export declare const SubtreeSteerResponse: z.ZodObject<{
539
+ deliveredAs: z.ZodEnum<{
540
+ steer: "steer";
541
+ turn: "turn";
542
+ queued: "queued";
543
+ }>;
544
+ roster: z.ZodArray<z.ZodObject<{
545
+ agentId: z.ZodString;
546
+ sandboxId: z.ZodNullable<z.ZodString>;
547
+ specName: z.ZodString;
548
+ state: z.ZodString;
549
+ outcome: z.ZodNullable<z.ZodString>;
550
+ }, z.core.$strip>>;
551
+ }, z.core.$strip>;
552
+ export declare const ResultResponse: z.ZodObject<{
553
+ agentId: z.ZodString;
554
+ state: z.ZodEnum<{
555
+ settled: "settled";
556
+ pending: "pending";
557
+ }>;
558
+ outcome: z.ZodNullable<z.ZodString>;
559
+ resultRef: z.ZodNullable<z.ZodString>;
560
+ result: z.ZodNullable<z.ZodString>;
561
+ }, z.core.$strip>;
562
+ /** Bounds enforced at the wire, so one request can't park an unbounded blob in the store. */
563
+ export declare const MEMORY_KEY_MAX_CHARS = 256;
564
+ export declare const MEMORY_VALUE_MAX_BYTES: number;
565
+ export declare const FACT_CONTENT_MAX_CHARS: number;
566
+ export declare const MemoryView: z.ZodObject<{
567
+ agentId: z.ZodString;
568
+ resourceRef: z.ZodObject<{
569
+ resourceId: z.ZodString;
570
+ teamId: z.ZodOptional<z.ZodString>;
571
+ }, z.core.$strip>;
572
+ semantic: z.ZodBoolean;
573
+ working: z.ZodRecord<z.ZodString, z.ZodUnknown>;
574
+ nextAfter: z.ZodOptional<z.ZodString>;
575
+ }, z.core.$strip>;
576
+ export declare const MemoryValueBody: z.ZodObject<{
577
+ value: z.ZodUnknown;
578
+ }, z.core.$strip>;
579
+ export declare const MemoryValueResponse: z.ZodObject<{
580
+ key: z.ZodString;
581
+ value: z.ZodUnknown;
582
+ }, z.core.$strip>;
583
+ export declare const AddFactBody: z.ZodObject<{
584
+ content: z.ZodString;
585
+ sourceRef: z.ZodOptional<z.ZodObject<{
586
+ sandboxId: z.ZodString;
587
+ entryIndex: z.ZodNumber;
588
+ }, z.core.$strip>>;
589
+ }, z.core.$strip>;
590
+ export declare const FactView: z.ZodObject<{
591
+ id: z.ZodOptional<z.ZodString>;
592
+ content: z.ZodString;
593
+ sourceRef: z.ZodOptional<z.ZodObject<{
594
+ sandboxId: z.ZodString;
595
+ entryIndex: z.ZodNumber;
596
+ }, z.core.$strip>>;
597
+ verified: z.ZodOptional<z.ZodBoolean>;
598
+ rememberedAt: z.ZodOptional<z.ZodNumber>;
599
+ }, z.core.$strip>;
600
+ export declare const FactsResponse: z.ZodObject<{
601
+ agentId: z.ZodString;
602
+ query: z.ZodNullable<z.ZodString>;
603
+ facts: z.ZodArray<z.ZodObject<{
604
+ id: z.ZodOptional<z.ZodString>;
605
+ content: z.ZodString;
606
+ sourceRef: z.ZodOptional<z.ZodObject<{
607
+ sandboxId: z.ZodString;
608
+ entryIndex: z.ZodNumber;
609
+ }, z.core.$strip>>;
610
+ verified: z.ZodOptional<z.ZodBoolean>;
611
+ rememberedAt: z.ZodOptional<z.ZodNumber>;
612
+ }, z.core.$strip>>;
613
+ }, z.core.$strip>;
614
+ export declare const CompactionBody: z.ZodObject<{
615
+ maxFacts: z.ZodOptional<z.ZodNumber>;
616
+ maxAgeMs: z.ZodOptional<z.ZodNumber>;
617
+ }, z.core.$strip>;
618
+ export declare const CompactionResultView: z.ZodObject<{
619
+ removed: z.ZodNumber;
620
+ remaining: z.ZodNumber;
621
+ summarized: z.ZodNumber;
622
+ }, z.core.$strip>;
623
+ export declare const TranscriptMessage: z.ZodDiscriminatedUnion<[z.ZodObject<{
624
+ role: z.ZodLiteral<"user">;
625
+ text: z.ZodString;
626
+ }, z.core.$strip>, z.ZodObject<{
627
+ role: z.ZodLiteral<"assistant">;
628
+ text: z.ZodString;
629
+ toolCalls: z.ZodArray<z.ZodObject<{
630
+ name: z.ZodString;
631
+ arguments: z.ZodUnknown;
632
+ }, z.core.$strip>>;
633
+ stopReason: z.ZodNullable<z.ZodString>;
634
+ errorMessage: z.ZodNullable<z.ZodString>;
635
+ thinking: z.ZodOptional<z.ZodString>;
636
+ }, z.core.$strip>, z.ZodObject<{
637
+ role: z.ZodLiteral<"tool">;
638
+ toolName: z.ZodString;
639
+ text: z.ZodString;
640
+ isError: z.ZodBoolean;
641
+ }, z.core.$strip>], "role">;
642
+ export declare const TranscriptResponse: z.ZodObject<{
643
+ agentId: z.ZodString;
644
+ turns: z.ZodArray<z.ZodObject<{
645
+ seq: z.ZodNumber;
646
+ ts: z.ZodNumber;
647
+ messages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
648
+ role: z.ZodLiteral<"user">;
649
+ text: z.ZodString;
650
+ }, z.core.$strip>, z.ZodObject<{
651
+ role: z.ZodLiteral<"assistant">;
652
+ text: z.ZodString;
653
+ toolCalls: z.ZodArray<z.ZodObject<{
654
+ name: z.ZodString;
655
+ arguments: z.ZodUnknown;
656
+ }, z.core.$strip>>;
657
+ stopReason: z.ZodNullable<z.ZodString>;
658
+ errorMessage: z.ZodNullable<z.ZodString>;
659
+ thinking: z.ZodOptional<z.ZodString>;
660
+ }, z.core.$strip>, z.ZodObject<{
661
+ role: z.ZodLiteral<"tool">;
662
+ toolName: z.ZodString;
663
+ text: z.ZodString;
664
+ isError: z.ZodBoolean;
665
+ }, z.core.$strip>], "role">>;
666
+ }, z.core.$strip>>;
667
+ }, z.core.$strip>;
668
+ export declare const AlineodEvent: z.ZodDiscriminatedUnion<[z.ZodObject<z.core.$ZodLooseShape, z.core.$strip>, ...z.ZodObject<z.core.$ZodLooseShape, z.core.$strip>[]], "event">;
669
+ export type AlineodEvent = z.infer<typeof AlineodEvent>;
670
+ //#endregion