@adecore/agent-contracts 0.0.1 → 0.17.0-beta.2

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,4577 @@
1
+ import { z } from 'zod';
2
+ export declare const EmptySchema: z.ZodObject<{}, z.core.$strip>;
3
+ export declare const AGENT_REQUEST_SCHEMAS: {
4
+ readonly 'chat.create': {
5
+ readonly payload: z.ZodObject<{
6
+ chatId: z.ZodString;
7
+ provider: z.ZodOptional<z.ZodEnum<{
8
+ apple: "apple";
9
+ claude: "claude";
10
+ codex: "codex";
11
+ copilot: "copilot";
12
+ gemini: "gemini";
13
+ }>>;
14
+ account: z.ZodOptional<z.ZodString>;
15
+ cwd: z.ZodOptional<z.ZodString>;
16
+ resume: z.ZodOptional<z.ZodString>;
17
+ selection: z.ZodOptional<z.ZodObject<{
18
+ model: z.ZodString;
19
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
20
+ }, z.core.$strip>>;
21
+ runtimeMode: z.ZodOptional<z.ZodEnum<{
22
+ auto: "auto";
23
+ "auto-accept-edits": "auto-accept-edits";
24
+ "full-access": "full-access";
25
+ supervised: "supervised";
26
+ }>>;
27
+ }, z.core.$strip>;
28
+ readonly result: z.ZodObject<{
29
+ chatId: z.ZodString;
30
+ provider: z.ZodEnum<{
31
+ apple: "apple";
32
+ claude: "claude";
33
+ codex: "codex";
34
+ copilot: "copilot";
35
+ gemini: "gemini";
36
+ }>;
37
+ account: z.ZodOptional<z.ZodString>;
38
+ cwd: z.ZodString;
39
+ agentSessionId: z.ZodNullable<z.ZodString>;
40
+ model: z.ZodNullable<z.ZodString>;
41
+ selection: z.ZodObject<{
42
+ model: z.ZodString;
43
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
44
+ }, z.core.$strip>;
45
+ runtimeMode: z.ZodEnum<{
46
+ auto: "auto";
47
+ "auto-accept-edits": "auto-accept-edits";
48
+ "full-access": "full-access";
49
+ supervised: "supervised";
50
+ }>;
51
+ effectiveRuntimeMode: z.ZodOptional<z.ZodEnum<{
52
+ auto: "auto";
53
+ "auto-accept-edits": "auto-accept-edits";
54
+ "full-access": "full-access";
55
+ supervised: "supervised";
56
+ }>>;
57
+ permissionMode: z.ZodOptional<z.ZodString>;
58
+ status: z.ZodEnum<{
59
+ error: "error";
60
+ exited: "exited";
61
+ idle: "idle";
62
+ "needs-you": "needs-you";
63
+ running: "running";
64
+ }>;
65
+ running: z.ZodBoolean;
66
+ activeTurnId: z.ZodNullable<z.ZodString>;
67
+ slashCommands: z.ZodArray<z.ZodString>;
68
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
69
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
70
+ id: z.ZodString;
71
+ turnId: z.ZodOptional<z.ZodString>;
72
+ text: z.ZodString;
73
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
75
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
76
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
+ id: z.ZodString;
78
+ name: z.ZodString;
79
+ mime: z.ZodString;
80
+ size: z.ZodNumber;
81
+ path: z.ZodString;
82
+ }, z.core.$strip>>>;
83
+ createdAt: z.ZodNumber;
84
+ }, z.core.$strip>>>;
85
+ queuePaused: z.ZodOptional<z.ZodBoolean>;
86
+ background: z.ZodOptional<z.ZodArray<z.ZodObject<{
87
+ id: z.ZodString;
88
+ kind: z.ZodEnum<{
89
+ monitor: "monitor";
90
+ shell: "shell";
91
+ }>;
92
+ description: z.ZodString;
93
+ command: z.ZodNullable<z.ZodString>;
94
+ startedAt: z.ZodNumber;
95
+ }, z.core.$strip>>>;
96
+ delegating: z.ZodOptional<z.ZodBoolean>;
97
+ usage: z.ZodObject<{
98
+ contextTokens: z.ZodNumber;
99
+ contextWindow: z.ZodNullable<z.ZodNumber>;
100
+ costUsd: z.ZodNumber;
101
+ turns: z.ZodNumber;
102
+ breakdown: z.ZodOptional<z.ZodObject<{
103
+ toolOutput: z.ZodNumber;
104
+ filesRead: z.ZodNumber;
105
+ conversation: z.ZodNumber;
106
+ system: z.ZodNumber;
107
+ }, z.core.$strip>>;
108
+ }, z.core.$strip>;
109
+ suggestedTitle: z.ZodOptional<z.ZodString>;
110
+ hidden: z.ZodOptional<z.ZodBoolean>;
111
+ forkOf: z.ZodOptional<z.ZodObject<{
112
+ chatId: z.ZodString;
113
+ turnId: z.ZodString;
114
+ at: z.ZodNumber;
115
+ }, z.core.$strip>>;
116
+ resumeAtReset: z.ZodOptional<z.ZodBoolean>;
117
+ limit: z.ZodOptional<z.ZodObject<{
118
+ kind: z.ZodEnum<{
119
+ overload: "overload";
120
+ usage: "usage";
121
+ }>;
122
+ resetsAt: z.ZodOptional<z.ZodNumber>;
123
+ }, z.core.$strip>>;
124
+ resumeAt: z.ZodOptional<z.ZodNumber>;
125
+ requests: z.ZodOptional<z.ZodArray<z.ZodObject<{
126
+ requestId: z.ZodString;
127
+ itemId: z.ZodString;
128
+ kind: z.ZodEnum<{
129
+ approval: "approval";
130
+ question: "question";
131
+ }>;
132
+ createdAt: z.ZodNumber;
133
+ approval: z.ZodOptional<z.ZodObject<{
134
+ toolName: z.ZodString;
135
+ subject: z.ZodString;
136
+ description: z.ZodNullable<z.ZodString>;
137
+ path: z.ZodOptional<z.ZodString>;
138
+ files: z.ZodOptional<z.ZodNumber>;
139
+ diff: z.ZodOptional<z.ZodString>;
140
+ command: z.ZodOptional<z.ZodString>;
141
+ truncated: z.ZodOptional<z.ZodBoolean>;
142
+ canAllowAlways: z.ZodBoolean;
143
+ allowAlways: z.ZodOptional<z.ZodObject<{
144
+ label: z.ZodString;
145
+ description: z.ZodString;
146
+ }, z.core.$strip>>;
147
+ }, z.core.$strip>>;
148
+ question: z.ZodOptional<z.ZodObject<{
149
+ questions: z.ZodArray<z.ZodObject<{
150
+ id: z.ZodString;
151
+ header: z.ZodString;
152
+ question: z.ZodString;
153
+ choices: z.ZodArray<z.ZodObject<{
154
+ label: z.ZodString;
155
+ description: z.ZodString;
156
+ }, z.core.$strip>>;
157
+ multiSelect: z.ZodBoolean;
158
+ }, z.core.$strip>>;
159
+ async: z.ZodOptional<z.ZodBoolean>;
160
+ }, z.core.$strip>>;
161
+ }, z.core.$strip>>>;
162
+ createdAt: z.ZodNumber;
163
+ }, z.core.$strip>;
164
+ };
165
+ readonly 'chat.history': {
166
+ readonly payload: z.ZodObject<{
167
+ chatId: z.ZodString;
168
+ cursor: z.ZodString;
169
+ limit: z.ZodOptional<z.ZodNumber>;
170
+ }, z.core.$strip>;
171
+ readonly result: z.ZodObject<{
172
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
173
+ id: z.ZodString;
174
+ createdAt: z.ZodNumber;
175
+ turnId: z.ZodNullable<z.ZodString>;
176
+ kind: z.ZodLiteral<"user">;
177
+ text: z.ZodString;
178
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
179
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
180
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
181
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
182
+ id: z.ZodString;
183
+ name: z.ZodString;
184
+ mime: z.ZodString;
185
+ size: z.ZodNumber;
186
+ path: z.ZodString;
187
+ }, z.core.$strip>>>;
188
+ }, z.core.$strip>, z.ZodObject<{
189
+ id: z.ZodString;
190
+ createdAt: z.ZodNumber;
191
+ turnId: z.ZodNullable<z.ZodString>;
192
+ kind: z.ZodLiteral<"assistant">;
193
+ text: z.ZodString;
194
+ streaming: z.ZodBoolean;
195
+ parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
+ }, z.core.$strip>, z.ZodObject<{
197
+ id: z.ZodString;
198
+ createdAt: z.ZodNumber;
199
+ turnId: z.ZodNullable<z.ZodString>;
200
+ kind: z.ZodLiteral<"thinking">;
201
+ text: z.ZodString;
202
+ streaming: z.ZodBoolean;
203
+ endedAt: z.ZodNullable<z.ZodNumber>;
204
+ }, z.core.$strip>, z.ZodObject<{
205
+ id: z.ZodString;
206
+ createdAt: z.ZodNumber;
207
+ turnId: z.ZodNullable<z.ZodString>;
208
+ kind: z.ZodLiteral<"tool">;
209
+ toolUseId: z.ZodString;
210
+ name: z.ZodString;
211
+ input: z.ZodUnknown;
212
+ output: z.ZodNullable<z.ZodString>;
213
+ state: z.ZodEnum<{
214
+ done: "done";
215
+ error: "error";
216
+ running: "running";
217
+ }>;
218
+ parentToolUseId: z.ZodNullable<z.ZodString>;
219
+ progress: z.ZodOptional<z.ZodObject<{
220
+ startedAt: z.ZodNullable<z.ZodNumber>;
221
+ description: z.ZodNullable<z.ZodString>;
222
+ output: z.ZodNullable<z.ZodString>;
223
+ }, z.core.$strip>>;
224
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
225
+ path: z.ZodString;
226
+ kind: z.ZodEnum<{
227
+ add: "add";
228
+ delete: "delete";
229
+ update: "update";
230
+ }>;
231
+ diff: z.ZodString;
232
+ }, z.core.$strip>>>;
233
+ workflow: z.ZodOptional<z.ZodObject<{
234
+ name: z.ZodNullable<z.ZodString>;
235
+ taskId: z.ZodOptional<z.ZodString>;
236
+ phases: z.ZodArray<z.ZodObject<{
237
+ index: z.ZodNumber;
238
+ title: z.ZodString;
239
+ }, z.core.$strip>>;
240
+ agents: z.ZodArray<z.ZodObject<{
241
+ index: z.ZodNumber;
242
+ label: z.ZodString;
243
+ phaseIndex: z.ZodNullable<z.ZodNumber>;
244
+ agentId: z.ZodNullable<z.ZodString>;
245
+ status: z.ZodEnum<{
246
+ done: "done";
247
+ failed: "failed";
248
+ running: "running";
249
+ }>;
250
+ startedAt: z.ZodNullable<z.ZodNumber>;
251
+ durationMs: z.ZodNullable<z.ZodNumber>;
252
+ lastTool: z.ZodNullable<z.ZodString>;
253
+ }, z.core.$strip>>;
254
+ lastProgressAt: z.ZodOptional<z.ZodNumber>;
255
+ stalledAt: z.ZodOptional<z.ZodNumber>;
256
+ }, z.core.$strip>>;
257
+ }, z.core.$strip>, z.ZodObject<{
258
+ id: z.ZodString;
259
+ createdAt: z.ZodNumber;
260
+ turnId: z.ZodNullable<z.ZodString>;
261
+ kind: z.ZodLiteral<"subagent">;
262
+ toolUseId: z.ZodString;
263
+ description: z.ZodString;
264
+ subagentType: z.ZodNullable<z.ZodString>;
265
+ model: z.ZodOptional<z.ZodString>;
266
+ prompt: z.ZodNullable<z.ZodString>;
267
+ background: z.ZodBoolean;
268
+ status: z.ZodEnum<{
269
+ done: "done";
270
+ failed: "failed";
271
+ running: "running";
272
+ }>;
273
+ startedAt: z.ZodNumber;
274
+ finishedAt: z.ZodNullable<z.ZodNumber>;
275
+ summary: z.ZodNullable<z.ZodString>;
276
+ result: z.ZodNullable<z.ZodString>;
277
+ usage: z.ZodNullable<z.ZodObject<{
278
+ totalTokens: z.ZodNumber;
279
+ toolUses: z.ZodNumber;
280
+ durationMs: z.ZodNumber;
281
+ }, z.core.$strip>>;
282
+ lastTool: z.ZodNullable<z.ZodString>;
283
+ outputFile: z.ZodOptional<z.ZodString>;
284
+ itemsTruncated: z.ZodBoolean;
285
+ native: z.ZodOptional<z.ZodObject<{
286
+ agentId: z.ZodOptional<z.ZodString>;
287
+ threadId: z.ZodOptional<z.ZodString>;
288
+ }, z.core.$strip>>;
289
+ origin: z.ZodOptional<z.ZodEnum<{
290
+ native: "native";
291
+ ruimte: "ruimte";
292
+ }>>;
293
+ childId: z.ZodOptional<z.ZodString>;
294
+ parentToolUseId: z.ZodOptional<z.ZodString>;
295
+ }, z.core.$strip>, z.ZodObject<{
296
+ id: z.ZodString;
297
+ createdAt: z.ZodNumber;
298
+ turnId: z.ZodNullable<z.ZodString>;
299
+ kind: z.ZodLiteral<"approval">;
300
+ requestId: z.ZodString;
301
+ toolUseId: z.ZodNullable<z.ZodString>;
302
+ toolName: z.ZodString;
303
+ input: z.ZodUnknown;
304
+ description: z.ZodNullable<z.ZodString>;
305
+ canAllowAlways: z.ZodBoolean;
306
+ allowAlways: z.ZodOptional<z.ZodObject<{
307
+ label: z.ZodString;
308
+ description: z.ZodString;
309
+ }, z.core.$strip>>;
310
+ decision: z.ZodEnum<{
311
+ allow: "allow";
312
+ "allow-always": "allow-always";
313
+ cancelled: "cancelled";
314
+ deny: "deny";
315
+ pending: "pending";
316
+ }>;
317
+ }, z.core.$strip>, z.ZodObject<{
318
+ id: z.ZodString;
319
+ createdAt: z.ZodNumber;
320
+ turnId: z.ZodNullable<z.ZodString>;
321
+ kind: z.ZodLiteral<"question">;
322
+ requestId: z.ZodString;
323
+ questions: z.ZodArray<z.ZodObject<{
324
+ id: z.ZodString;
325
+ header: z.ZodString;
326
+ question: z.ZodString;
327
+ choices: z.ZodArray<z.ZodObject<{
328
+ label: z.ZodString;
329
+ description: z.ZodString;
330
+ }, z.core.$strip>>;
331
+ multiSelect: z.ZodBoolean;
332
+ }, z.core.$strip>>;
333
+ async: z.ZodOptional<z.ZodBoolean>;
334
+ answers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
335
+ state: z.ZodEnum<{
336
+ answered: "answered";
337
+ cancelled: "cancelled";
338
+ dismissed: "dismissed";
339
+ pending: "pending";
340
+ }>;
341
+ }, z.core.$strip>, z.ZodObject<{
342
+ id: z.ZodString;
343
+ createdAt: z.ZodNumber;
344
+ turnId: z.ZodNullable<z.ZodString>;
345
+ kind: z.ZodLiteral<"turn">;
346
+ state: z.ZodEnum<{
347
+ aborted: "aborted";
348
+ done: "done";
349
+ error: "error";
350
+ running: "running";
351
+ }>;
352
+ origin: z.ZodOptional<z.ZodEnum<{
353
+ agent: "agent";
354
+ user: "user";
355
+ }>>;
356
+ label: z.ZodOptional<z.ZodString>;
357
+ taskToolUseId: z.ZodOptional<z.ZodString>;
358
+ endedAt: z.ZodNullable<z.ZodNumber>;
359
+ costUsd: z.ZodNumber;
360
+ checkpoint: z.ZodOptional<z.ZodString>;
361
+ checkpointDiff: z.ZodOptional<z.ZodObject<{
362
+ files: z.ZodArray<z.ZodObject<{
363
+ path: z.ZodString;
364
+ kind: z.ZodEnum<{
365
+ add: "add";
366
+ delete: "delete";
367
+ update: "update";
368
+ }>;
369
+ added: z.ZodNumber;
370
+ deleted: z.ZodNumber;
371
+ diff: z.ZodString;
372
+ omitted: z.ZodOptional<z.ZodEnum<{
373
+ binary: "binary";
374
+ "too-large": "too-large";
375
+ }>>;
376
+ }, z.core.$strip>>;
377
+ truncated: z.ZodBoolean;
378
+ }, z.core.$strip>>;
379
+ attempt: z.ZodOptional<z.ZodNumber>;
380
+ resumePending: z.ZodOptional<z.ZodBoolean>;
381
+ deliveryPending: z.ZodOptional<z.ZodBoolean>;
382
+ taskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
383
+ messageFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
384
+ native: z.ZodOptional<z.ZodObject<{
385
+ turnId: z.ZodOptional<z.ZodString>;
386
+ lastUuid: z.ZodOptional<z.ZodString>;
387
+ }, z.core.$strip>>;
388
+ checkpointAfter: z.ZodOptional<z.ZodString>;
389
+ summaryFor: z.ZodOptional<z.ZodString>;
390
+ limit: z.ZodOptional<z.ZodObject<{
391
+ kind: z.ZodEnum<{
392
+ overload: "overload";
393
+ usage: "usage";
394
+ }>;
395
+ resetsAt: z.ZodOptional<z.ZodNumber>;
396
+ }, z.core.$strip>>;
397
+ }, z.core.$strip>, z.ZodObject<{
398
+ id: z.ZodString;
399
+ createdAt: z.ZodNumber;
400
+ turnId: z.ZodNullable<z.ZodString>;
401
+ kind: z.ZodLiteral<"note">;
402
+ level: z.ZodEnum<{
403
+ error: "error";
404
+ info: "info";
405
+ warning: "warning";
406
+ }>;
407
+ text: z.ZodString;
408
+ from: z.ZodOptional<z.ZodString>;
409
+ }, z.core.$strip>, z.ZodObject<{
410
+ id: z.ZodString;
411
+ createdAt: z.ZodNumber;
412
+ turnId: z.ZodNullable<z.ZodString>;
413
+ kind: z.ZodLiteral<"compaction">;
414
+ preTokens: z.ZodNullable<z.ZodNumber>;
415
+ }, z.core.$strip>], "kind">>;
416
+ history: z.ZodObject<{
417
+ start: z.ZodNumber;
418
+ cursor: z.ZodNullable<z.ZodString>;
419
+ }, z.core.$strip>;
420
+ }, z.core.$strip>;
421
+ };
422
+ readonly 'chat.attach': {
423
+ readonly payload: z.ZodObject<{
424
+ chatId: z.ZodString;
425
+ historyLimit: z.ZodOptional<z.ZodNumber>;
426
+ since: z.ZodOptional<z.ZodNumber>;
427
+ }, z.core.$strip>;
428
+ readonly result: z.ZodObject<{
429
+ info: z.ZodObject<{
430
+ chatId: z.ZodString;
431
+ provider: z.ZodEnum<{
432
+ apple: "apple";
433
+ claude: "claude";
434
+ codex: "codex";
435
+ copilot: "copilot";
436
+ gemini: "gemini";
437
+ }>;
438
+ account: z.ZodOptional<z.ZodString>;
439
+ cwd: z.ZodString;
440
+ agentSessionId: z.ZodNullable<z.ZodString>;
441
+ model: z.ZodNullable<z.ZodString>;
442
+ selection: z.ZodObject<{
443
+ model: z.ZodString;
444
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
445
+ }, z.core.$strip>;
446
+ runtimeMode: z.ZodEnum<{
447
+ auto: "auto";
448
+ "auto-accept-edits": "auto-accept-edits";
449
+ "full-access": "full-access";
450
+ supervised: "supervised";
451
+ }>;
452
+ effectiveRuntimeMode: z.ZodOptional<z.ZodEnum<{
453
+ auto: "auto";
454
+ "auto-accept-edits": "auto-accept-edits";
455
+ "full-access": "full-access";
456
+ supervised: "supervised";
457
+ }>>;
458
+ permissionMode: z.ZodOptional<z.ZodString>;
459
+ status: z.ZodEnum<{
460
+ error: "error";
461
+ exited: "exited";
462
+ idle: "idle";
463
+ "needs-you": "needs-you";
464
+ running: "running";
465
+ }>;
466
+ running: z.ZodBoolean;
467
+ activeTurnId: z.ZodNullable<z.ZodString>;
468
+ slashCommands: z.ZodArray<z.ZodString>;
469
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
470
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
471
+ id: z.ZodString;
472
+ turnId: z.ZodOptional<z.ZodString>;
473
+ text: z.ZodString;
474
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
475
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
476
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
477
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
478
+ id: z.ZodString;
479
+ name: z.ZodString;
480
+ mime: z.ZodString;
481
+ size: z.ZodNumber;
482
+ path: z.ZodString;
483
+ }, z.core.$strip>>>;
484
+ createdAt: z.ZodNumber;
485
+ }, z.core.$strip>>>;
486
+ queuePaused: z.ZodOptional<z.ZodBoolean>;
487
+ background: z.ZodOptional<z.ZodArray<z.ZodObject<{
488
+ id: z.ZodString;
489
+ kind: z.ZodEnum<{
490
+ monitor: "monitor";
491
+ shell: "shell";
492
+ }>;
493
+ description: z.ZodString;
494
+ command: z.ZodNullable<z.ZodString>;
495
+ startedAt: z.ZodNumber;
496
+ }, z.core.$strip>>>;
497
+ delegating: z.ZodOptional<z.ZodBoolean>;
498
+ usage: z.ZodObject<{
499
+ contextTokens: z.ZodNumber;
500
+ contextWindow: z.ZodNullable<z.ZodNumber>;
501
+ costUsd: z.ZodNumber;
502
+ turns: z.ZodNumber;
503
+ breakdown: z.ZodOptional<z.ZodObject<{
504
+ toolOutput: z.ZodNumber;
505
+ filesRead: z.ZodNumber;
506
+ conversation: z.ZodNumber;
507
+ system: z.ZodNumber;
508
+ }, z.core.$strip>>;
509
+ }, z.core.$strip>;
510
+ suggestedTitle: z.ZodOptional<z.ZodString>;
511
+ hidden: z.ZodOptional<z.ZodBoolean>;
512
+ forkOf: z.ZodOptional<z.ZodObject<{
513
+ chatId: z.ZodString;
514
+ turnId: z.ZodString;
515
+ at: z.ZodNumber;
516
+ }, z.core.$strip>>;
517
+ resumeAtReset: z.ZodOptional<z.ZodBoolean>;
518
+ limit: z.ZodOptional<z.ZodObject<{
519
+ kind: z.ZodEnum<{
520
+ overload: "overload";
521
+ usage: "usage";
522
+ }>;
523
+ resetsAt: z.ZodOptional<z.ZodNumber>;
524
+ }, z.core.$strip>>;
525
+ resumeAt: z.ZodOptional<z.ZodNumber>;
526
+ requests: z.ZodOptional<z.ZodArray<z.ZodObject<{
527
+ requestId: z.ZodString;
528
+ itemId: z.ZodString;
529
+ kind: z.ZodEnum<{
530
+ approval: "approval";
531
+ question: "question";
532
+ }>;
533
+ createdAt: z.ZodNumber;
534
+ approval: z.ZodOptional<z.ZodObject<{
535
+ toolName: z.ZodString;
536
+ subject: z.ZodString;
537
+ description: z.ZodNullable<z.ZodString>;
538
+ path: z.ZodOptional<z.ZodString>;
539
+ files: z.ZodOptional<z.ZodNumber>;
540
+ diff: z.ZodOptional<z.ZodString>;
541
+ command: z.ZodOptional<z.ZodString>;
542
+ truncated: z.ZodOptional<z.ZodBoolean>;
543
+ canAllowAlways: z.ZodBoolean;
544
+ allowAlways: z.ZodOptional<z.ZodObject<{
545
+ label: z.ZodString;
546
+ description: z.ZodString;
547
+ }, z.core.$strip>>;
548
+ }, z.core.$strip>>;
549
+ question: z.ZodOptional<z.ZodObject<{
550
+ questions: z.ZodArray<z.ZodObject<{
551
+ id: z.ZodString;
552
+ header: z.ZodString;
553
+ question: z.ZodString;
554
+ choices: z.ZodArray<z.ZodObject<{
555
+ label: z.ZodString;
556
+ description: z.ZodString;
557
+ }, z.core.$strip>>;
558
+ multiSelect: z.ZodBoolean;
559
+ }, z.core.$strip>>;
560
+ async: z.ZodOptional<z.ZodBoolean>;
561
+ }, z.core.$strip>>;
562
+ }, z.core.$strip>>>;
563
+ createdAt: z.ZodNumber;
564
+ }, z.core.$strip>;
565
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
566
+ id: z.ZodString;
567
+ createdAt: z.ZodNumber;
568
+ turnId: z.ZodNullable<z.ZodString>;
569
+ kind: z.ZodLiteral<"user">;
570
+ text: z.ZodString;
571
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
572
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
573
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
574
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
575
+ id: z.ZodString;
576
+ name: z.ZodString;
577
+ mime: z.ZodString;
578
+ size: z.ZodNumber;
579
+ path: z.ZodString;
580
+ }, z.core.$strip>>>;
581
+ }, z.core.$strip>, z.ZodObject<{
582
+ id: z.ZodString;
583
+ createdAt: z.ZodNumber;
584
+ turnId: z.ZodNullable<z.ZodString>;
585
+ kind: z.ZodLiteral<"assistant">;
586
+ text: z.ZodString;
587
+ streaming: z.ZodBoolean;
588
+ parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
589
+ }, z.core.$strip>, z.ZodObject<{
590
+ id: z.ZodString;
591
+ createdAt: z.ZodNumber;
592
+ turnId: z.ZodNullable<z.ZodString>;
593
+ kind: z.ZodLiteral<"thinking">;
594
+ text: z.ZodString;
595
+ streaming: z.ZodBoolean;
596
+ endedAt: z.ZodNullable<z.ZodNumber>;
597
+ }, z.core.$strip>, z.ZodObject<{
598
+ id: z.ZodString;
599
+ createdAt: z.ZodNumber;
600
+ turnId: z.ZodNullable<z.ZodString>;
601
+ kind: z.ZodLiteral<"tool">;
602
+ toolUseId: z.ZodString;
603
+ name: z.ZodString;
604
+ input: z.ZodUnknown;
605
+ output: z.ZodNullable<z.ZodString>;
606
+ state: z.ZodEnum<{
607
+ done: "done";
608
+ error: "error";
609
+ running: "running";
610
+ }>;
611
+ parentToolUseId: z.ZodNullable<z.ZodString>;
612
+ progress: z.ZodOptional<z.ZodObject<{
613
+ startedAt: z.ZodNullable<z.ZodNumber>;
614
+ description: z.ZodNullable<z.ZodString>;
615
+ output: z.ZodNullable<z.ZodString>;
616
+ }, z.core.$strip>>;
617
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
618
+ path: z.ZodString;
619
+ kind: z.ZodEnum<{
620
+ add: "add";
621
+ delete: "delete";
622
+ update: "update";
623
+ }>;
624
+ diff: z.ZodString;
625
+ }, z.core.$strip>>>;
626
+ workflow: z.ZodOptional<z.ZodObject<{
627
+ name: z.ZodNullable<z.ZodString>;
628
+ taskId: z.ZodOptional<z.ZodString>;
629
+ phases: z.ZodArray<z.ZodObject<{
630
+ index: z.ZodNumber;
631
+ title: z.ZodString;
632
+ }, z.core.$strip>>;
633
+ agents: z.ZodArray<z.ZodObject<{
634
+ index: z.ZodNumber;
635
+ label: z.ZodString;
636
+ phaseIndex: z.ZodNullable<z.ZodNumber>;
637
+ agentId: z.ZodNullable<z.ZodString>;
638
+ status: z.ZodEnum<{
639
+ done: "done";
640
+ failed: "failed";
641
+ running: "running";
642
+ }>;
643
+ startedAt: z.ZodNullable<z.ZodNumber>;
644
+ durationMs: z.ZodNullable<z.ZodNumber>;
645
+ lastTool: z.ZodNullable<z.ZodString>;
646
+ }, z.core.$strip>>;
647
+ lastProgressAt: z.ZodOptional<z.ZodNumber>;
648
+ stalledAt: z.ZodOptional<z.ZodNumber>;
649
+ }, z.core.$strip>>;
650
+ }, z.core.$strip>, z.ZodObject<{
651
+ id: z.ZodString;
652
+ createdAt: z.ZodNumber;
653
+ turnId: z.ZodNullable<z.ZodString>;
654
+ kind: z.ZodLiteral<"subagent">;
655
+ toolUseId: z.ZodString;
656
+ description: z.ZodString;
657
+ subagentType: z.ZodNullable<z.ZodString>;
658
+ model: z.ZodOptional<z.ZodString>;
659
+ prompt: z.ZodNullable<z.ZodString>;
660
+ background: z.ZodBoolean;
661
+ status: z.ZodEnum<{
662
+ done: "done";
663
+ failed: "failed";
664
+ running: "running";
665
+ }>;
666
+ startedAt: z.ZodNumber;
667
+ finishedAt: z.ZodNullable<z.ZodNumber>;
668
+ summary: z.ZodNullable<z.ZodString>;
669
+ result: z.ZodNullable<z.ZodString>;
670
+ usage: z.ZodNullable<z.ZodObject<{
671
+ totalTokens: z.ZodNumber;
672
+ toolUses: z.ZodNumber;
673
+ durationMs: z.ZodNumber;
674
+ }, z.core.$strip>>;
675
+ lastTool: z.ZodNullable<z.ZodString>;
676
+ outputFile: z.ZodOptional<z.ZodString>;
677
+ itemsTruncated: z.ZodBoolean;
678
+ native: z.ZodOptional<z.ZodObject<{
679
+ agentId: z.ZodOptional<z.ZodString>;
680
+ threadId: z.ZodOptional<z.ZodString>;
681
+ }, z.core.$strip>>;
682
+ origin: z.ZodOptional<z.ZodEnum<{
683
+ native: "native";
684
+ ruimte: "ruimte";
685
+ }>>;
686
+ childId: z.ZodOptional<z.ZodString>;
687
+ parentToolUseId: z.ZodOptional<z.ZodString>;
688
+ }, z.core.$strip>, z.ZodObject<{
689
+ id: z.ZodString;
690
+ createdAt: z.ZodNumber;
691
+ turnId: z.ZodNullable<z.ZodString>;
692
+ kind: z.ZodLiteral<"approval">;
693
+ requestId: z.ZodString;
694
+ toolUseId: z.ZodNullable<z.ZodString>;
695
+ toolName: z.ZodString;
696
+ input: z.ZodUnknown;
697
+ description: z.ZodNullable<z.ZodString>;
698
+ canAllowAlways: z.ZodBoolean;
699
+ allowAlways: z.ZodOptional<z.ZodObject<{
700
+ label: z.ZodString;
701
+ description: z.ZodString;
702
+ }, z.core.$strip>>;
703
+ decision: z.ZodEnum<{
704
+ allow: "allow";
705
+ "allow-always": "allow-always";
706
+ cancelled: "cancelled";
707
+ deny: "deny";
708
+ pending: "pending";
709
+ }>;
710
+ }, z.core.$strip>, z.ZodObject<{
711
+ id: z.ZodString;
712
+ createdAt: z.ZodNumber;
713
+ turnId: z.ZodNullable<z.ZodString>;
714
+ kind: z.ZodLiteral<"question">;
715
+ requestId: z.ZodString;
716
+ questions: z.ZodArray<z.ZodObject<{
717
+ id: z.ZodString;
718
+ header: z.ZodString;
719
+ question: z.ZodString;
720
+ choices: z.ZodArray<z.ZodObject<{
721
+ label: z.ZodString;
722
+ description: z.ZodString;
723
+ }, z.core.$strip>>;
724
+ multiSelect: z.ZodBoolean;
725
+ }, z.core.$strip>>;
726
+ async: z.ZodOptional<z.ZodBoolean>;
727
+ answers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
728
+ state: z.ZodEnum<{
729
+ answered: "answered";
730
+ cancelled: "cancelled";
731
+ dismissed: "dismissed";
732
+ pending: "pending";
733
+ }>;
734
+ }, z.core.$strip>, z.ZodObject<{
735
+ id: z.ZodString;
736
+ createdAt: z.ZodNumber;
737
+ turnId: z.ZodNullable<z.ZodString>;
738
+ kind: z.ZodLiteral<"turn">;
739
+ state: z.ZodEnum<{
740
+ aborted: "aborted";
741
+ done: "done";
742
+ error: "error";
743
+ running: "running";
744
+ }>;
745
+ origin: z.ZodOptional<z.ZodEnum<{
746
+ agent: "agent";
747
+ user: "user";
748
+ }>>;
749
+ label: z.ZodOptional<z.ZodString>;
750
+ taskToolUseId: z.ZodOptional<z.ZodString>;
751
+ endedAt: z.ZodNullable<z.ZodNumber>;
752
+ costUsd: z.ZodNumber;
753
+ checkpoint: z.ZodOptional<z.ZodString>;
754
+ checkpointDiff: z.ZodOptional<z.ZodObject<{
755
+ files: z.ZodArray<z.ZodObject<{
756
+ path: z.ZodString;
757
+ kind: z.ZodEnum<{
758
+ add: "add";
759
+ delete: "delete";
760
+ update: "update";
761
+ }>;
762
+ added: z.ZodNumber;
763
+ deleted: z.ZodNumber;
764
+ diff: z.ZodString;
765
+ omitted: z.ZodOptional<z.ZodEnum<{
766
+ binary: "binary";
767
+ "too-large": "too-large";
768
+ }>>;
769
+ }, z.core.$strip>>;
770
+ truncated: z.ZodBoolean;
771
+ }, z.core.$strip>>;
772
+ attempt: z.ZodOptional<z.ZodNumber>;
773
+ resumePending: z.ZodOptional<z.ZodBoolean>;
774
+ deliveryPending: z.ZodOptional<z.ZodBoolean>;
775
+ taskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
776
+ messageFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
777
+ native: z.ZodOptional<z.ZodObject<{
778
+ turnId: z.ZodOptional<z.ZodString>;
779
+ lastUuid: z.ZodOptional<z.ZodString>;
780
+ }, z.core.$strip>>;
781
+ checkpointAfter: z.ZodOptional<z.ZodString>;
782
+ summaryFor: z.ZodOptional<z.ZodString>;
783
+ limit: z.ZodOptional<z.ZodObject<{
784
+ kind: z.ZodEnum<{
785
+ overload: "overload";
786
+ usage: "usage";
787
+ }>;
788
+ resetsAt: z.ZodOptional<z.ZodNumber>;
789
+ }, z.core.$strip>>;
790
+ }, z.core.$strip>, z.ZodObject<{
791
+ id: z.ZodString;
792
+ createdAt: z.ZodNumber;
793
+ turnId: z.ZodNullable<z.ZodString>;
794
+ kind: z.ZodLiteral<"note">;
795
+ level: z.ZodEnum<{
796
+ error: "error";
797
+ info: "info";
798
+ warning: "warning";
799
+ }>;
800
+ text: z.ZodString;
801
+ from: z.ZodOptional<z.ZodString>;
802
+ }, z.core.$strip>, z.ZodObject<{
803
+ id: z.ZodString;
804
+ createdAt: z.ZodNumber;
805
+ turnId: z.ZodNullable<z.ZodString>;
806
+ kind: z.ZodLiteral<"compaction">;
807
+ preTokens: z.ZodNullable<z.ZodNumber>;
808
+ }, z.core.$strip>], "kind">>;
809
+ history: z.ZodOptional<z.ZodObject<{
810
+ start: z.ZodNumber;
811
+ cursor: z.ZodNullable<z.ZodString>;
812
+ }, z.core.$strip>>;
813
+ pending: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
814
+ id: z.ZodString;
815
+ createdAt: z.ZodNumber;
816
+ turnId: z.ZodNullable<z.ZodString>;
817
+ kind: z.ZodLiteral<"user">;
818
+ text: z.ZodString;
819
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
820
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
821
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
822
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
823
+ id: z.ZodString;
824
+ name: z.ZodString;
825
+ mime: z.ZodString;
826
+ size: z.ZodNumber;
827
+ path: z.ZodString;
828
+ }, z.core.$strip>>>;
829
+ }, z.core.$strip>, z.ZodObject<{
830
+ id: z.ZodString;
831
+ createdAt: z.ZodNumber;
832
+ turnId: z.ZodNullable<z.ZodString>;
833
+ kind: z.ZodLiteral<"assistant">;
834
+ text: z.ZodString;
835
+ streaming: z.ZodBoolean;
836
+ parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
837
+ }, z.core.$strip>, z.ZodObject<{
838
+ id: z.ZodString;
839
+ createdAt: z.ZodNumber;
840
+ turnId: z.ZodNullable<z.ZodString>;
841
+ kind: z.ZodLiteral<"thinking">;
842
+ text: z.ZodString;
843
+ streaming: z.ZodBoolean;
844
+ endedAt: z.ZodNullable<z.ZodNumber>;
845
+ }, z.core.$strip>, z.ZodObject<{
846
+ id: z.ZodString;
847
+ createdAt: z.ZodNumber;
848
+ turnId: z.ZodNullable<z.ZodString>;
849
+ kind: z.ZodLiteral<"tool">;
850
+ toolUseId: z.ZodString;
851
+ name: z.ZodString;
852
+ input: z.ZodUnknown;
853
+ output: z.ZodNullable<z.ZodString>;
854
+ state: z.ZodEnum<{
855
+ done: "done";
856
+ error: "error";
857
+ running: "running";
858
+ }>;
859
+ parentToolUseId: z.ZodNullable<z.ZodString>;
860
+ progress: z.ZodOptional<z.ZodObject<{
861
+ startedAt: z.ZodNullable<z.ZodNumber>;
862
+ description: z.ZodNullable<z.ZodString>;
863
+ output: z.ZodNullable<z.ZodString>;
864
+ }, z.core.$strip>>;
865
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
866
+ path: z.ZodString;
867
+ kind: z.ZodEnum<{
868
+ add: "add";
869
+ delete: "delete";
870
+ update: "update";
871
+ }>;
872
+ diff: z.ZodString;
873
+ }, z.core.$strip>>>;
874
+ workflow: z.ZodOptional<z.ZodObject<{
875
+ name: z.ZodNullable<z.ZodString>;
876
+ taskId: z.ZodOptional<z.ZodString>;
877
+ phases: z.ZodArray<z.ZodObject<{
878
+ index: z.ZodNumber;
879
+ title: z.ZodString;
880
+ }, z.core.$strip>>;
881
+ agents: z.ZodArray<z.ZodObject<{
882
+ index: z.ZodNumber;
883
+ label: z.ZodString;
884
+ phaseIndex: z.ZodNullable<z.ZodNumber>;
885
+ agentId: z.ZodNullable<z.ZodString>;
886
+ status: z.ZodEnum<{
887
+ done: "done";
888
+ failed: "failed";
889
+ running: "running";
890
+ }>;
891
+ startedAt: z.ZodNullable<z.ZodNumber>;
892
+ durationMs: z.ZodNullable<z.ZodNumber>;
893
+ lastTool: z.ZodNullable<z.ZodString>;
894
+ }, z.core.$strip>>;
895
+ lastProgressAt: z.ZodOptional<z.ZodNumber>;
896
+ stalledAt: z.ZodOptional<z.ZodNumber>;
897
+ }, z.core.$strip>>;
898
+ }, z.core.$strip>, z.ZodObject<{
899
+ id: z.ZodString;
900
+ createdAt: z.ZodNumber;
901
+ turnId: z.ZodNullable<z.ZodString>;
902
+ kind: z.ZodLiteral<"subagent">;
903
+ toolUseId: z.ZodString;
904
+ description: z.ZodString;
905
+ subagentType: z.ZodNullable<z.ZodString>;
906
+ model: z.ZodOptional<z.ZodString>;
907
+ prompt: z.ZodNullable<z.ZodString>;
908
+ background: z.ZodBoolean;
909
+ status: z.ZodEnum<{
910
+ done: "done";
911
+ failed: "failed";
912
+ running: "running";
913
+ }>;
914
+ startedAt: z.ZodNumber;
915
+ finishedAt: z.ZodNullable<z.ZodNumber>;
916
+ summary: z.ZodNullable<z.ZodString>;
917
+ result: z.ZodNullable<z.ZodString>;
918
+ usage: z.ZodNullable<z.ZodObject<{
919
+ totalTokens: z.ZodNumber;
920
+ toolUses: z.ZodNumber;
921
+ durationMs: z.ZodNumber;
922
+ }, z.core.$strip>>;
923
+ lastTool: z.ZodNullable<z.ZodString>;
924
+ outputFile: z.ZodOptional<z.ZodString>;
925
+ itemsTruncated: z.ZodBoolean;
926
+ native: z.ZodOptional<z.ZodObject<{
927
+ agentId: z.ZodOptional<z.ZodString>;
928
+ threadId: z.ZodOptional<z.ZodString>;
929
+ }, z.core.$strip>>;
930
+ origin: z.ZodOptional<z.ZodEnum<{
931
+ native: "native";
932
+ ruimte: "ruimte";
933
+ }>>;
934
+ childId: z.ZodOptional<z.ZodString>;
935
+ parentToolUseId: z.ZodOptional<z.ZodString>;
936
+ }, z.core.$strip>, z.ZodObject<{
937
+ id: z.ZodString;
938
+ createdAt: z.ZodNumber;
939
+ turnId: z.ZodNullable<z.ZodString>;
940
+ kind: z.ZodLiteral<"approval">;
941
+ requestId: z.ZodString;
942
+ toolUseId: z.ZodNullable<z.ZodString>;
943
+ toolName: z.ZodString;
944
+ input: z.ZodUnknown;
945
+ description: z.ZodNullable<z.ZodString>;
946
+ canAllowAlways: z.ZodBoolean;
947
+ allowAlways: z.ZodOptional<z.ZodObject<{
948
+ label: z.ZodString;
949
+ description: z.ZodString;
950
+ }, z.core.$strip>>;
951
+ decision: z.ZodEnum<{
952
+ allow: "allow";
953
+ "allow-always": "allow-always";
954
+ cancelled: "cancelled";
955
+ deny: "deny";
956
+ pending: "pending";
957
+ }>;
958
+ }, z.core.$strip>, z.ZodObject<{
959
+ id: z.ZodString;
960
+ createdAt: z.ZodNumber;
961
+ turnId: z.ZodNullable<z.ZodString>;
962
+ kind: z.ZodLiteral<"question">;
963
+ requestId: z.ZodString;
964
+ questions: z.ZodArray<z.ZodObject<{
965
+ id: z.ZodString;
966
+ header: z.ZodString;
967
+ question: z.ZodString;
968
+ choices: z.ZodArray<z.ZodObject<{
969
+ label: z.ZodString;
970
+ description: z.ZodString;
971
+ }, z.core.$strip>>;
972
+ multiSelect: z.ZodBoolean;
973
+ }, z.core.$strip>>;
974
+ async: z.ZodOptional<z.ZodBoolean>;
975
+ answers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
976
+ state: z.ZodEnum<{
977
+ answered: "answered";
978
+ cancelled: "cancelled";
979
+ dismissed: "dismissed";
980
+ pending: "pending";
981
+ }>;
982
+ }, z.core.$strip>, z.ZodObject<{
983
+ id: z.ZodString;
984
+ createdAt: z.ZodNumber;
985
+ turnId: z.ZodNullable<z.ZodString>;
986
+ kind: z.ZodLiteral<"turn">;
987
+ state: z.ZodEnum<{
988
+ aborted: "aborted";
989
+ done: "done";
990
+ error: "error";
991
+ running: "running";
992
+ }>;
993
+ origin: z.ZodOptional<z.ZodEnum<{
994
+ agent: "agent";
995
+ user: "user";
996
+ }>>;
997
+ label: z.ZodOptional<z.ZodString>;
998
+ taskToolUseId: z.ZodOptional<z.ZodString>;
999
+ endedAt: z.ZodNullable<z.ZodNumber>;
1000
+ costUsd: z.ZodNumber;
1001
+ checkpoint: z.ZodOptional<z.ZodString>;
1002
+ checkpointDiff: z.ZodOptional<z.ZodObject<{
1003
+ files: z.ZodArray<z.ZodObject<{
1004
+ path: z.ZodString;
1005
+ kind: z.ZodEnum<{
1006
+ add: "add";
1007
+ delete: "delete";
1008
+ update: "update";
1009
+ }>;
1010
+ added: z.ZodNumber;
1011
+ deleted: z.ZodNumber;
1012
+ diff: z.ZodString;
1013
+ omitted: z.ZodOptional<z.ZodEnum<{
1014
+ binary: "binary";
1015
+ "too-large": "too-large";
1016
+ }>>;
1017
+ }, z.core.$strip>>;
1018
+ truncated: z.ZodBoolean;
1019
+ }, z.core.$strip>>;
1020
+ attempt: z.ZodOptional<z.ZodNumber>;
1021
+ resumePending: z.ZodOptional<z.ZodBoolean>;
1022
+ deliveryPending: z.ZodOptional<z.ZodBoolean>;
1023
+ taskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1024
+ messageFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
1025
+ native: z.ZodOptional<z.ZodObject<{
1026
+ turnId: z.ZodOptional<z.ZodString>;
1027
+ lastUuid: z.ZodOptional<z.ZodString>;
1028
+ }, z.core.$strip>>;
1029
+ checkpointAfter: z.ZodOptional<z.ZodString>;
1030
+ summaryFor: z.ZodOptional<z.ZodString>;
1031
+ limit: z.ZodOptional<z.ZodObject<{
1032
+ kind: z.ZodEnum<{
1033
+ overload: "overload";
1034
+ usage: "usage";
1035
+ }>;
1036
+ resetsAt: z.ZodOptional<z.ZodNumber>;
1037
+ }, z.core.$strip>>;
1038
+ }, z.core.$strip>, z.ZodObject<{
1039
+ id: z.ZodString;
1040
+ createdAt: z.ZodNumber;
1041
+ turnId: z.ZodNullable<z.ZodString>;
1042
+ kind: z.ZodLiteral<"note">;
1043
+ level: z.ZodEnum<{
1044
+ error: "error";
1045
+ info: "info";
1046
+ warning: "warning";
1047
+ }>;
1048
+ text: z.ZodString;
1049
+ from: z.ZodOptional<z.ZodString>;
1050
+ }, z.core.$strip>, z.ZodObject<{
1051
+ id: z.ZodString;
1052
+ createdAt: z.ZodNumber;
1053
+ turnId: z.ZodNullable<z.ZodString>;
1054
+ kind: z.ZodLiteral<"compaction">;
1055
+ preTokens: z.ZodNullable<z.ZodNumber>;
1056
+ }, z.core.$strip>], "kind">>>;
1057
+ seq: z.ZodOptional<z.ZodNumber>;
1058
+ events: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1059
+ type: z.ZodLiteral<"item">;
1060
+ item: z.ZodDiscriminatedUnion<[z.ZodObject<{
1061
+ id: z.ZodString;
1062
+ createdAt: z.ZodNumber;
1063
+ turnId: z.ZodNullable<z.ZodString>;
1064
+ kind: z.ZodLiteral<"user">;
1065
+ text: z.ZodString;
1066
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1067
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
1068
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
1069
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1070
+ id: z.ZodString;
1071
+ name: z.ZodString;
1072
+ mime: z.ZodString;
1073
+ size: z.ZodNumber;
1074
+ path: z.ZodString;
1075
+ }, z.core.$strip>>>;
1076
+ }, z.core.$strip>, z.ZodObject<{
1077
+ id: z.ZodString;
1078
+ createdAt: z.ZodNumber;
1079
+ turnId: z.ZodNullable<z.ZodString>;
1080
+ kind: z.ZodLiteral<"assistant">;
1081
+ text: z.ZodString;
1082
+ streaming: z.ZodBoolean;
1083
+ parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1084
+ }, z.core.$strip>, z.ZodObject<{
1085
+ id: z.ZodString;
1086
+ createdAt: z.ZodNumber;
1087
+ turnId: z.ZodNullable<z.ZodString>;
1088
+ kind: z.ZodLiteral<"thinking">;
1089
+ text: z.ZodString;
1090
+ streaming: z.ZodBoolean;
1091
+ endedAt: z.ZodNullable<z.ZodNumber>;
1092
+ }, z.core.$strip>, z.ZodObject<{
1093
+ id: z.ZodString;
1094
+ createdAt: z.ZodNumber;
1095
+ turnId: z.ZodNullable<z.ZodString>;
1096
+ kind: z.ZodLiteral<"tool">;
1097
+ toolUseId: z.ZodString;
1098
+ name: z.ZodString;
1099
+ input: z.ZodUnknown;
1100
+ output: z.ZodNullable<z.ZodString>;
1101
+ state: z.ZodEnum<{
1102
+ done: "done";
1103
+ error: "error";
1104
+ running: "running";
1105
+ }>;
1106
+ parentToolUseId: z.ZodNullable<z.ZodString>;
1107
+ progress: z.ZodOptional<z.ZodObject<{
1108
+ startedAt: z.ZodNullable<z.ZodNumber>;
1109
+ description: z.ZodNullable<z.ZodString>;
1110
+ output: z.ZodNullable<z.ZodString>;
1111
+ }, z.core.$strip>>;
1112
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1113
+ path: z.ZodString;
1114
+ kind: z.ZodEnum<{
1115
+ add: "add";
1116
+ delete: "delete";
1117
+ update: "update";
1118
+ }>;
1119
+ diff: z.ZodString;
1120
+ }, z.core.$strip>>>;
1121
+ workflow: z.ZodOptional<z.ZodObject<{
1122
+ name: z.ZodNullable<z.ZodString>;
1123
+ taskId: z.ZodOptional<z.ZodString>;
1124
+ phases: z.ZodArray<z.ZodObject<{
1125
+ index: z.ZodNumber;
1126
+ title: z.ZodString;
1127
+ }, z.core.$strip>>;
1128
+ agents: z.ZodArray<z.ZodObject<{
1129
+ index: z.ZodNumber;
1130
+ label: z.ZodString;
1131
+ phaseIndex: z.ZodNullable<z.ZodNumber>;
1132
+ agentId: z.ZodNullable<z.ZodString>;
1133
+ status: z.ZodEnum<{
1134
+ done: "done";
1135
+ failed: "failed";
1136
+ running: "running";
1137
+ }>;
1138
+ startedAt: z.ZodNullable<z.ZodNumber>;
1139
+ durationMs: z.ZodNullable<z.ZodNumber>;
1140
+ lastTool: z.ZodNullable<z.ZodString>;
1141
+ }, z.core.$strip>>;
1142
+ lastProgressAt: z.ZodOptional<z.ZodNumber>;
1143
+ stalledAt: z.ZodOptional<z.ZodNumber>;
1144
+ }, z.core.$strip>>;
1145
+ }, z.core.$strip>, z.ZodObject<{
1146
+ id: z.ZodString;
1147
+ createdAt: z.ZodNumber;
1148
+ turnId: z.ZodNullable<z.ZodString>;
1149
+ kind: z.ZodLiteral<"subagent">;
1150
+ toolUseId: z.ZodString;
1151
+ description: z.ZodString;
1152
+ subagentType: z.ZodNullable<z.ZodString>;
1153
+ model: z.ZodOptional<z.ZodString>;
1154
+ prompt: z.ZodNullable<z.ZodString>;
1155
+ background: z.ZodBoolean;
1156
+ status: z.ZodEnum<{
1157
+ done: "done";
1158
+ failed: "failed";
1159
+ running: "running";
1160
+ }>;
1161
+ startedAt: z.ZodNumber;
1162
+ finishedAt: z.ZodNullable<z.ZodNumber>;
1163
+ summary: z.ZodNullable<z.ZodString>;
1164
+ result: z.ZodNullable<z.ZodString>;
1165
+ usage: z.ZodNullable<z.ZodObject<{
1166
+ totalTokens: z.ZodNumber;
1167
+ toolUses: z.ZodNumber;
1168
+ durationMs: z.ZodNumber;
1169
+ }, z.core.$strip>>;
1170
+ lastTool: z.ZodNullable<z.ZodString>;
1171
+ outputFile: z.ZodOptional<z.ZodString>;
1172
+ itemsTruncated: z.ZodBoolean;
1173
+ native: z.ZodOptional<z.ZodObject<{
1174
+ agentId: z.ZodOptional<z.ZodString>;
1175
+ threadId: z.ZodOptional<z.ZodString>;
1176
+ }, z.core.$strip>>;
1177
+ origin: z.ZodOptional<z.ZodEnum<{
1178
+ native: "native";
1179
+ ruimte: "ruimte";
1180
+ }>>;
1181
+ childId: z.ZodOptional<z.ZodString>;
1182
+ parentToolUseId: z.ZodOptional<z.ZodString>;
1183
+ }, z.core.$strip>, z.ZodObject<{
1184
+ id: z.ZodString;
1185
+ createdAt: z.ZodNumber;
1186
+ turnId: z.ZodNullable<z.ZodString>;
1187
+ kind: z.ZodLiteral<"approval">;
1188
+ requestId: z.ZodString;
1189
+ toolUseId: z.ZodNullable<z.ZodString>;
1190
+ toolName: z.ZodString;
1191
+ input: z.ZodUnknown;
1192
+ description: z.ZodNullable<z.ZodString>;
1193
+ canAllowAlways: z.ZodBoolean;
1194
+ allowAlways: z.ZodOptional<z.ZodObject<{
1195
+ label: z.ZodString;
1196
+ description: z.ZodString;
1197
+ }, z.core.$strip>>;
1198
+ decision: z.ZodEnum<{
1199
+ allow: "allow";
1200
+ "allow-always": "allow-always";
1201
+ cancelled: "cancelled";
1202
+ deny: "deny";
1203
+ pending: "pending";
1204
+ }>;
1205
+ }, z.core.$strip>, z.ZodObject<{
1206
+ id: z.ZodString;
1207
+ createdAt: z.ZodNumber;
1208
+ turnId: z.ZodNullable<z.ZodString>;
1209
+ kind: z.ZodLiteral<"question">;
1210
+ requestId: z.ZodString;
1211
+ questions: z.ZodArray<z.ZodObject<{
1212
+ id: z.ZodString;
1213
+ header: z.ZodString;
1214
+ question: z.ZodString;
1215
+ choices: z.ZodArray<z.ZodObject<{
1216
+ label: z.ZodString;
1217
+ description: z.ZodString;
1218
+ }, z.core.$strip>>;
1219
+ multiSelect: z.ZodBoolean;
1220
+ }, z.core.$strip>>;
1221
+ async: z.ZodOptional<z.ZodBoolean>;
1222
+ answers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1223
+ state: z.ZodEnum<{
1224
+ answered: "answered";
1225
+ cancelled: "cancelled";
1226
+ dismissed: "dismissed";
1227
+ pending: "pending";
1228
+ }>;
1229
+ }, z.core.$strip>, z.ZodObject<{
1230
+ id: z.ZodString;
1231
+ createdAt: z.ZodNumber;
1232
+ turnId: z.ZodNullable<z.ZodString>;
1233
+ kind: z.ZodLiteral<"turn">;
1234
+ state: z.ZodEnum<{
1235
+ aborted: "aborted";
1236
+ done: "done";
1237
+ error: "error";
1238
+ running: "running";
1239
+ }>;
1240
+ origin: z.ZodOptional<z.ZodEnum<{
1241
+ agent: "agent";
1242
+ user: "user";
1243
+ }>>;
1244
+ label: z.ZodOptional<z.ZodString>;
1245
+ taskToolUseId: z.ZodOptional<z.ZodString>;
1246
+ endedAt: z.ZodNullable<z.ZodNumber>;
1247
+ costUsd: z.ZodNumber;
1248
+ checkpoint: z.ZodOptional<z.ZodString>;
1249
+ checkpointDiff: z.ZodOptional<z.ZodObject<{
1250
+ files: z.ZodArray<z.ZodObject<{
1251
+ path: z.ZodString;
1252
+ kind: z.ZodEnum<{
1253
+ add: "add";
1254
+ delete: "delete";
1255
+ update: "update";
1256
+ }>;
1257
+ added: z.ZodNumber;
1258
+ deleted: z.ZodNumber;
1259
+ diff: z.ZodString;
1260
+ omitted: z.ZodOptional<z.ZodEnum<{
1261
+ binary: "binary";
1262
+ "too-large": "too-large";
1263
+ }>>;
1264
+ }, z.core.$strip>>;
1265
+ truncated: z.ZodBoolean;
1266
+ }, z.core.$strip>>;
1267
+ attempt: z.ZodOptional<z.ZodNumber>;
1268
+ resumePending: z.ZodOptional<z.ZodBoolean>;
1269
+ deliveryPending: z.ZodOptional<z.ZodBoolean>;
1270
+ taskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1271
+ messageFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
1272
+ native: z.ZodOptional<z.ZodObject<{
1273
+ turnId: z.ZodOptional<z.ZodString>;
1274
+ lastUuid: z.ZodOptional<z.ZodString>;
1275
+ }, z.core.$strip>>;
1276
+ checkpointAfter: z.ZodOptional<z.ZodString>;
1277
+ summaryFor: z.ZodOptional<z.ZodString>;
1278
+ limit: z.ZodOptional<z.ZodObject<{
1279
+ kind: z.ZodEnum<{
1280
+ overload: "overload";
1281
+ usage: "usage";
1282
+ }>;
1283
+ resetsAt: z.ZodOptional<z.ZodNumber>;
1284
+ }, z.core.$strip>>;
1285
+ }, z.core.$strip>, z.ZodObject<{
1286
+ id: z.ZodString;
1287
+ createdAt: z.ZodNumber;
1288
+ turnId: z.ZodNullable<z.ZodString>;
1289
+ kind: z.ZodLiteral<"note">;
1290
+ level: z.ZodEnum<{
1291
+ error: "error";
1292
+ info: "info";
1293
+ warning: "warning";
1294
+ }>;
1295
+ text: z.ZodString;
1296
+ from: z.ZodOptional<z.ZodString>;
1297
+ }, z.core.$strip>, z.ZodObject<{
1298
+ id: z.ZodString;
1299
+ createdAt: z.ZodNumber;
1300
+ turnId: z.ZodNullable<z.ZodString>;
1301
+ kind: z.ZodLiteral<"compaction">;
1302
+ preTokens: z.ZodNullable<z.ZodNumber>;
1303
+ }, z.core.$strip>], "kind">;
1304
+ historyIndex: z.ZodOptional<z.ZodNumber>;
1305
+ }, z.core.$strip>, z.ZodObject<{
1306
+ type: z.ZodLiteral<"delta">;
1307
+ itemId: z.ZodString;
1308
+ text: z.ZodString;
1309
+ }, z.core.$strip>, z.ZodObject<{
1310
+ type: z.ZodLiteral<"info">;
1311
+ info: z.ZodObject<{
1312
+ chatId: z.ZodString;
1313
+ provider: z.ZodEnum<{
1314
+ apple: "apple";
1315
+ claude: "claude";
1316
+ codex: "codex";
1317
+ copilot: "copilot";
1318
+ gemini: "gemini";
1319
+ }>;
1320
+ account: z.ZodOptional<z.ZodString>;
1321
+ cwd: z.ZodString;
1322
+ agentSessionId: z.ZodNullable<z.ZodString>;
1323
+ model: z.ZodNullable<z.ZodString>;
1324
+ selection: z.ZodObject<{
1325
+ model: z.ZodString;
1326
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
1327
+ }, z.core.$strip>;
1328
+ runtimeMode: z.ZodEnum<{
1329
+ auto: "auto";
1330
+ "auto-accept-edits": "auto-accept-edits";
1331
+ "full-access": "full-access";
1332
+ supervised: "supervised";
1333
+ }>;
1334
+ effectiveRuntimeMode: z.ZodOptional<z.ZodEnum<{
1335
+ auto: "auto";
1336
+ "auto-accept-edits": "auto-accept-edits";
1337
+ "full-access": "full-access";
1338
+ supervised: "supervised";
1339
+ }>>;
1340
+ permissionMode: z.ZodOptional<z.ZodString>;
1341
+ status: z.ZodEnum<{
1342
+ error: "error";
1343
+ exited: "exited";
1344
+ idle: "idle";
1345
+ "needs-you": "needs-you";
1346
+ running: "running";
1347
+ }>;
1348
+ running: z.ZodBoolean;
1349
+ activeTurnId: z.ZodNullable<z.ZodString>;
1350
+ slashCommands: z.ZodArray<z.ZodString>;
1351
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
1352
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
1353
+ id: z.ZodString;
1354
+ turnId: z.ZodOptional<z.ZodString>;
1355
+ text: z.ZodString;
1356
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1357
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
1358
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
1359
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1360
+ id: z.ZodString;
1361
+ name: z.ZodString;
1362
+ mime: z.ZodString;
1363
+ size: z.ZodNumber;
1364
+ path: z.ZodString;
1365
+ }, z.core.$strip>>>;
1366
+ createdAt: z.ZodNumber;
1367
+ }, z.core.$strip>>>;
1368
+ queuePaused: z.ZodOptional<z.ZodBoolean>;
1369
+ background: z.ZodOptional<z.ZodArray<z.ZodObject<{
1370
+ id: z.ZodString;
1371
+ kind: z.ZodEnum<{
1372
+ monitor: "monitor";
1373
+ shell: "shell";
1374
+ }>;
1375
+ description: z.ZodString;
1376
+ command: z.ZodNullable<z.ZodString>;
1377
+ startedAt: z.ZodNumber;
1378
+ }, z.core.$strip>>>;
1379
+ delegating: z.ZodOptional<z.ZodBoolean>;
1380
+ usage: z.ZodObject<{
1381
+ contextTokens: z.ZodNumber;
1382
+ contextWindow: z.ZodNullable<z.ZodNumber>;
1383
+ costUsd: z.ZodNumber;
1384
+ turns: z.ZodNumber;
1385
+ breakdown: z.ZodOptional<z.ZodObject<{
1386
+ toolOutput: z.ZodNumber;
1387
+ filesRead: z.ZodNumber;
1388
+ conversation: z.ZodNumber;
1389
+ system: z.ZodNumber;
1390
+ }, z.core.$strip>>;
1391
+ }, z.core.$strip>;
1392
+ suggestedTitle: z.ZodOptional<z.ZodString>;
1393
+ hidden: z.ZodOptional<z.ZodBoolean>;
1394
+ forkOf: z.ZodOptional<z.ZodObject<{
1395
+ chatId: z.ZodString;
1396
+ turnId: z.ZodString;
1397
+ at: z.ZodNumber;
1398
+ }, z.core.$strip>>;
1399
+ resumeAtReset: z.ZodOptional<z.ZodBoolean>;
1400
+ limit: z.ZodOptional<z.ZodObject<{
1401
+ kind: z.ZodEnum<{
1402
+ overload: "overload";
1403
+ usage: "usage";
1404
+ }>;
1405
+ resetsAt: z.ZodOptional<z.ZodNumber>;
1406
+ }, z.core.$strip>>;
1407
+ resumeAt: z.ZodOptional<z.ZodNumber>;
1408
+ requests: z.ZodOptional<z.ZodArray<z.ZodObject<{
1409
+ requestId: z.ZodString;
1410
+ itemId: z.ZodString;
1411
+ kind: z.ZodEnum<{
1412
+ approval: "approval";
1413
+ question: "question";
1414
+ }>;
1415
+ createdAt: z.ZodNumber;
1416
+ approval: z.ZodOptional<z.ZodObject<{
1417
+ toolName: z.ZodString;
1418
+ subject: z.ZodString;
1419
+ description: z.ZodNullable<z.ZodString>;
1420
+ path: z.ZodOptional<z.ZodString>;
1421
+ files: z.ZodOptional<z.ZodNumber>;
1422
+ diff: z.ZodOptional<z.ZodString>;
1423
+ command: z.ZodOptional<z.ZodString>;
1424
+ truncated: z.ZodOptional<z.ZodBoolean>;
1425
+ canAllowAlways: z.ZodBoolean;
1426
+ allowAlways: z.ZodOptional<z.ZodObject<{
1427
+ label: z.ZodString;
1428
+ description: z.ZodString;
1429
+ }, z.core.$strip>>;
1430
+ }, z.core.$strip>>;
1431
+ question: z.ZodOptional<z.ZodObject<{
1432
+ questions: z.ZodArray<z.ZodObject<{
1433
+ id: z.ZodString;
1434
+ header: z.ZodString;
1435
+ question: z.ZodString;
1436
+ choices: z.ZodArray<z.ZodObject<{
1437
+ label: z.ZodString;
1438
+ description: z.ZodString;
1439
+ }, z.core.$strip>>;
1440
+ multiSelect: z.ZodBoolean;
1441
+ }, z.core.$strip>>;
1442
+ async: z.ZodOptional<z.ZodBoolean>;
1443
+ }, z.core.$strip>>;
1444
+ }, z.core.$strip>>>;
1445
+ createdAt: z.ZodNumber;
1446
+ }, z.core.$strip>;
1447
+ }, z.core.$strip>, z.ZodObject<{
1448
+ type: z.ZodLiteral<"reset">;
1449
+ info: z.ZodObject<{
1450
+ chatId: z.ZodString;
1451
+ provider: z.ZodEnum<{
1452
+ apple: "apple";
1453
+ claude: "claude";
1454
+ codex: "codex";
1455
+ copilot: "copilot";
1456
+ gemini: "gemini";
1457
+ }>;
1458
+ account: z.ZodOptional<z.ZodString>;
1459
+ cwd: z.ZodString;
1460
+ agentSessionId: z.ZodNullable<z.ZodString>;
1461
+ model: z.ZodNullable<z.ZodString>;
1462
+ selection: z.ZodObject<{
1463
+ model: z.ZodString;
1464
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
1465
+ }, z.core.$strip>;
1466
+ runtimeMode: z.ZodEnum<{
1467
+ auto: "auto";
1468
+ "auto-accept-edits": "auto-accept-edits";
1469
+ "full-access": "full-access";
1470
+ supervised: "supervised";
1471
+ }>;
1472
+ effectiveRuntimeMode: z.ZodOptional<z.ZodEnum<{
1473
+ auto: "auto";
1474
+ "auto-accept-edits": "auto-accept-edits";
1475
+ "full-access": "full-access";
1476
+ supervised: "supervised";
1477
+ }>>;
1478
+ permissionMode: z.ZodOptional<z.ZodString>;
1479
+ status: z.ZodEnum<{
1480
+ error: "error";
1481
+ exited: "exited";
1482
+ idle: "idle";
1483
+ "needs-you": "needs-you";
1484
+ running: "running";
1485
+ }>;
1486
+ running: z.ZodBoolean;
1487
+ activeTurnId: z.ZodNullable<z.ZodString>;
1488
+ slashCommands: z.ZodArray<z.ZodString>;
1489
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
1490
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
1491
+ id: z.ZodString;
1492
+ turnId: z.ZodOptional<z.ZodString>;
1493
+ text: z.ZodString;
1494
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1495
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
1496
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
1497
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1498
+ id: z.ZodString;
1499
+ name: z.ZodString;
1500
+ mime: z.ZodString;
1501
+ size: z.ZodNumber;
1502
+ path: z.ZodString;
1503
+ }, z.core.$strip>>>;
1504
+ createdAt: z.ZodNumber;
1505
+ }, z.core.$strip>>>;
1506
+ queuePaused: z.ZodOptional<z.ZodBoolean>;
1507
+ background: z.ZodOptional<z.ZodArray<z.ZodObject<{
1508
+ id: z.ZodString;
1509
+ kind: z.ZodEnum<{
1510
+ monitor: "monitor";
1511
+ shell: "shell";
1512
+ }>;
1513
+ description: z.ZodString;
1514
+ command: z.ZodNullable<z.ZodString>;
1515
+ startedAt: z.ZodNumber;
1516
+ }, z.core.$strip>>>;
1517
+ delegating: z.ZodOptional<z.ZodBoolean>;
1518
+ usage: z.ZodObject<{
1519
+ contextTokens: z.ZodNumber;
1520
+ contextWindow: z.ZodNullable<z.ZodNumber>;
1521
+ costUsd: z.ZodNumber;
1522
+ turns: z.ZodNumber;
1523
+ breakdown: z.ZodOptional<z.ZodObject<{
1524
+ toolOutput: z.ZodNumber;
1525
+ filesRead: z.ZodNumber;
1526
+ conversation: z.ZodNumber;
1527
+ system: z.ZodNumber;
1528
+ }, z.core.$strip>>;
1529
+ }, z.core.$strip>;
1530
+ suggestedTitle: z.ZodOptional<z.ZodString>;
1531
+ hidden: z.ZodOptional<z.ZodBoolean>;
1532
+ forkOf: z.ZodOptional<z.ZodObject<{
1533
+ chatId: z.ZodString;
1534
+ turnId: z.ZodString;
1535
+ at: z.ZodNumber;
1536
+ }, z.core.$strip>>;
1537
+ resumeAtReset: z.ZodOptional<z.ZodBoolean>;
1538
+ limit: z.ZodOptional<z.ZodObject<{
1539
+ kind: z.ZodEnum<{
1540
+ overload: "overload";
1541
+ usage: "usage";
1542
+ }>;
1543
+ resetsAt: z.ZodOptional<z.ZodNumber>;
1544
+ }, z.core.$strip>>;
1545
+ resumeAt: z.ZodOptional<z.ZodNumber>;
1546
+ requests: z.ZodOptional<z.ZodArray<z.ZodObject<{
1547
+ requestId: z.ZodString;
1548
+ itemId: z.ZodString;
1549
+ kind: z.ZodEnum<{
1550
+ approval: "approval";
1551
+ question: "question";
1552
+ }>;
1553
+ createdAt: z.ZodNumber;
1554
+ approval: z.ZodOptional<z.ZodObject<{
1555
+ toolName: z.ZodString;
1556
+ subject: z.ZodString;
1557
+ description: z.ZodNullable<z.ZodString>;
1558
+ path: z.ZodOptional<z.ZodString>;
1559
+ files: z.ZodOptional<z.ZodNumber>;
1560
+ diff: z.ZodOptional<z.ZodString>;
1561
+ command: z.ZodOptional<z.ZodString>;
1562
+ truncated: z.ZodOptional<z.ZodBoolean>;
1563
+ canAllowAlways: z.ZodBoolean;
1564
+ allowAlways: z.ZodOptional<z.ZodObject<{
1565
+ label: z.ZodString;
1566
+ description: z.ZodString;
1567
+ }, z.core.$strip>>;
1568
+ }, z.core.$strip>>;
1569
+ question: z.ZodOptional<z.ZodObject<{
1570
+ questions: z.ZodArray<z.ZodObject<{
1571
+ id: z.ZodString;
1572
+ header: z.ZodString;
1573
+ question: z.ZodString;
1574
+ choices: z.ZodArray<z.ZodObject<{
1575
+ label: z.ZodString;
1576
+ description: z.ZodString;
1577
+ }, z.core.$strip>>;
1578
+ multiSelect: z.ZodBoolean;
1579
+ }, z.core.$strip>>;
1580
+ async: z.ZodOptional<z.ZodBoolean>;
1581
+ }, z.core.$strip>>;
1582
+ }, z.core.$strip>>>;
1583
+ createdAt: z.ZodNumber;
1584
+ }, z.core.$strip>;
1585
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1586
+ id: z.ZodString;
1587
+ createdAt: z.ZodNumber;
1588
+ turnId: z.ZodNullable<z.ZodString>;
1589
+ kind: z.ZodLiteral<"user">;
1590
+ text: z.ZodString;
1591
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1592
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
1593
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
1594
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1595
+ id: z.ZodString;
1596
+ name: z.ZodString;
1597
+ mime: z.ZodString;
1598
+ size: z.ZodNumber;
1599
+ path: z.ZodString;
1600
+ }, z.core.$strip>>>;
1601
+ }, z.core.$strip>, z.ZodObject<{
1602
+ id: z.ZodString;
1603
+ createdAt: z.ZodNumber;
1604
+ turnId: z.ZodNullable<z.ZodString>;
1605
+ kind: z.ZodLiteral<"assistant">;
1606
+ text: z.ZodString;
1607
+ streaming: z.ZodBoolean;
1608
+ parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1609
+ }, z.core.$strip>, z.ZodObject<{
1610
+ id: z.ZodString;
1611
+ createdAt: z.ZodNumber;
1612
+ turnId: z.ZodNullable<z.ZodString>;
1613
+ kind: z.ZodLiteral<"thinking">;
1614
+ text: z.ZodString;
1615
+ streaming: z.ZodBoolean;
1616
+ endedAt: z.ZodNullable<z.ZodNumber>;
1617
+ }, z.core.$strip>, z.ZodObject<{
1618
+ id: z.ZodString;
1619
+ createdAt: z.ZodNumber;
1620
+ turnId: z.ZodNullable<z.ZodString>;
1621
+ kind: z.ZodLiteral<"tool">;
1622
+ toolUseId: z.ZodString;
1623
+ name: z.ZodString;
1624
+ input: z.ZodUnknown;
1625
+ output: z.ZodNullable<z.ZodString>;
1626
+ state: z.ZodEnum<{
1627
+ done: "done";
1628
+ error: "error";
1629
+ running: "running";
1630
+ }>;
1631
+ parentToolUseId: z.ZodNullable<z.ZodString>;
1632
+ progress: z.ZodOptional<z.ZodObject<{
1633
+ startedAt: z.ZodNullable<z.ZodNumber>;
1634
+ description: z.ZodNullable<z.ZodString>;
1635
+ output: z.ZodNullable<z.ZodString>;
1636
+ }, z.core.$strip>>;
1637
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1638
+ path: z.ZodString;
1639
+ kind: z.ZodEnum<{
1640
+ add: "add";
1641
+ delete: "delete";
1642
+ update: "update";
1643
+ }>;
1644
+ diff: z.ZodString;
1645
+ }, z.core.$strip>>>;
1646
+ workflow: z.ZodOptional<z.ZodObject<{
1647
+ name: z.ZodNullable<z.ZodString>;
1648
+ taskId: z.ZodOptional<z.ZodString>;
1649
+ phases: z.ZodArray<z.ZodObject<{
1650
+ index: z.ZodNumber;
1651
+ title: z.ZodString;
1652
+ }, z.core.$strip>>;
1653
+ agents: z.ZodArray<z.ZodObject<{
1654
+ index: z.ZodNumber;
1655
+ label: z.ZodString;
1656
+ phaseIndex: z.ZodNullable<z.ZodNumber>;
1657
+ agentId: z.ZodNullable<z.ZodString>;
1658
+ status: z.ZodEnum<{
1659
+ done: "done";
1660
+ failed: "failed";
1661
+ running: "running";
1662
+ }>;
1663
+ startedAt: z.ZodNullable<z.ZodNumber>;
1664
+ durationMs: z.ZodNullable<z.ZodNumber>;
1665
+ lastTool: z.ZodNullable<z.ZodString>;
1666
+ }, z.core.$strip>>;
1667
+ lastProgressAt: z.ZodOptional<z.ZodNumber>;
1668
+ stalledAt: z.ZodOptional<z.ZodNumber>;
1669
+ }, z.core.$strip>>;
1670
+ }, z.core.$strip>, z.ZodObject<{
1671
+ id: z.ZodString;
1672
+ createdAt: z.ZodNumber;
1673
+ turnId: z.ZodNullable<z.ZodString>;
1674
+ kind: z.ZodLiteral<"subagent">;
1675
+ toolUseId: z.ZodString;
1676
+ description: z.ZodString;
1677
+ subagentType: z.ZodNullable<z.ZodString>;
1678
+ model: z.ZodOptional<z.ZodString>;
1679
+ prompt: z.ZodNullable<z.ZodString>;
1680
+ background: z.ZodBoolean;
1681
+ status: z.ZodEnum<{
1682
+ done: "done";
1683
+ failed: "failed";
1684
+ running: "running";
1685
+ }>;
1686
+ startedAt: z.ZodNumber;
1687
+ finishedAt: z.ZodNullable<z.ZodNumber>;
1688
+ summary: z.ZodNullable<z.ZodString>;
1689
+ result: z.ZodNullable<z.ZodString>;
1690
+ usage: z.ZodNullable<z.ZodObject<{
1691
+ totalTokens: z.ZodNumber;
1692
+ toolUses: z.ZodNumber;
1693
+ durationMs: z.ZodNumber;
1694
+ }, z.core.$strip>>;
1695
+ lastTool: z.ZodNullable<z.ZodString>;
1696
+ outputFile: z.ZodOptional<z.ZodString>;
1697
+ itemsTruncated: z.ZodBoolean;
1698
+ native: z.ZodOptional<z.ZodObject<{
1699
+ agentId: z.ZodOptional<z.ZodString>;
1700
+ threadId: z.ZodOptional<z.ZodString>;
1701
+ }, z.core.$strip>>;
1702
+ origin: z.ZodOptional<z.ZodEnum<{
1703
+ native: "native";
1704
+ ruimte: "ruimte";
1705
+ }>>;
1706
+ childId: z.ZodOptional<z.ZodString>;
1707
+ parentToolUseId: z.ZodOptional<z.ZodString>;
1708
+ }, z.core.$strip>, z.ZodObject<{
1709
+ id: z.ZodString;
1710
+ createdAt: z.ZodNumber;
1711
+ turnId: z.ZodNullable<z.ZodString>;
1712
+ kind: z.ZodLiteral<"approval">;
1713
+ requestId: z.ZodString;
1714
+ toolUseId: z.ZodNullable<z.ZodString>;
1715
+ toolName: z.ZodString;
1716
+ input: z.ZodUnknown;
1717
+ description: z.ZodNullable<z.ZodString>;
1718
+ canAllowAlways: z.ZodBoolean;
1719
+ allowAlways: z.ZodOptional<z.ZodObject<{
1720
+ label: z.ZodString;
1721
+ description: z.ZodString;
1722
+ }, z.core.$strip>>;
1723
+ decision: z.ZodEnum<{
1724
+ allow: "allow";
1725
+ "allow-always": "allow-always";
1726
+ cancelled: "cancelled";
1727
+ deny: "deny";
1728
+ pending: "pending";
1729
+ }>;
1730
+ }, z.core.$strip>, z.ZodObject<{
1731
+ id: z.ZodString;
1732
+ createdAt: z.ZodNumber;
1733
+ turnId: z.ZodNullable<z.ZodString>;
1734
+ kind: z.ZodLiteral<"question">;
1735
+ requestId: z.ZodString;
1736
+ questions: z.ZodArray<z.ZodObject<{
1737
+ id: z.ZodString;
1738
+ header: z.ZodString;
1739
+ question: z.ZodString;
1740
+ choices: z.ZodArray<z.ZodObject<{
1741
+ label: z.ZodString;
1742
+ description: z.ZodString;
1743
+ }, z.core.$strip>>;
1744
+ multiSelect: z.ZodBoolean;
1745
+ }, z.core.$strip>>;
1746
+ async: z.ZodOptional<z.ZodBoolean>;
1747
+ answers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1748
+ state: z.ZodEnum<{
1749
+ answered: "answered";
1750
+ cancelled: "cancelled";
1751
+ dismissed: "dismissed";
1752
+ pending: "pending";
1753
+ }>;
1754
+ }, z.core.$strip>, z.ZodObject<{
1755
+ id: z.ZodString;
1756
+ createdAt: z.ZodNumber;
1757
+ turnId: z.ZodNullable<z.ZodString>;
1758
+ kind: z.ZodLiteral<"turn">;
1759
+ state: z.ZodEnum<{
1760
+ aborted: "aborted";
1761
+ done: "done";
1762
+ error: "error";
1763
+ running: "running";
1764
+ }>;
1765
+ origin: z.ZodOptional<z.ZodEnum<{
1766
+ agent: "agent";
1767
+ user: "user";
1768
+ }>>;
1769
+ label: z.ZodOptional<z.ZodString>;
1770
+ taskToolUseId: z.ZodOptional<z.ZodString>;
1771
+ endedAt: z.ZodNullable<z.ZodNumber>;
1772
+ costUsd: z.ZodNumber;
1773
+ checkpoint: z.ZodOptional<z.ZodString>;
1774
+ checkpointDiff: z.ZodOptional<z.ZodObject<{
1775
+ files: z.ZodArray<z.ZodObject<{
1776
+ path: z.ZodString;
1777
+ kind: z.ZodEnum<{
1778
+ add: "add";
1779
+ delete: "delete";
1780
+ update: "update";
1781
+ }>;
1782
+ added: z.ZodNumber;
1783
+ deleted: z.ZodNumber;
1784
+ diff: z.ZodString;
1785
+ omitted: z.ZodOptional<z.ZodEnum<{
1786
+ binary: "binary";
1787
+ "too-large": "too-large";
1788
+ }>>;
1789
+ }, z.core.$strip>>;
1790
+ truncated: z.ZodBoolean;
1791
+ }, z.core.$strip>>;
1792
+ attempt: z.ZodOptional<z.ZodNumber>;
1793
+ resumePending: z.ZodOptional<z.ZodBoolean>;
1794
+ deliveryPending: z.ZodOptional<z.ZodBoolean>;
1795
+ taskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1796
+ messageFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
1797
+ native: z.ZodOptional<z.ZodObject<{
1798
+ turnId: z.ZodOptional<z.ZodString>;
1799
+ lastUuid: z.ZodOptional<z.ZodString>;
1800
+ }, z.core.$strip>>;
1801
+ checkpointAfter: z.ZodOptional<z.ZodString>;
1802
+ summaryFor: z.ZodOptional<z.ZodString>;
1803
+ limit: z.ZodOptional<z.ZodObject<{
1804
+ kind: z.ZodEnum<{
1805
+ overload: "overload";
1806
+ usage: "usage";
1807
+ }>;
1808
+ resetsAt: z.ZodOptional<z.ZodNumber>;
1809
+ }, z.core.$strip>>;
1810
+ }, z.core.$strip>, z.ZodObject<{
1811
+ id: z.ZodString;
1812
+ createdAt: z.ZodNumber;
1813
+ turnId: z.ZodNullable<z.ZodString>;
1814
+ kind: z.ZodLiteral<"note">;
1815
+ level: z.ZodEnum<{
1816
+ error: "error";
1817
+ info: "info";
1818
+ warning: "warning";
1819
+ }>;
1820
+ text: z.ZodString;
1821
+ from: z.ZodOptional<z.ZodString>;
1822
+ }, z.core.$strip>, z.ZodObject<{
1823
+ id: z.ZodString;
1824
+ createdAt: z.ZodNumber;
1825
+ turnId: z.ZodNullable<z.ZodString>;
1826
+ kind: z.ZodLiteral<"compaction">;
1827
+ preTokens: z.ZodNullable<z.ZodNumber>;
1828
+ }, z.core.$strip>], "kind">>;
1829
+ }, z.core.$strip>], "type">>>;
1830
+ bookmarks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1831
+ itemId: z.ZodString;
1832
+ name: z.ZodOptional<z.ZodString>;
1833
+ excerpt: z.ZodString;
1834
+ createdAt: z.ZodNumber;
1835
+ }, z.core.$strip>>>;
1836
+ }, z.core.$strip>;
1837
+ };
1838
+ readonly 'chat.detach': {
1839
+ readonly payload: z.ZodObject<{
1840
+ chatId: z.ZodString;
1841
+ }, z.core.$strip>;
1842
+ readonly result: z.ZodObject<{}, z.core.$strip>;
1843
+ };
1844
+ readonly 'chat.send': {
1845
+ readonly payload: z.ZodObject<{
1846
+ chatId: z.ZodString;
1847
+ text: z.ZodString;
1848
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1849
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
1850
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
1851
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1852
+ name: z.ZodString;
1853
+ mime: z.ZodString;
1854
+ data: z.ZodString;
1855
+ }, z.core.$strip>>>;
1856
+ }, z.core.$strip>;
1857
+ readonly result: z.ZodObject<{
1858
+ queued: z.ZodBoolean;
1859
+ turnId: z.ZodOptional<z.ZodString>;
1860
+ }, z.core.$strip>;
1861
+ };
1862
+ readonly 'chat.unqueue': {
1863
+ readonly payload: z.ZodObject<{
1864
+ chatId: z.ZodString;
1865
+ messageId: z.ZodString;
1866
+ }, z.core.$strip>;
1867
+ readonly result: z.ZodObject<{
1868
+ message: z.ZodOptional<z.ZodObject<{
1869
+ id: z.ZodString;
1870
+ turnId: z.ZodOptional<z.ZodString>;
1871
+ text: z.ZodString;
1872
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1873
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
1874
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
1875
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1876
+ id: z.ZodString;
1877
+ name: z.ZodString;
1878
+ mime: z.ZodString;
1879
+ size: z.ZodNumber;
1880
+ path: z.ZodString;
1881
+ }, z.core.$strip>>>;
1882
+ createdAt: z.ZodNumber;
1883
+ }, z.core.$strip>>;
1884
+ }, z.core.$strip>;
1885
+ };
1886
+ readonly 'chat.sendNow': {
1887
+ readonly payload: z.ZodObject<{
1888
+ chatId: z.ZodString;
1889
+ messageId: z.ZodString;
1890
+ }, z.core.$strip>;
1891
+ readonly result: z.ZodObject<{}, z.core.$strip>;
1892
+ };
1893
+ readonly 'chat.cancel': {
1894
+ readonly payload: z.ZodObject<{
1895
+ chatId: z.ZodString;
1896
+ subagents: z.ZodOptional<z.ZodBoolean>;
1897
+ }, z.core.$strip>;
1898
+ readonly result: z.ZodObject<{}, z.core.$strip>;
1899
+ };
1900
+ readonly 'chat.approve': {
1901
+ readonly payload: z.ZodObject<{
1902
+ chatId: z.ZodString;
1903
+ requestId: z.ZodString;
1904
+ decision: z.ZodEnum<{
1905
+ allow: "allow";
1906
+ "allow-always": "allow-always";
1907
+ deny: "deny";
1908
+ }>;
1909
+ message: z.ZodOptional<z.ZodString>;
1910
+ }, z.core.$strip>;
1911
+ readonly result: z.ZodObject<{}, z.core.$strip>;
1912
+ };
1913
+ readonly 'chat.answer': {
1914
+ readonly payload: z.ZodObject<{
1915
+ chatId: z.ZodString;
1916
+ requestId: z.ZodString;
1917
+ answers: z.ZodRecord<z.ZodString, z.ZodString>;
1918
+ }, z.core.$strip>;
1919
+ readonly result: z.ZodObject<{}, z.core.$strip>;
1920
+ };
1921
+ readonly 'chat.dismiss': {
1922
+ readonly payload: z.ZodObject<{
1923
+ chatId: z.ZodString;
1924
+ itemId: z.ZodString;
1925
+ }, z.core.$strip>;
1926
+ readonly result: z.ZodObject<{}, z.core.$strip>;
1927
+ };
1928
+ readonly 'chat.configure': {
1929
+ readonly payload: z.ZodObject<{
1930
+ chatId: z.ZodString;
1931
+ account: z.ZodOptional<z.ZodString>;
1932
+ selection: z.ZodOptional<z.ZodObject<{
1933
+ model: z.ZodString;
1934
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
1935
+ }, z.core.$strip>>;
1936
+ runtimeMode: z.ZodOptional<z.ZodEnum<{
1937
+ auto: "auto";
1938
+ "auto-accept-edits": "auto-accept-edits";
1939
+ "full-access": "full-access";
1940
+ supervised: "supervised";
1941
+ }>>;
1942
+ resumeAtReset: z.ZodOptional<z.ZodBoolean>;
1943
+ }, z.core.$strip>;
1944
+ readonly result: z.ZodObject<{
1945
+ chatId: z.ZodString;
1946
+ provider: z.ZodEnum<{
1947
+ apple: "apple";
1948
+ claude: "claude";
1949
+ codex: "codex";
1950
+ copilot: "copilot";
1951
+ gemini: "gemini";
1952
+ }>;
1953
+ account: z.ZodOptional<z.ZodString>;
1954
+ cwd: z.ZodString;
1955
+ agentSessionId: z.ZodNullable<z.ZodString>;
1956
+ model: z.ZodNullable<z.ZodString>;
1957
+ selection: z.ZodObject<{
1958
+ model: z.ZodString;
1959
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
1960
+ }, z.core.$strip>;
1961
+ runtimeMode: z.ZodEnum<{
1962
+ auto: "auto";
1963
+ "auto-accept-edits": "auto-accept-edits";
1964
+ "full-access": "full-access";
1965
+ supervised: "supervised";
1966
+ }>;
1967
+ effectiveRuntimeMode: z.ZodOptional<z.ZodEnum<{
1968
+ auto: "auto";
1969
+ "auto-accept-edits": "auto-accept-edits";
1970
+ "full-access": "full-access";
1971
+ supervised: "supervised";
1972
+ }>>;
1973
+ permissionMode: z.ZodOptional<z.ZodString>;
1974
+ status: z.ZodEnum<{
1975
+ error: "error";
1976
+ exited: "exited";
1977
+ idle: "idle";
1978
+ "needs-you": "needs-you";
1979
+ running: "running";
1980
+ }>;
1981
+ running: z.ZodBoolean;
1982
+ activeTurnId: z.ZodNullable<z.ZodString>;
1983
+ slashCommands: z.ZodArray<z.ZodString>;
1984
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
1985
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
1986
+ id: z.ZodString;
1987
+ turnId: z.ZodOptional<z.ZodString>;
1988
+ text: z.ZodString;
1989
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1990
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
1991
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
1992
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1993
+ id: z.ZodString;
1994
+ name: z.ZodString;
1995
+ mime: z.ZodString;
1996
+ size: z.ZodNumber;
1997
+ path: z.ZodString;
1998
+ }, z.core.$strip>>>;
1999
+ createdAt: z.ZodNumber;
2000
+ }, z.core.$strip>>>;
2001
+ queuePaused: z.ZodOptional<z.ZodBoolean>;
2002
+ background: z.ZodOptional<z.ZodArray<z.ZodObject<{
2003
+ id: z.ZodString;
2004
+ kind: z.ZodEnum<{
2005
+ monitor: "monitor";
2006
+ shell: "shell";
2007
+ }>;
2008
+ description: z.ZodString;
2009
+ command: z.ZodNullable<z.ZodString>;
2010
+ startedAt: z.ZodNumber;
2011
+ }, z.core.$strip>>>;
2012
+ delegating: z.ZodOptional<z.ZodBoolean>;
2013
+ usage: z.ZodObject<{
2014
+ contextTokens: z.ZodNumber;
2015
+ contextWindow: z.ZodNullable<z.ZodNumber>;
2016
+ costUsd: z.ZodNumber;
2017
+ turns: z.ZodNumber;
2018
+ breakdown: z.ZodOptional<z.ZodObject<{
2019
+ toolOutput: z.ZodNumber;
2020
+ filesRead: z.ZodNumber;
2021
+ conversation: z.ZodNumber;
2022
+ system: z.ZodNumber;
2023
+ }, z.core.$strip>>;
2024
+ }, z.core.$strip>;
2025
+ suggestedTitle: z.ZodOptional<z.ZodString>;
2026
+ hidden: z.ZodOptional<z.ZodBoolean>;
2027
+ forkOf: z.ZodOptional<z.ZodObject<{
2028
+ chatId: z.ZodString;
2029
+ turnId: z.ZodString;
2030
+ at: z.ZodNumber;
2031
+ }, z.core.$strip>>;
2032
+ resumeAtReset: z.ZodOptional<z.ZodBoolean>;
2033
+ limit: z.ZodOptional<z.ZodObject<{
2034
+ kind: z.ZodEnum<{
2035
+ overload: "overload";
2036
+ usage: "usage";
2037
+ }>;
2038
+ resetsAt: z.ZodOptional<z.ZodNumber>;
2039
+ }, z.core.$strip>>;
2040
+ resumeAt: z.ZodOptional<z.ZodNumber>;
2041
+ requests: z.ZodOptional<z.ZodArray<z.ZodObject<{
2042
+ requestId: z.ZodString;
2043
+ itemId: z.ZodString;
2044
+ kind: z.ZodEnum<{
2045
+ approval: "approval";
2046
+ question: "question";
2047
+ }>;
2048
+ createdAt: z.ZodNumber;
2049
+ approval: z.ZodOptional<z.ZodObject<{
2050
+ toolName: z.ZodString;
2051
+ subject: z.ZodString;
2052
+ description: z.ZodNullable<z.ZodString>;
2053
+ path: z.ZodOptional<z.ZodString>;
2054
+ files: z.ZodOptional<z.ZodNumber>;
2055
+ diff: z.ZodOptional<z.ZodString>;
2056
+ command: z.ZodOptional<z.ZodString>;
2057
+ truncated: z.ZodOptional<z.ZodBoolean>;
2058
+ canAllowAlways: z.ZodBoolean;
2059
+ allowAlways: z.ZodOptional<z.ZodObject<{
2060
+ label: z.ZodString;
2061
+ description: z.ZodString;
2062
+ }, z.core.$strip>>;
2063
+ }, z.core.$strip>>;
2064
+ question: z.ZodOptional<z.ZodObject<{
2065
+ questions: z.ZodArray<z.ZodObject<{
2066
+ id: z.ZodString;
2067
+ header: z.ZodString;
2068
+ question: z.ZodString;
2069
+ choices: z.ZodArray<z.ZodObject<{
2070
+ label: z.ZodString;
2071
+ description: z.ZodString;
2072
+ }, z.core.$strip>>;
2073
+ multiSelect: z.ZodBoolean;
2074
+ }, z.core.$strip>>;
2075
+ async: z.ZodOptional<z.ZodBoolean>;
2076
+ }, z.core.$strip>>;
2077
+ }, z.core.$strip>>>;
2078
+ createdAt: z.ZodNumber;
2079
+ }, z.core.$strip>;
2080
+ };
2081
+ readonly 'chat.setPreferences': {
2082
+ readonly payload: z.ZodObject<{
2083
+ runtimeMode: z.ZodOptional<z.ZodEnum<{
2084
+ auto: "auto";
2085
+ "auto-accept-edits": "auto-accept-edits";
2086
+ "full-access": "full-access";
2087
+ supervised: "supervised";
2088
+ }>>;
2089
+ terminalRuntimeMode: z.ZodOptional<z.ZodEnum<{
2090
+ auto: "auto";
2091
+ "auto-accept-edits": "auto-accept-edits";
2092
+ "full-access": "full-access";
2093
+ supervised: "supervised";
2094
+ }>>;
2095
+ selections: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
2096
+ apple: "apple";
2097
+ claude: "claude";
2098
+ codex: "codex";
2099
+ copilot: "copilot";
2100
+ gemini: "gemini";
2101
+ }> & z.core.$partial, z.ZodObject<{
2102
+ model: z.ZodString;
2103
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
2104
+ }, z.core.$strip>>>;
2105
+ accounts: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
2106
+ apple: "apple";
2107
+ claude: "claude";
2108
+ codex: "codex";
2109
+ copilot: "copilot";
2110
+ gemini: "gemini";
2111
+ }> & z.core.$partial, z.ZodString>>;
2112
+ changedAt: z.ZodOptional<z.ZodNumber>;
2113
+ }, z.core.$strip>;
2114
+ readonly result: z.ZodObject<{}, z.core.$strip>;
2115
+ };
2116
+ readonly 'chat.compact': {
2117
+ readonly payload: z.ZodObject<{
2118
+ chatId: z.ZodString;
2119
+ }, z.core.$strip>;
2120
+ readonly result: z.ZodObject<{}, z.core.$strip>;
2121
+ };
2122
+ readonly 'chat.clear': {
2123
+ readonly payload: z.ZodObject<{
2124
+ chatId: z.ZodString;
2125
+ force: z.ZodOptional<z.ZodBoolean>;
2126
+ }, z.core.$strip>;
2127
+ readonly result: z.ZodObject<{}, z.core.$strip>;
2128
+ };
2129
+ readonly 'chat.turnDiff': {
2130
+ readonly payload: z.ZodObject<{
2131
+ chatId: z.ZodString;
2132
+ turnId: z.ZodString;
2133
+ }, z.core.$strip>;
2134
+ readonly result: z.ZodObject<{
2135
+ diff: z.ZodNullable<z.ZodObject<{
2136
+ files: z.ZodArray<z.ZodObject<{
2137
+ path: z.ZodString;
2138
+ kind: z.ZodEnum<{
2139
+ add: "add";
2140
+ delete: "delete";
2141
+ update: "update";
2142
+ }>;
2143
+ added: z.ZodNumber;
2144
+ deleted: z.ZodNumber;
2145
+ diff: z.ZodString;
2146
+ omitted: z.ZodOptional<z.ZodEnum<{
2147
+ binary: "binary";
2148
+ "too-large": "too-large";
2149
+ }>>;
2150
+ }, z.core.$strip>>;
2151
+ truncated: z.ZodBoolean;
2152
+ }, z.core.$strip>>;
2153
+ }, z.core.$strip>;
2154
+ };
2155
+ readonly 'chat.fork': {
2156
+ readonly payload: z.ZodObject<{
2157
+ chatId: z.ZodString;
2158
+ turnId: z.ZodString;
2159
+ title: z.ZodOptional<z.ZodString>;
2160
+ viewId: z.ZodOptional<z.ZodString>;
2161
+ asView: z.ZodOptional<z.ZodBoolean>;
2162
+ worktree: z.ZodOptional<z.ZodObject<{
2163
+ branch: z.ZodOptional<z.ZodString>;
2164
+ }, z.core.$strip>>;
2165
+ filesAfterTurn: z.ZodOptional<z.ZodBoolean>;
2166
+ provider: z.ZodOptional<z.ZodEnum<{
2167
+ apple: "apple";
2168
+ claude: "claude";
2169
+ codex: "codex";
2170
+ copilot: "copilot";
2171
+ gemini: "gemini";
2172
+ }>>;
2173
+ selection: z.ZodOptional<z.ZodObject<{
2174
+ model: z.ZodString;
2175
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
2176
+ }, z.core.$strip>>;
2177
+ account: z.ZodOptional<z.ZodString>;
2178
+ }, z.core.$strip>;
2179
+ readonly result: z.ZodObject<{
2180
+ info: z.ZodObject<{
2181
+ chatId: z.ZodString;
2182
+ provider: z.ZodEnum<{
2183
+ apple: "apple";
2184
+ claude: "claude";
2185
+ codex: "codex";
2186
+ copilot: "copilot";
2187
+ gemini: "gemini";
2188
+ }>;
2189
+ account: z.ZodOptional<z.ZodString>;
2190
+ cwd: z.ZodString;
2191
+ agentSessionId: z.ZodNullable<z.ZodString>;
2192
+ model: z.ZodNullable<z.ZodString>;
2193
+ selection: z.ZodObject<{
2194
+ model: z.ZodString;
2195
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
2196
+ }, z.core.$strip>;
2197
+ runtimeMode: z.ZodEnum<{
2198
+ auto: "auto";
2199
+ "auto-accept-edits": "auto-accept-edits";
2200
+ "full-access": "full-access";
2201
+ supervised: "supervised";
2202
+ }>;
2203
+ effectiveRuntimeMode: z.ZodOptional<z.ZodEnum<{
2204
+ auto: "auto";
2205
+ "auto-accept-edits": "auto-accept-edits";
2206
+ "full-access": "full-access";
2207
+ supervised: "supervised";
2208
+ }>>;
2209
+ permissionMode: z.ZodOptional<z.ZodString>;
2210
+ status: z.ZodEnum<{
2211
+ error: "error";
2212
+ exited: "exited";
2213
+ idle: "idle";
2214
+ "needs-you": "needs-you";
2215
+ running: "running";
2216
+ }>;
2217
+ running: z.ZodBoolean;
2218
+ activeTurnId: z.ZodNullable<z.ZodString>;
2219
+ slashCommands: z.ZodArray<z.ZodString>;
2220
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
2221
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
2222
+ id: z.ZodString;
2223
+ turnId: z.ZodOptional<z.ZodString>;
2224
+ text: z.ZodString;
2225
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2226
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
2227
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
2228
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2229
+ id: z.ZodString;
2230
+ name: z.ZodString;
2231
+ mime: z.ZodString;
2232
+ size: z.ZodNumber;
2233
+ path: z.ZodString;
2234
+ }, z.core.$strip>>>;
2235
+ createdAt: z.ZodNumber;
2236
+ }, z.core.$strip>>>;
2237
+ queuePaused: z.ZodOptional<z.ZodBoolean>;
2238
+ background: z.ZodOptional<z.ZodArray<z.ZodObject<{
2239
+ id: z.ZodString;
2240
+ kind: z.ZodEnum<{
2241
+ monitor: "monitor";
2242
+ shell: "shell";
2243
+ }>;
2244
+ description: z.ZodString;
2245
+ command: z.ZodNullable<z.ZodString>;
2246
+ startedAt: z.ZodNumber;
2247
+ }, z.core.$strip>>>;
2248
+ delegating: z.ZodOptional<z.ZodBoolean>;
2249
+ usage: z.ZodObject<{
2250
+ contextTokens: z.ZodNumber;
2251
+ contextWindow: z.ZodNullable<z.ZodNumber>;
2252
+ costUsd: z.ZodNumber;
2253
+ turns: z.ZodNumber;
2254
+ breakdown: z.ZodOptional<z.ZodObject<{
2255
+ toolOutput: z.ZodNumber;
2256
+ filesRead: z.ZodNumber;
2257
+ conversation: z.ZodNumber;
2258
+ system: z.ZodNumber;
2259
+ }, z.core.$strip>>;
2260
+ }, z.core.$strip>;
2261
+ suggestedTitle: z.ZodOptional<z.ZodString>;
2262
+ hidden: z.ZodOptional<z.ZodBoolean>;
2263
+ forkOf: z.ZodOptional<z.ZodObject<{
2264
+ chatId: z.ZodString;
2265
+ turnId: z.ZodString;
2266
+ at: z.ZodNumber;
2267
+ }, z.core.$strip>>;
2268
+ resumeAtReset: z.ZodOptional<z.ZodBoolean>;
2269
+ limit: z.ZodOptional<z.ZodObject<{
2270
+ kind: z.ZodEnum<{
2271
+ overload: "overload";
2272
+ usage: "usage";
2273
+ }>;
2274
+ resetsAt: z.ZodOptional<z.ZodNumber>;
2275
+ }, z.core.$strip>>;
2276
+ resumeAt: z.ZodOptional<z.ZodNumber>;
2277
+ requests: z.ZodOptional<z.ZodArray<z.ZodObject<{
2278
+ requestId: z.ZodString;
2279
+ itemId: z.ZodString;
2280
+ kind: z.ZodEnum<{
2281
+ approval: "approval";
2282
+ question: "question";
2283
+ }>;
2284
+ createdAt: z.ZodNumber;
2285
+ approval: z.ZodOptional<z.ZodObject<{
2286
+ toolName: z.ZodString;
2287
+ subject: z.ZodString;
2288
+ description: z.ZodNullable<z.ZodString>;
2289
+ path: z.ZodOptional<z.ZodString>;
2290
+ files: z.ZodOptional<z.ZodNumber>;
2291
+ diff: z.ZodOptional<z.ZodString>;
2292
+ command: z.ZodOptional<z.ZodString>;
2293
+ truncated: z.ZodOptional<z.ZodBoolean>;
2294
+ canAllowAlways: z.ZodBoolean;
2295
+ allowAlways: z.ZodOptional<z.ZodObject<{
2296
+ label: z.ZodString;
2297
+ description: z.ZodString;
2298
+ }, z.core.$strip>>;
2299
+ }, z.core.$strip>>;
2300
+ question: z.ZodOptional<z.ZodObject<{
2301
+ questions: z.ZodArray<z.ZodObject<{
2302
+ id: z.ZodString;
2303
+ header: z.ZodString;
2304
+ question: z.ZodString;
2305
+ choices: z.ZodArray<z.ZodObject<{
2306
+ label: z.ZodString;
2307
+ description: z.ZodString;
2308
+ }, z.core.$strip>>;
2309
+ multiSelect: z.ZodBoolean;
2310
+ }, z.core.$strip>>;
2311
+ async: z.ZodOptional<z.ZodBoolean>;
2312
+ }, z.core.$strip>>;
2313
+ }, z.core.$strip>>>;
2314
+ createdAt: z.ZodNumber;
2315
+ }, z.core.$strip>;
2316
+ nodeId: z.ZodString;
2317
+ viewId: z.ZodString;
2318
+ edgeId: z.ZodNullable<z.ZodString>;
2319
+ worktree: z.ZodOptional<z.ZodObject<{
2320
+ path: z.ZodString;
2321
+ branch: z.ZodString;
2322
+ from: z.ZodOptional<z.ZodObject<{
2323
+ branch: z.ZodOptional<z.ZodString>;
2324
+ commit: z.ZodString;
2325
+ }, z.core.$strip>>;
2326
+ projectId: z.ZodOptional<z.ZodString>;
2327
+ nodeId: z.ZodOptional<z.ZodString>;
2328
+ madeAt: z.ZodOptional<z.ZodNumber>;
2329
+ missing: z.ZodOptional<z.ZodBoolean>;
2330
+ locked: z.ZodOptional<z.ZodBoolean>;
2331
+ work: z.ZodOptional<z.ZodObject<{
2332
+ changed: z.ZodNumber;
2333
+ untracked: z.ZodNumber;
2334
+ ahead: z.ZodNumber;
2335
+ operation: z.ZodOptional<z.ZodString>;
2336
+ behind: z.ZodOptional<z.ZodNumber>;
2337
+ }, z.core.$strip>>;
2338
+ }, z.core.$strip>>;
2339
+ }, z.core.$strip>;
2340
+ };
2341
+ readonly 'chat.continueOn': {
2342
+ readonly payload: z.ZodObject<{
2343
+ chatId: z.ZodString;
2344
+ account: z.ZodString;
2345
+ }, z.core.$strip>;
2346
+ readonly result: z.ZodObject<{
2347
+ chatId: z.ZodString;
2348
+ fork: z.ZodOptional<z.ZodObject<{
2349
+ info: z.ZodObject<{
2350
+ chatId: z.ZodString;
2351
+ provider: z.ZodEnum<{
2352
+ apple: "apple";
2353
+ claude: "claude";
2354
+ codex: "codex";
2355
+ copilot: "copilot";
2356
+ gemini: "gemini";
2357
+ }>;
2358
+ account: z.ZodOptional<z.ZodString>;
2359
+ cwd: z.ZodString;
2360
+ agentSessionId: z.ZodNullable<z.ZodString>;
2361
+ model: z.ZodNullable<z.ZodString>;
2362
+ selection: z.ZodObject<{
2363
+ model: z.ZodString;
2364
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
2365
+ }, z.core.$strip>;
2366
+ runtimeMode: z.ZodEnum<{
2367
+ auto: "auto";
2368
+ "auto-accept-edits": "auto-accept-edits";
2369
+ "full-access": "full-access";
2370
+ supervised: "supervised";
2371
+ }>;
2372
+ effectiveRuntimeMode: z.ZodOptional<z.ZodEnum<{
2373
+ auto: "auto";
2374
+ "auto-accept-edits": "auto-accept-edits";
2375
+ "full-access": "full-access";
2376
+ supervised: "supervised";
2377
+ }>>;
2378
+ permissionMode: z.ZodOptional<z.ZodString>;
2379
+ status: z.ZodEnum<{
2380
+ error: "error";
2381
+ exited: "exited";
2382
+ idle: "idle";
2383
+ "needs-you": "needs-you";
2384
+ running: "running";
2385
+ }>;
2386
+ running: z.ZodBoolean;
2387
+ activeTurnId: z.ZodNullable<z.ZodString>;
2388
+ slashCommands: z.ZodArray<z.ZodString>;
2389
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
2390
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
2391
+ id: z.ZodString;
2392
+ turnId: z.ZodOptional<z.ZodString>;
2393
+ text: z.ZodString;
2394
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2395
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
2396
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
2397
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2398
+ id: z.ZodString;
2399
+ name: z.ZodString;
2400
+ mime: z.ZodString;
2401
+ size: z.ZodNumber;
2402
+ path: z.ZodString;
2403
+ }, z.core.$strip>>>;
2404
+ createdAt: z.ZodNumber;
2405
+ }, z.core.$strip>>>;
2406
+ queuePaused: z.ZodOptional<z.ZodBoolean>;
2407
+ background: z.ZodOptional<z.ZodArray<z.ZodObject<{
2408
+ id: z.ZodString;
2409
+ kind: z.ZodEnum<{
2410
+ monitor: "monitor";
2411
+ shell: "shell";
2412
+ }>;
2413
+ description: z.ZodString;
2414
+ command: z.ZodNullable<z.ZodString>;
2415
+ startedAt: z.ZodNumber;
2416
+ }, z.core.$strip>>>;
2417
+ delegating: z.ZodOptional<z.ZodBoolean>;
2418
+ usage: z.ZodObject<{
2419
+ contextTokens: z.ZodNumber;
2420
+ contextWindow: z.ZodNullable<z.ZodNumber>;
2421
+ costUsd: z.ZodNumber;
2422
+ turns: z.ZodNumber;
2423
+ breakdown: z.ZodOptional<z.ZodObject<{
2424
+ toolOutput: z.ZodNumber;
2425
+ filesRead: z.ZodNumber;
2426
+ conversation: z.ZodNumber;
2427
+ system: z.ZodNumber;
2428
+ }, z.core.$strip>>;
2429
+ }, z.core.$strip>;
2430
+ suggestedTitle: z.ZodOptional<z.ZodString>;
2431
+ hidden: z.ZodOptional<z.ZodBoolean>;
2432
+ forkOf: z.ZodOptional<z.ZodObject<{
2433
+ chatId: z.ZodString;
2434
+ turnId: z.ZodString;
2435
+ at: z.ZodNumber;
2436
+ }, z.core.$strip>>;
2437
+ resumeAtReset: z.ZodOptional<z.ZodBoolean>;
2438
+ limit: z.ZodOptional<z.ZodObject<{
2439
+ kind: z.ZodEnum<{
2440
+ overload: "overload";
2441
+ usage: "usage";
2442
+ }>;
2443
+ resetsAt: z.ZodOptional<z.ZodNumber>;
2444
+ }, z.core.$strip>>;
2445
+ resumeAt: z.ZodOptional<z.ZodNumber>;
2446
+ requests: z.ZodOptional<z.ZodArray<z.ZodObject<{
2447
+ requestId: z.ZodString;
2448
+ itemId: z.ZodString;
2449
+ kind: z.ZodEnum<{
2450
+ approval: "approval";
2451
+ question: "question";
2452
+ }>;
2453
+ createdAt: z.ZodNumber;
2454
+ approval: z.ZodOptional<z.ZodObject<{
2455
+ toolName: z.ZodString;
2456
+ subject: z.ZodString;
2457
+ description: z.ZodNullable<z.ZodString>;
2458
+ path: z.ZodOptional<z.ZodString>;
2459
+ files: z.ZodOptional<z.ZodNumber>;
2460
+ diff: z.ZodOptional<z.ZodString>;
2461
+ command: z.ZodOptional<z.ZodString>;
2462
+ truncated: z.ZodOptional<z.ZodBoolean>;
2463
+ canAllowAlways: z.ZodBoolean;
2464
+ allowAlways: z.ZodOptional<z.ZodObject<{
2465
+ label: z.ZodString;
2466
+ description: z.ZodString;
2467
+ }, z.core.$strip>>;
2468
+ }, z.core.$strip>>;
2469
+ question: z.ZodOptional<z.ZodObject<{
2470
+ questions: z.ZodArray<z.ZodObject<{
2471
+ id: z.ZodString;
2472
+ header: z.ZodString;
2473
+ question: z.ZodString;
2474
+ choices: z.ZodArray<z.ZodObject<{
2475
+ label: z.ZodString;
2476
+ description: z.ZodString;
2477
+ }, z.core.$strip>>;
2478
+ multiSelect: z.ZodBoolean;
2479
+ }, z.core.$strip>>;
2480
+ async: z.ZodOptional<z.ZodBoolean>;
2481
+ }, z.core.$strip>>;
2482
+ }, z.core.$strip>>>;
2483
+ createdAt: z.ZodNumber;
2484
+ }, z.core.$strip>;
2485
+ nodeId: z.ZodString;
2486
+ viewId: z.ZodString;
2487
+ edgeId: z.ZodNullable<z.ZodString>;
2488
+ worktree: z.ZodOptional<z.ZodObject<{
2489
+ path: z.ZodString;
2490
+ branch: z.ZodString;
2491
+ from: z.ZodOptional<z.ZodObject<{
2492
+ branch: z.ZodOptional<z.ZodString>;
2493
+ commit: z.ZodString;
2494
+ }, z.core.$strip>>;
2495
+ projectId: z.ZodOptional<z.ZodString>;
2496
+ nodeId: z.ZodOptional<z.ZodString>;
2497
+ madeAt: z.ZodOptional<z.ZodNumber>;
2498
+ missing: z.ZodOptional<z.ZodBoolean>;
2499
+ locked: z.ZodOptional<z.ZodBoolean>;
2500
+ work: z.ZodOptional<z.ZodObject<{
2501
+ changed: z.ZodNumber;
2502
+ untracked: z.ZodNumber;
2503
+ ahead: z.ZodNumber;
2504
+ operation: z.ZodOptional<z.ZodString>;
2505
+ behind: z.ZodOptional<z.ZodNumber>;
2506
+ }, z.core.$strip>>;
2507
+ }, z.core.$strip>>;
2508
+ }, z.core.$strip>>;
2509
+ }, z.core.$strip>;
2510
+ };
2511
+ readonly 'chat.forkInfo': {
2512
+ readonly payload: z.ZodObject<{
2513
+ chatId: z.ZodString;
2514
+ turnId: z.ZodString;
2515
+ }, z.core.$strip>;
2516
+ readonly result: z.ZodObject<{
2517
+ repository: z.ZodBoolean;
2518
+ branches: z.ZodArray<z.ZodString>;
2519
+ branch: z.ZodNullable<z.ZodString>;
2520
+ filesAfterTurn: z.ZodBoolean;
2521
+ }, z.core.$strip>;
2522
+ };
2523
+ readonly 'chat.summarize': {
2524
+ readonly payload: z.ZodObject<{
2525
+ chatId: z.ZodString;
2526
+ }, z.core.$strip>;
2527
+ readonly result: z.ZodObject<{
2528
+ turnId: z.ZodString;
2529
+ }, z.core.$strip>;
2530
+ };
2531
+ readonly 'chat.subagent': {
2532
+ readonly payload: z.ZodObject<{
2533
+ chatId: z.ZodString;
2534
+ toolUseId: z.ZodString;
2535
+ cursor: z.ZodOptional<z.ZodString>;
2536
+ limit: z.ZodOptional<z.ZodNumber>;
2537
+ watch: z.ZodOptional<z.ZodBoolean>;
2538
+ }, z.core.$strip>;
2539
+ readonly result: z.ZodObject<{
2540
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2541
+ id: z.ZodString;
2542
+ createdAt: z.ZodNumber;
2543
+ turnId: z.ZodNullable<z.ZodString>;
2544
+ kind: z.ZodLiteral<"user">;
2545
+ text: z.ZodString;
2546
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2547
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
2548
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
2549
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2550
+ id: z.ZodString;
2551
+ name: z.ZodString;
2552
+ mime: z.ZodString;
2553
+ size: z.ZodNumber;
2554
+ path: z.ZodString;
2555
+ }, z.core.$strip>>>;
2556
+ }, z.core.$strip>, z.ZodObject<{
2557
+ id: z.ZodString;
2558
+ createdAt: z.ZodNumber;
2559
+ turnId: z.ZodNullable<z.ZodString>;
2560
+ kind: z.ZodLiteral<"assistant">;
2561
+ text: z.ZodString;
2562
+ streaming: z.ZodBoolean;
2563
+ parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2564
+ }, z.core.$strip>, z.ZodObject<{
2565
+ id: z.ZodString;
2566
+ createdAt: z.ZodNumber;
2567
+ turnId: z.ZodNullable<z.ZodString>;
2568
+ kind: z.ZodLiteral<"thinking">;
2569
+ text: z.ZodString;
2570
+ streaming: z.ZodBoolean;
2571
+ endedAt: z.ZodNullable<z.ZodNumber>;
2572
+ }, z.core.$strip>, z.ZodObject<{
2573
+ id: z.ZodString;
2574
+ createdAt: z.ZodNumber;
2575
+ turnId: z.ZodNullable<z.ZodString>;
2576
+ kind: z.ZodLiteral<"tool">;
2577
+ toolUseId: z.ZodString;
2578
+ name: z.ZodString;
2579
+ input: z.ZodUnknown;
2580
+ output: z.ZodNullable<z.ZodString>;
2581
+ state: z.ZodEnum<{
2582
+ done: "done";
2583
+ error: "error";
2584
+ running: "running";
2585
+ }>;
2586
+ parentToolUseId: z.ZodNullable<z.ZodString>;
2587
+ progress: z.ZodOptional<z.ZodObject<{
2588
+ startedAt: z.ZodNullable<z.ZodNumber>;
2589
+ description: z.ZodNullable<z.ZodString>;
2590
+ output: z.ZodNullable<z.ZodString>;
2591
+ }, z.core.$strip>>;
2592
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2593
+ path: z.ZodString;
2594
+ kind: z.ZodEnum<{
2595
+ add: "add";
2596
+ delete: "delete";
2597
+ update: "update";
2598
+ }>;
2599
+ diff: z.ZodString;
2600
+ }, z.core.$strip>>>;
2601
+ workflow: z.ZodOptional<z.ZodObject<{
2602
+ name: z.ZodNullable<z.ZodString>;
2603
+ taskId: z.ZodOptional<z.ZodString>;
2604
+ phases: z.ZodArray<z.ZodObject<{
2605
+ index: z.ZodNumber;
2606
+ title: z.ZodString;
2607
+ }, z.core.$strip>>;
2608
+ agents: z.ZodArray<z.ZodObject<{
2609
+ index: z.ZodNumber;
2610
+ label: z.ZodString;
2611
+ phaseIndex: z.ZodNullable<z.ZodNumber>;
2612
+ agentId: z.ZodNullable<z.ZodString>;
2613
+ status: z.ZodEnum<{
2614
+ done: "done";
2615
+ failed: "failed";
2616
+ running: "running";
2617
+ }>;
2618
+ startedAt: z.ZodNullable<z.ZodNumber>;
2619
+ durationMs: z.ZodNullable<z.ZodNumber>;
2620
+ lastTool: z.ZodNullable<z.ZodString>;
2621
+ }, z.core.$strip>>;
2622
+ lastProgressAt: z.ZodOptional<z.ZodNumber>;
2623
+ stalledAt: z.ZodOptional<z.ZodNumber>;
2624
+ }, z.core.$strip>>;
2625
+ }, z.core.$strip>, z.ZodObject<{
2626
+ id: z.ZodString;
2627
+ createdAt: z.ZodNumber;
2628
+ turnId: z.ZodNullable<z.ZodString>;
2629
+ kind: z.ZodLiteral<"subagent">;
2630
+ toolUseId: z.ZodString;
2631
+ description: z.ZodString;
2632
+ subagentType: z.ZodNullable<z.ZodString>;
2633
+ model: z.ZodOptional<z.ZodString>;
2634
+ prompt: z.ZodNullable<z.ZodString>;
2635
+ background: z.ZodBoolean;
2636
+ status: z.ZodEnum<{
2637
+ done: "done";
2638
+ failed: "failed";
2639
+ running: "running";
2640
+ }>;
2641
+ startedAt: z.ZodNumber;
2642
+ finishedAt: z.ZodNullable<z.ZodNumber>;
2643
+ summary: z.ZodNullable<z.ZodString>;
2644
+ result: z.ZodNullable<z.ZodString>;
2645
+ usage: z.ZodNullable<z.ZodObject<{
2646
+ totalTokens: z.ZodNumber;
2647
+ toolUses: z.ZodNumber;
2648
+ durationMs: z.ZodNumber;
2649
+ }, z.core.$strip>>;
2650
+ lastTool: z.ZodNullable<z.ZodString>;
2651
+ outputFile: z.ZodOptional<z.ZodString>;
2652
+ itemsTruncated: z.ZodBoolean;
2653
+ native: z.ZodOptional<z.ZodObject<{
2654
+ agentId: z.ZodOptional<z.ZodString>;
2655
+ threadId: z.ZodOptional<z.ZodString>;
2656
+ }, z.core.$strip>>;
2657
+ origin: z.ZodOptional<z.ZodEnum<{
2658
+ native: "native";
2659
+ ruimte: "ruimte";
2660
+ }>>;
2661
+ childId: z.ZodOptional<z.ZodString>;
2662
+ parentToolUseId: z.ZodOptional<z.ZodString>;
2663
+ }, z.core.$strip>, z.ZodObject<{
2664
+ id: z.ZodString;
2665
+ createdAt: z.ZodNumber;
2666
+ turnId: z.ZodNullable<z.ZodString>;
2667
+ kind: z.ZodLiteral<"approval">;
2668
+ requestId: z.ZodString;
2669
+ toolUseId: z.ZodNullable<z.ZodString>;
2670
+ toolName: z.ZodString;
2671
+ input: z.ZodUnknown;
2672
+ description: z.ZodNullable<z.ZodString>;
2673
+ canAllowAlways: z.ZodBoolean;
2674
+ allowAlways: z.ZodOptional<z.ZodObject<{
2675
+ label: z.ZodString;
2676
+ description: z.ZodString;
2677
+ }, z.core.$strip>>;
2678
+ decision: z.ZodEnum<{
2679
+ allow: "allow";
2680
+ "allow-always": "allow-always";
2681
+ cancelled: "cancelled";
2682
+ deny: "deny";
2683
+ pending: "pending";
2684
+ }>;
2685
+ }, z.core.$strip>, z.ZodObject<{
2686
+ id: z.ZodString;
2687
+ createdAt: z.ZodNumber;
2688
+ turnId: z.ZodNullable<z.ZodString>;
2689
+ kind: z.ZodLiteral<"question">;
2690
+ requestId: z.ZodString;
2691
+ questions: z.ZodArray<z.ZodObject<{
2692
+ id: z.ZodString;
2693
+ header: z.ZodString;
2694
+ question: z.ZodString;
2695
+ choices: z.ZodArray<z.ZodObject<{
2696
+ label: z.ZodString;
2697
+ description: z.ZodString;
2698
+ }, z.core.$strip>>;
2699
+ multiSelect: z.ZodBoolean;
2700
+ }, z.core.$strip>>;
2701
+ async: z.ZodOptional<z.ZodBoolean>;
2702
+ answers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
2703
+ state: z.ZodEnum<{
2704
+ answered: "answered";
2705
+ cancelled: "cancelled";
2706
+ dismissed: "dismissed";
2707
+ pending: "pending";
2708
+ }>;
2709
+ }, z.core.$strip>, z.ZodObject<{
2710
+ id: z.ZodString;
2711
+ createdAt: z.ZodNumber;
2712
+ turnId: z.ZodNullable<z.ZodString>;
2713
+ kind: z.ZodLiteral<"turn">;
2714
+ state: z.ZodEnum<{
2715
+ aborted: "aborted";
2716
+ done: "done";
2717
+ error: "error";
2718
+ running: "running";
2719
+ }>;
2720
+ origin: z.ZodOptional<z.ZodEnum<{
2721
+ agent: "agent";
2722
+ user: "user";
2723
+ }>>;
2724
+ label: z.ZodOptional<z.ZodString>;
2725
+ taskToolUseId: z.ZodOptional<z.ZodString>;
2726
+ endedAt: z.ZodNullable<z.ZodNumber>;
2727
+ costUsd: z.ZodNumber;
2728
+ checkpoint: z.ZodOptional<z.ZodString>;
2729
+ checkpointDiff: z.ZodOptional<z.ZodObject<{
2730
+ files: z.ZodArray<z.ZodObject<{
2731
+ path: z.ZodString;
2732
+ kind: z.ZodEnum<{
2733
+ add: "add";
2734
+ delete: "delete";
2735
+ update: "update";
2736
+ }>;
2737
+ added: z.ZodNumber;
2738
+ deleted: z.ZodNumber;
2739
+ diff: z.ZodString;
2740
+ omitted: z.ZodOptional<z.ZodEnum<{
2741
+ binary: "binary";
2742
+ "too-large": "too-large";
2743
+ }>>;
2744
+ }, z.core.$strip>>;
2745
+ truncated: z.ZodBoolean;
2746
+ }, z.core.$strip>>;
2747
+ attempt: z.ZodOptional<z.ZodNumber>;
2748
+ resumePending: z.ZodOptional<z.ZodBoolean>;
2749
+ deliveryPending: z.ZodOptional<z.ZodBoolean>;
2750
+ taskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2751
+ messageFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
2752
+ native: z.ZodOptional<z.ZodObject<{
2753
+ turnId: z.ZodOptional<z.ZodString>;
2754
+ lastUuid: z.ZodOptional<z.ZodString>;
2755
+ }, z.core.$strip>>;
2756
+ checkpointAfter: z.ZodOptional<z.ZodString>;
2757
+ summaryFor: z.ZodOptional<z.ZodString>;
2758
+ limit: z.ZodOptional<z.ZodObject<{
2759
+ kind: z.ZodEnum<{
2760
+ overload: "overload";
2761
+ usage: "usage";
2762
+ }>;
2763
+ resetsAt: z.ZodOptional<z.ZodNumber>;
2764
+ }, z.core.$strip>>;
2765
+ }, z.core.$strip>, z.ZodObject<{
2766
+ id: z.ZodString;
2767
+ createdAt: z.ZodNumber;
2768
+ turnId: z.ZodNullable<z.ZodString>;
2769
+ kind: z.ZodLiteral<"note">;
2770
+ level: z.ZodEnum<{
2771
+ error: "error";
2772
+ info: "info";
2773
+ warning: "warning";
2774
+ }>;
2775
+ text: z.ZodString;
2776
+ from: z.ZodOptional<z.ZodString>;
2777
+ }, z.core.$strip>, z.ZodObject<{
2778
+ id: z.ZodString;
2779
+ createdAt: z.ZodNumber;
2780
+ turnId: z.ZodNullable<z.ZodString>;
2781
+ kind: z.ZodLiteral<"compaction">;
2782
+ preTokens: z.ZodNullable<z.ZodNumber>;
2783
+ }, z.core.$strip>], "kind">>;
2784
+ history: z.ZodObject<{
2785
+ start: z.ZodOptional<z.ZodNumber>;
2786
+ cursor: z.ZodNullable<z.ZodString>;
2787
+ }, z.core.$strip>;
2788
+ source: z.ZodEnum<{
2789
+ "claude-transcript": "claude-transcript";
2790
+ "codex-thread": "codex-thread";
2791
+ }>;
2792
+ context: z.ZodOptional<z.ZodObject<{
2793
+ provider: z.ZodEnum<{
2794
+ apple: "apple";
2795
+ claude: "claude";
2796
+ codex: "codex";
2797
+ copilot: "copilot";
2798
+ gemini: "gemini";
2799
+ }>;
2800
+ cwd: z.ZodString;
2801
+ chatId: z.ZodOptional<z.ZodString>;
2802
+ }, z.core.$strip>>;
2803
+ live: z.ZodBoolean;
2804
+ }, z.core.$strip>;
2805
+ };
2806
+ readonly 'chat.stopSubagent': {
2807
+ readonly payload: z.ZodObject<{
2808
+ chatId: z.ZodString;
2809
+ toolUseId: z.ZodString;
2810
+ }, z.core.$strip>;
2811
+ readonly result: z.ZodObject<{}, z.core.$strip>;
2812
+ };
2813
+ readonly 'chat.stopTask': {
2814
+ readonly payload: z.ZodObject<{
2815
+ chatId: z.ZodString;
2816
+ taskId: z.ZodString;
2817
+ }, z.core.$strip>;
2818
+ readonly result: z.ZodObject<{}, z.core.$strip>;
2819
+ };
2820
+ readonly 'chat.addBookmark': {
2821
+ readonly payload: z.ZodObject<{
2822
+ chatId: z.ZodString;
2823
+ itemId: z.ZodString;
2824
+ name: z.ZodOptional<z.ZodString>;
2825
+ }, z.core.$strip>;
2826
+ readonly result: z.ZodObject<{
2827
+ bookmarks: z.ZodArray<z.ZodObject<{
2828
+ itemId: z.ZodString;
2829
+ name: z.ZodOptional<z.ZodString>;
2830
+ excerpt: z.ZodString;
2831
+ createdAt: z.ZodNumber;
2832
+ }, z.core.$strip>>;
2833
+ }, z.core.$strip>;
2834
+ };
2835
+ readonly 'chat.renameBookmark': {
2836
+ readonly payload: z.ZodObject<{
2837
+ chatId: z.ZodString;
2838
+ itemId: z.ZodString;
2839
+ name: z.ZodString;
2840
+ }, z.core.$strip>;
2841
+ readonly result: z.ZodObject<{
2842
+ bookmarks: z.ZodArray<z.ZodObject<{
2843
+ itemId: z.ZodString;
2844
+ name: z.ZodOptional<z.ZodString>;
2845
+ excerpt: z.ZodString;
2846
+ createdAt: z.ZodNumber;
2847
+ }, z.core.$strip>>;
2848
+ }, z.core.$strip>;
2849
+ };
2850
+ readonly 'chat.removeBookmark': {
2851
+ readonly payload: z.ZodObject<{
2852
+ chatId: z.ZodString;
2853
+ itemId: z.ZodString;
2854
+ }, z.core.$strip>;
2855
+ readonly result: z.ZodObject<{
2856
+ bookmarks: z.ZodArray<z.ZodObject<{
2857
+ itemId: z.ZodString;
2858
+ name: z.ZodOptional<z.ZodString>;
2859
+ excerpt: z.ZodString;
2860
+ createdAt: z.ZodNumber;
2861
+ }, z.core.$strip>>;
2862
+ }, z.core.$strip>;
2863
+ };
2864
+ readonly 'skills.list': {
2865
+ readonly payload: z.ZodObject<{
2866
+ chatId: z.ZodString;
2867
+ }, z.core.$strip>;
2868
+ readonly result: z.ZodObject<{
2869
+ skills: z.ZodArray<z.ZodObject<{
2870
+ name: z.ZodString;
2871
+ description: z.ZodString;
2872
+ source: z.ZodEnum<{
2873
+ plugin: "plugin";
2874
+ project: "project";
2875
+ user: "user";
2876
+ }>;
2877
+ }, z.core.$strip>>;
2878
+ }, z.core.$strip>;
2879
+ };
2880
+ readonly 'provider.list': {
2881
+ readonly payload: z.ZodObject<{}, z.core.$strip>;
2882
+ readonly result: z.ZodObject<{
2883
+ providers: z.ZodArray<z.ZodObject<{
2884
+ kind: z.ZodEnum<{
2885
+ apple: "apple";
2886
+ claude: "claude";
2887
+ codex: "codex";
2888
+ copilot: "copilot";
2889
+ gemini: "gemini";
2890
+ }>;
2891
+ name: z.ZodString;
2892
+ installed: z.ZodBoolean;
2893
+ version: z.ZodNullable<z.ZodString>;
2894
+ models: z.ZodArray<z.ZodObject<{
2895
+ slug: z.ZodString;
2896
+ name: z.ZodString;
2897
+ badge: z.ZodOptional<z.ZodString>;
2898
+ legacy: z.ZodBoolean;
2899
+ isDefault: z.ZodBoolean;
2900
+ options: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2901
+ id: z.ZodString;
2902
+ label: z.ZodString;
2903
+ type: z.ZodLiteral<"select">;
2904
+ choices: z.ZodArray<z.ZodObject<{
2905
+ id: z.ZodString;
2906
+ label: z.ZodString;
2907
+ description: z.ZodOptional<z.ZodString>;
2908
+ }, z.core.$strip>>;
2909
+ defaultChoice: z.ZodString;
2910
+ }, z.core.$strip>, z.ZodObject<{
2911
+ id: z.ZodString;
2912
+ label: z.ZodString;
2913
+ type: z.ZodLiteral<"boolean">;
2914
+ defaultValue: z.ZodBoolean;
2915
+ description: z.ZodOptional<z.ZodString>;
2916
+ }, z.core.$strip>], "type">>;
2917
+ }, z.core.$strip>>;
2918
+ defaultModel: z.ZodNullable<z.ZodString>;
2919
+ capabilities: z.ZodObject<{
2920
+ chat: z.ZodBoolean;
2921
+ terminal: z.ZodBoolean;
2922
+ hooks: z.ZodBoolean;
2923
+ streamsToolOutput: z.ZodBoolean;
2924
+ diffs: z.ZodEnum<{
2925
+ "before-after": "before-after";
2926
+ none: "none";
2927
+ unified: "unified";
2928
+ }>;
2929
+ attachments: z.ZodBoolean;
2930
+ mentions: z.ZodBoolean;
2931
+ denyReason: z.ZodBoolean;
2932
+ allowAlways: z.ZodBoolean;
2933
+ asyncQuestions: z.ZodBoolean;
2934
+ compaction: z.ZodEnum<{
2935
+ native: "native";
2936
+ none: "none";
2937
+ prompt: "prompt";
2938
+ }>;
2939
+ reportsCost: z.ZodBoolean;
2940
+ reportsContextWindow: z.ZodBoolean;
2941
+ reportsThinking: z.ZodBoolean;
2942
+ slashCommands: z.ZodBoolean;
2943
+ }, z.core.$strip>;
2944
+ resumeCommand: z.ZodString;
2945
+ }, z.core.$strip>>;
2946
+ }, z.core.$strip>;
2947
+ };
2948
+ readonly 'accounts.list': {
2949
+ readonly payload: z.ZodObject<{}, z.core.$strip>;
2950
+ readonly result: z.ZodObject<{
2951
+ accounts: z.ZodRecord<z.ZodString, z.ZodObject<{
2952
+ kind: z.ZodString;
2953
+ label: z.ZodOptional<z.ZodString>;
2954
+ color: z.ZodOptional<z.ZodString>;
2955
+ enabled: z.ZodOptional<z.ZodBoolean>;
2956
+ home: z.ZodOptional<z.ZodString>;
2957
+ shadowHome: z.ZodOptional<z.ZodString>;
2958
+ env: z.ZodOptional<z.ZodArray<z.ZodObject<{
2959
+ name: z.ZodString;
2960
+ value: z.ZodString;
2961
+ sensitive: z.ZodBoolean;
2962
+ valueRedacted: z.ZodOptional<z.ZodBoolean>;
2963
+ }, z.core.$strip>>>;
2964
+ }, z.core.$strip>>;
2965
+ statuses: z.ZodArray<z.ZodObject<{
2966
+ id: z.ZodString;
2967
+ kind: z.ZodString;
2968
+ state: z.ZodEnum<{
2969
+ checking: "checking";
2970
+ disabled: "disabled";
2971
+ failed: "failed";
2972
+ "folder-missing": "folder-missing";
2973
+ "not-found": "not-found";
2974
+ ready: "ready";
2975
+ "signed-out": "signed-out";
2976
+ unavailable: "unavailable";
2977
+ }>;
2978
+ email: z.ZodNullable<z.ZodString>;
2979
+ plan: z.ZodNullable<z.ZodString>;
2980
+ organization: z.ZodNullable<z.ZodString>;
2981
+ home: z.ZodString;
2982
+ transcripts: z.ZodOptional<z.ZodString>;
2983
+ message: z.ZodNullable<z.ZodString>;
2984
+ checkedAt: z.ZodNumber;
2985
+ }, z.core.$strip>>;
2986
+ secretsAvailable: z.ZodOptional<z.ZodBoolean>;
2987
+ loginCommands: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
2988
+ apple: "apple";
2989
+ claude: "claude";
2990
+ codex: "codex";
2991
+ copilot: "copilot";
2992
+ gemini: "gemini";
2993
+ }> & z.core.$partial, z.ZodString>>;
2994
+ }, z.core.$strip>;
2995
+ };
2996
+ readonly 'accounts.save': {
2997
+ readonly payload: z.ZodObject<{
2998
+ accounts: z.ZodRecord<z.ZodString, z.ZodObject<{
2999
+ kind: z.ZodString;
3000
+ label: z.ZodOptional<z.ZodString>;
3001
+ color: z.ZodOptional<z.ZodString>;
3002
+ enabled: z.ZodOptional<z.ZodBoolean>;
3003
+ home: z.ZodOptional<z.ZodString>;
3004
+ shadowHome: z.ZodOptional<z.ZodString>;
3005
+ env: z.ZodOptional<z.ZodArray<z.ZodObject<{
3006
+ name: z.ZodString;
3007
+ value: z.ZodString;
3008
+ sensitive: z.ZodBoolean;
3009
+ valueRedacted: z.ZodOptional<z.ZodBoolean>;
3010
+ }, z.core.$strip>>>;
3011
+ }, z.core.$strip>>;
3012
+ }, z.core.$strip>;
3013
+ readonly result: z.ZodObject<{
3014
+ accounts: z.ZodRecord<z.ZodString, z.ZodObject<{
3015
+ kind: z.ZodString;
3016
+ label: z.ZodOptional<z.ZodString>;
3017
+ color: z.ZodOptional<z.ZodString>;
3018
+ enabled: z.ZodOptional<z.ZodBoolean>;
3019
+ home: z.ZodOptional<z.ZodString>;
3020
+ shadowHome: z.ZodOptional<z.ZodString>;
3021
+ env: z.ZodOptional<z.ZodArray<z.ZodObject<{
3022
+ name: z.ZodString;
3023
+ value: z.ZodString;
3024
+ sensitive: z.ZodBoolean;
3025
+ valueRedacted: z.ZodOptional<z.ZodBoolean>;
3026
+ }, z.core.$strip>>>;
3027
+ }, z.core.$strip>>;
3028
+ statuses: z.ZodArray<z.ZodObject<{
3029
+ id: z.ZodString;
3030
+ kind: z.ZodString;
3031
+ state: z.ZodEnum<{
3032
+ checking: "checking";
3033
+ disabled: "disabled";
3034
+ failed: "failed";
3035
+ "folder-missing": "folder-missing";
3036
+ "not-found": "not-found";
3037
+ ready: "ready";
3038
+ "signed-out": "signed-out";
3039
+ unavailable: "unavailable";
3040
+ }>;
3041
+ email: z.ZodNullable<z.ZodString>;
3042
+ plan: z.ZodNullable<z.ZodString>;
3043
+ organization: z.ZodNullable<z.ZodString>;
3044
+ home: z.ZodString;
3045
+ transcripts: z.ZodOptional<z.ZodString>;
3046
+ message: z.ZodNullable<z.ZodString>;
3047
+ checkedAt: z.ZodNumber;
3048
+ }, z.core.$strip>>;
3049
+ secretsAvailable: z.ZodOptional<z.ZodBoolean>;
3050
+ loginCommands: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
3051
+ apple: "apple";
3052
+ claude: "claude";
3053
+ codex: "codex";
3054
+ copilot: "copilot";
3055
+ gemini: "gemini";
3056
+ }> & z.core.$partial, z.ZodString>>;
3057
+ }, z.core.$strip>;
3058
+ };
3059
+ readonly 'accounts.refresh': {
3060
+ readonly payload: z.ZodObject<{}, z.core.$strip>;
3061
+ readonly result: z.ZodObject<{
3062
+ accounts: z.ZodRecord<z.ZodString, z.ZodObject<{
3063
+ kind: z.ZodString;
3064
+ label: z.ZodOptional<z.ZodString>;
3065
+ color: z.ZodOptional<z.ZodString>;
3066
+ enabled: z.ZodOptional<z.ZodBoolean>;
3067
+ home: z.ZodOptional<z.ZodString>;
3068
+ shadowHome: z.ZodOptional<z.ZodString>;
3069
+ env: z.ZodOptional<z.ZodArray<z.ZodObject<{
3070
+ name: z.ZodString;
3071
+ value: z.ZodString;
3072
+ sensitive: z.ZodBoolean;
3073
+ valueRedacted: z.ZodOptional<z.ZodBoolean>;
3074
+ }, z.core.$strip>>>;
3075
+ }, z.core.$strip>>;
3076
+ statuses: z.ZodArray<z.ZodObject<{
3077
+ id: z.ZodString;
3078
+ kind: z.ZodString;
3079
+ state: z.ZodEnum<{
3080
+ checking: "checking";
3081
+ disabled: "disabled";
3082
+ failed: "failed";
3083
+ "folder-missing": "folder-missing";
3084
+ "not-found": "not-found";
3085
+ ready: "ready";
3086
+ "signed-out": "signed-out";
3087
+ unavailable: "unavailable";
3088
+ }>;
3089
+ email: z.ZodNullable<z.ZodString>;
3090
+ plan: z.ZodNullable<z.ZodString>;
3091
+ organization: z.ZodNullable<z.ZodString>;
3092
+ home: z.ZodString;
3093
+ transcripts: z.ZodOptional<z.ZodString>;
3094
+ message: z.ZodNullable<z.ZodString>;
3095
+ checkedAt: z.ZodNumber;
3096
+ }, z.core.$strip>>;
3097
+ secretsAvailable: z.ZodOptional<z.ZodBoolean>;
3098
+ loginCommands: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
3099
+ apple: "apple";
3100
+ claude: "claude";
3101
+ codex: "codex";
3102
+ copilot: "copilot";
3103
+ gemini: "gemini";
3104
+ }> & z.core.$partial, z.ZodString>>;
3105
+ }, z.core.$strip>;
3106
+ };
3107
+ readonly 'accounts.create': {
3108
+ readonly payload: z.ZodObject<{
3109
+ kind: z.ZodEnum<{
3110
+ apple: "apple";
3111
+ claude: "claude";
3112
+ codex: "codex";
3113
+ copilot: "copilot";
3114
+ gemini: "gemini";
3115
+ }>;
3116
+ label: z.ZodString;
3117
+ color: z.ZodOptional<z.ZodString>;
3118
+ }, z.core.$strip>;
3119
+ readonly result: z.ZodObject<{
3120
+ accounts: z.ZodRecord<z.ZodString, z.ZodObject<{
3121
+ kind: z.ZodString;
3122
+ label: z.ZodOptional<z.ZodString>;
3123
+ color: z.ZodOptional<z.ZodString>;
3124
+ enabled: z.ZodOptional<z.ZodBoolean>;
3125
+ home: z.ZodOptional<z.ZodString>;
3126
+ shadowHome: z.ZodOptional<z.ZodString>;
3127
+ env: z.ZodOptional<z.ZodArray<z.ZodObject<{
3128
+ name: z.ZodString;
3129
+ value: z.ZodString;
3130
+ sensitive: z.ZodBoolean;
3131
+ valueRedacted: z.ZodOptional<z.ZodBoolean>;
3132
+ }, z.core.$strip>>>;
3133
+ }, z.core.$strip>>;
3134
+ statuses: z.ZodArray<z.ZodObject<{
3135
+ id: z.ZodString;
3136
+ kind: z.ZodString;
3137
+ state: z.ZodEnum<{
3138
+ checking: "checking";
3139
+ disabled: "disabled";
3140
+ failed: "failed";
3141
+ "folder-missing": "folder-missing";
3142
+ "not-found": "not-found";
3143
+ ready: "ready";
3144
+ "signed-out": "signed-out";
3145
+ unavailable: "unavailable";
3146
+ }>;
3147
+ email: z.ZodNullable<z.ZodString>;
3148
+ plan: z.ZodNullable<z.ZodString>;
3149
+ organization: z.ZodNullable<z.ZodString>;
3150
+ home: z.ZodString;
3151
+ transcripts: z.ZodOptional<z.ZodString>;
3152
+ message: z.ZodNullable<z.ZodString>;
3153
+ checkedAt: z.ZodNumber;
3154
+ }, z.core.$strip>>;
3155
+ secretsAvailable: z.ZodOptional<z.ZodBoolean>;
3156
+ loginCommands: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
3157
+ apple: "apple";
3158
+ claude: "claude";
3159
+ codex: "codex";
3160
+ copilot: "copilot";
3161
+ gemini: "gemini";
3162
+ }> & z.core.$partial, z.ZodString>>;
3163
+ id: z.ZodString;
3164
+ }, z.core.$strip>;
3165
+ };
3166
+ readonly 'accounts.watchLogin': {
3167
+ readonly payload: z.ZodObject<{
3168
+ id: z.ZodString;
3169
+ }, z.core.$strip>;
3170
+ readonly result: z.ZodObject<{}, z.core.$strip>;
3171
+ };
3172
+ readonly 'usage.summary': {
3173
+ readonly payload: z.ZodObject<{
3174
+ from: z.ZodString;
3175
+ to: z.ZodString;
3176
+ resolution: z.ZodEnum<{
3177
+ day: "day";
3178
+ hour: "hour";
3179
+ }>;
3180
+ timeZone: z.ZodString;
3181
+ accounts: z.ZodOptional<z.ZodArray<z.ZodString>>;
3182
+ }, z.core.$strip>;
3183
+ readonly result: z.ZodObject<{
3184
+ from: z.ZodString;
3185
+ to: z.ZodString;
3186
+ resolution: z.ZodEnum<{
3187
+ day: "day";
3188
+ hour: "hour";
3189
+ }>;
3190
+ timeZone: z.ZodString;
3191
+ buckets: z.ZodArray<z.ZodObject<{
3192
+ slot: z.ZodString;
3193
+ provider: z.ZodEnum<{
3194
+ claude: "claude";
3195
+ codex: "codex";
3196
+ }>;
3197
+ model: z.ZodString;
3198
+ account: z.ZodOptional<z.ZodString>;
3199
+ totals: z.ZodObject<{
3200
+ calls: z.ZodNumber;
3201
+ input: z.ZodNumber;
3202
+ cacheRead: z.ZodNumber;
3203
+ cacheWrite: z.ZodNumber;
3204
+ cacheWrite1h: z.ZodNumber;
3205
+ output: z.ZodNumber;
3206
+ reasoning: z.ZodNumber;
3207
+ }, z.core.$strip>;
3208
+ costUsd: z.ZodNullable<z.ZodNumber>;
3209
+ cacheSavingsUsd: z.ZodNumber;
3210
+ sessions: z.ZodNumber;
3211
+ }, z.core.$strip>>;
3212
+ models: z.ZodArray<z.ZodObject<{
3213
+ provider: z.ZodEnum<{
3214
+ claude: "claude";
3215
+ codex: "codex";
3216
+ }>;
3217
+ model: z.ZodString;
3218
+ account: z.ZodOptional<z.ZodString>;
3219
+ totals: z.ZodObject<{
3220
+ calls: z.ZodNumber;
3221
+ input: z.ZodNumber;
3222
+ cacheRead: z.ZodNumber;
3223
+ cacheWrite: z.ZodNumber;
3224
+ cacheWrite1h: z.ZodNumber;
3225
+ output: z.ZodNumber;
3226
+ reasoning: z.ZodNumber;
3227
+ }, z.core.$strip>;
3228
+ costUsd: z.ZodNullable<z.ZodNumber>;
3229
+ priceBasis: z.ZodEnum<{
3230
+ exact: "exact";
3231
+ family: "family";
3232
+ override: "override";
3233
+ unknown: "unknown";
3234
+ }>;
3235
+ pricedAs: z.ZodNullable<z.ZodString>;
3236
+ }, z.core.$strip>>;
3237
+ projects: z.ZodArray<z.ZodObject<{
3238
+ folder: z.ZodString;
3239
+ name: z.ZodString;
3240
+ projectId: z.ZodNullable<z.ZodString>;
3241
+ byProvider: z.ZodRecord<z.ZodEnum<{
3242
+ claude: "claude";
3243
+ codex: "codex";
3244
+ }> & z.core.$partial, z.ZodObject<{
3245
+ costUsd: z.ZodNumber;
3246
+ tokens: z.ZodNumber;
3247
+ }, z.core.$strip>>;
3248
+ totals: z.ZodObject<{
3249
+ calls: z.ZodNumber;
3250
+ input: z.ZodNumber;
3251
+ cacheRead: z.ZodNumber;
3252
+ cacheWrite: z.ZodNumber;
3253
+ cacheWrite1h: z.ZodNumber;
3254
+ output: z.ZodNumber;
3255
+ reasoning: z.ZodNumber;
3256
+ }, z.core.$strip>;
3257
+ costUsd: z.ZodNumber;
3258
+ }, z.core.$strip>>;
3259
+ sessions: z.ZodNumber;
3260
+ scan: z.ZodObject<{
3261
+ at: z.ZodNumber;
3262
+ files: z.ZodNumber;
3263
+ changedFiles: z.ZodNumber;
3264
+ durationMs: z.ZodNumber;
3265
+ running: z.ZodBoolean;
3266
+ failed: z.ZodBoolean;
3267
+ }, z.core.$strip>;
3268
+ pricing: z.ZodObject<{
3269
+ source: z.ZodEnum<{
3270
+ litellm: "litellm";
3271
+ none: "none";
3272
+ snapshot: "snapshot";
3273
+ }>;
3274
+ fetchedAt: z.ZodNullable<z.ZodNumber>;
3275
+ models: z.ZodNumber;
3276
+ }, z.core.$strip>;
3277
+ rate: z.ZodNullable<z.ZodObject<{
3278
+ currency: z.ZodString;
3279
+ rate: z.ZodNumber;
3280
+ date: z.ZodString;
3281
+ fetchedAt: z.ZodNumber;
3282
+ }, z.core.$strip>>;
3283
+ roots: z.ZodArray<z.ZodObject<{
3284
+ provider: z.ZodEnum<{
3285
+ claude: "claude";
3286
+ codex: "codex";
3287
+ }>;
3288
+ path: z.ZodString;
3289
+ status: z.ZodEnum<{
3290
+ failed: "failed";
3291
+ missing: "missing";
3292
+ ok: "ok";
3293
+ }>;
3294
+ message: z.ZodNullable<z.ZodString>;
3295
+ }, z.core.$strip>>;
3296
+ accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
3297
+ id: z.ZodString;
3298
+ kind: z.ZodEnum<{
3299
+ claude: "claude";
3300
+ codex: "codex";
3301
+ }>;
3302
+ label: z.ZodString;
3303
+ color: z.ZodOptional<z.ZodString>;
3304
+ }, z.core.$strip>>>;
3305
+ }, z.core.$strip>;
3306
+ };
3307
+ readonly 'usage.subscribe': {
3308
+ readonly payload: z.ZodObject<{}, z.core.$strip>;
3309
+ readonly result: z.ZodObject<{}, z.core.$strip>;
3310
+ };
3311
+ readonly 'usage.unsubscribe': {
3312
+ readonly payload: z.ZodObject<{}, z.core.$strip>;
3313
+ readonly result: z.ZodObject<{}, z.core.$strip>;
3314
+ };
3315
+ readonly 'usage.limits': {
3316
+ readonly payload: z.ZodObject<{}, z.core.$strip>;
3317
+ readonly result: z.ZodObject<{
3318
+ providers: z.ZodArray<z.ZodObject<{
3319
+ kind: z.ZodEnum<{
3320
+ claude: "claude";
3321
+ codex: "codex";
3322
+ }>;
3323
+ account: z.ZodOptional<z.ZodObject<{
3324
+ id: z.ZodString;
3325
+ label: z.ZodString;
3326
+ color: z.ZodOptional<z.ZodString>;
3327
+ }, z.core.$strip>>;
3328
+ plan: z.ZodNullable<z.ZodString>;
3329
+ checkedAt: z.ZodNumber;
3330
+ source: z.ZodEnum<{
3331
+ event: "event";
3332
+ probe: "probe";
3333
+ }>;
3334
+ windows: z.ZodArray<z.ZodObject<{
3335
+ id: z.ZodString;
3336
+ kind: z.ZodEnum<{
3337
+ monthly: "monthly";
3338
+ other: "other";
3339
+ session: "session";
3340
+ weekly: "weekly";
3341
+ }>;
3342
+ label: z.ZodString;
3343
+ used: z.ZodNumber;
3344
+ resetsAt: z.ZodNullable<z.ZodNumber>;
3345
+ durationMs: z.ZodNullable<z.ZodNumber>;
3346
+ }, z.core.$strip>>;
3347
+ cost: z.ZodNullable<z.ZodObject<{
3348
+ sessionUsd: z.ZodNumber;
3349
+ }, z.core.$strip>>;
3350
+ unavailable: z.ZodNullable<z.ZodObject<{
3351
+ reason: z.ZodEnum<{
3352
+ failed: "failed";
3353
+ "no-subscription": "no-subscription";
3354
+ "not-installed": "not-installed";
3355
+ }>;
3356
+ message: z.ZodNullable<z.ZodString>;
3357
+ }, z.core.$strip>>;
3358
+ }, z.core.$strip>>;
3359
+ }, z.core.$strip>;
3360
+ };
3361
+ readonly 'usage.refreshLimits': {
3362
+ readonly payload: z.ZodObject<{}, z.core.$strip>;
3363
+ readonly result: z.ZodObject<{
3364
+ providers: z.ZodArray<z.ZodObject<{
3365
+ kind: z.ZodEnum<{
3366
+ claude: "claude";
3367
+ codex: "codex";
3368
+ }>;
3369
+ account: z.ZodOptional<z.ZodObject<{
3370
+ id: z.ZodString;
3371
+ label: z.ZodString;
3372
+ color: z.ZodOptional<z.ZodString>;
3373
+ }, z.core.$strip>>;
3374
+ plan: z.ZodNullable<z.ZodString>;
3375
+ checkedAt: z.ZodNumber;
3376
+ source: z.ZodEnum<{
3377
+ event: "event";
3378
+ probe: "probe";
3379
+ }>;
3380
+ windows: z.ZodArray<z.ZodObject<{
3381
+ id: z.ZodString;
3382
+ kind: z.ZodEnum<{
3383
+ monthly: "monthly";
3384
+ other: "other";
3385
+ session: "session";
3386
+ weekly: "weekly";
3387
+ }>;
3388
+ label: z.ZodString;
3389
+ used: z.ZodNumber;
3390
+ resetsAt: z.ZodNullable<z.ZodNumber>;
3391
+ durationMs: z.ZodNullable<z.ZodNumber>;
3392
+ }, z.core.$strip>>;
3393
+ cost: z.ZodNullable<z.ZodObject<{
3394
+ sessionUsd: z.ZodNumber;
3395
+ }, z.core.$strip>>;
3396
+ unavailable: z.ZodNullable<z.ZodObject<{
3397
+ reason: z.ZodEnum<{
3398
+ failed: "failed";
3399
+ "no-subscription": "no-subscription";
3400
+ "not-installed": "not-installed";
3401
+ }>;
3402
+ message: z.ZodNullable<z.ZodString>;
3403
+ }, z.core.$strip>>;
3404
+ }, z.core.$strip>>;
3405
+ }, z.core.$strip>;
3406
+ };
3407
+ readonly 'chat.kill': {
3408
+ readonly payload: z.ZodObject<{
3409
+ chatId: z.ZodString;
3410
+ }, z.core.$strip>;
3411
+ readonly result: z.ZodObject<{}, z.core.$strip>;
3412
+ };
3413
+ readonly 'chat.list': {
3414
+ readonly payload: z.ZodObject<{}, z.core.$strip>;
3415
+ readonly result: z.ZodObject<{
3416
+ chats: z.ZodArray<z.ZodObject<{
3417
+ chatId: z.ZodString;
3418
+ provider: z.ZodEnum<{
3419
+ apple: "apple";
3420
+ claude: "claude";
3421
+ codex: "codex";
3422
+ copilot: "copilot";
3423
+ gemini: "gemini";
3424
+ }>;
3425
+ account: z.ZodOptional<z.ZodString>;
3426
+ cwd: z.ZodString;
3427
+ agentSessionId: z.ZodNullable<z.ZodString>;
3428
+ model: z.ZodNullable<z.ZodString>;
3429
+ selection: z.ZodObject<{
3430
+ model: z.ZodString;
3431
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
3432
+ }, z.core.$strip>;
3433
+ runtimeMode: z.ZodEnum<{
3434
+ auto: "auto";
3435
+ "auto-accept-edits": "auto-accept-edits";
3436
+ "full-access": "full-access";
3437
+ supervised: "supervised";
3438
+ }>;
3439
+ effectiveRuntimeMode: z.ZodOptional<z.ZodEnum<{
3440
+ auto: "auto";
3441
+ "auto-accept-edits": "auto-accept-edits";
3442
+ "full-access": "full-access";
3443
+ supervised: "supervised";
3444
+ }>>;
3445
+ permissionMode: z.ZodOptional<z.ZodString>;
3446
+ status: z.ZodEnum<{
3447
+ error: "error";
3448
+ exited: "exited";
3449
+ idle: "idle";
3450
+ "needs-you": "needs-you";
3451
+ running: "running";
3452
+ }>;
3453
+ running: z.ZodBoolean;
3454
+ activeTurnId: z.ZodNullable<z.ZodString>;
3455
+ slashCommands: z.ZodArray<z.ZodString>;
3456
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
3457
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
3458
+ id: z.ZodString;
3459
+ turnId: z.ZodOptional<z.ZodString>;
3460
+ text: z.ZodString;
3461
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
3462
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
3463
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
3464
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3465
+ id: z.ZodString;
3466
+ name: z.ZodString;
3467
+ mime: z.ZodString;
3468
+ size: z.ZodNumber;
3469
+ path: z.ZodString;
3470
+ }, z.core.$strip>>>;
3471
+ createdAt: z.ZodNumber;
3472
+ }, z.core.$strip>>>;
3473
+ queuePaused: z.ZodOptional<z.ZodBoolean>;
3474
+ background: z.ZodOptional<z.ZodArray<z.ZodObject<{
3475
+ id: z.ZodString;
3476
+ kind: z.ZodEnum<{
3477
+ monitor: "monitor";
3478
+ shell: "shell";
3479
+ }>;
3480
+ description: z.ZodString;
3481
+ command: z.ZodNullable<z.ZodString>;
3482
+ startedAt: z.ZodNumber;
3483
+ }, z.core.$strip>>>;
3484
+ delegating: z.ZodOptional<z.ZodBoolean>;
3485
+ usage: z.ZodObject<{
3486
+ contextTokens: z.ZodNumber;
3487
+ contextWindow: z.ZodNullable<z.ZodNumber>;
3488
+ costUsd: z.ZodNumber;
3489
+ turns: z.ZodNumber;
3490
+ breakdown: z.ZodOptional<z.ZodObject<{
3491
+ toolOutput: z.ZodNumber;
3492
+ filesRead: z.ZodNumber;
3493
+ conversation: z.ZodNumber;
3494
+ system: z.ZodNumber;
3495
+ }, z.core.$strip>>;
3496
+ }, z.core.$strip>;
3497
+ suggestedTitle: z.ZodOptional<z.ZodString>;
3498
+ hidden: z.ZodOptional<z.ZodBoolean>;
3499
+ forkOf: z.ZodOptional<z.ZodObject<{
3500
+ chatId: z.ZodString;
3501
+ turnId: z.ZodString;
3502
+ at: z.ZodNumber;
3503
+ }, z.core.$strip>>;
3504
+ resumeAtReset: z.ZodOptional<z.ZodBoolean>;
3505
+ limit: z.ZodOptional<z.ZodObject<{
3506
+ kind: z.ZodEnum<{
3507
+ overload: "overload";
3508
+ usage: "usage";
3509
+ }>;
3510
+ resetsAt: z.ZodOptional<z.ZodNumber>;
3511
+ }, z.core.$strip>>;
3512
+ resumeAt: z.ZodOptional<z.ZodNumber>;
3513
+ requests: z.ZodOptional<z.ZodArray<z.ZodObject<{
3514
+ requestId: z.ZodString;
3515
+ itemId: z.ZodString;
3516
+ kind: z.ZodEnum<{
3517
+ approval: "approval";
3518
+ question: "question";
3519
+ }>;
3520
+ createdAt: z.ZodNumber;
3521
+ approval: z.ZodOptional<z.ZodObject<{
3522
+ toolName: z.ZodString;
3523
+ subject: z.ZodString;
3524
+ description: z.ZodNullable<z.ZodString>;
3525
+ path: z.ZodOptional<z.ZodString>;
3526
+ files: z.ZodOptional<z.ZodNumber>;
3527
+ diff: z.ZodOptional<z.ZodString>;
3528
+ command: z.ZodOptional<z.ZodString>;
3529
+ truncated: z.ZodOptional<z.ZodBoolean>;
3530
+ canAllowAlways: z.ZodBoolean;
3531
+ allowAlways: z.ZodOptional<z.ZodObject<{
3532
+ label: z.ZodString;
3533
+ description: z.ZodString;
3534
+ }, z.core.$strip>>;
3535
+ }, z.core.$strip>>;
3536
+ question: z.ZodOptional<z.ZodObject<{
3537
+ questions: z.ZodArray<z.ZodObject<{
3538
+ id: z.ZodString;
3539
+ header: z.ZodString;
3540
+ question: z.ZodString;
3541
+ choices: z.ZodArray<z.ZodObject<{
3542
+ label: z.ZodString;
3543
+ description: z.ZodString;
3544
+ }, z.core.$strip>>;
3545
+ multiSelect: z.ZodBoolean;
3546
+ }, z.core.$strip>>;
3547
+ async: z.ZodOptional<z.ZodBoolean>;
3548
+ }, z.core.$strip>>;
3549
+ }, z.core.$strip>>>;
3550
+ createdAt: z.ZodNumber;
3551
+ }, z.core.$strip>>;
3552
+ }, z.core.$strip>;
3553
+ };
3554
+ };
3555
+ export declare const AGENT_EVENT_SCHEMAS: {
3556
+ readonly 'chat.event': z.ZodObject<{
3557
+ chatId: z.ZodString;
3558
+ event: z.ZodDiscriminatedUnion<[z.ZodObject<{
3559
+ type: z.ZodLiteral<"item">;
3560
+ item: z.ZodDiscriminatedUnion<[z.ZodObject<{
3561
+ id: z.ZodString;
3562
+ createdAt: z.ZodNumber;
3563
+ turnId: z.ZodNullable<z.ZodString>;
3564
+ kind: z.ZodLiteral<"user">;
3565
+ text: z.ZodString;
3566
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
3567
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
3568
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
3569
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3570
+ id: z.ZodString;
3571
+ name: z.ZodString;
3572
+ mime: z.ZodString;
3573
+ size: z.ZodNumber;
3574
+ path: z.ZodString;
3575
+ }, z.core.$strip>>>;
3576
+ }, z.core.$strip>, z.ZodObject<{
3577
+ id: z.ZodString;
3578
+ createdAt: z.ZodNumber;
3579
+ turnId: z.ZodNullable<z.ZodString>;
3580
+ kind: z.ZodLiteral<"assistant">;
3581
+ text: z.ZodString;
3582
+ streaming: z.ZodBoolean;
3583
+ parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3584
+ }, z.core.$strip>, z.ZodObject<{
3585
+ id: z.ZodString;
3586
+ createdAt: z.ZodNumber;
3587
+ turnId: z.ZodNullable<z.ZodString>;
3588
+ kind: z.ZodLiteral<"thinking">;
3589
+ text: z.ZodString;
3590
+ streaming: z.ZodBoolean;
3591
+ endedAt: z.ZodNullable<z.ZodNumber>;
3592
+ }, z.core.$strip>, z.ZodObject<{
3593
+ id: z.ZodString;
3594
+ createdAt: z.ZodNumber;
3595
+ turnId: z.ZodNullable<z.ZodString>;
3596
+ kind: z.ZodLiteral<"tool">;
3597
+ toolUseId: z.ZodString;
3598
+ name: z.ZodString;
3599
+ input: z.ZodUnknown;
3600
+ output: z.ZodNullable<z.ZodString>;
3601
+ state: z.ZodEnum<{
3602
+ done: "done";
3603
+ error: "error";
3604
+ running: "running";
3605
+ }>;
3606
+ parentToolUseId: z.ZodNullable<z.ZodString>;
3607
+ progress: z.ZodOptional<z.ZodObject<{
3608
+ startedAt: z.ZodNullable<z.ZodNumber>;
3609
+ description: z.ZodNullable<z.ZodString>;
3610
+ output: z.ZodNullable<z.ZodString>;
3611
+ }, z.core.$strip>>;
3612
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3613
+ path: z.ZodString;
3614
+ kind: z.ZodEnum<{
3615
+ add: "add";
3616
+ delete: "delete";
3617
+ update: "update";
3618
+ }>;
3619
+ diff: z.ZodString;
3620
+ }, z.core.$strip>>>;
3621
+ workflow: z.ZodOptional<z.ZodObject<{
3622
+ name: z.ZodNullable<z.ZodString>;
3623
+ taskId: z.ZodOptional<z.ZodString>;
3624
+ phases: z.ZodArray<z.ZodObject<{
3625
+ index: z.ZodNumber;
3626
+ title: z.ZodString;
3627
+ }, z.core.$strip>>;
3628
+ agents: z.ZodArray<z.ZodObject<{
3629
+ index: z.ZodNumber;
3630
+ label: z.ZodString;
3631
+ phaseIndex: z.ZodNullable<z.ZodNumber>;
3632
+ agentId: z.ZodNullable<z.ZodString>;
3633
+ status: z.ZodEnum<{
3634
+ done: "done";
3635
+ failed: "failed";
3636
+ running: "running";
3637
+ }>;
3638
+ startedAt: z.ZodNullable<z.ZodNumber>;
3639
+ durationMs: z.ZodNullable<z.ZodNumber>;
3640
+ lastTool: z.ZodNullable<z.ZodString>;
3641
+ }, z.core.$strip>>;
3642
+ lastProgressAt: z.ZodOptional<z.ZodNumber>;
3643
+ stalledAt: z.ZodOptional<z.ZodNumber>;
3644
+ }, z.core.$strip>>;
3645
+ }, z.core.$strip>, z.ZodObject<{
3646
+ id: z.ZodString;
3647
+ createdAt: z.ZodNumber;
3648
+ turnId: z.ZodNullable<z.ZodString>;
3649
+ kind: z.ZodLiteral<"subagent">;
3650
+ toolUseId: z.ZodString;
3651
+ description: z.ZodString;
3652
+ subagentType: z.ZodNullable<z.ZodString>;
3653
+ model: z.ZodOptional<z.ZodString>;
3654
+ prompt: z.ZodNullable<z.ZodString>;
3655
+ background: z.ZodBoolean;
3656
+ status: z.ZodEnum<{
3657
+ done: "done";
3658
+ failed: "failed";
3659
+ running: "running";
3660
+ }>;
3661
+ startedAt: z.ZodNumber;
3662
+ finishedAt: z.ZodNullable<z.ZodNumber>;
3663
+ summary: z.ZodNullable<z.ZodString>;
3664
+ result: z.ZodNullable<z.ZodString>;
3665
+ usage: z.ZodNullable<z.ZodObject<{
3666
+ totalTokens: z.ZodNumber;
3667
+ toolUses: z.ZodNumber;
3668
+ durationMs: z.ZodNumber;
3669
+ }, z.core.$strip>>;
3670
+ lastTool: z.ZodNullable<z.ZodString>;
3671
+ outputFile: z.ZodOptional<z.ZodString>;
3672
+ itemsTruncated: z.ZodBoolean;
3673
+ native: z.ZodOptional<z.ZodObject<{
3674
+ agentId: z.ZodOptional<z.ZodString>;
3675
+ threadId: z.ZodOptional<z.ZodString>;
3676
+ }, z.core.$strip>>;
3677
+ origin: z.ZodOptional<z.ZodEnum<{
3678
+ native: "native";
3679
+ ruimte: "ruimte";
3680
+ }>>;
3681
+ childId: z.ZodOptional<z.ZodString>;
3682
+ parentToolUseId: z.ZodOptional<z.ZodString>;
3683
+ }, z.core.$strip>, z.ZodObject<{
3684
+ id: z.ZodString;
3685
+ createdAt: z.ZodNumber;
3686
+ turnId: z.ZodNullable<z.ZodString>;
3687
+ kind: z.ZodLiteral<"approval">;
3688
+ requestId: z.ZodString;
3689
+ toolUseId: z.ZodNullable<z.ZodString>;
3690
+ toolName: z.ZodString;
3691
+ input: z.ZodUnknown;
3692
+ description: z.ZodNullable<z.ZodString>;
3693
+ canAllowAlways: z.ZodBoolean;
3694
+ allowAlways: z.ZodOptional<z.ZodObject<{
3695
+ label: z.ZodString;
3696
+ description: z.ZodString;
3697
+ }, z.core.$strip>>;
3698
+ decision: z.ZodEnum<{
3699
+ allow: "allow";
3700
+ "allow-always": "allow-always";
3701
+ cancelled: "cancelled";
3702
+ deny: "deny";
3703
+ pending: "pending";
3704
+ }>;
3705
+ }, z.core.$strip>, z.ZodObject<{
3706
+ id: z.ZodString;
3707
+ createdAt: z.ZodNumber;
3708
+ turnId: z.ZodNullable<z.ZodString>;
3709
+ kind: z.ZodLiteral<"question">;
3710
+ requestId: z.ZodString;
3711
+ questions: z.ZodArray<z.ZodObject<{
3712
+ id: z.ZodString;
3713
+ header: z.ZodString;
3714
+ question: z.ZodString;
3715
+ choices: z.ZodArray<z.ZodObject<{
3716
+ label: z.ZodString;
3717
+ description: z.ZodString;
3718
+ }, z.core.$strip>>;
3719
+ multiSelect: z.ZodBoolean;
3720
+ }, z.core.$strip>>;
3721
+ async: z.ZodOptional<z.ZodBoolean>;
3722
+ answers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
3723
+ state: z.ZodEnum<{
3724
+ answered: "answered";
3725
+ cancelled: "cancelled";
3726
+ dismissed: "dismissed";
3727
+ pending: "pending";
3728
+ }>;
3729
+ }, z.core.$strip>, z.ZodObject<{
3730
+ id: z.ZodString;
3731
+ createdAt: z.ZodNumber;
3732
+ turnId: z.ZodNullable<z.ZodString>;
3733
+ kind: z.ZodLiteral<"turn">;
3734
+ state: z.ZodEnum<{
3735
+ aborted: "aborted";
3736
+ done: "done";
3737
+ error: "error";
3738
+ running: "running";
3739
+ }>;
3740
+ origin: z.ZodOptional<z.ZodEnum<{
3741
+ agent: "agent";
3742
+ user: "user";
3743
+ }>>;
3744
+ label: z.ZodOptional<z.ZodString>;
3745
+ taskToolUseId: z.ZodOptional<z.ZodString>;
3746
+ endedAt: z.ZodNullable<z.ZodNumber>;
3747
+ costUsd: z.ZodNumber;
3748
+ checkpoint: z.ZodOptional<z.ZodString>;
3749
+ checkpointDiff: z.ZodOptional<z.ZodObject<{
3750
+ files: z.ZodArray<z.ZodObject<{
3751
+ path: z.ZodString;
3752
+ kind: z.ZodEnum<{
3753
+ add: "add";
3754
+ delete: "delete";
3755
+ update: "update";
3756
+ }>;
3757
+ added: z.ZodNumber;
3758
+ deleted: z.ZodNumber;
3759
+ diff: z.ZodString;
3760
+ omitted: z.ZodOptional<z.ZodEnum<{
3761
+ binary: "binary";
3762
+ "too-large": "too-large";
3763
+ }>>;
3764
+ }, z.core.$strip>>;
3765
+ truncated: z.ZodBoolean;
3766
+ }, z.core.$strip>>;
3767
+ attempt: z.ZodOptional<z.ZodNumber>;
3768
+ resumePending: z.ZodOptional<z.ZodBoolean>;
3769
+ deliveryPending: z.ZodOptional<z.ZodBoolean>;
3770
+ taskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3771
+ messageFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
3772
+ native: z.ZodOptional<z.ZodObject<{
3773
+ turnId: z.ZodOptional<z.ZodString>;
3774
+ lastUuid: z.ZodOptional<z.ZodString>;
3775
+ }, z.core.$strip>>;
3776
+ checkpointAfter: z.ZodOptional<z.ZodString>;
3777
+ summaryFor: z.ZodOptional<z.ZodString>;
3778
+ limit: z.ZodOptional<z.ZodObject<{
3779
+ kind: z.ZodEnum<{
3780
+ overload: "overload";
3781
+ usage: "usage";
3782
+ }>;
3783
+ resetsAt: z.ZodOptional<z.ZodNumber>;
3784
+ }, z.core.$strip>>;
3785
+ }, z.core.$strip>, z.ZodObject<{
3786
+ id: z.ZodString;
3787
+ createdAt: z.ZodNumber;
3788
+ turnId: z.ZodNullable<z.ZodString>;
3789
+ kind: z.ZodLiteral<"note">;
3790
+ level: z.ZodEnum<{
3791
+ error: "error";
3792
+ info: "info";
3793
+ warning: "warning";
3794
+ }>;
3795
+ text: z.ZodString;
3796
+ from: z.ZodOptional<z.ZodString>;
3797
+ }, z.core.$strip>, z.ZodObject<{
3798
+ id: z.ZodString;
3799
+ createdAt: z.ZodNumber;
3800
+ turnId: z.ZodNullable<z.ZodString>;
3801
+ kind: z.ZodLiteral<"compaction">;
3802
+ preTokens: z.ZodNullable<z.ZodNumber>;
3803
+ }, z.core.$strip>], "kind">;
3804
+ historyIndex: z.ZodOptional<z.ZodNumber>;
3805
+ }, z.core.$strip>, z.ZodObject<{
3806
+ type: z.ZodLiteral<"delta">;
3807
+ itemId: z.ZodString;
3808
+ text: z.ZodString;
3809
+ }, z.core.$strip>, z.ZodObject<{
3810
+ type: z.ZodLiteral<"info">;
3811
+ info: z.ZodObject<{
3812
+ chatId: z.ZodString;
3813
+ provider: z.ZodEnum<{
3814
+ apple: "apple";
3815
+ claude: "claude";
3816
+ codex: "codex";
3817
+ copilot: "copilot";
3818
+ gemini: "gemini";
3819
+ }>;
3820
+ account: z.ZodOptional<z.ZodString>;
3821
+ cwd: z.ZodString;
3822
+ agentSessionId: z.ZodNullable<z.ZodString>;
3823
+ model: z.ZodNullable<z.ZodString>;
3824
+ selection: z.ZodObject<{
3825
+ model: z.ZodString;
3826
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
3827
+ }, z.core.$strip>;
3828
+ runtimeMode: z.ZodEnum<{
3829
+ auto: "auto";
3830
+ "auto-accept-edits": "auto-accept-edits";
3831
+ "full-access": "full-access";
3832
+ supervised: "supervised";
3833
+ }>;
3834
+ effectiveRuntimeMode: z.ZodOptional<z.ZodEnum<{
3835
+ auto: "auto";
3836
+ "auto-accept-edits": "auto-accept-edits";
3837
+ "full-access": "full-access";
3838
+ supervised: "supervised";
3839
+ }>>;
3840
+ permissionMode: z.ZodOptional<z.ZodString>;
3841
+ status: z.ZodEnum<{
3842
+ error: "error";
3843
+ exited: "exited";
3844
+ idle: "idle";
3845
+ "needs-you": "needs-you";
3846
+ running: "running";
3847
+ }>;
3848
+ running: z.ZodBoolean;
3849
+ activeTurnId: z.ZodNullable<z.ZodString>;
3850
+ slashCommands: z.ZodArray<z.ZodString>;
3851
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
3852
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
3853
+ id: z.ZodString;
3854
+ turnId: z.ZodOptional<z.ZodString>;
3855
+ text: z.ZodString;
3856
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
3857
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
3858
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
3859
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3860
+ id: z.ZodString;
3861
+ name: z.ZodString;
3862
+ mime: z.ZodString;
3863
+ size: z.ZodNumber;
3864
+ path: z.ZodString;
3865
+ }, z.core.$strip>>>;
3866
+ createdAt: z.ZodNumber;
3867
+ }, z.core.$strip>>>;
3868
+ queuePaused: z.ZodOptional<z.ZodBoolean>;
3869
+ background: z.ZodOptional<z.ZodArray<z.ZodObject<{
3870
+ id: z.ZodString;
3871
+ kind: z.ZodEnum<{
3872
+ monitor: "monitor";
3873
+ shell: "shell";
3874
+ }>;
3875
+ description: z.ZodString;
3876
+ command: z.ZodNullable<z.ZodString>;
3877
+ startedAt: z.ZodNumber;
3878
+ }, z.core.$strip>>>;
3879
+ delegating: z.ZodOptional<z.ZodBoolean>;
3880
+ usage: z.ZodObject<{
3881
+ contextTokens: z.ZodNumber;
3882
+ contextWindow: z.ZodNullable<z.ZodNumber>;
3883
+ costUsd: z.ZodNumber;
3884
+ turns: z.ZodNumber;
3885
+ breakdown: z.ZodOptional<z.ZodObject<{
3886
+ toolOutput: z.ZodNumber;
3887
+ filesRead: z.ZodNumber;
3888
+ conversation: z.ZodNumber;
3889
+ system: z.ZodNumber;
3890
+ }, z.core.$strip>>;
3891
+ }, z.core.$strip>;
3892
+ suggestedTitle: z.ZodOptional<z.ZodString>;
3893
+ hidden: z.ZodOptional<z.ZodBoolean>;
3894
+ forkOf: z.ZodOptional<z.ZodObject<{
3895
+ chatId: z.ZodString;
3896
+ turnId: z.ZodString;
3897
+ at: z.ZodNumber;
3898
+ }, z.core.$strip>>;
3899
+ resumeAtReset: z.ZodOptional<z.ZodBoolean>;
3900
+ limit: z.ZodOptional<z.ZodObject<{
3901
+ kind: z.ZodEnum<{
3902
+ overload: "overload";
3903
+ usage: "usage";
3904
+ }>;
3905
+ resetsAt: z.ZodOptional<z.ZodNumber>;
3906
+ }, z.core.$strip>>;
3907
+ resumeAt: z.ZodOptional<z.ZodNumber>;
3908
+ requests: z.ZodOptional<z.ZodArray<z.ZodObject<{
3909
+ requestId: z.ZodString;
3910
+ itemId: z.ZodString;
3911
+ kind: z.ZodEnum<{
3912
+ approval: "approval";
3913
+ question: "question";
3914
+ }>;
3915
+ createdAt: z.ZodNumber;
3916
+ approval: z.ZodOptional<z.ZodObject<{
3917
+ toolName: z.ZodString;
3918
+ subject: z.ZodString;
3919
+ description: z.ZodNullable<z.ZodString>;
3920
+ path: z.ZodOptional<z.ZodString>;
3921
+ files: z.ZodOptional<z.ZodNumber>;
3922
+ diff: z.ZodOptional<z.ZodString>;
3923
+ command: z.ZodOptional<z.ZodString>;
3924
+ truncated: z.ZodOptional<z.ZodBoolean>;
3925
+ canAllowAlways: z.ZodBoolean;
3926
+ allowAlways: z.ZodOptional<z.ZodObject<{
3927
+ label: z.ZodString;
3928
+ description: z.ZodString;
3929
+ }, z.core.$strip>>;
3930
+ }, z.core.$strip>>;
3931
+ question: z.ZodOptional<z.ZodObject<{
3932
+ questions: z.ZodArray<z.ZodObject<{
3933
+ id: z.ZodString;
3934
+ header: z.ZodString;
3935
+ question: z.ZodString;
3936
+ choices: z.ZodArray<z.ZodObject<{
3937
+ label: z.ZodString;
3938
+ description: z.ZodString;
3939
+ }, z.core.$strip>>;
3940
+ multiSelect: z.ZodBoolean;
3941
+ }, z.core.$strip>>;
3942
+ async: z.ZodOptional<z.ZodBoolean>;
3943
+ }, z.core.$strip>>;
3944
+ }, z.core.$strip>>>;
3945
+ createdAt: z.ZodNumber;
3946
+ }, z.core.$strip>;
3947
+ }, z.core.$strip>, z.ZodObject<{
3948
+ type: z.ZodLiteral<"reset">;
3949
+ info: z.ZodObject<{
3950
+ chatId: z.ZodString;
3951
+ provider: z.ZodEnum<{
3952
+ apple: "apple";
3953
+ claude: "claude";
3954
+ codex: "codex";
3955
+ copilot: "copilot";
3956
+ gemini: "gemini";
3957
+ }>;
3958
+ account: z.ZodOptional<z.ZodString>;
3959
+ cwd: z.ZodString;
3960
+ agentSessionId: z.ZodNullable<z.ZodString>;
3961
+ model: z.ZodNullable<z.ZodString>;
3962
+ selection: z.ZodObject<{
3963
+ model: z.ZodString;
3964
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
3965
+ }, z.core.$strip>;
3966
+ runtimeMode: z.ZodEnum<{
3967
+ auto: "auto";
3968
+ "auto-accept-edits": "auto-accept-edits";
3969
+ "full-access": "full-access";
3970
+ supervised: "supervised";
3971
+ }>;
3972
+ effectiveRuntimeMode: z.ZodOptional<z.ZodEnum<{
3973
+ auto: "auto";
3974
+ "auto-accept-edits": "auto-accept-edits";
3975
+ "full-access": "full-access";
3976
+ supervised: "supervised";
3977
+ }>>;
3978
+ permissionMode: z.ZodOptional<z.ZodString>;
3979
+ status: z.ZodEnum<{
3980
+ error: "error";
3981
+ exited: "exited";
3982
+ idle: "idle";
3983
+ "needs-you": "needs-you";
3984
+ running: "running";
3985
+ }>;
3986
+ running: z.ZodBoolean;
3987
+ activeTurnId: z.ZodNullable<z.ZodString>;
3988
+ slashCommands: z.ZodArray<z.ZodString>;
3989
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
3990
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
3991
+ id: z.ZodString;
3992
+ turnId: z.ZodOptional<z.ZodString>;
3993
+ text: z.ZodString;
3994
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
3995
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
3996
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
3997
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3998
+ id: z.ZodString;
3999
+ name: z.ZodString;
4000
+ mime: z.ZodString;
4001
+ size: z.ZodNumber;
4002
+ path: z.ZodString;
4003
+ }, z.core.$strip>>>;
4004
+ createdAt: z.ZodNumber;
4005
+ }, z.core.$strip>>>;
4006
+ queuePaused: z.ZodOptional<z.ZodBoolean>;
4007
+ background: z.ZodOptional<z.ZodArray<z.ZodObject<{
4008
+ id: z.ZodString;
4009
+ kind: z.ZodEnum<{
4010
+ monitor: "monitor";
4011
+ shell: "shell";
4012
+ }>;
4013
+ description: z.ZodString;
4014
+ command: z.ZodNullable<z.ZodString>;
4015
+ startedAt: z.ZodNumber;
4016
+ }, z.core.$strip>>>;
4017
+ delegating: z.ZodOptional<z.ZodBoolean>;
4018
+ usage: z.ZodObject<{
4019
+ contextTokens: z.ZodNumber;
4020
+ contextWindow: z.ZodNullable<z.ZodNumber>;
4021
+ costUsd: z.ZodNumber;
4022
+ turns: z.ZodNumber;
4023
+ breakdown: z.ZodOptional<z.ZodObject<{
4024
+ toolOutput: z.ZodNumber;
4025
+ filesRead: z.ZodNumber;
4026
+ conversation: z.ZodNumber;
4027
+ system: z.ZodNumber;
4028
+ }, z.core.$strip>>;
4029
+ }, z.core.$strip>;
4030
+ suggestedTitle: z.ZodOptional<z.ZodString>;
4031
+ hidden: z.ZodOptional<z.ZodBoolean>;
4032
+ forkOf: z.ZodOptional<z.ZodObject<{
4033
+ chatId: z.ZodString;
4034
+ turnId: z.ZodString;
4035
+ at: z.ZodNumber;
4036
+ }, z.core.$strip>>;
4037
+ resumeAtReset: z.ZodOptional<z.ZodBoolean>;
4038
+ limit: z.ZodOptional<z.ZodObject<{
4039
+ kind: z.ZodEnum<{
4040
+ overload: "overload";
4041
+ usage: "usage";
4042
+ }>;
4043
+ resetsAt: z.ZodOptional<z.ZodNumber>;
4044
+ }, z.core.$strip>>;
4045
+ resumeAt: z.ZodOptional<z.ZodNumber>;
4046
+ requests: z.ZodOptional<z.ZodArray<z.ZodObject<{
4047
+ requestId: z.ZodString;
4048
+ itemId: z.ZodString;
4049
+ kind: z.ZodEnum<{
4050
+ approval: "approval";
4051
+ question: "question";
4052
+ }>;
4053
+ createdAt: z.ZodNumber;
4054
+ approval: z.ZodOptional<z.ZodObject<{
4055
+ toolName: z.ZodString;
4056
+ subject: z.ZodString;
4057
+ description: z.ZodNullable<z.ZodString>;
4058
+ path: z.ZodOptional<z.ZodString>;
4059
+ files: z.ZodOptional<z.ZodNumber>;
4060
+ diff: z.ZodOptional<z.ZodString>;
4061
+ command: z.ZodOptional<z.ZodString>;
4062
+ truncated: z.ZodOptional<z.ZodBoolean>;
4063
+ canAllowAlways: z.ZodBoolean;
4064
+ allowAlways: z.ZodOptional<z.ZodObject<{
4065
+ label: z.ZodString;
4066
+ description: z.ZodString;
4067
+ }, z.core.$strip>>;
4068
+ }, z.core.$strip>>;
4069
+ question: z.ZodOptional<z.ZodObject<{
4070
+ questions: z.ZodArray<z.ZodObject<{
4071
+ id: z.ZodString;
4072
+ header: z.ZodString;
4073
+ question: z.ZodString;
4074
+ choices: z.ZodArray<z.ZodObject<{
4075
+ label: z.ZodString;
4076
+ description: z.ZodString;
4077
+ }, z.core.$strip>>;
4078
+ multiSelect: z.ZodBoolean;
4079
+ }, z.core.$strip>>;
4080
+ async: z.ZodOptional<z.ZodBoolean>;
4081
+ }, z.core.$strip>>;
4082
+ }, z.core.$strip>>>;
4083
+ createdAt: z.ZodNumber;
4084
+ }, z.core.$strip>;
4085
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4086
+ id: z.ZodString;
4087
+ createdAt: z.ZodNumber;
4088
+ turnId: z.ZodNullable<z.ZodString>;
4089
+ kind: z.ZodLiteral<"user">;
4090
+ text: z.ZodString;
4091
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4092
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
4093
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
4094
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
4095
+ id: z.ZodString;
4096
+ name: z.ZodString;
4097
+ mime: z.ZodString;
4098
+ size: z.ZodNumber;
4099
+ path: z.ZodString;
4100
+ }, z.core.$strip>>>;
4101
+ }, z.core.$strip>, z.ZodObject<{
4102
+ id: z.ZodString;
4103
+ createdAt: z.ZodNumber;
4104
+ turnId: z.ZodNullable<z.ZodString>;
4105
+ kind: z.ZodLiteral<"assistant">;
4106
+ text: z.ZodString;
4107
+ streaming: z.ZodBoolean;
4108
+ parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4109
+ }, z.core.$strip>, z.ZodObject<{
4110
+ id: z.ZodString;
4111
+ createdAt: z.ZodNumber;
4112
+ turnId: z.ZodNullable<z.ZodString>;
4113
+ kind: z.ZodLiteral<"thinking">;
4114
+ text: z.ZodString;
4115
+ streaming: z.ZodBoolean;
4116
+ endedAt: z.ZodNullable<z.ZodNumber>;
4117
+ }, z.core.$strip>, z.ZodObject<{
4118
+ id: z.ZodString;
4119
+ createdAt: z.ZodNumber;
4120
+ turnId: z.ZodNullable<z.ZodString>;
4121
+ kind: z.ZodLiteral<"tool">;
4122
+ toolUseId: z.ZodString;
4123
+ name: z.ZodString;
4124
+ input: z.ZodUnknown;
4125
+ output: z.ZodNullable<z.ZodString>;
4126
+ state: z.ZodEnum<{
4127
+ done: "done";
4128
+ error: "error";
4129
+ running: "running";
4130
+ }>;
4131
+ parentToolUseId: z.ZodNullable<z.ZodString>;
4132
+ progress: z.ZodOptional<z.ZodObject<{
4133
+ startedAt: z.ZodNullable<z.ZodNumber>;
4134
+ description: z.ZodNullable<z.ZodString>;
4135
+ output: z.ZodNullable<z.ZodString>;
4136
+ }, z.core.$strip>>;
4137
+ changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4138
+ path: z.ZodString;
4139
+ kind: z.ZodEnum<{
4140
+ add: "add";
4141
+ delete: "delete";
4142
+ update: "update";
4143
+ }>;
4144
+ diff: z.ZodString;
4145
+ }, z.core.$strip>>>;
4146
+ workflow: z.ZodOptional<z.ZodObject<{
4147
+ name: z.ZodNullable<z.ZodString>;
4148
+ taskId: z.ZodOptional<z.ZodString>;
4149
+ phases: z.ZodArray<z.ZodObject<{
4150
+ index: z.ZodNumber;
4151
+ title: z.ZodString;
4152
+ }, z.core.$strip>>;
4153
+ agents: z.ZodArray<z.ZodObject<{
4154
+ index: z.ZodNumber;
4155
+ label: z.ZodString;
4156
+ phaseIndex: z.ZodNullable<z.ZodNumber>;
4157
+ agentId: z.ZodNullable<z.ZodString>;
4158
+ status: z.ZodEnum<{
4159
+ done: "done";
4160
+ failed: "failed";
4161
+ running: "running";
4162
+ }>;
4163
+ startedAt: z.ZodNullable<z.ZodNumber>;
4164
+ durationMs: z.ZodNullable<z.ZodNumber>;
4165
+ lastTool: z.ZodNullable<z.ZodString>;
4166
+ }, z.core.$strip>>;
4167
+ lastProgressAt: z.ZodOptional<z.ZodNumber>;
4168
+ stalledAt: z.ZodOptional<z.ZodNumber>;
4169
+ }, z.core.$strip>>;
4170
+ }, z.core.$strip>, z.ZodObject<{
4171
+ id: z.ZodString;
4172
+ createdAt: z.ZodNumber;
4173
+ turnId: z.ZodNullable<z.ZodString>;
4174
+ kind: z.ZodLiteral<"subagent">;
4175
+ toolUseId: z.ZodString;
4176
+ description: z.ZodString;
4177
+ subagentType: z.ZodNullable<z.ZodString>;
4178
+ model: z.ZodOptional<z.ZodString>;
4179
+ prompt: z.ZodNullable<z.ZodString>;
4180
+ background: z.ZodBoolean;
4181
+ status: z.ZodEnum<{
4182
+ done: "done";
4183
+ failed: "failed";
4184
+ running: "running";
4185
+ }>;
4186
+ startedAt: z.ZodNumber;
4187
+ finishedAt: z.ZodNullable<z.ZodNumber>;
4188
+ summary: z.ZodNullable<z.ZodString>;
4189
+ result: z.ZodNullable<z.ZodString>;
4190
+ usage: z.ZodNullable<z.ZodObject<{
4191
+ totalTokens: z.ZodNumber;
4192
+ toolUses: z.ZodNumber;
4193
+ durationMs: z.ZodNumber;
4194
+ }, z.core.$strip>>;
4195
+ lastTool: z.ZodNullable<z.ZodString>;
4196
+ outputFile: z.ZodOptional<z.ZodString>;
4197
+ itemsTruncated: z.ZodBoolean;
4198
+ native: z.ZodOptional<z.ZodObject<{
4199
+ agentId: z.ZodOptional<z.ZodString>;
4200
+ threadId: z.ZodOptional<z.ZodString>;
4201
+ }, z.core.$strip>>;
4202
+ origin: z.ZodOptional<z.ZodEnum<{
4203
+ native: "native";
4204
+ ruimte: "ruimte";
4205
+ }>>;
4206
+ childId: z.ZodOptional<z.ZodString>;
4207
+ parentToolUseId: z.ZodOptional<z.ZodString>;
4208
+ }, z.core.$strip>, z.ZodObject<{
4209
+ id: z.ZodString;
4210
+ createdAt: z.ZodNumber;
4211
+ turnId: z.ZodNullable<z.ZodString>;
4212
+ kind: z.ZodLiteral<"approval">;
4213
+ requestId: z.ZodString;
4214
+ toolUseId: z.ZodNullable<z.ZodString>;
4215
+ toolName: z.ZodString;
4216
+ input: z.ZodUnknown;
4217
+ description: z.ZodNullable<z.ZodString>;
4218
+ canAllowAlways: z.ZodBoolean;
4219
+ allowAlways: z.ZodOptional<z.ZodObject<{
4220
+ label: z.ZodString;
4221
+ description: z.ZodString;
4222
+ }, z.core.$strip>>;
4223
+ decision: z.ZodEnum<{
4224
+ allow: "allow";
4225
+ "allow-always": "allow-always";
4226
+ cancelled: "cancelled";
4227
+ deny: "deny";
4228
+ pending: "pending";
4229
+ }>;
4230
+ }, z.core.$strip>, z.ZodObject<{
4231
+ id: z.ZodString;
4232
+ createdAt: z.ZodNumber;
4233
+ turnId: z.ZodNullable<z.ZodString>;
4234
+ kind: z.ZodLiteral<"question">;
4235
+ requestId: z.ZodString;
4236
+ questions: z.ZodArray<z.ZodObject<{
4237
+ id: z.ZodString;
4238
+ header: z.ZodString;
4239
+ question: z.ZodString;
4240
+ choices: z.ZodArray<z.ZodObject<{
4241
+ label: z.ZodString;
4242
+ description: z.ZodString;
4243
+ }, z.core.$strip>>;
4244
+ multiSelect: z.ZodBoolean;
4245
+ }, z.core.$strip>>;
4246
+ async: z.ZodOptional<z.ZodBoolean>;
4247
+ answers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
4248
+ state: z.ZodEnum<{
4249
+ answered: "answered";
4250
+ cancelled: "cancelled";
4251
+ dismissed: "dismissed";
4252
+ pending: "pending";
4253
+ }>;
4254
+ }, z.core.$strip>, z.ZodObject<{
4255
+ id: z.ZodString;
4256
+ createdAt: z.ZodNumber;
4257
+ turnId: z.ZodNullable<z.ZodString>;
4258
+ kind: z.ZodLiteral<"turn">;
4259
+ state: z.ZodEnum<{
4260
+ aborted: "aborted";
4261
+ done: "done";
4262
+ error: "error";
4263
+ running: "running";
4264
+ }>;
4265
+ origin: z.ZodOptional<z.ZodEnum<{
4266
+ agent: "agent";
4267
+ user: "user";
4268
+ }>>;
4269
+ label: z.ZodOptional<z.ZodString>;
4270
+ taskToolUseId: z.ZodOptional<z.ZodString>;
4271
+ endedAt: z.ZodNullable<z.ZodNumber>;
4272
+ costUsd: z.ZodNumber;
4273
+ checkpoint: z.ZodOptional<z.ZodString>;
4274
+ checkpointDiff: z.ZodOptional<z.ZodObject<{
4275
+ files: z.ZodArray<z.ZodObject<{
4276
+ path: z.ZodString;
4277
+ kind: z.ZodEnum<{
4278
+ add: "add";
4279
+ delete: "delete";
4280
+ update: "update";
4281
+ }>;
4282
+ added: z.ZodNumber;
4283
+ deleted: z.ZodNumber;
4284
+ diff: z.ZodString;
4285
+ omitted: z.ZodOptional<z.ZodEnum<{
4286
+ binary: "binary";
4287
+ "too-large": "too-large";
4288
+ }>>;
4289
+ }, z.core.$strip>>;
4290
+ truncated: z.ZodBoolean;
4291
+ }, z.core.$strip>>;
4292
+ attempt: z.ZodOptional<z.ZodNumber>;
4293
+ resumePending: z.ZodOptional<z.ZodBoolean>;
4294
+ deliveryPending: z.ZodOptional<z.ZodBoolean>;
4295
+ taskIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4296
+ messageFrom: z.ZodOptional<z.ZodArray<z.ZodString>>;
4297
+ native: z.ZodOptional<z.ZodObject<{
4298
+ turnId: z.ZodOptional<z.ZodString>;
4299
+ lastUuid: z.ZodOptional<z.ZodString>;
4300
+ }, z.core.$strip>>;
4301
+ checkpointAfter: z.ZodOptional<z.ZodString>;
4302
+ summaryFor: z.ZodOptional<z.ZodString>;
4303
+ limit: z.ZodOptional<z.ZodObject<{
4304
+ kind: z.ZodEnum<{
4305
+ overload: "overload";
4306
+ usage: "usage";
4307
+ }>;
4308
+ resetsAt: z.ZodOptional<z.ZodNumber>;
4309
+ }, z.core.$strip>>;
4310
+ }, z.core.$strip>, z.ZodObject<{
4311
+ id: z.ZodString;
4312
+ createdAt: z.ZodNumber;
4313
+ turnId: z.ZodNullable<z.ZodString>;
4314
+ kind: z.ZodLiteral<"note">;
4315
+ level: z.ZodEnum<{
4316
+ error: "error";
4317
+ info: "info";
4318
+ warning: "warning";
4319
+ }>;
4320
+ text: z.ZodString;
4321
+ from: z.ZodOptional<z.ZodString>;
4322
+ }, z.core.$strip>, z.ZodObject<{
4323
+ id: z.ZodString;
4324
+ createdAt: z.ZodNumber;
4325
+ turnId: z.ZodNullable<z.ZodString>;
4326
+ kind: z.ZodLiteral<"compaction">;
4327
+ preTokens: z.ZodNullable<z.ZodNumber>;
4328
+ }, z.core.$strip>], "kind">>;
4329
+ }, z.core.$strip>], "type">;
4330
+ seq: z.ZodOptional<z.ZodNumber>;
4331
+ }, z.core.$strip>;
4332
+ readonly 'chat.status': z.ZodObject<{
4333
+ chatId: z.ZodString;
4334
+ info: z.ZodObject<{
4335
+ chatId: z.ZodString;
4336
+ provider: z.ZodEnum<{
4337
+ apple: "apple";
4338
+ claude: "claude";
4339
+ codex: "codex";
4340
+ copilot: "copilot";
4341
+ gemini: "gemini";
4342
+ }>;
4343
+ account: z.ZodOptional<z.ZodString>;
4344
+ cwd: z.ZodString;
4345
+ agentSessionId: z.ZodNullable<z.ZodString>;
4346
+ model: z.ZodNullable<z.ZodString>;
4347
+ selection: z.ZodObject<{
4348
+ model: z.ZodString;
4349
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
4350
+ }, z.core.$strip>;
4351
+ runtimeMode: z.ZodEnum<{
4352
+ auto: "auto";
4353
+ "auto-accept-edits": "auto-accept-edits";
4354
+ "full-access": "full-access";
4355
+ supervised: "supervised";
4356
+ }>;
4357
+ effectiveRuntimeMode: z.ZodOptional<z.ZodEnum<{
4358
+ auto: "auto";
4359
+ "auto-accept-edits": "auto-accept-edits";
4360
+ "full-access": "full-access";
4361
+ supervised: "supervised";
4362
+ }>>;
4363
+ permissionMode: z.ZodOptional<z.ZodString>;
4364
+ status: z.ZodEnum<{
4365
+ error: "error";
4366
+ exited: "exited";
4367
+ idle: "idle";
4368
+ "needs-you": "needs-you";
4369
+ running: "running";
4370
+ }>;
4371
+ running: z.ZodBoolean;
4372
+ activeTurnId: z.ZodNullable<z.ZodString>;
4373
+ slashCommands: z.ZodArray<z.ZodString>;
4374
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
4375
+ queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
4376
+ id: z.ZodString;
4377
+ turnId: z.ZodOptional<z.ZodString>;
4378
+ text: z.ZodString;
4379
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString>>;
4380
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
4381
+ chats: z.ZodOptional<z.ZodArray<z.ZodString>>;
4382
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
4383
+ id: z.ZodString;
4384
+ name: z.ZodString;
4385
+ mime: z.ZodString;
4386
+ size: z.ZodNumber;
4387
+ path: z.ZodString;
4388
+ }, z.core.$strip>>>;
4389
+ createdAt: z.ZodNumber;
4390
+ }, z.core.$strip>>>;
4391
+ queuePaused: z.ZodOptional<z.ZodBoolean>;
4392
+ background: z.ZodOptional<z.ZodArray<z.ZodObject<{
4393
+ id: z.ZodString;
4394
+ kind: z.ZodEnum<{
4395
+ monitor: "monitor";
4396
+ shell: "shell";
4397
+ }>;
4398
+ description: z.ZodString;
4399
+ command: z.ZodNullable<z.ZodString>;
4400
+ startedAt: z.ZodNumber;
4401
+ }, z.core.$strip>>>;
4402
+ delegating: z.ZodOptional<z.ZodBoolean>;
4403
+ usage: z.ZodObject<{
4404
+ contextTokens: z.ZodNumber;
4405
+ contextWindow: z.ZodNullable<z.ZodNumber>;
4406
+ costUsd: z.ZodNumber;
4407
+ turns: z.ZodNumber;
4408
+ breakdown: z.ZodOptional<z.ZodObject<{
4409
+ toolOutput: z.ZodNumber;
4410
+ filesRead: z.ZodNumber;
4411
+ conversation: z.ZodNumber;
4412
+ system: z.ZodNumber;
4413
+ }, z.core.$strip>>;
4414
+ }, z.core.$strip>;
4415
+ suggestedTitle: z.ZodOptional<z.ZodString>;
4416
+ hidden: z.ZodOptional<z.ZodBoolean>;
4417
+ forkOf: z.ZodOptional<z.ZodObject<{
4418
+ chatId: z.ZodString;
4419
+ turnId: z.ZodString;
4420
+ at: z.ZodNumber;
4421
+ }, z.core.$strip>>;
4422
+ resumeAtReset: z.ZodOptional<z.ZodBoolean>;
4423
+ limit: z.ZodOptional<z.ZodObject<{
4424
+ kind: z.ZodEnum<{
4425
+ overload: "overload";
4426
+ usage: "usage";
4427
+ }>;
4428
+ resetsAt: z.ZodOptional<z.ZodNumber>;
4429
+ }, z.core.$strip>>;
4430
+ resumeAt: z.ZodOptional<z.ZodNumber>;
4431
+ requests: z.ZodOptional<z.ZodArray<z.ZodObject<{
4432
+ requestId: z.ZodString;
4433
+ itemId: z.ZodString;
4434
+ kind: z.ZodEnum<{
4435
+ approval: "approval";
4436
+ question: "question";
4437
+ }>;
4438
+ createdAt: z.ZodNumber;
4439
+ approval: z.ZodOptional<z.ZodObject<{
4440
+ toolName: z.ZodString;
4441
+ subject: z.ZodString;
4442
+ description: z.ZodNullable<z.ZodString>;
4443
+ path: z.ZodOptional<z.ZodString>;
4444
+ files: z.ZodOptional<z.ZodNumber>;
4445
+ diff: z.ZodOptional<z.ZodString>;
4446
+ command: z.ZodOptional<z.ZodString>;
4447
+ truncated: z.ZodOptional<z.ZodBoolean>;
4448
+ canAllowAlways: z.ZodBoolean;
4449
+ allowAlways: z.ZodOptional<z.ZodObject<{
4450
+ label: z.ZodString;
4451
+ description: z.ZodString;
4452
+ }, z.core.$strip>>;
4453
+ }, z.core.$strip>>;
4454
+ question: z.ZodOptional<z.ZodObject<{
4455
+ questions: z.ZodArray<z.ZodObject<{
4456
+ id: z.ZodString;
4457
+ header: z.ZodString;
4458
+ question: z.ZodString;
4459
+ choices: z.ZodArray<z.ZodObject<{
4460
+ label: z.ZodString;
4461
+ description: z.ZodString;
4462
+ }, z.core.$strip>>;
4463
+ multiSelect: z.ZodBoolean;
4464
+ }, z.core.$strip>>;
4465
+ async: z.ZodOptional<z.ZodBoolean>;
4466
+ }, z.core.$strip>>;
4467
+ }, z.core.$strip>>>;
4468
+ createdAt: z.ZodNumber;
4469
+ }, z.core.$strip>;
4470
+ }, z.core.$strip>;
4471
+ readonly 'chat.subagentChanged': z.ZodObject<{
4472
+ chatId: z.ZodString;
4473
+ toolUseId: z.ZodString;
4474
+ }, z.core.$strip>;
4475
+ readonly 'chat.bookmarks': z.ZodObject<{
4476
+ chatId: z.ZodString;
4477
+ bookmarks: z.ZodArray<z.ZodObject<{
4478
+ itemId: z.ZodString;
4479
+ name: z.ZodOptional<z.ZodString>;
4480
+ excerpt: z.ZodString;
4481
+ createdAt: z.ZodNumber;
4482
+ }, z.core.$strip>>;
4483
+ }, z.core.$strip>;
4484
+ readonly 'usage.changed': z.ZodObject<{
4485
+ scannedAt: z.ZodNumber;
4486
+ }, z.core.$strip>;
4487
+ readonly 'usage.limitsChanged': z.ZodObject<{
4488
+ providers: z.ZodArray<z.ZodObject<{
4489
+ kind: z.ZodEnum<{
4490
+ claude: "claude";
4491
+ codex: "codex";
4492
+ }>;
4493
+ account: z.ZodOptional<z.ZodObject<{
4494
+ id: z.ZodString;
4495
+ label: z.ZodString;
4496
+ color: z.ZodOptional<z.ZodString>;
4497
+ }, z.core.$strip>>;
4498
+ plan: z.ZodNullable<z.ZodString>;
4499
+ checkedAt: z.ZodNumber;
4500
+ source: z.ZodEnum<{
4501
+ event: "event";
4502
+ probe: "probe";
4503
+ }>;
4504
+ windows: z.ZodArray<z.ZodObject<{
4505
+ id: z.ZodString;
4506
+ kind: z.ZodEnum<{
4507
+ monthly: "monthly";
4508
+ other: "other";
4509
+ session: "session";
4510
+ weekly: "weekly";
4511
+ }>;
4512
+ label: z.ZodString;
4513
+ used: z.ZodNumber;
4514
+ resetsAt: z.ZodNullable<z.ZodNumber>;
4515
+ durationMs: z.ZodNullable<z.ZodNumber>;
4516
+ }, z.core.$strip>>;
4517
+ cost: z.ZodNullable<z.ZodObject<{
4518
+ sessionUsd: z.ZodNumber;
4519
+ }, z.core.$strip>>;
4520
+ unavailable: z.ZodNullable<z.ZodObject<{
4521
+ reason: z.ZodEnum<{
4522
+ failed: "failed";
4523
+ "no-subscription": "no-subscription";
4524
+ "not-installed": "not-installed";
4525
+ }>;
4526
+ message: z.ZodNullable<z.ZodString>;
4527
+ }, z.core.$strip>>;
4528
+ }, z.core.$strip>>;
4529
+ }, z.core.$strip>;
4530
+ readonly 'accounts.changed': z.ZodObject<{
4531
+ accounts: z.ZodRecord<z.ZodString, z.ZodObject<{
4532
+ kind: z.ZodString;
4533
+ label: z.ZodOptional<z.ZodString>;
4534
+ color: z.ZodOptional<z.ZodString>;
4535
+ enabled: z.ZodOptional<z.ZodBoolean>;
4536
+ home: z.ZodOptional<z.ZodString>;
4537
+ shadowHome: z.ZodOptional<z.ZodString>;
4538
+ env: z.ZodOptional<z.ZodArray<z.ZodObject<{
4539
+ name: z.ZodString;
4540
+ value: z.ZodString;
4541
+ sensitive: z.ZodBoolean;
4542
+ valueRedacted: z.ZodOptional<z.ZodBoolean>;
4543
+ }, z.core.$strip>>>;
4544
+ }, z.core.$strip>>;
4545
+ statuses: z.ZodArray<z.ZodObject<{
4546
+ id: z.ZodString;
4547
+ kind: z.ZodString;
4548
+ state: z.ZodEnum<{
4549
+ checking: "checking";
4550
+ disabled: "disabled";
4551
+ failed: "failed";
4552
+ "folder-missing": "folder-missing";
4553
+ "not-found": "not-found";
4554
+ ready: "ready";
4555
+ "signed-out": "signed-out";
4556
+ unavailable: "unavailable";
4557
+ }>;
4558
+ email: z.ZodNullable<z.ZodString>;
4559
+ plan: z.ZodNullable<z.ZodString>;
4560
+ organization: z.ZodNullable<z.ZodString>;
4561
+ home: z.ZodString;
4562
+ transcripts: z.ZodOptional<z.ZodString>;
4563
+ message: z.ZodNullable<z.ZodString>;
4564
+ checkedAt: z.ZodNumber;
4565
+ }, z.core.$strip>>;
4566
+ secretsAvailable: z.ZodOptional<z.ZodBoolean>;
4567
+ loginCommands: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
4568
+ apple: "apple";
4569
+ claude: "claude";
4570
+ codex: "codex";
4571
+ copilot: "copilot";
4572
+ gemini: "gemini";
4573
+ }> & z.core.$partial, z.ZodString>>;
4574
+ }, z.core.$strip>;
4575
+ };
4576
+ export type AgentRequestType = keyof typeof AGENT_REQUEST_SCHEMAS;
4577
+ export type AgentEventType = keyof typeof AGENT_EVENT_SCHEMAS;