@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,1350 @@
1
+ import { z } from "zod";
2
+ export declare const Connectivity: z.ZodEnum<{
3
+ connected: "connected";
4
+ reconnecting: "reconnecting";
5
+ unreachable: "unreachable";
6
+ }>;
7
+ export type Connectivity = z.infer<typeof Connectivity>;
8
+ export declare const ControlMode: z.ZodEnum<{
9
+ automation: "automation";
10
+ human: "human";
11
+ }>;
12
+ export type ControlMode = z.infer<typeof ControlMode>;
13
+ export declare const Platform: z.ZodEnum<{
14
+ darwin: "darwin";
15
+ linux: "linux";
16
+ }>;
17
+ export type Platform = z.infer<typeof Platform>;
18
+ export declare const DeviceKind: z.ZodEnum<{
19
+ browser: "browser";
20
+ cli: "cli";
21
+ pwa: "pwa";
22
+ terminal: "terminal";
23
+ }>;
24
+ export type DeviceKind = z.infer<typeof DeviceKind>;
25
+ export declare const DiagnosticLevel: z.ZodEnum<{
26
+ error: "error";
27
+ info: "info";
28
+ warning: "warning";
29
+ }>;
30
+ export type DiagnosticLevel = z.infer<typeof DiagnosticLevel>;
31
+ /** Default managed worktree folder, relative to the checkout root. */
32
+ export declare const DEFAULT_WORKTREE_DIR = ".worktrees";
33
+ /** The capabilities every runtime reports, in display order. */
34
+ declare const CoreCapabilities: z.ZodObject<{
35
+ prompt: z.ZodBoolean;
36
+ steer: z.ZodBoolean;
37
+ followUp: z.ZodBoolean;
38
+ abort: z.ZodBoolean;
39
+ resume: z.ZodBoolean;
40
+ rename: z.ZodBoolean;
41
+ importInactive: z.ZodBoolean;
42
+ extensionDialogs: z.ZodBoolean;
43
+ customUi: z.ZodBoolean;
44
+ widgetsText: z.ZodBoolean;
45
+ widgetsComponent: z.ZodBoolean;
46
+ tokenAccounting: z.ZodBoolean;
47
+ costAccounting: z.ZodBoolean;
48
+ }, z.core.$strip>;
49
+ export declare const CAPABILITY_KEYS: ("abort" | "costAccounting" | "customUi" | "extensionDialogs" | "followUp" | "importInactive" | "prompt" | "rename" | "resume" | "steer" | "tokenAccounting" | "widgetsComponent" | "widgetsText")[];
50
+ export type CapabilityKey = keyof z.infer<typeof CoreCapabilities>;
51
+ export declare const RuntimeCapabilities: z.ZodObject<{
52
+ prompt: z.ZodBoolean;
53
+ steer: z.ZodBoolean;
54
+ followUp: z.ZodBoolean;
55
+ abort: z.ZodBoolean;
56
+ resume: z.ZodBoolean;
57
+ rename: z.ZodBoolean;
58
+ importInactive: z.ZodBoolean;
59
+ extensionDialogs: z.ZodBoolean;
60
+ customUi: z.ZodBoolean;
61
+ widgetsText: z.ZodBoolean;
62
+ widgetsComponent: z.ZodBoolean;
63
+ tokenAccounting: z.ZodBoolean;
64
+ costAccounting: z.ZodBoolean;
65
+ terminal: z.ZodOptional<z.ZodBoolean>;
66
+ sessionControls: z.ZodOptional<z.ZodBoolean>;
67
+ treeNavigation: z.ZodOptional<z.ZodBoolean>;
68
+ agentRequests: z.ZodOptional<z.ZodBoolean>;
69
+ messageDelivery: z.ZodOptional<z.ZodBoolean>;
70
+ policies: z.ZodOptional<z.ZodBoolean>;
71
+ adapterDevelopment: z.ZodOptional<z.ZodBoolean>;
72
+ unsupported: z.ZodArray<z.ZodObject<{
73
+ capability: z.ZodString;
74
+ reason: z.ZodString;
75
+ }, z.core.$strip>>;
76
+ }, z.core.$strip>;
77
+ export type RuntimeCapabilities = z.infer<typeof RuntimeCapabilities>;
78
+ export declare const ProjectScan: z.ZodObject<{
79
+ state: z.ZodEnum<{
80
+ done: "done";
81
+ failed: "failed";
82
+ running: "running";
83
+ }>;
84
+ startedAt: z.ZodString;
85
+ finishedAt: z.ZodNullable<z.ZodString>;
86
+ repositories: z.ZodNumber;
87
+ projectsCreated: z.ZodNumber;
88
+ checkoutsAdded: z.ZodNumber;
89
+ errors: z.ZodArray<z.ZodString>;
90
+ }, z.core.$strip>;
91
+ export type ProjectScan = z.infer<typeof ProjectScan>;
92
+ export declare const UsageWindow: z.ZodObject<{
93
+ id: z.ZodEnum<{
94
+ five_hour: "five_hour";
95
+ weekly: "weekly";
96
+ }>;
97
+ usedPct: z.ZodNumber;
98
+ resetsAt: z.ZodNullable<z.ZodString>;
99
+ }, z.core.$strip>;
100
+ export type UsageWindow = z.infer<typeof UsageWindow>;
101
+ /** Subscription limits of one provider, read on the host from Pi's sign-in. */
102
+ export declare const ProviderUsage: z.ZodObject<{
103
+ provider: z.ZodEnum<{
104
+ anthropic: "anthropic";
105
+ "openai-codex": "openai-codex";
106
+ }>;
107
+ status: z.ZodEnum<{
108
+ available: "available";
109
+ error: "error";
110
+ expired: "expired";
111
+ rejected: "rejected";
112
+ }>;
113
+ message: z.ZodNullable<z.ZodString>;
114
+ windows: z.ZodArray<z.ZodObject<{
115
+ id: z.ZodEnum<{
116
+ five_hour: "five_hour";
117
+ weekly: "weekly";
118
+ }>;
119
+ usedPct: z.ZodNumber;
120
+ resetsAt: z.ZodNullable<z.ZodString>;
121
+ }, z.core.$strip>>;
122
+ fetchedAt: z.ZodString;
123
+ }, z.core.$strip>;
124
+ export type ProviderUsage = z.infer<typeof ProviderUsage>;
125
+ export declare const Host: z.ZodObject<{
126
+ id: z.ZodString;
127
+ name: z.ZodString;
128
+ platform: z.ZodEnum<{
129
+ darwin: "darwin";
130
+ linux: "linux";
131
+ }>;
132
+ agentVersion: z.ZodString;
133
+ piVersion: z.ZodNullable<z.ZodString>;
134
+ piCompatible: z.ZodBoolean;
135
+ capabilities: z.ZodNullable<z.ZodObject<{
136
+ prompt: z.ZodBoolean;
137
+ steer: z.ZodBoolean;
138
+ followUp: z.ZodBoolean;
139
+ abort: z.ZodBoolean;
140
+ resume: z.ZodBoolean;
141
+ rename: z.ZodBoolean;
142
+ importInactive: z.ZodBoolean;
143
+ extensionDialogs: z.ZodBoolean;
144
+ customUi: z.ZodBoolean;
145
+ widgetsText: z.ZodBoolean;
146
+ widgetsComponent: z.ZodBoolean;
147
+ tokenAccounting: z.ZodBoolean;
148
+ costAccounting: z.ZodBoolean;
149
+ terminal: z.ZodOptional<z.ZodBoolean>;
150
+ sessionControls: z.ZodOptional<z.ZodBoolean>;
151
+ treeNavigation: z.ZodOptional<z.ZodBoolean>;
152
+ agentRequests: z.ZodOptional<z.ZodBoolean>;
153
+ messageDelivery: z.ZodOptional<z.ZodBoolean>;
154
+ policies: z.ZodOptional<z.ZodBoolean>;
155
+ adapterDevelopment: z.ZodOptional<z.ZodBoolean>;
156
+ unsupported: z.ZodArray<z.ZodObject<{
157
+ capability: z.ZodString;
158
+ reason: z.ZodString;
159
+ }, z.core.$strip>>;
160
+ }, z.core.$strip>>;
161
+ connectivity: z.ZodEnum<{
162
+ connected: "connected";
163
+ reconnecting: "reconnecting";
164
+ unreachable: "unreachable";
165
+ }>;
166
+ lastSeenAt: z.ZodNullable<z.ZodString>;
167
+ revokedAt: z.ZodNullable<z.ZodString>;
168
+ createdAt: z.ZodString;
169
+ projectFolders: z.ZodOptional<z.ZodArray<z.ZodString>>;
170
+ projectScan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
171
+ state: z.ZodEnum<{
172
+ done: "done";
173
+ failed: "failed";
174
+ running: "running";
175
+ }>;
176
+ startedAt: z.ZodString;
177
+ finishedAt: z.ZodNullable<z.ZodString>;
178
+ repositories: z.ZodNumber;
179
+ projectsCreated: z.ZodNumber;
180
+ checkoutsAdded: z.ZodNumber;
181
+ errors: z.ZodArray<z.ZodString>;
182
+ }, z.core.$strip>>>;
183
+ usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
184
+ provider: z.ZodEnum<{
185
+ anthropic: "anthropic";
186
+ "openai-codex": "openai-codex";
187
+ }>;
188
+ status: z.ZodEnum<{
189
+ available: "available";
190
+ error: "error";
191
+ expired: "expired";
192
+ rejected: "rejected";
193
+ }>;
194
+ message: z.ZodNullable<z.ZodString>;
195
+ windows: z.ZodArray<z.ZodObject<{
196
+ id: z.ZodEnum<{
197
+ five_hour: "five_hour";
198
+ weekly: "weekly";
199
+ }>;
200
+ usedPct: z.ZodNumber;
201
+ resetsAt: z.ZodNullable<z.ZodString>;
202
+ }, z.core.$strip>>;
203
+ fetchedAt: z.ZodString;
204
+ }, z.core.$strip>>>;
205
+ github: z.ZodOptional<z.ZodObject<{
206
+ available: z.ZodBoolean;
207
+ reason: z.ZodNullable<z.ZodString>;
208
+ }, z.core.$strict>>;
209
+ }, z.core.$strip>;
210
+ export type Host = z.infer<typeof Host>;
211
+ /** Managed worktree folder, relative to the checkout root (repo-local by design). */
212
+ export declare const WorktreeDir: z.ZodString;
213
+ export declare const Project: z.ZodObject<{
214
+ id: z.ZodString;
215
+ name: z.ZodString;
216
+ repoIdentity: z.ZodString;
217
+ defaultProfileId: z.ZodNullable<z.ZodString>;
218
+ defaultHostId: z.ZodNullable<z.ZodString>;
219
+ maxConcurrentRuns: z.ZodNumber;
220
+ automationEnabled: z.ZodBoolean;
221
+ setupCommand: z.ZodNullable<z.ZodString>;
222
+ checks: z.ZodArray<z.ZodString>;
223
+ workspaceSharing: z.ZodEnum<{
224
+ shared: "shared";
225
+ single_writer: "single_writer";
226
+ }>;
227
+ worktreeDir: z.ZodDefault<z.ZodString>;
228
+ createdAt: z.ZodString;
229
+ updatedAt: z.ZodString;
230
+ }, z.core.$strip>;
231
+ export type Project = z.infer<typeof Project>;
232
+ export declare const Checkout: z.ZodObject<{
233
+ id: z.ZodString;
234
+ projectId: z.ZodString;
235
+ hostId: z.ZodString;
236
+ path: z.ZodString;
237
+ commonDir: z.ZodString;
238
+ defaultBranch: z.ZodString;
239
+ createdAt: z.ZodString;
240
+ }, z.core.$strip>;
241
+ export type Checkout = z.infer<typeof Checkout>;
242
+ export declare const GitState: z.ZodObject<{
243
+ dirty: z.ZodBoolean;
244
+ changedFiles: z.ZodNumber;
245
+ ahead: z.ZodNumber;
246
+ behind: z.ZodNumber;
247
+ unmerged: z.ZodBoolean;
248
+ }, z.core.$strip>;
249
+ export type GitState = z.infer<typeof GitState>;
250
+ export declare const Workspace: z.ZodObject<{
251
+ id: z.ZodString;
252
+ checkoutId: z.ZodString;
253
+ projectId: z.ZodString;
254
+ hostId: z.ZodString;
255
+ path: z.ZodString;
256
+ branch: z.ZodNullable<z.ZodString>;
257
+ baseBranch: z.ZodNullable<z.ZodString>;
258
+ provenance: z.ZodEnum<{
259
+ discovered: "discovered";
260
+ main: "main";
261
+ managed: "managed";
262
+ }>;
263
+ git: z.ZodObject<{
264
+ dirty: z.ZodBoolean;
265
+ changedFiles: z.ZodNumber;
266
+ ahead: z.ZodNumber;
267
+ behind: z.ZodNumber;
268
+ unmerged: z.ZodBoolean;
269
+ }, z.core.$strip>;
270
+ setup: z.ZodObject<{
271
+ state: z.ZodEnum<{
272
+ failed: "failed";
273
+ none: "none";
274
+ running: "running";
275
+ succeeded: "succeeded";
276
+ }>;
277
+ log: z.ZodString;
278
+ }, z.core.$strip>;
279
+ archivedAt: z.ZodNullable<z.ZodString>;
280
+ updatedAt: z.ZodString;
281
+ github: z.ZodOptional<z.ZodObject<{
282
+ repository: z.ZodNullable<z.ZodString>;
283
+ headRepository: z.ZodNullable<z.ZodString>;
284
+ branch: z.ZodNullable<z.ZodString>;
285
+ fetchedAt: z.ZodNullable<z.ZodString>;
286
+ attemptedAt: z.ZodString;
287
+ status: z.ZodEnum<{
288
+ ambiguous: "ambiguous";
289
+ error: "error";
290
+ ready: "ready";
291
+ unavailable: "unavailable";
292
+ }>;
293
+ reason: z.ZodNullable<z.ZodString>;
294
+ pullRequest: z.ZodNullable<z.ZodObject<{
295
+ nodeId: z.ZodOptional<z.ZodString>;
296
+ number: z.ZodNumber;
297
+ url: z.ZodString;
298
+ title: z.ZodString;
299
+ state: z.ZodEnum<{
300
+ CLOSED: "CLOSED";
301
+ MERGED: "MERGED";
302
+ OPEN: "OPEN";
303
+ }>;
304
+ isDraft: z.ZodBoolean;
305
+ headRefName: z.ZodString;
306
+ headRefOid: z.ZodString;
307
+ headRepository: z.ZodNullable<z.ZodString>;
308
+ baseRefName: z.ZodString;
309
+ mergeable: z.ZodString;
310
+ mergeStateStatus: z.ZodString;
311
+ reviewDecision: z.ZodNullable<z.ZodEnum<{
312
+ APPROVED: "APPROVED";
313
+ CHANGES_REQUESTED: "CHANGES_REQUESTED";
314
+ REVIEW_REQUIRED: "REVIEW_REQUIRED";
315
+ }>>;
316
+ mergeQueueEnabled: z.ZodBoolean;
317
+ inMergeQueue: z.ZodBoolean;
318
+ autoMergeEnabled: z.ZodBoolean;
319
+ squashMergeAllowed: z.ZodBoolean;
320
+ }, z.core.$strict>>;
321
+ checks: z.ZodArray<z.ZodObject<{
322
+ id: z.ZodString;
323
+ name: z.ZodString;
324
+ state: z.ZodString;
325
+ bucket: z.ZodEnum<{
326
+ cancel: "cancel";
327
+ fail: "fail";
328
+ pass: "pass";
329
+ pending: "pending";
330
+ skipping: "skipping";
331
+ unknown: "unknown";
332
+ }>;
333
+ link: z.ZodNullable<z.ZodString>;
334
+ workflow: z.ZodNullable<z.ZodString>;
335
+ event: z.ZodNullable<z.ZodString>;
336
+ startedAt: z.ZodNullable<z.ZodString>;
337
+ completedAt: z.ZodNullable<z.ZodString>;
338
+ description: z.ZodNullable<z.ZodString>;
339
+ actionsJob: z.ZodNullable<z.ZodObject<{
340
+ runId: z.ZodString;
341
+ jobId: z.ZodString;
342
+ attempt: z.ZodNumber;
343
+ }, z.core.$strict>>;
344
+ }, z.core.$strict>>;
345
+ checksComplete: z.ZodBoolean;
346
+ threads: z.ZodArray<z.ZodObject<{
347
+ id: z.ZodString;
348
+ isResolved: z.ZodLiteral<false>;
349
+ isOutdated: z.ZodBoolean;
350
+ path: z.ZodNullable<z.ZodString>;
351
+ line: z.ZodNullable<z.ZodNumber>;
352
+ startLine: z.ZodNullable<z.ZodNumber>;
353
+ side: z.ZodNullable<z.ZodEnum<{
354
+ LEFT: "LEFT";
355
+ RIGHT: "RIGHT";
356
+ }>>;
357
+ comments: z.ZodArray<z.ZodObject<{
358
+ id: z.ZodString;
359
+ author: z.ZodNullable<z.ZodString>;
360
+ body: z.ZodString;
361
+ bodyTruncated: z.ZodBoolean;
362
+ url: z.ZodString;
363
+ createdAt: z.ZodNullable<z.ZodString>;
364
+ }, z.core.$strict>>;
365
+ commentsComplete: z.ZodBoolean;
366
+ }, z.core.$strict>>;
367
+ threadsComplete: z.ZodBoolean;
368
+ truncated: z.ZodBoolean;
369
+ }, z.core.$strict>>;
370
+ }, z.core.$strip>;
371
+ export type Workspace = z.infer<typeof Workspace>;
372
+ export declare const ThinkingLevel: z.ZodEnum<{
373
+ high: "high";
374
+ low: "low";
375
+ max: "max";
376
+ medium: "medium";
377
+ minimal: "minimal";
378
+ off: "off";
379
+ xhigh: "xhigh";
380
+ }>;
381
+ export type ThinkingLevel = z.infer<typeof ThinkingLevel>;
382
+ /** A Pi model as Switchyard shows it (Pi's Model trimmed to what clients need). */
383
+ export declare const SessionModel: z.ZodObject<{
384
+ provider: z.ZodString;
385
+ id: z.ZodString;
386
+ name: z.ZodNullable<z.ZodString>;
387
+ contextWindow: z.ZodNullable<z.ZodNumber>;
388
+ reasoning: z.ZodBoolean;
389
+ scoped: z.ZodOptional<z.ZodBoolean>;
390
+ thinkingLevels: z.ZodArray<z.ZodEnum<{
391
+ high: "high";
392
+ low: "low";
393
+ max: "max";
394
+ medium: "medium";
395
+ minimal: "minimal";
396
+ off: "off";
397
+ xhigh: "xhigh";
398
+ }>>;
399
+ promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
400
+ short: z.ZodOptional<z.ZodNumber>;
401
+ long: z.ZodOptional<z.ZodNumber>;
402
+ }, z.core.$strip>>>;
403
+ }, z.core.$strip>;
404
+ export type SessionModel = z.infer<typeof SessionModel>;
405
+ export declare const SlashCommand: z.ZodObject<{
406
+ name: z.ZodString;
407
+ description: z.ZodNullable<z.ZodString>;
408
+ source: z.ZodEnum<{
409
+ extension: "extension";
410
+ prompt: "prompt";
411
+ skill: "skill";
412
+ }>;
413
+ argumentHint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
+ }, z.core.$strip>;
415
+ export type SlashCommand = z.infer<typeof SlashCommand>;
416
+ export declare const ContextUsage: z.ZodObject<{
417
+ tokens: z.ZodNullable<z.ZodNumber>;
418
+ window: z.ZodNumber;
419
+ percent: z.ZodNullable<z.ZodNumber>;
420
+ }, z.core.$strip>;
421
+ export type ContextUsage = z.infer<typeof ContextUsage>;
422
+ export declare const ExtraArg: z.ZodString;
423
+ export declare const Profile: z.ZodObject<{
424
+ id: z.ZodString;
425
+ name: z.ZodString;
426
+ provider: z.ZodNullable<z.ZodString>;
427
+ model: z.ZodNullable<z.ZodString>;
428
+ thinking: z.ZodNullable<z.ZodEnum<{
429
+ high: "high";
430
+ low: "low";
431
+ max: "max";
432
+ medium: "medium";
433
+ minimal: "minimal";
434
+ off: "off";
435
+ xhigh: "xhigh";
436
+ }>>;
437
+ projectTrust: z.ZodEnum<{
438
+ approve: "approve";
439
+ ask: "ask";
440
+ ignore: "ignore";
441
+ }>;
442
+ extraArgs: z.ZodArray<z.ZodString>;
443
+ resources: z.ZodOptional<z.ZodEnum<{
444
+ all: "all";
445
+ vanilla: "vanilla";
446
+ }>>;
447
+ }, z.core.$strip>;
448
+ export type Profile = z.infer<typeof Profile>;
449
+ /** A TUI client (herdr or tmux session) bound to a view. */
450
+ export declare const ViewClient: z.ZodObject<{
451
+ id: z.ZodString;
452
+ kind: z.ZodEnum<{
453
+ herdr: "herdr";
454
+ tmux: "tmux";
455
+ }>;
456
+ name: z.ZodString;
457
+ machine: z.ZodString;
458
+ lastSeenAt: z.ZodString;
459
+ }, z.core.$strip>;
460
+ export type ViewClient = z.infer<typeof ViewClient>;
461
+ /** A named filter over sessions, plus pins. TUI clients bind to one. */
462
+ export declare const View: z.ZodObject<{
463
+ id: z.ZodString;
464
+ name: z.ZodString;
465
+ mode: z.ZodEnum<{
466
+ all: "all";
467
+ pinned: "pinned";
468
+ }>;
469
+ projectIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
470
+ hostIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
471
+ sessionIds: z.ZodArray<z.ZodString>;
472
+ clients: z.ZodArray<z.ZodObject<{
473
+ id: z.ZodString;
474
+ kind: z.ZodEnum<{
475
+ herdr: "herdr";
476
+ tmux: "tmux";
477
+ }>;
478
+ name: z.ZodString;
479
+ machine: z.ZodString;
480
+ lastSeenAt: z.ZodString;
481
+ }, z.core.$strip>>;
482
+ createdAt: z.ZodString;
483
+ updatedAt: z.ZodString;
484
+ }, z.core.$strip>;
485
+ export type View = z.infer<typeof View>;
486
+ export declare const RuntimeState: z.ZodEnum<{
487
+ failed: "failed";
488
+ idle: "idle";
489
+ interrupted: "interrupted";
490
+ running: "running";
491
+ starting: "starting";
492
+ stopped: "stopped";
493
+ waiting_input: "waiting_input";
494
+ }>;
495
+ export type RuntimeState = z.infer<typeof RuntimeState>;
496
+ export declare const NativeHandle: z.ZodObject<{
497
+ sessionId: z.ZodString;
498
+ sessionFile: z.ZodString;
499
+ }, z.core.$strip>;
500
+ export type NativeHandle = z.infer<typeof NativeHandle>;
501
+ export declare const SessionStats: z.ZodObject<{
502
+ tokens: z.ZodNullable<z.ZodNumber>;
503
+ costUsd: z.ZodNullable<z.ZodNumber>;
504
+ watermark: z.ZodOptional<z.ZodObject<{
505
+ runtimeId: z.ZodString;
506
+ settleSeq: z.ZodNumber;
507
+ }, z.core.$strict>>;
508
+ context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
509
+ tokens: z.ZodNullable<z.ZodNumber>;
510
+ window: z.ZodNumber;
511
+ percent: z.ZodNullable<z.ZodNumber>;
512
+ }, z.core.$strip>>>;
513
+ }, z.core.$strip>;
514
+ export type SessionStats = z.infer<typeof SessionStats>;
515
+ /** Cache usage of the last assistant message (host-reported). */
516
+ export declare const PromptCacheInfo: z.ZodObject<{
517
+ at: z.ZodString;
518
+ provider: z.ZodString;
519
+ model: z.ZodString;
520
+ cacheRead: z.ZodNumber;
521
+ cacheWrite: z.ZodNumber;
522
+ cacheWrite1h: z.ZodNumber;
523
+ }, z.core.$strip>;
524
+ export type PromptCacheInfo = z.infer<typeof PromptCacheInfo>;
525
+ export declare const Session: z.ZodObject<{
526
+ id: z.ZodString;
527
+ title: z.ZodString;
528
+ subtitle: z.ZodNullable<z.ZodString>;
529
+ hostId: z.ZodString;
530
+ workspaceId: z.ZodNullable<z.ZodString>;
531
+ projectId: z.ZodNullable<z.ZodString>;
532
+ cwd: z.ZodString;
533
+ nativeHandle: z.ZodNullable<z.ZodObject<{
534
+ sessionId: z.ZodString;
535
+ sessionFile: z.ZodString;
536
+ }, z.core.$strip>>;
537
+ profileSnapshot: z.ZodObject<{
538
+ id: z.ZodString;
539
+ name: z.ZodString;
540
+ provider: z.ZodNullable<z.ZodString>;
541
+ model: z.ZodNullable<z.ZodString>;
542
+ thinking: z.ZodNullable<z.ZodEnum<{
543
+ high: "high";
544
+ low: "low";
545
+ max: "max";
546
+ medium: "medium";
547
+ minimal: "minimal";
548
+ off: "off";
549
+ xhigh: "xhigh";
550
+ }>>;
551
+ projectTrust: z.ZodEnum<{
552
+ approve: "approve";
553
+ ask: "ask";
554
+ ignore: "ignore";
555
+ }>;
556
+ extraArgs: z.ZodArray<z.ZodString>;
557
+ resources: z.ZodOptional<z.ZodEnum<{
558
+ all: "all";
559
+ vanilla: "vanilla";
560
+ }>>;
561
+ }, z.core.$strip>;
562
+ runtime: z.ZodEnum<{
563
+ failed: "failed";
564
+ idle: "idle";
565
+ interrupted: "interrupted";
566
+ running: "running";
567
+ starting: "starting";
568
+ stopped: "stopped";
569
+ waiting_input: "waiting_input";
570
+ }>;
571
+ runtimeDetail: z.ZodNullable<z.ZodString>;
572
+ connectivity: z.ZodEnum<{
573
+ connected: "connected";
574
+ reconnecting: "reconnecting";
575
+ unreachable: "unreachable";
576
+ }>;
577
+ runId: z.ZodNullable<z.ZodString>;
578
+ taskId: z.ZodNullable<z.ZodString>;
579
+ provenance: z.ZodEnum<{
580
+ created: "created";
581
+ imported: "imported";
582
+ subagent: "subagent";
583
+ }>;
584
+ readOnly: z.ZodBoolean;
585
+ lastActivityAt: z.ZodString;
586
+ archivedAt: z.ZodNullable<z.ZodString>;
587
+ queue: z.ZodObject<{
588
+ steering: z.ZodArray<z.ZodString>;
589
+ followUp: z.ZodArray<z.ZodString>;
590
+ }, z.core.$strip>;
591
+ stats: z.ZodNullable<z.ZodObject<{
592
+ tokens: z.ZodNullable<z.ZodNumber>;
593
+ costUsd: z.ZodNullable<z.ZodNumber>;
594
+ watermark: z.ZodOptional<z.ZodObject<{
595
+ runtimeId: z.ZodString;
596
+ settleSeq: z.ZodNumber;
597
+ }, z.core.$strict>>;
598
+ context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
599
+ tokens: z.ZodNullable<z.ZodNumber>;
600
+ window: z.ZodNumber;
601
+ percent: z.ZodNullable<z.ZodNumber>;
602
+ }, z.core.$strip>>>;
603
+ }, z.core.$strip>>;
604
+ model: z.ZodOptional<z.ZodNullable<z.ZodObject<{
605
+ provider: z.ZodString;
606
+ id: z.ZodString;
607
+ name: z.ZodNullable<z.ZodString>;
608
+ contextWindow: z.ZodNullable<z.ZodNumber>;
609
+ reasoning: z.ZodBoolean;
610
+ scoped: z.ZodOptional<z.ZodBoolean>;
611
+ thinkingLevels: z.ZodArray<z.ZodEnum<{
612
+ high: "high";
613
+ low: "low";
614
+ max: "max";
615
+ medium: "medium";
616
+ minimal: "minimal";
617
+ off: "off";
618
+ xhigh: "xhigh";
619
+ }>>;
620
+ promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
621
+ short: z.ZodOptional<z.ZodNumber>;
622
+ long: z.ZodOptional<z.ZodNumber>;
623
+ }, z.core.$strip>>>;
624
+ }, z.core.$strip>>>;
625
+ thinking: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
626
+ high: "high";
627
+ low: "low";
628
+ max: "max";
629
+ medium: "medium";
630
+ minimal: "minimal";
631
+ off: "off";
632
+ xhigh: "xhigh";
633
+ }>>>;
634
+ compacting: z.ZodOptional<z.ZodBoolean>;
635
+ lastAssistantText: z.ZodNullable<z.ZodString>;
636
+ createdAt: z.ZodString;
637
+ terminal: z.ZodOptional<z.ZodBoolean>;
638
+ unreadSince: z.ZodOptional<z.ZodNullable<z.ZodString>>;
639
+ adapterGeneration: z.ZodOptional<z.ZodString>;
640
+ transcriptEpoch: z.ZodOptional<z.ZodNumber>;
641
+ bridge: z.ZodOptional<z.ZodObject<{
642
+ version: z.ZodLiteral<1>;
643
+ runtimeId: z.ZodString;
644
+ nativeSessionId: z.ZodString;
645
+ controllerEpoch: z.ZodOptional<z.ZodString>;
646
+ agentTools: z.ZodBoolean;
647
+ messageDelivery: z.ZodBoolean;
648
+ policyState: z.ZodEnum<{
649
+ active: "active";
650
+ initializing: "initializing";
651
+ lost: "lost";
652
+ unsupported: "unsupported";
653
+ }>;
654
+ policyPhases: z.ZodArray<z.ZodEnum<{
655
+ request: "request";
656
+ tool_call: "tool_call";
657
+ }>>;
658
+ }, z.core.$strip>>;
659
+ promptCache: z.ZodOptional<z.ZodNullable<z.ZodObject<{
660
+ at: z.ZodString;
661
+ provider: z.ZodString;
662
+ model: z.ZodString;
663
+ cacheRead: z.ZodNumber;
664
+ cacheWrite: z.ZodNumber;
665
+ cacheWrite1h: z.ZodNumber;
666
+ }, z.core.$strip>>>;
667
+ cacheAlert: z.ZodOptional<z.ZodNullable<z.ZodObject<{
668
+ ttlSec: z.ZodNullable<z.ZodNumber>;
669
+ warnedFor: z.ZodNullable<z.ZodString>;
670
+ }, z.core.$strip>>>;
671
+ }, z.core.$strip>;
672
+ export type Session = z.infer<typeof Session>;
673
+ export declare const ContinuationPolicy: z.ZodDiscriminatedUnion<[z.ZodObject<{
674
+ enabled: z.ZodLiteral<false>;
675
+ }, z.core.$strip>, z.ZodObject<{
676
+ enabled: z.ZodLiteral<true>;
677
+ objective: z.ZodString;
678
+ maxContinuations: z.ZodNumber;
679
+ maxElapsedMinutes: z.ZodNumber;
680
+ maxTokens: z.ZodNullable<z.ZodNumber>;
681
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
682
+ }, z.core.$strip>], "enabled">;
683
+ export type ContinuationPolicy = z.infer<typeof ContinuationPolicy>;
684
+ export declare const CompletionPolicy: z.ZodObject<{
685
+ checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
686
+ requireHumanReview: z.ZodBoolean;
687
+ }, z.core.$strip>;
688
+ export type CompletionPolicy = z.infer<typeof CompletionPolicy>;
689
+ export declare const WorkspacePolicy: z.ZodDiscriminatedUnion<[z.ZodObject<{
690
+ mode: z.ZodLiteral<"new_worktree">;
691
+ branch: z.ZodNullable<z.ZodString>;
692
+ base: z.ZodNullable<z.ZodString>;
693
+ }, z.core.$strip>, z.ZodObject<{
694
+ mode: z.ZodLiteral<"existing">;
695
+ workspaceId: z.ZodString;
696
+ }, z.core.$strip>], "mode">;
697
+ export type WorkspacePolicy = z.infer<typeof WorkspacePolicy>;
698
+ export declare const TaskPolicy: z.ZodObject<{
699
+ hostId: z.ZodNullable<z.ZodString>;
700
+ profileId: z.ZodNullable<z.ZodString>;
701
+ workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
702
+ mode: z.ZodLiteral<"new_worktree">;
703
+ branch: z.ZodNullable<z.ZodString>;
704
+ base: z.ZodNullable<z.ZodString>;
705
+ }, z.core.$strip>, z.ZodObject<{
706
+ mode: z.ZodLiteral<"existing">;
707
+ workspaceId: z.ZodString;
708
+ }, z.core.$strip>], "mode">;
709
+ continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
710
+ enabled: z.ZodLiteral<false>;
711
+ }, z.core.$strip>, z.ZodObject<{
712
+ enabled: z.ZodLiteral<true>;
713
+ objective: z.ZodString;
714
+ maxContinuations: z.ZodNumber;
715
+ maxElapsedMinutes: z.ZodNumber;
716
+ maxTokens: z.ZodNullable<z.ZodNumber>;
717
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
718
+ }, z.core.$strip>], "enabled">;
719
+ completion: z.ZodObject<{
720
+ checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
721
+ requireHumanReview: z.ZodBoolean;
722
+ }, z.core.$strip>;
723
+ }, z.core.$strip>;
724
+ export type TaskPolicy = z.infer<typeof TaskPolicy>;
725
+ export declare const DEFAULT_TASK_POLICY: TaskPolicy;
726
+ export declare const TaskState: z.ZodEnum<{
727
+ backlog: "backlog";
728
+ canceled: "canceled";
729
+ done: "done";
730
+ in_progress: "in_progress";
731
+ ready: "ready";
732
+ review: "review";
733
+ }>;
734
+ export type TaskState = z.infer<typeof TaskState>;
735
+ export declare const Priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
736
+ export type Priority = z.infer<typeof Priority>;
737
+ export declare const PRIORITY_LABELS: readonly ["Urgent", "High", "Normal", "Low"];
738
+ export declare const TaskOrigin: z.ZodDiscriminatedUnion<[z.ZodObject<{
739
+ kind: z.ZodLiteral<"manual">;
740
+ }, z.core.$strip>, z.ZodObject<{
741
+ kind: z.ZodLiteral<"automation">;
742
+ automationId: z.ZodString;
743
+ occurrenceId: z.ZodString;
744
+ routine: z.ZodBoolean;
745
+ }, z.core.$strip>], "kind">;
746
+ export type TaskOrigin = z.infer<typeof TaskOrigin>;
747
+ export declare const Task: z.ZodObject<{
748
+ id: z.ZodString;
749
+ projectId: z.ZodString;
750
+ title: z.ZodString;
751
+ objective: z.ZodString;
752
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
753
+ dependencies: z.ZodArray<z.ZodString>;
754
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
755
+ position: z.ZodNumber;
756
+ state: z.ZodEnum<{
757
+ backlog: "backlog";
758
+ canceled: "canceled";
759
+ done: "done";
760
+ in_progress: "in_progress";
761
+ ready: "ready";
762
+ review: "review";
763
+ }>;
764
+ blocked: z.ZodNullable<z.ZodObject<{
765
+ reason: z.ZodString;
766
+ }, z.core.$strip>>;
767
+ notBefore: z.ZodNullable<z.ZodString>;
768
+ policy: z.ZodObject<{
769
+ hostId: z.ZodNullable<z.ZodString>;
770
+ profileId: z.ZodNullable<z.ZodString>;
771
+ workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
772
+ mode: z.ZodLiteral<"new_worktree">;
773
+ branch: z.ZodNullable<z.ZodString>;
774
+ base: z.ZodNullable<z.ZodString>;
775
+ }, z.core.$strip>, z.ZodObject<{
776
+ mode: z.ZodLiteral<"existing">;
777
+ workspaceId: z.ZodString;
778
+ }, z.core.$strip>], "mode">;
779
+ continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
780
+ enabled: z.ZodLiteral<false>;
781
+ }, z.core.$strip>, z.ZodObject<{
782
+ enabled: z.ZodLiteral<true>;
783
+ objective: z.ZodString;
784
+ maxContinuations: z.ZodNumber;
785
+ maxElapsedMinutes: z.ZodNumber;
786
+ maxTokens: z.ZodNullable<z.ZodNumber>;
787
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
788
+ }, z.core.$strip>], "enabled">;
789
+ completion: z.ZodObject<{
790
+ checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
791
+ requireHumanReview: z.ZodBoolean;
792
+ }, z.core.$strip>;
793
+ }, z.core.$strip>;
794
+ origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
795
+ kind: z.ZodLiteral<"manual">;
796
+ }, z.core.$strip>, z.ZodObject<{
797
+ kind: z.ZodLiteral<"automation">;
798
+ automationId: z.ZodString;
799
+ occurrenceId: z.ZodString;
800
+ routine: z.ZodBoolean;
801
+ }, z.core.$strip>], "kind">;
802
+ groupingKey: z.ZodNullable<z.ZodString>;
803
+ parentTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
804
+ agentOrigin: z.ZodOptional<z.ZodObject<{
805
+ sessionId: z.ZodString;
806
+ toolCallId: z.ZodString;
807
+ }, z.core.$strip>>;
808
+ githubIssue: z.ZodOptional<z.ZodObject<{
809
+ repository: z.ZodString;
810
+ number: z.ZodNumber;
811
+ url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
812
+ launchPrompt: z.ZodString;
813
+ }, z.core.$strict>>;
814
+ currentRunId: z.ZodNullable<z.ZodString>;
815
+ sessionId: z.ZodNullable<z.ZodString>;
816
+ review: z.ZodObject<{
817
+ feedback: z.ZodArray<z.ZodString>;
818
+ changesRequested: z.ZodBoolean;
819
+ }, z.core.$strip>;
820
+ hiddenFromBoard: z.ZodBoolean;
821
+ lastActivityAt: z.ZodString;
822
+ createdAt: z.ZodString;
823
+ updatedAt: z.ZodString;
824
+ }, z.core.$strip>;
825
+ export type Task = z.infer<typeof Task>;
826
+ export declare const RunState: z.ZodEnum<{
827
+ canceled: "canceled";
828
+ checking: "checking";
829
+ dispatching: "dispatching";
830
+ failed: "failed";
831
+ interrupted: "interrupted";
832
+ queued: "queued";
833
+ running: "running";
834
+ succeeded: "succeeded";
835
+ uncertain: "uncertain";
836
+ waiting_input: "waiting_input";
837
+ }>;
838
+ export type RunState = z.infer<typeof RunState>;
839
+ export declare const CheckResult: z.ZodObject<{
840
+ command: z.ZodString;
841
+ exitCode: z.ZodNullable<z.ZodNumber>;
842
+ outputTail: z.ZodString;
843
+ }, z.core.$strip>;
844
+ export type CheckResult = z.infer<typeof CheckResult>;
845
+ export declare const Run: z.ZodObject<{
846
+ id: z.ZodString;
847
+ taskId: z.ZodString;
848
+ sessionId: z.ZodNullable<z.ZodString>;
849
+ hostId: z.ZodNullable<z.ZodString>;
850
+ dispatchKey: z.ZodString;
851
+ attempt: z.ZodNumber;
852
+ state: z.ZodEnum<{
853
+ canceled: "canceled";
854
+ checking: "checking";
855
+ dispatching: "dispatching";
856
+ failed: "failed";
857
+ interrupted: "interrupted";
858
+ queued: "queued";
859
+ running: "running";
860
+ succeeded: "succeeded";
861
+ uncertain: "uncertain";
862
+ waiting_input: "waiting_input";
863
+ }>;
864
+ controlMode: z.ZodEnum<{
865
+ automation: "automation";
866
+ human: "human";
867
+ }>;
868
+ controlRevision: z.ZodNumber;
869
+ continuationsUsed: z.ZodNumber;
870
+ infraRetries: z.ZodNumber;
871
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
872
+ startedAt: z.ZodNullable<z.ZodString>;
873
+ endedAt: z.ZodNullable<z.ZodString>;
874
+ outcome: z.ZodNullable<z.ZodObject<{
875
+ kind: z.ZodEnum<{
876
+ blocked: "blocked";
877
+ canceled: "canceled";
878
+ failed: "failed";
879
+ no_change: "no_change";
880
+ review: "review";
881
+ }>;
882
+ summary: z.ZodString;
883
+ }, z.core.$strip>>;
884
+ limits: z.ZodDiscriminatedUnion<[z.ZodObject<{
885
+ enabled: z.ZodLiteral<false>;
886
+ }, z.core.$strip>, z.ZodObject<{
887
+ enabled: z.ZodLiteral<true>;
888
+ objective: z.ZodString;
889
+ maxContinuations: z.ZodNumber;
890
+ maxElapsedMinutes: z.ZodNumber;
891
+ maxTokens: z.ZodNullable<z.ZodNumber>;
892
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
893
+ }, z.core.$strip>], "enabled">;
894
+ usage: z.ZodObject<{
895
+ tokens: z.ZodNullable<z.ZodNumber>;
896
+ costUsd: z.ZodNullable<z.ZodNumber>;
897
+ accounting: z.ZodEnum<{
898
+ available: "available";
899
+ unavailable: "unavailable";
900
+ }>;
901
+ note: z.ZodNullable<z.ZodString>;
902
+ }, z.core.$strip>;
903
+ checks: z.ZodArray<z.ZodObject<{
904
+ command: z.ZodString;
905
+ exitCode: z.ZodNullable<z.ZodNumber>;
906
+ outputTail: z.ZodString;
907
+ }, z.core.$strip>>;
908
+ createdAt: z.ZodString;
909
+ updatedAt: z.ZodString;
910
+ }, z.core.$strip>;
911
+ export type Run = z.infer<typeof Run>;
912
+ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
913
+ kind: z.ZodLiteral<"manual">;
914
+ }, z.core.$strip>, z.ZodObject<{
915
+ kind: z.ZodLiteral<"once">;
916
+ at: z.ZodString;
917
+ }, z.core.$strip>, z.ZodObject<{
918
+ kind: z.ZodLiteral<"cron">;
919
+ expr: z.ZodString;
920
+ timezone: z.ZodString;
921
+ }, z.core.$strip>, z.ZodObject<{
922
+ kind: z.ZodLiteral<"webhook">;
923
+ }, z.core.$strip>, z.ZodObject<{
924
+ kind: z.ZodLiteral<"dependency">;
925
+ taskId: z.ZodString;
926
+ }, z.core.$strip>], "kind">;
927
+ export type Trigger = z.infer<typeof Trigger>;
928
+ export declare const TaskTemplate: z.ZodObject<{
929
+ title: z.ZodString;
930
+ objective: z.ZodString;
931
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
932
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
933
+ }, z.core.$strip>;
934
+ export type TaskTemplate = z.infer<typeof TaskTemplate>;
935
+ export declare const Automation: z.ZodObject<{
936
+ id: z.ZodString;
937
+ name: z.ZodString;
938
+ enabled: z.ZodBoolean;
939
+ projectId: z.ZodString;
940
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
941
+ kind: z.ZodLiteral<"manual">;
942
+ }, z.core.$strip>, z.ZodObject<{
943
+ kind: z.ZodLiteral<"once">;
944
+ at: z.ZodString;
945
+ }, z.core.$strip>, z.ZodObject<{
946
+ kind: z.ZodLiteral<"cron">;
947
+ expr: z.ZodString;
948
+ timezone: z.ZodString;
949
+ }, z.core.$strip>, z.ZodObject<{
950
+ kind: z.ZodLiteral<"webhook">;
951
+ }, z.core.$strip>, z.ZodObject<{
952
+ kind: z.ZodLiteral<"dependency">;
953
+ taskId: z.ZodString;
954
+ }, z.core.$strip>], "kind">;
955
+ filters: z.ZodArray<z.ZodObject<{
956
+ path: z.ZodString;
957
+ equals: z.ZodString;
958
+ }, z.core.$strip>>;
959
+ template: z.ZodObject<{
960
+ title: z.ZodString;
961
+ objective: z.ZodString;
962
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
963
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
964
+ }, z.core.$strip>;
965
+ hostId: z.ZodNullable<z.ZodString>;
966
+ profileId: z.ZodNullable<z.ZodString>;
967
+ mode: z.ZodEnum<{
968
+ continue: "continue";
969
+ fresh: "fresh";
970
+ watch: "watch";
971
+ }>;
972
+ groupingKey: z.ZodNullable<z.ZodString>;
973
+ overlap: z.ZodEnum<{
974
+ append: "append";
975
+ queue_one: "queue_one";
976
+ skip: "skip";
977
+ }>;
978
+ missed: z.ZodEnum<{
979
+ run_once: "run_once";
980
+ skip: "skip";
981
+ }>;
982
+ continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
983
+ enabled: z.ZodLiteral<false>;
984
+ }, z.core.$strip>, z.ZodObject<{
985
+ enabled: z.ZodLiteral<true>;
986
+ objective: z.ZodString;
987
+ maxContinuations: z.ZodNumber;
988
+ maxElapsedMinutes: z.ZodNumber;
989
+ maxTokens: z.ZodNullable<z.ZodNumber>;
990
+ maxCostUsd: z.ZodNullable<z.ZodNumber>;
991
+ }, z.core.$strip>], "enabled">;
992
+ completion: z.ZodObject<{
993
+ checks: z.ZodNullable<z.ZodArray<z.ZodString>>;
994
+ requireHumanReview: z.ZodBoolean;
995
+ }, z.core.$strip>;
996
+ nextAt: z.ZodNullable<z.ZodString>;
997
+ lastEvaluatedAt: z.ZodNullable<z.ZodString>;
998
+ lastOutcome: z.ZodNullable<z.ZodString>;
999
+ failureCount: z.ZodNumber;
1000
+ webhookTokenSet: z.ZodBoolean;
1001
+ createdAt: z.ZodString;
1002
+ updatedAt: z.ZodString;
1003
+ }, z.core.$strip>;
1004
+ export type Automation = z.infer<typeof Automation>;
1005
+ export declare const OccurrenceState: z.ZodEnum<{
1006
+ appended: "appended";
1007
+ failed: "failed";
1008
+ filtered: "filtered";
1009
+ fired: "fired";
1010
+ queued: "queued";
1011
+ skipped_missed: "skipped_missed";
1012
+ skipped_overlap: "skipped_overlap";
1013
+ }>;
1014
+ export type OccurrenceState = z.infer<typeof OccurrenceState>;
1015
+ export declare const Occurrence: z.ZodObject<{
1016
+ id: z.ZodString;
1017
+ automationId: z.ZodString;
1018
+ key: z.ZodString;
1019
+ scheduledFor: z.ZodNullable<z.ZodString>;
1020
+ state: z.ZodEnum<{
1021
+ appended: "appended";
1022
+ failed: "failed";
1023
+ filtered: "filtered";
1024
+ fired: "fired";
1025
+ queued: "queued";
1026
+ skipped_missed: "skipped_missed";
1027
+ skipped_overlap: "skipped_overlap";
1028
+ }>;
1029
+ taskId: z.ZodNullable<z.ZodString>;
1030
+ reason: z.ZodNullable<z.ZodString>;
1031
+ outcome: z.ZodNullable<z.ZodString>;
1032
+ createdAt: z.ZodString;
1033
+ }, z.core.$strip>;
1034
+ export type Occurrence = z.infer<typeof Occurrence>;
1035
+ /** "canceled" is spelled like TaskState and RunState. Parsing also accepts the pre-0.9 "cancelled" for one release. */
1036
+ export declare const InteractionState: z.ZodPreprocess<z.ZodEnum<{
1037
+ canceled: "canceled";
1038
+ expired: "expired";
1039
+ pending: "pending";
1040
+ resolved: "resolved";
1041
+ unsupported: "unsupported";
1042
+ }>, unknown>;
1043
+ export type InteractionState = z.infer<typeof InteractionState>;
1044
+ export declare const Interaction: z.ZodObject<{
1045
+ id: z.ZodString;
1046
+ sessionId: z.ZodString;
1047
+ revision: z.ZodNumber;
1048
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
1049
+ kind: z.ZodLiteral<"extension_ui">;
1050
+ method: z.ZodEnum<{
1051
+ confirm: "confirm";
1052
+ editor: "editor";
1053
+ input: "input";
1054
+ select: "select";
1055
+ }>;
1056
+ piRequestIds: z.ZodArray<z.ZodString>;
1057
+ }, z.core.$strip>, z.ZodObject<{
1058
+ kind: z.ZodLiteral<"unsupported_custom">;
1059
+ title: z.ZodNullable<z.ZodString>;
1060
+ }, z.core.$strip>], "kind">;
1061
+ adapterId: z.ZodNullable<z.ZodString>;
1062
+ permission: z.ZodOptional<z.ZodObject<{
1063
+ kind: z.ZodLiteral<"policy">;
1064
+ decisionId: z.ZodString;
1065
+ rootTaskId: z.ZodNullable<z.ZodString>;
1066
+ ruleId: z.ZodString;
1067
+ ruleRevision: z.ZodNumber;
1068
+ fingerprint: z.ZodString;
1069
+ }, z.core.$strict>>;
1070
+ title: z.ZodString;
1071
+ presentation: z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>;
1072
+ state: z.ZodPreprocess<z.ZodEnum<{
1073
+ canceled: "canceled";
1074
+ expired: "expired";
1075
+ pending: "pending";
1076
+ resolved: "resolved";
1077
+ unsupported: "unsupported";
1078
+ }>, unknown>;
1079
+ resolution: z.ZodNullable<z.ZodObject<{
1080
+ by: z.ZodString;
1081
+ summary: z.ZodString;
1082
+ at: z.ZodString;
1083
+ }, z.core.$strip>>;
1084
+ createdAt: z.ZodString;
1085
+ }, z.core.$strip>;
1086
+ export type Interaction = z.infer<typeof Interaction>;
1087
+ export declare const AttentionReason: z.ZodEnum<{
1088
+ cache_expiring: "cache_expiring";
1089
+ failed: "failed";
1090
+ host_unreachable: "host_unreachable";
1091
+ needs_input: "needs_input";
1092
+ ready_for_review: "ready_for_review";
1093
+ unsupported_interaction: "unsupported_interaction";
1094
+ }>;
1095
+ export type AttentionReason = z.infer<typeof AttentionReason>;
1096
+ export declare const AttentionItem: z.ZodObject<{
1097
+ id: z.ZodString;
1098
+ sessionId: z.ZodNullable<z.ZodString>;
1099
+ taskId: z.ZodNullable<z.ZodString>;
1100
+ projectId: z.ZodNullable<z.ZodString>;
1101
+ reason: z.ZodEnum<{
1102
+ cache_expiring: "cache_expiring";
1103
+ failed: "failed";
1104
+ host_unreachable: "host_unreachable";
1105
+ needs_input: "needs_input";
1106
+ ready_for_review: "ready_for_review";
1107
+ unsupported_interaction: "unsupported_interaction";
1108
+ }>;
1109
+ severity: z.ZodEnum<{
1110
+ critical: "critical";
1111
+ info: "info";
1112
+ warning: "warning";
1113
+ }>;
1114
+ summary: z.ZodString;
1115
+ interactionId: z.ZodNullable<z.ZodString>;
1116
+ deepLink: z.ZodString;
1117
+ acknowledgedAt: z.ZodNullable<z.ZodString>;
1118
+ resolvedAt: z.ZodNullable<z.ZodString>;
1119
+ createdAt: z.ZodString;
1120
+ }, z.core.$strip>;
1121
+ export type AttentionItem = z.infer<typeof AttentionItem>;
1122
+ export declare const Device: z.ZodObject<{
1123
+ id: z.ZodString;
1124
+ name: z.ZodString;
1125
+ kind: z.ZodEnum<{
1126
+ browser: "browser";
1127
+ cli: "cli";
1128
+ pwa: "pwa";
1129
+ terminal: "terminal";
1130
+ }>;
1131
+ createdAt: z.ZodString;
1132
+ lastSeenAt: z.ZodNullable<z.ZodString>;
1133
+ revokedAt: z.ZodNullable<z.ZodString>;
1134
+ push: z.ZodObject<{
1135
+ subscribed: z.ZodBoolean;
1136
+ permission: z.ZodEnum<{
1137
+ default: "default";
1138
+ denied: "denied";
1139
+ granted: "granted";
1140
+ unknown: "unknown";
1141
+ }>;
1142
+ }, z.core.$strip>;
1143
+ preferredMobile: z.ZodBoolean;
1144
+ enrolledVia: z.ZodDefault<z.ZodEnum<{
1145
+ admin: "admin";
1146
+ approval: "approval";
1147
+ enrollment: "enrollment";
1148
+ oidc: "oidc";
1149
+ passkey: "passkey";
1150
+ }>>;
1151
+ }, z.core.$strip>;
1152
+ export type Device = z.infer<typeof Device>;
1153
+ export declare const ToolItemData: z.ZodObject<{
1154
+ toolCallId: z.ZodString;
1155
+ name: z.ZodString;
1156
+ status: z.ZodEnum<{
1157
+ error: "error";
1158
+ ok: "ok";
1159
+ running: "running";
1160
+ }>;
1161
+ args: z.ZodUnknown;
1162
+ summary: z.ZodString;
1163
+ output: z.ZodString;
1164
+ startedAt: z.ZodString;
1165
+ durationMs: z.ZodNullable<z.ZodNumber>;
1166
+ card: z.ZodNullable<z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>>;
1167
+ adapterId: z.ZodNullable<z.ZodString>;
1168
+ adapterGeneration: z.ZodOptional<z.ZodString>;
1169
+ }, z.core.$strip>;
1170
+ export type ToolItemData = z.infer<typeof ToolItemData>;
1171
+ export declare const TranscriptItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
1172
+ id: z.ZodString;
1173
+ sessionId: z.ZodString;
1174
+ order: z.ZodNumber;
1175
+ at: z.ZodString;
1176
+ kind: z.ZodLiteral<"user">;
1177
+ data: z.ZodObject<{
1178
+ text: z.ZodString;
1179
+ images: z.ZodOptional<z.ZodNumber>;
1180
+ entryId: z.ZodOptional<z.ZodString>;
1181
+ }, z.core.$strip>;
1182
+ }, z.core.$strip>, z.ZodObject<{
1183
+ id: z.ZodString;
1184
+ sessionId: z.ZodString;
1185
+ order: z.ZodNumber;
1186
+ at: z.ZodString;
1187
+ kind: z.ZodLiteral<"assistant">;
1188
+ data: z.ZodObject<{
1189
+ text: z.ZodString;
1190
+ streaming: z.ZodOptional<z.ZodBoolean>;
1191
+ }, z.core.$strip>;
1192
+ }, z.core.$strip>, z.ZodObject<{
1193
+ id: z.ZodString;
1194
+ sessionId: z.ZodString;
1195
+ order: z.ZodNumber;
1196
+ at: z.ZodString;
1197
+ kind: z.ZodLiteral<"thinking">;
1198
+ data: z.ZodObject<{
1199
+ text: z.ZodString;
1200
+ }, z.core.$strip>;
1201
+ }, z.core.$strip>, z.ZodObject<{
1202
+ id: z.ZodString;
1203
+ sessionId: z.ZodString;
1204
+ order: z.ZodNumber;
1205
+ at: z.ZodString;
1206
+ kind: z.ZodLiteral<"tool">;
1207
+ data: z.ZodObject<{
1208
+ toolCallId: z.ZodString;
1209
+ name: z.ZodString;
1210
+ status: z.ZodEnum<{
1211
+ error: "error";
1212
+ ok: "ok";
1213
+ running: "running";
1214
+ }>;
1215
+ args: z.ZodUnknown;
1216
+ summary: z.ZodString;
1217
+ output: z.ZodString;
1218
+ startedAt: z.ZodString;
1219
+ durationMs: z.ZodNullable<z.ZodNumber>;
1220
+ card: z.ZodNullable<z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>>;
1221
+ adapterId: z.ZodNullable<z.ZodString>;
1222
+ adapterGeneration: z.ZodOptional<z.ZodString>;
1223
+ }, z.core.$strip>;
1224
+ }, z.core.$strip>, z.ZodObject<{
1225
+ id: z.ZodString;
1226
+ sessionId: z.ZodString;
1227
+ order: z.ZodNumber;
1228
+ at: z.ZodString;
1229
+ kind: z.ZodLiteral<"notice">;
1230
+ data: z.ZodObject<{
1231
+ level: z.ZodEnum<{
1232
+ error: "error";
1233
+ info: "info";
1234
+ warning: "warning";
1235
+ }>;
1236
+ text: z.ZodString;
1237
+ customType: z.ZodOptional<z.ZodString>;
1238
+ card: z.ZodOptional<z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>>;
1239
+ adapterId: z.ZodOptional<z.ZodString>;
1240
+ adapterGeneration: z.ZodOptional<z.ZodString>;
1241
+ }, z.core.$strip>;
1242
+ }, z.core.$strip>, z.ZodObject<{
1243
+ id: z.ZodString;
1244
+ sessionId: z.ZodString;
1245
+ order: z.ZodNumber;
1246
+ at: z.ZodString;
1247
+ kind: z.ZodLiteral<"interaction">;
1248
+ data: z.ZodObject<{
1249
+ interactionId: z.ZodString;
1250
+ }, z.core.$strip>;
1251
+ }, z.core.$strip>, z.ZodObject<{
1252
+ id: z.ZodString;
1253
+ sessionId: z.ZodString;
1254
+ order: z.ZodNumber;
1255
+ at: z.ZodString;
1256
+ kind: z.ZodLiteral<"subagent">;
1257
+ data: z.ZodObject<{
1258
+ runId: z.ZodString;
1259
+ label: z.ZodString;
1260
+ status: z.ZodString;
1261
+ sessionFile: z.ZodNullable<z.ZodString>;
1262
+ linkedSessionId: z.ZodNullable<z.ZodString>;
1263
+ }, z.core.$strip>;
1264
+ }, z.core.$strip>, z.ZodObject<{
1265
+ id: z.ZodString;
1266
+ sessionId: z.ZodString;
1267
+ order: z.ZodNumber;
1268
+ at: z.ZodString;
1269
+ kind: z.ZodLiteral<"system">;
1270
+ data: z.ZodObject<{
1271
+ text: z.ZodString;
1272
+ suggestion: z.ZodOptional<z.ZodBoolean>;
1273
+ }, z.core.$strip>;
1274
+ }, z.core.$strip>], "kind">;
1275
+ export type TranscriptItem = z.infer<typeof TranscriptItem>;
1276
+ export declare const Panel: z.ZodObject<{
1277
+ sessionId: z.ZodString;
1278
+ adapterId: z.ZodString;
1279
+ slot: z.ZodString;
1280
+ title: z.ZodString;
1281
+ node: z.ZodNullable<z.ZodType<import("./ui.js").UINode, unknown, z.core.$ZodTypeInternals<import("./ui.js").UINode, unknown>>>;
1282
+ webRenderer: z.ZodBoolean;
1283
+ mobileFallback: z.ZodNullable<z.ZodString>;
1284
+ contribution: z.ZodOptional<z.ZodObject<{
1285
+ placement: z.ZodEnum<{
1286
+ "composer.pill": "composer.pill";
1287
+ "palette.item": "palette.item";
1288
+ "session.panel": "session.panel";
1289
+ "sidebar.footer": "sidebar.footer";
1290
+ "sidebar.header": "sidebar.header";
1291
+ "slash.command": "slash.command";
1292
+ }>;
1293
+ order: z.ZodOptional<z.ZodNumber>;
1294
+ actionId: z.ZodOptional<z.ZodString>;
1295
+ id: z.ZodString;
1296
+ name: z.ZodOptional<z.ZodString>;
1297
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
1298
+ }, z.core.$strict>>;
1299
+ state: z.ZodOptional<z.ZodUnknown>;
1300
+ adapterGeneration: z.ZodOptional<z.ZodString>;
1301
+ updatedAt: z.ZodString;
1302
+ }, z.core.$strip>;
1303
+ export type Panel = z.infer<typeof Panel>;
1304
+ export declare const Diagnostic: z.ZodObject<{
1305
+ sessionId: z.ZodNullable<z.ZodString>;
1306
+ adapterId: z.ZodNullable<z.ZodString>;
1307
+ level: z.ZodEnum<{
1308
+ error: "error";
1309
+ info: "info";
1310
+ warning: "warning";
1311
+ }>;
1312
+ message: z.ZodString;
1313
+ at: z.ZodString;
1314
+ }, z.core.$strip>;
1315
+ export type Diagnostic = z.infer<typeof Diagnostic>;
1316
+ export declare const AdapterInfo: z.ZodObject<{
1317
+ id: z.ZodString;
1318
+ version: z.ZodString;
1319
+ tier: z.ZodEnum<{
1320
+ bundled: "bundled";
1321
+ owner: "owner";
1322
+ plugin: "plugin";
1323
+ project: "project";
1324
+ }>;
1325
+ target: z.ZodObject<{
1326
+ extension: z.ZodString;
1327
+ versionRange: z.ZodString;
1328
+ testedVersions: z.ZodArray<z.ZodString>;
1329
+ }, z.core.$strip>;
1330
+ capabilities: z.ZodArray<z.ZodString>;
1331
+ webRenderer: z.ZodBoolean;
1332
+ status: z.ZodEnum<{
1333
+ active: "active";
1334
+ disabled: "disabled";
1335
+ error: "error";
1336
+ }>;
1337
+ detail: z.ZodNullable<z.ZodString>;
1338
+ }, z.core.$strip>;
1339
+ export type AdapterInfo = z.infer<typeof AdapterInfo>;
1340
+ /** Public view of a registered owner passkey (key material stays in the database). */
1341
+ export declare const Passkey: z.ZodObject<{
1342
+ id: z.ZodString;
1343
+ name: z.ZodString;
1344
+ createdAt: z.ZodString;
1345
+ lastUsedAt: z.ZodNullable<z.ZodString>;
1346
+ transports: z.ZodArray<z.ZodString>;
1347
+ }, z.core.$strip>;
1348
+ export type Passkey = z.infer<typeof Passkey>;
1349
+ export {};
1350
+ //# sourceMappingURL=entities.d.ts.map