@maudecode/talaria-web-contracts 1.17.2 → 1.19.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.
Files changed (92) hide show
  1. package/dist/gateway-session.d.ts +229 -0
  2. package/dist/gateway-session.js +46 -0
  3. package/dist/gateway-session.js.map +1 -0
  4. package/dist/index.d.ts +4 -0
  5. package/dist/index.js +4 -0
  6. package/dist/index.js.map +1 -1
  7. package/dist/openapi.js +9 -1
  8. package/dist/openapi.js.map +1 -1
  9. package/dist/router.d.ts +8256 -1763
  10. package/dist/routes/automation.d.ts +130 -25
  11. package/dist/routes/automation.js +8 -4
  12. package/dist/routes/automation.js.map +1 -1
  13. package/dist/routes/chat.d.ts +2484 -41
  14. package/dist/routes/chat.js +10 -4
  15. package/dist/routes/chat.js.map +1 -1
  16. package/dist/routes/core.d.ts +28 -6
  17. package/dist/routes/core.js +5 -2
  18. package/dist/routes/core.js.map +1 -1
  19. package/dist/routes/git.d.ts +76 -1
  20. package/dist/routes/git.js +13 -3
  21. package/dist/routes/git.js.map +1 -1
  22. package/dist/routes/raw.d.ts +3 -1
  23. package/dist/routes/raw.js +30 -6
  24. package/dist/routes/raw.js.map +1 -1
  25. package/dist/routes/sessions.d.ts +5181 -744
  26. package/dist/routes/sessions.js +76 -8
  27. package/dist/routes/sessions.js.map +1 -1
  28. package/dist/routes/settings.d.ts +457 -8
  29. package/dist/routes/settings.js +2 -2
  30. package/dist/routes/settings.js.map +1 -1
  31. package/dist/routes/tools.d.ts +1001 -33
  32. package/dist/routes/tools.js +82 -6
  33. package/dist/routes/tools.js.map +1 -1
  34. package/dist/routes/workspaces.d.ts +82 -0
  35. package/dist/routes/workspaces.js +18 -1
  36. package/dist/routes/workspaces.js.map +1 -1
  37. package/dist/run-status.d.ts +39 -0
  38. package/dist/run-status.js +13 -0
  39. package/dist/run-status.js.map +1 -0
  40. package/dist/sidecar/methods.d.ts +1299 -109
  41. package/dist/sidecar/methods.js +10 -2
  42. package/dist/sidecar/methods.js.map +1 -1
  43. package/dist/sidecar/namespaces.d.ts +1736 -123
  44. package/dist/sidecar/namespaces.js +332 -32
  45. package/dist/sidecar/namespaces.js.map +1 -1
  46. package/dist/sidecar/runtime.d.ts +61 -0
  47. package/dist/sidecar/runtime.js +20 -0
  48. package/dist/sidecar/runtime.js.map +1 -1
  49. package/dist/sidecar/version.d.ts +1 -1
  50. package/dist/sidecar/version.js +1 -1
  51. package/dist/speed.d.ts +14 -0
  52. package/dist/speed.js +6 -0
  53. package/dist/speed.js.map +1 -0
  54. package/dist/sse.d.ts +833 -14
  55. package/dist/sse.js +25 -9
  56. package/dist/sse.js.map +1 -1
  57. package/dist/theme.d.ts +10 -0
  58. package/dist/theme.js +10 -0
  59. package/dist/theme.js.map +1 -0
  60. package/dist/transcribe-stream.d.ts +34 -0
  61. package/dist/transcribe-stream.js +23 -0
  62. package/dist/transcribe-stream.js.map +1 -0
  63. package/dist/views.d.ts +2900 -159
  64. package/dist/views.js +380 -55
  65. package/dist/views.js.map +1 -1
  66. package/fixtures/sidecar/aux.json +134 -0
  67. package/fixtures/sidecar/chat.json +14 -0
  68. package/fixtures/sidecar/checkpoints.json +50 -0
  69. package/fixtures/sidecar/commands.json +258 -99
  70. package/fixtures/sidecar/config.json +15 -0
  71. package/fixtures/sidecar/connectors.json +218 -0
  72. package/fixtures/sidecar/cron.json +1008 -55
  73. package/fixtures/sidecar/gateway.json +39 -0
  74. package/fixtures/sidecar/goals.json +10 -8
  75. package/fixtures/sidecar/kanban.json +181 -90
  76. package/fixtures/sidecar/memory.json +50 -0
  77. package/fixtures/sidecar/models.json +122 -0
  78. package/fixtures/sidecar/personalities.json +92 -0
  79. package/fixtures/sidecar/plugins.json +262 -174
  80. package/fixtures/sidecar/process.json +31 -0
  81. package/fixtures/sidecar/profiles.json +12 -2
  82. package/fixtures/sidecar/providers.json +39 -13
  83. package/fixtures/sidecar/rpc.json +50 -1
  84. package/fixtures/sidecar/runtime.json +131 -22
  85. package/fixtures/sidecar/skills.json +256 -13
  86. package/fixtures/sidecar/state_db.json +34 -2
  87. package/fixtures/sidecar/stt.json +62 -1
  88. package/fixtures/sidecar/text.json +20 -2
  89. package/fixtures/sidecar/toolsets.json +468 -0
  90. package/fixtures/sidecar/usage.json +24 -4
  91. package/fixtures/sidecar/write_approval.json +98 -0
  92. package/package.json +1 -1
package/dist/views.d.ts CHANGED
@@ -5,6 +5,7 @@
5
5
  * that must survive a round trip (documented passthrough).
6
6
  */
7
7
  import { z } from 'zod';
8
+ export { SpeedTierSchema } from './speed.js';
8
9
  export declare const NullableString: z.ZodNullable<z.ZodString>;
9
10
  export declare const NullableNumber: z.ZodNullable<z.ZodNumber>;
10
11
  /** Unix seconds as the server emits them (float). */
@@ -24,6 +25,7 @@ export type Attachment = z.infer<typeof AttachmentSchema>;
24
25
  /** The server's display class for a tool call: clients map it to an icon and localized verb, and never classify names themselves. */
25
26
  export declare const ToolKindSchema: z.ZodEnum<{
26
27
  unknown: "unknown";
28
+ memory: "memory";
27
29
  shell: "shell";
28
30
  read: "read";
29
31
  list: "list";
@@ -31,26 +33,82 @@ export declare const ToolKindSchema: z.ZodEnum<{
31
33
  web: "web";
32
34
  write: "write";
33
35
  skill: "skill";
34
- memory: "memory";
35
36
  delegate: "delegate";
36
37
  }>;
37
38
  export type ToolKind = z.infer<typeof ToolKindSchema>;
39
+ /**
40
+ * TAL-604: one row of a unified diff hunk as the server parsed it. `text` is the raw line, its `+` / `-` / space prefix kept;
41
+ * `old_line` / `new_line` number it on each side (null on the side it is absent from, and on a `\ No newline` marker).
42
+ */
43
+ export declare const DiffLineSchema: z.ZodObject<{
44
+ kind: z.ZodEnum<{
45
+ context: "context";
46
+ addition: "addition";
47
+ deletion: "deletion";
48
+ }>;
49
+ old_line: z.ZodNullable<z.ZodNumber>;
50
+ new_line: z.ZodNullable<z.ZodNumber>;
51
+ text: z.ZodString;
52
+ }, z.core.$strip>;
53
+ /**
54
+ * TAL-604: one hunk of a unified diff: its `@@` `header`, the first old and new line numbers, the last new line it covers
55
+ * (`new_end`, at least `new_start`), its added and removed line counts, and its lines. A diff without `@@` headers yields
56
+ * one hunk per file with an empty `header` and null numbers.
57
+ */
58
+ export declare const DiffHunkSchema: z.ZodObject<{
59
+ header: z.ZodString;
60
+ old_start: z.ZodNullable<z.ZodNumber>;
61
+ new_start: z.ZodNullable<z.ZodNumber>;
62
+ new_end: z.ZodNullable<z.ZodNumber>;
63
+ additions: z.ZodNumber;
64
+ deletions: z.ZodNumber;
65
+ lines: z.ZodArray<z.ZodObject<{
66
+ kind: z.ZodEnum<{
67
+ context: "context";
68
+ addition: "addition";
69
+ deletion: "deletion";
70
+ }>;
71
+ old_line: z.ZodNullable<z.ZodNumber>;
72
+ new_line: z.ZodNullable<z.ZodNumber>;
73
+ text: z.ZodString;
74
+ }, z.core.$strip>>;
75
+ }, z.core.$strip>;
76
+ export type DiffHunk = z.infer<typeof DiffHunkSchema>;
38
77
  /**
39
78
  * TAL-448: a completed file-edit call's change, from its result's unified diff: `added` / `removed` count the whole diff's
40
- * lines (file headers excluded); `diff` is the redacted diff, capped at 400 lines, with `truncated` when cut. Absent on a
41
- * call whose result has no diff.
79
+ * lines (file headers excluded); `diff` is the redacted diff, capped at 400 lines, with `truncated` when cut, and `hunks`
80
+ * that diff parsed (TAL-604). Absent on a call whose result has no diff.
42
81
  */
43
82
  export declare const ToolEditDiffSchema: z.ZodObject<{
44
83
  added: z.ZodNumber;
45
84
  removed: z.ZodNumber;
46
85
  diff: z.ZodString;
47
86
  truncated: z.ZodBoolean;
87
+ hunks: z.ZodArray<z.ZodObject<{
88
+ header: z.ZodString;
89
+ old_start: z.ZodNullable<z.ZodNumber>;
90
+ new_start: z.ZodNullable<z.ZodNumber>;
91
+ new_end: z.ZodNullable<z.ZodNumber>;
92
+ additions: z.ZodNumber;
93
+ deletions: z.ZodNumber;
94
+ lines: z.ZodArray<z.ZodObject<{
95
+ kind: z.ZodEnum<{
96
+ context: "context";
97
+ addition: "addition";
98
+ deletion: "deletion";
99
+ }>;
100
+ old_line: z.ZodNullable<z.ZodNumber>;
101
+ new_line: z.ZodNullable<z.ZodNumber>;
102
+ text: z.ZodString;
103
+ }, z.core.$strip>>;
104
+ }, z.core.$strip>>;
48
105
  }, z.core.$strip>;
49
106
  export type ToolEditDiff = z.infer<typeof ToolEditDiffSchema>;
50
107
  /** Server-derived display fields every tool call carries: the kind, and the redacted first-line label of its main argument (`''` when none; omitted on a live frame with none, which keeps its start frame's target), and a file edit's `edit_diff`. */
51
108
  export declare const ToolDisplayFields: {
52
109
  kind: z.ZodOptional<z.ZodEnum<{
53
110
  unknown: "unknown";
111
+ memory: "memory";
54
112
  shell: "shell";
55
113
  read: "read";
56
114
  list: "list";
@@ -58,7 +116,6 @@ export declare const ToolDisplayFields: {
58
116
  web: "web";
59
117
  write: "write";
60
118
  skill: "skill";
61
- memory: "memory";
62
119
  delegate: "delegate";
63
120
  }>>;
64
121
  target: z.ZodOptional<z.ZodString>;
@@ -67,6 +124,24 @@ export declare const ToolDisplayFields: {
67
124
  removed: z.ZodNumber;
68
125
  diff: z.ZodString;
69
126
  truncated: z.ZodBoolean;
127
+ hunks: z.ZodArray<z.ZodObject<{
128
+ header: z.ZodString;
129
+ old_start: z.ZodNullable<z.ZodNumber>;
130
+ new_start: z.ZodNullable<z.ZodNumber>;
131
+ new_end: z.ZodNullable<z.ZodNumber>;
132
+ additions: z.ZodNumber;
133
+ deletions: z.ZodNumber;
134
+ lines: z.ZodArray<z.ZodObject<{
135
+ kind: z.ZodEnum<{
136
+ context: "context";
137
+ addition: "addition";
138
+ deletion: "deletion";
139
+ }>;
140
+ old_line: z.ZodNullable<z.ZodNumber>;
141
+ new_line: z.ZodNullable<z.ZodNumber>;
142
+ text: z.ZodString;
143
+ }, z.core.$strip>>;
144
+ }, z.core.$strip>>;
70
145
  }, z.core.$strip>>;
71
146
  };
72
147
  /**
@@ -118,6 +193,7 @@ export declare const ToolCallSchema: z.ZodObject<{
118
193
  event_type: z.ZodOptional<z.ZodString>;
119
194
  kind: z.ZodOptional<z.ZodEnum<{
120
195
  unknown: "unknown";
196
+ memory: "memory";
121
197
  shell: "shell";
122
198
  read: "read";
123
199
  list: "list";
@@ -125,7 +201,6 @@ export declare const ToolCallSchema: z.ZodObject<{
125
201
  web: "web";
126
202
  write: "write";
127
203
  skill: "skill";
128
- memory: "memory";
129
204
  delegate: "delegate";
130
205
  }>>;
131
206
  target: z.ZodOptional<z.ZodString>;
@@ -134,6 +209,24 @@ export declare const ToolCallSchema: z.ZodObject<{
134
209
  removed: z.ZodNumber;
135
210
  diff: z.ZodString;
136
211
  truncated: z.ZodBoolean;
212
+ hunks: z.ZodArray<z.ZodObject<{
213
+ header: z.ZodString;
214
+ old_start: z.ZodNullable<z.ZodNumber>;
215
+ new_start: z.ZodNullable<z.ZodNumber>;
216
+ new_end: z.ZodNullable<z.ZodNumber>;
217
+ additions: z.ZodNumber;
218
+ deletions: z.ZodNumber;
219
+ lines: z.ZodArray<z.ZodObject<{
220
+ kind: z.ZodEnum<{
221
+ context: "context";
222
+ addition: "addition";
223
+ deletion: "deletion";
224
+ }>;
225
+ old_line: z.ZodNullable<z.ZodNumber>;
226
+ new_line: z.ZodNullable<z.ZodNumber>;
227
+ text: z.ZodString;
228
+ }, z.core.$strip>>;
229
+ }, z.core.$strip>>;
137
230
  }, z.core.$strip>>;
138
231
  }, z.core.$loose>;
139
232
  export type ToolCall = z.infer<typeof ToolCallSchema>;
@@ -161,10 +254,10 @@ export declare const BackgroundLinkSchema: z.ZodObject<{
161
254
  task_ids: z.ZodArray<z.ZodString>;
162
255
  status: z.ZodEnum<{
163
256
  unknown: "unknown";
257
+ running: "running";
164
258
  cancelled: "cancelled";
165
- completed: "completed";
166
259
  failed: "failed";
167
- running: "running";
260
+ completed: "completed";
168
261
  attention: "attention";
169
262
  }>;
170
263
  agents: z.ZodObject<{
@@ -200,8 +293,8 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
200
293
  row_id: z.ZodString;
201
294
  order_index: z.ZodNumber;
202
295
  role: z.ZodEnum<{
203
- reasoning: "reasoning";
204
296
  tool: "tool";
297
+ reasoning: "reasoning";
205
298
  prose: "prose";
206
299
  steering: "steering";
207
300
  }>;
@@ -240,10 +333,10 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
240
333
  task_ids: z.ZodArray<z.ZodString>;
241
334
  status: z.ZodEnum<{
242
335
  unknown: "unknown";
336
+ running: "running";
243
337
  cancelled: "cancelled";
244
- completed: "completed";
245
338
  failed: "failed";
246
- running: "running";
339
+ completed: "completed";
247
340
  attention: "attention";
248
341
  }>;
249
342
  agents: z.ZodObject<{
@@ -257,6 +350,7 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
257
350
  result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
258
351
  kind: z.ZodOptional<z.ZodEnum<{
259
352
  unknown: "unknown";
353
+ memory: "memory";
260
354
  shell: "shell";
261
355
  read: "read";
262
356
  list: "list";
@@ -264,7 +358,6 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
264
358
  web: "web";
265
359
  write: "write";
266
360
  skill: "skill";
267
- memory: "memory";
268
361
  delegate: "delegate";
269
362
  }>>;
270
363
  target: z.ZodOptional<z.ZodString>;
@@ -273,6 +366,24 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
273
366
  removed: z.ZodNumber;
274
367
  diff: z.ZodString;
275
368
  truncated: z.ZodBoolean;
369
+ hunks: z.ZodArray<z.ZodObject<{
370
+ header: z.ZodString;
371
+ old_start: z.ZodNullable<z.ZodNumber>;
372
+ new_start: z.ZodNullable<z.ZodNumber>;
373
+ new_end: z.ZodNullable<z.ZodNumber>;
374
+ additions: z.ZodNumber;
375
+ deletions: z.ZodNumber;
376
+ lines: z.ZodArray<z.ZodObject<{
377
+ kind: z.ZodEnum<{
378
+ context: "context";
379
+ addition: "addition";
380
+ deletion: "deletion";
381
+ }>;
382
+ old_line: z.ZodNullable<z.ZodNumber>;
383
+ new_line: z.ZodNullable<z.ZodNumber>;
384
+ text: z.ZodString;
385
+ }, z.core.$strip>>;
386
+ }, z.core.$strip>>;
276
387
  }, z.core.$strip>>;
277
388
  id: z.ZodString;
278
389
  name: z.ZodString;
@@ -315,8 +426,8 @@ export declare const ActivitySceneSchema: z.ZodObject<{
315
426
  row_id: z.ZodString;
316
427
  order_index: z.ZodNumber;
317
428
  role: z.ZodEnum<{
318
- reasoning: "reasoning";
319
429
  tool: "tool";
430
+ reasoning: "reasoning";
320
431
  prose: "prose";
321
432
  steering: "steering";
322
433
  }>;
@@ -355,10 +466,10 @@ export declare const ActivitySceneSchema: z.ZodObject<{
355
466
  task_ids: z.ZodArray<z.ZodString>;
356
467
  status: z.ZodEnum<{
357
468
  unknown: "unknown";
469
+ running: "running";
358
470
  cancelled: "cancelled";
359
- completed: "completed";
360
471
  failed: "failed";
361
- running: "running";
472
+ completed: "completed";
362
473
  attention: "attention";
363
474
  }>;
364
475
  agents: z.ZodObject<{
@@ -372,6 +483,7 @@ export declare const ActivitySceneSchema: z.ZodObject<{
372
483
  result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
373
484
  kind: z.ZodOptional<z.ZodEnum<{
374
485
  unknown: "unknown";
486
+ memory: "memory";
375
487
  shell: "shell";
376
488
  read: "read";
377
489
  list: "list";
@@ -379,7 +491,6 @@ export declare const ActivitySceneSchema: z.ZodObject<{
379
491
  web: "web";
380
492
  write: "write";
381
493
  skill: "skill";
382
- memory: "memory";
383
494
  delegate: "delegate";
384
495
  }>>;
385
496
  target: z.ZodOptional<z.ZodString>;
@@ -388,6 +499,24 @@ export declare const ActivitySceneSchema: z.ZodObject<{
388
499
  removed: z.ZodNumber;
389
500
  diff: z.ZodString;
390
501
  truncated: z.ZodBoolean;
502
+ hunks: z.ZodArray<z.ZodObject<{
503
+ header: z.ZodString;
504
+ old_start: z.ZodNullable<z.ZodNumber>;
505
+ new_start: z.ZodNullable<z.ZodNumber>;
506
+ new_end: z.ZodNullable<z.ZodNumber>;
507
+ additions: z.ZodNumber;
508
+ deletions: z.ZodNumber;
509
+ lines: z.ZodArray<z.ZodObject<{
510
+ kind: z.ZodEnum<{
511
+ context: "context";
512
+ addition: "addition";
513
+ deletion: "deletion";
514
+ }>;
515
+ old_line: z.ZodNullable<z.ZodNumber>;
516
+ new_line: z.ZodNullable<z.ZodNumber>;
517
+ text: z.ZodString;
518
+ }, z.core.$strip>>;
519
+ }, z.core.$strip>>;
391
520
  }, z.core.$strip>>;
392
521
  id: z.ZodString;
393
522
  name: z.ZodString;
@@ -436,7 +565,16 @@ export declare const ActivitySceneSchema: z.ZodObject<{
436
565
  activity_scene_ref: z.ZodOptional<z.ZodString>;
437
566
  }, z.core.$loose>;
438
567
  export type ActivityScene = z.infer<typeof ActivitySceneSchema>;
439
- /** TAL-460: one finished background item (see `_background_update.lines`). */
568
+ /** The server-owned result-review lifecycle (TAL-1022). */
569
+ export declare const BackgroundReviewStateSchema: z.ZodEnum<{
570
+ unknown: "unknown";
571
+ failed: "failed";
572
+ waiting: "waiting";
573
+ reviewing: "reviewing";
574
+ reviewed: "reviewed";
575
+ }>;
576
+ export type BackgroundReviewState = z.infer<typeof BackgroundReviewStateSchema>;
577
+ /** One finished background item (see `_background_update.lines`). */
440
578
  export declare const BackgroundLineSchema: z.ZodObject<{
441
579
  kind: z.ZodEnum<{
442
580
  command: "command";
@@ -444,12 +582,19 @@ export declare const BackgroundLineSchema: z.ZodObject<{
444
582
  other: "other";
445
583
  }>;
446
584
  status: z.ZodEnum<{
447
- completed: "completed";
448
585
  failed: "failed";
586
+ completed: "completed";
449
587
  notice: "notice";
450
588
  }>;
451
589
  label: z.ZodString;
452
590
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
591
+ review_state: z.ZodOptional<z.ZodEnum<{
592
+ unknown: "unknown";
593
+ failed: "failed";
594
+ waiting: "waiting";
595
+ reviewing: "reviewing";
596
+ reviewed: "reviewed";
597
+ }>>;
453
598
  }, z.core.$strip>;
454
599
  export type BackgroundLine = z.infer<typeof BackgroundLineSchema>;
455
600
  export declare const MessageSchema: z.ZodObject<{
@@ -498,6 +643,7 @@ export declare const MessageSchema: z.ZodObject<{
498
643
  event_type: z.ZodOptional<z.ZodString>;
499
644
  kind: z.ZodOptional<z.ZodEnum<{
500
645
  unknown: "unknown";
646
+ memory: "memory";
501
647
  shell: "shell";
502
648
  read: "read";
503
649
  list: "list";
@@ -505,7 +651,6 @@ export declare const MessageSchema: z.ZodObject<{
505
651
  web: "web";
506
652
  write: "write";
507
653
  skill: "skill";
508
- memory: "memory";
509
654
  delegate: "delegate";
510
655
  }>>;
511
656
  target: z.ZodOptional<z.ZodString>;
@@ -514,6 +659,24 @@ export declare const MessageSchema: z.ZodObject<{
514
659
  removed: z.ZodNumber;
515
660
  diff: z.ZodString;
516
661
  truncated: z.ZodBoolean;
662
+ hunks: z.ZodArray<z.ZodObject<{
663
+ header: z.ZodString;
664
+ old_start: z.ZodNullable<z.ZodNumber>;
665
+ new_start: z.ZodNullable<z.ZodNumber>;
666
+ new_end: z.ZodNullable<z.ZodNumber>;
667
+ additions: z.ZodNumber;
668
+ deletions: z.ZodNumber;
669
+ lines: z.ZodArray<z.ZodObject<{
670
+ kind: z.ZodEnum<{
671
+ context: "context";
672
+ addition: "addition";
673
+ deletion: "deletion";
674
+ }>;
675
+ old_line: z.ZodNullable<z.ZodNumber>;
676
+ new_line: z.ZodNullable<z.ZodNumber>;
677
+ text: z.ZodString;
678
+ }, z.core.$strip>>;
679
+ }, z.core.$strip>>;
517
680
  }, z.core.$strip>>;
518
681
  }, z.core.$loose>>>;
519
682
  reasoning: z.ZodOptional<z.ZodString>;
@@ -531,8 +694,8 @@ export declare const MessageSchema: z.ZodObject<{
531
694
  row_id: z.ZodString;
532
695
  order_index: z.ZodNumber;
533
696
  role: z.ZodEnum<{
534
- reasoning: "reasoning";
535
697
  tool: "tool";
698
+ reasoning: "reasoning";
536
699
  prose: "prose";
537
700
  steering: "steering";
538
701
  }>;
@@ -571,10 +734,10 @@ export declare const MessageSchema: z.ZodObject<{
571
734
  task_ids: z.ZodArray<z.ZodString>;
572
735
  status: z.ZodEnum<{
573
736
  unknown: "unknown";
737
+ running: "running";
574
738
  cancelled: "cancelled";
575
- completed: "completed";
576
739
  failed: "failed";
577
- running: "running";
740
+ completed: "completed";
578
741
  attention: "attention";
579
742
  }>;
580
743
  agents: z.ZodObject<{
@@ -588,6 +751,7 @@ export declare const MessageSchema: z.ZodObject<{
588
751
  result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
589
752
  kind: z.ZodOptional<z.ZodEnum<{
590
753
  unknown: "unknown";
754
+ memory: "memory";
591
755
  shell: "shell";
592
756
  read: "read";
593
757
  list: "list";
@@ -595,7 +759,6 @@ export declare const MessageSchema: z.ZodObject<{
595
759
  web: "web";
596
760
  write: "write";
597
761
  skill: "skill";
598
- memory: "memory";
599
762
  delegate: "delegate";
600
763
  }>>;
601
764
  target: z.ZodOptional<z.ZodString>;
@@ -604,6 +767,24 @@ export declare const MessageSchema: z.ZodObject<{
604
767
  removed: z.ZodNumber;
605
768
  diff: z.ZodString;
606
769
  truncated: z.ZodBoolean;
770
+ hunks: z.ZodArray<z.ZodObject<{
771
+ header: z.ZodString;
772
+ old_start: z.ZodNullable<z.ZodNumber>;
773
+ new_start: z.ZodNullable<z.ZodNumber>;
774
+ new_end: z.ZodNullable<z.ZodNumber>;
775
+ additions: z.ZodNumber;
776
+ deletions: z.ZodNumber;
777
+ lines: z.ZodArray<z.ZodObject<{
778
+ kind: z.ZodEnum<{
779
+ context: "context";
780
+ addition: "addition";
781
+ deletion: "deletion";
782
+ }>;
783
+ old_line: z.ZodNullable<z.ZodNumber>;
784
+ new_line: z.ZodNullable<z.ZodNumber>;
785
+ text: z.ZodString;
786
+ }, z.core.$strip>>;
787
+ }, z.core.$strip>>;
607
788
  }, z.core.$strip>>;
608
789
  id: z.ZodString;
609
790
  name: z.ZodString;
@@ -652,6 +833,10 @@ export declare const MessageSchema: z.ZodObject<{
652
833
  activity_scene_ref: z.ZodOptional<z.ZodString>;
653
834
  }, z.core.$loose>>;
654
835
  _turn_id: z.ZodOptional<z.ZodString>;
836
+ _turnDuration: z.ZodOptional<z.ZodNumber>;
837
+ _turnTps: z.ZodOptional<z.ZodNumber>;
838
+ _ts: z.ZodOptional<z.ZodNumber>;
839
+ reasoning_titles: z.ZodOptional<z.ZodArray<z.ZodString>>;
655
840
  _active_turn_user: z.ZodOptional<z.ZodBoolean>;
656
841
  _steer: z.ZodOptional<z.ZodObject<{
657
842
  steer_id: z.ZodString;
@@ -693,21 +878,52 @@ export declare const MessageSchema: z.ZodObject<{
693
878
  other: "other";
694
879
  }>;
695
880
  status: z.ZodEnum<{
696
- completed: "completed";
697
881
  failed: "failed";
882
+ completed: "completed";
698
883
  notice: "notice";
699
884
  }>;
700
885
  label: z.ZodString;
701
886
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
887
+ review_state: z.ZodOptional<z.ZodEnum<{
888
+ unknown: "unknown";
889
+ failed: "failed";
890
+ waiting: "waiting";
891
+ reviewing: "reviewing";
892
+ reviewed: "reviewed";
893
+ }>>;
702
894
  }, z.core.$strip>>;
895
+ review_state: z.ZodOptional<z.ZodEnum<{
896
+ unknown: "unknown";
897
+ failed: "failed";
898
+ waiting: "waiting";
899
+ reviewing: "reviewing";
900
+ reviewed: "reviewed";
901
+ }>>;
703
902
  }, z.core.$strip>>;
704
903
  _marker_kind: z.ZodOptional<z.ZodEnum<{
705
904
  context_compaction: "context_compaction";
706
905
  preserved_task_list: "preserved_task_list";
707
906
  }>>;
708
907
  _marker_body: z.ZodOptional<z.ZodString>;
908
+ _notice_kind: z.ZodOptional<z.ZodEnum<{
909
+ failed_turn: "failed_turn";
910
+ session_finalize: "session_finalize";
911
+ }>>;
912
+ _delivery: z.ZodOptional<z.ZodObject<{
913
+ kind: z.ZodEnum<{
914
+ webhook: "webhook";
915
+ cron: "cron";
916
+ }>;
917
+ name: z.ZodString;
918
+ body: z.ZodString;
919
+ }, z.core.$strip>>;
709
920
  _background_reply: z.ZodOptional<z.ZodBoolean>;
710
921
  _background_silent: z.ZodOptional<z.ZodBoolean>;
922
+ _display: z.ZodOptional<z.ZodEnum<{
923
+ row: "row";
924
+ hidden: "hidden";
925
+ in_scene: "in_scene";
926
+ }>>;
711
927
  }, z.core.$loose>;
712
928
  export type Message = z.infer<typeof MessageSchema>;
713
929
  export declare const ComposerDraftSchema: z.ZodObject<{
@@ -733,6 +949,40 @@ export declare const PendingSteerSchema: z.ZodObject<{
733
949
  }, z.core.$strip>;
734
950
  }, z.core.$strip>;
735
951
  export type PendingSteer = z.infer<typeof PendingSteerSchema>;
952
+ /**
953
+ * TAL-803: an out-of-band notice the Agent raised for the session (a memory provider that failed to load, credit and
954
+ * usage warnings), one per `key`. The server keeps it until the Agent clears that key, `expires_at` passes, or a new agent
955
+ * replaces the one that raised it.
956
+ */
957
+ export declare const SessionNoticeSchema: z.ZodObject<{
958
+ key: z.ZodString;
959
+ level: z.ZodEnum<{
960
+ success: "success";
961
+ error: "error";
962
+ info: "info";
963
+ warn: "warn";
964
+ }>;
965
+ text: z.ZodString;
966
+ expires_at: z.ZodNullable<z.ZodNumber>;
967
+ }, z.core.$strip>;
968
+ export type SessionNotice = z.infer<typeof SessionNoticeSchema>;
969
+ /**
970
+ * TAL-808: the session's standing `/goal` while it runs, from the Agent's goal state. `parked` is an active goal waiting on
971
+ * a process or a timer; `reason` is why it is paused or what it waits on. A done, cleared or absent goal is null.
972
+ */
973
+ export declare const SessionGoalSchema: z.ZodObject<{
974
+ text: z.ZodString;
975
+ status: z.ZodEnum<{
976
+ active: "active";
977
+ parked: "parked";
978
+ paused: "paused";
979
+ }>;
980
+ turns_used: z.ZodNumber;
981
+ max_turns: z.ZodNumber;
982
+ reason: z.ZodNullable<z.ZodString>;
983
+ parked_until: z.ZodNullable<z.ZodNumber>;
984
+ }, z.core.$strip>;
985
+ export type SessionGoal = z.infer<typeof SessionGoalSchema>;
736
986
  /**
737
987
  * TAL-299: the context ring, computed by the server. `context_used_tokens` is the post-compression estimate, else the last
738
988
  * prompt (never the cumulative `input_tokens`); `context_window_tokens` is the model's window. The percents are rounded
@@ -746,11 +996,11 @@ export declare const ContextUsageFields: {
746
996
  };
747
997
  export declare const SourceKindSchema: z.ZodEnum<{
748
998
  other: "other";
999
+ webhook: "webhook";
1000
+ cron: "cron";
749
1001
  webui: "webui";
750
1002
  cli: "cli";
751
1003
  messaging: "messaging";
752
- cron: "cron";
753
- webhook: "webhook";
754
1004
  subagent: "subagent";
755
1005
  claude_code: "claude_code";
756
1006
  kanban: "kanban";
@@ -766,6 +1016,12 @@ export declare const CompressionReferenceSchema: z.ZodObject<{
766
1016
  after_message_index: z.ZodNullable<z.ZodNumber>;
767
1017
  }, z.core.$strip>;
768
1018
  export type CompressionReference = z.infer<typeof CompressionReferenceSchema>;
1019
+ /** TAL-454: the chat a `/branch` copied, with its redacted title. */
1020
+ export declare const BranchedFromSchema: z.ZodObject<{
1021
+ session_id: z.ZodString;
1022
+ title: z.ZodString;
1023
+ }, z.core.$strip>;
1024
+ export type BranchedFrom = z.infer<typeof BranchedFromSchema>;
769
1025
  /** Full session record from `GET /api/session` and mutations returning `session`. */
770
1026
  export declare const SessionSchema: z.ZodObject<{
771
1027
  enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -776,11 +1032,11 @@ export declare const SessionSchema: z.ZodObject<{
776
1032
  is_cli_session: z.ZodOptional<z.ZodBoolean>;
777
1033
  source_kind: z.ZodEnum<{
778
1034
  other: "other";
1035
+ webhook: "webhook";
1036
+ cron: "cron";
779
1037
  webui: "webui";
780
1038
  cli: "cli";
781
1039
  messaging: "messaging";
782
- cron: "cron";
783
- webhook: "webhook";
784
1040
  subagent: "subagent";
785
1041
  claude_code: "claude_code";
786
1042
  kanban: "kanban";
@@ -789,12 +1045,65 @@ export declare const SessionSchema: z.ZodObject<{
789
1045
  is_messaging_session: z.ZodBoolean;
790
1046
  sort_ts: z.ZodNumber;
791
1047
  read_only: z.ZodBoolean;
1048
+ read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1049
+ owner_attachment: z.ZodOptional<z.ZodObject<{
1050
+ state: z.ZodEnum<{
1051
+ attached: "attached";
1052
+ stopped: "stopped";
1053
+ unavailable: "unavailable";
1054
+ incompatible: "incompatible";
1055
+ refused: "refused";
1056
+ }>;
1057
+ reason: z.ZodNullable<z.ZodString>;
1058
+ can_submit: z.ZodBoolean;
1059
+ can_interrupt: z.ZodBoolean;
1060
+ can_attach: z.ZodBoolean;
1061
+ revision: z.ZodNullable<z.ZodNumber>;
1062
+ execution_generation: z.ZodNullable<z.ZodNumber>;
1063
+ active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1064
+ admission_id: z.ZodString;
1065
+ sequence: z.ZodNumber;
1066
+ status: z.ZodEnum<{
1067
+ unknown: "unknown";
1068
+ queued: "queued";
1069
+ started: "started";
1070
+ terminal: "terminal";
1071
+ }>;
1072
+ outcome: z.ZodNullable<z.ZodString>;
1073
+ authority_epoch: z.ZodNumber;
1074
+ execution_generation: z.ZodNullable<z.ZodNumber>;
1075
+ text: z.ZodOptional<z.ZodString>;
1076
+ input_id: z.ZodOptional<z.ZodString>;
1077
+ }, z.core.$strip>>>;
1078
+ admissions: z.ZodArray<z.ZodObject<{
1079
+ admission_id: z.ZodString;
1080
+ sequence: z.ZodNumber;
1081
+ status: z.ZodEnum<{
1082
+ unknown: "unknown";
1083
+ queued: "queued";
1084
+ started: "started";
1085
+ terminal: "terminal";
1086
+ }>;
1087
+ outcome: z.ZodNullable<z.ZodString>;
1088
+ authority_epoch: z.ZodNumber;
1089
+ execution_generation: z.ZodNullable<z.ZodNumber>;
1090
+ text: z.ZodOptional<z.ZodString>;
1091
+ input_id: z.ZodOptional<z.ZodString>;
1092
+ actions: z.ZodArray<z.ZodEnum<{
1093
+ cancel: "cancel";
1094
+ discard: "discard";
1095
+ retry: "retry";
1096
+ }>>;
1097
+ }, z.core.$strip>>;
1098
+ }, z.core.$strip>>;
792
1099
  can_branch: z.ZodBoolean;
793
1100
  can_pin: z.ZodBoolean;
794
1101
  can_archive: z.ZodBoolean;
795
1102
  can_delete: z.ZodBoolean;
796
1103
  can_duplicate: z.ZodBoolean;
797
1104
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1105
+ can_compress: z.ZodOptional<z.ZodBoolean>;
1106
+ confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
798
1107
  source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
799
1108
  session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
800
1109
  raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -826,10 +1135,15 @@ export declare const SessionSchema: z.ZodObject<{
826
1135
  text: z.ZodString;
827
1136
  after_message_index: z.ZodNullable<z.ZodNumber>;
828
1137
  }, z.core.$strip>>>;
1138
+ branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1139
+ session_id: z.ZodString;
1140
+ title: z.ZodString;
1141
+ }, z.core.$strip>>>;
829
1142
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
830
1143
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
831
1144
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
832
1145
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1146
+ composer_state_key: z.ZodOptional<z.ZodString>;
833
1147
  session_id: z.ZodString;
834
1148
  title: z.ZodString;
835
1149
  workspace: z.ZodOptional<z.ZodString>;
@@ -883,6 +1197,7 @@ export declare const SessionSchema: z.ZodObject<{
883
1197
  event_type: z.ZodOptional<z.ZodString>;
884
1198
  kind: z.ZodOptional<z.ZodEnum<{
885
1199
  unknown: "unknown";
1200
+ memory: "memory";
886
1201
  shell: "shell";
887
1202
  read: "read";
888
1203
  list: "list";
@@ -890,7 +1205,6 @@ export declare const SessionSchema: z.ZodObject<{
890
1205
  web: "web";
891
1206
  write: "write";
892
1207
  skill: "skill";
893
- memory: "memory";
894
1208
  delegate: "delegate";
895
1209
  }>>;
896
1210
  target: z.ZodOptional<z.ZodString>;
@@ -899,6 +1213,24 @@ export declare const SessionSchema: z.ZodObject<{
899
1213
  removed: z.ZodNumber;
900
1214
  diff: z.ZodString;
901
1215
  truncated: z.ZodBoolean;
1216
+ hunks: z.ZodArray<z.ZodObject<{
1217
+ header: z.ZodString;
1218
+ old_start: z.ZodNullable<z.ZodNumber>;
1219
+ new_start: z.ZodNullable<z.ZodNumber>;
1220
+ new_end: z.ZodNullable<z.ZodNumber>;
1221
+ additions: z.ZodNumber;
1222
+ deletions: z.ZodNumber;
1223
+ lines: z.ZodArray<z.ZodObject<{
1224
+ kind: z.ZodEnum<{
1225
+ context: "context";
1226
+ addition: "addition";
1227
+ deletion: "deletion";
1228
+ }>;
1229
+ old_line: z.ZodNullable<z.ZodNumber>;
1230
+ new_line: z.ZodNullable<z.ZodNumber>;
1231
+ text: z.ZodString;
1232
+ }, z.core.$strip>>;
1233
+ }, z.core.$strip>>;
902
1234
  }, z.core.$strip>>;
903
1235
  }, z.core.$loose>>>;
904
1236
  reasoning: z.ZodOptional<z.ZodString>;
@@ -916,8 +1248,8 @@ export declare const SessionSchema: z.ZodObject<{
916
1248
  row_id: z.ZodString;
917
1249
  order_index: z.ZodNumber;
918
1250
  role: z.ZodEnum<{
919
- reasoning: "reasoning";
920
1251
  tool: "tool";
1252
+ reasoning: "reasoning";
921
1253
  prose: "prose";
922
1254
  steering: "steering";
923
1255
  }>;
@@ -956,10 +1288,10 @@ export declare const SessionSchema: z.ZodObject<{
956
1288
  task_ids: z.ZodArray<z.ZodString>;
957
1289
  status: z.ZodEnum<{
958
1290
  unknown: "unknown";
1291
+ running: "running";
959
1292
  cancelled: "cancelled";
960
- completed: "completed";
961
1293
  failed: "failed";
962
- running: "running";
1294
+ completed: "completed";
963
1295
  attention: "attention";
964
1296
  }>;
965
1297
  agents: z.ZodObject<{
@@ -973,6 +1305,7 @@ export declare const SessionSchema: z.ZodObject<{
973
1305
  result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
974
1306
  kind: z.ZodOptional<z.ZodEnum<{
975
1307
  unknown: "unknown";
1308
+ memory: "memory";
976
1309
  shell: "shell";
977
1310
  read: "read";
978
1311
  list: "list";
@@ -980,7 +1313,6 @@ export declare const SessionSchema: z.ZodObject<{
980
1313
  web: "web";
981
1314
  write: "write";
982
1315
  skill: "skill";
983
- memory: "memory";
984
1316
  delegate: "delegate";
985
1317
  }>>;
986
1318
  target: z.ZodOptional<z.ZodString>;
@@ -989,6 +1321,24 @@ export declare const SessionSchema: z.ZodObject<{
989
1321
  removed: z.ZodNumber;
990
1322
  diff: z.ZodString;
991
1323
  truncated: z.ZodBoolean;
1324
+ hunks: z.ZodArray<z.ZodObject<{
1325
+ header: z.ZodString;
1326
+ old_start: z.ZodNullable<z.ZodNumber>;
1327
+ new_start: z.ZodNullable<z.ZodNumber>;
1328
+ new_end: z.ZodNullable<z.ZodNumber>;
1329
+ additions: z.ZodNumber;
1330
+ deletions: z.ZodNumber;
1331
+ lines: z.ZodArray<z.ZodObject<{
1332
+ kind: z.ZodEnum<{
1333
+ context: "context";
1334
+ addition: "addition";
1335
+ deletion: "deletion";
1336
+ }>;
1337
+ old_line: z.ZodNullable<z.ZodNumber>;
1338
+ new_line: z.ZodNullable<z.ZodNumber>;
1339
+ text: z.ZodString;
1340
+ }, z.core.$strip>>;
1341
+ }, z.core.$strip>>;
992
1342
  }, z.core.$strip>>;
993
1343
  id: z.ZodString;
994
1344
  name: z.ZodString;
@@ -1037,6 +1387,10 @@ export declare const SessionSchema: z.ZodObject<{
1037
1387
  activity_scene_ref: z.ZodOptional<z.ZodString>;
1038
1388
  }, z.core.$loose>>;
1039
1389
  _turn_id: z.ZodOptional<z.ZodString>;
1390
+ _turnDuration: z.ZodOptional<z.ZodNumber>;
1391
+ _turnTps: z.ZodOptional<z.ZodNumber>;
1392
+ _ts: z.ZodOptional<z.ZodNumber>;
1393
+ reasoning_titles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1040
1394
  _active_turn_user: z.ZodOptional<z.ZodBoolean>;
1041
1395
  _steer: z.ZodOptional<z.ZodObject<{
1042
1396
  steer_id: z.ZodString;
@@ -1078,21 +1432,52 @@ export declare const SessionSchema: z.ZodObject<{
1078
1432
  other: "other";
1079
1433
  }>;
1080
1434
  status: z.ZodEnum<{
1081
- completed: "completed";
1082
1435
  failed: "failed";
1436
+ completed: "completed";
1083
1437
  notice: "notice";
1084
1438
  }>;
1085
1439
  label: z.ZodString;
1086
1440
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1441
+ review_state: z.ZodOptional<z.ZodEnum<{
1442
+ unknown: "unknown";
1443
+ failed: "failed";
1444
+ waiting: "waiting";
1445
+ reviewing: "reviewing";
1446
+ reviewed: "reviewed";
1447
+ }>>;
1087
1448
  }, z.core.$strip>>;
1449
+ review_state: z.ZodOptional<z.ZodEnum<{
1450
+ unknown: "unknown";
1451
+ failed: "failed";
1452
+ waiting: "waiting";
1453
+ reviewing: "reviewing";
1454
+ reviewed: "reviewed";
1455
+ }>>;
1088
1456
  }, z.core.$strip>>;
1089
1457
  _marker_kind: z.ZodOptional<z.ZodEnum<{
1090
1458
  context_compaction: "context_compaction";
1091
1459
  preserved_task_list: "preserved_task_list";
1092
1460
  }>>;
1093
1461
  _marker_body: z.ZodOptional<z.ZodString>;
1462
+ _notice_kind: z.ZodOptional<z.ZodEnum<{
1463
+ failed_turn: "failed_turn";
1464
+ session_finalize: "session_finalize";
1465
+ }>>;
1466
+ _delivery: z.ZodOptional<z.ZodObject<{
1467
+ kind: z.ZodEnum<{
1468
+ webhook: "webhook";
1469
+ cron: "cron";
1470
+ }>;
1471
+ name: z.ZodString;
1472
+ body: z.ZodString;
1473
+ }, z.core.$strip>>;
1094
1474
  _background_reply: z.ZodOptional<z.ZodBoolean>;
1095
1475
  _background_silent: z.ZodOptional<z.ZodBoolean>;
1476
+ _display: z.ZodOptional<z.ZodEnum<{
1477
+ row: "row";
1478
+ hidden: "hidden";
1479
+ in_scene: "in_scene";
1480
+ }>>;
1096
1481
  }, z.core.$loose>>>;
1097
1482
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1098
1483
  name: z.ZodOptional<z.ZodString>;
@@ -1122,6 +1507,7 @@ export declare const SessionSchema: z.ZodObject<{
1122
1507
  event_type: z.ZodOptional<z.ZodString>;
1123
1508
  kind: z.ZodOptional<z.ZodEnum<{
1124
1509
  unknown: "unknown";
1510
+ memory: "memory";
1125
1511
  shell: "shell";
1126
1512
  read: "read";
1127
1513
  list: "list";
@@ -1129,7 +1515,6 @@ export declare const SessionSchema: z.ZodObject<{
1129
1515
  web: "web";
1130
1516
  write: "write";
1131
1517
  skill: "skill";
1132
- memory: "memory";
1133
1518
  delegate: "delegate";
1134
1519
  }>>;
1135
1520
  target: z.ZodOptional<z.ZodString>;
@@ -1138,6 +1523,24 @@ export declare const SessionSchema: z.ZodObject<{
1138
1523
  removed: z.ZodNumber;
1139
1524
  diff: z.ZodString;
1140
1525
  truncated: z.ZodBoolean;
1526
+ hunks: z.ZodArray<z.ZodObject<{
1527
+ header: z.ZodString;
1528
+ old_start: z.ZodNullable<z.ZodNumber>;
1529
+ new_start: z.ZodNullable<z.ZodNumber>;
1530
+ new_end: z.ZodNullable<z.ZodNumber>;
1531
+ additions: z.ZodNumber;
1532
+ deletions: z.ZodNumber;
1533
+ lines: z.ZodArray<z.ZodObject<{
1534
+ kind: z.ZodEnum<{
1535
+ context: "context";
1536
+ addition: "addition";
1537
+ deletion: "deletion";
1538
+ }>;
1539
+ old_line: z.ZodNullable<z.ZodNumber>;
1540
+ new_line: z.ZodNullable<z.ZodNumber>;
1541
+ text: z.ZodString;
1542
+ }, z.core.$strip>>;
1543
+ }, z.core.$strip>>;
1141
1544
  }, z.core.$strip>>;
1142
1545
  }, z.core.$loose>>>;
1143
1546
  created_at: z.ZodOptional<z.ZodNumber>;
@@ -1176,6 +1579,50 @@ export declare const SessionSchema: z.ZodObject<{
1176
1579
  send_now: z.ZodBoolean;
1177
1580
  }, z.core.$strip>;
1178
1581
  }, z.core.$strip>>>;
1582
+ run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1583
+ phase: z.ZodLiteral<"compressing">;
1584
+ }, z.core.$strip>, z.ZodObject<{
1585
+ phase: z.ZodLiteral<"rate_limit_wait">;
1586
+ wait: z.ZodObject<{
1587
+ provider: z.ZodNullable<z.ZodString>;
1588
+ provider_label: z.ZodNullable<z.ZodString>;
1589
+ until: z.ZodNumber;
1590
+ until_kind: z.ZodEnum<{
1591
+ reset: "reset";
1592
+ retry: "retry";
1593
+ }>;
1594
+ }, z.core.$strip>;
1595
+ }, z.core.$strip>, z.ZodObject<{
1596
+ phase: z.ZodLiteral<"prompt_reading">;
1597
+ progress_percent: z.ZodNullable<z.ZodNumber>;
1598
+ }, z.core.$strip>, z.ZodObject<{
1599
+ phase: z.ZodLiteral<"working">;
1600
+ }, z.core.$strip>], "phase">>>;
1601
+ compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1602
+ notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1603
+ key: z.ZodString;
1604
+ level: z.ZodEnum<{
1605
+ success: "success";
1606
+ error: "error";
1607
+ info: "info";
1608
+ warn: "warn";
1609
+ }>;
1610
+ text: z.ZodString;
1611
+ expires_at: z.ZodNullable<z.ZodNumber>;
1612
+ }, z.core.$strip>>>;
1613
+ goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1614
+ text: z.ZodString;
1615
+ status: z.ZodEnum<{
1616
+ active: "active";
1617
+ parked: "parked";
1618
+ paused: "paused";
1619
+ }>;
1620
+ turns_used: z.ZodNumber;
1621
+ max_turns: z.ZodNumber;
1622
+ reason: z.ZodNullable<z.ZodString>;
1623
+ parked_until: z.ZodNullable<z.ZodNumber>;
1624
+ }, z.core.$strip>>>;
1625
+ automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
1179
1626
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
1180
1627
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1181
1628
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1205,11 +1652,11 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1205
1652
  is_cli_session: z.ZodOptional<z.ZodBoolean>;
1206
1653
  source_kind: z.ZodEnum<{
1207
1654
  other: "other";
1655
+ webhook: "webhook";
1656
+ cron: "cron";
1208
1657
  webui: "webui";
1209
1658
  cli: "cli";
1210
1659
  messaging: "messaging";
1211
- cron: "cron";
1212
- webhook: "webhook";
1213
1660
  subagent: "subagent";
1214
1661
  claude_code: "claude_code";
1215
1662
  kanban: "kanban";
@@ -1218,12 +1665,65 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1218
1665
  is_messaging_session: z.ZodBoolean;
1219
1666
  sort_ts: z.ZodNumber;
1220
1667
  read_only: z.ZodBoolean;
1668
+ read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1669
+ owner_attachment: z.ZodOptional<z.ZodObject<{
1670
+ state: z.ZodEnum<{
1671
+ attached: "attached";
1672
+ stopped: "stopped";
1673
+ unavailable: "unavailable";
1674
+ incompatible: "incompatible";
1675
+ refused: "refused";
1676
+ }>;
1677
+ reason: z.ZodNullable<z.ZodString>;
1678
+ can_submit: z.ZodBoolean;
1679
+ can_interrupt: z.ZodBoolean;
1680
+ can_attach: z.ZodBoolean;
1681
+ revision: z.ZodNullable<z.ZodNumber>;
1682
+ execution_generation: z.ZodNullable<z.ZodNumber>;
1683
+ active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1684
+ admission_id: z.ZodString;
1685
+ sequence: z.ZodNumber;
1686
+ status: z.ZodEnum<{
1687
+ unknown: "unknown";
1688
+ queued: "queued";
1689
+ started: "started";
1690
+ terminal: "terminal";
1691
+ }>;
1692
+ outcome: z.ZodNullable<z.ZodString>;
1693
+ authority_epoch: z.ZodNumber;
1694
+ execution_generation: z.ZodNullable<z.ZodNumber>;
1695
+ text: z.ZodOptional<z.ZodString>;
1696
+ input_id: z.ZodOptional<z.ZodString>;
1697
+ }, z.core.$strip>>>;
1698
+ admissions: z.ZodArray<z.ZodObject<{
1699
+ admission_id: z.ZodString;
1700
+ sequence: z.ZodNumber;
1701
+ status: z.ZodEnum<{
1702
+ unknown: "unknown";
1703
+ queued: "queued";
1704
+ started: "started";
1705
+ terminal: "terminal";
1706
+ }>;
1707
+ outcome: z.ZodNullable<z.ZodString>;
1708
+ authority_epoch: z.ZodNumber;
1709
+ execution_generation: z.ZodNullable<z.ZodNumber>;
1710
+ text: z.ZodOptional<z.ZodString>;
1711
+ input_id: z.ZodOptional<z.ZodString>;
1712
+ actions: z.ZodArray<z.ZodEnum<{
1713
+ cancel: "cancel";
1714
+ discard: "discard";
1715
+ retry: "retry";
1716
+ }>>;
1717
+ }, z.core.$strip>>;
1718
+ }, z.core.$strip>>;
1221
1719
  can_branch: z.ZodBoolean;
1222
1720
  can_pin: z.ZodBoolean;
1223
1721
  can_archive: z.ZodBoolean;
1224
1722
  can_delete: z.ZodBoolean;
1225
1723
  can_duplicate: z.ZodBoolean;
1226
1724
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1725
+ can_compress: z.ZodOptional<z.ZodBoolean>;
1726
+ confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
1227
1727
  source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1228
1728
  session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1229
1729
  raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1255,10 +1755,15 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1255
1755
  text: z.ZodString;
1256
1756
  after_message_index: z.ZodNullable<z.ZodNumber>;
1257
1757
  }, z.core.$strip>>>;
1758
+ branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1759
+ session_id: z.ZodString;
1760
+ title: z.ZodString;
1761
+ }, z.core.$strip>>>;
1258
1762
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1259
1763
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1260
1764
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1261
1765
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1766
+ composer_state_key: z.ZodOptional<z.ZodString>;
1262
1767
  session_id: z.ZodString;
1263
1768
  title: z.ZodString;
1264
1769
  workspace: z.ZodOptional<z.ZodString>;
@@ -1312,6 +1817,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1312
1817
  event_type: z.ZodOptional<z.ZodString>;
1313
1818
  kind: z.ZodOptional<z.ZodEnum<{
1314
1819
  unknown: "unknown";
1820
+ memory: "memory";
1315
1821
  shell: "shell";
1316
1822
  read: "read";
1317
1823
  list: "list";
@@ -1319,7 +1825,6 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1319
1825
  web: "web";
1320
1826
  write: "write";
1321
1827
  skill: "skill";
1322
- memory: "memory";
1323
1828
  delegate: "delegate";
1324
1829
  }>>;
1325
1830
  target: z.ZodOptional<z.ZodString>;
@@ -1328,6 +1833,24 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1328
1833
  removed: z.ZodNumber;
1329
1834
  diff: z.ZodString;
1330
1835
  truncated: z.ZodBoolean;
1836
+ hunks: z.ZodArray<z.ZodObject<{
1837
+ header: z.ZodString;
1838
+ old_start: z.ZodNullable<z.ZodNumber>;
1839
+ new_start: z.ZodNullable<z.ZodNumber>;
1840
+ new_end: z.ZodNullable<z.ZodNumber>;
1841
+ additions: z.ZodNumber;
1842
+ deletions: z.ZodNumber;
1843
+ lines: z.ZodArray<z.ZodObject<{
1844
+ kind: z.ZodEnum<{
1845
+ context: "context";
1846
+ addition: "addition";
1847
+ deletion: "deletion";
1848
+ }>;
1849
+ old_line: z.ZodNullable<z.ZodNumber>;
1850
+ new_line: z.ZodNullable<z.ZodNumber>;
1851
+ text: z.ZodString;
1852
+ }, z.core.$strip>>;
1853
+ }, z.core.$strip>>;
1331
1854
  }, z.core.$strip>>;
1332
1855
  }, z.core.$loose>>>;
1333
1856
  reasoning: z.ZodOptional<z.ZodString>;
@@ -1345,8 +1868,8 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1345
1868
  row_id: z.ZodString;
1346
1869
  order_index: z.ZodNumber;
1347
1870
  role: z.ZodEnum<{
1348
- reasoning: "reasoning";
1349
1871
  tool: "tool";
1872
+ reasoning: "reasoning";
1350
1873
  prose: "prose";
1351
1874
  steering: "steering";
1352
1875
  }>;
@@ -1385,10 +1908,10 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1385
1908
  task_ids: z.ZodArray<z.ZodString>;
1386
1909
  status: z.ZodEnum<{
1387
1910
  unknown: "unknown";
1911
+ running: "running";
1388
1912
  cancelled: "cancelled";
1389
- completed: "completed";
1390
1913
  failed: "failed";
1391
- running: "running";
1914
+ completed: "completed";
1392
1915
  attention: "attention";
1393
1916
  }>;
1394
1917
  agents: z.ZodObject<{
@@ -1402,6 +1925,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1402
1925
  result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1403
1926
  kind: z.ZodOptional<z.ZodEnum<{
1404
1927
  unknown: "unknown";
1928
+ memory: "memory";
1405
1929
  shell: "shell";
1406
1930
  read: "read";
1407
1931
  list: "list";
@@ -1409,7 +1933,6 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1409
1933
  web: "web";
1410
1934
  write: "write";
1411
1935
  skill: "skill";
1412
- memory: "memory";
1413
1936
  delegate: "delegate";
1414
1937
  }>>;
1415
1938
  target: z.ZodOptional<z.ZodString>;
@@ -1418,6 +1941,24 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1418
1941
  removed: z.ZodNumber;
1419
1942
  diff: z.ZodString;
1420
1943
  truncated: z.ZodBoolean;
1944
+ hunks: z.ZodArray<z.ZodObject<{
1945
+ header: z.ZodString;
1946
+ old_start: z.ZodNullable<z.ZodNumber>;
1947
+ new_start: z.ZodNullable<z.ZodNumber>;
1948
+ new_end: z.ZodNullable<z.ZodNumber>;
1949
+ additions: z.ZodNumber;
1950
+ deletions: z.ZodNumber;
1951
+ lines: z.ZodArray<z.ZodObject<{
1952
+ kind: z.ZodEnum<{
1953
+ context: "context";
1954
+ addition: "addition";
1955
+ deletion: "deletion";
1956
+ }>;
1957
+ old_line: z.ZodNullable<z.ZodNumber>;
1958
+ new_line: z.ZodNullable<z.ZodNumber>;
1959
+ text: z.ZodString;
1960
+ }, z.core.$strip>>;
1961
+ }, z.core.$strip>>;
1421
1962
  }, z.core.$strip>>;
1422
1963
  id: z.ZodString;
1423
1964
  name: z.ZodString;
@@ -1466,6 +2007,10 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1466
2007
  activity_scene_ref: z.ZodOptional<z.ZodString>;
1467
2008
  }, z.core.$loose>>;
1468
2009
  _turn_id: z.ZodOptional<z.ZodString>;
2010
+ _turnDuration: z.ZodOptional<z.ZodNumber>;
2011
+ _turnTps: z.ZodOptional<z.ZodNumber>;
2012
+ _ts: z.ZodOptional<z.ZodNumber>;
2013
+ reasoning_titles: z.ZodOptional<z.ZodArray<z.ZodString>>;
1469
2014
  _active_turn_user: z.ZodOptional<z.ZodBoolean>;
1470
2015
  _steer: z.ZodOptional<z.ZodObject<{
1471
2016
  steer_id: z.ZodString;
@@ -1507,21 +2052,52 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1507
2052
  other: "other";
1508
2053
  }>;
1509
2054
  status: z.ZodEnum<{
1510
- completed: "completed";
1511
2055
  failed: "failed";
2056
+ completed: "completed";
1512
2057
  notice: "notice";
1513
2058
  }>;
1514
2059
  label: z.ZodString;
1515
2060
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2061
+ review_state: z.ZodOptional<z.ZodEnum<{
2062
+ unknown: "unknown";
2063
+ failed: "failed";
2064
+ waiting: "waiting";
2065
+ reviewing: "reviewing";
2066
+ reviewed: "reviewed";
2067
+ }>>;
1516
2068
  }, z.core.$strip>>;
1517
- }, z.core.$strip>>;
2069
+ review_state: z.ZodOptional<z.ZodEnum<{
2070
+ unknown: "unknown";
2071
+ failed: "failed";
2072
+ waiting: "waiting";
2073
+ reviewing: "reviewing";
2074
+ reviewed: "reviewed";
2075
+ }>>;
2076
+ }, z.core.$strip>>;
1518
2077
  _marker_kind: z.ZodOptional<z.ZodEnum<{
1519
2078
  context_compaction: "context_compaction";
1520
2079
  preserved_task_list: "preserved_task_list";
1521
2080
  }>>;
1522
2081
  _marker_body: z.ZodOptional<z.ZodString>;
2082
+ _notice_kind: z.ZodOptional<z.ZodEnum<{
2083
+ failed_turn: "failed_turn";
2084
+ session_finalize: "session_finalize";
2085
+ }>>;
2086
+ _delivery: z.ZodOptional<z.ZodObject<{
2087
+ kind: z.ZodEnum<{
2088
+ webhook: "webhook";
2089
+ cron: "cron";
2090
+ }>;
2091
+ name: z.ZodString;
2092
+ body: z.ZodString;
2093
+ }, z.core.$strip>>;
1523
2094
  _background_reply: z.ZodOptional<z.ZodBoolean>;
1524
2095
  _background_silent: z.ZodOptional<z.ZodBoolean>;
2096
+ _display: z.ZodOptional<z.ZodEnum<{
2097
+ row: "row";
2098
+ hidden: "hidden";
2099
+ in_scene: "in_scene";
2100
+ }>>;
1525
2101
  }, z.core.$loose>>>;
1526
2102
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1527
2103
  name: z.ZodOptional<z.ZodString>;
@@ -1551,6 +2127,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1551
2127
  event_type: z.ZodOptional<z.ZodString>;
1552
2128
  kind: z.ZodOptional<z.ZodEnum<{
1553
2129
  unknown: "unknown";
2130
+ memory: "memory";
1554
2131
  shell: "shell";
1555
2132
  read: "read";
1556
2133
  list: "list";
@@ -1558,7 +2135,6 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1558
2135
  web: "web";
1559
2136
  write: "write";
1560
2137
  skill: "skill";
1561
- memory: "memory";
1562
2138
  delegate: "delegate";
1563
2139
  }>>;
1564
2140
  target: z.ZodOptional<z.ZodString>;
@@ -1567,6 +2143,24 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1567
2143
  removed: z.ZodNumber;
1568
2144
  diff: z.ZodString;
1569
2145
  truncated: z.ZodBoolean;
2146
+ hunks: z.ZodArray<z.ZodObject<{
2147
+ header: z.ZodString;
2148
+ old_start: z.ZodNullable<z.ZodNumber>;
2149
+ new_start: z.ZodNullable<z.ZodNumber>;
2150
+ new_end: z.ZodNullable<z.ZodNumber>;
2151
+ additions: z.ZodNumber;
2152
+ deletions: z.ZodNumber;
2153
+ lines: z.ZodArray<z.ZodObject<{
2154
+ kind: z.ZodEnum<{
2155
+ context: "context";
2156
+ addition: "addition";
2157
+ deletion: "deletion";
2158
+ }>;
2159
+ old_line: z.ZodNullable<z.ZodNumber>;
2160
+ new_line: z.ZodNullable<z.ZodNumber>;
2161
+ text: z.ZodString;
2162
+ }, z.core.$strip>>;
2163
+ }, z.core.$strip>>;
1570
2164
  }, z.core.$strip>>;
1571
2165
  }, z.core.$loose>>>;
1572
2166
  created_at: z.ZodOptional<z.ZodNumber>;
@@ -1605,6 +2199,50 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1605
2199
  send_now: z.ZodBoolean;
1606
2200
  }, z.core.$strip>;
1607
2201
  }, z.core.$strip>>>;
2202
+ run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2203
+ phase: z.ZodLiteral<"compressing">;
2204
+ }, z.core.$strip>, z.ZodObject<{
2205
+ phase: z.ZodLiteral<"rate_limit_wait">;
2206
+ wait: z.ZodObject<{
2207
+ provider: z.ZodNullable<z.ZodString>;
2208
+ provider_label: z.ZodNullable<z.ZodString>;
2209
+ until: z.ZodNumber;
2210
+ until_kind: z.ZodEnum<{
2211
+ reset: "reset";
2212
+ retry: "retry";
2213
+ }>;
2214
+ }, z.core.$strip>;
2215
+ }, z.core.$strip>, z.ZodObject<{
2216
+ phase: z.ZodLiteral<"prompt_reading">;
2217
+ progress_percent: z.ZodNullable<z.ZodNumber>;
2218
+ }, z.core.$strip>, z.ZodObject<{
2219
+ phase: z.ZodLiteral<"working">;
2220
+ }, z.core.$strip>], "phase">>>;
2221
+ compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2222
+ notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
2223
+ key: z.ZodString;
2224
+ level: z.ZodEnum<{
2225
+ success: "success";
2226
+ error: "error";
2227
+ info: "info";
2228
+ warn: "warn";
2229
+ }>;
2230
+ text: z.ZodString;
2231
+ expires_at: z.ZodNullable<z.ZodNumber>;
2232
+ }, z.core.$strip>>>;
2233
+ goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2234
+ text: z.ZodString;
2235
+ status: z.ZodEnum<{
2236
+ active: "active";
2237
+ parked: "parked";
2238
+ paused: "paused";
2239
+ }>;
2240
+ turns_used: z.ZodNumber;
2241
+ max_turns: z.ZodNumber;
2242
+ reason: z.ZodNullable<z.ZodString>;
2243
+ parked_until: z.ZodNullable<z.ZodNumber>;
2244
+ }, z.core.$strip>>>;
2245
+ automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
1608
2246
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
1609
2247
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1610
2248
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1646,11 +2284,11 @@ export declare const SessionRowSchema: z.ZodObject<{
1646
2284
  is_cli_session: z.ZodOptional<z.ZodBoolean>;
1647
2285
  source_kind: z.ZodEnum<{
1648
2286
  other: "other";
2287
+ webhook: "webhook";
2288
+ cron: "cron";
1649
2289
  webui: "webui";
1650
2290
  cli: "cli";
1651
2291
  messaging: "messaging";
1652
- cron: "cron";
1653
- webhook: "webhook";
1654
2292
  subagent: "subagent";
1655
2293
  claude_code: "claude_code";
1656
2294
  kanban: "kanban";
@@ -1660,6 +2298,57 @@ export declare const SessionRowSchema: z.ZodObject<{
1660
2298
  sort_ts: z.ZodNumber;
1661
2299
  cron_running: z.ZodOptional<z.ZodBoolean>;
1662
2300
  read_only: z.ZodBoolean;
2301
+ read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2302
+ owner_attachment: z.ZodOptional<z.ZodObject<{
2303
+ state: z.ZodEnum<{
2304
+ attached: "attached";
2305
+ stopped: "stopped";
2306
+ unavailable: "unavailable";
2307
+ incompatible: "incompatible";
2308
+ refused: "refused";
2309
+ }>;
2310
+ reason: z.ZodNullable<z.ZodString>;
2311
+ can_submit: z.ZodBoolean;
2312
+ can_interrupt: z.ZodBoolean;
2313
+ can_attach: z.ZodBoolean;
2314
+ revision: z.ZodNullable<z.ZodNumber>;
2315
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2316
+ active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2317
+ admission_id: z.ZodString;
2318
+ sequence: z.ZodNumber;
2319
+ status: z.ZodEnum<{
2320
+ unknown: "unknown";
2321
+ queued: "queued";
2322
+ started: "started";
2323
+ terminal: "terminal";
2324
+ }>;
2325
+ outcome: z.ZodNullable<z.ZodString>;
2326
+ authority_epoch: z.ZodNumber;
2327
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2328
+ text: z.ZodOptional<z.ZodString>;
2329
+ input_id: z.ZodOptional<z.ZodString>;
2330
+ }, z.core.$strip>>>;
2331
+ admissions: z.ZodArray<z.ZodObject<{
2332
+ admission_id: z.ZodString;
2333
+ sequence: z.ZodNumber;
2334
+ status: z.ZodEnum<{
2335
+ unknown: "unknown";
2336
+ queued: "queued";
2337
+ started: "started";
2338
+ terminal: "terminal";
2339
+ }>;
2340
+ outcome: z.ZodNullable<z.ZodString>;
2341
+ authority_epoch: z.ZodNumber;
2342
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2343
+ text: z.ZodOptional<z.ZodString>;
2344
+ input_id: z.ZodOptional<z.ZodString>;
2345
+ actions: z.ZodArray<z.ZodEnum<{
2346
+ cancel: "cancel";
2347
+ discard: "discard";
2348
+ retry: "retry";
2349
+ }>>;
2350
+ }, z.core.$strip>>;
2351
+ }, z.core.$strip>>;
1663
2352
  can_branch: z.ZodBoolean;
1664
2353
  can_pin: z.ZodBoolean;
1665
2354
  can_archive: z.ZodBoolean;
@@ -1687,6 +2376,21 @@ export declare const SessionRowSchema: z.ZodObject<{
1687
2376
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1688
2377
  }, z.core.$loose>;
1689
2378
  export type SessionRow = z.infer<typeof SessionRowSchema>;
2379
+ /**
2380
+ * TAL-785: whether the Agent's `state.db` could serve the Agent session rows. `corrupt`: SQLite reports the file
2381
+ * damaged; `unavailable`: it could not be read for another reason (permissions, a lock, an I/O error); `outdated`: a
2382
+ * readable database from an older hermes-agent. `reason` explains a degraded state.
2383
+ */
2384
+ export declare const AgentStorageSchema: z.ZodObject<{
2385
+ state: z.ZodEnum<{
2386
+ unavailable: "unavailable";
2387
+ ok: "ok";
2388
+ corrupt: "corrupt";
2389
+ outdated: "outdated";
2390
+ }>;
2391
+ reason: z.ZodNullable<z.ZodString>;
2392
+ }, z.core.$strip>;
2393
+ export type AgentStorage = z.infer<typeof AgentStorageSchema>;
1690
2394
  export declare const SessionsListSchema: z.ZodObject<{
1691
2395
  sessions: z.ZodArray<z.ZodObject<{
1692
2396
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1709,11 +2413,11 @@ export declare const SessionsListSchema: z.ZodObject<{
1709
2413
  is_cli_session: z.ZodOptional<z.ZodBoolean>;
1710
2414
  source_kind: z.ZodEnum<{
1711
2415
  other: "other";
2416
+ webhook: "webhook";
2417
+ cron: "cron";
1712
2418
  webui: "webui";
1713
2419
  cli: "cli";
1714
2420
  messaging: "messaging";
1715
- cron: "cron";
1716
- webhook: "webhook";
1717
2421
  subagent: "subagent";
1718
2422
  claude_code: "claude_code";
1719
2423
  kanban: "kanban";
@@ -1723,6 +2427,57 @@ export declare const SessionsListSchema: z.ZodObject<{
1723
2427
  sort_ts: z.ZodNumber;
1724
2428
  cron_running: z.ZodOptional<z.ZodBoolean>;
1725
2429
  read_only: z.ZodBoolean;
2430
+ read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2431
+ owner_attachment: z.ZodOptional<z.ZodObject<{
2432
+ state: z.ZodEnum<{
2433
+ attached: "attached";
2434
+ stopped: "stopped";
2435
+ unavailable: "unavailable";
2436
+ incompatible: "incompatible";
2437
+ refused: "refused";
2438
+ }>;
2439
+ reason: z.ZodNullable<z.ZodString>;
2440
+ can_submit: z.ZodBoolean;
2441
+ can_interrupt: z.ZodBoolean;
2442
+ can_attach: z.ZodBoolean;
2443
+ revision: z.ZodNullable<z.ZodNumber>;
2444
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2445
+ active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2446
+ admission_id: z.ZodString;
2447
+ sequence: z.ZodNumber;
2448
+ status: z.ZodEnum<{
2449
+ unknown: "unknown";
2450
+ queued: "queued";
2451
+ started: "started";
2452
+ terminal: "terminal";
2453
+ }>;
2454
+ outcome: z.ZodNullable<z.ZodString>;
2455
+ authority_epoch: z.ZodNumber;
2456
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2457
+ text: z.ZodOptional<z.ZodString>;
2458
+ input_id: z.ZodOptional<z.ZodString>;
2459
+ }, z.core.$strip>>>;
2460
+ admissions: z.ZodArray<z.ZodObject<{
2461
+ admission_id: z.ZodString;
2462
+ sequence: z.ZodNumber;
2463
+ status: z.ZodEnum<{
2464
+ unknown: "unknown";
2465
+ queued: "queued";
2466
+ started: "started";
2467
+ terminal: "terminal";
2468
+ }>;
2469
+ outcome: z.ZodNullable<z.ZodString>;
2470
+ authority_epoch: z.ZodNumber;
2471
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2472
+ text: z.ZodOptional<z.ZodString>;
2473
+ input_id: z.ZodOptional<z.ZodString>;
2474
+ actions: z.ZodArray<z.ZodEnum<{
2475
+ cancel: "cancel";
2476
+ discard: "discard";
2477
+ retry: "retry";
2478
+ }>>;
2479
+ }, z.core.$strip>>;
2480
+ }, z.core.$strip>>;
1726
2481
  can_branch: z.ZodBoolean;
1727
2482
  can_pin: z.ZodBoolean;
1728
2483
  can_archive: z.ZodBoolean;
@@ -1770,11 +2525,11 @@ export declare const SessionsListSchema: z.ZodObject<{
1770
2525
  is_cli_session: z.ZodOptional<z.ZodBoolean>;
1771
2526
  source_kind: z.ZodEnum<{
1772
2527
  other: "other";
2528
+ webhook: "webhook";
2529
+ cron: "cron";
1773
2530
  webui: "webui";
1774
2531
  cli: "cli";
1775
2532
  messaging: "messaging";
1776
- cron: "cron";
1777
- webhook: "webhook";
1778
2533
  subagent: "subagent";
1779
2534
  claude_code: "claude_code";
1780
2535
  kanban: "kanban";
@@ -1784,6 +2539,57 @@ export declare const SessionsListSchema: z.ZodObject<{
1784
2539
  sort_ts: z.ZodNumber;
1785
2540
  cron_running: z.ZodOptional<z.ZodBoolean>;
1786
2541
  read_only: z.ZodBoolean;
2542
+ read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2543
+ owner_attachment: z.ZodOptional<z.ZodObject<{
2544
+ state: z.ZodEnum<{
2545
+ attached: "attached";
2546
+ stopped: "stopped";
2547
+ unavailable: "unavailable";
2548
+ incompatible: "incompatible";
2549
+ refused: "refused";
2550
+ }>;
2551
+ reason: z.ZodNullable<z.ZodString>;
2552
+ can_submit: z.ZodBoolean;
2553
+ can_interrupt: z.ZodBoolean;
2554
+ can_attach: z.ZodBoolean;
2555
+ revision: z.ZodNullable<z.ZodNumber>;
2556
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2557
+ active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2558
+ admission_id: z.ZodString;
2559
+ sequence: z.ZodNumber;
2560
+ status: z.ZodEnum<{
2561
+ unknown: "unknown";
2562
+ queued: "queued";
2563
+ started: "started";
2564
+ terminal: "terminal";
2565
+ }>;
2566
+ outcome: z.ZodNullable<z.ZodString>;
2567
+ authority_epoch: z.ZodNumber;
2568
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2569
+ text: z.ZodOptional<z.ZodString>;
2570
+ input_id: z.ZodOptional<z.ZodString>;
2571
+ }, z.core.$strip>>>;
2572
+ admissions: z.ZodArray<z.ZodObject<{
2573
+ admission_id: z.ZodString;
2574
+ sequence: z.ZodNumber;
2575
+ status: z.ZodEnum<{
2576
+ unknown: "unknown";
2577
+ queued: "queued";
2578
+ started: "started";
2579
+ terminal: "terminal";
2580
+ }>;
2581
+ outcome: z.ZodNullable<z.ZodString>;
2582
+ authority_epoch: z.ZodNumber;
2583
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2584
+ text: z.ZodOptional<z.ZodString>;
2585
+ input_id: z.ZodOptional<z.ZodString>;
2586
+ actions: z.ZodArray<z.ZodEnum<{
2587
+ cancel: "cancel";
2588
+ discard: "discard";
2589
+ retry: "retry";
2590
+ }>>;
2591
+ }, z.core.$strip>>;
2592
+ }, z.core.$strip>>;
1787
2593
  can_branch: z.ZodBoolean;
1788
2594
  can_pin: z.ZodBoolean;
1789
2595
  can_archive: z.ZodBoolean;
@@ -1826,6 +2632,15 @@ export declare const SessionsListSchema: z.ZodObject<{
1826
2632
  scheduled_sessions_truncated: z.ZodBoolean;
1827
2633
  webhook_session_count: z.ZodNumber;
1828
2634
  webhook_sessions_truncated: z.ZodBoolean;
2635
+ agent_storage: z.ZodObject<{
2636
+ state: z.ZodEnum<{
2637
+ unavailable: "unavailable";
2638
+ ok: "ok";
2639
+ corrupt: "corrupt";
2640
+ outdated: "outdated";
2641
+ }>;
2642
+ reason: z.ZodNullable<z.ZodString>;
2643
+ }, z.core.$strip>;
1829
2644
  archived_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1830
2645
  archived_offset: z.ZodOptional<z.ZodNumber>;
1831
2646
  }, z.core.$loose>;
@@ -1841,6 +2656,57 @@ export declare const SessionStatusSchema: z.ZodObject<{
1841
2656
  agent_running: z.ZodBoolean;
1842
2657
  is_streaming: z.ZodBoolean;
1843
2658
  read_only: z.ZodBoolean;
2659
+ read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2660
+ owner_attachment: z.ZodOptional<z.ZodObject<{
2661
+ state: z.ZodEnum<{
2662
+ attached: "attached";
2663
+ stopped: "stopped";
2664
+ unavailable: "unavailable";
2665
+ incompatible: "incompatible";
2666
+ refused: "refused";
2667
+ }>;
2668
+ reason: z.ZodNullable<z.ZodString>;
2669
+ can_submit: z.ZodBoolean;
2670
+ can_interrupt: z.ZodBoolean;
2671
+ can_attach: z.ZodBoolean;
2672
+ revision: z.ZodNullable<z.ZodNumber>;
2673
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2674
+ active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2675
+ admission_id: z.ZodString;
2676
+ sequence: z.ZodNumber;
2677
+ status: z.ZodEnum<{
2678
+ unknown: "unknown";
2679
+ queued: "queued";
2680
+ started: "started";
2681
+ terminal: "terminal";
2682
+ }>;
2683
+ outcome: z.ZodNullable<z.ZodString>;
2684
+ authority_epoch: z.ZodNumber;
2685
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2686
+ text: z.ZodOptional<z.ZodString>;
2687
+ input_id: z.ZodOptional<z.ZodString>;
2688
+ }, z.core.$strip>>>;
2689
+ admissions: z.ZodArray<z.ZodObject<{
2690
+ admission_id: z.ZodString;
2691
+ sequence: z.ZodNumber;
2692
+ status: z.ZodEnum<{
2693
+ unknown: "unknown";
2694
+ queued: "queued";
2695
+ started: "started";
2696
+ terminal: "terminal";
2697
+ }>;
2698
+ outcome: z.ZodNullable<z.ZodString>;
2699
+ authority_epoch: z.ZodNumber;
2700
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2701
+ text: z.ZodOptional<z.ZodString>;
2702
+ input_id: z.ZodOptional<z.ZodString>;
2703
+ actions: z.ZodArray<z.ZodEnum<{
2704
+ cancel: "cancel";
2705
+ discard: "discard";
2706
+ retry: "retry";
2707
+ }>>;
2708
+ }, z.core.$strip>>;
2709
+ }, z.core.$strip>>;
1844
2710
  message_count: z.ZodOptional<z.ZodNumber>;
1845
2711
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1846
2712
  profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1882,7 +2748,9 @@ export declare const SessionDeleteResultSchema: z.ZodObject<{
1882
2748
  ok: z.ZodLiteral<true>;
1883
2749
  state_db_cleanup_failed: z.ZodOptional<z.ZodBoolean>;
1884
2750
  }, z.core.$loose>;
2751
+ /** `voice_turn` (TAL-801): the turn was spoken (an App voice note), so the Agent runs it on `auxiliary.voice_chat`. */
1885
2752
  export declare const ChatStartRequestSchema: z.ZodObject<{
2753
+ submission_id: z.ZodOptional<z.ZodString>;
1886
2754
  session_id: z.ZodString;
1887
2755
  message: z.ZodOptional<z.ZodString>;
1888
2756
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1902,10 +2770,64 @@ export declare const ChatStartRequestSchema: z.ZodObject<{
1902
2770
  moa_config: z.ZodOptional<z.ZodBoolean>;
1903
2771
  regenerate: z.ZodOptional<z.ZodBoolean>;
1904
2772
  regeneration_revision: z.ZodOptional<z.ZodString>;
2773
+ voice_turn: z.ZodOptional<z.ZodBoolean>;
2774
+ connect_card: z.ZodOptional<z.ZodBoolean>;
2775
+ skill_secret: z.ZodOptional<z.ZodBoolean>;
1905
2776
  }, z.core.$loose>;
1906
2777
  export type ChatStartRequest = z.infer<typeof ChatStartRequestSchema>;
1907
2778
  /** Accepted turn. `stream_id` is the owner identity for the SSE connection. */
1908
2779
  export declare const ChatStartResponseSchema: z.ZodObject<{
2780
+ owner_attachment: z.ZodOptional<z.ZodObject<{
2781
+ state: z.ZodEnum<{
2782
+ attached: "attached";
2783
+ stopped: "stopped";
2784
+ unavailable: "unavailable";
2785
+ incompatible: "incompatible";
2786
+ refused: "refused";
2787
+ }>;
2788
+ reason: z.ZodNullable<z.ZodString>;
2789
+ can_submit: z.ZodBoolean;
2790
+ can_interrupt: z.ZodBoolean;
2791
+ can_attach: z.ZodBoolean;
2792
+ revision: z.ZodNullable<z.ZodNumber>;
2793
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2794
+ active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2795
+ admission_id: z.ZodString;
2796
+ sequence: z.ZodNumber;
2797
+ status: z.ZodEnum<{
2798
+ unknown: "unknown";
2799
+ queued: "queued";
2800
+ started: "started";
2801
+ terminal: "terminal";
2802
+ }>;
2803
+ outcome: z.ZodNullable<z.ZodString>;
2804
+ authority_epoch: z.ZodNumber;
2805
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2806
+ text: z.ZodOptional<z.ZodString>;
2807
+ input_id: z.ZodOptional<z.ZodString>;
2808
+ }, z.core.$strip>>>;
2809
+ admissions: z.ZodArray<z.ZodObject<{
2810
+ admission_id: z.ZodString;
2811
+ sequence: z.ZodNumber;
2812
+ status: z.ZodEnum<{
2813
+ unknown: "unknown";
2814
+ queued: "queued";
2815
+ started: "started";
2816
+ terminal: "terminal";
2817
+ }>;
2818
+ outcome: z.ZodNullable<z.ZodString>;
2819
+ authority_epoch: z.ZodNumber;
2820
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2821
+ text: z.ZodOptional<z.ZodString>;
2822
+ input_id: z.ZodOptional<z.ZodString>;
2823
+ actions: z.ZodArray<z.ZodEnum<{
2824
+ cancel: "cancel";
2825
+ discard: "discard";
2826
+ retry: "retry";
2827
+ }>>;
2828
+ }, z.core.$strip>>;
2829
+ }, z.core.$strip>>;
2830
+ admission_id: z.ZodOptional<z.ZodString>;
1909
2831
  stream_id: z.ZodOptional<z.ZodString>;
1910
2832
  session_id: z.ZodOptional<z.ZodString>;
1911
2833
  turn_id: z.ZodOptional<z.ZodString>;
@@ -1927,11 +2849,11 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
1927
2849
  is_cli_session: z.ZodOptional<z.ZodBoolean>;
1928
2850
  source_kind: z.ZodEnum<{
1929
2851
  other: "other";
2852
+ webhook: "webhook";
2853
+ cron: "cron";
1930
2854
  webui: "webui";
1931
2855
  cli: "cli";
1932
2856
  messaging: "messaging";
1933
- cron: "cron";
1934
- webhook: "webhook";
1935
2857
  subagent: "subagent";
1936
2858
  claude_code: "claude_code";
1937
2859
  kanban: "kanban";
@@ -1940,12 +2862,65 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
1940
2862
  is_messaging_session: z.ZodBoolean;
1941
2863
  sort_ts: z.ZodNumber;
1942
2864
  read_only: z.ZodBoolean;
2865
+ read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2866
+ owner_attachment: z.ZodOptional<z.ZodObject<{
2867
+ state: z.ZodEnum<{
2868
+ attached: "attached";
2869
+ stopped: "stopped";
2870
+ unavailable: "unavailable";
2871
+ incompatible: "incompatible";
2872
+ refused: "refused";
2873
+ }>;
2874
+ reason: z.ZodNullable<z.ZodString>;
2875
+ can_submit: z.ZodBoolean;
2876
+ can_interrupt: z.ZodBoolean;
2877
+ can_attach: z.ZodBoolean;
2878
+ revision: z.ZodNullable<z.ZodNumber>;
2879
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2880
+ active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2881
+ admission_id: z.ZodString;
2882
+ sequence: z.ZodNumber;
2883
+ status: z.ZodEnum<{
2884
+ unknown: "unknown";
2885
+ queued: "queued";
2886
+ started: "started";
2887
+ terminal: "terminal";
2888
+ }>;
2889
+ outcome: z.ZodNullable<z.ZodString>;
2890
+ authority_epoch: z.ZodNumber;
2891
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2892
+ text: z.ZodOptional<z.ZodString>;
2893
+ input_id: z.ZodOptional<z.ZodString>;
2894
+ }, z.core.$strip>>>;
2895
+ admissions: z.ZodArray<z.ZodObject<{
2896
+ admission_id: z.ZodString;
2897
+ sequence: z.ZodNumber;
2898
+ status: z.ZodEnum<{
2899
+ unknown: "unknown";
2900
+ queued: "queued";
2901
+ started: "started";
2902
+ terminal: "terminal";
2903
+ }>;
2904
+ outcome: z.ZodNullable<z.ZodString>;
2905
+ authority_epoch: z.ZodNumber;
2906
+ execution_generation: z.ZodNullable<z.ZodNumber>;
2907
+ text: z.ZodOptional<z.ZodString>;
2908
+ input_id: z.ZodOptional<z.ZodString>;
2909
+ actions: z.ZodArray<z.ZodEnum<{
2910
+ cancel: "cancel";
2911
+ discard: "discard";
2912
+ retry: "retry";
2913
+ }>>;
2914
+ }, z.core.$strip>>;
2915
+ }, z.core.$strip>>;
1943
2916
  can_branch: z.ZodBoolean;
1944
2917
  can_pin: z.ZodBoolean;
1945
2918
  can_archive: z.ZodBoolean;
1946
2919
  can_delete: z.ZodBoolean;
1947
2920
  can_duplicate: z.ZodBoolean;
1948
2921
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2922
+ can_compress: z.ZodOptional<z.ZodBoolean>;
2923
+ confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
1949
2924
  source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1950
2925
  session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1951
2926
  raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1977,10 +2952,15 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
1977
2952
  text: z.ZodString;
1978
2953
  after_message_index: z.ZodNullable<z.ZodNumber>;
1979
2954
  }, z.core.$strip>>>;
2955
+ branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2956
+ session_id: z.ZodString;
2957
+ title: z.ZodString;
2958
+ }, z.core.$strip>>>;
1980
2959
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1981
2960
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1982
2961
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1983
2962
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2963
+ composer_state_key: z.ZodOptional<z.ZodString>;
1984
2964
  session_id: z.ZodString;
1985
2965
  title: z.ZodString;
1986
2966
  workspace: z.ZodOptional<z.ZodString>;
@@ -2034,6 +3014,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2034
3014
  event_type: z.ZodOptional<z.ZodString>;
2035
3015
  kind: z.ZodOptional<z.ZodEnum<{
2036
3016
  unknown: "unknown";
3017
+ memory: "memory";
2037
3018
  shell: "shell";
2038
3019
  read: "read";
2039
3020
  list: "list";
@@ -2041,7 +3022,6 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2041
3022
  web: "web";
2042
3023
  write: "write";
2043
3024
  skill: "skill";
2044
- memory: "memory";
2045
3025
  delegate: "delegate";
2046
3026
  }>>;
2047
3027
  target: z.ZodOptional<z.ZodString>;
@@ -2050,6 +3030,24 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2050
3030
  removed: z.ZodNumber;
2051
3031
  diff: z.ZodString;
2052
3032
  truncated: z.ZodBoolean;
3033
+ hunks: z.ZodArray<z.ZodObject<{
3034
+ header: z.ZodString;
3035
+ old_start: z.ZodNullable<z.ZodNumber>;
3036
+ new_start: z.ZodNullable<z.ZodNumber>;
3037
+ new_end: z.ZodNullable<z.ZodNumber>;
3038
+ additions: z.ZodNumber;
3039
+ deletions: z.ZodNumber;
3040
+ lines: z.ZodArray<z.ZodObject<{
3041
+ kind: z.ZodEnum<{
3042
+ context: "context";
3043
+ addition: "addition";
3044
+ deletion: "deletion";
3045
+ }>;
3046
+ old_line: z.ZodNullable<z.ZodNumber>;
3047
+ new_line: z.ZodNullable<z.ZodNumber>;
3048
+ text: z.ZodString;
3049
+ }, z.core.$strip>>;
3050
+ }, z.core.$strip>>;
2053
3051
  }, z.core.$strip>>;
2054
3052
  }, z.core.$loose>>>;
2055
3053
  reasoning: z.ZodOptional<z.ZodString>;
@@ -2067,8 +3065,8 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2067
3065
  row_id: z.ZodString;
2068
3066
  order_index: z.ZodNumber;
2069
3067
  role: z.ZodEnum<{
2070
- reasoning: "reasoning";
2071
3068
  tool: "tool";
3069
+ reasoning: "reasoning";
2072
3070
  prose: "prose";
2073
3071
  steering: "steering";
2074
3072
  }>;
@@ -2107,10 +3105,10 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2107
3105
  task_ids: z.ZodArray<z.ZodString>;
2108
3106
  status: z.ZodEnum<{
2109
3107
  unknown: "unknown";
3108
+ running: "running";
2110
3109
  cancelled: "cancelled";
2111
- completed: "completed";
2112
3110
  failed: "failed";
2113
- running: "running";
3111
+ completed: "completed";
2114
3112
  attention: "attention";
2115
3113
  }>;
2116
3114
  agents: z.ZodObject<{
@@ -2124,6 +3122,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2124
3122
  result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2125
3123
  kind: z.ZodOptional<z.ZodEnum<{
2126
3124
  unknown: "unknown";
3125
+ memory: "memory";
2127
3126
  shell: "shell";
2128
3127
  read: "read";
2129
3128
  list: "list";
@@ -2131,7 +3130,6 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2131
3130
  web: "web";
2132
3131
  write: "write";
2133
3132
  skill: "skill";
2134
- memory: "memory";
2135
3133
  delegate: "delegate";
2136
3134
  }>>;
2137
3135
  target: z.ZodOptional<z.ZodString>;
@@ -2140,6 +3138,24 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2140
3138
  removed: z.ZodNumber;
2141
3139
  diff: z.ZodString;
2142
3140
  truncated: z.ZodBoolean;
3141
+ hunks: z.ZodArray<z.ZodObject<{
3142
+ header: z.ZodString;
3143
+ old_start: z.ZodNullable<z.ZodNumber>;
3144
+ new_start: z.ZodNullable<z.ZodNumber>;
3145
+ new_end: z.ZodNullable<z.ZodNumber>;
3146
+ additions: z.ZodNumber;
3147
+ deletions: z.ZodNumber;
3148
+ lines: z.ZodArray<z.ZodObject<{
3149
+ kind: z.ZodEnum<{
3150
+ context: "context";
3151
+ addition: "addition";
3152
+ deletion: "deletion";
3153
+ }>;
3154
+ old_line: z.ZodNullable<z.ZodNumber>;
3155
+ new_line: z.ZodNullable<z.ZodNumber>;
3156
+ text: z.ZodString;
3157
+ }, z.core.$strip>>;
3158
+ }, z.core.$strip>>;
2143
3159
  }, z.core.$strip>>;
2144
3160
  id: z.ZodString;
2145
3161
  name: z.ZodString;
@@ -2188,6 +3204,10 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2188
3204
  activity_scene_ref: z.ZodOptional<z.ZodString>;
2189
3205
  }, z.core.$loose>>;
2190
3206
  _turn_id: z.ZodOptional<z.ZodString>;
3207
+ _turnDuration: z.ZodOptional<z.ZodNumber>;
3208
+ _turnTps: z.ZodOptional<z.ZodNumber>;
3209
+ _ts: z.ZodOptional<z.ZodNumber>;
3210
+ reasoning_titles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2191
3211
  _active_turn_user: z.ZodOptional<z.ZodBoolean>;
2192
3212
  _steer: z.ZodOptional<z.ZodObject<{
2193
3213
  steer_id: z.ZodString;
@@ -2229,21 +3249,52 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2229
3249
  other: "other";
2230
3250
  }>;
2231
3251
  status: z.ZodEnum<{
2232
- completed: "completed";
2233
3252
  failed: "failed";
3253
+ completed: "completed";
2234
3254
  notice: "notice";
2235
3255
  }>;
2236
3256
  label: z.ZodString;
2237
3257
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3258
+ review_state: z.ZodOptional<z.ZodEnum<{
3259
+ unknown: "unknown";
3260
+ failed: "failed";
3261
+ waiting: "waiting";
3262
+ reviewing: "reviewing";
3263
+ reviewed: "reviewed";
3264
+ }>>;
2238
3265
  }, z.core.$strip>>;
3266
+ review_state: z.ZodOptional<z.ZodEnum<{
3267
+ unknown: "unknown";
3268
+ failed: "failed";
3269
+ waiting: "waiting";
3270
+ reviewing: "reviewing";
3271
+ reviewed: "reviewed";
3272
+ }>>;
2239
3273
  }, z.core.$strip>>;
2240
3274
  _marker_kind: z.ZodOptional<z.ZodEnum<{
2241
3275
  context_compaction: "context_compaction";
2242
3276
  preserved_task_list: "preserved_task_list";
2243
3277
  }>>;
2244
3278
  _marker_body: z.ZodOptional<z.ZodString>;
3279
+ _notice_kind: z.ZodOptional<z.ZodEnum<{
3280
+ failed_turn: "failed_turn";
3281
+ session_finalize: "session_finalize";
3282
+ }>>;
3283
+ _delivery: z.ZodOptional<z.ZodObject<{
3284
+ kind: z.ZodEnum<{
3285
+ webhook: "webhook";
3286
+ cron: "cron";
3287
+ }>;
3288
+ name: z.ZodString;
3289
+ body: z.ZodString;
3290
+ }, z.core.$strip>>;
2245
3291
  _background_reply: z.ZodOptional<z.ZodBoolean>;
2246
3292
  _background_silent: z.ZodOptional<z.ZodBoolean>;
3293
+ _display: z.ZodOptional<z.ZodEnum<{
3294
+ row: "row";
3295
+ hidden: "hidden";
3296
+ in_scene: "in_scene";
3297
+ }>>;
2247
3298
  }, z.core.$loose>>>;
2248
3299
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2249
3300
  name: z.ZodOptional<z.ZodString>;
@@ -2273,6 +3324,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2273
3324
  event_type: z.ZodOptional<z.ZodString>;
2274
3325
  kind: z.ZodOptional<z.ZodEnum<{
2275
3326
  unknown: "unknown";
3327
+ memory: "memory";
2276
3328
  shell: "shell";
2277
3329
  read: "read";
2278
3330
  list: "list";
@@ -2280,7 +3332,6 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2280
3332
  web: "web";
2281
3333
  write: "write";
2282
3334
  skill: "skill";
2283
- memory: "memory";
2284
3335
  delegate: "delegate";
2285
3336
  }>>;
2286
3337
  target: z.ZodOptional<z.ZodString>;
@@ -2289,6 +3340,24 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2289
3340
  removed: z.ZodNumber;
2290
3341
  diff: z.ZodString;
2291
3342
  truncated: z.ZodBoolean;
3343
+ hunks: z.ZodArray<z.ZodObject<{
3344
+ header: z.ZodString;
3345
+ old_start: z.ZodNullable<z.ZodNumber>;
3346
+ new_start: z.ZodNullable<z.ZodNumber>;
3347
+ new_end: z.ZodNullable<z.ZodNumber>;
3348
+ additions: z.ZodNumber;
3349
+ deletions: z.ZodNumber;
3350
+ lines: z.ZodArray<z.ZodObject<{
3351
+ kind: z.ZodEnum<{
3352
+ context: "context";
3353
+ addition: "addition";
3354
+ deletion: "deletion";
3355
+ }>;
3356
+ old_line: z.ZodNullable<z.ZodNumber>;
3357
+ new_line: z.ZodNullable<z.ZodNumber>;
3358
+ text: z.ZodString;
3359
+ }, z.core.$strip>>;
3360
+ }, z.core.$strip>>;
2292
3361
  }, z.core.$strip>>;
2293
3362
  }, z.core.$loose>>>;
2294
3363
  created_at: z.ZodOptional<z.ZodNumber>;
@@ -2327,6 +3396,50 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2327
3396
  send_now: z.ZodBoolean;
2328
3397
  }, z.core.$strip>;
2329
3398
  }, z.core.$strip>>>;
3399
+ run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
3400
+ phase: z.ZodLiteral<"compressing">;
3401
+ }, z.core.$strip>, z.ZodObject<{
3402
+ phase: z.ZodLiteral<"rate_limit_wait">;
3403
+ wait: z.ZodObject<{
3404
+ provider: z.ZodNullable<z.ZodString>;
3405
+ provider_label: z.ZodNullable<z.ZodString>;
3406
+ until: z.ZodNumber;
3407
+ until_kind: z.ZodEnum<{
3408
+ reset: "reset";
3409
+ retry: "retry";
3410
+ }>;
3411
+ }, z.core.$strip>;
3412
+ }, z.core.$strip>, z.ZodObject<{
3413
+ phase: z.ZodLiteral<"prompt_reading">;
3414
+ progress_percent: z.ZodNullable<z.ZodNumber>;
3415
+ }, z.core.$strip>, z.ZodObject<{
3416
+ phase: z.ZodLiteral<"working">;
3417
+ }, z.core.$strip>], "phase">>>;
3418
+ compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3419
+ notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3420
+ key: z.ZodString;
3421
+ level: z.ZodEnum<{
3422
+ success: "success";
3423
+ error: "error";
3424
+ info: "info";
3425
+ warn: "warn";
3426
+ }>;
3427
+ text: z.ZodString;
3428
+ expires_at: z.ZodNullable<z.ZodNumber>;
3429
+ }, z.core.$strip>>>;
3430
+ goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3431
+ text: z.ZodString;
3432
+ status: z.ZodEnum<{
3433
+ active: "active";
3434
+ parked: "parked";
3435
+ paused: "paused";
3436
+ }>;
3437
+ turns_used: z.ZodNumber;
3438
+ max_turns: z.ZodNumber;
3439
+ reason: z.ZodNullable<z.ZodString>;
3440
+ parked_until: z.ZodNullable<z.ZodNumber>;
3441
+ }, z.core.$strip>>>;
3442
+ automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
2330
3443
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
2331
3444
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2332
3445
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2368,9 +3481,9 @@ export type StreamStatus = z.infer<typeof StreamStatusSchema>;
2368
3481
  export declare const SteerWithdrawnSchema: z.ZodObject<{
2369
3482
  steer_id: z.ZodNullable<z.ZodString>;
2370
3483
  reason: z.ZodEnum<{
2371
- edit: "edit";
2372
- cancel: "cancel";
2373
3484
  stopped: "stopped";
3485
+ cancel: "cancel";
3486
+ edit: "edit";
2374
3487
  followup: "followup";
2375
3488
  }>;
2376
3489
  text: z.ZodString;
@@ -2387,9 +3500,9 @@ export declare const CancelResponseSchema: z.ZodObject<{
2387
3500
  withdrawn_steers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2388
3501
  steer_id: z.ZodNullable<z.ZodString>;
2389
3502
  reason: z.ZodEnum<{
2390
- edit: "edit";
2391
- cancel: "cancel";
2392
3503
  stopped: "stopped";
3504
+ cancel: "cancel";
3505
+ edit: "edit";
2393
3506
  followup: "followup";
2394
3507
  }>;
2395
3508
  text: z.ZodString;
@@ -2400,8 +3513,8 @@ export declare const SteerWithdrawRequestSchema: z.ZodObject<{
2400
3513
  session_id: z.ZodString;
2401
3514
  steer_id: z.ZodString;
2402
3515
  reason: z.ZodEnum<{
2403
- edit: "edit";
2404
3516
  cancel: "cancel";
3517
+ edit: "edit";
2405
3518
  }>;
2406
3519
  }, z.core.$strip>;
2407
3520
  export type SteerWithdrawRequest = z.infer<typeof SteerWithdrawRequestSchema>;
@@ -2414,10 +3527,18 @@ export declare const SteerSendNowRequestSchema: z.ZodObject<{
2414
3527
  session_id: z.ZodString;
2415
3528
  steer_id: z.ZodString;
2416
3529
  }, z.core.$strip>;
2417
- /** `redirected: false` when nothing is live to deliver it to now; the steer stays pending. */
3530
+ /** The server decides why Send now did or did not deliver. `redirected` remains for older clients. */
2418
3531
  export declare const SteerSendNowResponseSchema: z.ZodObject<{
2419
3532
  redirected: z.ZodBoolean;
3533
+ outcome: z.ZodEnum<{
3534
+ failed: "failed";
3535
+ not_running: "not_running";
3536
+ delivered: "delivered";
3537
+ next_step: "next_step";
3538
+ taken: "taken";
3539
+ }>;
2420
3540
  }, z.core.$strip>;
3541
+ export type SteerSendNowResponse = z.infer<typeof SteerSendNowResponseSchema>;
2421
3542
  /** `text` is delivered to the running agent; `display_text` is what the transcript shows. */
2422
3543
  export declare const SteerRequestSchema: z.ZodObject<{
2423
3544
  session_id: z.ZodString;
@@ -2433,6 +3554,57 @@ export declare const SteerResponseSchema: z.ZodObject<{
2433
3554
  stream_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2434
3555
  steer_id: z.ZodOptional<z.ZodString>;
2435
3556
  started_turn: z.ZodOptional<z.ZodObject<{
3557
+ owner_attachment: z.ZodOptional<z.ZodObject<{
3558
+ state: z.ZodEnum<{
3559
+ attached: "attached";
3560
+ stopped: "stopped";
3561
+ unavailable: "unavailable";
3562
+ incompatible: "incompatible";
3563
+ refused: "refused";
3564
+ }>;
3565
+ reason: z.ZodNullable<z.ZodString>;
3566
+ can_submit: z.ZodBoolean;
3567
+ can_interrupt: z.ZodBoolean;
3568
+ can_attach: z.ZodBoolean;
3569
+ revision: z.ZodNullable<z.ZodNumber>;
3570
+ execution_generation: z.ZodNullable<z.ZodNumber>;
3571
+ active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3572
+ admission_id: z.ZodString;
3573
+ sequence: z.ZodNumber;
3574
+ status: z.ZodEnum<{
3575
+ unknown: "unknown";
3576
+ queued: "queued";
3577
+ started: "started";
3578
+ terminal: "terminal";
3579
+ }>;
3580
+ outcome: z.ZodNullable<z.ZodString>;
3581
+ authority_epoch: z.ZodNumber;
3582
+ execution_generation: z.ZodNullable<z.ZodNumber>;
3583
+ text: z.ZodOptional<z.ZodString>;
3584
+ input_id: z.ZodOptional<z.ZodString>;
3585
+ }, z.core.$strip>>>;
3586
+ admissions: z.ZodArray<z.ZodObject<{
3587
+ admission_id: z.ZodString;
3588
+ sequence: z.ZodNumber;
3589
+ status: z.ZodEnum<{
3590
+ unknown: "unknown";
3591
+ queued: "queued";
3592
+ started: "started";
3593
+ terminal: "terminal";
3594
+ }>;
3595
+ outcome: z.ZodNullable<z.ZodString>;
3596
+ authority_epoch: z.ZodNumber;
3597
+ execution_generation: z.ZodNullable<z.ZodNumber>;
3598
+ text: z.ZodOptional<z.ZodString>;
3599
+ input_id: z.ZodOptional<z.ZodString>;
3600
+ actions: z.ZodArray<z.ZodEnum<{
3601
+ cancel: "cancel";
3602
+ discard: "discard";
3603
+ retry: "retry";
3604
+ }>>;
3605
+ }, z.core.$strip>>;
3606
+ }, z.core.$strip>>;
3607
+ admission_id: z.ZodOptional<z.ZodString>;
2436
3608
  stream_id: z.ZodOptional<z.ZodString>;
2437
3609
  session_id: z.ZodOptional<z.ZodString>;
2438
3610
  turn_id: z.ZodOptional<z.ZodString>;
@@ -2454,11 +3626,11 @@ export declare const SteerResponseSchema: z.ZodObject<{
2454
3626
  is_cli_session: z.ZodOptional<z.ZodBoolean>;
2455
3627
  source_kind: z.ZodEnum<{
2456
3628
  other: "other";
3629
+ webhook: "webhook";
3630
+ cron: "cron";
2457
3631
  webui: "webui";
2458
3632
  cli: "cli";
2459
3633
  messaging: "messaging";
2460
- cron: "cron";
2461
- webhook: "webhook";
2462
3634
  subagent: "subagent";
2463
3635
  claude_code: "claude_code";
2464
3636
  kanban: "kanban";
@@ -2467,12 +3639,65 @@ export declare const SteerResponseSchema: z.ZodObject<{
2467
3639
  is_messaging_session: z.ZodBoolean;
2468
3640
  sort_ts: z.ZodNumber;
2469
3641
  read_only: z.ZodBoolean;
3642
+ read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3643
+ owner_attachment: z.ZodOptional<z.ZodObject<{
3644
+ state: z.ZodEnum<{
3645
+ attached: "attached";
3646
+ stopped: "stopped";
3647
+ unavailable: "unavailable";
3648
+ incompatible: "incompatible";
3649
+ refused: "refused";
3650
+ }>;
3651
+ reason: z.ZodNullable<z.ZodString>;
3652
+ can_submit: z.ZodBoolean;
3653
+ can_interrupt: z.ZodBoolean;
3654
+ can_attach: z.ZodBoolean;
3655
+ revision: z.ZodNullable<z.ZodNumber>;
3656
+ execution_generation: z.ZodNullable<z.ZodNumber>;
3657
+ active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3658
+ admission_id: z.ZodString;
3659
+ sequence: z.ZodNumber;
3660
+ status: z.ZodEnum<{
3661
+ unknown: "unknown";
3662
+ queued: "queued";
3663
+ started: "started";
3664
+ terminal: "terminal";
3665
+ }>;
3666
+ outcome: z.ZodNullable<z.ZodString>;
3667
+ authority_epoch: z.ZodNumber;
3668
+ execution_generation: z.ZodNullable<z.ZodNumber>;
3669
+ text: z.ZodOptional<z.ZodString>;
3670
+ input_id: z.ZodOptional<z.ZodString>;
3671
+ }, z.core.$strip>>>;
3672
+ admissions: z.ZodArray<z.ZodObject<{
3673
+ admission_id: z.ZodString;
3674
+ sequence: z.ZodNumber;
3675
+ status: z.ZodEnum<{
3676
+ unknown: "unknown";
3677
+ queued: "queued";
3678
+ started: "started";
3679
+ terminal: "terminal";
3680
+ }>;
3681
+ outcome: z.ZodNullable<z.ZodString>;
3682
+ authority_epoch: z.ZodNumber;
3683
+ execution_generation: z.ZodNullable<z.ZodNumber>;
3684
+ text: z.ZodOptional<z.ZodString>;
3685
+ input_id: z.ZodOptional<z.ZodString>;
3686
+ actions: z.ZodArray<z.ZodEnum<{
3687
+ cancel: "cancel";
3688
+ discard: "discard";
3689
+ retry: "retry";
3690
+ }>>;
3691
+ }, z.core.$strip>>;
3692
+ }, z.core.$strip>>;
2470
3693
  can_branch: z.ZodBoolean;
2471
3694
  can_pin: z.ZodBoolean;
2472
3695
  can_archive: z.ZodBoolean;
2473
3696
  can_delete: z.ZodBoolean;
2474
3697
  can_duplicate: z.ZodBoolean;
2475
3698
  source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3699
+ can_compress: z.ZodOptional<z.ZodBoolean>;
3700
+ confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
2476
3701
  source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2477
3702
  session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2478
3703
  raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2504,10 +3729,15 @@ export declare const SteerResponseSchema: z.ZodObject<{
2504
3729
  text: z.ZodString;
2505
3730
  after_message_index: z.ZodNullable<z.ZodNumber>;
2506
3731
  }, z.core.$strip>>>;
3732
+ branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3733
+ session_id: z.ZodString;
3734
+ title: z.ZodString;
3735
+ }, z.core.$strip>>>;
2507
3736
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2508
3737
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2509
3738
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2510
3739
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3740
+ composer_state_key: z.ZodOptional<z.ZodString>;
2511
3741
  session_id: z.ZodString;
2512
3742
  title: z.ZodString;
2513
3743
  workspace: z.ZodOptional<z.ZodString>;
@@ -2561,6 +3791,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
2561
3791
  event_type: z.ZodOptional<z.ZodString>;
2562
3792
  kind: z.ZodOptional<z.ZodEnum<{
2563
3793
  unknown: "unknown";
3794
+ memory: "memory";
2564
3795
  shell: "shell";
2565
3796
  read: "read";
2566
3797
  list: "list";
@@ -2568,7 +3799,6 @@ export declare const SteerResponseSchema: z.ZodObject<{
2568
3799
  web: "web";
2569
3800
  write: "write";
2570
3801
  skill: "skill";
2571
- memory: "memory";
2572
3802
  delegate: "delegate";
2573
3803
  }>>;
2574
3804
  target: z.ZodOptional<z.ZodString>;
@@ -2577,6 +3807,24 @@ export declare const SteerResponseSchema: z.ZodObject<{
2577
3807
  removed: z.ZodNumber;
2578
3808
  diff: z.ZodString;
2579
3809
  truncated: z.ZodBoolean;
3810
+ hunks: z.ZodArray<z.ZodObject<{
3811
+ header: z.ZodString;
3812
+ old_start: z.ZodNullable<z.ZodNumber>;
3813
+ new_start: z.ZodNullable<z.ZodNumber>;
3814
+ new_end: z.ZodNullable<z.ZodNumber>;
3815
+ additions: z.ZodNumber;
3816
+ deletions: z.ZodNumber;
3817
+ lines: z.ZodArray<z.ZodObject<{
3818
+ kind: z.ZodEnum<{
3819
+ context: "context";
3820
+ addition: "addition";
3821
+ deletion: "deletion";
3822
+ }>;
3823
+ old_line: z.ZodNullable<z.ZodNumber>;
3824
+ new_line: z.ZodNullable<z.ZodNumber>;
3825
+ text: z.ZodString;
3826
+ }, z.core.$strip>>;
3827
+ }, z.core.$strip>>;
2580
3828
  }, z.core.$strip>>;
2581
3829
  }, z.core.$loose>>>;
2582
3830
  reasoning: z.ZodOptional<z.ZodString>;
@@ -2594,8 +3842,8 @@ export declare const SteerResponseSchema: z.ZodObject<{
2594
3842
  row_id: z.ZodString;
2595
3843
  order_index: z.ZodNumber;
2596
3844
  role: z.ZodEnum<{
2597
- reasoning: "reasoning";
2598
3845
  tool: "tool";
3846
+ reasoning: "reasoning";
2599
3847
  prose: "prose";
2600
3848
  steering: "steering";
2601
3849
  }>;
@@ -2634,10 +3882,10 @@ export declare const SteerResponseSchema: z.ZodObject<{
2634
3882
  task_ids: z.ZodArray<z.ZodString>;
2635
3883
  status: z.ZodEnum<{
2636
3884
  unknown: "unknown";
3885
+ running: "running";
2637
3886
  cancelled: "cancelled";
2638
- completed: "completed";
2639
3887
  failed: "failed";
2640
- running: "running";
3888
+ completed: "completed";
2641
3889
  attention: "attention";
2642
3890
  }>;
2643
3891
  agents: z.ZodObject<{
@@ -2651,6 +3899,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
2651
3899
  result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2652
3900
  kind: z.ZodOptional<z.ZodEnum<{
2653
3901
  unknown: "unknown";
3902
+ memory: "memory";
2654
3903
  shell: "shell";
2655
3904
  read: "read";
2656
3905
  list: "list";
@@ -2658,7 +3907,6 @@ export declare const SteerResponseSchema: z.ZodObject<{
2658
3907
  web: "web";
2659
3908
  write: "write";
2660
3909
  skill: "skill";
2661
- memory: "memory";
2662
3910
  delegate: "delegate";
2663
3911
  }>>;
2664
3912
  target: z.ZodOptional<z.ZodString>;
@@ -2667,6 +3915,24 @@ export declare const SteerResponseSchema: z.ZodObject<{
2667
3915
  removed: z.ZodNumber;
2668
3916
  diff: z.ZodString;
2669
3917
  truncated: z.ZodBoolean;
3918
+ hunks: z.ZodArray<z.ZodObject<{
3919
+ header: z.ZodString;
3920
+ old_start: z.ZodNullable<z.ZodNumber>;
3921
+ new_start: z.ZodNullable<z.ZodNumber>;
3922
+ new_end: z.ZodNullable<z.ZodNumber>;
3923
+ additions: z.ZodNumber;
3924
+ deletions: z.ZodNumber;
3925
+ lines: z.ZodArray<z.ZodObject<{
3926
+ kind: z.ZodEnum<{
3927
+ context: "context";
3928
+ addition: "addition";
3929
+ deletion: "deletion";
3930
+ }>;
3931
+ old_line: z.ZodNullable<z.ZodNumber>;
3932
+ new_line: z.ZodNullable<z.ZodNumber>;
3933
+ text: z.ZodString;
3934
+ }, z.core.$strip>>;
3935
+ }, z.core.$strip>>;
2670
3936
  }, z.core.$strip>>;
2671
3937
  id: z.ZodString;
2672
3938
  name: z.ZodString;
@@ -2715,6 +3981,10 @@ export declare const SteerResponseSchema: z.ZodObject<{
2715
3981
  activity_scene_ref: z.ZodOptional<z.ZodString>;
2716
3982
  }, z.core.$loose>>;
2717
3983
  _turn_id: z.ZodOptional<z.ZodString>;
3984
+ _turnDuration: z.ZodOptional<z.ZodNumber>;
3985
+ _turnTps: z.ZodOptional<z.ZodNumber>;
3986
+ _ts: z.ZodOptional<z.ZodNumber>;
3987
+ reasoning_titles: z.ZodOptional<z.ZodArray<z.ZodString>>;
2718
3988
  _active_turn_user: z.ZodOptional<z.ZodBoolean>;
2719
3989
  _steer: z.ZodOptional<z.ZodObject<{
2720
3990
  steer_id: z.ZodString;
@@ -2756,21 +4026,52 @@ export declare const SteerResponseSchema: z.ZodObject<{
2756
4026
  other: "other";
2757
4027
  }>;
2758
4028
  status: z.ZodEnum<{
2759
- completed: "completed";
2760
4029
  failed: "failed";
4030
+ completed: "completed";
2761
4031
  notice: "notice";
2762
4032
  }>;
2763
4033
  label: z.ZodString;
2764
4034
  exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4035
+ review_state: z.ZodOptional<z.ZodEnum<{
4036
+ unknown: "unknown";
4037
+ failed: "failed";
4038
+ waiting: "waiting";
4039
+ reviewing: "reviewing";
4040
+ reviewed: "reviewed";
4041
+ }>>;
2765
4042
  }, z.core.$strip>>;
4043
+ review_state: z.ZodOptional<z.ZodEnum<{
4044
+ unknown: "unknown";
4045
+ failed: "failed";
4046
+ waiting: "waiting";
4047
+ reviewing: "reviewing";
4048
+ reviewed: "reviewed";
4049
+ }>>;
2766
4050
  }, z.core.$strip>>;
2767
4051
  _marker_kind: z.ZodOptional<z.ZodEnum<{
2768
4052
  context_compaction: "context_compaction";
2769
4053
  preserved_task_list: "preserved_task_list";
2770
4054
  }>>;
2771
4055
  _marker_body: z.ZodOptional<z.ZodString>;
4056
+ _notice_kind: z.ZodOptional<z.ZodEnum<{
4057
+ failed_turn: "failed_turn";
4058
+ session_finalize: "session_finalize";
4059
+ }>>;
4060
+ _delivery: z.ZodOptional<z.ZodObject<{
4061
+ kind: z.ZodEnum<{
4062
+ webhook: "webhook";
4063
+ cron: "cron";
4064
+ }>;
4065
+ name: z.ZodString;
4066
+ body: z.ZodString;
4067
+ }, z.core.$strip>>;
2772
4068
  _background_reply: z.ZodOptional<z.ZodBoolean>;
2773
4069
  _background_silent: z.ZodOptional<z.ZodBoolean>;
4070
+ _display: z.ZodOptional<z.ZodEnum<{
4071
+ row: "row";
4072
+ hidden: "hidden";
4073
+ in_scene: "in_scene";
4074
+ }>>;
2774
4075
  }, z.core.$loose>>>;
2775
4076
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2776
4077
  name: z.ZodOptional<z.ZodString>;
@@ -2800,6 +4101,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
2800
4101
  event_type: z.ZodOptional<z.ZodString>;
2801
4102
  kind: z.ZodOptional<z.ZodEnum<{
2802
4103
  unknown: "unknown";
4104
+ memory: "memory";
2803
4105
  shell: "shell";
2804
4106
  read: "read";
2805
4107
  list: "list";
@@ -2807,7 +4109,6 @@ export declare const SteerResponseSchema: z.ZodObject<{
2807
4109
  web: "web";
2808
4110
  write: "write";
2809
4111
  skill: "skill";
2810
- memory: "memory";
2811
4112
  delegate: "delegate";
2812
4113
  }>>;
2813
4114
  target: z.ZodOptional<z.ZodString>;
@@ -2816,6 +4117,24 @@ export declare const SteerResponseSchema: z.ZodObject<{
2816
4117
  removed: z.ZodNumber;
2817
4118
  diff: z.ZodString;
2818
4119
  truncated: z.ZodBoolean;
4120
+ hunks: z.ZodArray<z.ZodObject<{
4121
+ header: z.ZodString;
4122
+ old_start: z.ZodNullable<z.ZodNumber>;
4123
+ new_start: z.ZodNullable<z.ZodNumber>;
4124
+ new_end: z.ZodNullable<z.ZodNumber>;
4125
+ additions: z.ZodNumber;
4126
+ deletions: z.ZodNumber;
4127
+ lines: z.ZodArray<z.ZodObject<{
4128
+ kind: z.ZodEnum<{
4129
+ context: "context";
4130
+ addition: "addition";
4131
+ deletion: "deletion";
4132
+ }>;
4133
+ old_line: z.ZodNullable<z.ZodNumber>;
4134
+ new_line: z.ZodNullable<z.ZodNumber>;
4135
+ text: z.ZodString;
4136
+ }, z.core.$strip>>;
4137
+ }, z.core.$strip>>;
2819
4138
  }, z.core.$strip>>;
2820
4139
  }, z.core.$loose>>>;
2821
4140
  created_at: z.ZodOptional<z.ZodNumber>;
@@ -2854,6 +4173,50 @@ export declare const SteerResponseSchema: z.ZodObject<{
2854
4173
  send_now: z.ZodBoolean;
2855
4174
  }, z.core.$strip>;
2856
4175
  }, z.core.$strip>>>;
4176
+ run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
4177
+ phase: z.ZodLiteral<"compressing">;
4178
+ }, z.core.$strip>, z.ZodObject<{
4179
+ phase: z.ZodLiteral<"rate_limit_wait">;
4180
+ wait: z.ZodObject<{
4181
+ provider: z.ZodNullable<z.ZodString>;
4182
+ provider_label: z.ZodNullable<z.ZodString>;
4183
+ until: z.ZodNumber;
4184
+ until_kind: z.ZodEnum<{
4185
+ reset: "reset";
4186
+ retry: "retry";
4187
+ }>;
4188
+ }, z.core.$strip>;
4189
+ }, z.core.$strip>, z.ZodObject<{
4190
+ phase: z.ZodLiteral<"prompt_reading">;
4191
+ progress_percent: z.ZodNullable<z.ZodNumber>;
4192
+ }, z.core.$strip>, z.ZodObject<{
4193
+ phase: z.ZodLiteral<"working">;
4194
+ }, z.core.$strip>], "phase">>>;
4195
+ compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4196
+ notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
4197
+ key: z.ZodString;
4198
+ level: z.ZodEnum<{
4199
+ success: "success";
4200
+ error: "error";
4201
+ info: "info";
4202
+ warn: "warn";
4203
+ }>;
4204
+ text: z.ZodString;
4205
+ expires_at: z.ZodNullable<z.ZodNumber>;
4206
+ }, z.core.$strip>>>;
4207
+ goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4208
+ text: z.ZodString;
4209
+ status: z.ZodEnum<{
4210
+ active: "active";
4211
+ parked: "parked";
4212
+ paused: "paused";
4213
+ }>;
4214
+ turns_used: z.ZodNumber;
4215
+ max_turns: z.ZodNumber;
4216
+ reason: z.ZodNullable<z.ZodString>;
4217
+ parked_until: z.ZodNullable<z.ZodNumber>;
4218
+ }, z.core.$strip>>>;
4219
+ automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
2857
4220
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
2858
4221
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2859
4222
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2875,6 +4238,13 @@ export declare const SteerResponseSchema: z.ZodObject<{
2875
4238
  }, z.core.$loose>>;
2876
4239
  }, z.core.$loose>;
2877
4240
  export declare const ApprovalPendingSchema: z.ZodObject<{
4241
+ allowed_choices: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4242
+ once: "once";
4243
+ session: "session";
4244
+ always: "always";
4245
+ deny: "deny";
4246
+ }>>>;
4247
+ can_enable_yolo: z.ZodOptional<z.ZodBoolean>;
2878
4248
  approval_id: z.ZodOptional<z.ZodString>;
2879
4249
  session_id: z.ZodOptional<z.ZodString>;
2880
4250
  command: z.ZodOptional<z.ZodString>;
@@ -2893,6 +4263,13 @@ export declare const ApprovalPendingSchema: z.ZodObject<{
2893
4263
  export type ApprovalPending = z.infer<typeof ApprovalPendingSchema>;
2894
4264
  export declare const ApprovalPendingEnvelopeSchema: z.ZodObject<{
2895
4265
  pending: z.ZodNullable<z.ZodObject<{
4266
+ allowed_choices: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4267
+ once: "once";
4268
+ session: "session";
4269
+ always: "always";
4270
+ deny: "deny";
4271
+ }>>>;
4272
+ can_enable_yolo: z.ZodOptional<z.ZodBoolean>;
2896
4273
  approval_id: z.ZodOptional<z.ZodString>;
2897
4274
  session_id: z.ZodOptional<z.ZodString>;
2898
4275
  command: z.ZodOptional<z.ZodString>;
@@ -2954,6 +4331,55 @@ export type ClarifyStep = z.infer<typeof ClarifyStepSchema>;
2954
4331
  /** Keyed step answers; a multi-select step takes a list. The server shapes them into the Agent's reply. */
2955
4332
  export declare const ClarifyAnswersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2956
4333
  export type ClarifyAnswers = z.infer<typeof ClarifyAnswersSchema>;
4334
+ /** TAL-887: one input of a password-manager prompt, answered under its `key`; a `secure` input is masked. */
4335
+ export declare const VaultPromptFieldSchema: z.ZodObject<{
4336
+ key: z.ZodEnum<{
4337
+ code: "code";
4338
+ secret: "secret";
4339
+ master_password: "master_password";
4340
+ identifier: "identifier";
4341
+ password: "password";
4342
+ }>;
4343
+ secure: z.ZodBoolean;
4344
+ }, z.core.$strip>;
4345
+ export type VaultPromptField = z.infer<typeof VaultPromptFieldSchema>;
4346
+ /**
4347
+ * TAL-887: the Agent asks for a password manager's master password (`vault_unlock`), a login to save for the page it is
4348
+ * on (`vault_save_login`), a one-time code (`vault_code`), or a skill environment secret (`skill_secret`). Clients answer through
4349
+ * `/api/clarify/respond` with keyed `answers`, or `decline`; an empty answer, a decline, a cancel and `timeout_at` all
4350
+ * resolve it unanswered. Answers never enter chat, logs, streams, or responses. Skill secrets are saved only to the invoking profile.
4351
+ */
4352
+ export declare const VaultPromptSchema: z.ZodObject<{
4353
+ kind: z.ZodEnum<{
4354
+ skill_secret: "skill_secret";
4355
+ vault_unlock: "vault_unlock";
4356
+ vault_save_login: "vault_save_login";
4357
+ vault_code: "vault_code";
4358
+ }>;
4359
+ backend: z.ZodNullable<z.ZodString>;
4360
+ display_name: z.ZodNullable<z.ZodString>;
4361
+ origin: z.ZodNullable<z.ZodString>;
4362
+ site: z.ZodNullable<z.ZodString>;
4363
+ hint: z.ZodNullable<z.ZodString>;
4364
+ skill: z.ZodOptional<z.ZodObject<{
4365
+ env_var: z.ZodString;
4366
+ skill_name: z.ZodString;
4367
+ help: z.ZodNullable<z.ZodString>;
4368
+ required_for: z.ZodNullable<z.ZodString>;
4369
+ }, z.core.$strip>>;
4370
+ fields: z.ZodArray<z.ZodObject<{
4371
+ key: z.ZodEnum<{
4372
+ code: "code";
4373
+ secret: "secret";
4374
+ master_password: "master_password";
4375
+ identifier: "identifier";
4376
+ password: "password";
4377
+ }>;
4378
+ secure: z.ZodBoolean;
4379
+ }, z.core.$strip>>;
4380
+ timeout_at: z.ZodNumber;
4381
+ }, z.core.$strip>;
4382
+ export type VaultPrompt = z.infer<typeof VaultPromptSchema>;
2957
4383
  export declare const ClarifyPendingSchema: z.ZodObject<{
2958
4384
  steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
2959
4385
  qid: z.ZodString;
@@ -2961,6 +4387,36 @@ export declare const ClarifyPendingSchema: z.ZodObject<{
2961
4387
  choices: z.ZodArray<z.ZodString>;
2962
4388
  multi_select: z.ZodBoolean;
2963
4389
  }, z.core.$loose>>>;
4390
+ vault: z.ZodOptional<z.ZodObject<{
4391
+ kind: z.ZodEnum<{
4392
+ skill_secret: "skill_secret";
4393
+ vault_unlock: "vault_unlock";
4394
+ vault_save_login: "vault_save_login";
4395
+ vault_code: "vault_code";
4396
+ }>;
4397
+ backend: z.ZodNullable<z.ZodString>;
4398
+ display_name: z.ZodNullable<z.ZodString>;
4399
+ origin: z.ZodNullable<z.ZodString>;
4400
+ site: z.ZodNullable<z.ZodString>;
4401
+ hint: z.ZodNullable<z.ZodString>;
4402
+ skill: z.ZodOptional<z.ZodObject<{
4403
+ env_var: z.ZodString;
4404
+ skill_name: z.ZodString;
4405
+ help: z.ZodNullable<z.ZodString>;
4406
+ required_for: z.ZodNullable<z.ZodString>;
4407
+ }, z.core.$strip>>;
4408
+ fields: z.ZodArray<z.ZodObject<{
4409
+ key: z.ZodEnum<{
4410
+ code: "code";
4411
+ secret: "secret";
4412
+ master_password: "master_password";
4413
+ identifier: "identifier";
4414
+ password: "password";
4415
+ }>;
4416
+ secure: z.ZodBoolean;
4417
+ }, z.core.$strip>>;
4418
+ timeout_at: z.ZodNumber;
4419
+ }, z.core.$strip>>;
2964
4420
  clarify_id: z.ZodOptional<z.ZodString>;
2965
4421
  session_id: z.ZodOptional<z.ZodString>;
2966
4422
  question: z.ZodOptional<z.ZodString>;
@@ -2992,6 +4448,36 @@ export declare const ClarifyPendingEnvelopeSchema: z.ZodObject<{
2992
4448
  choices: z.ZodArray<z.ZodString>;
2993
4449
  multi_select: z.ZodBoolean;
2994
4450
  }, z.core.$loose>>>;
4451
+ vault: z.ZodOptional<z.ZodObject<{
4452
+ kind: z.ZodEnum<{
4453
+ skill_secret: "skill_secret";
4454
+ vault_unlock: "vault_unlock";
4455
+ vault_save_login: "vault_save_login";
4456
+ vault_code: "vault_code";
4457
+ }>;
4458
+ backend: z.ZodNullable<z.ZodString>;
4459
+ display_name: z.ZodNullable<z.ZodString>;
4460
+ origin: z.ZodNullable<z.ZodString>;
4461
+ site: z.ZodNullable<z.ZodString>;
4462
+ hint: z.ZodNullable<z.ZodString>;
4463
+ skill: z.ZodOptional<z.ZodObject<{
4464
+ env_var: z.ZodString;
4465
+ skill_name: z.ZodString;
4466
+ help: z.ZodNullable<z.ZodString>;
4467
+ required_for: z.ZodNullable<z.ZodString>;
4468
+ }, z.core.$strip>>;
4469
+ fields: z.ZodArray<z.ZodObject<{
4470
+ key: z.ZodEnum<{
4471
+ code: "code";
4472
+ secret: "secret";
4473
+ master_password: "master_password";
4474
+ identifier: "identifier";
4475
+ password: "password";
4476
+ }>;
4477
+ secure: z.ZodBoolean;
4478
+ }, z.core.$strip>>;
4479
+ timeout_at: z.ZodNumber;
4480
+ }, z.core.$strip>>;
2995
4481
  clarify_id: z.ZodOptional<z.ZodString>;
2996
4482
  session_id: z.ZodOptional<z.ZodString>;
2997
4483
  question: z.ZodOptional<z.ZodString>;
@@ -3023,6 +4509,7 @@ export declare const ClarifyRespondRequestSchema: z.ZodObject<{
3023
4509
  answer: z.ZodOptional<z.ZodString>;
3024
4510
  choice: z.ZodOptional<z.ZodString>;
3025
4511
  clarify_id: z.ZodOptional<z.ZodString>;
4512
+ decline: z.ZodOptional<z.ZodBoolean>;
3026
4513
  }, z.core.$loose>;
3027
4514
  export declare const ClarifyRespondResponseSchema: z.ZodObject<{
3028
4515
  ok: z.ZodBoolean;
@@ -3081,30 +4568,6 @@ export declare const GoalResponseSchema: z.ZodObject<{
3081
4568
  status: z.ZodOptional<z.ZodString>;
3082
4569
  reason: z.ZodOptional<z.ZodString>;
3083
4570
  }, z.core.$loose>;
3084
- export declare const BackgroundResultSchema: z.ZodObject<{
3085
- id: z.ZodOptional<z.ZodString>;
3086
- task_id: z.ZodOptional<z.ZodString>;
3087
- status: z.ZodOptional<z.ZodString>;
3088
- title: z.ZodOptional<z.ZodString>;
3089
- summary: z.ZodOptional<z.ZodString>;
3090
- prompt: z.ZodOptional<z.ZodString>;
3091
- answer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3092
- error: z.ZodOptional<z.ZodString>;
3093
- completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3094
- }, z.core.$loose>;
3095
- export declare const BackgroundStatusSchema: z.ZodObject<{
3096
- results: z.ZodArray<z.ZodObject<{
3097
- id: z.ZodOptional<z.ZodString>;
3098
- task_id: z.ZodOptional<z.ZodString>;
3099
- status: z.ZodOptional<z.ZodString>;
3100
- title: z.ZodOptional<z.ZodString>;
3101
- summary: z.ZodOptional<z.ZodString>;
3102
- prompt: z.ZodOptional<z.ZodString>;
3103
- answer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3104
- error: z.ZodOptional<z.ZodString>;
3105
- completed_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3106
- }, z.core.$loose>>;
3107
- }, z.core.$loose>;
3108
4571
  /**
3109
4572
  * TAL-372: one piece of background work a session owns, the same record for every client, reload and restart.
3110
4573
  * - `task_id` is stable: the delegation unit's id, the process id, or the `/background` task id.
@@ -3124,10 +4587,10 @@ export declare const BackgroundTaskSchema: z.ZodObject<{
3124
4587
  }>;
3125
4588
  status: z.ZodEnum<{
3126
4589
  unknown: "unknown";
4590
+ running: "running";
3127
4591
  cancelled: "cancelled";
3128
- completed: "completed";
3129
4592
  failed: "failed";
3130
- running: "running";
4593
+ completed: "completed";
3131
4594
  attention: "attention";
3132
4595
  }>;
3133
4596
  title: z.ZodString;
@@ -3167,10 +4630,10 @@ export declare const BackgroundTasksResponseSchema: z.ZodObject<{
3167
4630
  }>;
3168
4631
  status: z.ZodEnum<{
3169
4632
  unknown: "unknown";
4633
+ running: "running";
3170
4634
  cancelled: "cancelled";
3171
- completed: "completed";
3172
4635
  failed: "failed";
3173
- running: "running";
4636
+ completed: "completed";
3174
4637
  attention: "attention";
3175
4638
  }>;
3176
4639
  title: z.ZodString;
@@ -3215,10 +4678,10 @@ export declare const BackgroundDismissResponseSchema: z.ZodObject<{
3215
4678
  }>;
3216
4679
  status: z.ZodEnum<{
3217
4680
  unknown: "unknown";
4681
+ running: "running";
3218
4682
  cancelled: "cancelled";
3219
- completed: "completed";
3220
4683
  failed: "failed";
3221
- running: "running";
4684
+ completed: "completed";
3222
4685
  attention: "attention";
3223
4686
  }>;
3224
4687
  title: z.ZodString;
@@ -3273,11 +4736,11 @@ export declare const ShareCreateResponseSchema: z.ZodObject<{
3273
4736
  is_cli_session: z.ZodOptional<z.ZodBoolean>;
3274
4737
  source_kind: z.ZodEnum<{
3275
4738
  other: "other";
4739
+ webhook: "webhook";
4740
+ cron: "cron";
3276
4741
  webui: "webui";
3277
4742
  cli: "cli";
3278
4743
  messaging: "messaging";
3279
- cron: "cron";
3280
- webhook: "webhook";
3281
4744
  subagent: "subagent";
3282
4745
  claude_code: "claude_code";
3283
4746
  kanban: "kanban";
@@ -3287,6 +4750,57 @@ export declare const ShareCreateResponseSchema: z.ZodObject<{
3287
4750
  sort_ts: z.ZodNumber;
3288
4751
  cron_running: z.ZodOptional<z.ZodBoolean>;
3289
4752
  read_only: z.ZodBoolean;
4753
+ read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4754
+ owner_attachment: z.ZodOptional<z.ZodObject<{
4755
+ state: z.ZodEnum<{
4756
+ attached: "attached";
4757
+ stopped: "stopped";
4758
+ unavailable: "unavailable";
4759
+ incompatible: "incompatible";
4760
+ refused: "refused";
4761
+ }>;
4762
+ reason: z.ZodNullable<z.ZodString>;
4763
+ can_submit: z.ZodBoolean;
4764
+ can_interrupt: z.ZodBoolean;
4765
+ can_attach: z.ZodBoolean;
4766
+ revision: z.ZodNullable<z.ZodNumber>;
4767
+ execution_generation: z.ZodNullable<z.ZodNumber>;
4768
+ active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4769
+ admission_id: z.ZodString;
4770
+ sequence: z.ZodNumber;
4771
+ status: z.ZodEnum<{
4772
+ unknown: "unknown";
4773
+ queued: "queued";
4774
+ started: "started";
4775
+ terminal: "terminal";
4776
+ }>;
4777
+ outcome: z.ZodNullable<z.ZodString>;
4778
+ authority_epoch: z.ZodNumber;
4779
+ execution_generation: z.ZodNullable<z.ZodNumber>;
4780
+ text: z.ZodOptional<z.ZodString>;
4781
+ input_id: z.ZodOptional<z.ZodString>;
4782
+ }, z.core.$strip>>>;
4783
+ admissions: z.ZodArray<z.ZodObject<{
4784
+ admission_id: z.ZodString;
4785
+ sequence: z.ZodNumber;
4786
+ status: z.ZodEnum<{
4787
+ unknown: "unknown";
4788
+ queued: "queued";
4789
+ started: "started";
4790
+ terminal: "terminal";
4791
+ }>;
4792
+ outcome: z.ZodNullable<z.ZodString>;
4793
+ authority_epoch: z.ZodNumber;
4794
+ execution_generation: z.ZodNullable<z.ZodNumber>;
4795
+ text: z.ZodOptional<z.ZodString>;
4796
+ input_id: z.ZodOptional<z.ZodString>;
4797
+ actions: z.ZodArray<z.ZodEnum<{
4798
+ cancel: "cancel";
4799
+ discard: "discard";
4800
+ retry: "retry";
4801
+ }>>;
4802
+ }, z.core.$strip>>;
4803
+ }, z.core.$strip>>;
3290
4804
  can_branch: z.ZodBoolean;
3291
4805
  can_pin: z.ZodBoolean;
3292
4806
  can_archive: z.ZodBoolean;
@@ -3355,10 +4869,26 @@ export declare const SessionNewRequestSchema: z.ZodObject<{
3355
4869
  enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3356
4870
  parent_session_id: z.ZodOptional<z.ZodString>;
3357
4871
  }, z.core.$loose>;
4872
+ /**
4873
+ * `streaming` (TAL-802): live dictation over `TRANSCRIBE_STREAM_PATH` would open for this profile (`stt.streaming` on, a live provider wire).
4874
+ * `warm_supported` (TAL-916): a client starting a recording should `POST /api/transcribe/warm` so the engine loads while the user speaks.
4875
+ */
3358
4876
  export declare const TranscribeCapabilitySchema: z.ZodObject<{
3359
4877
  ok: z.ZodLiteral<true>;
3360
4878
  available: z.ZodBoolean;
3361
4879
  provider: z.ZodString;
4880
+ streaming: z.ZodBoolean;
4881
+ warm_supported: z.ZodBoolean;
4882
+ }, z.core.$loose>;
4883
+ /** TAL-906: what read-aloud speaks for a message; clients play it as is. */
4884
+ export declare const SpeechPrepareSchema: z.ZodObject<{
4885
+ spoken_text: z.ZodString;
4886
+ }, z.core.$strip>;
4887
+ /** `POST /api/transcribe`: the recording's transcript; `filtered` (TAL-917) when the server emptied a phrase Whisper invents on silent audio. */
4888
+ export declare const TranscribeResponseSchema: z.ZodObject<{
4889
+ ok: z.ZodLiteral<true>;
4890
+ transcript: z.ZodString;
4891
+ filtered: z.ZodBoolean;
3362
4892
  }, z.core.$loose>;
3363
4893
  /** TAL-411: the request profile's quota urgency thresholds. A save patches valid fields and clamps critical to at most warning. */
3364
4894
  export declare const QuotaThresholdsSchema: z.ZodObject<{
@@ -3400,6 +4930,7 @@ export declare const SettingsSchema: z.ZodObject<{
3400
4930
  show_webhook_sessions: z.ZodOptional<z.ZodBoolean>;
3401
4931
  show_kanban_sessions: z.ZodOptional<z.ZodBoolean>;
3402
4932
  check_for_updates: z.ZodOptional<z.ZodBoolean>;
4933
+ summarize_updates_automatically: z.ZodOptional<z.ZodBoolean>;
3403
4934
  ignore_agent_updates: z.ZodOptional<z.ZodBoolean>;
3404
4935
  auth_enabled: z.ZodOptional<z.ZodBoolean>;
3405
4936
  password_auth_enabled: z.ZodOptional<z.ZodBoolean>;
@@ -3447,6 +4978,21 @@ export declare const ProfileSchema: z.ZodObject<{
3447
4978
  gateway_running: z.ZodOptional<z.ZodBoolean>;
3448
4979
  has_env: z.ZodOptional<z.ZodBoolean>;
3449
4980
  visible: z.ZodOptional<z.ZodBoolean>;
4981
+ gateway_mode: z.ZodOptional<z.ZodEnum<{
4982
+ stopped: "stopped";
4983
+ parked: "parked";
4984
+ own: "own";
4985
+ served: "served";
4986
+ standalone: "standalone";
4987
+ }>>;
4988
+ display_name: z.ZodOptional<z.ZodString>;
4989
+ description: z.ZodOptional<z.ZodString>;
4990
+ has_avatar: z.ZodOptional<z.ZodBoolean>;
4991
+ canonical_session: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4992
+ session_id: z.ZodString;
4993
+ tip_session_id: z.ZodString;
4994
+ }, z.core.$strip>>>;
4995
+ pending_writes: z.ZodOptional<z.ZodNumber>;
3450
4996
  }, z.core.$loose>;
3451
4997
  export declare const ProfilesSchema: z.ZodObject<{
3452
4998
  profiles: z.ZodArray<z.ZodObject<{
@@ -3462,6 +5008,21 @@ export declare const ProfilesSchema: z.ZodObject<{
3462
5008
  gateway_running: z.ZodOptional<z.ZodBoolean>;
3463
5009
  has_env: z.ZodOptional<z.ZodBoolean>;
3464
5010
  visible: z.ZodOptional<z.ZodBoolean>;
5011
+ gateway_mode: z.ZodOptional<z.ZodEnum<{
5012
+ stopped: "stopped";
5013
+ parked: "parked";
5014
+ own: "own";
5015
+ served: "served";
5016
+ standalone: "standalone";
5017
+ }>>;
5018
+ display_name: z.ZodOptional<z.ZodString>;
5019
+ description: z.ZodOptional<z.ZodString>;
5020
+ has_avatar: z.ZodOptional<z.ZodBoolean>;
5021
+ canonical_session: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5022
+ session_id: z.ZodString;
5023
+ tip_session_id: z.ZodString;
5024
+ }, z.core.$strip>>>;
5025
+ pending_writes: z.ZodOptional<z.ZodNumber>;
3465
5026
  }, z.core.$loose>>;
3466
5027
  active: z.ZodString;
3467
5028
  single_profile_mode: z.ZodOptional<z.ZodBoolean>;
@@ -3487,6 +5048,21 @@ export declare const ProfileSwitchSchema: z.ZodObject<{
3487
5048
  gateway_running: z.ZodOptional<z.ZodBoolean>;
3488
5049
  has_env: z.ZodOptional<z.ZodBoolean>;
3489
5050
  visible: z.ZodOptional<z.ZodBoolean>;
5051
+ gateway_mode: z.ZodOptional<z.ZodEnum<{
5052
+ stopped: "stopped";
5053
+ parked: "parked";
5054
+ own: "own";
5055
+ served: "served";
5056
+ standalone: "standalone";
5057
+ }>>;
5058
+ display_name: z.ZodOptional<z.ZodString>;
5059
+ description: z.ZodOptional<z.ZodString>;
5060
+ has_avatar: z.ZodOptional<z.ZodBoolean>;
5061
+ canonical_session: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5062
+ session_id: z.ZodString;
5063
+ tip_session_id: z.ZodString;
5064
+ }, z.core.$strip>>>;
5065
+ pending_writes: z.ZodOptional<z.ZodNumber>;
3490
5066
  }, z.core.$loose>>;
3491
5067
  active: z.ZodString;
3492
5068
  single_profile_mode: z.ZodOptional<z.ZodBoolean>;
@@ -3504,7 +5080,18 @@ export declare const ReasoningStatusSchema: z.ZodObject<{
3504
5080
  supports_thinking_toggle: z.ZodOptional<z.ZodBoolean>;
3505
5081
  }, z.core.$loose>;
3506
5082
  export type ReasoningStatus = z.infer<typeof ReasoningStatusSchema>;
3507
- /** TAL-301: `provider_id`/`bare_id` are the server's split of `id`; clients match a stored `(model, provider)` against them and send `id` back. */
5083
+ export declare const QuotaLevelSchema: z.ZodEnum<{
5084
+ unavailable: "unavailable";
5085
+ stale: "stale";
5086
+ warning: "warning";
5087
+ healthy: "healthy";
5088
+ critical: "critical";
5089
+ }>;
5090
+ export type QuotaLevel = z.infer<typeof QuotaLevelSchema>;
5091
+ /**
5092
+ * TAL-301: `provider_id`/`bare_id` are the server's split of `id`; clients match a stored `(model, provider)` against them and send `id` back.
5093
+ * TAL-807: `limit` is present while the provider's credential pool cannot serve this model until `resets_at` (ISO-8601 UTC).
5094
+ */
3508
5095
  export declare const ModelEntrySchema: z.ZodObject<{
3509
5096
  id: z.ZodString;
3510
5097
  label: z.ZodOptional<z.ZodString>;
@@ -3512,8 +5099,59 @@ export declare const ModelEntrySchema: z.ZodObject<{
3512
5099
  provider_id: z.ZodOptional<z.ZodString>;
3513
5100
  bare_id: z.ZodOptional<z.ZodString>;
3514
5101
  supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
5102
+ supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5103
+ id: z.ZodEnum<{
5104
+ standard: "standard";
5105
+ priority: "priority";
5106
+ ultrafast: "ultrafast";
5107
+ fast: "fast";
5108
+ }>;
5109
+ service_tier: z.ZodEnum<{
5110
+ default: "default";
5111
+ priority: "priority";
5112
+ ultrafast: "ultrafast";
5113
+ }>;
5114
+ }, z.core.$strip>>>;
5115
+ limit: z.ZodOptional<z.ZodObject<{
5116
+ scope: z.ZodLiteral<"model">;
5117
+ resets_at: z.ZodString;
5118
+ }, z.core.$strip>>;
3515
5119
  }, z.core.$loose>;
5120
+ /** TAL-807: a group's rate limit: every pool account benched until `resets_at`, else the entry ids (`models`) cooling down until their reset. */
5121
+ export declare const ModelGroupLimitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5122
+ scope: z.ZodLiteral<"account">;
5123
+ resets_at: z.ZodString;
5124
+ }, z.core.$strip>, z.ZodObject<{
5125
+ scope: z.ZodLiteral<"models">;
5126
+ models: z.ZodRecord<z.ZodString, z.ZodString>;
5127
+ }, z.core.$strip>], "scope">;
5128
+ /**
5129
+ * TAL-807: `limit` is the provider's live pool rate limit; `quota_level` is the TAL-411 `remaining` level of the tightest
5130
+ * account-scope window in the provider's last account-usage read (a model-family window never counts), absent without one
5131
+ * and while the group is account-limited.
5132
+ */
5133
+ export declare const CatalogAvailabilitySchema: z.ZodObject<{
5134
+ status: z.ZodEnum<{
5135
+ unavailable: "unavailable";
5136
+ stale: "stale";
5137
+ available: "available";
5138
+ }>;
5139
+ authoritative: z.ZodBoolean;
5140
+ unavailable_reason: z.ZodNullable<z.ZodString>;
5141
+ generation: z.ZodString;
5142
+ }, z.core.$strip>;
5143
+ export type CatalogAvailability = z.infer<typeof CatalogAvailabilitySchema>;
3516
5144
  export declare const ModelGroupSchema: z.ZodObject<{
5145
+ availability: z.ZodOptional<z.ZodObject<{
5146
+ status: z.ZodEnum<{
5147
+ unavailable: "unavailable";
5148
+ stale: "stale";
5149
+ available: "available";
5150
+ }>;
5151
+ authoritative: z.ZodBoolean;
5152
+ unavailable_reason: z.ZodNullable<z.ZodString>;
5153
+ generation: z.ZodString;
5154
+ }, z.core.$strip>>;
3517
5155
  provider: z.ZodString;
3518
5156
  provider_id: z.ZodOptional<z.ZodString>;
3519
5157
  models: z.ZodArray<z.ZodObject<{
@@ -3523,6 +5161,23 @@ export declare const ModelGroupSchema: z.ZodObject<{
3523
5161
  provider_id: z.ZodOptional<z.ZodString>;
3524
5162
  bare_id: z.ZodOptional<z.ZodString>;
3525
5163
  supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
5164
+ supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5165
+ id: z.ZodEnum<{
5166
+ standard: "standard";
5167
+ priority: "priority";
5168
+ ultrafast: "ultrafast";
5169
+ fast: "fast";
5170
+ }>;
5171
+ service_tier: z.ZodEnum<{
5172
+ default: "default";
5173
+ priority: "priority";
5174
+ ultrafast: "ultrafast";
5175
+ }>;
5176
+ }, z.core.$strip>>>;
5177
+ limit: z.ZodOptional<z.ZodObject<{
5178
+ scope: z.ZodLiteral<"model">;
5179
+ resets_at: z.ZodString;
5180
+ }, z.core.$strip>>;
3526
5181
  }, z.core.$loose>>;
3527
5182
  extra_models: z.ZodOptional<z.ZodArray<z.ZodObject<{
3528
5183
  id: z.ZodString;
@@ -3531,15 +5186,66 @@ export declare const ModelGroupSchema: z.ZodObject<{
3531
5186
  provider_id: z.ZodOptional<z.ZodString>;
3532
5187
  bare_id: z.ZodOptional<z.ZodString>;
3533
5188
  supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
5189
+ supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5190
+ id: z.ZodEnum<{
5191
+ standard: "standard";
5192
+ priority: "priority";
5193
+ ultrafast: "ultrafast";
5194
+ fast: "fast";
5195
+ }>;
5196
+ service_tier: z.ZodEnum<{
5197
+ default: "default";
5198
+ priority: "priority";
5199
+ ultrafast: "ultrafast";
5200
+ }>;
5201
+ }, z.core.$strip>>>;
5202
+ limit: z.ZodOptional<z.ZodObject<{
5203
+ scope: z.ZodLiteral<"model">;
5204
+ resets_at: z.ZodString;
5205
+ }, z.core.$strip>>;
3534
5206
  }, z.core.$loose>>>;
5207
+ limit: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5208
+ scope: z.ZodLiteral<"account">;
5209
+ resets_at: z.ZodString;
5210
+ }, z.core.$strip>, z.ZodObject<{
5211
+ scope: z.ZodLiteral<"models">;
5212
+ models: z.ZodRecord<z.ZodString, z.ZodString>;
5213
+ }, z.core.$strip>], "scope">>;
5214
+ quota_level: z.ZodOptional<z.ZodEnum<{
5215
+ unavailable: "unavailable";
5216
+ stale: "stale";
5217
+ warning: "warning";
5218
+ healthy: "healthy";
5219
+ critical: "critical";
5220
+ }>>;
3535
5221
  }, z.core.$loose>;
3536
5222
  export declare const ModelsSchema: z.ZodObject<{
5223
+ availability: z.ZodOptional<z.ZodObject<{
5224
+ status: z.ZodEnum<{
5225
+ unavailable: "unavailable";
5226
+ stale: "stale";
5227
+ available: "available";
5228
+ }>;
5229
+ authoritative: z.ZodBoolean;
5230
+ unavailable_reason: z.ZodNullable<z.ZodString>;
5231
+ generation: z.ZodString;
5232
+ }, z.core.$strip>>;
3537
5233
  active_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3538
5234
  default_model: z.ZodOptional<z.ZodString>;
3539
5235
  default_provider_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3540
5236
  default_bare_id: z.ZodOptional<z.ZodString>;
3541
5237
  default_option_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3542
5238
  groups: z.ZodArray<z.ZodObject<{
5239
+ availability: z.ZodOptional<z.ZodObject<{
5240
+ status: z.ZodEnum<{
5241
+ unavailable: "unavailable";
5242
+ stale: "stale";
5243
+ available: "available";
5244
+ }>;
5245
+ authoritative: z.ZodBoolean;
5246
+ unavailable_reason: z.ZodNullable<z.ZodString>;
5247
+ generation: z.ZodString;
5248
+ }, z.core.$strip>>;
3543
5249
  provider: z.ZodString;
3544
5250
  provider_id: z.ZodOptional<z.ZodString>;
3545
5251
  models: z.ZodArray<z.ZodObject<{
@@ -3549,6 +5255,23 @@ export declare const ModelsSchema: z.ZodObject<{
3549
5255
  provider_id: z.ZodOptional<z.ZodString>;
3550
5256
  bare_id: z.ZodOptional<z.ZodString>;
3551
5257
  supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
5258
+ supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5259
+ id: z.ZodEnum<{
5260
+ standard: "standard";
5261
+ priority: "priority";
5262
+ ultrafast: "ultrafast";
5263
+ fast: "fast";
5264
+ }>;
5265
+ service_tier: z.ZodEnum<{
5266
+ default: "default";
5267
+ priority: "priority";
5268
+ ultrafast: "ultrafast";
5269
+ }>;
5270
+ }, z.core.$strip>>>;
5271
+ limit: z.ZodOptional<z.ZodObject<{
5272
+ scope: z.ZodLiteral<"model">;
5273
+ resets_at: z.ZodString;
5274
+ }, z.core.$strip>>;
3552
5275
  }, z.core.$loose>>;
3553
5276
  extra_models: z.ZodOptional<z.ZodArray<z.ZodObject<{
3554
5277
  id: z.ZodString;
@@ -3557,13 +5280,100 @@ export declare const ModelsSchema: z.ZodObject<{
3557
5280
  provider_id: z.ZodOptional<z.ZodString>;
3558
5281
  bare_id: z.ZodOptional<z.ZodString>;
3559
5282
  supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
5283
+ supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5284
+ id: z.ZodEnum<{
5285
+ standard: "standard";
5286
+ priority: "priority";
5287
+ ultrafast: "ultrafast";
5288
+ fast: "fast";
5289
+ }>;
5290
+ service_tier: z.ZodEnum<{
5291
+ default: "default";
5292
+ priority: "priority";
5293
+ ultrafast: "ultrafast";
5294
+ }>;
5295
+ }, z.core.$strip>>>;
5296
+ limit: z.ZodOptional<z.ZodObject<{
5297
+ scope: z.ZodLiteral<"model">;
5298
+ resets_at: z.ZodString;
5299
+ }, z.core.$strip>>;
3560
5300
  }, z.core.$loose>>>;
5301
+ limit: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5302
+ scope: z.ZodLiteral<"account">;
5303
+ resets_at: z.ZodString;
5304
+ }, z.core.$strip>, z.ZodObject<{
5305
+ scope: z.ZodLiteral<"models">;
5306
+ models: z.ZodRecord<z.ZodString, z.ZodString>;
5307
+ }, z.core.$strip>], "scope">>;
5308
+ quota_level: z.ZodOptional<z.ZodEnum<{
5309
+ unavailable: "unavailable";
5310
+ stale: "stale";
5311
+ warning: "warning";
5312
+ healthy: "healthy";
5313
+ critical: "critical";
5314
+ }>>;
3561
5315
  }, z.core.$loose>>;
3562
5316
  aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3563
5317
  configured_model_badges: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3564
5318
  }, z.core.$loose>;
5319
+ export declare const ModelsLiveSchema: z.ZodObject<{
5320
+ availability: z.ZodOptional<z.ZodObject<{
5321
+ status: z.ZodEnum<{
5322
+ unavailable: "unavailable";
5323
+ stale: "stale";
5324
+ available: "available";
5325
+ }>;
5326
+ authoritative: z.ZodBoolean;
5327
+ unavailable_reason: z.ZodNullable<z.ZodString>;
5328
+ generation: z.ZodString;
5329
+ }, z.core.$strip>>;
5330
+ provider: z.ZodOptional<z.ZodString>;
5331
+ source: z.ZodOptional<z.ZodString>;
5332
+ models: z.ZodArray<z.ZodObject<{
5333
+ id: z.ZodString;
5334
+ label: z.ZodOptional<z.ZodString>;
5335
+ provider: z.ZodOptional<z.ZodString>;
5336
+ provider_id: z.ZodOptional<z.ZodString>;
5337
+ bare_id: z.ZodOptional<z.ZodString>;
5338
+ supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
5339
+ supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5340
+ id: z.ZodEnum<{
5341
+ standard: "standard";
5342
+ priority: "priority";
5343
+ ultrafast: "ultrafast";
5344
+ fast: "fast";
5345
+ }>;
5346
+ service_tier: z.ZodEnum<{
5347
+ default: "default";
5348
+ priority: "priority";
5349
+ ultrafast: "ultrafast";
5350
+ }>;
5351
+ }, z.core.$strip>>>;
5352
+ limit: z.ZodOptional<z.ZodObject<{
5353
+ scope: z.ZodLiteral<"model">;
5354
+ resets_at: z.ZodString;
5355
+ }, z.core.$strip>>;
5356
+ }, z.core.$loose>>;
5357
+ count: z.ZodOptional<z.ZodNumber>;
5358
+ error: z.ZodOptional<z.ZodString>;
5359
+ }, z.core.$loose>;
3565
5360
  export type Models = z.infer<typeof ModelsSchema>;
3566
- /** `has_key` reports a credential; `configured` (TAL-570) is the row's setup status, which a keyless Ollama or LM Studio endpoint also meets. */
5361
+ /** TAL-603: where a card's credential comes from; `other` is a source the server cannot name, shown as its raw `key_source`. */
5362
+ export declare const KeySourceKindSchema: z.ZodEnum<{
5363
+ env: "env";
5364
+ plugin: "plugin";
5365
+ config: "config";
5366
+ other: "other";
5367
+ oauth: "oauth";
5368
+ pool: "pool";
5369
+ }>;
5370
+ export type KeySourceKind = z.infer<typeof KeySourceKindSchema>;
5371
+ /**
5372
+ * `has_key` reports a credential; `configured` (TAL-570) is the row's setup status, which a keyless Ollama or LM Studio endpoint also meets.
5373
+ * TAL-603: `is_active` marks the active provider's card; `key_source_kind` is the key badge (`null` without a credential);
5374
+ * `models_total` is the catalog size, never below `models.length`. `is_active` and `key_source_kind` are absent from older servers.
5375
+ * TAL-641: `removable` marks a key Remove would clear: a built-in, not self-hosted, provider whose only key is its own profile `.env` variable.
5376
+ */
3567
5377
  export declare const ProviderSchema: z.ZodObject<{
3568
5378
  id: z.ZodString;
3569
5379
  display_name: z.ZodOptional<z.ZodString>;
@@ -3585,10 +5395,47 @@ export declare const ProviderSchema: z.ZodObject<{
3585
5395
  provider_id: z.ZodOptional<z.ZodString>;
3586
5396
  bare_id: z.ZodOptional<z.ZodString>;
3587
5397
  supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
5398
+ supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5399
+ id: z.ZodEnum<{
5400
+ standard: "standard";
5401
+ priority: "priority";
5402
+ ultrafast: "ultrafast";
5403
+ fast: "fast";
5404
+ }>;
5405
+ service_tier: z.ZodEnum<{
5406
+ default: "default";
5407
+ priority: "priority";
5408
+ ultrafast: "ultrafast";
5409
+ }>;
5410
+ }, z.core.$strip>>>;
5411
+ limit: z.ZodOptional<z.ZodObject<{
5412
+ scope: z.ZodLiteral<"model">;
5413
+ resets_at: z.ZodString;
5414
+ }, z.core.$strip>>;
3588
5415
  }, z.core.$loose>>>;
3589
5416
  models_total: z.ZodOptional<z.ZodNumber>;
5417
+ is_active: z.ZodOptional<z.ZodBoolean>;
5418
+ key_source_kind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
5419
+ env: "env";
5420
+ plugin: "plugin";
5421
+ config: "config";
5422
+ other: "other";
5423
+ oauth: "oauth";
5424
+ pool: "pool";
5425
+ }>>>;
5426
+ removable: z.ZodOptional<z.ZodBoolean>;
3590
5427
  }, z.core.$loose>;
3591
5428
  export declare const ProvidersSchema: z.ZodObject<{
5429
+ availability: z.ZodOptional<z.ZodObject<{
5430
+ status: z.ZodEnum<{
5431
+ unavailable: "unavailable";
5432
+ stale: "stale";
5433
+ available: "available";
5434
+ }>;
5435
+ authoritative: z.ZodBoolean;
5436
+ unavailable_reason: z.ZodNullable<z.ZodString>;
5437
+ generation: z.ZodString;
5438
+ }, z.core.$strip>>;
3592
5439
  providers: z.ZodArray<z.ZodObject<{
3593
5440
  id: z.ZodString;
3594
5441
  display_name: z.ZodOptional<z.ZodString>;
@@ -3610,31 +5457,50 @@ export declare const ProvidersSchema: z.ZodObject<{
3610
5457
  provider_id: z.ZodOptional<z.ZodString>;
3611
5458
  bare_id: z.ZodOptional<z.ZodString>;
3612
5459
  supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
5460
+ supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5461
+ id: z.ZodEnum<{
5462
+ standard: "standard";
5463
+ priority: "priority";
5464
+ ultrafast: "ultrafast";
5465
+ fast: "fast";
5466
+ }>;
5467
+ service_tier: z.ZodEnum<{
5468
+ default: "default";
5469
+ priority: "priority";
5470
+ ultrafast: "ultrafast";
5471
+ }>;
5472
+ }, z.core.$strip>>>;
5473
+ limit: z.ZodOptional<z.ZodObject<{
5474
+ scope: z.ZodLiteral<"model">;
5475
+ resets_at: z.ZodString;
5476
+ }, z.core.$strip>>;
3613
5477
  }, z.core.$loose>>>;
3614
5478
  models_total: z.ZodOptional<z.ZodNumber>;
5479
+ is_active: z.ZodOptional<z.ZodBoolean>;
5480
+ key_source_kind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
5481
+ env: "env";
5482
+ plugin: "plugin";
5483
+ config: "config";
5484
+ other: "other";
5485
+ oauth: "oauth";
5486
+ pool: "pool";
5487
+ }>>>;
5488
+ removable: z.ZodOptional<z.ZodBoolean>;
3615
5489
  }, z.core.$loose>>;
3616
5490
  active_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3617
5491
  }, z.core.$loose>;
3618
- export declare const QuotaLevelSchema: z.ZodEnum<{
3619
- stale: "stale";
3620
- unavailable: "unavailable";
3621
- warning: "warning";
3622
- healthy: "healthy";
3623
- critical: "critical";
3624
- }>;
3625
- export type QuotaLevel = z.infer<typeof QuotaLevelSchema>;
3626
5492
  /** TAL-411: the server's classification per colour basis; `/api/provider/quotas` only, at the profile's thresholds. */
3627
5493
  export declare const QuotaUrgencySchema: z.ZodObject<{
3628
5494
  remaining: z.ZodEnum<{
3629
- stale: "stale";
3630
5495
  unavailable: "unavailable";
5496
+ stale: "stale";
3631
5497
  warning: "warning";
3632
5498
  healthy: "healthy";
3633
5499
  critical: "critical";
3634
5500
  }>;
3635
5501
  pace: z.ZodEnum<{
3636
- stale: "stale";
3637
5502
  unavailable: "unavailable";
5503
+ stale: "stale";
3638
5504
  warning: "warning";
3639
5505
  healthy: "healthy";
3640
5506
  critical: "critical";
@@ -3703,15 +5569,15 @@ export declare const QuotaWindowSchema: z.ZodObject<{
3703
5569
  projection_eligible: z.ZodOptional<z.ZodBoolean>;
3704
5570
  urgency: z.ZodOptional<z.ZodObject<{
3705
5571
  remaining: z.ZodEnum<{
3706
- stale: "stale";
3707
5572
  unavailable: "unavailable";
5573
+ stale: "stale";
3708
5574
  warning: "warning";
3709
5575
  healthy: "healthy";
3710
5576
  critical: "critical";
3711
5577
  }>;
3712
5578
  pace: z.ZodEnum<{
3713
- stale: "stale";
3714
5579
  unavailable: "unavailable";
5580
+ stale: "stale";
3715
5581
  warning: "warning";
3716
5582
  healthy: "healthy";
3717
5583
  critical: "critical";
@@ -3719,6 +5585,7 @@ export declare const QuotaWindowSchema: z.ZodObject<{
3719
5585
  }, z.core.$loose>>;
3720
5586
  }, z.core.$loose>;
3721
5587
  export declare const QuotaSourceSchema: z.ZodObject<{
5588
+ computed_at: z.ZodOptional<z.ZodString>;
3722
5589
  source_id: z.ZodString;
3723
5590
  provider_id: z.ZodOptional<z.ZodString>;
3724
5591
  provider_label: z.ZodOptional<z.ZodString>;
@@ -3764,15 +5631,15 @@ export declare const QuotaSourceSchema: z.ZodObject<{
3764
5631
  projection_eligible: z.ZodOptional<z.ZodBoolean>;
3765
5632
  urgency: z.ZodOptional<z.ZodObject<{
3766
5633
  remaining: z.ZodEnum<{
3767
- stale: "stale";
3768
5634
  unavailable: "unavailable";
5635
+ stale: "stale";
3769
5636
  warning: "warning";
3770
5637
  healthy: "healthy";
3771
5638
  critical: "critical";
3772
5639
  }>;
3773
5640
  pace: z.ZodEnum<{
3774
- stale: "stale";
3775
5641
  unavailable: "unavailable";
5642
+ stale: "stale";
3776
5643
  warning: "warning";
3777
5644
  healthy: "healthy";
3778
5645
  critical: "critical";
@@ -3790,15 +5657,15 @@ export declare const QuotaSourceSchema: z.ZodObject<{
3790
5657
  weekly_window_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3791
5658
  urgency: z.ZodOptional<z.ZodObject<{
3792
5659
  remaining: z.ZodEnum<{
3793
- stale: "stale";
3794
5660
  unavailable: "unavailable";
5661
+ stale: "stale";
3795
5662
  warning: "warning";
3796
5663
  healthy: "healthy";
3797
5664
  critical: "critical";
3798
5665
  }>;
3799
5666
  pace: z.ZodEnum<{
3800
- stale: "stale";
3801
5667
  unavailable: "unavailable";
5668
+ stale: "stale";
3802
5669
  warning: "warning";
3803
5670
  healthy: "healthy";
3804
5671
  critical: "critical";
@@ -3848,15 +5715,15 @@ export declare const QuotaAccountLimitsSchema: z.ZodObject<{
3848
5715
  projection_eligible: z.ZodOptional<z.ZodBoolean>;
3849
5716
  urgency: z.ZodOptional<z.ZodObject<{
3850
5717
  remaining: z.ZodEnum<{
3851
- stale: "stale";
3852
5718
  unavailable: "unavailable";
5719
+ stale: "stale";
3853
5720
  warning: "warning";
3854
5721
  healthy: "healthy";
3855
5722
  critical: "critical";
3856
5723
  }>;
3857
5724
  pace: z.ZodEnum<{
3858
- stale: "stale";
3859
5725
  unavailable: "unavailable";
5726
+ stale: "stale";
3860
5727
  warning: "warning";
3861
5728
  healthy: "healthy";
3862
5729
  critical: "critical";
@@ -3922,15 +5789,15 @@ export declare const ProviderQuotaSchema: z.ZodObject<{
3922
5789
  projection_eligible: z.ZodOptional<z.ZodBoolean>;
3923
5790
  urgency: z.ZodOptional<z.ZodObject<{
3924
5791
  remaining: z.ZodEnum<{
3925
- stale: "stale";
3926
5792
  unavailable: "unavailable";
5793
+ stale: "stale";
3927
5794
  warning: "warning";
3928
5795
  healthy: "healthy";
3929
5796
  critical: "critical";
3930
5797
  }>;
3931
5798
  pace: z.ZodEnum<{
3932
- stale: "stale";
3933
5799
  unavailable: "unavailable";
5800
+ stale: "stale";
3934
5801
  warning: "warning";
3935
5802
  healthy: "healthy";
3936
5803
  critical: "critical";
@@ -3946,6 +5813,16 @@ export declare const ProviderQuotaSchema: z.ZodObject<{
3946
5813
  }, z.core.$loose>;
3947
5814
  /** Python `get_provider_quotas`: the stable identity envelope the iOS quota widget persists (`scope_id`/`profile_id`). */
3948
5815
  export declare const ProviderQuotasSchema: z.ZodObject<{
5816
+ availability: z.ZodOptional<z.ZodObject<{
5817
+ status: z.ZodEnum<{
5818
+ unavailable: "unavailable";
5819
+ stale: "stale";
5820
+ available: "available";
5821
+ }>;
5822
+ authoritative: z.ZodBoolean;
5823
+ unavailable_reason: z.ZodNullable<z.ZodString>;
5824
+ generation: z.ZodString;
5825
+ }, z.core.$strip>>;
3949
5826
  version: z.ZodNumber;
3950
5827
  computed_at: z.ZodString;
3951
5828
  scope_id: z.ZodString;
@@ -3954,6 +5831,7 @@ export declare const ProviderQuotasSchema: z.ZodObject<{
3954
5831
  requested_source_id: z.ZodNullable<z.ZodString>;
3955
5832
  missing_source: z.ZodBoolean;
3956
5833
  sources: z.ZodArray<z.ZodObject<{
5834
+ computed_at: z.ZodOptional<z.ZodString>;
3957
5835
  source_id: z.ZodString;
3958
5836
  provider_id: z.ZodOptional<z.ZodString>;
3959
5837
  provider_label: z.ZodOptional<z.ZodString>;
@@ -3999,15 +5877,15 @@ export declare const ProviderQuotasSchema: z.ZodObject<{
3999
5877
  projection_eligible: z.ZodOptional<z.ZodBoolean>;
4000
5878
  urgency: z.ZodOptional<z.ZodObject<{
4001
5879
  remaining: z.ZodEnum<{
4002
- stale: "stale";
4003
5880
  unavailable: "unavailable";
5881
+ stale: "stale";
4004
5882
  warning: "warning";
4005
5883
  healthy: "healthy";
4006
5884
  critical: "critical";
4007
5885
  }>;
4008
5886
  pace: z.ZodEnum<{
4009
- stale: "stale";
4010
5887
  unavailable: "unavailable";
5888
+ stale: "stale";
4011
5889
  warning: "warning";
4012
5890
  healthy: "healthy";
4013
5891
  critical: "critical";
@@ -4025,15 +5903,15 @@ export declare const ProviderQuotasSchema: z.ZodObject<{
4025
5903
  weekly_window_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4026
5904
  urgency: z.ZodOptional<z.ZodObject<{
4027
5905
  remaining: z.ZodEnum<{
4028
- stale: "stale";
4029
5906
  unavailable: "unavailable";
5907
+ stale: "stale";
4030
5908
  warning: "warning";
4031
5909
  healthy: "healthy";
4032
5910
  critical: "critical";
4033
5911
  }>;
4034
5912
  pace: z.ZodEnum<{
4035
- stale: "stale";
4036
5913
  unavailable: "unavailable";
5914
+ stale: "stale";
4037
5915
  warning: "warning";
4038
5916
  healthy: "healthy";
4039
5917
  critical: "critical";
@@ -4071,8 +5949,8 @@ export declare const ProviderCostHistorySchema: z.ZodObject<{
4071
5949
  budget_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4072
5950
  budget_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4073
5951
  ok: "ok";
4074
- over: "over";
4075
5952
  warn: "warn";
5953
+ over: "over";
4076
5954
  }>>>;
4077
5955
  }, z.core.$loose>;
4078
5956
  export type ProviderCostHistory = z.infer<typeof ProviderCostHistorySchema>;
@@ -4096,6 +5974,8 @@ export declare const AuxiliaryTaskSchema: z.ZodObject<{
4096
5974
  provider_label: z.ZodNullable<z.ZodString>;
4097
5975
  selected_option_id: z.ZodNullable<z.ZodString>;
4098
5976
  in_catalog: z.ZodBoolean;
5977
+ inherit_from: z.ZodNullable<z.ZodString>;
5978
+ reasoning_effort: z.ZodNullable<z.ZodString>;
4099
5979
  }, z.core.$loose>;
4100
5980
  export declare const AuxiliaryModelsSchema: z.ZodObject<{
4101
5981
  main: z.ZodObject<{
@@ -4103,6 +5983,25 @@ export declare const AuxiliaryModelsSchema: z.ZodObject<{
4103
5983
  provider: z.ZodOptional<z.ZodString>;
4104
5984
  base_url: z.ZodOptional<z.ZodString>;
4105
5985
  api_key_set: z.ZodOptional<z.ZodBoolean>;
5986
+ service_tier: z.ZodOptional<z.ZodEnum<{
5987
+ "": "";
5988
+ default: "default";
5989
+ priority: "priority";
5990
+ ultrafast: "ultrafast";
5991
+ }>>;
5992
+ supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5993
+ id: z.ZodEnum<{
5994
+ standard: "standard";
5995
+ priority: "priority";
5996
+ ultrafast: "ultrafast";
5997
+ fast: "fast";
5998
+ }>;
5999
+ service_tier: z.ZodEnum<{
6000
+ default: "default";
6001
+ priority: "priority";
6002
+ ultrafast: "ultrafast";
6003
+ }>;
6004
+ }, z.core.$strip>>>;
4106
6005
  }, z.core.$loose>;
4107
6006
  tasks: z.ZodArray<z.ZodObject<{
4108
6007
  task: z.ZodString;
@@ -4117,6 +6016,8 @@ export declare const AuxiliaryModelsSchema: z.ZodObject<{
4117
6016
  provider_label: z.ZodNullable<z.ZodString>;
4118
6017
  selected_option_id: z.ZodNullable<z.ZodString>;
4119
6018
  in_catalog: z.ZodBoolean;
6019
+ inherit_from: z.ZodNullable<z.ZodString>;
6020
+ reasoning_effort: z.ZodNullable<z.ZodString>;
4120
6021
  }, z.core.$loose>>;
4121
6022
  }, z.core.$loose>;
4122
6023
  export declare const MaxTokensSchema: z.ZodObject<{
@@ -4228,6 +6129,14 @@ export declare const SkillSchema: z.ZodObject<{
4228
6129
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4229
6130
  category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4230
6131
  disabled: z.ZodOptional<z.ZodBoolean>;
6132
+ load_name: z.ZodOptional<z.ZodString>;
6133
+ declared_name: z.ZodOptional<z.ZodString>;
6134
+ status: z.ZodOptional<z.ZodEnum<{
6135
+ unique: "unique";
6136
+ ambiguous: "ambiguous";
6137
+ shadowed: "shadowed";
6138
+ }>>;
6139
+ tier: z.ZodOptional<z.ZodNumber>;
4231
6140
  }, z.core.$loose>;
4232
6141
  export declare const SkillsSchema: z.ZodObject<{
4233
6142
  skills: z.ZodArray<z.ZodObject<{
@@ -4235,13 +6144,29 @@ export declare const SkillsSchema: z.ZodObject<{
4235
6144
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4236
6145
  category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4237
6146
  disabled: z.ZodOptional<z.ZodBoolean>;
6147
+ load_name: z.ZodOptional<z.ZodString>;
6148
+ declared_name: z.ZodOptional<z.ZodString>;
6149
+ status: z.ZodOptional<z.ZodEnum<{
6150
+ unique: "unique";
6151
+ ambiguous: "ambiguous";
6152
+ shadowed: "shadowed";
6153
+ }>>;
6154
+ tier: z.ZodOptional<z.ZodNumber>;
4238
6155
  }, z.core.$loose>>;
4239
6156
  categories: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
4240
6157
  }, z.core.$loose>;
6158
+ /**
6159
+ * `linked_files` groups the skill directory's files by folder (`references`, `templates`, ...); open one with `?file=`.
6160
+ * A linked file that is not UTF-8 text carries `binary: true` and its `size` instead of `content`.
6161
+ */
4241
6162
  export declare const SkillContentSchema: z.ZodObject<{
6163
+ editable: z.ZodOptional<z.ZodBoolean>;
4242
6164
  name: z.ZodOptional<z.ZodString>;
4243
6165
  content: z.ZodOptional<z.ZodString>;
4244
6166
  path: z.ZodOptional<z.ZodString>;
6167
+ linked_files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
6168
+ binary: z.ZodOptional<z.ZodLiteral<true>>;
6169
+ size: z.ZodOptional<z.ZodNumber>;
4245
6170
  success: z.ZodOptional<z.ZodBoolean>;
4246
6171
  message: z.ZodOptional<z.ZodString>;
4247
6172
  ok: z.ZodOptional<z.ZodBoolean>;
@@ -4273,6 +6198,9 @@ export declare const MemorySchema: z.ZodObject<{
4273
6198
  project_context_mtime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4274
6199
  project_context_shadowed: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
4275
6200
  external_notes_enabled: z.ZodOptional<z.ZodBoolean>;
6201
+ memory_revision: z.ZodString;
6202
+ user_revision: z.ZodString;
6203
+ soul_revision: z.ZodString;
4276
6204
  }, z.core.$loose>;
4277
6205
  export type Memory = z.infer<typeof MemorySchema>;
4278
6206
  export declare const PromptSchema: z.ZodObject<{
@@ -4301,7 +6229,10 @@ export declare const PromptsSchema: z.ZodObject<{
4301
6229
  * clients can run it, and `unsupported_message` is the English text a client outside `clients` shows when it is typed.
4302
6230
  * Clients suggest the entries listing them whose name or any alias starts with the typed text (case-insensitive), and
4303
6231
  * resolve a typed alias to the entry's `name`. `exec` marks an Agent entry `POST /api/commands/exec` runs: the client
4304
- * posts the typed text there and shows the returned output instead of starting a chat turn (TAL-561).
6232
+ * posts the typed text there with the open chat's `session_id` and shows the returned output instead of starting a chat turn
6233
+ * (TAL-561); `/refine` reviews that chat (TAL-902).
6234
+ * `handler: 'prompt'` marks an Agent prompt built-in: the client sends the typed text as a chat turn and the server starts the
6235
+ * turn with the Agent's expansion of it (TAL-817).
4305
6236
  */
4306
6237
  export declare const CommandClientSchema: z.ZodEnum<{
4307
6238
  web: "web";
@@ -4314,6 +6245,7 @@ export declare const CommandRowSchema: z.ZodObject<{
4314
6245
  args_hint: z.ZodOptional<z.ZodString>;
4315
6246
  category: z.ZodOptional<z.ZodString>;
4316
6247
  handler: z.ZodEnum<{
6248
+ prompt: "prompt";
4317
6249
  agent: "agent";
4318
6250
  client: "client";
4319
6251
  }>;
@@ -4335,6 +6267,7 @@ export declare const CommandsSchema: z.ZodObject<{
4335
6267
  args_hint: z.ZodOptional<z.ZodString>;
4336
6268
  category: z.ZodOptional<z.ZodString>;
4337
6269
  handler: z.ZodEnum<{
6270
+ prompt: "prompt";
4338
6271
  agent: "agent";
4339
6272
  client: "client";
4340
6273
  }>;
@@ -4405,7 +6338,257 @@ export declare const DashboardStatusSchema: z.ZodObject<{
4405
6338
  version: z.ZodOptional<z.ZodString>;
4406
6339
  error: z.ZodOptional<z.ZodString>;
4407
6340
  }, z.core.$loose>;
6341
+ /**
6342
+ * Gateway status for the Settings banner (TAL-266). `running` and `configured` come from the Agent health probe; when it
6343
+ * is inconclusive, stale running metadata or known gateway sessions mark the gateway configured. `platforms` are the
6344
+ * messaging platforms of known gateway sessions; `last_active` is the gateway session index's ISO mtime while running, else "".
6345
+ * TAL-805: `gateway_mode` is the active profile's mode and decides `running` when it is not null. It is null for a remote
6346
+ * gateway, or for the root profile when the sidecar cannot answer; a named profile whose mode is unconfirmed reads `stopped`.
6347
+ */
6348
+ export declare const GatewayStatusSchema: z.ZodObject<{
6349
+ running: z.ZodBoolean;
6350
+ configured: z.ZodBoolean;
6351
+ gateway_mode: z.ZodNullable<z.ZodEnum<{
6352
+ stopped: "stopped";
6353
+ parked: "parked";
6354
+ own: "own";
6355
+ served: "served";
6356
+ standalone: "standalone";
6357
+ }>>;
6358
+ platforms: z.ZodArray<z.ZodObject<{
6359
+ name: z.ZodString;
6360
+ label: z.ZodString;
6361
+ }, z.core.$strip>>;
6362
+ last_active: z.ZodString;
6363
+ session_count: z.ZodNumber;
6364
+ health: z.ZodObject<{
6365
+ state: z.ZodNullable<z.ZodString>;
6366
+ reason: z.ZodNullable<z.ZodString>;
6367
+ gateway_state: z.ZodNullable<z.ZodString>;
6368
+ }, z.core.$strip>;
6369
+ }, z.core.$strip>;
6370
+ export type GatewayStatus = z.infer<typeof GatewayStatusSchema>;
6371
+ export declare const GatewayActionSchema: z.ZodObject<{
6372
+ ok: z.ZodLiteral<true>;
6373
+ action: z.ZodEnum<{
6374
+ start: "start";
6375
+ stop: "stop";
6376
+ restart: "restart";
6377
+ }>;
6378
+ message: z.ZodString;
6379
+ status: z.ZodObject<{
6380
+ running: z.ZodBoolean;
6381
+ configured: z.ZodBoolean;
6382
+ gateway_mode: z.ZodNullable<z.ZodEnum<{
6383
+ stopped: "stopped";
6384
+ parked: "parked";
6385
+ own: "own";
6386
+ served: "served";
6387
+ standalone: "standalone";
6388
+ }>>;
6389
+ platforms: z.ZodArray<z.ZodObject<{
6390
+ name: z.ZodString;
6391
+ label: z.ZodString;
6392
+ }, z.core.$strip>>;
6393
+ last_active: z.ZodString;
6394
+ session_count: z.ZodNumber;
6395
+ health: z.ZodObject<{
6396
+ state: z.ZodNullable<z.ZodString>;
6397
+ reason: z.ZodNullable<z.ZodString>;
6398
+ gateway_state: z.ZodNullable<z.ZodString>;
6399
+ }, z.core.$strip>;
6400
+ }, z.core.$strip>;
6401
+ }, z.core.$strip>;
6402
+ export declare const DashboardConfigSchema: z.ZodObject<{
6403
+ enabled: z.ZodEnum<{
6404
+ never: "never";
6405
+ always: "always";
6406
+ auto: "auto";
6407
+ }>;
6408
+ url: z.ZodString;
6409
+ }, z.core.$strip>;
6410
+ /**
6411
+ * Project OS dashboard for a repo found from the last workspace or the `board`'s default workdir (TAL-266). Every field is
6412
+ * null or empty when the profile has no local workspace I/O or no repo is found. `onboarding.active` means the docs came
6413
+ * from the repo root's `PROJECT.md`/`PLAN.md`/`STATUS.md` instead of `docs/project-os/`.
6414
+ */
6415
+ export declare const ProjectOsDashboardSchema: z.ZodObject<{
6416
+ workspace: z.ZodNullable<z.ZodString>;
6417
+ repo_root: z.ZodNullable<z.ZodString>;
6418
+ selected_board_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6419
+ git: z.ZodNullable<z.ZodObject<{
6420
+ is_git: z.ZodOptional<z.ZodBoolean>;
6421
+ branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6422
+ dirty: z.ZodOptional<z.ZodNumber>;
6423
+ modified: z.ZodOptional<z.ZodNumber>;
6424
+ untracked: z.ZodOptional<z.ZodNumber>;
6425
+ ahead: z.ZodOptional<z.ZodNumber>;
6426
+ behind: z.ZodOptional<z.ZodNumber>;
6427
+ }, z.core.$loose>>;
6428
+ docs: z.ZodObject<{
6429
+ project: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6430
+ path: z.ZodOptional<z.ZodString>;
6431
+ content: z.ZodOptional<z.ZodString>;
6432
+ lines: z.ZodOptional<z.ZodNumber>;
6433
+ size: z.ZodOptional<z.ZodNumber>;
6434
+ truncated: z.ZodOptional<z.ZodBoolean>;
6435
+ binary: z.ZodOptional<z.ZodBoolean>;
6436
+ mime: z.ZodOptional<z.ZodString>;
6437
+ preview: z.ZodOptional<z.ZodEnum<{
6438
+ text: "text";
6439
+ image: "image";
6440
+ audio: "audio";
6441
+ video: "video";
6442
+ pdf: "pdf";
6443
+ markdown: "markdown";
6444
+ csv: "csv";
6445
+ html: "html";
6446
+ binary: "binary";
6447
+ }>>;
6448
+ table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
6449
+ table_truncated: z.ZodOptional<z.ZodBoolean>;
6450
+ preview_url: z.ZodOptional<z.ZodString>;
6451
+ }, z.core.$loose>>>;
6452
+ plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6453
+ path: z.ZodOptional<z.ZodString>;
6454
+ content: z.ZodOptional<z.ZodString>;
6455
+ lines: z.ZodOptional<z.ZodNumber>;
6456
+ size: z.ZodOptional<z.ZodNumber>;
6457
+ truncated: z.ZodOptional<z.ZodBoolean>;
6458
+ binary: z.ZodOptional<z.ZodBoolean>;
6459
+ mime: z.ZodOptional<z.ZodString>;
6460
+ preview: z.ZodOptional<z.ZodEnum<{
6461
+ text: "text";
6462
+ image: "image";
6463
+ audio: "audio";
6464
+ video: "video";
6465
+ pdf: "pdf";
6466
+ markdown: "markdown";
6467
+ csv: "csv";
6468
+ html: "html";
6469
+ binary: "binary";
6470
+ }>>;
6471
+ table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
6472
+ table_truncated: z.ZodOptional<z.ZodBoolean>;
6473
+ preview_url: z.ZodOptional<z.ZodString>;
6474
+ }, z.core.$loose>>>;
6475
+ status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6476
+ path: z.ZodOptional<z.ZodString>;
6477
+ content: z.ZodOptional<z.ZodString>;
6478
+ lines: z.ZodOptional<z.ZodNumber>;
6479
+ size: z.ZodOptional<z.ZodNumber>;
6480
+ truncated: z.ZodOptional<z.ZodBoolean>;
6481
+ binary: z.ZodOptional<z.ZodBoolean>;
6482
+ mime: z.ZodOptional<z.ZodString>;
6483
+ preview: z.ZodOptional<z.ZodEnum<{
6484
+ text: "text";
6485
+ image: "image";
6486
+ audio: "audio";
6487
+ video: "video";
6488
+ pdf: "pdf";
6489
+ markdown: "markdown";
6490
+ csv: "csv";
6491
+ html: "html";
6492
+ binary: "binary";
6493
+ }>>;
6494
+ table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
6495
+ table_truncated: z.ZodOptional<z.ZodBoolean>;
6496
+ preview_url: z.ZodOptional<z.ZodString>;
6497
+ }, z.core.$loose>>>;
6498
+ blocker_resolver: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6499
+ path: z.ZodOptional<z.ZodString>;
6500
+ content: z.ZodOptional<z.ZodString>;
6501
+ lines: z.ZodOptional<z.ZodNumber>;
6502
+ size: z.ZodOptional<z.ZodNumber>;
6503
+ truncated: z.ZodOptional<z.ZodBoolean>;
6504
+ binary: z.ZodOptional<z.ZodBoolean>;
6505
+ mime: z.ZodOptional<z.ZodString>;
6506
+ preview: z.ZodOptional<z.ZodEnum<{
6507
+ text: "text";
6508
+ image: "image";
6509
+ audio: "audio";
6510
+ video: "video";
6511
+ pdf: "pdf";
6512
+ markdown: "markdown";
6513
+ csv: "csv";
6514
+ html: "html";
6515
+ binary: "binary";
6516
+ }>>;
6517
+ table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
6518
+ table_truncated: z.ZodOptional<z.ZodBoolean>;
6519
+ preview_url: z.ZodOptional<z.ZodString>;
6520
+ }, z.core.$loose>>>;
6521
+ }, z.core.$strip>;
6522
+ handoff: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6523
+ active: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6524
+ heartbeat: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6525
+ onboarding: z.ZodOptional<z.ZodObject<{
6526
+ active: z.ZodBoolean;
6527
+ doc_source: z.ZodEnum<{
6528
+ "project-os": "project-os";
6529
+ root: "root";
6530
+ }>;
6531
+ }, z.core.$loose>>;
6532
+ goal_summary: z.ZodString;
6533
+ }, z.core.$strip>;
6534
+ export type ProjectOsDashboard = z.infer<typeof ProjectOsDashboardSchema>;
6535
+ /** One server projection used by chat readiness, HTTP refusals, and persisted stream errors. */
6536
+ export declare const AgentRuntimeMetadataSchema: z.ZodObject<{
6537
+ agent_runtime_reason: z.ZodOptional<z.ZodEnum<{
6538
+ unknown: "unknown";
6539
+ update_active: "update_active";
6540
+ recovery_incomplete: "recovery_incomplete";
6541
+ source_changed: "source_changed";
6542
+ }>>;
6543
+ agent_update_state: z.ZodOptional<z.ZodString>;
6544
+ retryable: z.ZodOptional<z.ZodBoolean>;
6545
+ restart_scheduled: z.ZodOptional<z.ZodBoolean>;
6546
+ }, z.core.$strip>;
6547
+ export type AgentRuntimeMetadata = z.infer<typeof AgentRuntimeMetadataSchema>;
6548
+ /** TAL-951: whether Web chat can run, from the Agent sidecar's status; `condition` says why not, null when available. */
6549
+ export declare const ChatReadinessSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6550
+ available: z.ZodLiteral<true>;
6551
+ condition: z.ZodNull;
6552
+ }, z.core.$strip>, z.ZodObject<{
6553
+ agent_runtime_reason: z.ZodOptional<z.ZodEnum<{
6554
+ unknown: "unknown";
6555
+ update_active: "update_active";
6556
+ recovery_incomplete: "recovery_incomplete";
6557
+ source_changed: "source_changed";
6558
+ }>>;
6559
+ agent_update_state: z.ZodOptional<z.ZodString>;
6560
+ retryable: z.ZodOptional<z.ZodBoolean>;
6561
+ restart_scheduled: z.ZodOptional<z.ZodBoolean>;
6562
+ available: z.ZodLiteral<false>;
6563
+ condition: z.ZodEnum<{
6564
+ sidecar_unavailable: "sidecar_unavailable";
6565
+ agent_runtime_stale: "agent_runtime_stale";
6566
+ agent_incompatible: "agent_incompatible";
6567
+ }>;
6568
+ }, z.core.$strip>], "available">;
6569
+ export type ChatReadiness = z.infer<typeof ChatReadinessSchema>;
6570
+ /** Messaging-gateway liveness (`alive`, `details`, `gateway_chat`) for Settings → System, plus Web chat readiness in `chat`. */
4408
6571
  export declare const AgentHealthSchema: z.ZodObject<{
6572
+ chat: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
6573
+ available: z.ZodLiteral<true>;
6574
+ condition: z.ZodNull;
6575
+ }, z.core.$strip>, z.ZodObject<{
6576
+ agent_runtime_reason: z.ZodOptional<z.ZodEnum<{
6577
+ unknown: "unknown";
6578
+ update_active: "update_active";
6579
+ recovery_incomplete: "recovery_incomplete";
6580
+ source_changed: "source_changed";
6581
+ }>>;
6582
+ agent_update_state: z.ZodOptional<z.ZodString>;
6583
+ retryable: z.ZodOptional<z.ZodBoolean>;
6584
+ restart_scheduled: z.ZodOptional<z.ZodBoolean>;
6585
+ available: z.ZodLiteral<false>;
6586
+ condition: z.ZodEnum<{
6587
+ sidecar_unavailable: "sidecar_unavailable";
6588
+ agent_runtime_stale: "agent_runtime_stale";
6589
+ agent_incompatible: "agent_incompatible";
6590
+ }>;
6591
+ }, z.core.$strip>], "available">>;
4409
6592
  alive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4410
6593
  checked_at: z.ZodOptional<z.ZodString>;
4411
6594
  details: z.ZodOptional<z.ZodObject<{
@@ -4439,23 +6622,50 @@ export declare const SystemHealthSchema: z.ZodObject<{
4439
6622
  }, z.core.$loose>;
4440
6623
  export declare const UpdateStateSchema: z.ZodEnum<{
4441
6624
  unknown: "unknown";
6625
+ finish: "finish";
6626
+ manual: "manual";
4442
6627
  up_to_date: "up_to_date";
4443
6628
  release_ready: "release_ready";
4444
6629
  commits_behind: "commits_behind";
4445
6630
  local_changes: "local_changes";
4446
- finish: "finish";
4447
- manual: "manual";
4448
6631
  check_failed: "check_failed";
4449
6632
  off: "off";
4450
6633
  }>;
4451
6634
  export type UpdateState = z.infer<typeof UpdateStateSchema>;
6635
+ export declare const UpdateVersionSchema: z.ZodObject<{
6636
+ version: z.ZodString;
6637
+ ref: z.ZodString;
6638
+ sha: z.ZodOptional<z.ZodString>;
6639
+ release_url: z.ZodNullable<z.ZodString>;
6640
+ latest: z.ZodBoolean;
6641
+ folded: z.ZodBoolean;
6642
+ support: z.ZodOptional<z.ZodEnum<{
6643
+ supported: "supported";
6644
+ unchecked: "unchecked";
6645
+ }>>;
6646
+ support_label: z.ZodOptional<z.ZodString>;
6647
+ }, z.core.$strip>;
6648
+ export type UpdateVersion = z.infer<typeof UpdateVersionSchema>;
4452
6649
  export declare const UpdateTargetSchema: z.ZodObject<{
6650
+ failed_update: z.ZodOptional<z.ZodObject<{
6651
+ version: z.ZodString;
6652
+ restored_version: z.ZodString;
6653
+ }, z.core.$strip>>;
4453
6654
  name: z.ZodOptional<z.ZodString>;
4454
6655
  channel: z.ZodOptional<z.ZodEnum<{
4455
6656
  stable: "stable";
4456
6657
  experimental: "experimental";
4457
6658
  }>>;
4458
6659
  unsupported: z.ZodOptional<z.ZodBoolean>;
6660
+ support: z.ZodOptional<z.ZodEnum<{
6661
+ supported: "supported";
6662
+ unchecked: "unchecked";
6663
+ }>>;
6664
+ support_label: z.ZodOptional<z.ZodString>;
6665
+ current_support: z.ZodOptional<z.ZodEnum<{
6666
+ supported: "supported";
6667
+ unchecked: "unchecked";
6668
+ }>>;
4459
6669
  supported_revision: z.ZodOptional<z.ZodString>;
4460
6670
  supported_version: z.ZodOptional<z.ZodString>;
4461
6671
  candidate_revision: z.ZodOptional<z.ZodString>;
@@ -4479,12 +6689,12 @@ export declare const UpdateTargetSchema: z.ZodObject<{
4479
6689
  current_version: z.ZodOptional<z.ZodString>;
4480
6690
  state: z.ZodEnum<{
4481
6691
  unknown: "unknown";
6692
+ finish: "finish";
6693
+ manual: "manual";
4482
6694
  up_to_date: "up_to_date";
4483
6695
  release_ready: "release_ready";
4484
6696
  commits_behind: "commits_behind";
4485
6697
  local_changes: "local_changes";
4486
- finish: "finish";
4487
- manual: "manual";
4488
6698
  check_failed: "check_failed";
4489
6699
  off: "off";
4490
6700
  }>;
@@ -4492,8 +6702,48 @@ export declare const UpdateTargetSchema: z.ZodObject<{
4492
6702
  installed_unverified: z.ZodBoolean;
4493
6703
  manual_link: z.ZodBoolean;
4494
6704
  target_version: z.ZodNullable<z.ZodString>;
6705
+ summary_available: z.ZodBoolean;
6706
+ versions: z.ZodArray<z.ZodObject<{
6707
+ version: z.ZodString;
6708
+ ref: z.ZodString;
6709
+ sha: z.ZodOptional<z.ZodString>;
6710
+ release_url: z.ZodNullable<z.ZodString>;
6711
+ latest: z.ZodBoolean;
6712
+ folded: z.ZodBoolean;
6713
+ support: z.ZodOptional<z.ZodEnum<{
6714
+ supported: "supported";
6715
+ unchecked: "unchecked";
6716
+ }>>;
6717
+ support_label: z.ZodOptional<z.ZodString>;
6718
+ }, z.core.$strip>>;
6719
+ folded_count: z.ZodNumber;
4495
6720
  }, z.core.$loose>;
6721
+ export declare const AgentRecoveryStateSchema: z.ZodObject<{
6722
+ phase: z.ZodEnum<{
6723
+ running: "running";
6724
+ waiting: "waiting";
6725
+ idle: "idle";
6726
+ complete: "complete";
6727
+ blocked: "blocked";
6728
+ }>;
6729
+ attempt: z.ZodNumber;
6730
+ detail: z.ZodString;
6731
+ retry_at: z.ZodNullable<z.ZodString>;
6732
+ }, z.core.$strip>;
6733
+ export type AgentRecoveryState = z.infer<typeof AgentRecoveryStateSchema>;
4496
6734
  export declare const UpdatesCheckSchema: z.ZodObject<{
6735
+ agent_recovery: z.ZodOptional<z.ZodObject<{
6736
+ phase: z.ZodEnum<{
6737
+ running: "running";
6738
+ waiting: "waiting";
6739
+ idle: "idle";
6740
+ complete: "complete";
6741
+ blocked: "blocked";
6742
+ }>;
6743
+ attempt: z.ZodNumber;
6744
+ detail: z.ZodString;
6745
+ retry_at: z.ZodNullable<z.ZodString>;
6746
+ }, z.core.$strip>>;
4497
6747
  disabled: z.ZodOptional<z.ZodBoolean>;
4498
6748
  cached: z.ZodOptional<z.ZodBoolean>;
4499
6749
  channel: z.ZodOptional<z.ZodString>;
@@ -4504,12 +6754,25 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
4504
6754
  checked_at: z.ZodOptional<z.ZodNumber>;
4505
6755
  include_agent: z.ZodOptional<z.ZodBoolean>;
4506
6756
  webui: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6757
+ failed_update: z.ZodOptional<z.ZodObject<{
6758
+ version: z.ZodString;
6759
+ restored_version: z.ZodString;
6760
+ }, z.core.$strip>>;
4507
6761
  name: z.ZodOptional<z.ZodString>;
4508
6762
  channel: z.ZodOptional<z.ZodEnum<{
4509
6763
  stable: "stable";
4510
6764
  experimental: "experimental";
4511
6765
  }>>;
4512
6766
  unsupported: z.ZodOptional<z.ZodBoolean>;
6767
+ support: z.ZodOptional<z.ZodEnum<{
6768
+ supported: "supported";
6769
+ unchecked: "unchecked";
6770
+ }>>;
6771
+ support_label: z.ZodOptional<z.ZodString>;
6772
+ current_support: z.ZodOptional<z.ZodEnum<{
6773
+ supported: "supported";
6774
+ unchecked: "unchecked";
6775
+ }>>;
4513
6776
  supported_revision: z.ZodOptional<z.ZodString>;
4514
6777
  supported_version: z.ZodOptional<z.ZodString>;
4515
6778
  candidate_revision: z.ZodOptional<z.ZodString>;
@@ -4533,12 +6796,12 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
4533
6796
  current_version: z.ZodOptional<z.ZodString>;
4534
6797
  state: z.ZodEnum<{
4535
6798
  unknown: "unknown";
6799
+ finish: "finish";
6800
+ manual: "manual";
4536
6801
  up_to_date: "up_to_date";
4537
6802
  release_ready: "release_ready";
4538
6803
  commits_behind: "commits_behind";
4539
6804
  local_changes: "local_changes";
4540
- finish: "finish";
4541
- manual: "manual";
4542
6805
  check_failed: "check_failed";
4543
6806
  off: "off";
4544
6807
  }>;
@@ -4546,14 +6809,42 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
4546
6809
  installed_unverified: z.ZodBoolean;
4547
6810
  manual_link: z.ZodBoolean;
4548
6811
  target_version: z.ZodNullable<z.ZodString>;
6812
+ summary_available: z.ZodBoolean;
6813
+ versions: z.ZodArray<z.ZodObject<{
6814
+ version: z.ZodString;
6815
+ ref: z.ZodString;
6816
+ sha: z.ZodOptional<z.ZodString>;
6817
+ release_url: z.ZodNullable<z.ZodString>;
6818
+ latest: z.ZodBoolean;
6819
+ folded: z.ZodBoolean;
6820
+ support: z.ZodOptional<z.ZodEnum<{
6821
+ supported: "supported";
6822
+ unchecked: "unchecked";
6823
+ }>>;
6824
+ support_label: z.ZodOptional<z.ZodString>;
6825
+ }, z.core.$strip>>;
6826
+ folded_count: z.ZodNumber;
4549
6827
  }, z.core.$loose>>>;
4550
6828
  agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6829
+ failed_update: z.ZodOptional<z.ZodObject<{
6830
+ version: z.ZodString;
6831
+ restored_version: z.ZodString;
6832
+ }, z.core.$strip>>;
4551
6833
  name: z.ZodOptional<z.ZodString>;
4552
6834
  channel: z.ZodOptional<z.ZodEnum<{
4553
6835
  stable: "stable";
4554
6836
  experimental: "experimental";
4555
6837
  }>>;
4556
6838
  unsupported: z.ZodOptional<z.ZodBoolean>;
6839
+ support: z.ZodOptional<z.ZodEnum<{
6840
+ supported: "supported";
6841
+ unchecked: "unchecked";
6842
+ }>>;
6843
+ support_label: z.ZodOptional<z.ZodString>;
6844
+ current_support: z.ZodOptional<z.ZodEnum<{
6845
+ supported: "supported";
6846
+ unchecked: "unchecked";
6847
+ }>>;
4557
6848
  supported_revision: z.ZodOptional<z.ZodString>;
4558
6849
  supported_version: z.ZodOptional<z.ZodString>;
4559
6850
  candidate_revision: z.ZodOptional<z.ZodString>;
@@ -4577,12 +6868,12 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
4577
6868
  current_version: z.ZodOptional<z.ZodString>;
4578
6869
  state: z.ZodEnum<{
4579
6870
  unknown: "unknown";
6871
+ finish: "finish";
6872
+ manual: "manual";
4580
6873
  up_to_date: "up_to_date";
4581
6874
  release_ready: "release_ready";
4582
6875
  commits_behind: "commits_behind";
4583
6876
  local_changes: "local_changes";
4584
- finish: "finish";
4585
- manual: "manual";
4586
6877
  check_failed: "check_failed";
4587
6878
  off: "off";
4588
6879
  }>;
@@ -4590,22 +6881,64 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
4590
6881
  installed_unverified: z.ZodBoolean;
4591
6882
  manual_link: z.ZodBoolean;
4592
6883
  target_version: z.ZodNullable<z.ZodString>;
6884
+ summary_available: z.ZodBoolean;
6885
+ versions: z.ZodArray<z.ZodObject<{
6886
+ version: z.ZodString;
6887
+ ref: z.ZodString;
6888
+ sha: z.ZodOptional<z.ZodString>;
6889
+ release_url: z.ZodNullable<z.ZodString>;
6890
+ latest: z.ZodBoolean;
6891
+ folded: z.ZodBoolean;
6892
+ support: z.ZodOptional<z.ZodEnum<{
6893
+ supported: "supported";
6894
+ unchecked: "unchecked";
6895
+ }>>;
6896
+ support_label: z.ZodOptional<z.ZodString>;
6897
+ }, z.core.$strip>>;
6898
+ folded_count: z.ZodNumber;
4593
6899
  }, z.core.$loose>>>;
4594
6900
  }, z.core.$loose>;
4595
6901
  export declare const UpdatesSummarySchema: z.ZodObject<{
4596
- summary: z.ZodOptional<z.ZodString>;
4597
- text: z.ZodOptional<z.ZodString>;
4598
- ok: z.ZodOptional<z.ZodBoolean>;
4599
- error: z.ZodOptional<z.ZodString>;
4600
- diff_links: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
4601
- }, z.core.$loose>;
6902
+ ok: z.ZodBoolean;
6903
+ target: z.ZodEnum<{
6904
+ agent: "agent";
6905
+ webui: "webui";
6906
+ }>;
6907
+ summary: z.ZodString;
6908
+ current_version: z.ZodNullable<z.ZodString>;
6909
+ target_version: z.ZodNullable<z.ZodString>;
6910
+ summary_sections: z.ZodArray<z.ZodObject<{
6911
+ title: z.ZodString;
6912
+ items: z.ZodArray<z.ZodString>;
6913
+ }, z.core.$strip>>;
6914
+ generated_by: z.ZodEnum<{
6915
+ fallback: "fallback";
6916
+ llm: "llm";
6917
+ none: "none";
6918
+ }>;
6919
+ source: z.ZodEnum<{
6920
+ none: "none";
6921
+ release_notes: "release_notes";
6922
+ commits: "commits";
6923
+ }>;
6924
+ cached: z.ZodBoolean;
6925
+ }, z.core.$strip>;
6926
+ export type UpdatesSummary = z.infer<typeof UpdatesSummarySchema>;
4602
6927
  export declare const UpdateApplySchema: z.ZodObject<{
6928
+ recovery_compatibility: z.ZodOptional<z.ZodObject<{
6929
+ manual_execution: z.ZodBoolean;
6930
+ bot_chat_delivery: z.ZodBoolean;
6931
+ }, z.core.$strip>>;
4603
6932
  ok: z.ZodOptional<z.ZodBoolean>;
4604
6933
  status: z.ZodOptional<z.ZodString>;
4605
6934
  error: z.ZodOptional<z.ZodString>;
4606
6935
  message: z.ZodOptional<z.ZodString>;
4607
6936
  lock: z.ZodOptional<z.ZodUnknown>;
4608
6937
  confirmation_required: z.ZodOptional<z.ZodBoolean>;
6938
+ refresh_confirmation: z.ZodOptional<z.ZodObject<{
6939
+ token: z.ZodString;
6940
+ services: z.ZodArray<z.ZodString>;
6941
+ }, z.core.$strip>>;
4609
6942
  candidate_revision: z.ZodOptional<z.ZodString>;
4610
6943
  supported_revision: z.ZodOptional<z.ZodString>;
4611
6944
  supported_version: z.ZodOptional<z.ZodString>;
@@ -4618,15 +6951,17 @@ export declare const UpdateApplySchema: z.ZodObject<{
4618
6951
  backup_dir: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4619
6952
  backup_failed: z.ZodOptional<z.ZodBoolean>;
4620
6953
  stash_conflict: z.ZodOptional<z.ZodBoolean>;
6954
+ gateway_restart: z.ZodOptional<z.ZodString>;
4621
6955
  }, z.core.$loose>;
4622
6956
  export declare const UpdateNotificationPhaseSchema: z.ZodEnum<{
4623
6957
  unknown: "unknown";
4624
6958
  failed: "failed";
6959
+ blocked: "blocked";
4625
6960
  applying: "applying";
4626
6961
  awaiting_confirmation: "awaiting_confirmation";
6962
+ waiting_for_idle: "waiting_for_idle";
4627
6963
  restarting: "restarting";
4628
6964
  succeeded: "succeeded";
4629
- blocked: "blocked";
4630
6965
  }>;
4631
6966
  export declare const UpdateNotificationActionSchema: z.ZodObject<{
4632
6967
  id: z.ZodString;
@@ -4652,16 +6987,17 @@ export declare const UpdateNotificationSchema: z.ZodObject<{
4652
6987
  phase: z.ZodUnion<readonly [z.ZodEnum<{
4653
6988
  unknown: "unknown";
4654
6989
  failed: "failed";
6990
+ blocked: "blocked";
4655
6991
  applying: "applying";
4656
6992
  awaiting_confirmation: "awaiting_confirmation";
6993
+ waiting_for_idle: "waiting_for_idle";
4657
6994
  restarting: "restarting";
4658
6995
  succeeded: "succeeded";
4659
- blocked: "blocked";
4660
6996
  }>, z.ZodString]>;
4661
6997
  severity: z.ZodEnum<{
6998
+ info: "info";
4662
6999
  warning: "warning";
4663
7000
  critical: "critical";
4664
- info: "info";
4665
7001
  }>;
4666
7002
  persistent: z.ZodBoolean;
4667
7003
  requires_acknowledgement: z.ZodBoolean;
@@ -4721,16 +7057,17 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
4721
7057
  phase: z.ZodUnion<readonly [z.ZodEnum<{
4722
7058
  unknown: "unknown";
4723
7059
  failed: "failed";
7060
+ blocked: "blocked";
4724
7061
  applying: "applying";
4725
7062
  awaiting_confirmation: "awaiting_confirmation";
7063
+ waiting_for_idle: "waiting_for_idle";
4726
7064
  restarting: "restarting";
4727
7065
  succeeded: "succeeded";
4728
- blocked: "blocked";
4729
7066
  }>, z.ZodString]>;
4730
7067
  severity: z.ZodEnum<{
7068
+ info: "info";
4731
7069
  warning: "warning";
4732
7070
  critical: "critical";
4733
- info: "info";
4734
7071
  }>;
4735
7072
  persistent: z.ZodBoolean;
4736
7073
  requires_acknowledgement: z.ZodBoolean;
@@ -4773,16 +7110,17 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
4773
7110
  phase: z.ZodUnion<readonly [z.ZodEnum<{
4774
7111
  unknown: "unknown";
4775
7112
  failed: "failed";
7113
+ blocked: "blocked";
4776
7114
  applying: "applying";
4777
7115
  awaiting_confirmation: "awaiting_confirmation";
7116
+ waiting_for_idle: "waiting_for_idle";
4778
7117
  restarting: "restarting";
4779
7118
  succeeded: "succeeded";
4780
- blocked: "blocked";
4781
7119
  }>, z.ZodString]>;
4782
7120
  severity: z.ZodEnum<{
7121
+ info: "info";
4783
7122
  warning: "warning";
4784
7123
  critical: "critical";
4785
- info: "info";
4786
7124
  }>;
4787
7125
  persistent: z.ZodBoolean;
4788
7126
  requires_acknowledgement: z.ZodBoolean;
@@ -4822,6 +7160,28 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
4822
7160
  }, z.core.$strip>;
4823
7161
  export type UpdateNotification = z.infer<typeof UpdateNotificationSchema>;
4824
7162
  export type UpdateNotifications = z.infer<typeof UpdateNotificationsSchema>;
7163
+ /** TAL-806: a plugin setting as Settings shows it; `locked` marks a secret the server's launch environment supplies, so an edit would not take effect. */
7164
+ export declare const PluginSettingViewSchema: z.ZodObject<{
7165
+ key: z.ZodString;
7166
+ type: z.ZodEnum<{
7167
+ string: "string";
7168
+ number: "number";
7169
+ boolean: "boolean";
7170
+ enum: "enum";
7171
+ json: "json";
7172
+ secret: "secret";
7173
+ }>;
7174
+ label: z.ZodString;
7175
+ description: z.ZodString;
7176
+ required: z.ZodBoolean;
7177
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
7178
+ default: z.ZodOptional<z.ZodUnknown>;
7179
+ value: z.ZodOptional<z.ZodUnknown>;
7180
+ env: z.ZodOptional<z.ZodString>;
7181
+ has_value: z.ZodOptional<z.ZodBoolean>;
7182
+ locked: z.ZodOptional<z.ZodBoolean>;
7183
+ }, z.core.$strip>;
7184
+ export type PluginSettingView = z.infer<typeof PluginSettingViewSchema>;
4825
7185
  export declare const PluginSchema: z.ZodObject<{
4826
7186
  key: z.ZodString;
4827
7187
  name: z.ZodOptional<z.ZodString>;
@@ -4832,7 +7192,32 @@ export declare const PluginSchema: z.ZodObject<{
4832
7192
  activation: z.ZodOptional<z.ZodString>;
4833
7193
  is_active_provider: z.ZodOptional<z.ZodBoolean>;
4834
7194
  hooks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
7195
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
7196
+ key: z.ZodString;
7197
+ type: z.ZodEnum<{
7198
+ string: "string";
7199
+ number: "number";
7200
+ boolean: "boolean";
7201
+ enum: "enum";
7202
+ json: "json";
7203
+ secret: "secret";
7204
+ }>;
7205
+ label: z.ZodString;
7206
+ description: z.ZodString;
7207
+ required: z.ZodBoolean;
7208
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
7209
+ default: z.ZodOptional<z.ZodUnknown>;
7210
+ value: z.ZodOptional<z.ZodUnknown>;
7211
+ env: z.ZodOptional<z.ZodString>;
7212
+ has_value: z.ZodOptional<z.ZodBoolean>;
7213
+ locked: z.ZodOptional<z.ZodBoolean>;
7214
+ }, z.core.$strip>>>;
4835
7215
  }, z.core.$loose>;
7216
+ /**
7217
+ * `read_only` (TAL-806): this session may not save plugin `settings` (not the server owner, or no sidecar).
7218
+ * `plugin_isolation_advisory` (TAL-820): more than one profile has third-party plugins installed and one of those runs them
7219
+ * `in_process`, so Settings recommends `plugins.isolation: host`; Talaria never sets the mode.
7220
+ */
4836
7221
  export declare const PluginsSchema: z.ZodObject<{
4837
7222
  plugins: z.ZodArray<z.ZodObject<{
4838
7223
  key: z.ZodString;
@@ -4844,11 +7229,32 @@ export declare const PluginsSchema: z.ZodObject<{
4844
7229
  activation: z.ZodOptional<z.ZodString>;
4845
7230
  is_active_provider: z.ZodOptional<z.ZodBoolean>;
4846
7231
  hooks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
7232
+ settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
7233
+ key: z.ZodString;
7234
+ type: z.ZodEnum<{
7235
+ string: "string";
7236
+ number: "number";
7237
+ boolean: "boolean";
7238
+ enum: "enum";
7239
+ json: "json";
7240
+ secret: "secret";
7241
+ }>;
7242
+ label: z.ZodString;
7243
+ description: z.ZodString;
7244
+ required: z.ZodBoolean;
7245
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
7246
+ default: z.ZodOptional<z.ZodUnknown>;
7247
+ value: z.ZodOptional<z.ZodUnknown>;
7248
+ env: z.ZodOptional<z.ZodString>;
7249
+ has_value: z.ZodOptional<z.ZodBoolean>;
7250
+ locked: z.ZodOptional<z.ZodBoolean>;
7251
+ }, z.core.$strip>>>;
4847
7252
  }, z.core.$loose>>;
4848
7253
  empty: z.ZodOptional<z.ZodBoolean>;
4849
7254
  read_only: z.ZodOptional<z.ZodBoolean>;
4850
7255
  supported_hooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
4851
7256
  unavailable: z.ZodOptional<z.ZodBoolean>;
7257
+ plugin_isolation_advisory: z.ZodOptional<z.ZodBoolean>;
4852
7258
  }, z.core.$loose>;
4853
7259
  export declare const McpServerSchema: z.ZodObject<{
4854
7260
  name: z.ZodString;
@@ -4885,6 +7291,158 @@ export declare const McpServersSchema: z.ZodObject<{
4885
7291
  reload_required: z.ZodOptional<z.ZodBoolean>;
4886
7292
  toggle_supported: z.ZodOptional<z.ZodBoolean>;
4887
7293
  }, z.core.$loose>;
7294
+ /** TAL-818: one connected account of a Nous tool-gateway app; `name` is its alias, else the vendor label. `problem` is its gateway status while it is not active, else null. */
7295
+ export declare const ConnectorAccountViewSchema: z.ZodObject<{
7296
+ connection_id: z.ZodString;
7297
+ name: z.ZodString;
7298
+ problem: z.ZodNullable<z.ZodEnum<{
7299
+ pending: "pending";
7300
+ failed: "failed";
7301
+ expired: "expired";
7302
+ revoked: "revoked";
7303
+ inactive: "inactive";
7304
+ }>>;
7305
+ status_reason: z.ZodNullable<z.ZodString>;
7306
+ active: z.ZodBoolean;
7307
+ created_at: z.ZodString;
7308
+ }, z.core.$strip>;
7309
+ /**
7310
+ * TAL-818: one app on the Connectors page. `accounts` are its live accounts, active first. `enabled`: Hermes may use it (the
7311
+ * member rule allows it and no other layer locks it). `org_locked` means an organization or role rule keeps it off whatever the member rule says. `rules_editable`: the switch
7312
+ * may change the member rule (readable rules and no lock). `tools_off` counts the tools the member rules turn off.
7313
+ */
7314
+ export declare const ConnectorViewSchema: z.ZodObject<{
7315
+ slug: z.ZodString;
7316
+ name: z.ZodString;
7317
+ description: z.ZodString;
7318
+ category: z.ZodString;
7319
+ logo_url: z.ZodNullable<z.ZodString>;
7320
+ connected: z.ZodBoolean;
7321
+ accounts: z.ZodArray<z.ZodObject<{
7322
+ connection_id: z.ZodString;
7323
+ name: z.ZodString;
7324
+ problem: z.ZodNullable<z.ZodEnum<{
7325
+ pending: "pending";
7326
+ failed: "failed";
7327
+ expired: "expired";
7328
+ revoked: "revoked";
7329
+ inactive: "inactive";
7330
+ }>>;
7331
+ status_reason: z.ZodNullable<z.ZodString>;
7332
+ active: z.ZodBoolean;
7333
+ created_at: z.ZodString;
7334
+ }, z.core.$strip>>;
7335
+ enabled: z.ZodBoolean;
7336
+ org_locked: z.ZodBoolean;
7337
+ rules_editable: z.ZodBoolean;
7338
+ tools_off: z.ZodNumber;
7339
+ }, z.core.$strip>;
7340
+ /**
7341
+ * TAL-818: the Connectors page. `available` is the Agent's connectors gate; false hides the page. `policy_revision` is the
7342
+ * member rules' revision every rule change sends back; null when the rules are read-only (no member layer, or unreadable),
7343
+ * so no switch changes them. `rules_error`: why the rules could not be read; every app then reads off (fails closed).
7344
+ */
7345
+ export declare const ConnectorsPageSchema: z.ZodObject<{
7346
+ available: z.ZodBoolean;
7347
+ connectors: z.ZodArray<z.ZodObject<{
7348
+ slug: z.ZodString;
7349
+ name: z.ZodString;
7350
+ description: z.ZodString;
7351
+ category: z.ZodString;
7352
+ logo_url: z.ZodNullable<z.ZodString>;
7353
+ connected: z.ZodBoolean;
7354
+ accounts: z.ZodArray<z.ZodObject<{
7355
+ connection_id: z.ZodString;
7356
+ name: z.ZodString;
7357
+ problem: z.ZodNullable<z.ZodEnum<{
7358
+ pending: "pending";
7359
+ failed: "failed";
7360
+ expired: "expired";
7361
+ revoked: "revoked";
7362
+ inactive: "inactive";
7363
+ }>>;
7364
+ status_reason: z.ZodNullable<z.ZodString>;
7365
+ active: z.ZodBoolean;
7366
+ created_at: z.ZodString;
7367
+ }, z.core.$strip>>;
7368
+ enabled: z.ZodBoolean;
7369
+ org_locked: z.ZodBoolean;
7370
+ rules_editable: z.ZodBoolean;
7371
+ tools_off: z.ZodNumber;
7372
+ }, z.core.$strip>>;
7373
+ policy_revision: z.ZodNullable<z.ZodString>;
7374
+ rules_error: z.ZodNullable<z.ZodString>;
7375
+ }, z.core.$strip>;
7376
+ /**
7377
+ * TAL-818: one app's tools: `enabled`: Hermes may use it (the member rules leave it on and nothing locks it); `locked`: an
7378
+ * organization or role rule (by name or tag) keeps it off. `editable`: its switch may change the member rule (readable rules, the app on in them, and no lock).
7379
+ */
7380
+ export declare const ConnectorToolsViewSchema: z.ZodObject<{
7381
+ connector: z.ZodString;
7382
+ policy_revision: z.ZodNullable<z.ZodString>;
7383
+ tools: z.ZodArray<z.ZodObject<{
7384
+ slug: z.ZodString;
7385
+ name: z.ZodString;
7386
+ description: z.ZodString;
7387
+ facet: z.ZodEnum<{
7388
+ read: "read";
7389
+ write: "write";
7390
+ destructive: "destructive";
7391
+ unclassified: "unclassified";
7392
+ }>;
7393
+ deprecated: z.ZodBoolean;
7394
+ enabled: z.ZodBoolean;
7395
+ locked: z.ZodBoolean;
7396
+ editable: z.ZodBoolean;
7397
+ }, z.core.$strip>>;
7398
+ }, z.core.$strip>;
7399
+ /**
7400
+ * TAL-818: a connection operation, from the Connectors page's Connect or a chat's `manage_connections` card. Each target's
7401
+ * `connect_url` is the authorization link while it waits on one; `actions` are the moves the user may make on it now, and
7402
+ * `env_fields` the credentials an `approve` sends, each with its `label`. `can_continue`: the card may end the wait for the
7403
+ * rest (chat only). `outcome` is null while the operation is open, then `connected` when every target connected.
7404
+ */
7405
+ export declare const ConnectorOperationViewSchema: z.ZodObject<{
7406
+ op_id: z.ZodString;
7407
+ settled: z.ZodBoolean;
7408
+ outcome: z.ZodNullable<z.ZodEnum<{
7409
+ connected: "connected";
7410
+ not_connected: "not_connected";
7411
+ }>>;
7412
+ can_continue: z.ZodBoolean;
7413
+ tool_call_id: z.ZodNullable<z.ZodString>;
7414
+ targets: z.ZodArray<z.ZodObject<{
7415
+ name: z.ZodString;
7416
+ title: z.ZodString;
7417
+ kind: z.ZodString;
7418
+ state: z.ZodEnum<{
7419
+ pending: "pending";
7420
+ skipped: "skipped";
7421
+ initiated: "initiated";
7422
+ connected: "connected";
7423
+ failed: "failed";
7424
+ expired: "expired";
7425
+ not_connected: "not_connected";
7426
+ }>;
7427
+ detail: z.ZodString;
7428
+ connect_url: z.ZodNullable<z.ZodString>;
7429
+ actions: z.ZodArray<z.ZodEnum<{
7430
+ retry: "retry";
7431
+ skip: "skip";
7432
+ approve: "approve";
7433
+ }>>;
7434
+ env_fields: z.ZodArray<z.ZodObject<{
7435
+ name: z.ZodString;
7436
+ label: z.ZodString;
7437
+ required: z.ZodBoolean;
7438
+ secret: z.ZodBoolean;
7439
+ }, z.core.$strip>>;
7440
+ }, z.core.$strip>>;
7441
+ }, z.core.$strip>;
7442
+ export type ConnectorsPage = z.infer<typeof ConnectorsPageSchema>;
7443
+ export type ConnectorView = z.infer<typeof ConnectorViewSchema>;
7444
+ export type ConnectorToolsView = z.infer<typeof ConnectorToolsViewSchema>;
7445
+ export type ConnectorOperationView = z.infer<typeof ConnectorOperationViewSchema>;
4888
7446
  export declare const McpToolsSchema: z.ZodObject<{
4889
7447
  tools: z.ZodArray<z.ZodObject<{
4890
7448
  name: z.ZodOptional<z.ZodString>;
@@ -4905,6 +7463,75 @@ export declare const NotesSourcesSchema: z.ZodObject<{
4905
7463
  attach_supported: z.ZodOptional<z.ZodBoolean>;
4906
7464
  automatic_recall_unchanged: z.ZodOptional<z.ZodBoolean>;
4907
7465
  }, z.core.$loose>;
7466
+ /** Joplin search hit: bounded, redacted display text and a snippet around the query; `updated_time` is Joplin's raw value. */
7467
+ export declare const NoteSearchResultSchema: z.ZodObject<{
7468
+ id: z.ZodString;
7469
+ title: z.ZodString;
7470
+ snippet: z.ZodString;
7471
+ parent_id: z.ZodString;
7472
+ updated_time: z.ZodUnknown;
7473
+ source: z.ZodLiteral<"joplin">;
7474
+ }, z.core.$strip>;
7475
+ export declare const NotesSearchSchema: z.ZodObject<{
7476
+ source: z.ZodLiteral<"joplin">;
7477
+ query: z.ZodString;
7478
+ results: z.ZodArray<z.ZodObject<{
7479
+ id: z.ZodString;
7480
+ title: z.ZodString;
7481
+ snippet: z.ZodString;
7482
+ parent_id: z.ZodString;
7483
+ updated_time: z.ZodUnknown;
7484
+ source: z.ZodLiteral<"joplin">;
7485
+ }, z.core.$strip>>;
7486
+ }, z.core.$strip>;
7487
+ /** One Joplin note for preview: `body` is cut at 50,000 characters (with a notice) and redacted. */
7488
+ export declare const NoteItemSchema: z.ZodObject<{
7489
+ source: z.ZodLiteral<"joplin">;
7490
+ note: z.ZodObject<{
7491
+ id: z.ZodString;
7492
+ title: z.ZodString;
7493
+ body: z.ZodString;
7494
+ parent_id: z.ZodString;
7495
+ updated_time: z.ZodUnknown;
7496
+ created_time: z.ZodUnknown;
7497
+ source: z.ZodLiteral<"joplin">;
7498
+ }, z.core.$strip>;
7499
+ }, z.core.$strip>;
7500
+ /** LLM wiki summary: counts and timestamps only, never page bodies or the wiki path. `error` names the exception type when `status` is `error`. */
7501
+ export declare const WikiStatusSchema: z.ZodObject<{
7502
+ available: z.ZodBoolean;
7503
+ enabled: z.ZodBoolean;
7504
+ status: z.ZodEnum<{
7505
+ error: "error";
7506
+ ready: "ready";
7507
+ empty: "empty";
7508
+ missing: "missing";
7509
+ not_directory: "not_directory";
7510
+ }>;
7511
+ entry_count: z.ZodNumber;
7512
+ page_count: z.ZodNumber;
7513
+ raw_source_count: z.ZodNumber;
7514
+ last_updated: z.ZodNullable<z.ZodString>;
7515
+ last_writer: z.ZodString;
7516
+ path_configured: z.ZodBoolean;
7517
+ path_source: z.ZodString;
7518
+ toggle_available: z.ZodLiteral<false>;
7519
+ toggle_reason: z.ZodString;
7520
+ docs_url: z.ZodString;
7521
+ error: z.ZodOptional<z.ZodString>;
7522
+ }, z.core.$strip>;
7523
+ export declare const WikiBrowseSchema: z.ZodObject<{
7524
+ pages: z.ZodArray<z.ZodObject<{
7525
+ name: z.ZodString;
7526
+ path: z.ZodString;
7527
+ size: z.ZodNumber;
7528
+ mtime: z.ZodNumber;
7529
+ }, z.core.$strip>>;
7530
+ }, z.core.$strip>;
7531
+ export declare const WikiPageSchema: z.ZodObject<{
7532
+ content: z.ZodString;
7533
+ path: z.ZodString;
7534
+ }, z.core.$strip>;
4908
7535
  export declare const TodoItemSchema: z.ZodObject<{
4909
7536
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
4910
7537
  text: z.ZodOptional<z.ZodString>;
@@ -5004,12 +7631,32 @@ export declare const OnboardingStatusSchema: z.ZodObject<{
5004
7631
  last: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5005
7632
  }, z.core.$loose>>;
5006
7633
  models: z.ZodOptional<z.ZodObject<{
7634
+ availability: z.ZodOptional<z.ZodObject<{
7635
+ status: z.ZodEnum<{
7636
+ unavailable: "unavailable";
7637
+ stale: "stale";
7638
+ available: "available";
7639
+ }>;
7640
+ authoritative: z.ZodBoolean;
7641
+ unavailable_reason: z.ZodNullable<z.ZodString>;
7642
+ generation: z.ZodString;
7643
+ }, z.core.$strip>>;
5007
7644
  active_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5008
7645
  default_model: z.ZodOptional<z.ZodString>;
5009
7646
  default_provider_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5010
7647
  default_bare_id: z.ZodOptional<z.ZodString>;
5011
7648
  default_option_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5012
7649
  groups: z.ZodArray<z.ZodObject<{
7650
+ availability: z.ZodOptional<z.ZodObject<{
7651
+ status: z.ZodEnum<{
7652
+ unavailable: "unavailable";
7653
+ stale: "stale";
7654
+ available: "available";
7655
+ }>;
7656
+ authoritative: z.ZodBoolean;
7657
+ unavailable_reason: z.ZodNullable<z.ZodString>;
7658
+ generation: z.ZodString;
7659
+ }, z.core.$strip>>;
5013
7660
  provider: z.ZodString;
5014
7661
  provider_id: z.ZodOptional<z.ZodString>;
5015
7662
  models: z.ZodArray<z.ZodObject<{
@@ -5019,6 +7666,23 @@ export declare const OnboardingStatusSchema: z.ZodObject<{
5019
7666
  provider_id: z.ZodOptional<z.ZodString>;
5020
7667
  bare_id: z.ZodOptional<z.ZodString>;
5021
7668
  supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
7669
+ supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
7670
+ id: z.ZodEnum<{
7671
+ standard: "standard";
7672
+ priority: "priority";
7673
+ ultrafast: "ultrafast";
7674
+ fast: "fast";
7675
+ }>;
7676
+ service_tier: z.ZodEnum<{
7677
+ default: "default";
7678
+ priority: "priority";
7679
+ ultrafast: "ultrafast";
7680
+ }>;
7681
+ }, z.core.$strip>>>;
7682
+ limit: z.ZodOptional<z.ZodObject<{
7683
+ scope: z.ZodLiteral<"model">;
7684
+ resets_at: z.ZodString;
7685
+ }, z.core.$strip>>;
5022
7686
  }, z.core.$loose>>;
5023
7687
  extra_models: z.ZodOptional<z.ZodArray<z.ZodObject<{
5024
7688
  id: z.ZodString;
@@ -5027,7 +7691,38 @@ export declare const OnboardingStatusSchema: z.ZodObject<{
5027
7691
  provider_id: z.ZodOptional<z.ZodString>;
5028
7692
  bare_id: z.ZodOptional<z.ZodString>;
5029
7693
  supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
7694
+ supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
7695
+ id: z.ZodEnum<{
7696
+ standard: "standard";
7697
+ priority: "priority";
7698
+ ultrafast: "ultrafast";
7699
+ fast: "fast";
7700
+ }>;
7701
+ service_tier: z.ZodEnum<{
7702
+ default: "default";
7703
+ priority: "priority";
7704
+ ultrafast: "ultrafast";
7705
+ }>;
7706
+ }, z.core.$strip>>>;
7707
+ limit: z.ZodOptional<z.ZodObject<{
7708
+ scope: z.ZodLiteral<"model">;
7709
+ resets_at: z.ZodString;
7710
+ }, z.core.$strip>>;
5030
7711
  }, z.core.$loose>>>;
7712
+ limit: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7713
+ scope: z.ZodLiteral<"account">;
7714
+ resets_at: z.ZodString;
7715
+ }, z.core.$strip>, z.ZodObject<{
7716
+ scope: z.ZodLiteral<"models">;
7717
+ models: z.ZodRecord<z.ZodString, z.ZodString>;
7718
+ }, z.core.$strip>], "scope">>;
7719
+ quota_level: z.ZodOptional<z.ZodEnum<{
7720
+ unavailable: "unavailable";
7721
+ stale: "stale";
7722
+ warning: "warning";
7723
+ healthy: "healthy";
7724
+ critical: "critical";
7725
+ }>>;
5031
7726
  }, z.core.$loose>>;
5032
7727
  aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5033
7728
  configured_model_badges: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -5073,10 +7768,10 @@ export declare const CronRepeatSchema: z.ZodObject<{
5073
7768
  export declare const CronDerivedStateSchema: z.ZodEnum<{
5074
7769
  error: "error";
5075
7770
  active: "active";
7771
+ paused: "paused";
5076
7772
  off: "off";
5077
7773
  needs_attention: "needs_attention";
5078
7774
  schedule_error: "schedule_error";
5079
- paused: "paused";
5080
7775
  }>;
5081
7776
  export type CronDerivedState = z.infer<typeof CronDerivedStateSchema>;
5082
7777
  export declare const CronJobViewSchema: z.ZodObject<{
@@ -5131,15 +7826,31 @@ export declare const CronJobViewSchema: z.ZodObject<{
5131
7826
  derived_state: z.ZodOptional<z.ZodEnum<{
5132
7827
  error: "error";
5133
7828
  active: "active";
7829
+ paused: "paused";
5134
7830
  off: "off";
5135
7831
  needs_attention: "needs_attention";
5136
7832
  schedule_error: "schedule_error";
5137
- paused: "paused";
5138
7833
  }>>;
5139
7834
  needs_attention: z.ZodOptional<z.ZodBoolean>;
5140
7835
  resumable: z.ZodOptional<z.ZodBoolean>;
7836
+ attention_hint: z.ZodNullable<z.ZodEnum<{
7837
+ croniter_missing: "croniter_missing";
7838
+ }>>;
7839
+ last_failure: z.ZodNullable<z.ZodObject<{
7840
+ at: z.ZodNullable<z.ZodNumber>;
7841
+ detail: z.ZodString;
7842
+ }, z.core.$strip>>;
5141
7843
  }, z.core.$loose>;
5142
7844
  export type CronJob = z.infer<typeof CronJobViewSchema>;
7845
+ /** TAL-810: a listed profile's cron store whose writes fail (full disk, read-only mount, permissions), so its scheduler skips every run. `error` and `fix` are the Agent's text; `since` is the last write that landed (epoch seconds), null when unknown. */
7846
+ export declare const CronStoreHealthSchema: z.ZodObject<{
7847
+ profile: z.ZodString;
7848
+ store: z.ZodString;
7849
+ error: z.ZodString;
7850
+ fix: z.ZodString;
7851
+ since: z.ZodNullable<z.ZodNumber>;
7852
+ }, z.core.$strip>;
7853
+ export type CronStoreHealth = z.infer<typeof CronStoreHealthSchema>;
5143
7854
  export declare const CronsSchema: z.ZodObject<{
5144
7855
  jobs: z.ZodArray<z.ZodObject<{
5145
7856
  read_only: z.ZodOptional<z.ZodBoolean>;
@@ -5193,18 +7904,33 @@ export declare const CronsSchema: z.ZodObject<{
5193
7904
  derived_state: z.ZodOptional<z.ZodEnum<{
5194
7905
  error: "error";
5195
7906
  active: "active";
7907
+ paused: "paused";
5196
7908
  off: "off";
5197
7909
  needs_attention: "needs_attention";
5198
7910
  schedule_error: "schedule_error";
5199
- paused: "paused";
5200
7911
  }>>;
5201
7912
  needs_attention: z.ZodOptional<z.ZodBoolean>;
5202
7913
  resumable: z.ZodOptional<z.ZodBoolean>;
7914
+ attention_hint: z.ZodNullable<z.ZodEnum<{
7915
+ croniter_missing: "croniter_missing";
7916
+ }>>;
7917
+ last_failure: z.ZodNullable<z.ZodObject<{
7918
+ at: z.ZodNullable<z.ZodNumber>;
7919
+ detail: z.ZodString;
7920
+ }, z.core.$strip>>;
5203
7921
  }, z.core.$loose>>;
7922
+ ordered: z.ZodOptional<z.ZodBoolean>;
5204
7923
  active_profile: z.ZodOptional<z.ZodString>;
5205
7924
  all_profiles: z.ZodOptional<z.ZodBoolean>;
5206
7925
  other_profile_count: z.ZodOptional<z.ZodNumber>;
5207
7926
  cron_unavailable: z.ZodOptional<z.ZodBoolean>;
7927
+ unwritable_stores: z.ZodArray<z.ZodObject<{
7928
+ profile: z.ZodString;
7929
+ store: z.ZodString;
7930
+ error: z.ZodString;
7931
+ fix: z.ZodString;
7932
+ since: z.ZodNullable<z.ZodNumber>;
7933
+ }, z.core.$strip>>;
5208
7934
  }, z.core.$loose>;
5209
7935
  export type Crons = z.infer<typeof CronsSchema>;
5210
7936
  export declare const CronContextSourcesSchema: z.ZodObject<{
@@ -5303,13 +8029,20 @@ export declare const CronMutationSchema: z.ZodObject<{
5303
8029
  derived_state: z.ZodOptional<z.ZodEnum<{
5304
8030
  error: "error";
5305
8031
  active: "active";
8032
+ paused: "paused";
5306
8033
  off: "off";
5307
8034
  needs_attention: "needs_attention";
5308
8035
  schedule_error: "schedule_error";
5309
- paused: "paused";
5310
8036
  }>>;
5311
8037
  needs_attention: z.ZodOptional<z.ZodBoolean>;
5312
8038
  resumable: z.ZodOptional<z.ZodBoolean>;
8039
+ attention_hint: z.ZodNullable<z.ZodEnum<{
8040
+ croniter_missing: "croniter_missing";
8041
+ }>>;
8042
+ last_failure: z.ZodNullable<z.ZodObject<{
8043
+ at: z.ZodNullable<z.ZodNumber>;
8044
+ detail: z.ZodString;
8045
+ }, z.core.$strip>>;
5313
8046
  }, z.core.$loose>>;
5314
8047
  job_id: z.ZodOptional<z.ZodString>;
5315
8048
  status: z.ZodOptional<z.ZodString>;
@@ -5359,9 +8092,11 @@ export declare const CronHistorySchema: z.ZodObject<{
5359
8092
  offset: z.ZodOptional<z.ZodNumber>;
5360
8093
  }, z.core.$loose>;
5361
8094
  export type CronHistory = z.infer<typeof CronHistorySchema>;
8095
+ /** `response` is server-extracted (TAL-599): the agent's reply after the run file's `## Response` heading, else the whole text. */
5362
8096
  export declare const CronRunSchema: z.ZodObject<{
5363
8097
  content: z.ZodOptional<z.ZodString>;
5364
8098
  snippet: z.ZodOptional<z.ZodString>;
8099
+ response: z.ZodOptional<z.ZodString>;
5365
8100
  usage: z.ZodOptional<z.ZodObject<{
5366
8101
  input_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5367
8102
  output_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -5416,8 +8151,10 @@ export declare const KanbanTaskViewSchema: z.ZodObject<{
5416
8151
  created_at: z.ZodOptional<z.ZodUnknown>;
5417
8152
  updated_at: z.ZodOptional<z.ZodUnknown>;
5418
8153
  }, z.core.$loose>;
8154
+ /** A board column in the Agent workflow's order (TAL-796): `name` is the status key, `label` the Agent's English label. */
5419
8155
  export declare const KanbanColumnSchema: z.ZodObject<{
5420
8156
  name: z.ZodString;
8157
+ label: z.ZodString;
5421
8158
  tasks: z.ZodArray<z.ZodObject<{
5422
8159
  available_actions: z.ZodObject<{
5423
8160
  block: z.ZodBoolean;
@@ -5446,6 +8183,7 @@ export declare const KanbanLaneSchema: z.ZodObject<{
5446
8183
  count: z.ZodNumber;
5447
8184
  columns: z.ZodArray<z.ZodObject<{
5448
8185
  name: z.ZodString;
8186
+ label: z.ZodString;
5449
8187
  tasks: z.ZodArray<z.ZodObject<{
5450
8188
  available_actions: z.ZodObject<{
5451
8189
  block: z.ZodBoolean;
@@ -5472,6 +8210,7 @@ export declare const KanbanLaneSchema: z.ZodObject<{
5472
8210
  export declare const KanbanBoardViewSchema: z.ZodObject<{
5473
8211
  columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
5474
8212
  name: z.ZodString;
8213
+ label: z.ZodString;
5475
8214
  tasks: z.ZodArray<z.ZodObject<{
5476
8215
  available_actions: z.ZodObject<{
5477
8216
  block: z.ZodBoolean;
@@ -5501,12 +8240,14 @@ export declare const KanbanBoardViewSchema: z.ZodObject<{
5501
8240
  tenants: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
5502
8241
  changed: z.ZodOptional<z.ZodBoolean>;
5503
8242
  bulk_move_targets: z.ZodArray<z.ZodString>;
8243
+ create_statuses: z.ZodArray<z.ZodString>;
5504
8244
  lane_by_profile: z.ZodBoolean;
5505
8245
  lanes: z.ZodOptional<z.ZodArray<z.ZodObject<{
5506
8246
  assignee: z.ZodNullable<z.ZodString>;
5507
8247
  count: z.ZodNumber;
5508
8248
  columns: z.ZodArray<z.ZodObject<{
5509
8249
  name: z.ZodString;
8250
+ label: z.ZodString;
5510
8251
  tasks: z.ZodArray<z.ZodObject<{
5511
8252
  available_actions: z.ZodObject<{
5512
8253
  block: z.ZodBoolean;