@spencerboucher/switchyard-client 0.0.0-stage → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1098 @@
1
+ import { z } from "zod";
2
+ /** Durable event payloads by type. `data` is the full new entity unless noted. */
3
+ export declare const EventDataSchemas: {
4
+ readonly "host.updated": z.ZodObject<{
5
+ id: z.ZodString;
6
+ name: z.ZodString;
7
+ platform: z.ZodEnum<{
8
+ darwin: "darwin";
9
+ linux: "linux";
10
+ }>;
11
+ agentVersion: z.ZodString;
12
+ piVersion: z.ZodNullable<z.ZodString>;
13
+ piCompatible: z.ZodBoolean;
14
+ capabilities: z.ZodNullable<z.ZodObject<{
15
+ prompt: z.ZodBoolean;
16
+ steer: z.ZodBoolean;
17
+ followUp: z.ZodBoolean;
18
+ abort: z.ZodBoolean;
19
+ resume: z.ZodBoolean;
20
+ rename: z.ZodBoolean;
21
+ importInactive: z.ZodBoolean;
22
+ extensionDialogs: z.ZodBoolean;
23
+ customUi: z.ZodBoolean;
24
+ widgetsText: z.ZodBoolean;
25
+ widgetsComponent: z.ZodBoolean;
26
+ tokenAccounting: z.ZodBoolean;
27
+ costAccounting: z.ZodBoolean;
28
+ terminal: z.ZodOptional<z.ZodBoolean>;
29
+ sessionControls: z.ZodOptional<z.ZodBoolean>;
30
+ treeNavigation: z.ZodOptional<z.ZodBoolean>;
31
+ agentRequests: z.ZodOptional<z.ZodBoolean>;
32
+ messageDelivery: z.ZodOptional<z.ZodBoolean>;
33
+ policies: z.ZodOptional<z.ZodBoolean>;
34
+ adapterDevelopment: z.ZodOptional<z.ZodBoolean>;
35
+ unsupported: z.ZodArray<z.ZodObject<{
36
+ capability: z.ZodString;
37
+ reason: z.ZodString;
38
+ }, z.core.$strip>>;
39
+ }, z.core.$strip>>;
40
+ connectivity: z.ZodEnum<{
41
+ connected: "connected";
42
+ reconnecting: "reconnecting";
43
+ unreachable: "unreachable";
44
+ }>;
45
+ lastSeenAt: z.ZodNullable<z.ZodString>;
46
+ revokedAt: z.ZodNullable<z.ZodString>;
47
+ createdAt: z.ZodString;
48
+ projectFolders: z.ZodOptional<z.ZodArray<z.ZodString>>;
49
+ projectScan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
50
+ state: z.ZodEnum<{
51
+ done: "done";
52
+ failed: "failed";
53
+ running: "running";
54
+ }>;
55
+ startedAt: z.ZodString;
56
+ finishedAt: z.ZodNullable<z.ZodString>;
57
+ repositories: z.ZodNumber;
58
+ projectsCreated: z.ZodNumber;
59
+ checkoutsAdded: z.ZodNumber;
60
+ errors: z.ZodArray<z.ZodString>;
61
+ }, z.core.$strip>>>;
62
+ usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
63
+ provider: z.ZodEnum<{
64
+ anthropic: "anthropic";
65
+ "openai-codex": "openai-codex";
66
+ }>;
67
+ status: z.ZodEnum<{
68
+ available: "available";
69
+ error: "error";
70
+ expired: "expired";
71
+ rejected: "rejected";
72
+ }>;
73
+ message: z.ZodNullable<z.ZodString>;
74
+ windows: z.ZodArray<z.ZodObject<{
75
+ id: z.ZodEnum<{
76
+ five_hour: "five_hour";
77
+ weekly: "weekly";
78
+ }>;
79
+ usedPct: z.ZodNumber;
80
+ resetsAt: z.ZodNullable<z.ZodString>;
81
+ }, z.core.$strip>>;
82
+ fetchedAt: z.ZodString;
83
+ }, z.core.$strip>>>;
84
+ github: z.ZodOptional<z.ZodObject<{
85
+ available: z.ZodBoolean;
86
+ reason: z.ZodNullable<z.ZodString>;
87
+ }, z.core.$strict>>;
88
+ }, z.core.$strip>;
89
+ readonly "project.updated": z.ZodObject<{
90
+ id: z.ZodString;
91
+ name: z.ZodString;
92
+ repoIdentity: z.ZodString;
93
+ defaultProfileId: z.ZodNullable<z.ZodString>;
94
+ defaultHostId: z.ZodNullable<z.ZodString>;
95
+ maxConcurrentRuns: z.ZodNumber;
96
+ automationEnabled: z.ZodBoolean;
97
+ setupCommand: z.ZodNullable<z.ZodString>;
98
+ checks: z.ZodArray<z.ZodString>;
99
+ workspaceSharing: z.ZodEnum<{
100
+ shared: "shared";
101
+ single_writer: "single_writer";
102
+ }>;
103
+ worktreeDir: z.ZodDefault<z.ZodString>;
104
+ createdAt: z.ZodString;
105
+ updatedAt: z.ZodString;
106
+ }, z.core.$strip>;
107
+ readonly "project.deleted": z.ZodObject<{
108
+ id: z.ZodString;
109
+ }, z.core.$strip>;
110
+ readonly "checkout.updated": z.ZodObject<{
111
+ id: z.ZodString;
112
+ projectId: z.ZodString;
113
+ hostId: z.ZodString;
114
+ path: z.ZodString;
115
+ commonDir: z.ZodString;
116
+ defaultBranch: z.ZodString;
117
+ createdAt: z.ZodString;
118
+ }, z.core.$strip>;
119
+ readonly "workspace.updated": z.ZodObject<{
120
+ id: z.ZodString;
121
+ checkoutId: z.ZodString;
122
+ projectId: z.ZodString;
123
+ hostId: z.ZodString;
124
+ path: z.ZodString;
125
+ branch: z.ZodNullable<z.ZodString>;
126
+ baseBranch: z.ZodNullable<z.ZodString>;
127
+ provenance: z.ZodEnum<{
128
+ discovered: "discovered";
129
+ main: "main";
130
+ managed: "managed";
131
+ }>;
132
+ git: z.ZodObject<{
133
+ dirty: z.ZodBoolean;
134
+ changedFiles: z.ZodNumber;
135
+ ahead: z.ZodNumber;
136
+ behind: z.ZodNumber;
137
+ unmerged: z.ZodBoolean;
138
+ }, z.core.$strip>;
139
+ setup: z.ZodObject<{
140
+ state: z.ZodEnum<{
141
+ failed: "failed";
142
+ none: "none";
143
+ running: "running";
144
+ succeeded: "succeeded";
145
+ }>;
146
+ log: z.ZodString;
147
+ }, z.core.$strip>;
148
+ archivedAt: z.ZodNullable<z.ZodString>;
149
+ updatedAt: z.ZodString;
150
+ github: z.ZodOptional<z.ZodObject<{
151
+ repository: z.ZodNullable<z.ZodString>;
152
+ headRepository: z.ZodNullable<z.ZodString>;
153
+ branch: z.ZodNullable<z.ZodString>;
154
+ fetchedAt: z.ZodNullable<z.ZodString>;
155
+ attemptedAt: z.ZodString;
156
+ status: z.ZodEnum<{
157
+ ambiguous: "ambiguous";
158
+ error: "error";
159
+ ready: "ready";
160
+ unavailable: "unavailable";
161
+ }>;
162
+ reason: z.ZodNullable<z.ZodString>;
163
+ pullRequest: z.ZodNullable<z.ZodObject<{
164
+ nodeId: z.ZodOptional<z.ZodString>;
165
+ number: z.ZodNumber;
166
+ url: z.ZodString;
167
+ title: z.ZodString;
168
+ state: z.ZodEnum<{
169
+ CLOSED: "CLOSED";
170
+ MERGED: "MERGED";
171
+ OPEN: "OPEN";
172
+ }>;
173
+ isDraft: z.ZodBoolean;
174
+ headRefName: z.ZodString;
175
+ headRefOid: z.ZodString;
176
+ headRepository: z.ZodNullable<z.ZodString>;
177
+ baseRefName: z.ZodString;
178
+ mergeable: z.ZodString;
179
+ mergeStateStatus: z.ZodString;
180
+ reviewDecision: z.ZodNullable<z.ZodEnum<{
181
+ APPROVED: "APPROVED";
182
+ CHANGES_REQUESTED: "CHANGES_REQUESTED";
183
+ REVIEW_REQUIRED: "REVIEW_REQUIRED";
184
+ }>>;
185
+ mergeQueueEnabled: z.ZodBoolean;
186
+ inMergeQueue: z.ZodBoolean;
187
+ autoMergeEnabled: z.ZodBoolean;
188
+ squashMergeAllowed: z.ZodBoolean;
189
+ }, z.core.$strict>>;
190
+ checks: z.ZodArray<z.ZodObject<{
191
+ id: z.ZodString;
192
+ name: z.ZodString;
193
+ state: z.ZodString;
194
+ bucket: z.ZodEnum<{
195
+ cancel: "cancel";
196
+ fail: "fail";
197
+ pass: "pass";
198
+ pending: "pending";
199
+ skipping: "skipping";
200
+ unknown: "unknown";
201
+ }>;
202
+ link: z.ZodNullable<z.ZodString>;
203
+ workflow: z.ZodNullable<z.ZodString>;
204
+ event: z.ZodNullable<z.ZodString>;
205
+ startedAt: z.ZodNullable<z.ZodString>;
206
+ completedAt: z.ZodNullable<z.ZodString>;
207
+ description: z.ZodNullable<z.ZodString>;
208
+ actionsJob: z.ZodNullable<z.ZodObject<{
209
+ runId: z.ZodString;
210
+ jobId: z.ZodString;
211
+ attempt: z.ZodNumber;
212
+ }, z.core.$strict>>;
213
+ }, z.core.$strict>>;
214
+ checksComplete: z.ZodBoolean;
215
+ threads: z.ZodArray<z.ZodObject<{
216
+ id: z.ZodString;
217
+ isResolved: z.ZodLiteral<false>;
218
+ isOutdated: z.ZodBoolean;
219
+ path: z.ZodNullable<z.ZodString>;
220
+ line: z.ZodNullable<z.ZodNumber>;
221
+ startLine: z.ZodNullable<z.ZodNumber>;
222
+ side: z.ZodNullable<z.ZodEnum<{
223
+ LEFT: "LEFT";
224
+ RIGHT: "RIGHT";
225
+ }>>;
226
+ comments: z.ZodArray<z.ZodObject<{
227
+ id: z.ZodString;
228
+ author: z.ZodNullable<z.ZodString>;
229
+ body: z.ZodString;
230
+ bodyTruncated: z.ZodBoolean;
231
+ url: z.ZodString;
232
+ createdAt: z.ZodNullable<z.ZodString>;
233
+ }, z.core.$strict>>;
234
+ commentsComplete: z.ZodBoolean;
235
+ }, z.core.$strict>>;
236
+ threadsComplete: z.ZodBoolean;
237
+ truncated: z.ZodBoolean;
238
+ }, z.core.$strict>>;
239
+ }, z.core.$strip>;
240
+ readonly "workspace.deleted": z.ZodObject<{
241
+ id: z.ZodString;
242
+ }, z.core.$strip>;
243
+ readonly "profile.updated": z.ZodObject<{
244
+ id: z.ZodString;
245
+ name: z.ZodString;
246
+ provider: z.ZodNullable<z.ZodString>;
247
+ model: z.ZodNullable<z.ZodString>;
248
+ thinking: z.ZodNullable<z.ZodEnum<{
249
+ high: "high";
250
+ low: "low";
251
+ max: "max";
252
+ medium: "medium";
253
+ minimal: "minimal";
254
+ off: "off";
255
+ xhigh: "xhigh";
256
+ }>>;
257
+ projectTrust: z.ZodEnum<{
258
+ approve: "approve";
259
+ ask: "ask";
260
+ ignore: "ignore";
261
+ }>;
262
+ extraArgs: z.ZodArray<z.ZodString>;
263
+ resources: z.ZodOptional<z.ZodEnum<{
264
+ all: "all";
265
+ vanilla: "vanilla";
266
+ }>>;
267
+ }, z.core.$strip>;
268
+ readonly "profile.deleted": z.ZodObject<{
269
+ id: z.ZodString;
270
+ }, z.core.$strip>;
271
+ readonly "view.updated": z.ZodObject<{
272
+ id: z.ZodString;
273
+ name: z.ZodString;
274
+ mode: z.ZodEnum<{
275
+ all: "all";
276
+ pinned: "pinned";
277
+ }>;
278
+ projectIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
279
+ hostIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
280
+ sessionIds: z.ZodArray<z.ZodString>;
281
+ clients: z.ZodArray<z.ZodObject<{
282
+ id: z.ZodString;
283
+ kind: z.ZodEnum<{
284
+ herdr: "herdr";
285
+ tmux: "tmux";
286
+ }>;
287
+ name: z.ZodString;
288
+ machine: z.ZodString;
289
+ lastSeenAt: z.ZodString;
290
+ }, z.core.$strip>>;
291
+ createdAt: z.ZodString;
292
+ updatedAt: z.ZodString;
293
+ }, z.core.$strip>;
294
+ readonly "view.deleted": z.ZodObject<{
295
+ id: z.ZodString;
296
+ }, z.core.$strip>;
297
+ readonly "session.updated": z.ZodObject<{
298
+ id: z.ZodString;
299
+ title: z.ZodString;
300
+ subtitle: z.ZodNullable<z.ZodString>;
301
+ hostId: z.ZodString;
302
+ workspaceId: z.ZodNullable<z.ZodString>;
303
+ projectId: z.ZodNullable<z.ZodString>;
304
+ cwd: z.ZodString;
305
+ nativeHandle: z.ZodNullable<z.ZodObject<{
306
+ sessionId: z.ZodString;
307
+ sessionFile: z.ZodString;
308
+ }, z.core.$strip>>;
309
+ profileSnapshot: z.ZodObject<{
310
+ id: z.ZodString;
311
+ name: z.ZodString;
312
+ provider: z.ZodNullable<z.ZodString>;
313
+ model: z.ZodNullable<z.ZodString>;
314
+ thinking: z.ZodNullable<z.ZodEnum<{
315
+ high: "high";
316
+ low: "low";
317
+ max: "max";
318
+ medium: "medium";
319
+ minimal: "minimal";
320
+ off: "off";
321
+ xhigh: "xhigh";
322
+ }>>;
323
+ projectTrust: z.ZodEnum<{
324
+ approve: "approve";
325
+ ask: "ask";
326
+ ignore: "ignore";
327
+ }>;
328
+ extraArgs: z.ZodArray<z.ZodString>;
329
+ resources: z.ZodOptional<z.ZodEnum<{
330
+ all: "all";
331
+ vanilla: "vanilla";
332
+ }>>;
333
+ }, z.core.$strip>;
334
+ runtime: z.ZodEnum<{
335
+ failed: "failed";
336
+ idle: "idle";
337
+ interrupted: "interrupted";
338
+ running: "running";
339
+ starting: "starting";
340
+ stopped: "stopped";
341
+ waiting_input: "waiting_input";
342
+ }>;
343
+ runtimeDetail: z.ZodNullable<z.ZodString>;
344
+ connectivity: z.ZodEnum<{
345
+ connected: "connected";
346
+ reconnecting: "reconnecting";
347
+ unreachable: "unreachable";
348
+ }>;
349
+ runId: z.ZodNullable<z.ZodString>;
350
+ taskId: z.ZodNullable<z.ZodString>;
351
+ provenance: z.ZodEnum<{
352
+ created: "created";
353
+ imported: "imported";
354
+ subagent: "subagent";
355
+ }>;
356
+ readOnly: z.ZodBoolean;
357
+ lastActivityAt: z.ZodString;
358
+ archivedAt: z.ZodNullable<z.ZodString>;
359
+ queue: z.ZodObject<{
360
+ steering: z.ZodArray<z.ZodString>;
361
+ followUp: z.ZodArray<z.ZodString>;
362
+ }, z.core.$strip>;
363
+ stats: z.ZodNullable<z.ZodObject<{
364
+ tokens: z.ZodNullable<z.ZodNumber>;
365
+ costUsd: z.ZodNullable<z.ZodNumber>;
366
+ watermark: z.ZodOptional<z.ZodObject<{
367
+ runtimeId: z.ZodString;
368
+ settleSeq: z.ZodNumber;
369
+ }, z.core.$strict>>;
370
+ context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
371
+ tokens: z.ZodNullable<z.ZodNumber>;
372
+ window: z.ZodNumber;
373
+ percent: z.ZodNullable<z.ZodNumber>;
374
+ }, z.core.$strip>>>;
375
+ }, z.core.$strip>>;
376
+ model: z.ZodOptional<z.ZodNullable<z.ZodObject<{
377
+ provider: z.ZodString;
378
+ id: z.ZodString;
379
+ name: z.ZodNullable<z.ZodString>;
380
+ contextWindow: z.ZodNullable<z.ZodNumber>;
381
+ reasoning: z.ZodBoolean;
382
+ scoped: z.ZodOptional<z.ZodBoolean>;
383
+ thinkingLevels: z.ZodArray<z.ZodEnum<{
384
+ high: "high";
385
+ low: "low";
386
+ max: "max";
387
+ medium: "medium";
388
+ minimal: "minimal";
389
+ off: "off";
390
+ xhigh: "xhigh";
391
+ }>>;
392
+ promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
393
+ short: z.ZodOptional<z.ZodNumber>;
394
+ long: z.ZodOptional<z.ZodNumber>;
395
+ }, z.core.$strip>>>;
396
+ }, z.core.$strip>>>;
397
+ thinking: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
398
+ high: "high";
399
+ low: "low";
400
+ max: "max";
401
+ medium: "medium";
402
+ minimal: "minimal";
403
+ off: "off";
404
+ xhigh: "xhigh";
405
+ }>>>;
406
+ compacting: z.ZodOptional<z.ZodBoolean>;
407
+ lastAssistantText: z.ZodNullable<z.ZodString>;
408
+ createdAt: z.ZodString;
409
+ terminal: z.ZodOptional<z.ZodBoolean>;
410
+ unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
+ adapterGeneration: z.ZodOptional<z.ZodString>;
412
+ transcriptEpoch: z.ZodOptional<z.ZodNumber>;
413
+ bridge: z.ZodOptional<z.ZodObject<{
414
+ version: z.ZodLiteral<1>;
415
+ runtimeId: z.ZodString;
416
+ nativeSessionId: z.ZodString;
417
+ controllerEpoch: z.ZodOptional<z.ZodString>;
418
+ agentTools: z.ZodBoolean;
419
+ messageDelivery: z.ZodBoolean;
420
+ policyState: z.ZodEnum<{
421
+ active: "active";
422
+ initializing: "initializing";
423
+ lost: "lost";
424
+ unsupported: "unsupported";
425
+ }>;
426
+ policyPhases: z.ZodArray<z.ZodEnum<{
427
+ request: "request";
428
+ tool_call: "tool_call";
429
+ }>>;
430
+ }, z.core.$strip>>;
431
+ promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
432
+ at: z.ZodString;
433
+ provider: z.ZodString;
434
+ model: z.ZodString;
435
+ cacheRead: z.ZodNumber;
436
+ cacheWrite: z.ZodNumber;
437
+ cacheWrite1h: z.ZodNumber;
438
+ }, z.core.$strip>>>;
439
+ cacheAlert: z.ZodOptional<z.ZodNullable<z.ZodObject<{
440
+ ttlSec: z.ZodNullable<z.ZodNumber>;
441
+ warnedFor: z.ZodNullable<z.ZodString>;
442
+ }, z.core.$strip>>>;
443
+ }, z.core.$strip>;
444
+ readonly "transcript.item": z.ZodDiscriminatedUnion<[z.ZodObject<{
445
+ id: z.ZodString;
446
+ sessionId: z.ZodString;
447
+ order: z.ZodNumber;
448
+ at: z.ZodString;
449
+ kind: z.ZodLiteral<"user">;
450
+ data: z.ZodObject<{
451
+ text: z.ZodString;
452
+ images: z.ZodOptional<z.ZodNumber>;
453
+ entryId: z.ZodOptional<z.ZodString>;
454
+ }, z.core.$strip>;
455
+ }, z.core.$strip>, z.ZodObject<{
456
+ id: z.ZodString;
457
+ sessionId: z.ZodString;
458
+ order: z.ZodNumber;
459
+ at: z.ZodString;
460
+ kind: z.ZodLiteral<"assistant">;
461
+ data: z.ZodObject<{
462
+ text: z.ZodString;
463
+ streaming: z.ZodOptional<z.ZodBoolean>;
464
+ }, z.core.$strip>;
465
+ }, z.core.$strip>, z.ZodObject<{
466
+ id: z.ZodString;
467
+ sessionId: z.ZodString;
468
+ order: z.ZodNumber;
469
+ at: z.ZodString;
470
+ kind: z.ZodLiteral<"thinking">;
471
+ data: z.ZodObject<{
472
+ text: z.ZodString;
473
+ }, z.core.$strip>;
474
+ }, z.core.$strip>, z.ZodObject<{
475
+ id: z.ZodString;
476
+ sessionId: z.ZodString;
477
+ order: z.ZodNumber;
478
+ at: z.ZodString;
479
+ kind: z.ZodLiteral<"tool">;
480
+ data: z.ZodObject<{
481
+ toolCallId: z.ZodString;
482
+ name: z.ZodString;
483
+ status: z.ZodEnum<{
484
+ error: "error";
485
+ ok: "ok";
486
+ running: "running";
487
+ }>;
488
+ args: z.ZodUnknown;
489
+ summary: z.ZodString;
490
+ output: z.ZodString;
491
+ startedAt: z.ZodString;
492
+ durationMs: z.ZodNullable<z.ZodNumber>;
493
+ card: z.ZodNullable<z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>>;
494
+ adapterId: z.ZodNullable<z.ZodString>;
495
+ adapterGeneration: z.ZodOptional<z.ZodString>;
496
+ }, z.core.$strip>;
497
+ }, z.core.$strip>, z.ZodObject<{
498
+ id: z.ZodString;
499
+ sessionId: z.ZodString;
500
+ order: z.ZodNumber;
501
+ at: z.ZodString;
502
+ kind: z.ZodLiteral<"notice">;
503
+ data: z.ZodObject<{
504
+ level: z.ZodEnum<{
505
+ error: "error";
506
+ info: "info";
507
+ warning: "warning";
508
+ }>;
509
+ text: z.ZodString;
510
+ customType: z.ZodOptional<z.ZodString>;
511
+ card: z.ZodOptional<z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>>;
512
+ adapterId: z.ZodOptional<z.ZodString>;
513
+ adapterGeneration: z.ZodOptional<z.ZodString>;
514
+ }, z.core.$strip>;
515
+ }, z.core.$strip>, z.ZodObject<{
516
+ id: z.ZodString;
517
+ sessionId: z.ZodString;
518
+ order: z.ZodNumber;
519
+ at: z.ZodString;
520
+ kind: z.ZodLiteral<"interaction">;
521
+ data: z.ZodObject<{
522
+ interactionId: z.ZodString;
523
+ }, z.core.$strip>;
524
+ }, z.core.$strip>, z.ZodObject<{
525
+ id: z.ZodString;
526
+ sessionId: z.ZodString;
527
+ order: z.ZodNumber;
528
+ at: z.ZodString;
529
+ kind: z.ZodLiteral<"subagent">;
530
+ data: z.ZodObject<{
531
+ runId: z.ZodString;
532
+ label: z.ZodString;
533
+ status: z.ZodString;
534
+ sessionFile: z.ZodNullable<z.ZodString>;
535
+ linkedSessionId: z.ZodNullable<z.ZodString>;
536
+ }, z.core.$strip>;
537
+ }, z.core.$strip>, z.ZodObject<{
538
+ id: z.ZodString;
539
+ sessionId: z.ZodString;
540
+ order: z.ZodNumber;
541
+ at: z.ZodString;
542
+ kind: z.ZodLiteral<"system">;
543
+ data: z.ZodObject<{
544
+ text: z.ZodString;
545
+ suggestion: z.ZodOptional<z.ZodBoolean>;
546
+ }, z.core.$strip>;
547
+ }, z.core.$strip>], "kind">;
548
+ readonly "transcript.reset": z.ZodObject<{
549
+ sessionId: z.ZodString;
550
+ epoch: z.ZodNumber;
551
+ }, z.core.$strip>;
552
+ readonly "interaction.updated": z.ZodObject<{
553
+ id: z.ZodString;
554
+ sessionId: z.ZodString;
555
+ revision: z.ZodNumber;
556
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
557
+ kind: z.ZodLiteral<"extension_ui">;
558
+ method: z.ZodEnum<{
559
+ confirm: "confirm";
560
+ editor: "editor";
561
+ input: "input";
562
+ select: "select";
563
+ }>;
564
+ piRequestIds: z.ZodArray<z.ZodString>;
565
+ }, z.core.$strip>, z.ZodObject<{
566
+ kind: z.ZodLiteral<"unsupported_custom">;
567
+ title: z.ZodNullable<z.ZodString>;
568
+ }, z.core.$strip>], "kind">;
569
+ adapterId: z.ZodNullable<z.ZodString>;
570
+ permission: z.ZodOptional<z.ZodObject<{
571
+ kind: z.ZodLiteral<"policy">;
572
+ decisionId: z.ZodString;
573
+ rootTaskId: z.ZodNullable<z.ZodString>;
574
+ ruleId: z.ZodString;
575
+ ruleRevision: z.ZodNumber;
576
+ fingerprint: z.ZodString;
577
+ }, z.core.$strict>>;
578
+ title: z.ZodString;
579
+ presentation: z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>;
580
+ state: z.ZodPreprocess<z.ZodEnum<{
581
+ canceled: "canceled";
582
+ expired: "expired";
583
+ pending: "pending";
584
+ resolved: "resolved";
585
+ unsupported: "unsupported";
586
+ }>, unknown>;
587
+ resolution: z.ZodNullable<z.ZodObject<{
588
+ by: z.ZodString;
589
+ summary: z.ZodString;
590
+ at: z.ZodString;
591
+ }, z.core.$strip>>;
592
+ createdAt: z.ZodString;
593
+ }, z.core.$strip>;
594
+ readonly "panel.updated": z.ZodObject<{
595
+ sessionId: z.ZodString;
596
+ adapterId: z.ZodString;
597
+ slot: z.ZodString;
598
+ title: z.ZodString;
599
+ node: z.ZodNullable<z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>>;
600
+ webRenderer: z.ZodBoolean;
601
+ mobileFallback: z.ZodNullable<z.ZodString>;
602
+ contribution: z.ZodOptional<z.ZodObject<{
603
+ placement: z.ZodEnum<{
604
+ "composer.pill": "composer.pill";
605
+ "palette.item": "palette.item";
606
+ "session.panel": "session.panel";
607
+ "sidebar.footer": "sidebar.footer";
608
+ "sidebar.header": "sidebar.header";
609
+ "slash.command": "slash.command";
610
+ }>;
611
+ order: z.ZodOptional<z.ZodNumber>;
612
+ actionId: z.ZodOptional<z.ZodString>;
613
+ id: z.ZodString;
614
+ name: z.ZodOptional<z.ZodString>;
615
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
616
+ }, z.core.$strict>>;
617
+ state: z.ZodOptional<z.ZodUnknown>;
618
+ adapterGeneration: z.ZodOptional<z.ZodString>;
619
+ updatedAt: z.ZodString;
620
+ }, z.core.$strip>;
621
+ readonly "adapters.updated": z.ZodObject<{
622
+ hostId: z.ZodString;
623
+ adapters: z.ZodArray<z.ZodObject<{
624
+ id: z.ZodString;
625
+ version: z.ZodString;
626
+ tier: z.ZodEnum<{
627
+ bundled: "bundled";
628
+ owner: "owner";
629
+ plugin: "plugin";
630
+ project: "project";
631
+ }>;
632
+ target: z.ZodObject<{
633
+ extension: z.ZodString;
634
+ versionRange: z.ZodString;
635
+ testedVersions: z.ZodArray<z.ZodString>;
636
+ }, z.core.$strip>;
637
+ capabilities: z.ZodArray<z.ZodString>;
638
+ webRenderer: z.ZodBoolean;
639
+ status: z.ZodEnum<{
640
+ active: "active";
641
+ disabled: "disabled";
642
+ error: "error";
643
+ }>;
644
+ detail: z.ZodNullable<z.ZodString>;
645
+ }, z.core.$strip>>;
646
+ }, z.core.$strip>;
647
+ readonly diagnostic: z.ZodObject<{
648
+ sessionId: z.ZodNullable<z.ZodString>;
649
+ adapterId: z.ZodNullable<z.ZodString>;
650
+ level: z.ZodEnum<{
651
+ error: "error";
652
+ info: "info";
653
+ warning: "warning";
654
+ }>;
655
+ message: z.ZodString;
656
+ at: z.ZodString;
657
+ }, z.core.$strip>;
658
+ readonly "task.updated": z.ZodObject<{
659
+ id: z.ZodString;
660
+ projectId: z.ZodString;
661
+ title: z.ZodString;
662
+ objective: z.ZodString;
663
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
664
+ dependencies: z.ZodArray<z.ZodString>;
665
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
666
+ position: z.ZodNumber;
667
+ state: z.ZodEnum<{
668
+ backlog: "backlog";
669
+ canceled: "canceled";
670
+ done: "done";
671
+ in_progress: "in_progress";
672
+ ready: "ready";
673
+ review: "review";
674
+ }>;
675
+ blocked: z.ZodNullable<z.ZodObject<{
676
+ reason: z.ZodString;
677
+ }, z.core.$strip>>;
678
+ notBefore: z.ZodNullable<z.ZodString>;
679
+ policy: z.ZodObject<{
680
+ hostId: z.ZodNullable<z.ZodString>;
681
+ profileId: z.ZodNullable<z.ZodString>;
682
+ workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
683
+ mode: z.ZodLiteral<"new_worktree">;
684
+ branch: z.ZodNullable<z.ZodString>;
685
+ base: z.ZodNullable<z.ZodString>;
686
+ }, z.core.$strip>, z.ZodObject<{
687
+ mode: z.ZodLiteral<"existing">;
688
+ workspaceId: z.ZodString;
689
+ }, z.core.$strip>], "mode">;
690
+ continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
691
+ enabled: z.ZodLiteral<false>;
692
+ }, z.core.$strip>, z.ZodObject<{
693
+ enabled: z.ZodLiteral<true>;
694
+ objective: z.ZodString;
695
+ maxContinuations: z.ZodNumber;
696
+ maxElapsedMinutes: z.ZodNumber;
697
+ maxTokens: z.ZodNullable<z.ZodNumber>;
698
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
699
+ }, z.core.$strip>], "enabled">;
700
+ completion: z.ZodObject<{
701
+ checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
702
+ requireHumanReview: z.ZodBoolean;
703
+ }, z.core.$strip>;
704
+ }, z.core.$strip>;
705
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
706
+ kind: z.ZodLiteral<"manual">;
707
+ }, z.core.$strip>, z.ZodObject<{
708
+ kind: z.ZodLiteral<"automation">;
709
+ automationId: z.ZodString;
710
+ occurrenceId: z.ZodString;
711
+ routine: z.ZodBoolean;
712
+ }, z.core.$strip>], "kind">;
713
+ groupingKey: z.ZodNullable<z.ZodString>;
714
+ parentTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
715
+ agentOrigin: z.ZodOptional<z.ZodObject<{
716
+ sessionId: z.ZodString;
717
+ toolCallId: z.ZodString;
718
+ }, z.core.$strip>>;
719
+ githubIssue: z.ZodOptional<z.ZodObject<{
720
+ repository: z.ZodString;
721
+ number: z.ZodNumber;
722
+ url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
723
+ launchPrompt: z.ZodString;
724
+ }, z.core.$strict>>;
725
+ currentRunId: z.ZodNullable<z.ZodString>;
726
+ sessionId: z.ZodNullable<z.ZodString>;
727
+ review: z.ZodObject<{
728
+ feedback: z.ZodArray<z.ZodString>;
729
+ changesRequested: z.ZodBoolean;
730
+ }, z.core.$strip>;
731
+ hiddenFromBoard: z.ZodBoolean;
732
+ lastActivityAt: z.ZodString;
733
+ createdAt: z.ZodString;
734
+ updatedAt: z.ZodString;
735
+ }, z.core.$strip>;
736
+ readonly "task.deleted": z.ZodObject<{
737
+ id: z.ZodString;
738
+ }, z.core.$strip>;
739
+ readonly "run.updated": z.ZodObject<{
740
+ id: z.ZodString;
741
+ taskId: z.ZodString;
742
+ sessionId: z.ZodNullable<z.ZodString>;
743
+ hostId: z.ZodNullable<z.ZodString>;
744
+ dispatchKey: z.ZodString;
745
+ attempt: z.ZodNumber;
746
+ state: z.ZodEnum<{
747
+ canceled: "canceled";
748
+ checking: "checking";
749
+ dispatching: "dispatching";
750
+ failed: "failed";
751
+ interrupted: "interrupted";
752
+ queued: "queued";
753
+ running: "running";
754
+ succeeded: "succeeded";
755
+ uncertain: "uncertain";
756
+ waiting_input: "waiting_input";
757
+ }>;
758
+ controlMode: z.ZodEnum<{
759
+ automation: "automation";
760
+ human: "human";
761
+ }>;
762
+ controlRevision: z.ZodNumber;
763
+ continuationsUsed: z.ZodNumber;
764
+ infraRetries: z.ZodNumber;
765
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
766
+ startedAt: z.ZodNullable<z.ZodString>;
767
+ endedAt: z.ZodNullable<z.ZodString>;
768
+ outcome: z.ZodNullable<z.ZodObject<{
769
+ kind: z.ZodEnum<{
770
+ blocked: "blocked";
771
+ canceled: "canceled";
772
+ failed: "failed";
773
+ no_change: "no_change";
774
+ review: "review";
775
+ }>;
776
+ summary: z.ZodString;
777
+ }, z.core.$strip>>;
778
+ limits: z.ZodDiscriminatedUnion<[z.ZodObject<{
779
+ enabled: z.ZodLiteral<false>;
780
+ }, z.core.$strip>, z.ZodObject<{
781
+ enabled: z.ZodLiteral<true>;
782
+ objective: z.ZodString;
783
+ maxContinuations: z.ZodNumber;
784
+ maxElapsedMinutes: z.ZodNumber;
785
+ maxTokens: z.ZodNullable<z.ZodNumber>;
786
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
787
+ }, z.core.$strip>], "enabled">;
788
+ usage: z.ZodObject<{
789
+ tokens: z.ZodNullable<z.ZodNumber>;
790
+ costUsd: z.ZodNullable<z.ZodNumber>;
791
+ accounting: z.ZodEnum<{
792
+ available: "available";
793
+ unavailable: "unavailable";
794
+ }>;
795
+ note: z.ZodNullable<z.ZodString>;
796
+ }, z.core.$strip>;
797
+ checks: z.ZodArray<z.ZodObject<{
798
+ command: z.ZodString;
799
+ exitCode: z.ZodNullable<z.ZodNumber>;
800
+ outputTail: z.ZodString;
801
+ }, z.core.$strip>>;
802
+ createdAt: z.ZodString;
803
+ updatedAt: z.ZodString;
804
+ }, z.core.$strip>;
805
+ readonly "automation.updated": z.ZodObject<{
806
+ id: z.ZodString;
807
+ name: z.ZodString;
808
+ enabled: z.ZodBoolean;
809
+ projectId: z.ZodString;
810
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
811
+ kind: z.ZodLiteral<"manual">;
812
+ }, z.core.$strip>, z.ZodObject<{
813
+ kind: z.ZodLiteral<"once">;
814
+ at: z.ZodString;
815
+ }, z.core.$strip>, z.ZodObject<{
816
+ kind: z.ZodLiteral<"cron">;
817
+ expr: z.ZodString;
818
+ timezone: z.ZodString;
819
+ }, z.core.$strip>, z.ZodObject<{
820
+ kind: z.ZodLiteral<"webhook">;
821
+ }, z.core.$strip>, z.ZodObject<{
822
+ kind: z.ZodLiteral<"dependency">;
823
+ taskId: z.ZodString;
824
+ }, z.core.$strip>], "kind">;
825
+ filters: z.ZodArray<z.ZodObject<{
826
+ path: z.ZodString;
827
+ equals: z.ZodString;
828
+ }, z.core.$strip>>;
829
+ template: z.ZodObject<{
830
+ title: z.ZodString;
831
+ objective: z.ZodString;
832
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
833
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
834
+ }, z.core.$strip>;
835
+ hostId: z.ZodNullable<z.ZodString>;
836
+ profileId: z.ZodNullable<z.ZodString>;
837
+ mode: z.ZodEnum<{
838
+ continue: "continue";
839
+ fresh: "fresh";
840
+ watch: "watch";
841
+ }>;
842
+ groupingKey: z.ZodNullable<z.ZodString>;
843
+ overlap: z.ZodEnum<{
844
+ append: "append";
845
+ queue_one: "queue_one";
846
+ skip: "skip";
847
+ }>;
848
+ missed: z.ZodEnum<{
849
+ run_once: "run_once";
850
+ skip: "skip";
851
+ }>;
852
+ continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
853
+ enabled: z.ZodLiteral<false>;
854
+ }, z.core.$strip>, z.ZodObject<{
855
+ enabled: z.ZodLiteral<true>;
856
+ objective: z.ZodString;
857
+ maxContinuations: z.ZodNumber;
858
+ maxElapsedMinutes: z.ZodNumber;
859
+ maxTokens: z.ZodNullable<z.ZodNumber>;
860
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
861
+ }, z.core.$strip>], "enabled">;
862
+ completion: z.ZodObject<{
863
+ checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
864
+ requireHumanReview: z.ZodBoolean;
865
+ }, z.core.$strip>;
866
+ nextAt: z.ZodNullable<z.ZodString>;
867
+ lastEvaluatedAt: z.ZodNullable<z.ZodString>;
868
+ lastOutcome: z.ZodNullable<z.ZodString>;
869
+ failureCount: z.ZodNumber;
870
+ webhookTokenSet: z.ZodBoolean;
871
+ createdAt: z.ZodString;
872
+ updatedAt: z.ZodString;
873
+ }, z.core.$strip>;
874
+ readonly "automation.deleted": z.ZodObject<{
875
+ id: z.ZodString;
876
+ }, z.core.$strip>;
877
+ readonly "occurrence.created": z.ZodObject<{
878
+ id: z.ZodString;
879
+ automationId: z.ZodString;
880
+ key: z.ZodString;
881
+ scheduledFor: z.ZodNullable<z.ZodString>;
882
+ state: z.ZodEnum<{
883
+ appended: "appended";
884
+ failed: "failed";
885
+ filtered: "filtered";
886
+ fired: "fired";
887
+ queued: "queued";
888
+ skipped_missed: "skipped_missed";
889
+ skipped_overlap: "skipped_overlap";
890
+ }>;
891
+ taskId: z.ZodNullable<z.ZodString>;
892
+ reason: z.ZodNullable<z.ZodString>;
893
+ outcome: z.ZodNullable<z.ZodString>;
894
+ createdAt: z.ZodString;
895
+ }, z.core.$strip>;
896
+ readonly "occurrence.updated": z.ZodObject<{
897
+ id: z.ZodString;
898
+ automationId: z.ZodString;
899
+ key: z.ZodString;
900
+ scheduledFor: z.ZodNullable<z.ZodString>;
901
+ state: z.ZodEnum<{
902
+ appended: "appended";
903
+ failed: "failed";
904
+ filtered: "filtered";
905
+ fired: "fired";
906
+ queued: "queued";
907
+ skipped_missed: "skipped_missed";
908
+ skipped_overlap: "skipped_overlap";
909
+ }>;
910
+ taskId: z.ZodNullable<z.ZodString>;
911
+ reason: z.ZodNullable<z.ZodString>;
912
+ outcome: z.ZodNullable<z.ZodString>;
913
+ createdAt: z.ZodString;
914
+ }, z.core.$strip>;
915
+ readonly "attention.updated": z.ZodObject<{
916
+ id: z.ZodString;
917
+ sessionId: z.ZodNullable<z.ZodString>;
918
+ taskId: z.ZodNullable<z.ZodString>;
919
+ projectId: z.ZodNullable<z.ZodString>;
920
+ reason: z.ZodEnum<{
921
+ cache_expiring: "cache_expiring";
922
+ failed: "failed";
923
+ host_unreachable: "host_unreachable";
924
+ needs_input: "needs_input";
925
+ ready_for_review: "ready_for_review";
926
+ unsupported_interaction: "unsupported_interaction";
927
+ }>;
928
+ severity: z.ZodEnum<{
929
+ critical: "critical";
930
+ info: "info";
931
+ warning: "warning";
932
+ }>;
933
+ summary: z.ZodString;
934
+ interactionId: z.ZodNullable<z.ZodString>;
935
+ deepLink: z.ZodString;
936
+ acknowledgedAt: z.ZodNullable<z.ZodString>;
937
+ resolvedAt: z.ZodNullable<z.ZodString>;
938
+ createdAt: z.ZodString;
939
+ }, z.core.$strip>;
940
+ readonly "device.updated": z.ZodObject<{
941
+ id: z.ZodString;
942
+ name: z.ZodString;
943
+ kind: z.ZodEnum<{
944
+ browser: "browser";
945
+ cli: "cli";
946
+ pwa: "pwa";
947
+ terminal: "terminal";
948
+ }>;
949
+ createdAt: z.ZodString;
950
+ lastSeenAt: z.ZodNullable<z.ZodString>;
951
+ revokedAt: z.ZodNullable<z.ZodString>;
952
+ push: z.ZodObject<{
953
+ subscribed: z.ZodBoolean;
954
+ permission: z.ZodEnum<{
955
+ default: "default";
956
+ denied: "denied";
957
+ granted: "granted";
958
+ unknown: "unknown";
959
+ }>;
960
+ }, z.core.$strip>;
961
+ preferredMobile: z.ZodBoolean;
962
+ enrolledVia: z.ZodDefault<z.ZodEnum<{
963
+ admin: "admin";
964
+ approval: "approval";
965
+ enrollment: "enrollment";
966
+ oidc: "oidc";
967
+ passkey: "passkey";
968
+ }>>;
969
+ }, z.core.$strip>;
970
+ readonly "settings.updated": z.ZodObject<{
971
+ dispatchPaused: z.ZodBoolean;
972
+ }, z.core.$strip>;
973
+ };
974
+ export type EventType = keyof typeof EventDataSchemas;
975
+ export declare const EVENT_TYPES: EventType[];
976
+ /** Event types renamed in 0.9 (old -> new); accepted on parse for one release. */
977
+ export declare const LEGACY_EVENT_TYPES: Readonly<Record<string, EventType>>;
978
+ export declare function canonicalEventType(type: string): string;
979
+ export declare const EventTypeSchema: z.ZodPreprocess<z.ZodEnum<{
980
+ "adapters.updated": "adapters.updated";
981
+ "attention.updated": "attention.updated";
982
+ "automation.deleted": "automation.deleted";
983
+ "automation.updated": "automation.updated";
984
+ "checkout.updated": "checkout.updated";
985
+ "device.updated": "device.updated";
986
+ diagnostic: "diagnostic";
987
+ "host.updated": "host.updated";
988
+ "interaction.updated": "interaction.updated";
989
+ "occurrence.created": "occurrence.created";
990
+ "occurrence.updated": "occurrence.updated";
991
+ "panel.updated": "panel.updated";
992
+ "profile.deleted": "profile.deleted";
993
+ "profile.updated": "profile.updated";
994
+ "project.deleted": "project.deleted";
995
+ "project.updated": "project.updated";
996
+ "run.updated": "run.updated";
997
+ "session.updated": "session.updated";
998
+ "settings.updated": "settings.updated";
999
+ "task.deleted": "task.deleted";
1000
+ "task.updated": "task.updated";
1001
+ "transcript.item": "transcript.item";
1002
+ "transcript.reset": "transcript.reset";
1003
+ "view.deleted": "view.deleted";
1004
+ "view.updated": "view.updated";
1005
+ "workspace.deleted": "workspace.deleted";
1006
+ "workspace.updated": "workspace.updated";
1007
+ }>, unknown>;
1008
+ export type EventData<T extends EventType> = z.infer<(typeof EventDataSchemas)[T]>;
1009
+ export declare const EventScope: z.ZodObject<{
1010
+ hostId: z.ZodOptional<z.ZodString>;
1011
+ sessionId: z.ZodOptional<z.ZodString>;
1012
+ taskId: z.ZodOptional<z.ZodString>;
1013
+ projectId: z.ZodOptional<z.ZodString>;
1014
+ }, z.core.$strip>;
1015
+ export type EventScope = z.infer<typeof EventScope>;
1016
+ export declare const EventEnvelope: z.ZodObject<{
1017
+ hostId: z.ZodOptional<z.ZodString>;
1018
+ sessionId: z.ZodOptional<z.ZodString>;
1019
+ taskId: z.ZodOptional<z.ZodString>;
1020
+ projectId: z.ZodOptional<z.ZodString>;
1021
+ seq: z.ZodNumber;
1022
+ id: z.ZodString;
1023
+ type: z.ZodPreprocess<z.ZodEnum<{
1024
+ "adapters.updated": "adapters.updated";
1025
+ "attention.updated": "attention.updated";
1026
+ "automation.deleted": "automation.deleted";
1027
+ "automation.updated": "automation.updated";
1028
+ "checkout.updated": "checkout.updated";
1029
+ "device.updated": "device.updated";
1030
+ diagnostic: "diagnostic";
1031
+ "host.updated": "host.updated";
1032
+ "interaction.updated": "interaction.updated";
1033
+ "occurrence.created": "occurrence.created";
1034
+ "occurrence.updated": "occurrence.updated";
1035
+ "panel.updated": "panel.updated";
1036
+ "profile.deleted": "profile.deleted";
1037
+ "profile.updated": "profile.updated";
1038
+ "project.deleted": "project.deleted";
1039
+ "project.updated": "project.updated";
1040
+ "run.updated": "run.updated";
1041
+ "session.updated": "session.updated";
1042
+ "settings.updated": "settings.updated";
1043
+ "task.deleted": "task.deleted";
1044
+ "task.updated": "task.updated";
1045
+ "transcript.item": "transcript.item";
1046
+ "transcript.reset": "transcript.reset";
1047
+ "view.deleted": "view.deleted";
1048
+ "view.updated": "view.updated";
1049
+ "workspace.deleted": "workspace.deleted";
1050
+ "workspace.updated": "workspace.updated";
1051
+ }>, unknown>;
1052
+ at: z.ZodString;
1053
+ data: z.ZodUnknown;
1054
+ }, z.core.$strip>;
1055
+ export type EventEnvelope = z.infer<typeof EventEnvelope>;
1056
+ /** Typed view of an envelope. */
1057
+ export type TypedEvent<T extends EventType = EventType> = Omit<EventEnvelope, "type" | "data"> & {
1058
+ type: T;
1059
+ data: EventData<T>;
1060
+ };
1061
+ /** Events a host may emit (subset of all types). */
1062
+ export declare const HOST_EVENT_TYPES: readonly ["session.updated", "transcript.item", "interaction.updated", "panel.updated", "adapters.updated", "diagnostic", "workspace.updated", "workspace.deleted"];
1063
+ export type HostEventType = (typeof HOST_EVENT_TYPES)[number];
1064
+ export declare const HostEvent: z.ZodObject<{
1065
+ hostId: z.ZodOptional<z.ZodString>;
1066
+ sessionId: z.ZodOptional<z.ZodString>;
1067
+ taskId: z.ZodOptional<z.ZodString>;
1068
+ projectId: z.ZodOptional<z.ZodString>;
1069
+ eventId: z.ZodString;
1070
+ type: z.ZodPreprocess<z.ZodEnum<{
1071
+ "adapters.updated": "adapters.updated";
1072
+ diagnostic: "diagnostic";
1073
+ "interaction.updated": "interaction.updated";
1074
+ "panel.updated": "panel.updated";
1075
+ "session.updated": "session.updated";
1076
+ "transcript.item": "transcript.item";
1077
+ "workspace.deleted": "workspace.deleted";
1078
+ "workspace.updated": "workspace.updated";
1079
+ }>, unknown>;
1080
+ at: z.ZodString;
1081
+ data: z.ZodUnknown;
1082
+ }, z.core.$strip>;
1083
+ export type HostEvent = z.infer<typeof HostEvent>;
1084
+ /** Ephemeral streaming delta, never persisted or sequenced. */
1085
+ export declare const StreamDelta: z.ZodObject<{
1086
+ sessionId: z.ZodString;
1087
+ itemId: z.ZodString;
1088
+ kind: z.ZodEnum<{
1089
+ text: "text";
1090
+ thinking: "thinking";
1091
+ tool_args: "tool_args";
1092
+ tool_output: "tool_output";
1093
+ }>;
1094
+ delta: z.ZodString;
1095
+ order: z.ZodOptional<z.ZodNumber>;
1096
+ }, z.core.$strip>;
1097
+ export type StreamDelta = z.infer<typeof StreamDelta>;
1098
+ //# sourceMappingURL=events.d.ts.map