@byok-sdk/protocol 0.29.0 → 0.30.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.
@@ -1,5 +1,20 @@
1
1
  import { z } from 'zod';
2
- import { type MessageType } from './messages';
2
+ import { MESSAGE_PAYLOAD_SCHEMAS, type MessageType } from './messages';
3
+ /**
4
+ * The schema `envelopeShape` returns, written out so declaration emit names
5
+ * each branch of `EnvelopeSchema` instead of copying every payload type.
6
+ * Type-only: it must stay equal to the inferred `z.object` type below.
7
+ */
8
+ type EnvelopeShape<T extends MessageType, TaskId extends z.ZodTypeAny, Seq extends z.ZodTypeAny> = z.ZodObject<{
9
+ v: z.ZodNumber;
10
+ id: z.ZodUUID;
11
+ ts: z.ZodISODateTime;
12
+ type: z.ZodLiteral<T>;
13
+ task_id: TaskId;
14
+ session_ref: z.ZodOptional<z.ZodString>;
15
+ seq: Seq;
16
+ payload: (typeof MESSAGE_PAYLOAD_SCHEMAS)[T];
17
+ }, z.core.$strip>;
3
18
  /**
4
19
  * The wire envelope: common transport fields plus a `payload` whose shape is
5
20
  * determined by `type`. Unknown top-level fields are tolerated (stripped) for
@@ -16,1421 +31,8 @@ import { type MessageType } from './messages';
16
31
  * optional for daemon -> server types (M1 redelivery cursor; see
17
32
  * `conn.hello.cursor` in `messages.ts`).
18
33
  */
19
- export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
20
- v: z.ZodNumber;
21
- id: z.ZodUUID;
22
- ts: z.ZodISODateTime;
23
- type: z.ZodLiteral<"conn.hello">;
24
- task_id: z.ZodOptional<z.ZodString>;
25
- session_ref: z.ZodOptional<z.ZodString>;
26
- seq: z.ZodOptional<z.ZodNumber>;
27
- payload: z.ZodObject<{
28
- protocolVersions: z.ZodArray<z.ZodNumber>;
29
- capabilities: z.ZodArray<z.ZodString>;
30
- deviceId: z.ZodString;
31
- productId: z.ZodString;
32
- clientVersion: z.ZodOptional<z.ZodString>;
33
- runtimes: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
- id: z.ZodEnum<{
35
- claude: "claude";
36
- codex: "codex";
37
- pi: "pi";
38
- }>;
39
- version: z.ZodOptional<z.ZodString>;
40
- authPresent: z.ZodOptional<z.ZodBoolean>;
41
- capabilities: z.ZodOptional<z.ZodObject<{
42
- steer: z.ZodOptional<z.ZodBoolean>;
43
- resume: z.ZodOptional<z.ZodBoolean>;
44
- approvalInteractive: z.ZodOptional<z.ZodBoolean>;
45
- mcpToolsets: z.ZodOptional<z.ZodBoolean>;
46
- messageDraft: z.ZodOptional<z.ZodBoolean>;
47
- }, z.core.$strip>>;
48
- }, z.core.$strip>>>;
49
- harnesses: z.ZodOptional<z.ZodArray<z.ZodObject<{
50
- id: z.ZodString;
51
- version: z.ZodOptional<z.ZodString>;
52
- capabilities: z.ZodObject<{
53
- steer: z.ZodOptional<z.ZodBoolean>;
54
- resume: z.ZodOptional<z.ZodBoolean>;
55
- approvalInteractive: z.ZodOptional<z.ZodBoolean>;
56
- mcpToolsets: z.ZodOptional<z.ZodBoolean>;
57
- messageDraft: z.ZodOptional<z.ZodBoolean>;
58
- }, z.core.$strip>;
59
- }, z.core.$strip>>>;
60
- configuredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
61
- cursor: z.ZodOptional<z.ZodNumber>;
62
- }, z.core.$strip>;
63
- }, z.core.$strip>, z.ZodObject<{
64
- v: z.ZodNumber;
65
- id: z.ZodUUID;
66
- ts: z.ZodISODateTime;
67
- type: z.ZodLiteral<"conn.ack">;
68
- task_id: z.ZodOptional<z.ZodString>;
69
- session_ref: z.ZodOptional<z.ZodString>;
70
- seq: z.ZodNumber;
71
- payload: z.ZodObject<{
72
- protocolVersion: z.ZodNumber;
73
- capabilities: z.ZodArray<z.ZodString>;
74
- serverTime: z.ZodISODateTime;
75
- }, z.core.$strip>;
76
- }, z.core.$strip>, z.ZodObject<{
77
- v: z.ZodNumber;
78
- id: z.ZodUUID;
79
- ts: z.ZodISODateTime;
80
- type: z.ZodLiteral<"task.offer">;
81
- task_id: z.ZodString;
82
- session_ref: z.ZodOptional<z.ZodString>;
83
- seq: z.ZodNumber;
84
- payload: z.ZodObject<{
85
- instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
86
- blobRef: z.ZodObject<{
87
- blobId: z.ZodString;
88
- contentHash: z.ZodString;
89
- size: z.ZodNumber;
90
- contentType: z.ZodString;
91
- url: z.ZodOptional<z.ZodString>;
92
- }, z.core.$strip>;
93
- }, z.core.$strict>]>;
94
- runtime: z.ZodOptional<z.ZodEnum<{
95
- claude: "claude";
96
- codex: "codex";
97
- pi: "pi";
98
- }>>;
99
- harnessId: z.ZodOptional<z.ZodString>;
100
- dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
101
- lane: z.ZodLiteral<"subscription">;
102
- runtimeId: z.ZodEnum<{
103
- claude: "claude";
104
- codex: "codex";
105
- }>;
106
- providerId: z.ZodNull;
107
- modelId: z.ZodString;
108
- }, z.core.$strict>, z.ZodObject<{
109
- lane: z.ZodLiteral<"byok">;
110
- runtimeId: z.ZodLiteral<"pi">;
111
- providerId: z.ZodString;
112
- modelId: z.ZodString;
113
- }, z.core.$strict>, z.ZodObject<{
114
- lane: z.ZodLiteral<"byok-profile">;
115
- runtimeId: z.ZodLiteral<"pi">;
116
- providerProfile: z.ZodObject<{
117
- profileRef: z.ZodString;
118
- profileRevision: z.ZodString;
119
- profileHash: z.ZodString;
120
- modelId: z.ZodString;
121
- requiredCapabilities: z.ZodArray<z.ZodEnum<{
122
- "image-input": "image-input";
123
- }>>;
124
- }, z.core.$strict>;
125
- }, z.core.$strict>], "lane">>;
126
- sessionRef: z.ZodOptional<z.ZodString>;
127
- workspaceHint: z.ZodOptional<z.ZodString>;
128
- limits: z.ZodOptional<z.ZodObject<{
129
- maxDurationMs: z.ZodOptional<z.ZodNumber>;
130
- maxTokens: z.ZodOptional<z.ZodNumber>;
131
- }, z.core.$strip>>;
132
- }, z.core.$strip>;
133
- }, z.core.$strip>, z.ZodObject<{
134
- v: z.ZodNumber;
135
- id: z.ZodUUID;
136
- ts: z.ZodISODateTime;
137
- type: z.ZodLiteral<"task.offer_with_toolsets">;
138
- task_id: z.ZodString;
139
- session_ref: z.ZodOptional<z.ZodString>;
140
- seq: z.ZodNumber;
141
- payload: z.ZodObject<{
142
- instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
143
- blobRef: z.ZodObject<{
144
- blobId: z.ZodString;
145
- contentHash: z.ZodString;
146
- size: z.ZodNumber;
147
- contentType: z.ZodString;
148
- url: z.ZodOptional<z.ZodString>;
149
- }, z.core.$strip>;
150
- }, z.core.$strict>]>;
151
- runtime: z.ZodOptional<z.ZodEnum<{
152
- claude: "claude";
153
- codex: "codex";
154
- pi: "pi";
155
- }>>;
156
- harnessId: z.ZodOptional<z.ZodString>;
157
- dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
158
- lane: z.ZodLiteral<"subscription">;
159
- runtimeId: z.ZodEnum<{
160
- claude: "claude";
161
- codex: "codex";
162
- }>;
163
- providerId: z.ZodNull;
164
- modelId: z.ZodString;
165
- }, z.core.$strict>, z.ZodObject<{
166
- lane: z.ZodLiteral<"byok">;
167
- runtimeId: z.ZodLiteral<"pi">;
168
- providerId: z.ZodString;
169
- modelId: z.ZodString;
170
- }, z.core.$strict>, z.ZodObject<{
171
- lane: z.ZodLiteral<"byok-profile">;
172
- runtimeId: z.ZodLiteral<"pi">;
173
- providerProfile: z.ZodObject<{
174
- profileRef: z.ZodString;
175
- profileRevision: z.ZodString;
176
- profileHash: z.ZodString;
177
- modelId: z.ZodString;
178
- requiredCapabilities: z.ZodArray<z.ZodEnum<{
179
- "image-input": "image-input";
180
- }>>;
181
- }, z.core.$strict>;
182
- }, z.core.$strict>], "lane">>;
183
- sessionRef: z.ZodOptional<z.ZodString>;
184
- workspaceHint: z.ZodOptional<z.ZodString>;
185
- limits: z.ZodOptional<z.ZodObject<{
186
- maxDurationMs: z.ZodOptional<z.ZodNumber>;
187
- maxTokens: z.ZodOptional<z.ZodNumber>;
188
- }, z.core.$strip>>;
189
- requiredToolsets: z.ZodArray<z.ZodString>;
190
- }, z.core.$strict>;
191
- }, z.core.$strip>, z.ZodObject<{
192
- v: z.ZodNumber;
193
- id: z.ZodUUID;
194
- ts: z.ZodISODateTime;
195
- type: z.ZodLiteral<"task.offer_for_agent">;
196
- task_id: z.ZodString;
197
- session_ref: z.ZodOptional<z.ZodString>;
198
- seq: z.ZodNumber;
199
- payload: z.ZodObject<{
200
- instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
201
- blobRef: z.ZodObject<{
202
- blobId: z.ZodString;
203
- contentHash: z.ZodString;
204
- size: z.ZodNumber;
205
- contentType: z.ZodString;
206
- url: z.ZodOptional<z.ZodString>;
207
- }, z.core.$strip>;
208
- }, z.core.$strict>]>;
209
- agentRef: z.ZodObject<{
210
- agentId: z.ZodString;
211
- profileRevision: z.ZodString;
212
- }, z.core.$strict>;
213
- homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
214
- agentMemory: z.ZodOptional<z.ZodEnum<{
215
- none: "none";
216
- read: "read";
217
- "read-write": "read-write";
218
- }>>;
219
- requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
220
- runtime: z.ZodOptional<z.ZodEnum<{
221
- claude: "claude";
222
- codex: "codex";
223
- pi: "pi";
224
- }>>;
225
- harnessId: z.ZodOptional<z.ZodString>;
226
- dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
227
- lane: z.ZodLiteral<"subscription">;
228
- runtimeId: z.ZodEnum<{
229
- claude: "claude";
230
- codex: "codex";
231
- }>;
232
- providerId: z.ZodNull;
233
- modelId: z.ZodString;
234
- }, z.core.$strict>, z.ZodObject<{
235
- lane: z.ZodLiteral<"byok">;
236
- runtimeId: z.ZodLiteral<"pi">;
237
- providerId: z.ZodString;
238
- modelId: z.ZodString;
239
- }, z.core.$strict>, z.ZodObject<{
240
- lane: z.ZodLiteral<"byok-profile">;
241
- runtimeId: z.ZodLiteral<"pi">;
242
- providerProfile: z.ZodObject<{
243
- profileRef: z.ZodString;
244
- profileRevision: z.ZodString;
245
- profileHash: z.ZodString;
246
- modelId: z.ZodString;
247
- requiredCapabilities: z.ZodArray<z.ZodEnum<{
248
- "image-input": "image-input";
249
- }>>;
250
- }, z.core.$strict>;
251
- }, z.core.$strict>], "lane">>;
252
- terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
253
- mode: z.ZodLiteral<"none">;
254
- }, z.core.$strict>, z.ZodObject<{
255
- mode: z.ZodLiteral<"result-document">;
256
- contract: z.ZodString;
257
- schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
258
- }, z.core.$strict>], "mode">>;
259
- sessionRef: z.ZodOptional<z.ZodString>;
260
- limits: z.ZodOptional<z.ZodObject<{
261
- maxDurationMs: z.ZodOptional<z.ZodNumber>;
262
- maxTokens: z.ZodOptional<z.ZodNumber>;
263
- }, z.core.$strip>>;
264
- }, z.core.$strict>;
265
- }, z.core.$strip>, z.ZodObject<{
266
- v: z.ZodNumber;
267
- id: z.ZodUUID;
268
- ts: z.ZodISODateTime;
269
- type: z.ZodLiteral<"task.offer_for_agent_with_egress">;
270
- task_id: z.ZodString;
271
- session_ref: z.ZodOptional<z.ZodString>;
272
- seq: z.ZodNumber;
273
- payload: z.ZodObject<{
274
- instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
275
- blobRef: z.ZodObject<{
276
- blobId: z.ZodString;
277
- contentHash: z.ZodString;
278
- size: z.ZodNumber;
279
- contentType: z.ZodString;
280
- url: z.ZodOptional<z.ZodString>;
281
- }, z.core.$strip>;
282
- }, z.core.$strict>]>;
283
- agentRef: z.ZodObject<{
284
- agentId: z.ZodString;
285
- profileRevision: z.ZodString;
286
- }, z.core.$strict>;
287
- homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
288
- agentMemory: z.ZodOptional<z.ZodEnum<{
289
- none: "none";
290
- read: "read";
291
- "read-write": "read-write";
292
- }>>;
293
- requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
294
- runtime: z.ZodOptional<z.ZodEnum<{
295
- claude: "claude";
296
- codex: "codex";
297
- pi: "pi";
298
- }>>;
299
- harnessId: z.ZodOptional<z.ZodString>;
300
- dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
301
- lane: z.ZodLiteral<"subscription">;
302
- runtimeId: z.ZodEnum<{
303
- claude: "claude";
304
- codex: "codex";
305
- }>;
306
- providerId: z.ZodNull;
307
- modelId: z.ZodString;
308
- }, z.core.$strict>, z.ZodObject<{
309
- lane: z.ZodLiteral<"byok">;
310
- runtimeId: z.ZodLiteral<"pi">;
311
- providerId: z.ZodString;
312
- modelId: z.ZodString;
313
- }, z.core.$strict>, z.ZodObject<{
314
- lane: z.ZodLiteral<"byok-profile">;
315
- runtimeId: z.ZodLiteral<"pi">;
316
- providerProfile: z.ZodObject<{
317
- profileRef: z.ZodString;
318
- profileRevision: z.ZodString;
319
- profileHash: z.ZodString;
320
- modelId: z.ZodString;
321
- requiredCapabilities: z.ZodArray<z.ZodEnum<{
322
- "image-input": "image-input";
323
- }>>;
324
- }, z.core.$strict>;
325
- }, z.core.$strict>], "lane">>;
326
- terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
327
- mode: z.ZodLiteral<"none">;
328
- }, z.core.$strict>, z.ZodObject<{
329
- mode: z.ZodLiteral<"result-document">;
330
- contract: z.ZodString;
331
- schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
332
- }, z.core.$strict>], "mode">>;
333
- limits: z.ZodOptional<z.ZodObject<{
334
- maxDurationMs: z.ZodOptional<z.ZodNumber>;
335
- maxTokens: z.ZodOptional<z.ZodNumber>;
336
- }, z.core.$strip>>;
337
- sessionRef: z.ZodString;
338
- egressPolicy: z.ZodObject<{
339
- policyRevision: z.ZodString;
340
- activity: z.ZodObject<{
341
- delivery: z.ZodLiteral<"latest-value">;
342
- maxCoalesceMs: z.ZodNumber;
343
- maxEventBytes: z.ZodNumber;
344
- }, z.core.$strict>;
345
- reliable: z.ZodObject<{
346
- maxPendingEventsPerAgent: z.ZodNumber;
347
- maxPendingBytesPerAgent: z.ZodNumber;
348
- maxPendingBytesPerTenant: z.ZodNumber;
349
- }, z.core.$strict>;
350
- transfers: z.ZodObject<{
351
- workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
352
- maxBytes: z.ZodNumber;
353
- allowedMimeTypes: z.ZodArray<z.ZodString>;
354
- }, z.core.$strict>]>;
355
- transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
356
- maxBytes: z.ZodNumber;
357
- allowedMimeTypes: z.ZodArray<z.ZodString>;
358
- }, z.core.$strict>]>;
359
- artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
360
- maxBytes: z.ZodNumber;
361
- allowedMimeTypes: z.ZodArray<z.ZodString>;
362
- }, z.core.$strict>]>;
363
- }, z.core.$strict>;
364
- }, z.core.$strict>;
365
- messageEgress: z.ZodOptional<z.ZodObject<{
366
- mode: z.ZodLiteral<"required">;
367
- contract: z.ZodString;
368
- contentType: z.ZodEnum<{
369
- "text/markdown": "text/markdown";
370
- "text/plain": "text/plain";
371
- }>;
372
- maxBytes: z.ZodNumber;
373
- }, z.core.$strict>>;
374
- }, z.core.$strict>;
375
- }, z.core.$strip>, z.ZodObject<{
376
- v: z.ZodNumber;
377
- id: z.ZodUUID;
378
- ts: z.ZodISODateTime;
379
- type: z.ZodLiteral<"task.offer_for_agent_with_egress_fresh">;
380
- task_id: z.ZodString;
381
- session_ref: z.ZodOptional<z.ZodString>;
382
- seq: z.ZodNumber;
383
- payload: z.ZodObject<{
384
- instruction: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
385
- blobRef: z.ZodObject<{
386
- blobId: z.ZodString;
387
- contentHash: z.ZodString;
388
- size: z.ZodNumber;
389
- contentType: z.ZodString;
390
- url: z.ZodOptional<z.ZodString>;
391
- }, z.core.$strip>;
392
- }, z.core.$strict>]>;
393
- agentRef: z.ZodObject<{
394
- agentId: z.ZodString;
395
- profileRevision: z.ZodString;
396
- }, z.core.$strict>;
397
- homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
398
- agentMemory: z.ZodOptional<z.ZodEnum<{
399
- none: "none";
400
- read: "read";
401
- "read-write": "read-write";
402
- }>>;
403
- requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
404
- runtime: z.ZodOptional<z.ZodEnum<{
405
- claude: "claude";
406
- codex: "codex";
407
- pi: "pi";
408
- }>>;
409
- harnessId: z.ZodOptional<z.ZodString>;
410
- dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
411
- lane: z.ZodLiteral<"subscription">;
412
- runtimeId: z.ZodEnum<{
413
- claude: "claude";
414
- codex: "codex";
415
- }>;
416
- providerId: z.ZodNull;
417
- modelId: z.ZodString;
418
- }, z.core.$strict>, z.ZodObject<{
419
- lane: z.ZodLiteral<"byok">;
420
- runtimeId: z.ZodLiteral<"pi">;
421
- providerId: z.ZodString;
422
- modelId: z.ZodString;
423
- }, z.core.$strict>, z.ZodObject<{
424
- lane: z.ZodLiteral<"byok-profile">;
425
- runtimeId: z.ZodLiteral<"pi">;
426
- providerProfile: z.ZodObject<{
427
- profileRef: z.ZodString;
428
- profileRevision: z.ZodString;
429
- profileHash: z.ZodString;
430
- modelId: z.ZodString;
431
- requiredCapabilities: z.ZodArray<z.ZodEnum<{
432
- "image-input": "image-input";
433
- }>>;
434
- }, z.core.$strict>;
435
- }, z.core.$strict>], "lane">>;
436
- terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
437
- mode: z.ZodLiteral<"none">;
438
- }, z.core.$strict>, z.ZodObject<{
439
- mode: z.ZodLiteral<"result-document">;
440
- contract: z.ZodString;
441
- schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
442
- }, z.core.$strict>], "mode">>;
443
- limits: z.ZodOptional<z.ZodObject<{
444
- maxDurationMs: z.ZodOptional<z.ZodNumber>;
445
- maxTokens: z.ZodOptional<z.ZodNumber>;
446
- }, z.core.$strip>>;
447
- egressPolicy: z.ZodObject<{
448
- policyRevision: z.ZodString;
449
- activity: z.ZodObject<{
450
- delivery: z.ZodLiteral<"latest-value">;
451
- maxCoalesceMs: z.ZodNumber;
452
- maxEventBytes: z.ZodNumber;
453
- }, z.core.$strict>;
454
- reliable: z.ZodObject<{
455
- maxPendingEventsPerAgent: z.ZodNumber;
456
- maxPendingBytesPerAgent: z.ZodNumber;
457
- maxPendingBytesPerTenant: z.ZodNumber;
458
- }, z.core.$strict>;
459
- transfers: z.ZodObject<{
460
- workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
461
- maxBytes: z.ZodNumber;
462
- allowedMimeTypes: z.ZodArray<z.ZodString>;
463
- }, z.core.$strict>]>;
464
- transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
465
- maxBytes: z.ZodNumber;
466
- allowedMimeTypes: z.ZodArray<z.ZodString>;
467
- }, z.core.$strict>]>;
468
- artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
469
- maxBytes: z.ZodNumber;
470
- allowedMimeTypes: z.ZodArray<z.ZodString>;
471
- }, z.core.$strict>]>;
472
- }, z.core.$strict>;
473
- }, z.core.$strict>;
474
- messageEgress: z.ZodOptional<z.ZodObject<{
475
- mode: z.ZodLiteral<"required">;
476
- contract: z.ZodString;
477
- contentType: z.ZodEnum<{
478
- "text/markdown": "text/markdown";
479
- "text/plain": "text/plain";
480
- }>;
481
- maxBytes: z.ZodNumber;
482
- }, z.core.$strict>>;
483
- }, z.core.$strict>;
484
- }, z.core.$strip>, z.ZodObject<{
485
- v: z.ZodNumber;
486
- id: z.ZodUUID;
487
- ts: z.ZodISODateTime;
488
- type: z.ZodLiteral<"task.offer_prepared">;
489
- task_id: z.ZodString;
490
- session_ref: z.ZodOptional<z.ZodString>;
491
- seq: z.ZodNumber;
492
- payload: z.ZodObject<{
493
- agentRef: z.ZodObject<{
494
- agentId: z.ZodString;
495
- profileRevision: z.ZodString;
496
- }, z.core.$strict>;
497
- homeAccess: z.ZodOptional<z.ZodLiteral<"memory-reader">>;
498
- requiredToolsets: z.ZodOptional<z.ZodArray<z.ZodString>>;
499
- runtime: z.ZodOptional<z.ZodEnum<{
500
- claude: "claude";
501
- codex: "codex";
502
- pi: "pi";
503
- }>>;
504
- harnessId: z.ZodOptional<z.ZodString>;
505
- dispatchSelection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
506
- lane: z.ZodLiteral<"subscription">;
507
- runtimeId: z.ZodEnum<{
508
- claude: "claude";
509
- codex: "codex";
510
- }>;
511
- providerId: z.ZodNull;
512
- modelId: z.ZodString;
513
- }, z.core.$strict>, z.ZodObject<{
514
- lane: z.ZodLiteral<"byok">;
515
- runtimeId: z.ZodLiteral<"pi">;
516
- providerId: z.ZodString;
517
- modelId: z.ZodString;
518
- }, z.core.$strict>, z.ZodObject<{
519
- lane: z.ZodLiteral<"byok-profile">;
520
- runtimeId: z.ZodLiteral<"pi">;
521
- providerProfile: z.ZodObject<{
522
- profileRef: z.ZodString;
523
- profileRevision: z.ZodString;
524
- profileHash: z.ZodString;
525
- modelId: z.ZodString;
526
- requiredCapabilities: z.ZodArray<z.ZodEnum<{
527
- "image-input": "image-input";
528
- }>>;
529
- }, z.core.$strict>;
530
- }, z.core.$strict>], "lane">>;
531
- terminalProjection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
532
- mode: z.ZodLiteral<"none">;
533
- }, z.core.$strict>, z.ZodObject<{
534
- mode: z.ZodLiteral<"result-document">;
535
- contract: z.ZodString;
536
- schema: z.ZodCustom<import("./result-schema").ResultSchema, import("./result-schema").ResultSchema>;
537
- }, z.core.$strict>], "mode">>;
538
- limits: z.ZodOptional<z.ZodObject<{
539
- maxDurationMs: z.ZodOptional<z.ZodNumber>;
540
- maxTokens: z.ZodOptional<z.ZodNumber>;
541
- }, z.core.$strip>>;
542
- preparation: z.ZodObject<{
543
- reference: z.ZodString;
544
- requestDigest: z.ZodString;
545
- artifactDigest: z.ZodOptional<z.ZodString>;
546
- }, z.core.$strict>;
547
- agentMemory: z.ZodEnum<{
548
- none: "none";
549
- read: "read";
550
- "read-write": "read-write";
551
- }>;
552
- egressPolicy: z.ZodObject<{
553
- policyRevision: z.ZodString;
554
- activity: z.ZodObject<{
555
- delivery: z.ZodLiteral<"latest-value">;
556
- maxCoalesceMs: z.ZodNumber;
557
- maxEventBytes: z.ZodNumber;
558
- }, z.core.$strict>;
559
- reliable: z.ZodObject<{
560
- maxPendingEventsPerAgent: z.ZodNumber;
561
- maxPendingBytesPerAgent: z.ZodNumber;
562
- maxPendingBytesPerTenant: z.ZodNumber;
563
- }, z.core.$strict>;
564
- transfers: z.ZodObject<{
565
- workspace: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
566
- maxBytes: z.ZodNumber;
567
- allowedMimeTypes: z.ZodArray<z.ZodString>;
568
- }, z.core.$strict>]>;
569
- transcript: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
570
- maxBytes: z.ZodNumber;
571
- allowedMimeTypes: z.ZodArray<z.ZodString>;
572
- }, z.core.$strict>]>;
573
- artifact: z.ZodUnion<readonly [z.ZodLiteral<"disabled">, z.ZodObject<{
574
- maxBytes: z.ZodNumber;
575
- allowedMimeTypes: z.ZodArray<z.ZodString>;
576
- }, z.core.$strict>]>;
577
- }, z.core.$strict>;
578
- }, z.core.$strict>;
579
- messageEgress: z.ZodOptional<z.ZodObject<{
580
- mode: z.ZodLiteral<"required">;
581
- contract: z.ZodString;
582
- contentType: z.ZodEnum<{
583
- "text/markdown": "text/markdown";
584
- "text/plain": "text/plain";
585
- }>;
586
- maxBytes: z.ZodNumber;
587
- }, z.core.$strict>>;
588
- }, z.core.$strict>;
589
- }, z.core.$strip>, z.ZodObject<{
590
- v: z.ZodNumber;
591
- id: z.ZodUUID;
592
- ts: z.ZodISODateTime;
593
- type: z.ZodLiteral<"agent.egress.ack">;
594
- task_id: z.ZodOptional<z.ZodString>;
595
- session_ref: z.ZodOptional<z.ZodString>;
596
- seq: z.ZodNumber;
597
- payload: z.ZodObject<{
598
- agentRef: z.ZodObject<{
599
- agentId: z.ZodString;
600
- profileRevision: z.ZodString;
601
- }, z.core.$strict>;
602
- sessionRef: z.ZodString;
603
- policyRevision: z.ZodString;
604
- eventId: z.ZodUUID;
605
- cursor: z.ZodNumber;
606
- receiptId: z.ZodUUID;
607
- }, z.core.$strict>;
608
- }, z.core.$strip>, z.ZodObject<{
609
- v: z.ZodNumber;
610
- id: z.ZodUUID;
611
- ts: z.ZodISODateTime;
612
- type: z.ZodLiteral<"agent.message.disposition">;
613
- task_id: z.ZodString;
614
- session_ref: z.ZodOptional<z.ZodString>;
615
- seq: z.ZodNumber;
616
- payload: z.ZodObject<{
617
- agentRef: z.ZodObject<{
618
- agentId: z.ZodString;
619
- profileRevision: z.ZodString;
620
- }, z.core.$strict>;
621
- sessionRef: z.ZodString;
622
- contract: z.ZodString;
623
- messageId: z.ZodUUID;
624
- cursor: z.ZodNumber;
625
- contentHash: z.ZodString;
626
- outcome: z.ZodEnum<{
627
- accepted: "accepted";
628
- held: "held";
629
- refused: "refused";
630
- }>;
631
- receiptId: z.ZodUUID;
632
- reasonCode: z.ZodOptional<z.ZodString>;
633
- }, z.core.$strict>;
634
- }, z.core.$strip>, z.ZodObject<{
635
- v: z.ZodNumber;
636
- id: z.ZodUUID;
637
- ts: z.ZodISODateTime;
638
- type: z.ZodLiteral<"agent.content.read">;
639
- task_id: z.ZodOptional<z.ZodString>;
640
- session_ref: z.ZodOptional<z.ZodString>;
641
- seq: z.ZodNumber;
642
- payload: z.ZodObject<{
643
- requestId: z.ZodUUID;
644
- surface: z.ZodEnum<{
645
- artifact: "artifact";
646
- transcript: "transcript";
647
- workspace: "workspace";
648
- }>;
649
- actor: z.ZodObject<{
650
- kind: z.ZodEnum<{
651
- agent: "agent";
652
- system: "system";
653
- user: "user";
654
- }>;
655
- id: z.ZodString;
656
- }, z.core.$strict>;
657
- agentRef: z.ZodObject<{
658
- agentId: z.ZodString;
659
- profileRevision: z.ZodString;
660
- }, z.core.$strict>;
661
- sessionRef: z.ZodString;
662
- runtime: z.ZodEnum<{
663
- claude: "claude";
664
- codex: "codex";
665
- pi: "pi";
666
- }>;
667
- cwd: z.ZodString;
668
- policyRevision: z.ZodString;
669
- target: z.ZodString;
670
- mimeType: z.ZodString;
671
- decodeAs: z.ZodEnum<{
672
- bytes: "bytes";
673
- utf8: "utf8";
674
- }>;
675
- policy: z.ZodObject<{
676
- maxBytes: z.ZodNumber;
677
- allowedMimeTypes: z.ZodArray<z.ZodString>;
678
- }, z.core.$strict>;
679
- }, z.core.$strict>;
680
- }, z.core.$strip>, z.ZodObject<{
681
- v: z.ZodNumber;
682
- id: z.ZodUUID;
683
- ts: z.ZodISODateTime;
684
- type: z.ZodLiteral<"agent.home.projection">;
685
- task_id: z.ZodOptional<z.ZodNever>;
686
- session_ref: z.ZodOptional<z.ZodString>;
687
- seq: z.ZodNumber;
688
- payload: z.ZodObject<{
689
- requestId: z.ZodUUID;
690
- agentRef: z.ZodObject<{
691
- agentId: z.ZodString;
692
- profileRevision: z.ZodString;
693
- }, z.core.$strict>;
694
- projectionHash: z.ZodString;
695
- projection: z.ZodType<import("./agent-home-projection").AgentHomeProjectionValue, unknown, z.core.$ZodTypeInternals<import("./agent-home-projection").AgentHomeProjectionValue, unknown>>;
696
- }, z.core.$strict>;
697
- }, z.core.$strip>, z.ZodObject<{
698
- v: z.ZodNumber;
699
- id: z.ZodUUID;
700
- ts: z.ZodISODateTime;
701
- type: z.ZodLiteral<"agent.input.preparation">;
702
- task_id: z.ZodOptional<z.ZodNever>;
703
- session_ref: z.ZodOptional<z.ZodString>;
704
- seq: z.ZodNumber;
705
- payload: z.ZodObject<{
706
- agentMemory: z.ZodEnum<{
707
- none: "none";
708
- read: "read";
709
- "read-write": "read-write";
710
- }>;
711
- requestId: z.ZodUUID;
712
- agentRef: z.ZodObject<{
713
- agentId: z.ZodString;
714
- profileRevision: z.ZodString;
715
- }, z.core.$strict>;
716
- profileId: z.ZodString;
717
- policyRevision: z.ZodString;
718
- source: z.ZodObject<{
719
- revision: z.ZodString;
720
- digest: z.ZodString;
721
- }, z.core.$strict>;
722
- selection: z.ZodObject<{
723
- model: z.ZodObject<{
724
- id: z.ZodString;
725
- name: z.ZodString;
726
- api: z.ZodLiteral<"openai-completions">;
727
- provider: z.ZodString;
728
- baseUrl: z.ZodString;
729
- reasoning: z.ZodBoolean;
730
- input: z.ZodArray<z.ZodEnum<{
731
- image: "image";
732
- text: "text";
733
- }>>;
734
- cost: z.ZodObject<{
735
- input: z.ZodNumber;
736
- output: z.ZodNumber;
737
- cacheRead: z.ZodNumber;
738
- cacheWrite: z.ZodNumber;
739
- }, z.core.$strict>;
740
- contextWindow: z.ZodNumber;
741
- maxTokens: z.ZodNumber;
742
- thinkingLevelMap: z.ZodOptional<z.ZodObject<{
743
- off: z.ZodNullable<z.ZodString>;
744
- minimal: z.ZodNullable<z.ZodString>;
745
- low: z.ZodNullable<z.ZodString>;
746
- medium: z.ZodNullable<z.ZodString>;
747
- high: z.ZodNullable<z.ZodString>;
748
- xhigh: z.ZodNullable<z.ZodString>;
749
- max: z.ZodNullable<z.ZodString>;
750
- }, z.core.$strict>>;
751
- compat: z.ZodOptional<z.ZodObject<{
752
- supportsStore: z.ZodOptional<z.ZodBoolean>;
753
- supportsDeveloperRole: z.ZodOptional<z.ZodBoolean>;
754
- supportsReasoningEffort: z.ZodOptional<z.ZodBoolean>;
755
- supportsUsageInStreaming: z.ZodOptional<z.ZodBoolean>;
756
- maxTokensField: z.ZodOptional<z.ZodEnum<{
757
- max_completion_tokens: "max_completion_tokens";
758
- max_tokens: "max_tokens";
759
- }>>;
760
- thinkingFormat: z.ZodOptional<z.ZodEnum<{
761
- "ant-ling": "ant-ling";
762
- baseten: "baseten";
763
- "chat-template": "chat-template";
764
- deepseek: "deepseek";
765
- openai: "openai";
766
- openrouter: "openrouter";
767
- qwen: "qwen";
768
- "qwen-chat-template": "qwen-chat-template";
769
- "string-thinking": "string-thinking";
770
- together: "together";
771
- zai: "zai";
772
- }>>;
773
- zaiToolStream: z.ZodOptional<z.ZodBoolean>;
774
- }, z.core.$strict>>;
775
- }, z.core.$strict>;
776
- options: z.ZodObject<{
777
- cacheRetention: z.ZodEnum<{
778
- long: "long";
779
- none: "none";
780
- short: "short";
781
- }>;
782
- maxTokens: z.ZodNumber;
783
- temperature: z.ZodOptional<z.ZodNumber>;
784
- toolChoice: z.ZodOptional<z.ZodEnum<{
785
- auto: "auto";
786
- none: "none";
787
- }>>;
788
- reasoningEffort: z.ZodOptional<z.ZodEnum<{
789
- high: "high";
790
- low: "low";
791
- max: "max";
792
- medium: "medium";
793
- minimal: "minimal";
794
- xhigh: "xhigh";
795
- }>>;
796
- }, z.core.$strict>;
797
- }, z.core.$strict>;
798
- deadlineAt: z.ZodISODateTime;
799
- context: z.ZodUnion<readonly [z.ZodObject<{
800
- inline: z.ZodString;
801
- }, z.core.$strict>, z.ZodObject<{
802
- blobRef: z.ZodObject<{
803
- blobId: z.ZodString;
804
- contentHash: z.ZodString;
805
- size: z.ZodNumber;
806
- contentType: z.ZodString;
807
- url: z.ZodOptional<z.ZodString>;
808
- }, z.core.$strip>;
809
- contentHash: z.ZodString;
810
- }, z.core.$strict>]>;
811
- requiredToolsets: z.ZodArray<z.ZodString>;
812
- accountingPolicyRef: z.ZodOptional<z.ZodObject<{
813
- revision: z.ZodString;
814
- ruledRuntime: z.ZodString;
815
- ruledTarget: z.ZodObject<{
816
- endpoint: z.ZodString;
817
- modelId: z.ZodString;
818
- }, z.core.$strict>;
819
- ruledResidualKeys: z.ZodArray<z.ZodString>;
820
- }, z.core.$strict>>;
821
- }, z.core.$strict>;
822
- }, z.core.$strip>, z.ZodObject<{
823
- v: z.ZodNumber;
824
- id: z.ZodUUID;
825
- ts: z.ZodISODateTime;
826
- type: z.ZodLiteral<"provider.provisioning.available">;
827
- task_id: z.ZodOptional<z.ZodNever>;
828
- session_ref: z.ZodOptional<z.ZodString>;
829
- seq: z.ZodNumber;
830
- payload: z.ZodObject<{
831
- requestId: z.ZodUUID;
832
- }, z.core.$strict>;
833
- }, z.core.$strip>, z.ZodObject<{
834
- v: z.ZodNumber;
835
- id: z.ZodUUID;
836
- ts: z.ZodISODateTime;
837
- type: z.ZodLiteral<"agent.memory.intent.available">;
838
- task_id: z.ZodOptional<z.ZodNever>;
839
- session_ref: z.ZodOptional<z.ZodString>;
840
- seq: z.ZodNumber;
841
- payload: z.ZodObject<{
842
- intentId: z.ZodUUID;
843
- agentRef: z.ZodObject<{
844
- agentId: z.ZodString;
845
- profileRevision: z.ZodString;
846
- }, z.core.$strict>;
847
- }, z.core.$strict>;
848
- }, z.core.$strip>, z.ZodObject<{
849
- v: z.ZodNumber;
850
- id: z.ZodUUID;
851
- ts: z.ZodISODateTime;
852
- type: z.ZodLiteral<"task.approve">;
853
- task_id: z.ZodString;
854
- session_ref: z.ZodOptional<z.ZodString>;
855
- seq: z.ZodNumber;
856
- payload: z.ZodObject<{
857
- approvalId: z.ZodOptional<z.ZodString>;
858
- }, z.core.$strip>;
859
- }, z.core.$strip>, z.ZodObject<{
860
- v: z.ZodNumber;
861
- id: z.ZodUUID;
862
- ts: z.ZodISODateTime;
863
- type: z.ZodLiteral<"task.reject">;
864
- task_id: z.ZodString;
865
- session_ref: z.ZodOptional<z.ZodString>;
866
- seq: z.ZodNumber;
867
- payload: z.ZodObject<{
868
- reason: z.ZodOptional<z.ZodString>;
869
- approvalId: z.ZodOptional<z.ZodString>;
870
- }, z.core.$strip>;
871
- }, z.core.$strip>, z.ZodObject<{
872
- v: z.ZodNumber;
873
- id: z.ZodUUID;
874
- ts: z.ZodISODateTime;
875
- type: z.ZodLiteral<"task.cancel">;
876
- task_id: z.ZodString;
877
- session_ref: z.ZodOptional<z.ZodString>;
878
- seq: z.ZodNumber;
879
- payload: z.ZodObject<{
880
- reason: z.ZodOptional<z.ZodString>;
881
- }, z.core.$strip>;
882
- }, z.core.$strip>, z.ZodObject<{
883
- v: z.ZodNumber;
884
- id: z.ZodUUID;
885
- ts: z.ZodISODateTime;
886
- type: z.ZodLiteral<"task.steer">;
887
- task_id: z.ZodString;
888
- session_ref: z.ZodOptional<z.ZodString>;
889
- seq: z.ZodNumber;
890
- payload: z.ZodObject<{
891
- text: z.ZodString;
892
- }, z.core.$strip>;
893
- }, z.core.$strip>, z.ZodObject<{
894
- v: z.ZodNumber;
895
- id: z.ZodUUID;
896
- ts: z.ZodISODateTime;
897
- type: z.ZodLiteral<"task.claim">;
898
- task_id: z.ZodString;
899
- session_ref: z.ZodOptional<z.ZodString>;
900
- seq: z.ZodOptional<z.ZodNumber>;
901
- payload: z.ZodObject<{
902
- deviceId: z.ZodString;
903
- agentId: z.ZodOptional<z.ZodString>;
904
- agentRef: z.ZodOptional<z.ZodObject<{
905
- agentId: z.ZodString;
906
- profileRevision: z.ZodString;
907
- }, z.core.$strict>>;
908
- runtime: z.ZodOptional<z.ZodEnum<{
909
- claude: "claude";
910
- codex: "codex";
911
- pi: "pi";
912
- }>>;
913
- harnessId: z.ZodOptional<z.ZodString>;
914
- capabilities: z.ZodOptional<z.ZodObject<{
915
- steer: z.ZodOptional<z.ZodBoolean>;
916
- resume: z.ZodOptional<z.ZodBoolean>;
917
- approvalInteractive: z.ZodOptional<z.ZodBoolean>;
918
- mcpToolsets: z.ZodOptional<z.ZodBoolean>;
919
- messageDraft: z.ZodOptional<z.ZodBoolean>;
920
- }, z.core.$strip>>;
921
- }, z.core.$strip>;
922
- }, z.core.$strip>, z.ZodObject<{
923
- v: z.ZodNumber;
924
- id: z.ZodUUID;
925
- ts: z.ZodISODateTime;
926
- type: z.ZodLiteral<"task.started">;
927
- task_id: z.ZodString;
928
- session_ref: z.ZodOptional<z.ZodString>;
929
- seq: z.ZodOptional<z.ZodNumber>;
930
- payload: z.ZodObject<{}, z.core.$strip>;
931
- }, z.core.$strip>, z.ZodObject<{
932
- v: z.ZodNumber;
933
- id: z.ZodUUID;
934
- ts: z.ZodISODateTime;
935
- type: z.ZodLiteral<"task.decline">;
936
- task_id: z.ZodString;
937
- session_ref: z.ZodOptional<z.ZodString>;
938
- seq: z.ZodOptional<z.ZodNumber>;
939
- payload: z.ZodObject<{
940
- reason: z.ZodString;
941
- retryable: z.ZodOptional<z.ZodBoolean>;
942
- agentRef: z.ZodOptional<z.ZodObject<{
943
- agentId: z.ZodString;
944
- profileRevision: z.ZodString;
945
- }, z.core.$strict>>;
946
- code: z.ZodOptional<z.ZodEnum<{
947
- agent_home_reader_busy: "agent_home_reader_busy";
948
- agent_home_writer_busy: "agent_home_writer_busy";
949
- }>>;
950
- }, z.core.$strip>;
951
- }, z.core.$strip>, z.ZodObject<{
952
- v: z.ZodNumber;
953
- id: z.ZodUUID;
954
- ts: z.ZodISODateTime;
955
- type: z.ZodLiteral<"task.progress">;
956
- task_id: z.ZodString;
957
- session_ref: z.ZodOptional<z.ZodString>;
958
- seq: z.ZodOptional<z.ZodNumber>;
959
- payload: z.ZodObject<{
960
- seq: z.ZodNumber;
961
- events: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
962
- type: z.ZodLiteral<"progress">;
963
- text: z.ZodString;
964
- }, z.core.$strip>, z.ZodObject<{
965
- type: z.ZodLiteral<"tool_use">;
966
- tool: z.ZodString;
967
- mcp: z.ZodOptional<z.ZodObject<{
968
- server: z.ZodString;
969
- tool: z.ZodString;
970
- }, z.core.$strict>>;
971
- input: z.ZodOptional<z.ZodUnknown>;
972
- toolCallId: z.ZodOptional<z.ZodString>;
973
- spill: z.ZodOptional<z.ZodObject<{
974
- field: z.ZodEnum<{
975
- input: "input";
976
- output: "output";
977
- }>;
978
- totalBytes: z.ZodNumber;
979
- omittedBytes: z.ZodNumber;
980
- contentType: z.ZodLiteral<"application/json">;
981
- blob: z.ZodOptional<z.ZodObject<{
982
- blobId: z.ZodString;
983
- contentHash: z.ZodString;
984
- size: z.ZodNumber;
985
- contentType: z.ZodString;
986
- url: z.ZodOptional<z.ZodString>;
987
- }, z.core.$strip>>;
988
- unstoredReason: z.ZodOptional<z.ZodString>;
989
- }, z.core.$strict>>;
990
- }, z.core.$strip>, z.ZodObject<{
991
- type: z.ZodLiteral<"tool_result">;
992
- tool: z.ZodString;
993
- mcp: z.ZodOptional<z.ZodObject<{
994
- server: z.ZodString;
995
- tool: z.ZodString;
996
- }, z.core.$strict>>;
997
- output: z.ZodOptional<z.ZodUnknown>;
998
- toolCallId: z.ZodOptional<z.ZodString>;
999
- isError: z.ZodOptional<z.ZodBoolean>;
1000
- spill: z.ZodOptional<z.ZodObject<{
1001
- field: z.ZodEnum<{
1002
- input: "input";
1003
- output: "output";
1004
- }>;
1005
- totalBytes: z.ZodNumber;
1006
- omittedBytes: z.ZodNumber;
1007
- contentType: z.ZodLiteral<"application/json">;
1008
- blob: z.ZodOptional<z.ZodObject<{
1009
- blobId: z.ZodString;
1010
- contentHash: z.ZodString;
1011
- size: z.ZodNumber;
1012
- contentType: z.ZodString;
1013
- url: z.ZodOptional<z.ZodString>;
1014
- }, z.core.$strip>>;
1015
- unstoredReason: z.ZodOptional<z.ZodString>;
1016
- }, z.core.$strict>>;
1017
- }, z.core.$strip>, z.ZodObject<{
1018
- type: z.ZodLiteral<"artifact">;
1019
- name: z.ZodString;
1020
- contentType: z.ZodString;
1021
- }, z.core.$strip>, z.ZodObject<{
1022
- type: z.ZodLiteral<"needs_approval">;
1023
- summary: z.ZodString;
1024
- }, z.core.$strip>, z.ZodObject<{
1025
- type: z.ZodLiteral<"turn_end">;
1026
- }, z.core.$strip>, z.ZodObject<{
1027
- type: z.ZodLiteral<"error">;
1028
- message: z.ZodString;
1029
- }, z.core.$strip>, z.ZodObject<{
1030
- type: z.ZodLiteral<"usage">;
1031
- inputTokens: z.ZodOptional<z.ZodNumber>;
1032
- cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1033
- outputTokens: z.ZodOptional<z.ZodNumber>;
1034
- reasoningTokens: z.ZodOptional<z.ZodNumber>;
1035
- totalTokens: z.ZodOptional<z.ZodNumber>;
1036
- contextTokens: z.ZodOptional<z.ZodNumber>;
1037
- contextWindow: z.ZodOptional<z.ZodNumber>;
1038
- contextSource: z.ZodOptional<z.ZodEnum<{
1039
- estimate: "estimate";
1040
- provider: "provider";
1041
- }>>;
1042
- }, z.core.$strip>], "type">, z.ZodObject<{
1043
- type: z.ZodString;
1044
- }, z.core.$loose>]>>;
1045
- }, z.core.$strip>;
1046
- }, z.core.$strip>, z.ZodObject<{
1047
- v: z.ZodNumber;
1048
- id: z.ZodUUID;
1049
- ts: z.ZodISODateTime;
1050
- type: z.ZodLiteral<"task.artifact">;
1051
- task_id: z.ZodString;
1052
- session_ref: z.ZodOptional<z.ZodString>;
1053
- seq: z.ZodOptional<z.ZodNumber>;
1054
- payload: z.ZodObject<{
1055
- name: z.ZodString;
1056
- contentType: z.ZodString;
1057
- inline: z.ZodOptional<z.ZodString>;
1058
- blobRef: z.ZodOptional<z.ZodObject<{
1059
- blobId: z.ZodString;
1060
- contentHash: z.ZodString;
1061
- size: z.ZodNumber;
1062
- contentType: z.ZodString;
1063
- url: z.ZodOptional<z.ZodString>;
1064
- }, z.core.$strip>>;
1065
- }, z.core.$strip>;
1066
- }, z.core.$strip>, z.ZodObject<{
1067
- v: z.ZodNumber;
1068
- id: z.ZodUUID;
1069
- ts: z.ZodISODateTime;
1070
- type: z.ZodLiteral<"task.await_approval">;
1071
- task_id: z.ZodString;
1072
- session_ref: z.ZodOptional<z.ZodString>;
1073
- seq: z.ZodOptional<z.ZodNumber>;
1074
- payload: z.ZodObject<{
1075
- summary: z.ZodString;
1076
- approvalId: z.ZodOptional<z.ZodString>;
1077
- }, z.core.$strip>;
1078
- }, z.core.$strip>, z.ZodObject<{
1079
- v: z.ZodNumber;
1080
- id: z.ZodUUID;
1081
- ts: z.ZodISODateTime;
1082
- type: z.ZodLiteral<"task.complete">;
1083
- task_id: z.ZodString;
1084
- session_ref: z.ZodOptional<z.ZodString>;
1085
- seq: z.ZodOptional<z.ZodNumber>;
1086
- payload: z.ZodObject<{
1087
- harnessId: z.ZodOptional<z.ZodString>;
1088
- summary: z.ZodString;
1089
- finalMessage: z.ZodOptional<z.ZodString>;
1090
- sessionRef: z.ZodString;
1091
- artifactRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1092
- blobId: z.ZodString;
1093
- contentHash: z.ZodString;
1094
- size: z.ZodNumber;
1095
- contentType: z.ZodString;
1096
- url: z.ZodOptional<z.ZodString>;
1097
- }, z.core.$strip>>>;
1098
- document: z.ZodOptional<z.ZodUnknown>;
1099
- usage: z.ZodOptional<z.ZodObject<{
1100
- runtime: z.ZodEnum<{
1101
- claude: "claude";
1102
- codex: "codex";
1103
- pi: "pi";
1104
- }>;
1105
- provider: z.ZodOptional<z.ZodString>;
1106
- model: z.ZodOptional<z.ZodString>;
1107
- promptTokens: z.ZodOptional<z.ZodNumber>;
1108
- completionTokens: z.ZodOptional<z.ZodNumber>;
1109
- durationMs: z.ZodOptional<z.ZodNumber>;
1110
- clientVersion: z.ZodString;
1111
- reportedAt: z.ZodISODateTime;
1112
- }, z.core.$strip>>;
1113
- preparedObservation: z.ZodOptional<z.ZodObject<{
1114
- requestDigest: z.ZodString;
1115
- initialPromptTokens: z.ZodNumber;
1116
- maxPromptTokens: z.ZodNumber;
1117
- }, z.core.$strict>>;
1118
- agentRef: z.ZodOptional<z.ZodObject<{
1119
- agentId: z.ZodString;
1120
- profileRevision: z.ZodString;
1121
- }, z.core.$strict>>;
1122
- agentHomeProjection: z.ZodOptional<z.ZodObject<{
1123
- profileRevision: z.ZodString;
1124
- projectionHash: z.ZodString;
1125
- }, z.core.$strict>>;
1126
- agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1127
- outcome: z.ZodLiteral<"unchanged">;
1128
- }, z.core.$strict>, z.ZodObject<{
1129
- outcome: z.ZodLiteral<"reader-attributed">;
1130
- paths: z.ZodArray<z.ZodString>;
1131
- }, z.core.$strict>, z.ZodObject<{
1132
- outcome: z.ZodLiteral<"unattributed">;
1133
- paths: z.ZodArray<z.ZodString>;
1134
- }, z.core.$strict>, z.ZodObject<{
1135
- outcome: z.ZodLiteral<"unmeasured">;
1136
- }, z.core.$strict>], "outcome">>;
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.fail">;
1143
- task_id: z.ZodString;
1144
- session_ref: z.ZodOptional<z.ZodString>;
1145
- seq: z.ZodOptional<z.ZodNumber>;
1146
- payload: z.ZodObject<{
1147
- recovery: z.ZodOptional<z.ZodObject<{
1148
- kind: z.ZodLiteral<"daemon_interrupted">;
1149
- offerId: z.ZodUUID;
1150
- }, z.core.$strict>>;
1151
- harnessId: z.ZodOptional<z.ZodString>;
1152
- reason: z.ZodString;
1153
- retryable: z.ZodOptional<z.ZodBoolean>;
1154
- usage: z.ZodOptional<z.ZodObject<{
1155
- runtime: z.ZodEnum<{
1156
- claude: "claude";
1157
- codex: "codex";
1158
- pi: "pi";
1159
- }>;
1160
- provider: z.ZodOptional<z.ZodString>;
1161
- model: z.ZodOptional<z.ZodString>;
1162
- promptTokens: z.ZodOptional<z.ZodNumber>;
1163
- completionTokens: z.ZodOptional<z.ZodNumber>;
1164
- durationMs: z.ZodOptional<z.ZodNumber>;
1165
- clientVersion: z.ZodString;
1166
- reportedAt: z.ZodISODateTime;
1167
- }, z.core.$strip>>;
1168
- preparedObservation: z.ZodOptional<z.ZodObject<{
1169
- requestDigest: z.ZodString;
1170
- initialPromptTokens: z.ZodNumber;
1171
- maxPromptTokens: z.ZodNumber;
1172
- }, z.core.$strict>>;
1173
- agentRef: z.ZodOptional<z.ZodObject<{
1174
- agentId: z.ZodString;
1175
- profileRevision: z.ZodString;
1176
- }, z.core.$strict>>;
1177
- agentHomeProjection: z.ZodOptional<z.ZodObject<{
1178
- profileRevision: z.ZodString;
1179
- projectionHash: z.ZodString;
1180
- }, z.core.$strict>>;
1181
- agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1182
- outcome: z.ZodLiteral<"unchanged">;
1183
- }, z.core.$strict>, z.ZodObject<{
1184
- outcome: z.ZodLiteral<"reader-attributed">;
1185
- paths: z.ZodArray<z.ZodString>;
1186
- }, z.core.$strict>, z.ZodObject<{
1187
- outcome: z.ZodLiteral<"unattributed">;
1188
- paths: z.ZodArray<z.ZodString>;
1189
- }, z.core.$strict>, z.ZodObject<{
1190
- outcome: z.ZodLiteral<"unmeasured">;
1191
- }, z.core.$strict>], "outcome">>;
1192
- }, z.core.$strip>;
1193
- }, z.core.$strip>, z.ZodObject<{
1194
- v: z.ZodNumber;
1195
- id: z.ZodUUID;
1196
- ts: z.ZodISODateTime;
1197
- type: z.ZodLiteral<"task.cancelled">;
1198
- task_id: z.ZodString;
1199
- session_ref: z.ZodOptional<z.ZodString>;
1200
- seq: z.ZodOptional<z.ZodNumber>;
1201
- payload: z.ZodObject<{
1202
- harnessId: z.ZodOptional<z.ZodString>;
1203
- reason: z.ZodOptional<z.ZodString>;
1204
- usage: z.ZodOptional<z.ZodObject<{
1205
- runtime: z.ZodEnum<{
1206
- claude: "claude";
1207
- codex: "codex";
1208
- pi: "pi";
1209
- }>;
1210
- provider: z.ZodOptional<z.ZodString>;
1211
- model: z.ZodOptional<z.ZodString>;
1212
- promptTokens: z.ZodOptional<z.ZodNumber>;
1213
- completionTokens: z.ZodOptional<z.ZodNumber>;
1214
- durationMs: z.ZodOptional<z.ZodNumber>;
1215
- clientVersion: z.ZodString;
1216
- reportedAt: z.ZodISODateTime;
1217
- }, z.core.$strip>>;
1218
- agentRef: z.ZodOptional<z.ZodObject<{
1219
- agentId: z.ZodString;
1220
- profileRevision: z.ZodString;
1221
- }, z.core.$strict>>;
1222
- agentHomeProjection: z.ZodOptional<z.ZodObject<{
1223
- profileRevision: z.ZodString;
1224
- projectionHash: z.ZodString;
1225
- }, z.core.$strict>>;
1226
- agentHomeMemoryChange: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1227
- outcome: z.ZodLiteral<"unchanged">;
1228
- }, z.core.$strict>, z.ZodObject<{
1229
- outcome: z.ZodLiteral<"reader-attributed">;
1230
- paths: z.ZodArray<z.ZodString>;
1231
- }, z.core.$strict>, z.ZodObject<{
1232
- outcome: z.ZodLiteral<"unattributed">;
1233
- paths: z.ZodArray<z.ZodString>;
1234
- }, z.core.$strict>, z.ZodObject<{
1235
- outcome: z.ZodLiteral<"unmeasured">;
1236
- }, z.core.$strict>], "outcome">>;
1237
- }, z.core.$strip>;
1238
- }, z.core.$strip>, z.ZodObject<{
1239
- v: z.ZodNumber;
1240
- id: z.ZodUUID;
1241
- ts: z.ZodISODateTime;
1242
- type: z.ZodLiteral<"task.approval_resolved">;
1243
- task_id: z.ZodString;
1244
- session_ref: z.ZodOptional<z.ZodString>;
1245
- seq: z.ZodOptional<z.ZodNumber>;
1246
- payload: z.ZodObject<{
1247
- approvalId: z.ZodString;
1248
- decision: z.ZodEnum<{
1249
- approve: "approve";
1250
- reject: "reject";
1251
- }>;
1252
- resolvedBy: z.ZodEnum<{
1253
- local: "local";
1254
- }>;
1255
- at: z.ZodISODateTime;
1256
- }, z.core.$strip>;
1257
- }, z.core.$strip>, z.ZodObject<{
1258
- v: z.ZodNumber;
1259
- id: z.ZodUUID;
1260
- ts: z.ZodISODateTime;
1261
- type: z.ZodLiteral<"agent.egress.reliable">;
1262
- task_id: z.ZodOptional<z.ZodString>;
1263
- session_ref: z.ZodOptional<z.ZodString>;
1264
- seq: z.ZodOptional<z.ZodNumber>;
1265
- payload: z.ZodObject<{
1266
- agentRef: z.ZodObject<{
1267
- agentId: z.ZodString;
1268
- profileRevision: z.ZodString;
1269
- }, z.core.$strict>;
1270
- sessionRef: z.ZodString;
1271
- policyRevision: z.ZodString;
1272
- eventId: z.ZodUUID;
1273
- cursor: z.ZodNumber;
1274
- payload: z.ZodJSONSchema;
1275
- contentHash: z.ZodString;
1276
- byteCount: z.ZodNumber;
1277
- }, z.core.$strict>;
1278
- }, z.core.$strip>, z.ZodObject<{
1279
- v: z.ZodNumber;
1280
- id: z.ZodUUID;
1281
- ts: z.ZodISODateTime;
1282
- type: z.ZodLiteral<"agent.message.draft">;
1283
- task_id: z.ZodString;
1284
- session_ref: z.ZodOptional<z.ZodString>;
1285
- seq: z.ZodOptional<z.ZodNumber>;
1286
- payload: z.ZodObject<{
1287
- agentRef: z.ZodObject<{
1288
- agentId: z.ZodString;
1289
- profileRevision: z.ZodString;
1290
- }, z.core.$strict>;
1291
- revision: z.ZodNumber;
1292
- offset: z.ZodNumber;
1293
- text: z.ZodString;
1294
- overflow: z.ZodOptional<z.ZodLiteral<true>>;
1295
- }, z.core.$strict>;
1296
- }, z.core.$strip>, z.ZodObject<{
1297
- v: z.ZodNumber;
1298
- id: z.ZodUUID;
1299
- ts: z.ZodISODateTime;
1300
- type: z.ZodLiteral<"agent.message.publish">;
1301
- task_id: z.ZodString;
1302
- session_ref: z.ZodOptional<z.ZodString>;
1303
- seq: z.ZodOptional<z.ZodNumber>;
1304
- payload: z.ZodObject<{
1305
- agentRef: z.ZodObject<{
1306
- agentId: z.ZodString;
1307
- profileRevision: z.ZodString;
1308
- }, z.core.$strict>;
1309
- sessionRef: z.ZodString;
1310
- contract: z.ZodString;
1311
- messageId: z.ZodUUID;
1312
- cursor: z.ZodNumber;
1313
- contentType: z.ZodEnum<{
1314
- "text/markdown": "text/markdown";
1315
- "text/plain": "text/plain";
1316
- }>;
1317
- body: z.ZodString;
1318
- contentHash: z.ZodString;
1319
- byteCount: z.ZodNumber;
1320
- }, z.core.$strict>;
1321
- }, z.core.$strip>, z.ZodObject<{
1322
- v: z.ZodNumber;
1323
- id: z.ZodUUID;
1324
- ts: z.ZodISODateTime;
1325
- type: z.ZodLiteral<"agent.content.receipt">;
1326
- task_id: z.ZodOptional<z.ZodString>;
1327
- session_ref: z.ZodOptional<z.ZodString>;
1328
- seq: z.ZodOptional<z.ZodNumber>;
1329
- payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1330
- requestId: z.ZodUUID;
1331
- eventId: z.ZodUUID;
1332
- cursor: z.ZodNumber;
1333
- surface: z.ZodEnum<{
1334
- artifact: "artifact";
1335
- transcript: "transcript";
1336
- workspace: "workspace";
1337
- }>;
1338
- actor: z.ZodObject<{
1339
- kind: z.ZodEnum<{
1340
- agent: "agent";
1341
- system: "system";
1342
- user: "user";
1343
- }>;
1344
- id: z.ZodString;
1345
- }, z.core.$strict>;
1346
- agentRef: z.ZodObject<{
1347
- agentId: z.ZodString;
1348
- profileRevision: z.ZodString;
1349
- }, z.core.$strict>;
1350
- sessionRef: z.ZodString;
1351
- runtime: z.ZodEnum<{
1352
- claude: "claude";
1353
- codex: "codex";
1354
- pi: "pi";
1355
- }>;
1356
- cwd: z.ZodString;
1357
- policyRevision: z.ZodString;
1358
- target: z.ZodString;
1359
- mimeType: z.ZodString;
1360
- decodeAs: z.ZodEnum<{
1361
- bytes: "bytes";
1362
- utf8: "utf8";
1363
- }>;
1364
- decision: z.ZodLiteral<"allowed">;
1365
- byteCount: z.ZodNumber;
1366
- contentHash: z.ZodString;
1367
- blobRef: z.ZodObject<{
1368
- blobId: z.ZodString;
1369
- contentHash: z.ZodString;
1370
- size: z.ZodNumber;
1371
- contentType: z.ZodString;
1372
- url: z.ZodOptional<z.ZodString>;
1373
- }, z.core.$strip>;
1374
- }, z.core.$strict>, z.ZodObject<{
1375
- requestId: z.ZodUUID;
1376
- eventId: z.ZodUUID;
1377
- cursor: z.ZodNumber;
1378
- surface: z.ZodEnum<{
1379
- artifact: "artifact";
1380
- transcript: "transcript";
1381
- workspace: "workspace";
1382
- }>;
1383
- actor: z.ZodObject<{
1384
- kind: z.ZodEnum<{
1385
- agent: "agent";
1386
- system: "system";
1387
- user: "user";
1388
- }>;
1389
- id: z.ZodString;
1390
- }, z.core.$strict>;
1391
- agentRef: z.ZodObject<{
1392
- agentId: z.ZodString;
1393
- profileRevision: z.ZodString;
1394
- }, z.core.$strict>;
1395
- sessionRef: z.ZodString;
1396
- runtime: z.ZodEnum<{
1397
- claude: "claude";
1398
- codex: "codex";
1399
- pi: "pi";
1400
- }>;
1401
- cwd: z.ZodString;
1402
- policyRevision: z.ZodString;
1403
- target: z.ZodString;
1404
- mimeType: z.ZodString;
1405
- decodeAs: z.ZodEnum<{
1406
- bytes: "bytes";
1407
- utf8: "utf8";
1408
- }>;
1409
- decision: z.ZodLiteral<"denied">;
1410
- byteCount: z.ZodLiteral<0>;
1411
- reason: z.ZodEnum<{
1412
- "absolute-target": "absolute-target";
1413
- "byte-limit": "byte-limit";
1414
- "capability-missing": "capability-missing";
1415
- "dot-segment": "dot-segment";
1416
- "identity-mismatch": "identity-mismatch";
1417
- "invalid-request": "invalid-request";
1418
- "mime-not-allowlisted": "mime-not-allowlisted";
1419
- "non-relative-target": "non-relative-target";
1420
- "not-regular-file": "not-regular-file";
1421
- "path-escape": "path-escape";
1422
- "policy-disabled": "policy-disabled";
1423
- "policy-revision-mismatch": "policy-revision-mismatch";
1424
- "root-invalid": "root-invalid";
1425
- "root-not-allowlisted": "root-not-allowlisted";
1426
- "sensitive-name": "sensitive-name";
1427
- symlink: "symlink";
1428
- "target-missing": "target-missing";
1429
- "text-decode-failed": "text-decode-failed";
1430
- "text-not-allowlisted": "text-not-allowlisted";
1431
- }>;
1432
- }, z.core.$strict>], "decision">;
1433
- }, z.core.$strip>], "type">;
34
+ export declare const EnvelopeSchema: z.ZodDiscriminatedUnion<[EnvelopeShape<"conn.hello", z.ZodOptional<z.ZodString>, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"conn.ack", z.ZodOptional<z.ZodString>, z.ZodNumber>, EnvelopeShape<"task.offer", z.ZodString, z.ZodNumber>, EnvelopeShape<"task.offer_with_toolsets", z.ZodString, z.ZodNumber>, EnvelopeShape<"task.offer_for_agent", z.ZodString, z.ZodNumber>, EnvelopeShape<"task.offer_for_agent_with_egress", z.ZodString, z.ZodNumber>, EnvelopeShape<"task.offer_for_agent_with_egress_fresh", z.ZodString, z.ZodNumber>, EnvelopeShape<"task.offer_prepared", z.ZodString, z.ZodNumber>, EnvelopeShape<"agent.egress.ack", z.ZodOptional<z.ZodString>, z.ZodNumber>, EnvelopeShape<"agent.message.disposition", z.ZodString, z.ZodNumber>, EnvelopeShape<"agent.content.read", z.ZodOptional<z.ZodString>, z.ZodNumber>, EnvelopeShape<"agent.home.projection", z.ZodOptional<z.ZodNever>, z.ZodNumber>, EnvelopeShape<"agent.input.preparation", z.ZodOptional<z.ZodNever>, z.ZodNumber>, EnvelopeShape<"provider.provisioning.available", z.ZodOptional<z.ZodNever>, z.ZodNumber>, EnvelopeShape<"agent.memory.intent.available", z.ZodOptional<z.ZodNever>, z.ZodNumber>, EnvelopeShape<"task.approve", z.ZodString, z.ZodNumber>, EnvelopeShape<"task.reject", z.ZodString, z.ZodNumber>, EnvelopeShape<"task.cancel", z.ZodString, z.ZodNumber>, EnvelopeShape<"task.steer", z.ZodString, z.ZodNumber>, EnvelopeShape<"task.claim", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.started", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.decline", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.progress", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.artifact", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.await_approval", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.complete", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.fail", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.cancelled", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.approval_resolved", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"agent.egress.reliable", z.ZodOptional<z.ZodString>, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"agent.message.draft", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"agent.message.publish", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"agent.content.receipt", z.ZodOptional<z.ZodString>, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.offer_sealed", z.ZodString, z.ZodNumber>, EnvelopeShape<"task.offer_with_toolsets_sealed", z.ZodString, z.ZodNumber>, EnvelopeShape<"task.offer_for_agent_sealed", z.ZodString, z.ZodNumber>, EnvelopeShape<"task.offer_for_agent_with_egress_sealed", z.ZodString, z.ZodNumber>, EnvelopeShape<"task.offer_for_agent_with_egress_fresh_sealed", z.ZodString, z.ZodNumber>, EnvelopeShape<"task.steer_sealed", z.ZodString, z.ZodNumber>, EnvelopeShape<"task.complete_sealed", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.fail_sealed", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.decline_sealed", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.cancelled_sealed", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.progress_sealed", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.artifact_sealed", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"task.await_approval_sealed", z.ZodString, z.ZodOptional<z.ZodNumber>>, EnvelopeShape<"e2ee.key_package.available", z.ZodOptional<z.ZodNever>, z.ZodNumber>], "type">;
1434
35
  export type Envelope = z.infer<typeof EnvelopeSchema>;
1435
36
  /** `true` for every message type the server sends to the daemon (envelope `seq` is required for these). */
1436
37
  export declare function isServerToDaemonType(type: MessageType): boolean;
38
+ export {};