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