@spencerboucher/switchyard-client 0.0.0-stage → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1730 @@
1
+ import { z } from "zod";
2
+ export declare const SyncState: z.ZodObject<{
3
+ hosts: z.ZodArray<z.ZodObject<{
4
+ id: z.ZodString;
5
+ name: z.ZodString;
6
+ platform: z.ZodEnum<{
7
+ darwin: "darwin";
8
+ linux: "linux";
9
+ }>;
10
+ agentVersion: z.ZodString;
11
+ piVersion: z.ZodNullable<z.ZodString>;
12
+ piCompatible: z.ZodBoolean;
13
+ capabilities: z.ZodNullable<z.ZodObject<{
14
+ prompt: z.ZodBoolean;
15
+ steer: z.ZodBoolean;
16
+ followUp: z.ZodBoolean;
17
+ abort: z.ZodBoolean;
18
+ resume: z.ZodBoolean;
19
+ rename: z.ZodBoolean;
20
+ importInactive: z.ZodBoolean;
21
+ extensionDialogs: z.ZodBoolean;
22
+ customUi: z.ZodBoolean;
23
+ widgetsText: z.ZodBoolean;
24
+ widgetsComponent: z.ZodBoolean;
25
+ tokenAccounting: z.ZodBoolean;
26
+ costAccounting: z.ZodBoolean;
27
+ terminal: z.ZodOptional<z.ZodBoolean>;
28
+ sessionControls: z.ZodOptional<z.ZodBoolean>;
29
+ treeNavigation: z.ZodOptional<z.ZodBoolean>;
30
+ agentRequests: z.ZodOptional<z.ZodBoolean>;
31
+ messageDelivery: z.ZodOptional<z.ZodBoolean>;
32
+ policies: z.ZodOptional<z.ZodBoolean>;
33
+ adapterDevelopment: z.ZodOptional<z.ZodBoolean>;
34
+ unsupported: z.ZodArray<z.ZodObject<{
35
+ capability: z.ZodString;
36
+ reason: z.ZodString;
37
+ }, z.core.$strip>>;
38
+ }, z.core.$strip>>;
39
+ connectivity: z.ZodEnum<{
40
+ connected: "connected";
41
+ reconnecting: "reconnecting";
42
+ unreachable: "unreachable";
43
+ }>;
44
+ lastSeenAt: z.ZodNullable<z.ZodString>;
45
+ revokedAt: z.ZodNullable<z.ZodString>;
46
+ createdAt: z.ZodString;
47
+ projectFolders: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
+ projectScan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
49
+ state: z.ZodEnum<{
50
+ done: "done";
51
+ failed: "failed";
52
+ running: "running";
53
+ }>;
54
+ startedAt: z.ZodString;
55
+ finishedAt: z.ZodNullable<z.ZodString>;
56
+ repositories: z.ZodNumber;
57
+ projectsCreated: z.ZodNumber;
58
+ checkoutsAdded: z.ZodNumber;
59
+ errors: z.ZodArray<z.ZodString>;
60
+ }, z.core.$strip>>>;
61
+ usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
62
+ provider: z.ZodEnum<{
63
+ anthropic: "anthropic";
64
+ "openai-codex": "openai-codex";
65
+ }>;
66
+ status: z.ZodEnum<{
67
+ available: "available";
68
+ error: "error";
69
+ expired: "expired";
70
+ rejected: "rejected";
71
+ }>;
72
+ message: z.ZodNullable<z.ZodString>;
73
+ windows: z.ZodArray<z.ZodObject<{
74
+ id: z.ZodEnum<{
75
+ five_hour: "five_hour";
76
+ weekly: "weekly";
77
+ }>;
78
+ usedPct: z.ZodNumber;
79
+ resetsAt: z.ZodNullable<z.ZodString>;
80
+ }, z.core.$strip>>;
81
+ fetchedAt: z.ZodString;
82
+ }, z.core.$strip>>>;
83
+ github: z.ZodOptional<z.ZodObject<{
84
+ available: z.ZodBoolean;
85
+ reason: z.ZodNullable<z.ZodString>;
86
+ }, z.core.$strict>>;
87
+ }, z.core.$strip>>;
88
+ projects: z.ZodArray<z.ZodObject<{
89
+ id: z.ZodString;
90
+ name: z.ZodString;
91
+ repoIdentity: z.ZodString;
92
+ defaultProfileId: z.ZodNullable<z.ZodString>;
93
+ defaultHostId: z.ZodNullable<z.ZodString>;
94
+ maxConcurrentRuns: z.ZodNumber;
95
+ automationEnabled: z.ZodBoolean;
96
+ setupCommand: z.ZodNullable<z.ZodString>;
97
+ checks: z.ZodArray<z.ZodString>;
98
+ workspaceSharing: z.ZodEnum<{
99
+ shared: "shared";
100
+ single_writer: "single_writer";
101
+ }>;
102
+ worktreeDir: z.ZodDefault<z.ZodString>;
103
+ createdAt: z.ZodString;
104
+ updatedAt: z.ZodString;
105
+ }, z.core.$strip>>;
106
+ checkouts: z.ZodArray<z.ZodObject<{
107
+ id: z.ZodString;
108
+ projectId: z.ZodString;
109
+ hostId: z.ZodString;
110
+ path: z.ZodString;
111
+ commonDir: z.ZodString;
112
+ defaultBranch: z.ZodString;
113
+ createdAt: z.ZodString;
114
+ }, z.core.$strip>>;
115
+ workspaces: z.ZodArray<z.ZodObject<{
116
+ id: z.ZodString;
117
+ checkoutId: z.ZodString;
118
+ projectId: z.ZodString;
119
+ hostId: z.ZodString;
120
+ path: z.ZodString;
121
+ branch: z.ZodNullable<z.ZodString>;
122
+ baseBranch: z.ZodNullable<z.ZodString>;
123
+ provenance: z.ZodEnum<{
124
+ discovered: "discovered";
125
+ main: "main";
126
+ managed: "managed";
127
+ }>;
128
+ git: z.ZodObject<{
129
+ dirty: z.ZodBoolean;
130
+ changedFiles: z.ZodNumber;
131
+ ahead: z.ZodNumber;
132
+ behind: z.ZodNumber;
133
+ unmerged: z.ZodBoolean;
134
+ }, z.core.$strip>;
135
+ setup: z.ZodObject<{
136
+ state: z.ZodEnum<{
137
+ failed: "failed";
138
+ none: "none";
139
+ running: "running";
140
+ succeeded: "succeeded";
141
+ }>;
142
+ log: z.ZodString;
143
+ }, z.core.$strip>;
144
+ archivedAt: z.ZodNullable<z.ZodString>;
145
+ updatedAt: z.ZodString;
146
+ github: z.ZodOptional<z.ZodObject<{
147
+ repository: z.ZodNullable<z.ZodString>;
148
+ headRepository: z.ZodNullable<z.ZodString>;
149
+ branch: z.ZodNullable<z.ZodString>;
150
+ fetchedAt: z.ZodNullable<z.ZodString>;
151
+ attemptedAt: z.ZodString;
152
+ status: z.ZodEnum<{
153
+ ambiguous: "ambiguous";
154
+ error: "error";
155
+ ready: "ready";
156
+ unavailable: "unavailable";
157
+ }>;
158
+ reason: z.ZodNullable<z.ZodString>;
159
+ pullRequest: z.ZodNullable<z.ZodObject<{
160
+ nodeId: z.ZodOptional<z.ZodString>;
161
+ number: z.ZodNumber;
162
+ url: z.ZodString;
163
+ title: z.ZodString;
164
+ state: z.ZodEnum<{
165
+ CLOSED: "CLOSED";
166
+ MERGED: "MERGED";
167
+ OPEN: "OPEN";
168
+ }>;
169
+ isDraft: z.ZodBoolean;
170
+ headRefName: z.ZodString;
171
+ headRefOid: z.ZodString;
172
+ headRepository: z.ZodNullable<z.ZodString>;
173
+ baseRefName: z.ZodString;
174
+ mergeable: z.ZodString;
175
+ mergeStateStatus: z.ZodString;
176
+ reviewDecision: z.ZodNullable<z.ZodEnum<{
177
+ APPROVED: "APPROVED";
178
+ CHANGES_REQUESTED: "CHANGES_REQUESTED";
179
+ REVIEW_REQUIRED: "REVIEW_REQUIRED";
180
+ }>>;
181
+ mergeQueueEnabled: z.ZodBoolean;
182
+ inMergeQueue: z.ZodBoolean;
183
+ autoMergeEnabled: z.ZodBoolean;
184
+ squashMergeAllowed: z.ZodBoolean;
185
+ }, z.core.$strict>>;
186
+ checks: z.ZodArray<z.ZodObject<{
187
+ id: z.ZodString;
188
+ name: z.ZodString;
189
+ state: z.ZodString;
190
+ bucket: z.ZodEnum<{
191
+ cancel: "cancel";
192
+ fail: "fail";
193
+ pass: "pass";
194
+ pending: "pending";
195
+ skipping: "skipping";
196
+ unknown: "unknown";
197
+ }>;
198
+ link: z.ZodNullable<z.ZodString>;
199
+ workflow: z.ZodNullable<z.ZodString>;
200
+ event: z.ZodNullable<z.ZodString>;
201
+ startedAt: z.ZodNullable<z.ZodString>;
202
+ completedAt: z.ZodNullable<z.ZodString>;
203
+ description: z.ZodNullable<z.ZodString>;
204
+ actionsJob: z.ZodNullable<z.ZodObject<{
205
+ runId: z.ZodString;
206
+ jobId: z.ZodString;
207
+ attempt: z.ZodNumber;
208
+ }, z.core.$strict>>;
209
+ }, z.core.$strict>>;
210
+ checksComplete: z.ZodBoolean;
211
+ threads: z.ZodArray<z.ZodObject<{
212
+ id: z.ZodString;
213
+ isResolved: z.ZodLiteral<false>;
214
+ isOutdated: z.ZodBoolean;
215
+ path: z.ZodNullable<z.ZodString>;
216
+ line: z.ZodNullable<z.ZodNumber>;
217
+ startLine: z.ZodNullable<z.ZodNumber>;
218
+ side: z.ZodNullable<z.ZodEnum<{
219
+ LEFT: "LEFT";
220
+ RIGHT: "RIGHT";
221
+ }>>;
222
+ comments: z.ZodArray<z.ZodObject<{
223
+ id: z.ZodString;
224
+ author: z.ZodNullable<z.ZodString>;
225
+ body: z.ZodString;
226
+ bodyTruncated: z.ZodBoolean;
227
+ url: z.ZodString;
228
+ createdAt: z.ZodNullable<z.ZodString>;
229
+ }, z.core.$strict>>;
230
+ commentsComplete: z.ZodBoolean;
231
+ }, z.core.$strict>>;
232
+ threadsComplete: z.ZodBoolean;
233
+ truncated: z.ZodBoolean;
234
+ }, z.core.$strict>>;
235
+ }, z.core.$strip>>;
236
+ profiles: z.ZodArray<z.ZodObject<{
237
+ id: z.ZodString;
238
+ name: z.ZodString;
239
+ provider: z.ZodNullable<z.ZodString>;
240
+ model: z.ZodNullable<z.ZodString>;
241
+ thinking: z.ZodNullable<z.ZodEnum<{
242
+ high: "high";
243
+ low: "low";
244
+ max: "max";
245
+ medium: "medium";
246
+ minimal: "minimal";
247
+ off: "off";
248
+ xhigh: "xhigh";
249
+ }>>;
250
+ projectTrust: z.ZodEnum<{
251
+ approve: "approve";
252
+ ask: "ask";
253
+ ignore: "ignore";
254
+ }>;
255
+ extraArgs: z.ZodArray<z.ZodString>;
256
+ resources: z.ZodOptional<z.ZodEnum<{
257
+ all: "all";
258
+ vanilla: "vanilla";
259
+ }>>;
260
+ }, z.core.$strip>>;
261
+ views: z.ZodArray<z.ZodObject<{
262
+ id: z.ZodString;
263
+ name: z.ZodString;
264
+ mode: z.ZodEnum<{
265
+ all: "all";
266
+ pinned: "pinned";
267
+ }>;
268
+ projectIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
269
+ hostIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
270
+ sessionIds: z.ZodArray<z.ZodString>;
271
+ clients: z.ZodArray<z.ZodObject<{
272
+ id: z.ZodString;
273
+ kind: z.ZodEnum<{
274
+ herdr: "herdr";
275
+ tmux: "tmux";
276
+ }>;
277
+ name: z.ZodString;
278
+ machine: z.ZodString;
279
+ lastSeenAt: z.ZodString;
280
+ }, z.core.$strip>>;
281
+ createdAt: z.ZodString;
282
+ updatedAt: z.ZodString;
283
+ }, z.core.$strip>>;
284
+ sessions: z.ZodArray<z.ZodObject<{
285
+ id: z.ZodString;
286
+ title: z.ZodString;
287
+ subtitle: z.ZodNullable<z.ZodString>;
288
+ hostId: z.ZodString;
289
+ workspaceId: z.ZodNullable<z.ZodString>;
290
+ projectId: z.ZodNullable<z.ZodString>;
291
+ cwd: z.ZodString;
292
+ nativeHandle: z.ZodNullable<z.ZodObject<{
293
+ sessionId: z.ZodString;
294
+ sessionFile: z.ZodString;
295
+ }, z.core.$strip>>;
296
+ profileSnapshot: z.ZodObject<{
297
+ id: z.ZodString;
298
+ name: z.ZodString;
299
+ provider: z.ZodNullable<z.ZodString>;
300
+ model: z.ZodNullable<z.ZodString>;
301
+ thinking: z.ZodNullable<z.ZodEnum<{
302
+ high: "high";
303
+ low: "low";
304
+ max: "max";
305
+ medium: "medium";
306
+ minimal: "minimal";
307
+ off: "off";
308
+ xhigh: "xhigh";
309
+ }>>;
310
+ projectTrust: z.ZodEnum<{
311
+ approve: "approve";
312
+ ask: "ask";
313
+ ignore: "ignore";
314
+ }>;
315
+ extraArgs: z.ZodArray<z.ZodString>;
316
+ resources: z.ZodOptional<z.ZodEnum<{
317
+ all: "all";
318
+ vanilla: "vanilla";
319
+ }>>;
320
+ }, z.core.$strip>;
321
+ runtime: z.ZodEnum<{
322
+ failed: "failed";
323
+ idle: "idle";
324
+ interrupted: "interrupted";
325
+ running: "running";
326
+ starting: "starting";
327
+ stopped: "stopped";
328
+ waiting_input: "waiting_input";
329
+ }>;
330
+ runtimeDetail: z.ZodNullable<z.ZodString>;
331
+ connectivity: z.ZodEnum<{
332
+ connected: "connected";
333
+ reconnecting: "reconnecting";
334
+ unreachable: "unreachable";
335
+ }>;
336
+ runId: z.ZodNullable<z.ZodString>;
337
+ taskId: z.ZodNullable<z.ZodString>;
338
+ provenance: z.ZodEnum<{
339
+ created: "created";
340
+ imported: "imported";
341
+ subagent: "subagent";
342
+ }>;
343
+ readOnly: z.ZodBoolean;
344
+ lastActivityAt: z.ZodString;
345
+ archivedAt: z.ZodNullable<z.ZodString>;
346
+ queue: z.ZodObject<{
347
+ steering: z.ZodArray<z.ZodString>;
348
+ followUp: z.ZodArray<z.ZodString>;
349
+ }, z.core.$strip>;
350
+ stats: z.ZodNullable<z.ZodObject<{
351
+ tokens: z.ZodNullable<z.ZodNumber>;
352
+ costUsd: z.ZodNullable<z.ZodNumber>;
353
+ watermark: z.ZodOptional<z.ZodObject<{
354
+ runtimeId: z.ZodString;
355
+ settleSeq: z.ZodNumber;
356
+ }, z.core.$strict>>;
357
+ context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
358
+ tokens: z.ZodNullable<z.ZodNumber>;
359
+ window: z.ZodNumber;
360
+ percent: z.ZodNullable<z.ZodNumber>;
361
+ }, z.core.$strip>>>;
362
+ }, z.core.$strip>>;
363
+ model: z.ZodOptional<z.ZodNullable<z.ZodObject<{
364
+ provider: z.ZodString;
365
+ id: z.ZodString;
366
+ name: z.ZodNullable<z.ZodString>;
367
+ contextWindow: z.ZodNullable<z.ZodNumber>;
368
+ reasoning: z.ZodBoolean;
369
+ scoped: z.ZodOptional<z.ZodBoolean>;
370
+ thinkingLevels: z.ZodArray<z.ZodEnum<{
371
+ high: "high";
372
+ low: "low";
373
+ max: "max";
374
+ medium: "medium";
375
+ minimal: "minimal";
376
+ off: "off";
377
+ xhigh: "xhigh";
378
+ }>>;
379
+ promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
380
+ short: z.ZodOptional<z.ZodNumber>;
381
+ long: z.ZodOptional<z.ZodNumber>;
382
+ }, z.core.$strip>>>;
383
+ }, z.core.$strip>>>;
384
+ thinking: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
385
+ high: "high";
386
+ low: "low";
387
+ max: "max";
388
+ medium: "medium";
389
+ minimal: "minimal";
390
+ off: "off";
391
+ xhigh: "xhigh";
392
+ }>>>;
393
+ compacting: z.ZodOptional<z.ZodBoolean>;
394
+ lastAssistantText: z.ZodNullable<z.ZodString>;
395
+ createdAt: z.ZodString;
396
+ terminal: z.ZodOptional<z.ZodBoolean>;
397
+ unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
398
+ adapterGeneration: z.ZodOptional<z.ZodString>;
399
+ transcriptEpoch: z.ZodOptional<z.ZodNumber>;
400
+ bridge: z.ZodOptional<z.ZodObject<{
401
+ version: z.ZodLiteral<1>;
402
+ runtimeId: z.ZodString;
403
+ nativeSessionId: z.ZodString;
404
+ controllerEpoch: z.ZodOptional<z.ZodString>;
405
+ agentTools: z.ZodBoolean;
406
+ messageDelivery: z.ZodBoolean;
407
+ policyState: z.ZodEnum<{
408
+ active: "active";
409
+ initializing: "initializing";
410
+ lost: "lost";
411
+ unsupported: "unsupported";
412
+ }>;
413
+ policyPhases: z.ZodArray<z.ZodEnum<{
414
+ request: "request";
415
+ tool_call: "tool_call";
416
+ }>>;
417
+ }, z.core.$strip>>;
418
+ promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
419
+ at: z.ZodString;
420
+ provider: z.ZodString;
421
+ model: z.ZodString;
422
+ cacheRead: z.ZodNumber;
423
+ cacheWrite: z.ZodNumber;
424
+ cacheWrite1h: z.ZodNumber;
425
+ }, z.core.$strip>>>;
426
+ cacheAlert: z.ZodOptional<z.ZodNullable<z.ZodObject<{
427
+ ttlSec: z.ZodNullable<z.ZodNumber>;
428
+ warnedFor: z.ZodNullable<z.ZodString>;
429
+ }, z.core.$strip>>>;
430
+ }, z.core.$strip>>;
431
+ tasks: z.ZodArray<z.ZodObject<{
432
+ id: z.ZodString;
433
+ projectId: z.ZodString;
434
+ title: z.ZodString;
435
+ objective: z.ZodString;
436
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
437
+ dependencies: z.ZodArray<z.ZodString>;
438
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
439
+ position: z.ZodNumber;
440
+ state: z.ZodEnum<{
441
+ backlog: "backlog";
442
+ canceled: "canceled";
443
+ done: "done";
444
+ in_progress: "in_progress";
445
+ ready: "ready";
446
+ review: "review";
447
+ }>;
448
+ blocked: z.ZodNullable<z.ZodObject<{
449
+ reason: z.ZodString;
450
+ }, z.core.$strip>>;
451
+ notBefore: z.ZodNullable<z.ZodString>;
452
+ policy: z.ZodObject<{
453
+ hostId: z.ZodNullable<z.ZodString>;
454
+ profileId: z.ZodNullable<z.ZodString>;
455
+ workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
456
+ mode: z.ZodLiteral<"new_worktree">;
457
+ branch: z.ZodNullable<z.ZodString>;
458
+ base: z.ZodNullable<z.ZodString>;
459
+ }, z.core.$strip>, z.ZodObject<{
460
+ mode: z.ZodLiteral<"existing">;
461
+ workspaceId: z.ZodString;
462
+ }, z.core.$strip>], "mode">;
463
+ continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
464
+ enabled: z.ZodLiteral<false>;
465
+ }, z.core.$strip>, z.ZodObject<{
466
+ enabled: z.ZodLiteral<true>;
467
+ objective: z.ZodString;
468
+ maxContinuations: z.ZodNumber;
469
+ maxElapsedMinutes: z.ZodNumber;
470
+ maxTokens: z.ZodNullable<z.ZodNumber>;
471
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
472
+ }, z.core.$strip>], "enabled">;
473
+ completion: z.ZodObject<{
474
+ checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
475
+ requireHumanReview: z.ZodBoolean;
476
+ }, z.core.$strip>;
477
+ }, z.core.$strip>;
478
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
479
+ kind: z.ZodLiteral<"manual">;
480
+ }, z.core.$strip>, z.ZodObject<{
481
+ kind: z.ZodLiteral<"automation">;
482
+ automationId: z.ZodString;
483
+ occurrenceId: z.ZodString;
484
+ routine: z.ZodBoolean;
485
+ }, z.core.$strip>], "kind">;
486
+ groupingKey: z.ZodNullable<z.ZodString>;
487
+ parentTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
488
+ agentOrigin: z.ZodOptional<z.ZodObject<{
489
+ sessionId: z.ZodString;
490
+ toolCallId: z.ZodString;
491
+ }, z.core.$strip>>;
492
+ githubIssue: z.ZodOptional<z.ZodObject<{
493
+ repository: z.ZodString;
494
+ number: z.ZodNumber;
495
+ url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
496
+ launchPrompt: z.ZodString;
497
+ }, z.core.$strict>>;
498
+ currentRunId: z.ZodNullable<z.ZodString>;
499
+ sessionId: z.ZodNullable<z.ZodString>;
500
+ review: z.ZodObject<{
501
+ feedback: z.ZodArray<z.ZodString>;
502
+ changesRequested: z.ZodBoolean;
503
+ }, z.core.$strip>;
504
+ hiddenFromBoard: z.ZodBoolean;
505
+ lastActivityAt: z.ZodString;
506
+ createdAt: z.ZodString;
507
+ updatedAt: z.ZodString;
508
+ }, z.core.$strip>>;
509
+ runs: z.ZodArray<z.ZodObject<{
510
+ id: z.ZodString;
511
+ taskId: z.ZodString;
512
+ sessionId: z.ZodNullable<z.ZodString>;
513
+ hostId: z.ZodNullable<z.ZodString>;
514
+ dispatchKey: z.ZodString;
515
+ attempt: z.ZodNumber;
516
+ state: z.ZodEnum<{
517
+ canceled: "canceled";
518
+ checking: "checking";
519
+ dispatching: "dispatching";
520
+ failed: "failed";
521
+ interrupted: "interrupted";
522
+ queued: "queued";
523
+ running: "running";
524
+ succeeded: "succeeded";
525
+ uncertain: "uncertain";
526
+ waiting_input: "waiting_input";
527
+ }>;
528
+ controlMode: z.ZodEnum<{
529
+ automation: "automation";
530
+ human: "human";
531
+ }>;
532
+ controlRevision: z.ZodNumber;
533
+ continuationsUsed: z.ZodNumber;
534
+ infraRetries: z.ZodNumber;
535
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
536
+ startedAt: z.ZodNullable<z.ZodString>;
537
+ endedAt: z.ZodNullable<z.ZodString>;
538
+ outcome: z.ZodNullable<z.ZodObject<{
539
+ kind: z.ZodEnum<{
540
+ blocked: "blocked";
541
+ canceled: "canceled";
542
+ failed: "failed";
543
+ no_change: "no_change";
544
+ review: "review";
545
+ }>;
546
+ summary: z.ZodString;
547
+ }, z.core.$strip>>;
548
+ limits: z.ZodDiscriminatedUnion<[z.ZodObject<{
549
+ enabled: z.ZodLiteral<false>;
550
+ }, z.core.$strip>, z.ZodObject<{
551
+ enabled: z.ZodLiteral<true>;
552
+ objective: z.ZodString;
553
+ maxContinuations: z.ZodNumber;
554
+ maxElapsedMinutes: z.ZodNumber;
555
+ maxTokens: z.ZodNullable<z.ZodNumber>;
556
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
557
+ }, z.core.$strip>], "enabled">;
558
+ usage: z.ZodObject<{
559
+ tokens: z.ZodNullable<z.ZodNumber>;
560
+ costUsd: z.ZodNullable<z.ZodNumber>;
561
+ accounting: z.ZodEnum<{
562
+ available: "available";
563
+ unavailable: "unavailable";
564
+ }>;
565
+ note: z.ZodNullable<z.ZodString>;
566
+ }, z.core.$strip>;
567
+ checks: z.ZodArray<z.ZodObject<{
568
+ command: z.ZodString;
569
+ exitCode: z.ZodNullable<z.ZodNumber>;
570
+ outputTail: z.ZodString;
571
+ }, z.core.$strip>>;
572
+ createdAt: z.ZodString;
573
+ updatedAt: z.ZodString;
574
+ }, z.core.$strip>>;
575
+ automations: z.ZodArray<z.ZodObject<{
576
+ id: z.ZodString;
577
+ name: z.ZodString;
578
+ enabled: z.ZodBoolean;
579
+ projectId: z.ZodString;
580
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
581
+ kind: z.ZodLiteral<"manual">;
582
+ }, z.core.$strip>, z.ZodObject<{
583
+ kind: z.ZodLiteral<"once">;
584
+ at: z.ZodString;
585
+ }, z.core.$strip>, z.ZodObject<{
586
+ kind: z.ZodLiteral<"cron">;
587
+ expr: z.ZodString;
588
+ timezone: z.ZodString;
589
+ }, z.core.$strip>, z.ZodObject<{
590
+ kind: z.ZodLiteral<"webhook">;
591
+ }, z.core.$strip>, z.ZodObject<{
592
+ kind: z.ZodLiteral<"dependency">;
593
+ taskId: z.ZodString;
594
+ }, z.core.$strip>], "kind">;
595
+ filters: z.ZodArray<z.ZodObject<{
596
+ path: z.ZodString;
597
+ equals: z.ZodString;
598
+ }, z.core.$strip>>;
599
+ template: z.ZodObject<{
600
+ title: z.ZodString;
601
+ objective: z.ZodString;
602
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
603
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
604
+ }, z.core.$strip>;
605
+ hostId: z.ZodNullable<z.ZodString>;
606
+ profileId: z.ZodNullable<z.ZodString>;
607
+ mode: z.ZodEnum<{
608
+ continue: "continue";
609
+ fresh: "fresh";
610
+ watch: "watch";
611
+ }>;
612
+ groupingKey: z.ZodNullable<z.ZodString>;
613
+ overlap: z.ZodEnum<{
614
+ append: "append";
615
+ queue_one: "queue_one";
616
+ skip: "skip";
617
+ }>;
618
+ missed: z.ZodEnum<{
619
+ run_once: "run_once";
620
+ skip: "skip";
621
+ }>;
622
+ continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
623
+ enabled: z.ZodLiteral<false>;
624
+ }, z.core.$strip>, z.ZodObject<{
625
+ enabled: z.ZodLiteral<true>;
626
+ objective: z.ZodString;
627
+ maxContinuations: z.ZodNumber;
628
+ maxElapsedMinutes: z.ZodNumber;
629
+ maxTokens: z.ZodNullable<z.ZodNumber>;
630
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
631
+ }, z.core.$strip>], "enabled">;
632
+ completion: z.ZodObject<{
633
+ checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
634
+ requireHumanReview: z.ZodBoolean;
635
+ }, z.core.$strip>;
636
+ nextAt: z.ZodNullable<z.ZodString>;
637
+ lastEvaluatedAt: z.ZodNullable<z.ZodString>;
638
+ lastOutcome: z.ZodNullable<z.ZodString>;
639
+ failureCount: z.ZodNumber;
640
+ webhookTokenSet: z.ZodBoolean;
641
+ createdAt: z.ZodString;
642
+ updatedAt: z.ZodString;
643
+ }, z.core.$strip>>;
644
+ attention: z.ZodArray<z.ZodObject<{
645
+ id: z.ZodString;
646
+ sessionId: z.ZodNullable<z.ZodString>;
647
+ taskId: z.ZodNullable<z.ZodString>;
648
+ projectId: z.ZodNullable<z.ZodString>;
649
+ reason: z.ZodEnum<{
650
+ cache_expiring: "cache_expiring";
651
+ failed: "failed";
652
+ host_unreachable: "host_unreachable";
653
+ needs_input: "needs_input";
654
+ ready_for_review: "ready_for_review";
655
+ unsupported_interaction: "unsupported_interaction";
656
+ }>;
657
+ severity: z.ZodEnum<{
658
+ critical: "critical";
659
+ info: "info";
660
+ warning: "warning";
661
+ }>;
662
+ summary: z.ZodString;
663
+ interactionId: z.ZodNullable<z.ZodString>;
664
+ deepLink: z.ZodString;
665
+ acknowledgedAt: z.ZodNullable<z.ZodString>;
666
+ resolvedAt: z.ZodNullable<z.ZodString>;
667
+ createdAt: z.ZodString;
668
+ }, z.core.$strip>>;
669
+ interactions: z.ZodArray<z.ZodObject<{
670
+ id: z.ZodString;
671
+ sessionId: z.ZodString;
672
+ revision: z.ZodNumber;
673
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
674
+ kind: z.ZodLiteral<"extension_ui">;
675
+ method: z.ZodEnum<{
676
+ confirm: "confirm";
677
+ editor: "editor";
678
+ input: "input";
679
+ select: "select";
680
+ }>;
681
+ piRequestIds: z.ZodArray<z.ZodString>;
682
+ }, z.core.$strip>, z.ZodObject<{
683
+ kind: z.ZodLiteral<"unsupported_custom">;
684
+ title: z.ZodNullable<z.ZodString>;
685
+ }, z.core.$strip>], "kind">;
686
+ adapterId: z.ZodNullable<z.ZodString>;
687
+ permission: z.ZodOptional<z.ZodObject<{
688
+ kind: z.ZodLiteral<"policy">;
689
+ decisionId: z.ZodString;
690
+ rootTaskId: z.ZodNullable<z.ZodString>;
691
+ ruleId: z.ZodString;
692
+ ruleRevision: z.ZodNumber;
693
+ fingerprint: z.ZodString;
694
+ }, z.core.$strict>>;
695
+ title: z.ZodString;
696
+ presentation: z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>;
697
+ state: z.ZodPreprocess<z.ZodEnum<{
698
+ canceled: "canceled";
699
+ expired: "expired";
700
+ pending: "pending";
701
+ resolved: "resolved";
702
+ unsupported: "unsupported";
703
+ }>, unknown>;
704
+ resolution: z.ZodNullable<z.ZodObject<{
705
+ by: z.ZodString;
706
+ summary: z.ZodString;
707
+ at: z.ZodString;
708
+ }, z.core.$strip>>;
709
+ createdAt: z.ZodString;
710
+ }, z.core.$strip>>;
711
+ panels: z.ZodArray<z.ZodObject<{
712
+ sessionId: z.ZodString;
713
+ adapterId: z.ZodString;
714
+ slot: z.ZodString;
715
+ title: z.ZodString;
716
+ node: z.ZodNullable<z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>>;
717
+ webRenderer: z.ZodBoolean;
718
+ mobileFallback: z.ZodNullable<z.ZodString>;
719
+ contribution: z.ZodOptional<z.ZodObject<{
720
+ placement: z.ZodEnum<{
721
+ "composer.pill": "composer.pill";
722
+ "palette.item": "palette.item";
723
+ "session.panel": "session.panel";
724
+ "sidebar.footer": "sidebar.footer";
725
+ "sidebar.header": "sidebar.header";
726
+ "slash.command": "slash.command";
727
+ }>;
728
+ order: z.ZodOptional<z.ZodNumber>;
729
+ actionId: z.ZodOptional<z.ZodString>;
730
+ id: z.ZodString;
731
+ name: z.ZodOptional<z.ZodString>;
732
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
733
+ }, z.core.$strict>>;
734
+ state: z.ZodOptional<z.ZodUnknown>;
735
+ adapterGeneration: z.ZodOptional<z.ZodString>;
736
+ updatedAt: z.ZodString;
737
+ }, z.core.$strip>>;
738
+ devices: z.ZodArray<z.ZodObject<{
739
+ id: z.ZodString;
740
+ name: z.ZodString;
741
+ kind: z.ZodEnum<{
742
+ browser: "browser";
743
+ cli: "cli";
744
+ pwa: "pwa";
745
+ terminal: "terminal";
746
+ }>;
747
+ createdAt: z.ZodString;
748
+ lastSeenAt: z.ZodNullable<z.ZodString>;
749
+ revokedAt: z.ZodNullable<z.ZodString>;
750
+ push: z.ZodObject<{
751
+ subscribed: z.ZodBoolean;
752
+ permission: z.ZodEnum<{
753
+ default: "default";
754
+ denied: "denied";
755
+ granted: "granted";
756
+ unknown: "unknown";
757
+ }>;
758
+ }, z.core.$strip>;
759
+ preferredMobile: z.ZodBoolean;
760
+ enrolledVia: z.ZodDefault<z.ZodEnum<{
761
+ admin: "admin";
762
+ approval: "approval";
763
+ enrollment: "enrollment";
764
+ oidc: "oidc";
765
+ passkey: "passkey";
766
+ }>>;
767
+ }, z.core.$strip>>;
768
+ adapters: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
769
+ id: z.ZodString;
770
+ version: z.ZodString;
771
+ tier: z.ZodEnum<{
772
+ bundled: "bundled";
773
+ owner: "owner";
774
+ plugin: "plugin";
775
+ project: "project";
776
+ }>;
777
+ target: z.ZodObject<{
778
+ extension: z.ZodString;
779
+ versionRange: z.ZodString;
780
+ testedVersions: z.ZodArray<z.ZodString>;
781
+ }, z.core.$strip>;
782
+ capabilities: z.ZodArray<z.ZodString>;
783
+ webRenderer: z.ZodBoolean;
784
+ status: z.ZodEnum<{
785
+ active: "active";
786
+ disabled: "disabled";
787
+ error: "error";
788
+ }>;
789
+ detail: z.ZodNullable<z.ZodString>;
790
+ }, z.core.$strip>>>;
791
+ dispatchPaused: z.ZodBoolean;
792
+ }, z.core.$strip>;
793
+ export type SyncState = z.infer<typeof SyncState>;
794
+ export declare const Presence: z.ZodObject<{
795
+ foreground: z.ZodBoolean;
796
+ interactedAt: z.ZodNullable<z.ZodString>;
797
+ viewing: z.ZodNullable<z.ZodObject<{
798
+ sessionId: z.ZodString;
799
+ }, z.core.$strip>>;
800
+ }, z.core.$strip>;
801
+ export type Presence = z.infer<typeof Presence>;
802
+ export declare const CLIENT_CAPABILITIES: readonly ["adapter.slots.v1", "timeline.cards.v1"];
803
+ export type ClientCapability = (typeof CLIENT_CAPABILITIES)[number];
804
+ export declare const ClientToServer: z.ZodDiscriminatedUnion<[z.ZodObject<{
805
+ type: z.ZodLiteral<"hello">;
806
+ cursor: z.ZodNullable<z.ZodNumber>;
807
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
808
+ projectionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
809
+ }, z.core.$strip>, z.ZodObject<{
810
+ type: z.ZodLiteral<"presence">;
811
+ presence: z.ZodObject<{
812
+ foreground: z.ZodBoolean;
813
+ interactedAt: z.ZodNullable<z.ZodString>;
814
+ viewing: z.ZodNullable<z.ZodObject<{
815
+ sessionId: z.ZodString;
816
+ }, z.core.$strip>>;
817
+ }, z.core.$strip>;
818
+ }, z.core.$strip>, z.ZodObject<{
819
+ type: z.ZodLiteral<"ping">;
820
+ }, z.core.$strip>], "type">;
821
+ export type ClientToServer = z.infer<typeof ClientToServer>;
822
+ export declare const ServerToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
823
+ type: z.ZodLiteral<"replay">;
824
+ seq: z.ZodNumber;
825
+ events: z.ZodArray<z.ZodObject<{
826
+ hostId: z.ZodOptional<z.ZodString>;
827
+ sessionId: z.ZodOptional<z.ZodString>;
828
+ taskId: z.ZodOptional<z.ZodString>;
829
+ projectId: z.ZodOptional<z.ZodString>;
830
+ seq: z.ZodNumber;
831
+ id: z.ZodString;
832
+ type: z.ZodPreprocess<z.ZodEnum<{
833
+ "adapters.updated": "adapters.updated";
834
+ "attention.updated": "attention.updated";
835
+ "automation.deleted": "automation.deleted";
836
+ "automation.updated": "automation.updated";
837
+ "checkout.updated": "checkout.updated";
838
+ "device.updated": "device.updated";
839
+ diagnostic: "diagnostic";
840
+ "host.updated": "host.updated";
841
+ "interaction.updated": "interaction.updated";
842
+ "occurrence.created": "occurrence.created";
843
+ "occurrence.updated": "occurrence.updated";
844
+ "panel.updated": "panel.updated";
845
+ "profile.deleted": "profile.deleted";
846
+ "profile.updated": "profile.updated";
847
+ "project.deleted": "project.deleted";
848
+ "project.updated": "project.updated";
849
+ "run.updated": "run.updated";
850
+ "session.updated": "session.updated";
851
+ "settings.updated": "settings.updated";
852
+ "task.deleted": "task.deleted";
853
+ "task.updated": "task.updated";
854
+ "transcript.item": "transcript.item";
855
+ "transcript.reset": "transcript.reset";
856
+ "view.deleted": "view.deleted";
857
+ "view.updated": "view.updated";
858
+ "workspace.deleted": "workspace.deleted";
859
+ "workspace.updated": "workspace.updated";
860
+ }>, unknown>;
861
+ at: z.ZodString;
862
+ data: z.ZodUnknown;
863
+ }, z.core.$strip>>;
864
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
865
+ "adapter.slots.v1": "adapter.slots.v1";
866
+ "timeline.cards.v1": "timeline.cards.v1";
867
+ }>>>;
868
+ projectionId: z.ZodOptional<z.ZodString>;
869
+ }, z.core.$strip>, z.ZodObject<{
870
+ type: z.ZodLiteral<"snapshot">;
871
+ seq: z.ZodNumber;
872
+ state: z.ZodObject<{
873
+ hosts: z.ZodArray<z.ZodObject<{
874
+ id: z.ZodString;
875
+ name: z.ZodString;
876
+ platform: z.ZodEnum<{
877
+ darwin: "darwin";
878
+ linux: "linux";
879
+ }>;
880
+ agentVersion: z.ZodString;
881
+ piVersion: z.ZodNullable<z.ZodString>;
882
+ piCompatible: z.ZodBoolean;
883
+ capabilities: z.ZodNullable<z.ZodObject<{
884
+ prompt: z.ZodBoolean;
885
+ steer: z.ZodBoolean;
886
+ followUp: z.ZodBoolean;
887
+ abort: z.ZodBoolean;
888
+ resume: z.ZodBoolean;
889
+ rename: z.ZodBoolean;
890
+ importInactive: z.ZodBoolean;
891
+ extensionDialogs: z.ZodBoolean;
892
+ customUi: z.ZodBoolean;
893
+ widgetsText: z.ZodBoolean;
894
+ widgetsComponent: z.ZodBoolean;
895
+ tokenAccounting: z.ZodBoolean;
896
+ costAccounting: z.ZodBoolean;
897
+ terminal: z.ZodOptional<z.ZodBoolean>;
898
+ sessionControls: z.ZodOptional<z.ZodBoolean>;
899
+ treeNavigation: z.ZodOptional<z.ZodBoolean>;
900
+ agentRequests: z.ZodOptional<z.ZodBoolean>;
901
+ messageDelivery: z.ZodOptional<z.ZodBoolean>;
902
+ policies: z.ZodOptional<z.ZodBoolean>;
903
+ adapterDevelopment: z.ZodOptional<z.ZodBoolean>;
904
+ unsupported: z.ZodArray<z.ZodObject<{
905
+ capability: z.ZodString;
906
+ reason: z.ZodString;
907
+ }, z.core.$strip>>;
908
+ }, z.core.$strip>>;
909
+ connectivity: z.ZodEnum<{
910
+ connected: "connected";
911
+ reconnecting: "reconnecting";
912
+ unreachable: "unreachable";
913
+ }>;
914
+ lastSeenAt: z.ZodNullable<z.ZodString>;
915
+ revokedAt: z.ZodNullable<z.ZodString>;
916
+ createdAt: z.ZodString;
917
+ projectFolders: z.ZodOptional<z.ZodArray<z.ZodString>>;
918
+ projectScan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
919
+ state: z.ZodEnum<{
920
+ done: "done";
921
+ failed: "failed";
922
+ running: "running";
923
+ }>;
924
+ startedAt: z.ZodString;
925
+ finishedAt: z.ZodNullable<z.ZodString>;
926
+ repositories: z.ZodNumber;
927
+ projectsCreated: z.ZodNumber;
928
+ checkoutsAdded: z.ZodNumber;
929
+ errors: z.ZodArray<z.ZodString>;
930
+ }, z.core.$strip>>>;
931
+ usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
932
+ provider: z.ZodEnum<{
933
+ anthropic: "anthropic";
934
+ "openai-codex": "openai-codex";
935
+ }>;
936
+ status: z.ZodEnum<{
937
+ available: "available";
938
+ error: "error";
939
+ expired: "expired";
940
+ rejected: "rejected";
941
+ }>;
942
+ message: z.ZodNullable<z.ZodString>;
943
+ windows: z.ZodArray<z.ZodObject<{
944
+ id: z.ZodEnum<{
945
+ five_hour: "five_hour";
946
+ weekly: "weekly";
947
+ }>;
948
+ usedPct: z.ZodNumber;
949
+ resetsAt: z.ZodNullable<z.ZodString>;
950
+ }, z.core.$strip>>;
951
+ fetchedAt: z.ZodString;
952
+ }, z.core.$strip>>>;
953
+ github: z.ZodOptional<z.ZodObject<{
954
+ available: z.ZodBoolean;
955
+ reason: z.ZodNullable<z.ZodString>;
956
+ }, z.core.$strict>>;
957
+ }, z.core.$strip>>;
958
+ projects: z.ZodArray<z.ZodObject<{
959
+ id: z.ZodString;
960
+ name: z.ZodString;
961
+ repoIdentity: z.ZodString;
962
+ defaultProfileId: z.ZodNullable<z.ZodString>;
963
+ defaultHostId: z.ZodNullable<z.ZodString>;
964
+ maxConcurrentRuns: z.ZodNumber;
965
+ automationEnabled: z.ZodBoolean;
966
+ setupCommand: z.ZodNullable<z.ZodString>;
967
+ checks: z.ZodArray<z.ZodString>;
968
+ workspaceSharing: z.ZodEnum<{
969
+ shared: "shared";
970
+ single_writer: "single_writer";
971
+ }>;
972
+ worktreeDir: z.ZodDefault<z.ZodString>;
973
+ createdAt: z.ZodString;
974
+ updatedAt: z.ZodString;
975
+ }, z.core.$strip>>;
976
+ checkouts: z.ZodArray<z.ZodObject<{
977
+ id: z.ZodString;
978
+ projectId: z.ZodString;
979
+ hostId: z.ZodString;
980
+ path: z.ZodString;
981
+ commonDir: z.ZodString;
982
+ defaultBranch: z.ZodString;
983
+ createdAt: z.ZodString;
984
+ }, z.core.$strip>>;
985
+ workspaces: z.ZodArray<z.ZodObject<{
986
+ id: z.ZodString;
987
+ checkoutId: z.ZodString;
988
+ projectId: z.ZodString;
989
+ hostId: z.ZodString;
990
+ path: z.ZodString;
991
+ branch: z.ZodNullable<z.ZodString>;
992
+ baseBranch: z.ZodNullable<z.ZodString>;
993
+ provenance: z.ZodEnum<{
994
+ discovered: "discovered";
995
+ main: "main";
996
+ managed: "managed";
997
+ }>;
998
+ git: z.ZodObject<{
999
+ dirty: z.ZodBoolean;
1000
+ changedFiles: z.ZodNumber;
1001
+ ahead: z.ZodNumber;
1002
+ behind: z.ZodNumber;
1003
+ unmerged: z.ZodBoolean;
1004
+ }, z.core.$strip>;
1005
+ setup: z.ZodObject<{
1006
+ state: z.ZodEnum<{
1007
+ failed: "failed";
1008
+ none: "none";
1009
+ running: "running";
1010
+ succeeded: "succeeded";
1011
+ }>;
1012
+ log: z.ZodString;
1013
+ }, z.core.$strip>;
1014
+ archivedAt: z.ZodNullable<z.ZodString>;
1015
+ updatedAt: z.ZodString;
1016
+ github: z.ZodOptional<z.ZodObject<{
1017
+ repository: z.ZodNullable<z.ZodString>;
1018
+ headRepository: z.ZodNullable<z.ZodString>;
1019
+ branch: z.ZodNullable<z.ZodString>;
1020
+ fetchedAt: z.ZodNullable<z.ZodString>;
1021
+ attemptedAt: z.ZodString;
1022
+ status: z.ZodEnum<{
1023
+ ambiguous: "ambiguous";
1024
+ error: "error";
1025
+ ready: "ready";
1026
+ unavailable: "unavailable";
1027
+ }>;
1028
+ reason: z.ZodNullable<z.ZodString>;
1029
+ pullRequest: z.ZodNullable<z.ZodObject<{
1030
+ nodeId: z.ZodOptional<z.ZodString>;
1031
+ number: z.ZodNumber;
1032
+ url: z.ZodString;
1033
+ title: z.ZodString;
1034
+ state: z.ZodEnum<{
1035
+ CLOSED: "CLOSED";
1036
+ MERGED: "MERGED";
1037
+ OPEN: "OPEN";
1038
+ }>;
1039
+ isDraft: z.ZodBoolean;
1040
+ headRefName: z.ZodString;
1041
+ headRefOid: z.ZodString;
1042
+ headRepository: z.ZodNullable<z.ZodString>;
1043
+ baseRefName: z.ZodString;
1044
+ mergeable: z.ZodString;
1045
+ mergeStateStatus: z.ZodString;
1046
+ reviewDecision: z.ZodNullable<z.ZodEnum<{
1047
+ APPROVED: "APPROVED";
1048
+ CHANGES_REQUESTED: "CHANGES_REQUESTED";
1049
+ REVIEW_REQUIRED: "REVIEW_REQUIRED";
1050
+ }>>;
1051
+ mergeQueueEnabled: z.ZodBoolean;
1052
+ inMergeQueue: z.ZodBoolean;
1053
+ autoMergeEnabled: z.ZodBoolean;
1054
+ squashMergeAllowed: z.ZodBoolean;
1055
+ }, z.core.$strict>>;
1056
+ checks: z.ZodArray<z.ZodObject<{
1057
+ id: z.ZodString;
1058
+ name: z.ZodString;
1059
+ state: z.ZodString;
1060
+ bucket: z.ZodEnum<{
1061
+ cancel: "cancel";
1062
+ fail: "fail";
1063
+ pass: "pass";
1064
+ pending: "pending";
1065
+ skipping: "skipping";
1066
+ unknown: "unknown";
1067
+ }>;
1068
+ link: z.ZodNullable<z.ZodString>;
1069
+ workflow: z.ZodNullable<z.ZodString>;
1070
+ event: z.ZodNullable<z.ZodString>;
1071
+ startedAt: z.ZodNullable<z.ZodString>;
1072
+ completedAt: z.ZodNullable<z.ZodString>;
1073
+ description: z.ZodNullable<z.ZodString>;
1074
+ actionsJob: z.ZodNullable<z.ZodObject<{
1075
+ runId: z.ZodString;
1076
+ jobId: z.ZodString;
1077
+ attempt: z.ZodNumber;
1078
+ }, z.core.$strict>>;
1079
+ }, z.core.$strict>>;
1080
+ checksComplete: z.ZodBoolean;
1081
+ threads: z.ZodArray<z.ZodObject<{
1082
+ id: z.ZodString;
1083
+ isResolved: z.ZodLiteral<false>;
1084
+ isOutdated: z.ZodBoolean;
1085
+ path: z.ZodNullable<z.ZodString>;
1086
+ line: z.ZodNullable<z.ZodNumber>;
1087
+ startLine: z.ZodNullable<z.ZodNumber>;
1088
+ side: z.ZodNullable<z.ZodEnum<{
1089
+ LEFT: "LEFT";
1090
+ RIGHT: "RIGHT";
1091
+ }>>;
1092
+ comments: z.ZodArray<z.ZodObject<{
1093
+ id: z.ZodString;
1094
+ author: z.ZodNullable<z.ZodString>;
1095
+ body: z.ZodString;
1096
+ bodyTruncated: z.ZodBoolean;
1097
+ url: z.ZodString;
1098
+ createdAt: z.ZodNullable<z.ZodString>;
1099
+ }, z.core.$strict>>;
1100
+ commentsComplete: z.ZodBoolean;
1101
+ }, z.core.$strict>>;
1102
+ threadsComplete: z.ZodBoolean;
1103
+ truncated: z.ZodBoolean;
1104
+ }, z.core.$strict>>;
1105
+ }, z.core.$strip>>;
1106
+ profiles: z.ZodArray<z.ZodObject<{
1107
+ id: z.ZodString;
1108
+ name: z.ZodString;
1109
+ provider: z.ZodNullable<z.ZodString>;
1110
+ model: z.ZodNullable<z.ZodString>;
1111
+ thinking: z.ZodNullable<z.ZodEnum<{
1112
+ high: "high";
1113
+ low: "low";
1114
+ max: "max";
1115
+ medium: "medium";
1116
+ minimal: "minimal";
1117
+ off: "off";
1118
+ xhigh: "xhigh";
1119
+ }>>;
1120
+ projectTrust: z.ZodEnum<{
1121
+ approve: "approve";
1122
+ ask: "ask";
1123
+ ignore: "ignore";
1124
+ }>;
1125
+ extraArgs: z.ZodArray<z.ZodString>;
1126
+ resources: z.ZodOptional<z.ZodEnum<{
1127
+ all: "all";
1128
+ vanilla: "vanilla";
1129
+ }>>;
1130
+ }, z.core.$strip>>;
1131
+ views: z.ZodArray<z.ZodObject<{
1132
+ id: z.ZodString;
1133
+ name: z.ZodString;
1134
+ mode: z.ZodEnum<{
1135
+ all: "all";
1136
+ pinned: "pinned";
1137
+ }>;
1138
+ projectIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
1139
+ hostIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
1140
+ sessionIds: z.ZodArray<z.ZodString>;
1141
+ clients: z.ZodArray<z.ZodObject<{
1142
+ id: z.ZodString;
1143
+ kind: z.ZodEnum<{
1144
+ herdr: "herdr";
1145
+ tmux: "tmux";
1146
+ }>;
1147
+ name: z.ZodString;
1148
+ machine: z.ZodString;
1149
+ lastSeenAt: z.ZodString;
1150
+ }, z.core.$strip>>;
1151
+ createdAt: z.ZodString;
1152
+ updatedAt: z.ZodString;
1153
+ }, z.core.$strip>>;
1154
+ sessions: z.ZodArray<z.ZodObject<{
1155
+ id: z.ZodString;
1156
+ title: z.ZodString;
1157
+ subtitle: z.ZodNullable<z.ZodString>;
1158
+ hostId: z.ZodString;
1159
+ workspaceId: z.ZodNullable<z.ZodString>;
1160
+ projectId: z.ZodNullable<z.ZodString>;
1161
+ cwd: z.ZodString;
1162
+ nativeHandle: z.ZodNullable<z.ZodObject<{
1163
+ sessionId: z.ZodString;
1164
+ sessionFile: z.ZodString;
1165
+ }, z.core.$strip>>;
1166
+ profileSnapshot: z.ZodObject<{
1167
+ id: z.ZodString;
1168
+ name: z.ZodString;
1169
+ provider: z.ZodNullable<z.ZodString>;
1170
+ model: z.ZodNullable<z.ZodString>;
1171
+ thinking: z.ZodNullable<z.ZodEnum<{
1172
+ high: "high";
1173
+ low: "low";
1174
+ max: "max";
1175
+ medium: "medium";
1176
+ minimal: "minimal";
1177
+ off: "off";
1178
+ xhigh: "xhigh";
1179
+ }>>;
1180
+ projectTrust: z.ZodEnum<{
1181
+ approve: "approve";
1182
+ ask: "ask";
1183
+ ignore: "ignore";
1184
+ }>;
1185
+ extraArgs: z.ZodArray<z.ZodString>;
1186
+ resources: z.ZodOptional<z.ZodEnum<{
1187
+ all: "all";
1188
+ vanilla: "vanilla";
1189
+ }>>;
1190
+ }, z.core.$strip>;
1191
+ runtime: z.ZodEnum<{
1192
+ failed: "failed";
1193
+ idle: "idle";
1194
+ interrupted: "interrupted";
1195
+ running: "running";
1196
+ starting: "starting";
1197
+ stopped: "stopped";
1198
+ waiting_input: "waiting_input";
1199
+ }>;
1200
+ runtimeDetail: z.ZodNullable<z.ZodString>;
1201
+ connectivity: z.ZodEnum<{
1202
+ connected: "connected";
1203
+ reconnecting: "reconnecting";
1204
+ unreachable: "unreachable";
1205
+ }>;
1206
+ runId: z.ZodNullable<z.ZodString>;
1207
+ taskId: z.ZodNullable<z.ZodString>;
1208
+ provenance: z.ZodEnum<{
1209
+ created: "created";
1210
+ imported: "imported";
1211
+ subagent: "subagent";
1212
+ }>;
1213
+ readOnly: z.ZodBoolean;
1214
+ lastActivityAt: z.ZodString;
1215
+ archivedAt: z.ZodNullable<z.ZodString>;
1216
+ queue: z.ZodObject<{
1217
+ steering: z.ZodArray<z.ZodString>;
1218
+ followUp: z.ZodArray<z.ZodString>;
1219
+ }, z.core.$strip>;
1220
+ stats: z.ZodNullable<z.ZodObject<{
1221
+ tokens: z.ZodNullable<z.ZodNumber>;
1222
+ costUsd: z.ZodNullable<z.ZodNumber>;
1223
+ watermark: z.ZodOptional<z.ZodObject<{
1224
+ runtimeId: z.ZodString;
1225
+ settleSeq: z.ZodNumber;
1226
+ }, z.core.$strict>>;
1227
+ context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1228
+ tokens: z.ZodNullable<z.ZodNumber>;
1229
+ window: z.ZodNumber;
1230
+ percent: z.ZodNullable<z.ZodNumber>;
1231
+ }, z.core.$strip>>>;
1232
+ }, z.core.$strip>>;
1233
+ model: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1234
+ provider: z.ZodString;
1235
+ id: z.ZodString;
1236
+ name: z.ZodNullable<z.ZodString>;
1237
+ contextWindow: z.ZodNullable<z.ZodNumber>;
1238
+ reasoning: z.ZodBoolean;
1239
+ scoped: z.ZodOptional<z.ZodBoolean>;
1240
+ thinkingLevels: z.ZodArray<z.ZodEnum<{
1241
+ high: "high";
1242
+ low: "low";
1243
+ max: "max";
1244
+ medium: "medium";
1245
+ minimal: "minimal";
1246
+ off: "off";
1247
+ xhigh: "xhigh";
1248
+ }>>;
1249
+ promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1250
+ short: z.ZodOptional<z.ZodNumber>;
1251
+ long: z.ZodOptional<z.ZodNumber>;
1252
+ }, z.core.$strip>>>;
1253
+ }, z.core.$strip>>>;
1254
+ thinking: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1255
+ high: "high";
1256
+ low: "low";
1257
+ max: "max";
1258
+ medium: "medium";
1259
+ minimal: "minimal";
1260
+ off: "off";
1261
+ xhigh: "xhigh";
1262
+ }>>>;
1263
+ compacting: z.ZodOptional<z.ZodBoolean>;
1264
+ lastAssistantText: z.ZodNullable<z.ZodString>;
1265
+ createdAt: z.ZodString;
1266
+ terminal: z.ZodOptional<z.ZodBoolean>;
1267
+ unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1268
+ adapterGeneration: z.ZodOptional<z.ZodString>;
1269
+ transcriptEpoch: z.ZodOptional<z.ZodNumber>;
1270
+ bridge: z.ZodOptional<z.ZodObject<{
1271
+ version: z.ZodLiteral<1>;
1272
+ runtimeId: z.ZodString;
1273
+ nativeSessionId: z.ZodString;
1274
+ controllerEpoch: z.ZodOptional<z.ZodString>;
1275
+ agentTools: z.ZodBoolean;
1276
+ messageDelivery: z.ZodBoolean;
1277
+ policyState: z.ZodEnum<{
1278
+ active: "active";
1279
+ initializing: "initializing";
1280
+ lost: "lost";
1281
+ unsupported: "unsupported";
1282
+ }>;
1283
+ policyPhases: z.ZodArray<z.ZodEnum<{
1284
+ request: "request";
1285
+ tool_call: "tool_call";
1286
+ }>>;
1287
+ }, z.core.$strip>>;
1288
+ promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1289
+ at: z.ZodString;
1290
+ provider: z.ZodString;
1291
+ model: z.ZodString;
1292
+ cacheRead: z.ZodNumber;
1293
+ cacheWrite: z.ZodNumber;
1294
+ cacheWrite1h: z.ZodNumber;
1295
+ }, z.core.$strip>>>;
1296
+ cacheAlert: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1297
+ ttlSec: z.ZodNullable<z.ZodNumber>;
1298
+ warnedFor: z.ZodNullable<z.ZodString>;
1299
+ }, z.core.$strip>>>;
1300
+ }, z.core.$strip>>;
1301
+ tasks: z.ZodArray<z.ZodObject<{
1302
+ id: z.ZodString;
1303
+ projectId: z.ZodString;
1304
+ title: z.ZodString;
1305
+ objective: z.ZodString;
1306
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
1307
+ dependencies: z.ZodArray<z.ZodString>;
1308
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
1309
+ position: z.ZodNumber;
1310
+ state: z.ZodEnum<{
1311
+ backlog: "backlog";
1312
+ canceled: "canceled";
1313
+ done: "done";
1314
+ in_progress: "in_progress";
1315
+ ready: "ready";
1316
+ review: "review";
1317
+ }>;
1318
+ blocked: z.ZodNullable<z.ZodObject<{
1319
+ reason: z.ZodString;
1320
+ }, z.core.$strip>>;
1321
+ notBefore: z.ZodNullable<z.ZodString>;
1322
+ policy: z.ZodObject<{
1323
+ hostId: z.ZodNullable<z.ZodString>;
1324
+ profileId: z.ZodNullable<z.ZodString>;
1325
+ workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
1326
+ mode: z.ZodLiteral<"new_worktree">;
1327
+ branch: z.ZodNullable<z.ZodString>;
1328
+ base: z.ZodNullable<z.ZodString>;
1329
+ }, z.core.$strip>, z.ZodObject<{
1330
+ mode: z.ZodLiteral<"existing">;
1331
+ workspaceId: z.ZodString;
1332
+ }, z.core.$strip>], "mode">;
1333
+ continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
1334
+ enabled: z.ZodLiteral<false>;
1335
+ }, z.core.$strip>, z.ZodObject<{
1336
+ enabled: z.ZodLiteral<true>;
1337
+ objective: z.ZodString;
1338
+ maxContinuations: z.ZodNumber;
1339
+ maxElapsedMinutes: z.ZodNumber;
1340
+ maxTokens: z.ZodNullable<z.ZodNumber>;
1341
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
1342
+ }, z.core.$strip>], "enabled">;
1343
+ completion: z.ZodObject<{
1344
+ checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
1345
+ requireHumanReview: z.ZodBoolean;
1346
+ }, z.core.$strip>;
1347
+ }, z.core.$strip>;
1348
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
1349
+ kind: z.ZodLiteral<"manual">;
1350
+ }, z.core.$strip>, z.ZodObject<{
1351
+ kind: z.ZodLiteral<"automation">;
1352
+ automationId: z.ZodString;
1353
+ occurrenceId: z.ZodString;
1354
+ routine: z.ZodBoolean;
1355
+ }, z.core.$strip>], "kind">;
1356
+ groupingKey: z.ZodNullable<z.ZodString>;
1357
+ parentTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1358
+ agentOrigin: z.ZodOptional<z.ZodObject<{
1359
+ sessionId: z.ZodString;
1360
+ toolCallId: z.ZodString;
1361
+ }, z.core.$strip>>;
1362
+ githubIssue: z.ZodOptional<z.ZodObject<{
1363
+ repository: z.ZodString;
1364
+ number: z.ZodNumber;
1365
+ url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1366
+ launchPrompt: z.ZodString;
1367
+ }, z.core.$strict>>;
1368
+ currentRunId: z.ZodNullable<z.ZodString>;
1369
+ sessionId: z.ZodNullable<z.ZodString>;
1370
+ review: z.ZodObject<{
1371
+ feedback: z.ZodArray<z.ZodString>;
1372
+ changesRequested: z.ZodBoolean;
1373
+ }, z.core.$strip>;
1374
+ hiddenFromBoard: z.ZodBoolean;
1375
+ lastActivityAt: z.ZodString;
1376
+ createdAt: z.ZodString;
1377
+ updatedAt: z.ZodString;
1378
+ }, z.core.$strip>>;
1379
+ runs: z.ZodArray<z.ZodObject<{
1380
+ id: z.ZodString;
1381
+ taskId: z.ZodString;
1382
+ sessionId: z.ZodNullable<z.ZodString>;
1383
+ hostId: z.ZodNullable<z.ZodString>;
1384
+ dispatchKey: z.ZodString;
1385
+ attempt: z.ZodNumber;
1386
+ state: z.ZodEnum<{
1387
+ canceled: "canceled";
1388
+ checking: "checking";
1389
+ dispatching: "dispatching";
1390
+ failed: "failed";
1391
+ interrupted: "interrupted";
1392
+ queued: "queued";
1393
+ running: "running";
1394
+ succeeded: "succeeded";
1395
+ uncertain: "uncertain";
1396
+ waiting_input: "waiting_input";
1397
+ }>;
1398
+ controlMode: z.ZodEnum<{
1399
+ automation: "automation";
1400
+ human: "human";
1401
+ }>;
1402
+ controlRevision: z.ZodNumber;
1403
+ continuationsUsed: z.ZodNumber;
1404
+ infraRetries: z.ZodNumber;
1405
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
1406
+ startedAt: z.ZodNullable<z.ZodString>;
1407
+ endedAt: z.ZodNullable<z.ZodString>;
1408
+ outcome: z.ZodNullable<z.ZodObject<{
1409
+ kind: z.ZodEnum<{
1410
+ blocked: "blocked";
1411
+ canceled: "canceled";
1412
+ failed: "failed";
1413
+ no_change: "no_change";
1414
+ review: "review";
1415
+ }>;
1416
+ summary: z.ZodString;
1417
+ }, z.core.$strip>>;
1418
+ limits: z.ZodDiscriminatedUnion<[z.ZodObject<{
1419
+ enabled: z.ZodLiteral<false>;
1420
+ }, z.core.$strip>, z.ZodObject<{
1421
+ enabled: z.ZodLiteral<true>;
1422
+ objective: z.ZodString;
1423
+ maxContinuations: z.ZodNumber;
1424
+ maxElapsedMinutes: z.ZodNumber;
1425
+ maxTokens: z.ZodNullable<z.ZodNumber>;
1426
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
1427
+ }, z.core.$strip>], "enabled">;
1428
+ usage: z.ZodObject<{
1429
+ tokens: z.ZodNullable<z.ZodNumber>;
1430
+ costUsd: z.ZodNullable<z.ZodNumber>;
1431
+ accounting: z.ZodEnum<{
1432
+ available: "available";
1433
+ unavailable: "unavailable";
1434
+ }>;
1435
+ note: z.ZodNullable<z.ZodString>;
1436
+ }, z.core.$strip>;
1437
+ checks: z.ZodArray<z.ZodObject<{
1438
+ command: z.ZodString;
1439
+ exitCode: z.ZodNullable<z.ZodNumber>;
1440
+ outputTail: z.ZodString;
1441
+ }, z.core.$strip>>;
1442
+ createdAt: z.ZodString;
1443
+ updatedAt: z.ZodString;
1444
+ }, z.core.$strip>>;
1445
+ automations: z.ZodArray<z.ZodObject<{
1446
+ id: z.ZodString;
1447
+ name: z.ZodString;
1448
+ enabled: z.ZodBoolean;
1449
+ projectId: z.ZodString;
1450
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
1451
+ kind: z.ZodLiteral<"manual">;
1452
+ }, z.core.$strip>, z.ZodObject<{
1453
+ kind: z.ZodLiteral<"once">;
1454
+ at: z.ZodString;
1455
+ }, z.core.$strip>, z.ZodObject<{
1456
+ kind: z.ZodLiteral<"cron">;
1457
+ expr: z.ZodString;
1458
+ timezone: z.ZodString;
1459
+ }, z.core.$strip>, z.ZodObject<{
1460
+ kind: z.ZodLiteral<"webhook">;
1461
+ }, z.core.$strip>, z.ZodObject<{
1462
+ kind: z.ZodLiteral<"dependency">;
1463
+ taskId: z.ZodString;
1464
+ }, z.core.$strip>], "kind">;
1465
+ filters: z.ZodArray<z.ZodObject<{
1466
+ path: z.ZodString;
1467
+ equals: z.ZodString;
1468
+ }, z.core.$strip>>;
1469
+ template: z.ZodObject<{
1470
+ title: z.ZodString;
1471
+ objective: z.ZodString;
1472
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
1473
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
1474
+ }, z.core.$strip>;
1475
+ hostId: z.ZodNullable<z.ZodString>;
1476
+ profileId: z.ZodNullable<z.ZodString>;
1477
+ mode: z.ZodEnum<{
1478
+ continue: "continue";
1479
+ fresh: "fresh";
1480
+ watch: "watch";
1481
+ }>;
1482
+ groupingKey: z.ZodNullable<z.ZodString>;
1483
+ overlap: z.ZodEnum<{
1484
+ append: "append";
1485
+ queue_one: "queue_one";
1486
+ skip: "skip";
1487
+ }>;
1488
+ missed: z.ZodEnum<{
1489
+ run_once: "run_once";
1490
+ skip: "skip";
1491
+ }>;
1492
+ continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
1493
+ enabled: z.ZodLiteral<false>;
1494
+ }, z.core.$strip>, z.ZodObject<{
1495
+ enabled: z.ZodLiteral<true>;
1496
+ objective: z.ZodString;
1497
+ maxContinuations: z.ZodNumber;
1498
+ maxElapsedMinutes: z.ZodNumber;
1499
+ maxTokens: z.ZodNullable<z.ZodNumber>;
1500
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
1501
+ }, z.core.$strip>], "enabled">;
1502
+ completion: z.ZodObject<{
1503
+ checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
1504
+ requireHumanReview: z.ZodBoolean;
1505
+ }, z.core.$strip>;
1506
+ nextAt: z.ZodNullable<z.ZodString>;
1507
+ lastEvaluatedAt: z.ZodNullable<z.ZodString>;
1508
+ lastOutcome: z.ZodNullable<z.ZodString>;
1509
+ failureCount: z.ZodNumber;
1510
+ webhookTokenSet: z.ZodBoolean;
1511
+ createdAt: z.ZodString;
1512
+ updatedAt: z.ZodString;
1513
+ }, z.core.$strip>>;
1514
+ attention: z.ZodArray<z.ZodObject<{
1515
+ id: z.ZodString;
1516
+ sessionId: z.ZodNullable<z.ZodString>;
1517
+ taskId: z.ZodNullable<z.ZodString>;
1518
+ projectId: z.ZodNullable<z.ZodString>;
1519
+ reason: z.ZodEnum<{
1520
+ cache_expiring: "cache_expiring";
1521
+ failed: "failed";
1522
+ host_unreachable: "host_unreachable";
1523
+ needs_input: "needs_input";
1524
+ ready_for_review: "ready_for_review";
1525
+ unsupported_interaction: "unsupported_interaction";
1526
+ }>;
1527
+ severity: z.ZodEnum<{
1528
+ critical: "critical";
1529
+ info: "info";
1530
+ warning: "warning";
1531
+ }>;
1532
+ summary: z.ZodString;
1533
+ interactionId: z.ZodNullable<z.ZodString>;
1534
+ deepLink: z.ZodString;
1535
+ acknowledgedAt: z.ZodNullable<z.ZodString>;
1536
+ resolvedAt: z.ZodNullable<z.ZodString>;
1537
+ createdAt: z.ZodString;
1538
+ }, z.core.$strip>>;
1539
+ interactions: z.ZodArray<z.ZodObject<{
1540
+ id: z.ZodString;
1541
+ sessionId: z.ZodString;
1542
+ revision: z.ZodNumber;
1543
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
1544
+ kind: z.ZodLiteral<"extension_ui">;
1545
+ method: z.ZodEnum<{
1546
+ confirm: "confirm";
1547
+ editor: "editor";
1548
+ input: "input";
1549
+ select: "select";
1550
+ }>;
1551
+ piRequestIds: z.ZodArray<z.ZodString>;
1552
+ }, z.core.$strip>, z.ZodObject<{
1553
+ kind: z.ZodLiteral<"unsupported_custom">;
1554
+ title: z.ZodNullable<z.ZodString>;
1555
+ }, z.core.$strip>], "kind">;
1556
+ adapterId: z.ZodNullable<z.ZodString>;
1557
+ permission: z.ZodOptional<z.ZodObject<{
1558
+ kind: z.ZodLiteral<"policy">;
1559
+ decisionId: z.ZodString;
1560
+ rootTaskId: z.ZodNullable<z.ZodString>;
1561
+ ruleId: z.ZodString;
1562
+ ruleRevision: z.ZodNumber;
1563
+ fingerprint: z.ZodString;
1564
+ }, z.core.$strict>>;
1565
+ title: z.ZodString;
1566
+ presentation: z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>;
1567
+ state: z.ZodPreprocess<z.ZodEnum<{
1568
+ canceled: "canceled";
1569
+ expired: "expired";
1570
+ pending: "pending";
1571
+ resolved: "resolved";
1572
+ unsupported: "unsupported";
1573
+ }>, unknown>;
1574
+ resolution: z.ZodNullable<z.ZodObject<{
1575
+ by: z.ZodString;
1576
+ summary: z.ZodString;
1577
+ at: z.ZodString;
1578
+ }, z.core.$strip>>;
1579
+ createdAt: z.ZodString;
1580
+ }, z.core.$strip>>;
1581
+ panels: z.ZodArray<z.ZodObject<{
1582
+ sessionId: z.ZodString;
1583
+ adapterId: z.ZodString;
1584
+ slot: z.ZodString;
1585
+ title: z.ZodString;
1586
+ node: z.ZodNullable<z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>>;
1587
+ webRenderer: z.ZodBoolean;
1588
+ mobileFallback: z.ZodNullable<z.ZodString>;
1589
+ contribution: z.ZodOptional<z.ZodObject<{
1590
+ placement: z.ZodEnum<{
1591
+ "composer.pill": "composer.pill";
1592
+ "palette.item": "palette.item";
1593
+ "session.panel": "session.panel";
1594
+ "sidebar.footer": "sidebar.footer";
1595
+ "sidebar.header": "sidebar.header";
1596
+ "slash.command": "slash.command";
1597
+ }>;
1598
+ order: z.ZodOptional<z.ZodNumber>;
1599
+ actionId: z.ZodOptional<z.ZodString>;
1600
+ id: z.ZodString;
1601
+ name: z.ZodOptional<z.ZodString>;
1602
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
1603
+ }, z.core.$strict>>;
1604
+ state: z.ZodOptional<z.ZodUnknown>;
1605
+ adapterGeneration: z.ZodOptional<z.ZodString>;
1606
+ updatedAt: z.ZodString;
1607
+ }, z.core.$strip>>;
1608
+ devices: z.ZodArray<z.ZodObject<{
1609
+ id: z.ZodString;
1610
+ name: z.ZodString;
1611
+ kind: z.ZodEnum<{
1612
+ browser: "browser";
1613
+ cli: "cli";
1614
+ pwa: "pwa";
1615
+ terminal: "terminal";
1616
+ }>;
1617
+ createdAt: z.ZodString;
1618
+ lastSeenAt: z.ZodNullable<z.ZodString>;
1619
+ revokedAt: z.ZodNullable<z.ZodString>;
1620
+ push: z.ZodObject<{
1621
+ subscribed: z.ZodBoolean;
1622
+ permission: z.ZodEnum<{
1623
+ default: "default";
1624
+ denied: "denied";
1625
+ granted: "granted";
1626
+ unknown: "unknown";
1627
+ }>;
1628
+ }, z.core.$strip>;
1629
+ preferredMobile: z.ZodBoolean;
1630
+ enrolledVia: z.ZodDefault<z.ZodEnum<{
1631
+ admin: "admin";
1632
+ approval: "approval";
1633
+ enrollment: "enrollment";
1634
+ oidc: "oidc";
1635
+ passkey: "passkey";
1636
+ }>>;
1637
+ }, z.core.$strip>>;
1638
+ adapters: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1639
+ id: z.ZodString;
1640
+ version: z.ZodString;
1641
+ tier: z.ZodEnum<{
1642
+ bundled: "bundled";
1643
+ owner: "owner";
1644
+ plugin: "plugin";
1645
+ project: "project";
1646
+ }>;
1647
+ target: z.ZodObject<{
1648
+ extension: z.ZodString;
1649
+ versionRange: z.ZodString;
1650
+ testedVersions: z.ZodArray<z.ZodString>;
1651
+ }, z.core.$strip>;
1652
+ capabilities: z.ZodArray<z.ZodString>;
1653
+ webRenderer: z.ZodBoolean;
1654
+ status: z.ZodEnum<{
1655
+ active: "active";
1656
+ disabled: "disabled";
1657
+ error: "error";
1658
+ }>;
1659
+ detail: z.ZodNullable<z.ZodString>;
1660
+ }, z.core.$strip>>>;
1661
+ dispatchPaused: z.ZodBoolean;
1662
+ }, z.core.$strip>;
1663
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1664
+ "adapter.slots.v1": "adapter.slots.v1";
1665
+ "timeline.cards.v1": "timeline.cards.v1";
1666
+ }>>>;
1667
+ projectionId: z.ZodOptional<z.ZodString>;
1668
+ }, z.core.$strip>, z.ZodObject<{
1669
+ type: z.ZodLiteral<"event">;
1670
+ event: z.ZodObject<{
1671
+ hostId: z.ZodOptional<z.ZodString>;
1672
+ sessionId: z.ZodOptional<z.ZodString>;
1673
+ taskId: z.ZodOptional<z.ZodString>;
1674
+ projectId: z.ZodOptional<z.ZodString>;
1675
+ seq: z.ZodNumber;
1676
+ id: z.ZodString;
1677
+ type: z.ZodPreprocess<z.ZodEnum<{
1678
+ "adapters.updated": "adapters.updated";
1679
+ "attention.updated": "attention.updated";
1680
+ "automation.deleted": "automation.deleted";
1681
+ "automation.updated": "automation.updated";
1682
+ "checkout.updated": "checkout.updated";
1683
+ "device.updated": "device.updated";
1684
+ diagnostic: "diagnostic";
1685
+ "host.updated": "host.updated";
1686
+ "interaction.updated": "interaction.updated";
1687
+ "occurrence.created": "occurrence.created";
1688
+ "occurrence.updated": "occurrence.updated";
1689
+ "panel.updated": "panel.updated";
1690
+ "profile.deleted": "profile.deleted";
1691
+ "profile.updated": "profile.updated";
1692
+ "project.deleted": "project.deleted";
1693
+ "project.updated": "project.updated";
1694
+ "run.updated": "run.updated";
1695
+ "session.updated": "session.updated";
1696
+ "settings.updated": "settings.updated";
1697
+ "task.deleted": "task.deleted";
1698
+ "task.updated": "task.updated";
1699
+ "transcript.item": "transcript.item";
1700
+ "transcript.reset": "transcript.reset";
1701
+ "view.deleted": "view.deleted";
1702
+ "view.updated": "view.updated";
1703
+ "workspace.deleted": "workspace.deleted";
1704
+ "workspace.updated": "workspace.updated";
1705
+ }>, unknown>;
1706
+ at: z.ZodString;
1707
+ data: z.ZodUnknown;
1708
+ }, z.core.$strip>;
1709
+ }, z.core.$strip>, z.ZodObject<{
1710
+ type: z.ZodLiteral<"stream">;
1711
+ delta: z.ZodObject<{
1712
+ sessionId: z.ZodString;
1713
+ itemId: z.ZodString;
1714
+ kind: z.ZodEnum<{
1715
+ text: "text";
1716
+ thinking: "thinking";
1717
+ tool_args: "tool_args";
1718
+ tool_output: "tool_output";
1719
+ }>;
1720
+ delta: z.ZodString;
1721
+ order: z.ZodOptional<z.ZodNumber>;
1722
+ }, z.core.$strip>;
1723
+ }, z.core.$strip>, z.ZodObject<{
1724
+ type: z.ZodLiteral<"pong">;
1725
+ }, z.core.$strip>, z.ZodObject<{
1726
+ type: z.ZodLiteral<"force_logout">;
1727
+ reason: z.ZodString;
1728
+ }, z.core.$strip>], "type">;
1729
+ export type ServerToClient = z.infer<typeof ServerToClient>;
1730
+ //# sourceMappingURL=client-wire.d.ts.map