@byok-sdk/protocol 0.26.1 → 0.27.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.
@@ -109,1372 +109,37 @@ export declare const EventsPollQuerySchema: z.ZodObject<{
109
109
  cursor: z.ZodOptional<z.ZodNumber>;
110
110
  }, z.core.$strip>;
111
111
  export type EventsPollQuery = z.infer<typeof EventsPollQuerySchema>;
112
- export declare const EventsPollResponseSchema: z.ZodObject<{
113
- events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
114
- v: z.ZodNumber;
115
- id: z.ZodUUID;
116
- ts: z.ZodISODateTime;
117
- type: z.ZodLiteral<"conn.hello">;
118
- task_id: z.ZodOptional<z.ZodString>;
119
- session_ref: z.ZodOptional<z.ZodString>;
120
- seq: z.ZodOptional<z.ZodNumber>;
121
- payload: z.ZodObject<{
122
- protocolVersions: z.ZodArray<z.ZodNumber>;
123
- capabilities: z.ZodArray<z.ZodString>;
124
- deviceId: z.ZodString;
125
- productId: z.ZodString;
126
- clientVersion: z.ZodOptional<z.ZodString>;
127
- runtimes: z.ZodOptional<z.ZodArray<z.ZodObject<{
128
- id: z.ZodEnum<{
129
- claude: "claude";
130
- codex: "codex";
131
- pi: "pi";
132
- }>;
133
- version: z.ZodOptional<z.ZodString>;
134
- authPresent: z.ZodOptional<z.ZodBoolean>;
135
- capabilities: z.ZodOptional<z.ZodObject<{
136
- steer: z.ZodOptional<z.ZodBoolean>;
137
- resume: z.ZodOptional<z.ZodBoolean>;
138
- approvalInteractive: z.ZodOptional<z.ZodBoolean>;
139
- mcpToolsets: z.ZodOptional<z.ZodBoolean>;
140
- }, z.core.$strip>>;
141
- }, z.core.$strip>>>;
142
- harnesses: z.ZodOptional<z.ZodArray<z.ZodObject<{
143
- id: z.ZodString;
144
- version: z.ZodOptional<z.ZodString>;
145
- capabilities: z.ZodObject<{
146
- steer: z.ZodOptional<z.ZodBoolean>;
147
- resume: z.ZodOptional<z.ZodBoolean>;
148
- approvalInteractive: z.ZodOptional<z.ZodBoolean>;
149
- mcpToolsets: z.ZodOptional<z.ZodBoolean>;
150
- }, z.core.$strip>;
151
- }, z.core.$strip>>>;
152
- configuredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
153
- cursor: z.ZodOptional<z.ZodNumber>;
154
- }, z.core.$strip>;
155
- }, z.core.$strip>, z.ZodObject<{
156
- v: z.ZodNumber;
157
- id: z.ZodUUID;
158
- ts: z.ZodISODateTime;
159
- type: z.ZodLiteral<"conn.ack">;
160
- task_id: z.ZodOptional<z.ZodString>;
161
- session_ref: z.ZodOptional<z.ZodString>;
162
- seq: z.ZodNumber;
163
- payload: z.ZodObject<{
164
- protocolVersion: z.ZodNumber;
165
- capabilities: z.ZodArray<z.ZodString>;
166
- serverTime: z.ZodISODateTime;
167
- }, z.core.$strip>;
168
- }, z.core.$strip>, z.ZodObject<{
169
- v: z.ZodNumber;
170
- id: z.ZodUUID;
171
- ts: z.ZodISODateTime;
172
- type: z.ZodLiteral<"task.offer">;
173
- task_id: z.ZodString;
174
- session_ref: z.ZodOptional<z.ZodString>;
175
- seq: z.ZodNumber;
176
- payload: z.ZodObject<{
177
- instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
178
- blobRef: z.ZodObject<{
179
- blobId: z.ZodString;
180
- contentHash: z.ZodString;
181
- size: z.ZodNumber;
182
- contentType: z.ZodString;
183
- url: z.ZodOptional<z.ZodString>;
184
- }, z.core.$strip>;
185
- }, z.core.$strict>]>;
186
- runtime: z.ZodOptional<z.ZodEnum<{
187
- claude: "claude";
188
- codex: "codex";
189
- pi: "pi";
190
- }>>;
191
- harnessId: z.ZodOptional<z.ZodString>;
192
- dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
193
- lane: z.ZodLiteral<"subscription">;
194
- runtimeId: z.ZodEnum<{
195
- claude: "claude";
196
- codex: "codex";
197
- }>;
198
- providerId: z.ZodNull;
199
- modelId: z.ZodString;
200
- }, z.core.$strict>, z.ZodObject<{
201
- lane: z.ZodLiteral<"byok">;
202
- runtimeId: z.ZodLiteral<"pi">;
203
- providerId: z.ZodString;
204
- modelId: z.ZodString;
205
- }, z.core.$strict>, z.ZodObject<{
206
- lane: z.ZodLiteral<"byok-profile">;
207
- runtimeId: z.ZodLiteral<"pi">;
208
- providerProfile: z.ZodObject<{
209
- profileRef: z.ZodString;
210
- profileRevision: z.ZodString;
211
- profileHash: z.ZodString;
212
- modelId: z.ZodString;
213
- requiredCapabilities: z.ZodArray<z.ZodEnum<{
214
- "image-input": "image-input";
215
- }>>;
216
- }, z.core.$strict>;
217
- }, z.core.$strict>], "lane">>;
218
- sessionRef: z.ZodOptional<z.ZodString>;
219
- workspaceHint: z.ZodOptional<z.ZodString>;
220
- limits: z.ZodOptional<z.ZodObject<{
221
- maxDurationMs: z.ZodOptional<z.ZodNumber>;
222
- maxTokens: z.ZodOptional<z.ZodNumber>;
223
- }, z.core.$strip>>;
224
- }, z.core.$strip>;
225
- }, z.core.$strip>, z.ZodObject<{
226
- v: z.ZodNumber;
227
- id: z.ZodUUID;
228
- ts: z.ZodISODateTime;
229
- type: z.ZodLiteral<"task.offer_with_toolsets">;
230
- task_id: z.ZodString;
231
- session_ref: z.ZodOptional<z.ZodString>;
232
- seq: z.ZodNumber;
233
- payload: z.ZodObject<{
234
- instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
235
- blobRef: z.ZodObject<{
236
- blobId: z.ZodString;
237
- contentHash: z.ZodString;
238
- size: z.ZodNumber;
239
- contentType: z.ZodString;
240
- url: z.ZodOptional<z.ZodString>;
241
- }, z.core.$strip>;
242
- }, z.core.$strict>]>;
243
- runtime: z.ZodOptional<z.ZodEnum<{
244
- claude: "claude";
245
- codex: "codex";
246
- pi: "pi";
247
- }>>;
248
- harnessId: z.ZodOptional<z.ZodString>;
249
- dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
250
- lane: z.ZodLiteral<"subscription">;
251
- runtimeId: z.ZodEnum<{
252
- claude: "claude";
253
- codex: "codex";
254
- }>;
255
- providerId: z.ZodNull;
256
- modelId: z.ZodString;
257
- }, z.core.$strict>, z.ZodObject<{
258
- lane: z.ZodLiteral<"byok">;
259
- runtimeId: z.ZodLiteral<"pi">;
260
- providerId: z.ZodString;
261
- modelId: z.ZodString;
262
- }, z.core.$strict>, z.ZodObject<{
263
- lane: z.ZodLiteral<"byok-profile">;
264
- runtimeId: z.ZodLiteral<"pi">;
265
- providerProfile: z.ZodObject<{
266
- profileRef: z.ZodString;
267
- profileRevision: z.ZodString;
268
- profileHash: z.ZodString;
269
- modelId: z.ZodString;
270
- requiredCapabilities: z.ZodArray<z.ZodEnum<{
271
- "image-input": "image-input";
272
- }>>;
273
- }, z.core.$strict>;
274
- }, z.core.$strict>], "lane">>;
275
- sessionRef: z.ZodOptional<z.ZodString>;
276
- workspaceHint: z.ZodOptional<z.ZodString>;
277
- limits: z.ZodOptional<z.ZodObject<{
278
- maxDurationMs: z.ZodOptional<z.ZodNumber>;
279
- maxTokens: z.ZodOptional<z.ZodNumber>;
280
- }, z.core.$strip>>;
281
- requiredToolsets: z.ZodArray<z.ZodString>;
282
- }, z.core.$strict>;
283
- }, z.core.$strip>, z.ZodObject<{
284
- v: z.ZodNumber;
285
- id: z.ZodUUID;
286
- ts: z.ZodISODateTime;
287
- type: z.ZodLiteral<"task.offer_for_agent">;
288
- task_id: z.ZodString;
289
- session_ref: z.ZodOptional<z.ZodString>;
290
- seq: z.ZodNumber;
291
- payload: z.ZodObject<{
292
- instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
293
- blobRef: z.ZodObject<{
294
- blobId: z.ZodString;
295
- contentHash: z.ZodString;
296
- size: z.ZodNumber;
297
- contentType: z.ZodString;
298
- url: z.ZodOptional<z.ZodString>;
299
- }, z.core.$strip>;
300
- }, z.core.$strict>]>;
301
- agentRef: z.ZodObject<{
302
- agentId: z.ZodString;
303
- profileRevision: z.ZodString;
304
- }, z.core.$strict>;
305
- homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
306
- requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
307
- runtime: z.ZodOptional<z.ZodEnum<{
308
- claude: "claude";
309
- codex: "codex";
310
- pi: "pi";
311
- }>>;
312
- harnessId: z.ZodOptional<z.ZodString>;
313
- dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
314
- lane: z.ZodLiteral<"subscription">;
315
- runtimeId: z.ZodEnum<{
316
- claude: "claude";
317
- codex: "codex";
318
- }>;
319
- providerId: z.ZodNull;
320
- modelId: z.ZodString;
321
- }, z.core.$strict>, z.ZodObject<{
322
- lane: z.ZodLiteral<"byok">;
323
- runtimeId: z.ZodLiteral<"pi">;
324
- providerId: z.ZodString;
325
- modelId: z.ZodString;
326
- }, z.core.$strict>, z.ZodObject<{
327
- lane: z.ZodLiteral<"byok-profile">;
328
- runtimeId: z.ZodLiteral<"pi">;
329
- providerProfile: z.ZodObject<{
330
- profileRef: z.ZodString;
331
- profileRevision: z.ZodString;
332
- profileHash: z.ZodString;
333
- modelId: z.ZodString;
334
- requiredCapabilities: z.ZodArray<z.ZodEnum<{
335
- "image-input": "image-input";
336
- }>>;
337
- }, z.core.$strict>;
338
- }, z.core.$strict>], "lane">>;
339
- terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
340
- mode: z.ZodLiteral<"none">;
341
- }, z.core.$strict>, z.ZodObject<{
342
- mode: z.ZodLiteral<"result-document">;
343
- contract: z.ZodString;
344
- }, z.core.$strict>], "mode">>;
345
- sessionRef: z.ZodOptional<z.ZodString>;
346
- limits: z.ZodOptional<z.ZodObject<{
347
- maxDurationMs: z.ZodOptional<z.ZodNumber>;
348
- maxTokens: z.ZodOptional<z.ZodNumber>;
349
- }, z.core.$strip>>;
350
- }, z.core.$strict>;
351
- }, z.core.$strip>, z.ZodObject<{
352
- v: z.ZodNumber;
353
- id: z.ZodUUID;
354
- ts: z.ZodISODateTime;
355
- type: z.ZodLiteral<"task.offer_for_agent_with_egress">;
356
- task_id: z.ZodString;
357
- session_ref: z.ZodOptional<z.ZodString>;
358
- seq: z.ZodNumber;
359
- payload: z.ZodObject<{
360
- instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
361
- blobRef: z.ZodObject<{
362
- blobId: z.ZodString;
363
- contentHash: z.ZodString;
364
- size: z.ZodNumber;
365
- contentType: z.ZodString;
366
- url: z.ZodOptional<z.ZodString>;
367
- }, z.core.$strip>;
368
- }, z.core.$strict>]>;
369
- agentRef: z.ZodObject<{
370
- agentId: z.ZodString;
371
- profileRevision: z.ZodString;
372
- }, z.core.$strict>;
373
- homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
374
- requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
375
- runtime: z.ZodOptional<z.ZodEnum<{
376
- claude: "claude";
377
- codex: "codex";
378
- pi: "pi";
379
- }>>;
380
- harnessId: z.ZodOptional<z.ZodString>;
381
- dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
382
- lane: z.ZodLiteral<"subscription">;
383
- runtimeId: z.ZodEnum<{
384
- claude: "claude";
385
- codex: "codex";
386
- }>;
387
- providerId: z.ZodNull;
388
- modelId: z.ZodString;
389
- }, z.core.$strict>, z.ZodObject<{
390
- lane: z.ZodLiteral<"byok">;
391
- runtimeId: z.ZodLiteral<"pi">;
392
- providerId: z.ZodString;
393
- modelId: z.ZodString;
394
- }, z.core.$strict>, z.ZodObject<{
395
- lane: z.ZodLiteral<"byok-profile">;
396
- runtimeId: z.ZodLiteral<"pi">;
397
- providerProfile: z.ZodObject<{
398
- profileRef: z.ZodString;
399
- profileRevision: z.ZodString;
400
- profileHash: z.ZodString;
401
- modelId: z.ZodString;
402
- requiredCapabilities: z.ZodArray<z.ZodEnum<{
403
- "image-input": "image-input";
404
- }>>;
405
- }, z.core.$strict>;
406
- }, z.core.$strict>], "lane">>;
407
- terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
408
- mode: z.ZodLiteral<"none">;
409
- }, z.core.$strict>, z.ZodObject<{
410
- mode: z.ZodLiteral<"result-document">;
411
- contract: z.ZodString;
412
- }, z.core.$strict>], "mode">>;
413
- limits: z.ZodOptional<z.ZodObject<{
414
- maxDurationMs: z.ZodOptional<z.ZodNumber>;
415
- maxTokens: z.ZodOptional<z.ZodNumber>;
416
- }, z.core.$strip>>;
417
- sessionRef: z.ZodString;
418
- egressPolicy: z.ZodObject<{
419
- policyRevision: z.ZodString;
420
- activity: z.ZodObject<{
421
- delivery: z.ZodLiteral<"latest-value">;
422
- maxCoalesceMs: z.ZodNumber;
423
- maxEventBytes: z.ZodNumber;
424
- }, z.core.$strict>;
425
- reliable: z.ZodObject<{
426
- maxPendingEventsPerAgent: z.ZodNumber;
427
- maxPendingBytesPerAgent: z.ZodNumber;
428
- maxPendingBytesPerTenant: z.ZodNumber;
429
- }, z.core.$strict>;
430
- transfers: z.ZodObject<{
431
- workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
432
- maxBytes: z.ZodNumber;
433
- allowedMimeTypes: z.ZodArray<z.ZodString>;
434
- }, z.core.$strict>]>;
435
- transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
436
- maxBytes: z.ZodNumber;
437
- allowedMimeTypes: z.ZodArray<z.ZodString>;
438
- }, z.core.$strict>]>;
439
- artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
440
- maxBytes: z.ZodNumber;
441
- allowedMimeTypes: z.ZodArray<z.ZodString>;
442
- }, z.core.$strict>]>;
443
- }, z.core.$strict>;
444
- }, z.core.$strict>;
445
- messageEgress: z.ZodOptional<z.ZodObject<{
446
- mode: z.ZodLiteral<"required">;
447
- contract: z.ZodString;
448
- contentType: z.ZodEnum<{
449
- "text/markdown": "text/markdown";
450
- "text/plain": "text/plain";
451
- }>;
452
- maxBytes: z.ZodNumber;
453
- }, z.core.$strict>>;
454
- }, z.core.$strict>;
455
- }, z.core.$strip>, z.ZodObject<{
456
- v: z.ZodNumber;
457
- id: z.ZodUUID;
458
- ts: z.ZodISODateTime;
459
- type: z.ZodLiteral<"task.offer_for_agent_with_egress_fresh">;
460
- task_id: z.ZodString;
461
- session_ref: z.ZodOptional<z.ZodString>;
462
- seq: z.ZodNumber;
463
- payload: z.ZodObject<{
464
- instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
465
- blobRef: z.ZodObject<{
466
- blobId: z.ZodString;
467
- contentHash: z.ZodString;
468
- size: z.ZodNumber;
469
- contentType: z.ZodString;
470
- url: z.ZodOptional<z.ZodString>;
471
- }, z.core.$strip>;
472
- }, z.core.$strict>]>;
473
- agentRef: z.ZodObject<{
474
- agentId: z.ZodString;
475
- profileRevision: z.ZodString;
476
- }, z.core.$strict>;
477
- homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
478
- requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
479
- runtime: z.ZodOptional<z.ZodEnum<{
480
- claude: "claude";
481
- codex: "codex";
482
- pi: "pi";
483
- }>>;
484
- harnessId: z.ZodOptional<z.ZodString>;
485
- dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
486
- lane: z.ZodLiteral<"subscription">;
487
- runtimeId: z.ZodEnum<{
488
- claude: "claude";
489
- codex: "codex";
490
- }>;
491
- providerId: z.ZodNull;
492
- modelId: z.ZodString;
493
- }, z.core.$strict>, z.ZodObject<{
494
- lane: z.ZodLiteral<"byok">;
495
- runtimeId: z.ZodLiteral<"pi">;
496
- providerId: z.ZodString;
497
- modelId: z.ZodString;
498
- }, z.core.$strict>, z.ZodObject<{
499
- lane: z.ZodLiteral<"byok-profile">;
500
- runtimeId: z.ZodLiteral<"pi">;
501
- providerProfile: z.ZodObject<{
502
- profileRef: z.ZodString;
503
- profileRevision: z.ZodString;
504
- profileHash: z.ZodString;
505
- modelId: z.ZodString;
506
- requiredCapabilities: z.ZodArray<z.ZodEnum<{
507
- "image-input": "image-input";
508
- }>>;
509
- }, z.core.$strict>;
510
- }, z.core.$strict>], "lane">>;
511
- terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
512
- mode: z.ZodLiteral<"none">;
513
- }, z.core.$strict>, z.ZodObject<{
514
- mode: z.ZodLiteral<"result-document">;
515
- contract: z.ZodString;
516
- }, z.core.$strict>], "mode">>;
517
- limits: z.ZodOptional<z.ZodObject<{
518
- maxDurationMs: z.ZodOptional<z.ZodNumber>;
519
- maxTokens: z.ZodOptional<z.ZodNumber>;
520
- }, z.core.$strip>>;
521
- egressPolicy: z.ZodObject<{
522
- policyRevision: z.ZodString;
523
- activity: z.ZodObject<{
524
- delivery: z.ZodLiteral<"latest-value">;
525
- maxCoalesceMs: z.ZodNumber;
526
- maxEventBytes: z.ZodNumber;
527
- }, z.core.$strict>;
528
- reliable: z.ZodObject<{
529
- maxPendingEventsPerAgent: z.ZodNumber;
530
- maxPendingBytesPerAgent: z.ZodNumber;
531
- maxPendingBytesPerTenant: z.ZodNumber;
532
- }, z.core.$strict>;
533
- transfers: z.ZodObject<{
534
- workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
535
- maxBytes: z.ZodNumber;
536
- allowedMimeTypes: z.ZodArray<z.ZodString>;
537
- }, z.core.$strict>]>;
538
- transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
539
- maxBytes: z.ZodNumber;
540
- allowedMimeTypes: z.ZodArray<z.ZodString>;
541
- }, z.core.$strict>]>;
542
- artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
543
- maxBytes: z.ZodNumber;
544
- allowedMimeTypes: z.ZodArray<z.ZodString>;
545
- }, z.core.$strict>]>;
546
- }, z.core.$strict>;
547
- }, z.core.$strict>;
548
- messageEgress: z.ZodOptional<z.ZodObject<{
549
- mode: z.ZodLiteral<"required">;
550
- contract: z.ZodString;
551
- contentType: z.ZodEnum<{
552
- "text/markdown": "text/markdown";
553
- "text/plain": "text/plain";
554
- }>;
555
- maxBytes: z.ZodNumber;
556
- }, z.core.$strict>>;
557
- }, z.core.$strict>;
558
- }, z.core.$strip>, z.ZodObject<{
559
- v: z.ZodNumber;
560
- id: z.ZodUUID;
561
- ts: z.ZodISODateTime;
562
- type: z.ZodLiteral<"task.offer_prepared">;
563
- task_id: z.ZodString;
564
- session_ref: z.ZodOptional<z.ZodString>;
565
- seq: z.ZodNumber;
566
- payload: z.ZodObject<{
567
- agentRef: z.ZodObject<{
568
- agentId: z.ZodString;
569
- profileRevision: z.ZodString;
570
- }, z.core.$strict>;
571
- homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
572
- requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
573
- runtime: z.ZodOptional<z.ZodEnum<{
574
- claude: "claude";
575
- codex: "codex";
576
- pi: "pi";
577
- }>>;
578
- harnessId: z.ZodOptional<z.ZodString>;
579
- dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
580
- lane: z.ZodLiteral<"subscription">;
581
- runtimeId: z.ZodEnum<{
582
- claude: "claude";
583
- codex: "codex";
584
- }>;
585
- providerId: z.ZodNull;
586
- modelId: z.ZodString;
587
- }, z.core.$strict>, z.ZodObject<{
588
- lane: z.ZodLiteral<"byok">;
589
- runtimeId: z.ZodLiteral<"pi">;
590
- providerId: z.ZodString;
591
- modelId: z.ZodString;
592
- }, z.core.$strict>, z.ZodObject<{
593
- lane: z.ZodLiteral<"byok-profile">;
594
- runtimeId: z.ZodLiteral<"pi">;
595
- providerProfile: z.ZodObject<{
596
- profileRef: z.ZodString;
597
- profileRevision: z.ZodString;
598
- profileHash: z.ZodString;
599
- modelId: z.ZodString;
600
- requiredCapabilities: z.ZodArray<z.ZodEnum<{
601
- "image-input": "image-input";
602
- }>>;
603
- }, z.core.$strict>;
604
- }, z.core.$strict>], "lane">>;
605
- terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
606
- mode: z.ZodLiteral<"none">;
607
- }, z.core.$strict>, z.ZodObject<{
608
- mode: z.ZodLiteral<"result-document">;
609
- contract: z.ZodString;
610
- }, z.core.$strict>], "mode">>;
611
- limits: z.ZodOptional<z.ZodObject<{
612
- maxDurationMs: z.ZodOptional<z.ZodNumber>;
613
- maxTokens: z.ZodOptional<z.ZodNumber>;
614
- }, z.core.$strip>>;
615
- preparation: z.ZodObject<{
616
- reference: z.ZodString;
617
- requestDigest: z.ZodString;
618
- artifactDigest: z.ZodOptional<z.ZodString>;
619
- }, z.core.$strict>;
620
- agentMemory: z.ZodEnum<{
621
- none: "none";
622
- read: "read";
623
- "read-write": "read-write";
624
- }>;
625
- egressPolicy: z.ZodObject<{
626
- policyRevision: z.ZodString;
627
- activity: z.ZodObject<{
628
- delivery: z.ZodLiteral<"latest-value">;
629
- maxCoalesceMs: z.ZodNumber;
630
- maxEventBytes: z.ZodNumber;
631
- }, z.core.$strict>;
632
- reliable: z.ZodObject<{
633
- maxPendingEventsPerAgent: z.ZodNumber;
634
- maxPendingBytesPerAgent: z.ZodNumber;
635
- maxPendingBytesPerTenant: z.ZodNumber;
636
- }, z.core.$strict>;
637
- transfers: z.ZodObject<{
638
- workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
639
- maxBytes: z.ZodNumber;
640
- allowedMimeTypes: z.ZodArray<z.ZodString>;
641
- }, z.core.$strict>]>;
642
- transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
643
- maxBytes: z.ZodNumber;
644
- allowedMimeTypes: z.ZodArray<z.ZodString>;
645
- }, z.core.$strict>]>;
646
- artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
647
- maxBytes: z.ZodNumber;
648
- allowedMimeTypes: z.ZodArray<z.ZodString>;
649
- }, z.core.$strict>]>;
650
- }, z.core.$strict>;
651
- }, z.core.$strict>;
652
- messageEgress: z.ZodOptional<z.ZodObject<{
653
- mode: z.ZodLiteral<"required">;
654
- contract: z.ZodString;
655
- contentType: z.ZodEnum<{
656
- "text/markdown": "text/markdown";
657
- "text/plain": "text/plain";
658
- }>;
659
- maxBytes: z.ZodNumber;
660
- }, z.core.$strict>>;
661
- }, z.core.$strict>;
662
- }, z.core.$strip>, z.ZodObject<{
663
- v: z.ZodNumber;
664
- id: z.ZodUUID;
665
- ts: z.ZodISODateTime;
666
- type: z.ZodLiteral<"agent.egress.ack">;
667
- task_id: z.ZodOptional<z.ZodString>;
668
- session_ref: z.ZodOptional<z.ZodString>;
669
- seq: z.ZodNumber;
670
- payload: z.ZodObject<{
671
- agentRef: z.ZodObject<{
672
- agentId: z.ZodString;
673
- profileRevision: z.ZodString;
674
- }, z.core.$strict>;
675
- sessionRef: z.ZodString;
676
- policyRevision: z.ZodString;
677
- eventId: z.ZodUUID;
678
- cursor: z.ZodNumber;
679
- receiptId: z.ZodUUID;
680
- }, z.core.$strict>;
681
- }, z.core.$strip>, z.ZodObject<{
682
- v: z.ZodNumber;
683
- id: z.ZodUUID;
684
- ts: z.ZodISODateTime;
685
- type: z.ZodLiteral<"agent.message.disposition">;
686
- task_id: z.ZodString;
687
- session_ref: z.ZodOptional<z.ZodString>;
688
- seq: z.ZodNumber;
689
- payload: z.ZodObject<{
690
- agentRef: z.ZodObject<{
691
- agentId: z.ZodString;
692
- profileRevision: z.ZodString;
693
- }, z.core.$strict>;
694
- sessionRef: z.ZodString;
695
- contract: z.ZodString;
696
- messageId: z.ZodUUID;
697
- cursor: z.ZodNumber;
698
- contentHash: z.ZodString;
699
- outcome: z.ZodEnum<{
700
- accepted: "accepted";
701
- held: "held";
702
- refused: "refused";
703
- }>;
704
- receiptId: z.ZodUUID;
705
- reasonCode: z.ZodOptional<z.ZodString>;
706
- }, z.core.$strict>;
707
- }, z.core.$strip>, z.ZodObject<{
708
- v: z.ZodNumber;
709
- id: z.ZodUUID;
710
- ts: z.ZodISODateTime;
711
- type: z.ZodLiteral<"agent.content.read">;
712
- task_id: z.ZodOptional<z.ZodString>;
713
- session_ref: z.ZodOptional<z.ZodString>;
714
- seq: z.ZodNumber;
715
- payload: z.ZodObject<{
716
- requestId: z.ZodUUID;
717
- surface: z.ZodEnum<{
718
- artifact: "artifact";
719
- transcript: "transcript";
720
- workspace: "workspace";
721
- }>;
722
- actor: z.ZodObject<{
723
- kind: z.ZodEnum<{
724
- agent: "agent";
725
- system: "system";
726
- user: "user";
727
- }>;
728
- id: z.ZodString;
729
- }, z.core.$strict>;
730
- agentRef: z.ZodObject<{
731
- agentId: z.ZodString;
732
- profileRevision: z.ZodString;
733
- }, z.core.$strict>;
734
- sessionRef: z.ZodString;
735
- runtime: z.ZodEnum<{
736
- claude: "claude";
737
- codex: "codex";
738
- pi: "pi";
739
- }>;
740
- cwd: z.ZodString;
741
- policyRevision: z.ZodString;
742
- target: z.ZodString;
743
- mimeType: z.ZodString;
744
- decodeAs: z.ZodEnum<{
745
- bytes: "bytes";
746
- utf8: "utf8";
747
- }>;
748
- policy: z.ZodObject<{
749
- maxBytes: z.ZodNumber;
750
- allowedMimeTypes: z.ZodArray<z.ZodString>;
751
- }, z.core.$strict>;
752
- }, z.core.$strict>;
753
- }, z.core.$strip>, z.ZodObject<{
754
- v: z.ZodNumber;
755
- id: z.ZodUUID;
756
- ts: z.ZodISODateTime;
757
- type: z.ZodLiteral<"agent.home.projection">;
758
- task_id: z.ZodOptional<z.ZodNever>;
759
- session_ref: z.ZodOptional<z.ZodString>;
760
- seq: z.ZodNumber;
761
- payload: z.ZodObject<{
762
- requestId: z.ZodUUID;
763
- agentRef: z.ZodObject<{
764
- agentId: z.ZodString;
765
- profileRevision: z.ZodString;
766
- }, z.core.$strict>;
767
- projectionHash: z.ZodString;
768
- projection: z.ZodType<import("./agent-home-projection").AgentHomeProjectionValue, unknown, z.core.$ZodTypeInternals<import("./agent-home-projection").AgentHomeProjectionValue, unknown>>;
769
- }, z.core.$strict>;
770
- }, z.core.$strip>, z.ZodObject<{
771
- v: z.ZodNumber;
772
- id: z.ZodUUID;
773
- ts: z.ZodISODateTime;
774
- type: z.ZodLiteral<"agent.input.preparation">;
775
- task_id: z.ZodOptional<z.ZodNever>;
776
- session_ref: z.ZodOptional<z.ZodString>;
777
- seq: z.ZodNumber;
778
- payload: z.ZodObject<{
779
- agentMemory: z.ZodEnum<{
780
- none: "none";
781
- read: "read";
782
- "read-write": "read-write";
783
- }>;
784
- requestId: z.ZodUUID;
785
- agentRef: z.ZodObject<{
786
- agentId: z.ZodString;
787
- profileRevision: z.ZodString;
788
- }, z.core.$strict>;
789
- profileId: z.ZodString;
790
- policyRevision: z.ZodString;
791
- source: z.ZodObject<{
792
- revision: z.ZodString;
793
- digest: z.ZodString;
794
- }, z.core.$strict>;
795
- selection: z.ZodObject<{
796
- model: z.ZodObject<{
797
- id: z.ZodString;
798
- name: z.ZodString;
799
- api: z.ZodLiteral<"openai-completions">;
800
- provider: z.ZodString;
801
- baseUrl: z.ZodString;
802
- reasoning: z.ZodBoolean;
803
- input: z.ZodArray<z.ZodEnum<{
804
- image: "image";
805
- text: "text";
806
- }>>;
807
- cost: z.ZodObject<{
808
- input: z.ZodNumber;
809
- output: z.ZodNumber;
810
- cacheRead: z.ZodNumber;
811
- cacheWrite: z.ZodNumber;
812
- }, z.core.$strict>;
813
- contextWindow: z.ZodNumber;
814
- maxTokens: z.ZodNumber;
815
- thinkingLevelMap: z.ZodOptional<z.ZodObject<{
816
- off: z.ZodNullable<z.ZodString>;
817
- minimal: z.ZodNullable<z.ZodString>;
818
- low: z.ZodNullable<z.ZodString>;
819
- medium: z.ZodNullable<z.ZodString>;
820
- high: z.ZodNullable<z.ZodString>;
821
- xhigh: z.ZodNullable<z.ZodString>;
822
- max: z.ZodNullable<z.ZodString>;
823
- }, z.core.$strict>>;
824
- compat: z.ZodOptional<z.ZodObject<{
825
- supportsStore: z.ZodOptional<z.ZodBoolean>;
826
- supportsDeveloperRole: z.ZodOptional<z.ZodBoolean>;
827
- supportsReasoningEffort: z.ZodOptional<z.ZodBoolean>;
828
- supportsUsageInStreaming: z.ZodOptional<z.ZodBoolean>;
829
- maxTokensField: z.ZodOptional<z.ZodEnum<{
830
- max_completion_tokens: "max_completion_tokens";
831
- max_tokens: "max_tokens";
832
- }>>;
833
- thinkingFormat: z.ZodOptional<z.ZodEnum<{
834
- "ant-ling": "ant-ling";
835
- baseten: "baseten";
836
- "chat-template": "chat-template";
837
- deepseek: "deepseek";
838
- openai: "openai";
839
- openrouter: "openrouter";
840
- qwen: "qwen";
841
- "qwen-chat-template": "qwen-chat-template";
842
- "string-thinking": "string-thinking";
843
- together: "together";
844
- zai: "zai";
845
- }>>;
846
- zaiToolStream: z.ZodOptional<z.ZodBoolean>;
847
- }, z.core.$strict>>;
848
- }, z.core.$strict>;
849
- options: z.ZodObject<{
850
- cacheRetention: z.ZodEnum<{
851
- long: "long";
852
- none: "none";
853
- short: "short";
854
- }>;
855
- maxTokens: z.ZodNumber;
856
- temperature: z.ZodOptional<z.ZodNumber>;
857
- toolChoice: z.ZodOptional<z.ZodEnum<{
858
- auto: "auto";
859
- none: "none";
860
- }>>;
861
- reasoningEffort: z.ZodOptional<z.ZodEnum<{
862
- high: "high";
863
- low: "low";
864
- max: "max";
865
- medium: "medium";
866
- minimal: "minimal";
867
- xhigh: "xhigh";
868
- }>>;
869
- }, z.core.$strict>;
870
- }, z.core.$strict>;
871
- deadlineAt: z.ZodISODateTime;
872
- context: z.ZodUnion<readonly [z.ZodObject<{
873
- inline: z.ZodString;
874
- }, z.core.$strict>, z.ZodObject<{
875
- blobRef: z.ZodObject<{
876
- blobId: z.ZodString;
877
- contentHash: z.ZodString;
878
- size: z.ZodNumber;
879
- contentType: z.ZodString;
880
- url: z.ZodOptional<z.ZodString>;
881
- }, z.core.$strip>;
882
- contentHash: z.ZodString;
883
- }, z.core.$strict>]>;
884
- requiredToolsets: z.ZodArray<z.ZodString>;
885
- accountingPolicyRef: z.ZodOptional<z.ZodObject<{
886
- revision: z.ZodString;
887
- ruledRuntime: z.ZodString;
888
- ruledTarget: z.ZodObject<{
889
- endpoint: z.ZodString;
890
- modelId: z.ZodString;
891
- }, z.core.$strict>;
892
- ruledResidualKeys: z.ZodArray<z.ZodString>;
893
- }, z.core.$strict>>;
894
- }, z.core.$strict>;
895
- }, z.core.$strip>, z.ZodObject<{
896
- v: z.ZodNumber;
897
- id: z.ZodUUID;
898
- ts: z.ZodISODateTime;
899
- type: z.ZodLiteral<"provider.provisioning.available">;
900
- task_id: z.ZodOptional<z.ZodNever>;
901
- session_ref: z.ZodOptional<z.ZodString>;
902
- seq: z.ZodNumber;
903
- payload: z.ZodObject<{
904
- requestId: z.ZodUUID;
905
- }, z.core.$strict>;
906
- }, z.core.$strip>, z.ZodObject<{
907
- v: z.ZodNumber;
908
- id: z.ZodUUID;
909
- ts: z.ZodISODateTime;
910
- type: z.ZodLiteral<"agent.memory.intent.available">;
911
- task_id: z.ZodOptional<z.ZodNever>;
912
- session_ref: z.ZodOptional<z.ZodString>;
913
- seq: z.ZodNumber;
914
- payload: z.ZodObject<{
915
- intentId: z.ZodUUID;
916
- agentRef: z.ZodObject<{
917
- agentId: z.ZodString;
918
- profileRevision: z.ZodString;
919
- }, z.core.$strict>;
920
- }, z.core.$strict>;
921
- }, z.core.$strip>, z.ZodObject<{
922
- v: z.ZodNumber;
923
- id: z.ZodUUID;
924
- ts: z.ZodISODateTime;
925
- type: z.ZodLiteral<"task.approve">;
926
- task_id: z.ZodString;
927
- session_ref: z.ZodOptional<z.ZodString>;
928
- seq: z.ZodNumber;
929
- payload: z.ZodObject<{
930
- approvalId: z.ZodOptional<z.ZodString>;
931
- }, z.core.$strip>;
932
- }, z.core.$strip>, z.ZodObject<{
933
- v: z.ZodNumber;
934
- id: z.ZodUUID;
935
- ts: z.ZodISODateTime;
936
- type: z.ZodLiteral<"task.reject">;
937
- task_id: z.ZodString;
938
- session_ref: z.ZodOptional<z.ZodString>;
939
- seq: z.ZodNumber;
940
- payload: z.ZodObject<{
941
- reason: z.ZodOptional<z.ZodString>;
942
- approvalId: z.ZodOptional<z.ZodString>;
943
- }, z.core.$strip>;
944
- }, z.core.$strip>, z.ZodObject<{
945
- v: z.ZodNumber;
946
- id: z.ZodUUID;
947
- ts: z.ZodISODateTime;
948
- type: z.ZodLiteral<"task.cancel">;
949
- task_id: z.ZodString;
950
- session_ref: z.ZodOptional<z.ZodString>;
951
- seq: z.ZodNumber;
952
- payload: z.ZodObject<{
953
- reason: z.ZodOptional<z.ZodString>;
954
- }, z.core.$strip>;
955
- }, z.core.$strip>, z.ZodObject<{
956
- v: z.ZodNumber;
957
- id: z.ZodUUID;
958
- ts: z.ZodISODateTime;
959
- type: z.ZodLiteral<"task.steer">;
960
- task_id: z.ZodString;
961
- session_ref: z.ZodOptional<z.ZodString>;
962
- seq: z.ZodNumber;
963
- payload: z.ZodObject<{
964
- text: z.ZodString;
965
- }, z.core.$strip>;
966
- }, z.core.$strip>, z.ZodObject<{
967
- v: z.ZodNumber;
968
- id: z.ZodUUID;
969
- ts: z.ZodISODateTime;
970
- type: z.ZodLiteral<"task.claim">;
971
- task_id: z.ZodString;
972
- session_ref: z.ZodOptional<z.ZodString>;
973
- seq: z.ZodOptional<z.ZodNumber>;
974
- payload: z.ZodObject<{
975
- deviceId: z.ZodString;
976
- agentId: z.ZodOptional<z.ZodString>;
977
- agentRef: z.ZodOptional<z.ZodObject<{
978
- agentId: z.ZodString;
979
- profileRevision: z.ZodString;
980
- }, z.core.$strict>>;
981
- runtime: z.ZodOptional<z.ZodEnum<{
982
- claude: "claude";
983
- codex: "codex";
984
- pi: "pi";
985
- }>>;
986
- harnessId: z.ZodOptional<z.ZodString>;
987
- capabilities: z.ZodOptional<z.ZodObject<{
988
- steer: z.ZodOptional<z.ZodBoolean>;
989
- resume: z.ZodOptional<z.ZodBoolean>;
990
- approvalInteractive: z.ZodOptional<z.ZodBoolean>;
991
- mcpToolsets: z.ZodOptional<z.ZodBoolean>;
992
- }, z.core.$strip>>;
993
- }, z.core.$strip>;
994
- }, z.core.$strip>, z.ZodObject<{
995
- v: z.ZodNumber;
996
- id: z.ZodUUID;
997
- ts: z.ZodISODateTime;
998
- type: z.ZodLiteral<"task.started">;
999
- task_id: z.ZodString;
1000
- session_ref: z.ZodOptional<z.ZodString>;
1001
- seq: z.ZodOptional<z.ZodNumber>;
1002
- payload: z.ZodObject<{}, z.core.$strip>;
1003
- }, z.core.$strip>, z.ZodObject<{
1004
- v: z.ZodNumber;
1005
- id: z.ZodUUID;
1006
- ts: z.ZodISODateTime;
1007
- type: z.ZodLiteral<"task.decline">;
1008
- task_id: z.ZodString;
1009
- session_ref: z.ZodOptional<z.ZodString>;
1010
- seq: z.ZodOptional<z.ZodNumber>;
1011
- payload: z.ZodObject<{
1012
- reason: z.ZodString;
1013
- retryable: z.ZodOptional<z.ZodBoolean>;
1014
- agentRef: z.ZodOptional<z.ZodObject<{
1015
- agentId: z.ZodString;
1016
- profileRevision: z.ZodString;
1017
- }, z.core.$strict>>;
1018
- }, z.core.$strip>;
1019
- }, z.core.$strip>, z.ZodObject<{
1020
- v: z.ZodNumber;
1021
- id: z.ZodUUID;
1022
- ts: z.ZodISODateTime;
1023
- type: z.ZodLiteral<"task.progress">;
1024
- task_id: z.ZodString;
1025
- session_ref: z.ZodOptional<z.ZodString>;
1026
- seq: z.ZodOptional<z.ZodNumber>;
1027
- payload: z.ZodObject<{
1028
- seq: z.ZodNumber;
1029
- events: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1030
- type: z.ZodLiteral<"progress">;
1031
- text: z.ZodString;
1032
- }, z.core.$strip>, z.ZodObject<{
1033
- type: z.ZodLiteral<"tool_use">;
1034
- tool: z.ZodString;
1035
- input: z.ZodOptional<z.ZodUnknown>;
1036
- toolCallId: z.ZodOptional<z.ZodString>;
1037
- spill: z.ZodOptional<z.ZodObject<{
1038
- field: z.ZodEnum<{
1039
- input: "input";
1040
- output: "output";
1041
- }>;
1042
- totalBytes: z.ZodNumber;
1043
- omittedBytes: z.ZodNumber;
1044
- contentType: z.ZodLiteral<"application/json">;
1045
- blob: z.ZodOptional<z.ZodObject<{
1046
- blobId: z.ZodString;
1047
- contentHash: z.ZodString;
1048
- size: z.ZodNumber;
1049
- contentType: z.ZodString;
1050
- url: z.ZodOptional<z.ZodString>;
1051
- }, z.core.$strip>>;
1052
- unstoredReason: z.ZodOptional<z.ZodString>;
1053
- }, z.core.$strict>>;
1054
- }, z.core.$strip>, z.ZodObject<{
1055
- type: z.ZodLiteral<"tool_result">;
1056
- tool: z.ZodString;
1057
- output: z.ZodOptional<z.ZodUnknown>;
1058
- toolCallId: z.ZodOptional<z.ZodString>;
1059
- isError: z.ZodOptional<z.ZodBoolean>;
1060
- spill: z.ZodOptional<z.ZodObject<{
1061
- field: z.ZodEnum<{
1062
- input: "input";
1063
- output: "output";
1064
- }>;
1065
- totalBytes: z.ZodNumber;
1066
- omittedBytes: z.ZodNumber;
1067
- contentType: z.ZodLiteral<"application/json">;
1068
- blob: z.ZodOptional<z.ZodObject<{
1069
- blobId: z.ZodString;
1070
- contentHash: z.ZodString;
1071
- size: z.ZodNumber;
1072
- contentType: z.ZodString;
1073
- url: z.ZodOptional<z.ZodString>;
1074
- }, z.core.$strip>>;
1075
- unstoredReason: z.ZodOptional<z.ZodString>;
1076
- }, z.core.$strict>>;
1077
- }, z.core.$strip>, z.ZodObject<{
1078
- type: z.ZodLiteral<"artifact">;
1079
- name: z.ZodString;
1080
- contentType: z.ZodString;
1081
- }, z.core.$strip>, z.ZodObject<{
1082
- type: z.ZodLiteral<"needs_approval">;
1083
- summary: z.ZodString;
1084
- }, z.core.$strip>, z.ZodObject<{
1085
- type: z.ZodLiteral<"turn_end">;
1086
- }, z.core.$strip>, z.ZodObject<{
1087
- type: z.ZodLiteral<"error">;
1088
- message: z.ZodString;
1089
- }, z.core.$strip>, z.ZodObject<{
1090
- type: z.ZodLiteral<"usage">;
1091
- inputTokens: z.ZodOptional<z.ZodNumber>;
1092
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1093
- outputTokens: z.ZodOptional<z.ZodNumber>;
1094
- reasoningTokens: z.ZodOptional<z.ZodNumber>;
1095
- totalTokens: z.ZodOptional<z.ZodNumber>;
1096
- contextTokens: z.ZodOptional<z.ZodNumber>;
1097
- contextWindow: z.ZodOptional<z.ZodNumber>;
1098
- contextSource: z.ZodOptional<z.ZodEnum<{
1099
- estimate: "estimate";
1100
- provider: "provider";
1101
- }>>;
1102
- }, z.core.$strip>], "type">, z.ZodObject<{
1103
- type: z.ZodString;
1104
- }, z.core.$loose>]>>;
1105
- }, z.core.$strip>;
1106
- }, z.core.$strip>, z.ZodObject<{
1107
- v: z.ZodNumber;
1108
- id: z.ZodUUID;
1109
- ts: z.ZodISODateTime;
1110
- type: z.ZodLiteral<"task.artifact">;
1111
- task_id: z.ZodString;
1112
- session_ref: z.ZodOptional<z.ZodString>;
1113
- seq: z.ZodOptional<z.ZodNumber>;
1114
- payload: z.ZodObject<{
1115
- name: z.ZodString;
1116
- contentType: z.ZodString;
1117
- inline: z.ZodOptional<z.ZodString>;
1118
- blobRef: z.ZodOptional<z.ZodObject<{
1119
- blobId: z.ZodString;
1120
- contentHash: z.ZodString;
1121
- size: z.ZodNumber;
1122
- contentType: z.ZodString;
1123
- url: z.ZodOptional<z.ZodString>;
1124
- }, z.core.$strip>>;
1125
- }, z.core.$strip>;
1126
- }, z.core.$strip>, z.ZodObject<{
1127
- v: z.ZodNumber;
1128
- id: z.ZodUUID;
1129
- ts: z.ZodISODateTime;
1130
- type: z.ZodLiteral<"task.await_approval">;
1131
- task_id: z.ZodString;
1132
- session_ref: z.ZodOptional<z.ZodString>;
1133
- seq: z.ZodOptional<z.ZodNumber>;
1134
- payload: z.ZodObject<{
1135
- summary: z.ZodString;
1136
- approvalId: z.ZodOptional<z.ZodString>;
1137
- }, z.core.$strip>;
1138
- }, z.core.$strip>, z.ZodObject<{
1139
- v: z.ZodNumber;
1140
- id: z.ZodUUID;
1141
- ts: z.ZodISODateTime;
1142
- type: z.ZodLiteral<"task.complete">;
1143
- task_id: z.ZodString;
1144
- session_ref: z.ZodOptional<z.ZodString>;
1145
- seq: z.ZodOptional<z.ZodNumber>;
1146
- payload: z.ZodObject<{
1147
- harnessId: z.ZodOptional<z.ZodString>;
1148
- summary: z.ZodString;
1149
- finalMessage: z.ZodOptional<z.ZodString>;
1150
- sessionRef: z.ZodString;
1151
- artifactRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1152
- blobId: z.ZodString;
1153
- contentHash: z.ZodString;
1154
- size: z.ZodNumber;
1155
- contentType: z.ZodString;
1156
- url: z.ZodOptional<z.ZodString>;
1157
- }, z.core.$strip>>>;
1158
- document: z.ZodOptional<z.ZodUnknown>;
1159
- usage: z.ZodOptional<z.ZodObject<{
1160
- runtime: z.ZodEnum<{
1161
- claude: "claude";
1162
- codex: "codex";
1163
- pi: "pi";
1164
- }>;
1165
- provider: z.ZodOptional<z.ZodString>;
1166
- model: z.ZodOptional<z.ZodString>;
1167
- promptTokens: z.ZodOptional<z.ZodNumber>;
1168
- completionTokens: z.ZodOptional<z.ZodNumber>;
1169
- durationMs: z.ZodOptional<z.ZodNumber>;
1170
- clientVersion: z.ZodString;
1171
- reportedAt: z.ZodISODateTime;
1172
- }, z.core.$strip>>;
1173
- preparedObservation: z.ZodOptional<z.ZodObject<{
1174
- requestDigest: z.ZodString;
1175
- initialPromptTokens: z.ZodNumber;
1176
- maxPromptTokens: z.ZodNumber;
1177
- }, z.core.$strict>>;
1178
- agentRef: z.ZodOptional<z.ZodObject<{
1179
- agentId: z.ZodString;
1180
- profileRevision: z.ZodString;
1181
- }, z.core.$strict>>;
1182
- agentHomeProjection: z.ZodOptional<z.ZodObject<{
1183
- profileRevision: z.ZodString;
1184
- projectionHash: z.ZodString;
1185
- }, z.core.$strict>>;
1186
- agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1187
- outcome: z.ZodLiteral<"unchanged">;
1188
- }, z.core.$strict>, z.ZodObject<{
1189
- outcome: z.ZodLiteral<"reader-attributed">;
1190
- paths: z.ZodArray<z.ZodString>;
1191
- }, z.core.$strict>, z.ZodObject<{
1192
- outcome: z.ZodLiteral<"unattributed">;
1193
- paths: z.ZodArray<z.ZodString>;
1194
- }, z.core.$strict>, z.ZodObject<{
1195
- outcome: z.ZodLiteral<"unmeasured">;
1196
- }, z.core.$strict>], "outcome">>;
1197
- }, z.core.$strip>;
1198
- }, z.core.$strip>, z.ZodObject<{
1199
- v: z.ZodNumber;
1200
- id: z.ZodUUID;
1201
- ts: z.ZodISODateTime;
1202
- type: z.ZodLiteral<"task.fail">;
1203
- task_id: z.ZodString;
1204
- session_ref: z.ZodOptional<z.ZodString>;
1205
- seq: z.ZodOptional<z.ZodNumber>;
1206
- payload: z.ZodObject<{
1207
- recovery: z.ZodOptional<z.ZodObject<{
1208
- kind: z.ZodLiteral<"daemon_interrupted">;
1209
- offerId: z.ZodUUID;
1210
- }, z.core.$strict>>;
1211
- harnessId: z.ZodOptional<z.ZodString>;
1212
- reason: z.ZodString;
1213
- retryable: z.ZodOptional<z.ZodBoolean>;
1214
- usage: z.ZodOptional<z.ZodObject<{
1215
- runtime: z.ZodEnum<{
1216
- claude: "claude";
1217
- codex: "codex";
1218
- pi: "pi";
1219
- }>;
1220
- provider: z.ZodOptional<z.ZodString>;
1221
- model: z.ZodOptional<z.ZodString>;
1222
- promptTokens: z.ZodOptional<z.ZodNumber>;
1223
- completionTokens: z.ZodOptional<z.ZodNumber>;
1224
- durationMs: z.ZodOptional<z.ZodNumber>;
1225
- clientVersion: z.ZodString;
1226
- reportedAt: z.ZodISODateTime;
1227
- }, z.core.$strip>>;
1228
- preparedObservation: z.ZodOptional<z.ZodObject<{
1229
- requestDigest: z.ZodString;
1230
- initialPromptTokens: z.ZodNumber;
1231
- maxPromptTokens: z.ZodNumber;
1232
- }, z.core.$strict>>;
1233
- agentRef: z.ZodOptional<z.ZodObject<{
1234
- agentId: z.ZodString;
1235
- profileRevision: z.ZodString;
1236
- }, z.core.$strict>>;
1237
- agentHomeProjection: z.ZodOptional<z.ZodObject<{
1238
- profileRevision: z.ZodString;
1239
- projectionHash: z.ZodString;
1240
- }, z.core.$strict>>;
1241
- agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1242
- outcome: z.ZodLiteral<"unchanged">;
1243
- }, z.core.$strict>, z.ZodObject<{
1244
- outcome: z.ZodLiteral<"reader-attributed">;
1245
- paths: z.ZodArray<z.ZodString>;
1246
- }, z.core.$strict>, z.ZodObject<{
1247
- outcome: z.ZodLiteral<"unattributed">;
1248
- paths: z.ZodArray<z.ZodString>;
1249
- }, z.core.$strict>, z.ZodObject<{
1250
- outcome: z.ZodLiteral<"unmeasured">;
1251
- }, z.core.$strict>], "outcome">>;
1252
- }, z.core.$strip>;
1253
- }, z.core.$strip>, z.ZodObject<{
1254
- v: z.ZodNumber;
1255
- id: z.ZodUUID;
1256
- ts: z.ZodISODateTime;
1257
- type: z.ZodLiteral<"task.cancelled">;
1258
- task_id: z.ZodString;
1259
- session_ref: z.ZodOptional<z.ZodString>;
1260
- seq: z.ZodOptional<z.ZodNumber>;
1261
- payload: z.ZodObject<{
1262
- harnessId: z.ZodOptional<z.ZodString>;
1263
- reason: z.ZodOptional<z.ZodString>;
1264
- usage: z.ZodOptional<z.ZodObject<{
1265
- runtime: z.ZodEnum<{
1266
- claude: "claude";
1267
- codex: "codex";
1268
- pi: "pi";
1269
- }>;
1270
- provider: z.ZodOptional<z.ZodString>;
1271
- model: z.ZodOptional<z.ZodString>;
1272
- promptTokens: z.ZodOptional<z.ZodNumber>;
1273
- completionTokens: z.ZodOptional<z.ZodNumber>;
1274
- durationMs: z.ZodOptional<z.ZodNumber>;
1275
- clientVersion: z.ZodString;
1276
- reportedAt: z.ZodISODateTime;
1277
- }, z.core.$strip>>;
1278
- agentRef: z.ZodOptional<z.ZodObject<{
1279
- agentId: z.ZodString;
1280
- profileRevision: z.ZodString;
1281
- }, z.core.$strict>>;
1282
- agentHomeProjection: z.ZodOptional<z.ZodObject<{
1283
- profileRevision: z.ZodString;
1284
- projectionHash: z.ZodString;
1285
- }, z.core.$strict>>;
1286
- agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1287
- outcome: z.ZodLiteral<"unchanged">;
1288
- }, z.core.$strict>, z.ZodObject<{
1289
- outcome: z.ZodLiteral<"reader-attributed">;
1290
- paths: z.ZodArray<z.ZodString>;
1291
- }, z.core.$strict>, z.ZodObject<{
1292
- outcome: z.ZodLiteral<"unattributed">;
1293
- paths: z.ZodArray<z.ZodString>;
1294
- }, z.core.$strict>, z.ZodObject<{
1295
- outcome: z.ZodLiteral<"unmeasured">;
1296
- }, z.core.$strict>], "outcome">>;
1297
- }, z.core.$strip>;
1298
- }, z.core.$strip>, z.ZodObject<{
1299
- v: z.ZodNumber;
1300
- id: z.ZodUUID;
1301
- ts: z.ZodISODateTime;
1302
- type: z.ZodLiteral<"task.approval_resolved">;
1303
- task_id: z.ZodString;
1304
- session_ref: z.ZodOptional<z.ZodString>;
1305
- seq: z.ZodOptional<z.ZodNumber>;
1306
- payload: z.ZodObject<{
1307
- approvalId: z.ZodString;
1308
- decision: z.ZodEnum<{
1309
- approve: "approve";
1310
- reject: "reject";
1311
- }>;
1312
- resolvedBy: z.ZodEnum<{
1313
- local: "local";
1314
- }>;
1315
- at: z.ZodISODateTime;
1316
- }, z.core.$strip>;
1317
- }, z.core.$strip>, z.ZodObject<{
1318
- v: z.ZodNumber;
1319
- id: z.ZodUUID;
1320
- ts: z.ZodISODateTime;
1321
- type: z.ZodLiteral<"agent.egress.reliable">;
1322
- task_id: z.ZodOptional<z.ZodString>;
1323
- session_ref: z.ZodOptional<z.ZodString>;
1324
- seq: z.ZodOptional<z.ZodNumber>;
1325
- payload: z.ZodObject<{
1326
- agentRef: z.ZodObject<{
1327
- agentId: z.ZodString;
1328
- profileRevision: z.ZodString;
1329
- }, z.core.$strict>;
1330
- sessionRef: z.ZodString;
1331
- policyRevision: z.ZodString;
1332
- eventId: z.ZodUUID;
1333
- cursor: z.ZodNumber;
1334
- payload: z.ZodJSONSchema;
1335
- contentHash: z.ZodString;
1336
- byteCount: z.ZodNumber;
1337
- }, z.core.$strict>;
1338
- }, z.core.$strip>, z.ZodObject<{
1339
- v: z.ZodNumber;
1340
- id: z.ZodUUID;
1341
- ts: z.ZodISODateTime;
1342
- type: z.ZodLiteral<"agent.message.publish">;
1343
- task_id: z.ZodString;
1344
- session_ref: z.ZodOptional<z.ZodString>;
1345
- seq: z.ZodOptional<z.ZodNumber>;
1346
- payload: z.ZodObject<{
1347
- agentRef: z.ZodObject<{
1348
- agentId: z.ZodString;
1349
- profileRevision: z.ZodString;
1350
- }, z.core.$strict>;
1351
- sessionRef: z.ZodString;
1352
- contract: z.ZodString;
1353
- messageId: z.ZodUUID;
1354
- cursor: z.ZodNumber;
1355
- contentType: z.ZodEnum<{
1356
- "text/markdown": "text/markdown";
1357
- "text/plain": "text/plain";
1358
- }>;
1359
- body: z.ZodString;
1360
- contentHash: z.ZodString;
1361
- byteCount: z.ZodNumber;
1362
- }, z.core.$strict>;
1363
- }, z.core.$strip>, z.ZodObject<{
1364
- v: z.ZodNumber;
1365
- id: z.ZodUUID;
1366
- ts: z.ZodISODateTime;
1367
- type: z.ZodLiteral<"agent.content.receipt">;
1368
- task_id: z.ZodOptional<z.ZodString>;
1369
- session_ref: z.ZodOptional<z.ZodString>;
1370
- seq: z.ZodOptional<z.ZodNumber>;
1371
- payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1372
- requestId: z.ZodUUID;
1373
- eventId: z.ZodUUID;
1374
- cursor: z.ZodNumber;
1375
- surface: z.ZodEnum<{
1376
- artifact: "artifact";
1377
- transcript: "transcript";
1378
- workspace: "workspace";
1379
- }>;
1380
- actor: z.ZodObject<{
1381
- kind: z.ZodEnum<{
1382
- agent: "agent";
1383
- system: "system";
1384
- user: "user";
1385
- }>;
1386
- id: z.ZodString;
1387
- }, z.core.$strict>;
1388
- agentRef: z.ZodObject<{
1389
- agentId: z.ZodString;
1390
- profileRevision: z.ZodString;
1391
- }, z.core.$strict>;
1392
- sessionRef: z.ZodString;
1393
- runtime: z.ZodEnum<{
1394
- claude: "claude";
1395
- codex: "codex";
1396
- pi: "pi";
1397
- }>;
1398
- cwd: z.ZodString;
1399
- policyRevision: z.ZodString;
1400
- target: z.ZodString;
1401
- mimeType: z.ZodString;
1402
- decodeAs: z.ZodEnum<{
1403
- bytes: "bytes";
1404
- utf8: "utf8";
1405
- }>;
1406
- decision: z.ZodLiteral<"allowed">;
1407
- byteCount: z.ZodNumber;
1408
- contentHash: z.ZodString;
1409
- blobRef: z.ZodObject<{
1410
- blobId: z.ZodString;
1411
- contentHash: z.ZodString;
1412
- size: z.ZodNumber;
1413
- contentType: z.ZodString;
1414
- url: z.ZodOptional<z.ZodString>;
1415
- }, z.core.$strip>;
1416
- }, z.core.$strict>, z.ZodObject<{
1417
- requestId: z.ZodUUID;
1418
- eventId: z.ZodUUID;
1419
- cursor: z.ZodNumber;
1420
- surface: z.ZodEnum<{
1421
- artifact: "artifact";
1422
- transcript: "transcript";
1423
- workspace: "workspace";
1424
- }>;
1425
- actor: z.ZodObject<{
1426
- kind: z.ZodEnum<{
1427
- agent: "agent";
1428
- system: "system";
1429
- user: "user";
1430
- }>;
1431
- id: z.ZodString;
1432
- }, z.core.$strict>;
1433
- agentRef: z.ZodObject<{
1434
- agentId: z.ZodString;
1435
- profileRevision: z.ZodString;
1436
- }, z.core.$strict>;
1437
- sessionRef: z.ZodString;
1438
- runtime: z.ZodEnum<{
1439
- claude: "claude";
1440
- codex: "codex";
1441
- pi: "pi";
1442
- }>;
1443
- cwd: z.ZodString;
1444
- policyRevision: z.ZodString;
1445
- target: z.ZodString;
1446
- mimeType: z.ZodString;
1447
- decodeAs: z.ZodEnum<{
1448
- bytes: "bytes";
1449
- utf8: "utf8";
1450
- }>;
1451
- decision: z.ZodLiteral<"denied">;
1452
- byteCount: z.ZodLiteral<0>;
1453
- reason: z.ZodEnum<{
1454
- "absolute-target": "absolute-target";
1455
- "byte-limit": "byte-limit";
1456
- "capability-missing": "capability-missing";
1457
- "dot-segment": "dot-segment";
1458
- "identity-mismatch": "identity-mismatch";
1459
- "invalid-request": "invalid-request";
1460
- "mime-not-allowlisted": "mime-not-allowlisted";
1461
- "non-relative-target": "non-relative-target";
1462
- "not-regular-file": "not-regular-file";
1463
- "path-escape": "path-escape";
1464
- "policy-disabled": "policy-disabled";
1465
- "policy-revision-mismatch": "policy-revision-mismatch";
1466
- "root-invalid": "root-invalid";
1467
- "root-not-allowlisted": "root-not-allowlisted";
1468
- "sensitive-name": "sensitive-name";
1469
- symlink: "symlink";
1470
- "target-missing": "target-missing";
1471
- "text-decode-failed": "text-decode-failed";
1472
- "text-not-allowlisted": "text-not-allowlisted";
1473
- }>;
1474
- }, z.core.$strict>], "decision">;
1475
- }, z.core.$strip>], "type">>;
112
+ /**
113
+ * Deployment-owned activity limits. A v3 responder advertises them on every
114
+ * events page and on every answer whose `conn.hello` it accepted; there is no
115
+ * client-side default.
116
+ */
117
+ export declare const ActivityIngressSchema: z.ZodObject<{
118
+ activityMaxEvents: z.ZodNumber;
119
+ activityMaxBytes: z.ZodNumber;
120
+ }, z.core.$strip>;
121
+ export type ActivityIngress = z.infer<typeof ActivityIngressSchema>;
122
+ export declare const OUTBOUND_REFUSAL_REASONS: readonly ['payload_invalid', 'not_permitted', 'limit_exceeded', 'state_conflict', 'unsupported'];
123
+ /** `unknown` is an unrecognized wire reason string, kept as an observation. */
124
+ export type OutboundRefusalReason = typeof OUTBOUND_REFUSAL_REASONS[number] | 'unknown';
125
+ export declare const MessageSendOutcomeSchema: z.ZodObject<{
126
+ id: z.ZodUUID;
127
+ outcome: z.ZodEnum<{
128
+ accepted: "accepted";
129
+ duplicate: "duplicate";
130
+ rejected: "rejected";
131
+ }>;
132
+ reason: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"limit_exceeded" | "not_permitted" | "payload_invalid" | "state_conflict" | "unknown" | "unsupported", string>>>;
133
+ }, z.core.$strip>;
134
+ export type MessageSendOutcome = z.infer<typeof MessageSendOutcomeSchema>;
135
+ export declare const EventsPollResponseSchema: z.ZodObject<{
136
+ events: z.ZodArray<z.ZodUnknown>;
1476
137
  cursor: z.ZodNumber;
1477
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
138
+ capabilities: z.ZodArray<z.ZodString>;
139
+ ingress: z.ZodObject<{
140
+ activityMaxEvents: z.ZodNumber;
141
+ activityMaxBytes: z.ZodNumber;
142
+ }, z.core.$strip>;
1478
143
  }, z.core.$strip>;
1479
144
  export type EventsPollResponse = z.infer<typeof EventsPollResponseSchema>;
1480
145
  /**
@@ -1514,6 +179,7 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
1514
179
  resume: z.ZodOptional<z.ZodBoolean>;
1515
180
  approvalInteractive: z.ZodOptional<z.ZodBoolean>;
1516
181
  mcpToolsets: z.ZodOptional<z.ZodBoolean>;
182
+ messageDraft: z.ZodOptional<z.ZodBoolean>;
1517
183
  }, z.core.$strip>>;
1518
184
  }, z.core.$strip>>>;
1519
185
  harnesses: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1524,6 +190,7 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
1524
190
  resume: z.ZodOptional<z.ZodBoolean>;
1525
191
  approvalInteractive: z.ZodOptional<z.ZodBoolean>;
1526
192
  mcpToolsets: z.ZodOptional<z.ZodBoolean>;
193
+ messageDraft: z.ZodOptional<z.ZodBoolean>;
1527
194
  }, z.core.$strip>;
1528
195
  }, z.core.$strip>>>;
1529
196
  configuredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1718,6 +385,7 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
1718
385
  }, z.core.$strict>, z.ZodObject<{
1719
386
  mode: z.ZodLiteral<"result-document">;
1720
387
  contract: z.ZodString;
388
+ schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
1721
389
  }, z.core.$strict>], "mode">>;
1722
390
  sessionRef: z.ZodOptional<z.ZodString>;
1723
391
  limits: z.ZodOptional<z.ZodObject<{
@@ -1786,6 +454,7 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
1786
454
  }, z.core.$strict>, z.ZodObject<{
1787
455
  mode: z.ZodLiteral<"result-document">;
1788
456
  contract: z.ZodString;
457
+ schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
1789
458
  }, z.core.$strict>], "mode">>;
1790
459
  limits: z.ZodOptional<z.ZodObject<{
1791
460
  maxDurationMs: z.ZodOptional<z.ZodNumber>;
@@ -1890,6 +559,7 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
1890
559
  }, z.core.$strict>, z.ZodObject<{
1891
560
  mode: z.ZodLiteral<"result-document">;
1892
561
  contract: z.ZodString;
562
+ schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
1893
563
  }, z.core.$strict>], "mode">>;
1894
564
  limits: z.ZodOptional<z.ZodObject<{
1895
565
  maxDurationMs: z.ZodOptional<z.ZodNumber>;
@@ -1984,6 +654,7 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
1984
654
  }, z.core.$strict>, z.ZodObject<{
1985
655
  mode: z.ZodLiteral<"result-document">;
1986
656
  contract: z.ZodString;
657
+ schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
1987
658
  }, z.core.$strict>], "mode">>;
1988
659
  limits: z.ZodOptional<z.ZodObject<{
1989
660
  maxDurationMs: z.ZodOptional<z.ZodNumber>;
@@ -2366,6 +1037,7 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
2366
1037
  resume: z.ZodOptional<z.ZodBoolean>;
2367
1038
  approvalInteractive: z.ZodOptional<z.ZodBoolean>;
2368
1039
  mcpToolsets: z.ZodOptional<z.ZodBoolean>;
1040
+ messageDraft: z.ZodOptional<z.ZodBoolean>;
2369
1041
  }, z.core.$strip>>;
2370
1042
  }, z.core.$strip>;
2371
1043
  }, z.core.$strip>, z.ZodObject<{
@@ -2392,6 +1064,10 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
2392
1064
  agentId: z.ZodString;
2393
1065
  profileRevision: z.ZodString;
2394
1066
  }, z.core.$strict>>;
1067
+ code: z.ZodOptional<z.ZodEnum<{
1068
+ agent_home_reader_busy: "agent_home_reader_busy";
1069
+ agent_home_writer_busy: "agent_home_writer_busy";
1070
+ }>>;
2395
1071
  }, z.core.$strip>;
2396
1072
  }, z.core.$strip>, z.ZodObject<{
2397
1073
  v: z.ZodNumber;
@@ -2712,6 +1388,24 @@ export declare const MessagesSendRequestSchema: z.ZodObject<{
2712
1388
  contentHash: z.ZodString;
2713
1389
  byteCount: z.ZodNumber;
2714
1390
  }, z.core.$strict>;
1391
+ }, z.core.$strip>, z.ZodObject<{
1392
+ v: z.ZodNumber;
1393
+ id: z.ZodUUID;
1394
+ ts: z.ZodISODateTime;
1395
+ type: z.ZodLiteral<"agent.message.draft">;
1396
+ task_id: z.ZodString;
1397
+ session_ref: z.ZodOptional<z.ZodString>;
1398
+ seq: z.ZodOptional<z.ZodNumber>;
1399
+ payload: z.ZodObject<{
1400
+ agentRef: z.ZodObject<{
1401
+ agentId: z.ZodString;
1402
+ profileRevision: z.ZodString;
1403
+ }, z.core.$strict>;
1404
+ revision: z.ZodNumber;
1405
+ offset: z.ZodNumber;
1406
+ text: z.ZodString;
1407
+ overflow: z.ZodOptional<z.ZodLiteral<true>>;
1408
+ }, z.core.$strict>;
2715
1409
  }, z.core.$strip>, z.ZodObject<{
2716
1410
  v: z.ZodNumber;
2717
1411
  id: z.ZodUUID;
@@ -2856,12 +1550,36 @@ export type MessagesSendRequest = z.infer<typeof MessagesSendRequestSchema>;
2856
1550
  * `accepted` counts every envelope `ConnectionHub.handleInbound` returned
2857
1551
  * `'accepted'` *or* `'duplicate'` for — a deduped replay is a wire-level
2858
1552
  * success even though the business mutation did not run a second time.
2859
- * `rejected` is additive and omitted when zero, preserving frozen v1's
2860
- * `{ accepted }` response shape.
1553
+ * `rejected` is omitted when zero. `outcomes` is required and correlates
1554
+ * exactly one result with each posted envelope; a rejected outcome carries its
1555
+ * reason. `ingress` is required on an answer whose `conn.hello` was accepted
1556
+ * (or deduplicated). The client enforces the per-envelope rules against the
1557
+ * posted batch and treats a violation as an unusable response.
1558
+ *
1559
+ * `capabilities` (additive) is the same server capability advertisement a
1560
+ * `GET /byok/events` response carries. A server includes it when the batch
1561
+ * carries `conn.hello`: the daemon's handshake is a lone `conn.hello` POST,
1562
+ * so its answer carries readiness and capabilities in one round trip.
1563
+ * Absence means "no update" — the daemon keeps the advertisement it already
1564
+ * holds — never an empty list.
2861
1565
  */
2862
1566
  export declare const MessagesSendResponseSchema: z.ZodObject<{
2863
1567
  accepted: z.ZodNumber;
2864
1568
  rejected: z.ZodOptional<z.ZodNumber>;
1569
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
1570
+ ingress: z.ZodOptional<z.ZodObject<{
1571
+ activityMaxEvents: z.ZodNumber;
1572
+ activityMaxBytes: z.ZodNumber;
1573
+ }, z.core.$strip>>;
1574
+ outcomes: z.ZodArray<z.ZodObject<{
1575
+ id: z.ZodUUID;
1576
+ outcome: z.ZodEnum<{
1577
+ accepted: "accepted";
1578
+ duplicate: "duplicate";
1579
+ rejected: "rejected";
1580
+ }>;
1581
+ reason: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"limit_exceeded" | "not_permitted" | "payload_invalid" | "state_conflict" | "unknown" | "unsupported", string>>>;
1582
+ }, z.core.$strip>>;
2865
1583
  }, z.core.$strip>;
2866
1584
  export type MessagesSendResponse = z.infer<typeof MessagesSendResponseSchema>;
2867
1585
  export declare const AgentHomeProjectionCompletionRequestSchema: z.ZodObject<{
@@ -2926,6 +1644,13 @@ export declare const InputPreparationCompletionRequestSchema: z.ZodDiscriminated
2926
1644
  reserved: "reserved";
2927
1645
  }>;
2928
1646
  binding: z.ZodObject<{
1647
+ terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1648
+ mode: z.ZodLiteral<"none">;
1649
+ }, z.core.$strict>, z.ZodObject<{
1650
+ mode: z.ZodLiteral<"result-document">;
1651
+ contract: z.ZodString;
1652
+ schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
1653
+ }, z.core.$strict>], "mode">>;
2929
1654
  agentMemory: z.ZodEnum<{
2930
1655
  none: "none";
2931
1656
  read: "read";
@@ -3118,6 +1843,13 @@ export declare const InputPreparationReadbackSchema: z.ZodObject<{
3118
1843
  reserved: "reserved";
3119
1844
  }>;
3120
1845
  binding: z.ZodObject<{
1846
+ terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1847
+ mode: z.ZodLiteral<"none">;
1848
+ }, z.core.$strict>, z.ZodObject<{
1849
+ mode: z.ZodLiteral<"result-document">;
1850
+ contract: z.ZodString;
1851
+ schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
1852
+ }, z.core.$strict>], "mode">>;
3121
1853
  agentMemory: z.ZodEnum<{
3122
1854
  none: "none";
3123
1855
  read: "read";