@maudecode/talaria-web-contracts 1.19.0 → 1.20.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 (66) hide show
  1. package/dist/context-detail.d.ts +75 -0
  2. package/dist/context-detail.js +18 -0
  3. package/dist/context-detail.js.map +1 -0
  4. package/dist/gateway-session.d.ts +253 -7
  5. package/dist/gateway-session.js +63 -3
  6. package/dist/gateway-session.js.map +1 -1
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.js +1 -0
  9. package/dist/index.js.map +1 -1
  10. package/dist/router.d.ts +1398 -191
  11. package/dist/routes/automation.d.ts +9 -7
  12. package/dist/routes/automation.js +1 -1
  13. package/dist/routes/automation.js.map +1 -1
  14. package/dist/routes/chat.d.ts +303 -40
  15. package/dist/routes/chat.js +4 -3
  16. package/dist/routes/chat.js.map +1 -1
  17. package/dist/routes/core.d.ts +4 -4
  18. package/dist/routes/git.d.ts +9 -0
  19. package/dist/routes/git.js +6 -1
  20. package/dist/routes/git.js.map +1 -1
  21. package/dist/routes/raw.js +9 -5
  22. package/dist/routes/raw.js.map +1 -1
  23. package/dist/routes/sessions.d.ts +921 -124
  24. package/dist/routes/sessions.js +6 -0
  25. package/dist/routes/sessions.js.map +1 -1
  26. package/dist/routes/settings.d.ts +29 -13
  27. package/dist/routes/settings.js +3 -2
  28. package/dist/routes/settings.js.map +1 -1
  29. package/dist/routes/tools.d.ts +314 -30
  30. package/dist/routes/tools.js +14 -4
  31. package/dist/routes/tools.js.map +1 -1
  32. package/dist/routes/workspaces.d.ts +4 -4
  33. package/dist/sidecar/methods.d.ts +816 -19
  34. package/dist/sidecar/methods.js +2 -2
  35. package/dist/sidecar/methods.js.map +1 -1
  36. package/dist/sidecar/namespaces.d.ts +959 -28
  37. package/dist/sidecar/namespaces.js +101 -14
  38. package/dist/sidecar/namespaces.js.map +1 -1
  39. package/dist/sidecar/rpc.d.ts +1 -0
  40. package/dist/sidecar/rpc.js +2 -0
  41. package/dist/sidecar/rpc.js.map +1 -1
  42. package/dist/sidecar/runtime.d.ts +13 -0
  43. package/dist/sidecar/runtime.js +9 -0
  44. package/dist/sidecar/runtime.js.map +1 -1
  45. package/dist/sidecar/version.d.ts +1 -1
  46. package/dist/sidecar/version.js +1 -1
  47. package/dist/sse.d.ts +83 -12
  48. package/dist/sse.js +8 -2
  49. package/dist/sse.js.map +1 -1
  50. package/dist/views.d.ts +584 -103
  51. package/dist/views.js +54 -11
  52. package/dist/views.js.map +1 -1
  53. package/fixtures/sidecar/aux.json +8 -0
  54. package/fixtures/sidecar/chat.json +14 -0
  55. package/fixtures/sidecar/checkpoints.json +7 -2
  56. package/fixtures/sidecar/context-detail.json +77 -0
  57. package/fixtures/sidecar/cron.json +3 -1
  58. package/fixtures/sidecar/dashboard_plugins.json +59 -0
  59. package/fixtures/sidecar/gateway.json +163 -0
  60. package/fixtures/sidecar/plugin-catalog.json +4 -0
  61. package/fixtures/sidecar/plugins.json +56 -1
  62. package/fixtures/sidecar/process.json +32 -0
  63. package/fixtures/sidecar/rpc.json +4 -0
  64. package/fixtures/sidecar/runtime.json +3 -3
  65. package/fixtures/sidecar/state_db.json +10 -0
  66. package/package.json +1 -1
package/dist/views.d.ts CHANGED
@@ -24,8 +24,8 @@ export declare const AttachmentSchema: z.ZodObject<{
24
24
  export type Attachment = z.infer<typeof AttachmentSchema>;
25
25
  /** The server's display class for a tool call: clients map it to an icon and localized verb, and never classify names themselves. */
26
26
  export declare const ToolKindSchema: z.ZodEnum<{
27
- unknown: "unknown";
28
27
  memory: "memory";
28
+ unknown: "unknown";
29
29
  shell: "shell";
30
30
  read: "read";
31
31
  list: "list";
@@ -104,11 +104,21 @@ export declare const ToolEditDiffSchema: z.ZodObject<{
104
104
  }, z.core.$strip>>;
105
105
  }, z.core.$strip>;
106
106
  export type ToolEditDiff = z.infer<typeof ToolEditDiffSchema>;
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`. */
107
+ /** The latest server-normalized MCP update; never stored with the transcript. */
108
+ export declare const ToolProgressSchema: z.ZodObject<{
109
+ percent: z.ZodNullable<z.ZodNumber>;
110
+ message: z.ZodNullable<z.ZodString>;
111
+ }, z.core.$strip>;
112
+ export type ToolProgress = z.infer<typeof ToolProgressSchema>;
113
+ /** Shared tool display fields. Progress is ephemeral, absent on older servers and null after completion. */
108
114
  export declare const ToolDisplayFields: {
115
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
116
+ percent: z.ZodNullable<z.ZodNumber>;
117
+ message: z.ZodNullable<z.ZodString>;
118
+ }, z.core.$strip>>>;
109
119
  kind: z.ZodOptional<z.ZodEnum<{
110
- unknown: "unknown";
111
120
  memory: "memory";
121
+ unknown: "unknown";
112
122
  shell: "shell";
113
123
  read: "read";
114
124
  list: "list";
@@ -191,9 +201,13 @@ export declare const ToolCallSchema: z.ZodObject<{
191
201
  cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
192
202
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
193
203
  event_type: z.ZodOptional<z.ZodString>;
204
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
205
+ percent: z.ZodNullable<z.ZodNumber>;
206
+ message: z.ZodNullable<z.ZodString>;
207
+ }, z.core.$strip>>>;
194
208
  kind: z.ZodOptional<z.ZodEnum<{
195
- unknown: "unknown";
196
209
  memory: "memory";
210
+ unknown: "unknown";
197
211
  shell: "shell";
198
212
  read: "read";
199
213
  list: "list";
@@ -293,10 +307,10 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
293
307
  row_id: z.ZodString;
294
308
  order_index: z.ZodNumber;
295
309
  role: z.ZodEnum<{
310
+ steering: "steering";
296
311
  tool: "tool";
297
312
  reasoning: "reasoning";
298
313
  prose: "prose";
299
- steering: "steering";
300
314
  }>;
301
315
  created_at: z.ZodOptional<z.ZodNumber>;
302
316
  text: z.ZodOptional<z.ZodString>;
@@ -348,9 +362,13 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
348
362
  }, z.core.$strip>>;
349
363
  result_truncated: z.ZodOptional<z.ZodLiteral<true>>;
350
364
  result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
365
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
366
+ percent: z.ZodNullable<z.ZodNumber>;
367
+ message: z.ZodNullable<z.ZodString>;
368
+ }, z.core.$strip>>>;
351
369
  kind: z.ZodOptional<z.ZodEnum<{
352
- unknown: "unknown";
353
370
  memory: "memory";
371
+ unknown: "unknown";
354
372
  shell: "shell";
355
373
  read: "read";
356
374
  list: "list";
@@ -426,10 +444,10 @@ export declare const ActivitySceneSchema: z.ZodObject<{
426
444
  row_id: z.ZodString;
427
445
  order_index: z.ZodNumber;
428
446
  role: z.ZodEnum<{
447
+ steering: "steering";
429
448
  tool: "tool";
430
449
  reasoning: "reasoning";
431
450
  prose: "prose";
432
- steering: "steering";
433
451
  }>;
434
452
  created_at: z.ZodOptional<z.ZodNumber>;
435
453
  text: z.ZodOptional<z.ZodString>;
@@ -481,9 +499,13 @@ export declare const ActivitySceneSchema: z.ZodObject<{
481
499
  }, z.core.$strip>>;
482
500
  result_truncated: z.ZodOptional<z.ZodLiteral<true>>;
483
501
  result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
502
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
503
+ percent: z.ZodNullable<z.ZodNumber>;
504
+ message: z.ZodNullable<z.ZodString>;
505
+ }, z.core.$strip>>>;
484
506
  kind: z.ZodOptional<z.ZodEnum<{
485
- unknown: "unknown";
486
507
  memory: "memory";
508
+ unknown: "unknown";
487
509
  shell: "shell";
488
510
  read: "read";
489
511
  list: "list";
@@ -641,9 +663,13 @@ export declare const MessageSchema: z.ZodObject<{
641
663
  cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
642
664
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
643
665
  event_type: z.ZodOptional<z.ZodString>;
666
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
667
+ percent: z.ZodNullable<z.ZodNumber>;
668
+ message: z.ZodNullable<z.ZodString>;
669
+ }, z.core.$strip>>>;
644
670
  kind: z.ZodOptional<z.ZodEnum<{
645
- unknown: "unknown";
646
671
  memory: "memory";
672
+ unknown: "unknown";
647
673
  shell: "shell";
648
674
  read: "read";
649
675
  list: "list";
@@ -694,10 +720,10 @@ export declare const MessageSchema: z.ZodObject<{
694
720
  row_id: z.ZodString;
695
721
  order_index: z.ZodNumber;
696
722
  role: z.ZodEnum<{
723
+ steering: "steering";
697
724
  tool: "tool";
698
725
  reasoning: "reasoning";
699
726
  prose: "prose";
700
- steering: "steering";
701
727
  }>;
702
728
  created_at: z.ZodOptional<z.ZodNumber>;
703
729
  text: z.ZodOptional<z.ZodString>;
@@ -749,9 +775,13 @@ export declare const MessageSchema: z.ZodObject<{
749
775
  }, z.core.$strip>>;
750
776
  result_truncated: z.ZodOptional<z.ZodLiteral<true>>;
751
777
  result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
778
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
779
+ percent: z.ZodNullable<z.ZodNumber>;
780
+ message: z.ZodNullable<z.ZodString>;
781
+ }, z.core.$strip>>>;
752
782
  kind: z.ZodOptional<z.ZodEnum<{
753
- unknown: "unknown";
754
783
  memory: "memory";
784
+ unknown: "unknown";
755
785
  shell: "shell";
756
786
  read: "read";
757
787
  list: "list";
@@ -957,8 +987,8 @@ export type PendingSteer = z.infer<typeof PendingSteerSchema>;
957
987
  export declare const SessionNoticeSchema: z.ZodObject<{
958
988
  key: z.ZodString;
959
989
  level: z.ZodEnum<{
960
- success: "success";
961
990
  error: "error";
991
+ success: "success";
962
992
  info: "info";
963
993
  warn: "warn";
964
994
  }>;
@@ -1024,6 +1054,11 @@ export declare const BranchedFromSchema: z.ZodObject<{
1024
1054
  export type BranchedFrom = z.infer<typeof BranchedFromSchema>;
1025
1055
  /** Full session record from `GET /api/session` and mutations returning `session`. */
1026
1056
  export declare const SessionSchema: z.ZodObject<{
1057
+ execution_mode: z.ZodOptional<z.ZodEnum<{
1058
+ normal: "normal";
1059
+ ignore_config: "ignore_config";
1060
+ safe: "safe";
1061
+ }>>;
1027
1062
  enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1028
1063
  composer_draft: z.ZodOptional<z.ZodObject<{
1029
1064
  text: z.ZodOptional<z.ZodString>;
@@ -1048,18 +1083,31 @@ export declare const SessionSchema: z.ZodObject<{
1048
1083
  read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1049
1084
  owner_attachment: z.ZodOptional<z.ZodObject<{
1050
1085
  state: z.ZodEnum<{
1086
+ unavailable: "unavailable";
1087
+ refused: "refused";
1051
1088
  attached: "attached";
1052
1089
  stopped: "stopped";
1053
- unavailable: "unavailable";
1054
1090
  incompatible: "incompatible";
1055
- refused: "refused";
1056
1091
  }>;
1057
1092
  reason: z.ZodNullable<z.ZodString>;
1058
1093
  can_submit: z.ZodBoolean;
1059
1094
  can_interrupt: z.ZodBoolean;
1060
1095
  can_attach: z.ZodBoolean;
1096
+ restarting: z.ZodBoolean;
1061
1097
  revision: z.ZodNullable<z.ZodNumber>;
1062
1098
  execution_generation: z.ZodNullable<z.ZodNumber>;
1099
+ model_change: z.ZodOptional<z.ZodObject<{
1100
+ state: z.ZodEnum<{
1101
+ applied: "applied";
1102
+ deferred: "deferred";
1103
+ confirmation_required: "confirmation_required";
1104
+ refused: "refused";
1105
+ }>;
1106
+ message: z.ZodOptional<z.ZodString>;
1107
+ confirm: z.ZodOptional<z.ZodString>;
1108
+ model: z.ZodOptional<z.ZodString>;
1109
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1110
+ }, z.core.$strip>>;
1063
1111
  active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1064
1112
  admission_id: z.ZodString;
1065
1113
  sequence: z.ZodNumber;
@@ -1072,6 +1120,8 @@ export declare const SessionSchema: z.ZodObject<{
1072
1120
  outcome: z.ZodNullable<z.ZodString>;
1073
1121
  authority_epoch: z.ZodNumber;
1074
1122
  execution_generation: z.ZodNullable<z.ZodNumber>;
1123
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
1124
+ steering: z.ZodOptional<z.ZodBoolean>;
1075
1125
  text: z.ZodOptional<z.ZodString>;
1076
1126
  input_id: z.ZodOptional<z.ZodString>;
1077
1127
  }, z.core.$strip>>>;
@@ -1087,12 +1137,16 @@ export declare const SessionSchema: z.ZodObject<{
1087
1137
  outcome: z.ZodNullable<z.ZodString>;
1088
1138
  authority_epoch: z.ZodNumber;
1089
1139
  execution_generation: z.ZodNullable<z.ZodNumber>;
1140
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
1141
+ steering: z.ZodOptional<z.ZodBoolean>;
1090
1142
  text: z.ZodOptional<z.ZodString>;
1091
1143
  input_id: z.ZodOptional<z.ZodString>;
1092
1144
  actions: z.ZodArray<z.ZodEnum<{
1093
1145
  cancel: "cancel";
1094
1146
  discard: "discard";
1095
1147
  retry: "retry";
1148
+ steer: "steer";
1149
+ edit: "edit";
1096
1150
  }>>;
1097
1151
  }, z.core.$strip>>;
1098
1152
  }, z.core.$strip>>;
@@ -1111,6 +1165,7 @@ export declare const SessionSchema: z.ZodObject<{
1111
1165
  worktree_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1112
1166
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1113
1167
  worktree_repo_root: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1168
+ worktree_retained: z.ZodOptional<z.ZodLiteral<true>>;
1114
1169
  share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1115
1170
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1116
1171
  share_created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1143,6 +1198,7 @@ export declare const SessionSchema: z.ZodObject<{
1143
1198
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1144
1199
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1145
1200
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1201
+ context_detail_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1146
1202
  composer_state_key: z.ZodOptional<z.ZodString>;
1147
1203
  session_id: z.ZodString;
1148
1204
  title: z.ZodString;
@@ -1195,9 +1251,13 @@ export declare const SessionSchema: z.ZodObject<{
1195
1251
  cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1196
1252
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1197
1253
  event_type: z.ZodOptional<z.ZodString>;
1254
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1255
+ percent: z.ZodNullable<z.ZodNumber>;
1256
+ message: z.ZodNullable<z.ZodString>;
1257
+ }, z.core.$strip>>>;
1198
1258
  kind: z.ZodOptional<z.ZodEnum<{
1199
- unknown: "unknown";
1200
1259
  memory: "memory";
1260
+ unknown: "unknown";
1201
1261
  shell: "shell";
1202
1262
  read: "read";
1203
1263
  list: "list";
@@ -1248,10 +1308,10 @@ export declare const SessionSchema: z.ZodObject<{
1248
1308
  row_id: z.ZodString;
1249
1309
  order_index: z.ZodNumber;
1250
1310
  role: z.ZodEnum<{
1311
+ steering: "steering";
1251
1312
  tool: "tool";
1252
1313
  reasoning: "reasoning";
1253
1314
  prose: "prose";
1254
- steering: "steering";
1255
1315
  }>;
1256
1316
  created_at: z.ZodOptional<z.ZodNumber>;
1257
1317
  text: z.ZodOptional<z.ZodString>;
@@ -1303,9 +1363,13 @@ export declare const SessionSchema: z.ZodObject<{
1303
1363
  }, z.core.$strip>>;
1304
1364
  result_truncated: z.ZodOptional<z.ZodLiteral<true>>;
1305
1365
  result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1366
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1367
+ percent: z.ZodNullable<z.ZodNumber>;
1368
+ message: z.ZodNullable<z.ZodString>;
1369
+ }, z.core.$strip>>>;
1306
1370
  kind: z.ZodOptional<z.ZodEnum<{
1307
- unknown: "unknown";
1308
1371
  memory: "memory";
1372
+ unknown: "unknown";
1309
1373
  shell: "shell";
1310
1374
  read: "read";
1311
1375
  list: "list";
@@ -1505,9 +1569,13 @@ export declare const SessionSchema: z.ZodObject<{
1505
1569
  cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1506
1570
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1507
1571
  event_type: z.ZodOptional<z.ZodString>;
1572
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1573
+ percent: z.ZodNullable<z.ZodNumber>;
1574
+ message: z.ZodNullable<z.ZodString>;
1575
+ }, z.core.$strip>>>;
1508
1576
  kind: z.ZodOptional<z.ZodEnum<{
1509
- unknown: "unknown";
1510
1577
  memory: "memory";
1578
+ unknown: "unknown";
1511
1579
  shell: "shell";
1512
1580
  read: "read";
1513
1581
  list: "list";
@@ -1602,8 +1670,8 @@ export declare const SessionSchema: z.ZodObject<{
1602
1670
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1603
1671
  key: z.ZodString;
1604
1672
  level: z.ZodEnum<{
1605
- success: "success";
1606
1673
  error: "error";
1674
+ success: "success";
1607
1675
  info: "info";
1608
1676
  warn: "warn";
1609
1677
  }>;
@@ -1644,6 +1712,11 @@ export declare const SessionSchema: z.ZodObject<{
1644
1712
  export type Session = z.infer<typeof SessionSchema>;
1645
1713
  export declare const SessionEnvelopeSchema: z.ZodObject<{
1646
1714
  session: z.ZodObject<{
1715
+ execution_mode: z.ZodOptional<z.ZodEnum<{
1716
+ normal: "normal";
1717
+ ignore_config: "ignore_config";
1718
+ safe: "safe";
1719
+ }>>;
1647
1720
  enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1648
1721
  composer_draft: z.ZodOptional<z.ZodObject<{
1649
1722
  text: z.ZodOptional<z.ZodString>;
@@ -1668,18 +1741,31 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1668
1741
  read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1669
1742
  owner_attachment: z.ZodOptional<z.ZodObject<{
1670
1743
  state: z.ZodEnum<{
1744
+ unavailable: "unavailable";
1745
+ refused: "refused";
1671
1746
  attached: "attached";
1672
1747
  stopped: "stopped";
1673
- unavailable: "unavailable";
1674
1748
  incompatible: "incompatible";
1675
- refused: "refused";
1676
1749
  }>;
1677
1750
  reason: z.ZodNullable<z.ZodString>;
1678
1751
  can_submit: z.ZodBoolean;
1679
1752
  can_interrupt: z.ZodBoolean;
1680
1753
  can_attach: z.ZodBoolean;
1754
+ restarting: z.ZodBoolean;
1681
1755
  revision: z.ZodNullable<z.ZodNumber>;
1682
1756
  execution_generation: z.ZodNullable<z.ZodNumber>;
1757
+ model_change: z.ZodOptional<z.ZodObject<{
1758
+ state: z.ZodEnum<{
1759
+ applied: "applied";
1760
+ deferred: "deferred";
1761
+ confirmation_required: "confirmation_required";
1762
+ refused: "refused";
1763
+ }>;
1764
+ message: z.ZodOptional<z.ZodString>;
1765
+ confirm: z.ZodOptional<z.ZodString>;
1766
+ model: z.ZodOptional<z.ZodString>;
1767
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1768
+ }, z.core.$strip>>;
1683
1769
  active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1684
1770
  admission_id: z.ZodString;
1685
1771
  sequence: z.ZodNumber;
@@ -1692,6 +1778,8 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1692
1778
  outcome: z.ZodNullable<z.ZodString>;
1693
1779
  authority_epoch: z.ZodNumber;
1694
1780
  execution_generation: z.ZodNullable<z.ZodNumber>;
1781
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
1782
+ steering: z.ZodOptional<z.ZodBoolean>;
1695
1783
  text: z.ZodOptional<z.ZodString>;
1696
1784
  input_id: z.ZodOptional<z.ZodString>;
1697
1785
  }, z.core.$strip>>>;
@@ -1707,12 +1795,16 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1707
1795
  outcome: z.ZodNullable<z.ZodString>;
1708
1796
  authority_epoch: z.ZodNumber;
1709
1797
  execution_generation: z.ZodNullable<z.ZodNumber>;
1798
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
1799
+ steering: z.ZodOptional<z.ZodBoolean>;
1710
1800
  text: z.ZodOptional<z.ZodString>;
1711
1801
  input_id: z.ZodOptional<z.ZodString>;
1712
1802
  actions: z.ZodArray<z.ZodEnum<{
1713
1803
  cancel: "cancel";
1714
1804
  discard: "discard";
1715
1805
  retry: "retry";
1806
+ steer: "steer";
1807
+ edit: "edit";
1716
1808
  }>>;
1717
1809
  }, z.core.$strip>>;
1718
1810
  }, z.core.$strip>>;
@@ -1731,6 +1823,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1731
1823
  worktree_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1732
1824
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1733
1825
  worktree_repo_root: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1826
+ worktree_retained: z.ZodOptional<z.ZodLiteral<true>>;
1734
1827
  share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1735
1828
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1736
1829
  share_created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -1763,6 +1856,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1763
1856
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1764
1857
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1765
1858
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1859
+ context_detail_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1766
1860
  composer_state_key: z.ZodOptional<z.ZodString>;
1767
1861
  session_id: z.ZodString;
1768
1862
  title: z.ZodString;
@@ -1815,9 +1909,13 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1815
1909
  cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1816
1910
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1817
1911
  event_type: z.ZodOptional<z.ZodString>;
1912
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1913
+ percent: z.ZodNullable<z.ZodNumber>;
1914
+ message: z.ZodNullable<z.ZodString>;
1915
+ }, z.core.$strip>>>;
1818
1916
  kind: z.ZodOptional<z.ZodEnum<{
1819
- unknown: "unknown";
1820
1917
  memory: "memory";
1918
+ unknown: "unknown";
1821
1919
  shell: "shell";
1822
1920
  read: "read";
1823
1921
  list: "list";
@@ -1868,10 +1966,10 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1868
1966
  row_id: z.ZodString;
1869
1967
  order_index: z.ZodNumber;
1870
1968
  role: z.ZodEnum<{
1969
+ steering: "steering";
1871
1970
  tool: "tool";
1872
1971
  reasoning: "reasoning";
1873
1972
  prose: "prose";
1874
- steering: "steering";
1875
1973
  }>;
1876
1974
  created_at: z.ZodOptional<z.ZodNumber>;
1877
1975
  text: z.ZodOptional<z.ZodString>;
@@ -1923,9 +2021,13 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
1923
2021
  }, z.core.$strip>>;
1924
2022
  result_truncated: z.ZodOptional<z.ZodLiteral<true>>;
1925
2023
  result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2024
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2025
+ percent: z.ZodNullable<z.ZodNumber>;
2026
+ message: z.ZodNullable<z.ZodString>;
2027
+ }, z.core.$strip>>>;
1926
2028
  kind: z.ZodOptional<z.ZodEnum<{
1927
- unknown: "unknown";
1928
2029
  memory: "memory";
2030
+ unknown: "unknown";
1929
2031
  shell: "shell";
1930
2032
  read: "read";
1931
2033
  list: "list";
@@ -2125,9 +2227,13 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2125
2227
  cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2126
2228
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2127
2229
  event_type: z.ZodOptional<z.ZodString>;
2230
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2231
+ percent: z.ZodNullable<z.ZodNumber>;
2232
+ message: z.ZodNullable<z.ZodString>;
2233
+ }, z.core.$strip>>>;
2128
2234
  kind: z.ZodOptional<z.ZodEnum<{
2129
- unknown: "unknown";
2130
2235
  memory: "memory";
2236
+ unknown: "unknown";
2131
2237
  shell: "shell";
2132
2238
  read: "read";
2133
2239
  list: "list";
@@ -2222,8 +2328,8 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2222
2328
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
2223
2329
  key: z.ZodString;
2224
2330
  level: z.ZodEnum<{
2225
- success: "success";
2226
2331
  error: "error";
2332
+ success: "success";
2227
2333
  info: "info";
2228
2334
  warn: "warn";
2229
2335
  }>;
@@ -2301,18 +2407,31 @@ export declare const SessionRowSchema: z.ZodObject<{
2301
2407
  read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2302
2408
  owner_attachment: z.ZodOptional<z.ZodObject<{
2303
2409
  state: z.ZodEnum<{
2410
+ unavailable: "unavailable";
2411
+ refused: "refused";
2304
2412
  attached: "attached";
2305
2413
  stopped: "stopped";
2306
- unavailable: "unavailable";
2307
2414
  incompatible: "incompatible";
2308
- refused: "refused";
2309
2415
  }>;
2310
2416
  reason: z.ZodNullable<z.ZodString>;
2311
2417
  can_submit: z.ZodBoolean;
2312
2418
  can_interrupt: z.ZodBoolean;
2313
2419
  can_attach: z.ZodBoolean;
2420
+ restarting: z.ZodBoolean;
2314
2421
  revision: z.ZodNullable<z.ZodNumber>;
2315
2422
  execution_generation: z.ZodNullable<z.ZodNumber>;
2423
+ model_change: z.ZodOptional<z.ZodObject<{
2424
+ state: z.ZodEnum<{
2425
+ applied: "applied";
2426
+ deferred: "deferred";
2427
+ confirmation_required: "confirmation_required";
2428
+ refused: "refused";
2429
+ }>;
2430
+ message: z.ZodOptional<z.ZodString>;
2431
+ confirm: z.ZodOptional<z.ZodString>;
2432
+ model: z.ZodOptional<z.ZodString>;
2433
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2434
+ }, z.core.$strip>>;
2316
2435
  active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2317
2436
  admission_id: z.ZodString;
2318
2437
  sequence: z.ZodNumber;
@@ -2325,6 +2444,8 @@ export declare const SessionRowSchema: z.ZodObject<{
2325
2444
  outcome: z.ZodNullable<z.ZodString>;
2326
2445
  authority_epoch: z.ZodNumber;
2327
2446
  execution_generation: z.ZodNullable<z.ZodNumber>;
2447
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
2448
+ steering: z.ZodOptional<z.ZodBoolean>;
2328
2449
  text: z.ZodOptional<z.ZodString>;
2329
2450
  input_id: z.ZodOptional<z.ZodString>;
2330
2451
  }, z.core.$strip>>>;
@@ -2340,12 +2461,16 @@ export declare const SessionRowSchema: z.ZodObject<{
2340
2461
  outcome: z.ZodNullable<z.ZodString>;
2341
2462
  authority_epoch: z.ZodNumber;
2342
2463
  execution_generation: z.ZodNullable<z.ZodNumber>;
2464
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
2465
+ steering: z.ZodOptional<z.ZodBoolean>;
2343
2466
  text: z.ZodOptional<z.ZodString>;
2344
2467
  input_id: z.ZodOptional<z.ZodString>;
2345
2468
  actions: z.ZodArray<z.ZodEnum<{
2346
2469
  cancel: "cancel";
2347
2470
  discard: "discard";
2348
2471
  retry: "retry";
2472
+ steer: "steer";
2473
+ edit: "edit";
2349
2474
  }>>;
2350
2475
  }, z.core.$strip>>;
2351
2476
  }, z.core.$strip>>;
@@ -2368,8 +2493,8 @@ export declare const SessionRowSchema: z.ZodObject<{
2368
2493
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2369
2494
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2370
2495
  match_type: z.ZodOptional<z.ZodEnum<{
2371
- title: "title";
2372
2496
  content: "content";
2497
+ title: "title";
2373
2498
  metadata: "metadata";
2374
2499
  }>>;
2375
2500
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2430,18 +2555,31 @@ export declare const SessionsListSchema: z.ZodObject<{
2430
2555
  read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2431
2556
  owner_attachment: z.ZodOptional<z.ZodObject<{
2432
2557
  state: z.ZodEnum<{
2558
+ unavailable: "unavailable";
2559
+ refused: "refused";
2433
2560
  attached: "attached";
2434
2561
  stopped: "stopped";
2435
- unavailable: "unavailable";
2436
2562
  incompatible: "incompatible";
2437
- refused: "refused";
2438
2563
  }>;
2439
2564
  reason: z.ZodNullable<z.ZodString>;
2440
2565
  can_submit: z.ZodBoolean;
2441
2566
  can_interrupt: z.ZodBoolean;
2442
2567
  can_attach: z.ZodBoolean;
2568
+ restarting: z.ZodBoolean;
2443
2569
  revision: z.ZodNullable<z.ZodNumber>;
2444
2570
  execution_generation: z.ZodNullable<z.ZodNumber>;
2571
+ model_change: z.ZodOptional<z.ZodObject<{
2572
+ state: z.ZodEnum<{
2573
+ applied: "applied";
2574
+ deferred: "deferred";
2575
+ confirmation_required: "confirmation_required";
2576
+ refused: "refused";
2577
+ }>;
2578
+ message: z.ZodOptional<z.ZodString>;
2579
+ confirm: z.ZodOptional<z.ZodString>;
2580
+ model: z.ZodOptional<z.ZodString>;
2581
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2582
+ }, z.core.$strip>>;
2445
2583
  active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2446
2584
  admission_id: z.ZodString;
2447
2585
  sequence: z.ZodNumber;
@@ -2454,6 +2592,8 @@ export declare const SessionsListSchema: z.ZodObject<{
2454
2592
  outcome: z.ZodNullable<z.ZodString>;
2455
2593
  authority_epoch: z.ZodNumber;
2456
2594
  execution_generation: z.ZodNullable<z.ZodNumber>;
2595
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
2596
+ steering: z.ZodOptional<z.ZodBoolean>;
2457
2597
  text: z.ZodOptional<z.ZodString>;
2458
2598
  input_id: z.ZodOptional<z.ZodString>;
2459
2599
  }, z.core.$strip>>>;
@@ -2469,12 +2609,16 @@ export declare const SessionsListSchema: z.ZodObject<{
2469
2609
  outcome: z.ZodNullable<z.ZodString>;
2470
2610
  authority_epoch: z.ZodNumber;
2471
2611
  execution_generation: z.ZodNullable<z.ZodNumber>;
2612
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
2613
+ steering: z.ZodOptional<z.ZodBoolean>;
2472
2614
  text: z.ZodOptional<z.ZodString>;
2473
2615
  input_id: z.ZodOptional<z.ZodString>;
2474
2616
  actions: z.ZodArray<z.ZodEnum<{
2475
2617
  cancel: "cancel";
2476
2618
  discard: "discard";
2477
2619
  retry: "retry";
2620
+ steer: "steer";
2621
+ edit: "edit";
2478
2622
  }>>;
2479
2623
  }, z.core.$strip>>;
2480
2624
  }, z.core.$strip>>;
@@ -2497,8 +2641,8 @@ export declare const SessionsListSchema: z.ZodObject<{
2497
2641
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2498
2642
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2499
2643
  match_type: z.ZodOptional<z.ZodEnum<{
2500
- title: "title";
2501
2644
  content: "content";
2645
+ title: "title";
2502
2646
  metadata: "metadata";
2503
2647
  }>>;
2504
2648
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2542,18 +2686,31 @@ export declare const SessionsListSchema: z.ZodObject<{
2542
2686
  read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2543
2687
  owner_attachment: z.ZodOptional<z.ZodObject<{
2544
2688
  state: z.ZodEnum<{
2689
+ unavailable: "unavailable";
2690
+ refused: "refused";
2545
2691
  attached: "attached";
2546
2692
  stopped: "stopped";
2547
- unavailable: "unavailable";
2548
2693
  incompatible: "incompatible";
2549
- refused: "refused";
2550
2694
  }>;
2551
2695
  reason: z.ZodNullable<z.ZodString>;
2552
2696
  can_submit: z.ZodBoolean;
2553
2697
  can_interrupt: z.ZodBoolean;
2554
2698
  can_attach: z.ZodBoolean;
2699
+ restarting: z.ZodBoolean;
2555
2700
  revision: z.ZodNullable<z.ZodNumber>;
2556
2701
  execution_generation: z.ZodNullable<z.ZodNumber>;
2702
+ model_change: z.ZodOptional<z.ZodObject<{
2703
+ state: z.ZodEnum<{
2704
+ applied: "applied";
2705
+ deferred: "deferred";
2706
+ confirmation_required: "confirmation_required";
2707
+ refused: "refused";
2708
+ }>;
2709
+ message: z.ZodOptional<z.ZodString>;
2710
+ confirm: z.ZodOptional<z.ZodString>;
2711
+ model: z.ZodOptional<z.ZodString>;
2712
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2713
+ }, z.core.$strip>>;
2557
2714
  active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2558
2715
  admission_id: z.ZodString;
2559
2716
  sequence: z.ZodNumber;
@@ -2566,6 +2723,8 @@ export declare const SessionsListSchema: z.ZodObject<{
2566
2723
  outcome: z.ZodNullable<z.ZodString>;
2567
2724
  authority_epoch: z.ZodNumber;
2568
2725
  execution_generation: z.ZodNullable<z.ZodNumber>;
2726
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
2727
+ steering: z.ZodOptional<z.ZodBoolean>;
2569
2728
  text: z.ZodOptional<z.ZodString>;
2570
2729
  input_id: z.ZodOptional<z.ZodString>;
2571
2730
  }, z.core.$strip>>>;
@@ -2581,12 +2740,16 @@ export declare const SessionsListSchema: z.ZodObject<{
2581
2740
  outcome: z.ZodNullable<z.ZodString>;
2582
2741
  authority_epoch: z.ZodNumber;
2583
2742
  execution_generation: z.ZodNullable<z.ZodNumber>;
2743
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
2744
+ steering: z.ZodOptional<z.ZodBoolean>;
2584
2745
  text: z.ZodOptional<z.ZodString>;
2585
2746
  input_id: z.ZodOptional<z.ZodString>;
2586
2747
  actions: z.ZodArray<z.ZodEnum<{
2587
2748
  cancel: "cancel";
2588
2749
  discard: "discard";
2589
2750
  retry: "retry";
2751
+ steer: "steer";
2752
+ edit: "edit";
2590
2753
  }>>;
2591
2754
  }, z.core.$strip>>;
2592
2755
  }, z.core.$strip>>;
@@ -2609,8 +2772,8 @@ export declare const SessionsListSchema: z.ZodObject<{
2609
2772
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2610
2773
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2611
2774
  match_type: z.ZodOptional<z.ZodEnum<{
2612
- title: "title";
2613
2775
  content: "content";
2776
+ title: "title";
2614
2777
  metadata: "metadata";
2615
2778
  }>>;
2616
2779
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2659,18 +2822,31 @@ export declare const SessionStatusSchema: z.ZodObject<{
2659
2822
  read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2660
2823
  owner_attachment: z.ZodOptional<z.ZodObject<{
2661
2824
  state: z.ZodEnum<{
2825
+ unavailable: "unavailable";
2826
+ refused: "refused";
2662
2827
  attached: "attached";
2663
2828
  stopped: "stopped";
2664
- unavailable: "unavailable";
2665
2829
  incompatible: "incompatible";
2666
- refused: "refused";
2667
2830
  }>;
2668
2831
  reason: z.ZodNullable<z.ZodString>;
2669
2832
  can_submit: z.ZodBoolean;
2670
2833
  can_interrupt: z.ZodBoolean;
2671
2834
  can_attach: z.ZodBoolean;
2835
+ restarting: z.ZodBoolean;
2672
2836
  revision: z.ZodNullable<z.ZodNumber>;
2673
2837
  execution_generation: z.ZodNullable<z.ZodNumber>;
2838
+ model_change: z.ZodOptional<z.ZodObject<{
2839
+ state: z.ZodEnum<{
2840
+ applied: "applied";
2841
+ deferred: "deferred";
2842
+ confirmation_required: "confirmation_required";
2843
+ refused: "refused";
2844
+ }>;
2845
+ message: z.ZodOptional<z.ZodString>;
2846
+ confirm: z.ZodOptional<z.ZodString>;
2847
+ model: z.ZodOptional<z.ZodString>;
2848
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2849
+ }, z.core.$strip>>;
2674
2850
  active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2675
2851
  admission_id: z.ZodString;
2676
2852
  sequence: z.ZodNumber;
@@ -2683,6 +2859,8 @@ export declare const SessionStatusSchema: z.ZodObject<{
2683
2859
  outcome: z.ZodNullable<z.ZodString>;
2684
2860
  authority_epoch: z.ZodNumber;
2685
2861
  execution_generation: z.ZodNullable<z.ZodNumber>;
2862
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
2863
+ steering: z.ZodOptional<z.ZodBoolean>;
2686
2864
  text: z.ZodOptional<z.ZodString>;
2687
2865
  input_id: z.ZodOptional<z.ZodString>;
2688
2866
  }, z.core.$strip>>>;
@@ -2698,12 +2876,16 @@ export declare const SessionStatusSchema: z.ZodObject<{
2698
2876
  outcome: z.ZodNullable<z.ZodString>;
2699
2877
  authority_epoch: z.ZodNumber;
2700
2878
  execution_generation: z.ZodNullable<z.ZodNumber>;
2879
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
2880
+ steering: z.ZodOptional<z.ZodBoolean>;
2701
2881
  text: z.ZodOptional<z.ZodString>;
2702
2882
  input_id: z.ZodOptional<z.ZodString>;
2703
2883
  actions: z.ZodArray<z.ZodEnum<{
2704
2884
  cancel: "cancel";
2705
2885
  discard: "discard";
2706
2886
  retry: "retry";
2887
+ steer: "steer";
2888
+ edit: "edit";
2707
2889
  }>>;
2708
2890
  }, z.core.$strip>>;
2709
2891
  }, z.core.$strip>>;
@@ -2779,18 +2961,31 @@ export type ChatStartRequest = z.infer<typeof ChatStartRequestSchema>;
2779
2961
  export declare const ChatStartResponseSchema: z.ZodObject<{
2780
2962
  owner_attachment: z.ZodOptional<z.ZodObject<{
2781
2963
  state: z.ZodEnum<{
2964
+ unavailable: "unavailable";
2965
+ refused: "refused";
2782
2966
  attached: "attached";
2783
2967
  stopped: "stopped";
2784
- unavailable: "unavailable";
2785
2968
  incompatible: "incompatible";
2786
- refused: "refused";
2787
2969
  }>;
2788
2970
  reason: z.ZodNullable<z.ZodString>;
2789
2971
  can_submit: z.ZodBoolean;
2790
2972
  can_interrupt: z.ZodBoolean;
2791
2973
  can_attach: z.ZodBoolean;
2974
+ restarting: z.ZodBoolean;
2792
2975
  revision: z.ZodNullable<z.ZodNumber>;
2793
2976
  execution_generation: z.ZodNullable<z.ZodNumber>;
2977
+ model_change: z.ZodOptional<z.ZodObject<{
2978
+ state: z.ZodEnum<{
2979
+ applied: "applied";
2980
+ deferred: "deferred";
2981
+ confirmation_required: "confirmation_required";
2982
+ refused: "refused";
2983
+ }>;
2984
+ message: z.ZodOptional<z.ZodString>;
2985
+ confirm: z.ZodOptional<z.ZodString>;
2986
+ model: z.ZodOptional<z.ZodString>;
2987
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2988
+ }, z.core.$strip>>;
2794
2989
  active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2795
2990
  admission_id: z.ZodString;
2796
2991
  sequence: z.ZodNumber;
@@ -2803,6 +2998,8 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2803
2998
  outcome: z.ZodNullable<z.ZodString>;
2804
2999
  authority_epoch: z.ZodNumber;
2805
3000
  execution_generation: z.ZodNullable<z.ZodNumber>;
3001
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
3002
+ steering: z.ZodOptional<z.ZodBoolean>;
2806
3003
  text: z.ZodOptional<z.ZodString>;
2807
3004
  input_id: z.ZodOptional<z.ZodString>;
2808
3005
  }, z.core.$strip>>>;
@@ -2818,12 +3015,16 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2818
3015
  outcome: z.ZodNullable<z.ZodString>;
2819
3016
  authority_epoch: z.ZodNumber;
2820
3017
  execution_generation: z.ZodNullable<z.ZodNumber>;
3018
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
3019
+ steering: z.ZodOptional<z.ZodBoolean>;
2821
3020
  text: z.ZodOptional<z.ZodString>;
2822
3021
  input_id: z.ZodOptional<z.ZodString>;
2823
3022
  actions: z.ZodArray<z.ZodEnum<{
2824
3023
  cancel: "cancel";
2825
3024
  discard: "discard";
2826
3025
  retry: "retry";
3026
+ steer: "steer";
3027
+ edit: "edit";
2827
3028
  }>>;
2828
3029
  }, z.core.$strip>>;
2829
3030
  }, z.core.$strip>>;
@@ -2841,6 +3042,11 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2841
3042
  status: z.ZodOptional<z.ZodString>;
2842
3043
  reason: z.ZodOptional<z.ZodString>;
2843
3044
  session: z.ZodOptional<z.ZodObject<{
3045
+ execution_mode: z.ZodOptional<z.ZodEnum<{
3046
+ normal: "normal";
3047
+ ignore_config: "ignore_config";
3048
+ safe: "safe";
3049
+ }>>;
2844
3050
  enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2845
3051
  composer_draft: z.ZodOptional<z.ZodObject<{
2846
3052
  text: z.ZodOptional<z.ZodString>;
@@ -2865,18 +3071,31 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2865
3071
  read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2866
3072
  owner_attachment: z.ZodOptional<z.ZodObject<{
2867
3073
  state: z.ZodEnum<{
3074
+ unavailable: "unavailable";
3075
+ refused: "refused";
2868
3076
  attached: "attached";
2869
3077
  stopped: "stopped";
2870
- unavailable: "unavailable";
2871
3078
  incompatible: "incompatible";
2872
- refused: "refused";
2873
3079
  }>;
2874
3080
  reason: z.ZodNullable<z.ZodString>;
2875
3081
  can_submit: z.ZodBoolean;
2876
3082
  can_interrupt: z.ZodBoolean;
2877
3083
  can_attach: z.ZodBoolean;
3084
+ restarting: z.ZodBoolean;
2878
3085
  revision: z.ZodNullable<z.ZodNumber>;
2879
3086
  execution_generation: z.ZodNullable<z.ZodNumber>;
3087
+ model_change: z.ZodOptional<z.ZodObject<{
3088
+ state: z.ZodEnum<{
3089
+ applied: "applied";
3090
+ deferred: "deferred";
3091
+ confirmation_required: "confirmation_required";
3092
+ refused: "refused";
3093
+ }>;
3094
+ message: z.ZodOptional<z.ZodString>;
3095
+ confirm: z.ZodOptional<z.ZodString>;
3096
+ model: z.ZodOptional<z.ZodString>;
3097
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3098
+ }, z.core.$strip>>;
2880
3099
  active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2881
3100
  admission_id: z.ZodString;
2882
3101
  sequence: z.ZodNumber;
@@ -2889,6 +3108,8 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2889
3108
  outcome: z.ZodNullable<z.ZodString>;
2890
3109
  authority_epoch: z.ZodNumber;
2891
3110
  execution_generation: z.ZodNullable<z.ZodNumber>;
3111
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
3112
+ steering: z.ZodOptional<z.ZodBoolean>;
2892
3113
  text: z.ZodOptional<z.ZodString>;
2893
3114
  input_id: z.ZodOptional<z.ZodString>;
2894
3115
  }, z.core.$strip>>>;
@@ -2904,12 +3125,16 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2904
3125
  outcome: z.ZodNullable<z.ZodString>;
2905
3126
  authority_epoch: z.ZodNumber;
2906
3127
  execution_generation: z.ZodNullable<z.ZodNumber>;
3128
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
3129
+ steering: z.ZodOptional<z.ZodBoolean>;
2907
3130
  text: z.ZodOptional<z.ZodString>;
2908
3131
  input_id: z.ZodOptional<z.ZodString>;
2909
3132
  actions: z.ZodArray<z.ZodEnum<{
2910
3133
  cancel: "cancel";
2911
3134
  discard: "discard";
2912
3135
  retry: "retry";
3136
+ steer: "steer";
3137
+ edit: "edit";
2913
3138
  }>>;
2914
3139
  }, z.core.$strip>>;
2915
3140
  }, z.core.$strip>>;
@@ -2928,6 +3153,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2928
3153
  worktree_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2929
3154
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2930
3155
  worktree_repo_root: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3156
+ worktree_retained: z.ZodOptional<z.ZodLiteral<true>>;
2931
3157
  share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2932
3158
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2933
3159
  share_created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -2960,6 +3186,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
2960
3186
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2961
3187
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2962
3188
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3189
+ context_detail_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2963
3190
  composer_state_key: z.ZodOptional<z.ZodString>;
2964
3191
  session_id: z.ZodString;
2965
3192
  title: z.ZodString;
@@ -3012,9 +3239,13 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3012
3239
  cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3013
3240
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3014
3241
  event_type: z.ZodOptional<z.ZodString>;
3242
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3243
+ percent: z.ZodNullable<z.ZodNumber>;
3244
+ message: z.ZodNullable<z.ZodString>;
3245
+ }, z.core.$strip>>>;
3015
3246
  kind: z.ZodOptional<z.ZodEnum<{
3016
- unknown: "unknown";
3017
3247
  memory: "memory";
3248
+ unknown: "unknown";
3018
3249
  shell: "shell";
3019
3250
  read: "read";
3020
3251
  list: "list";
@@ -3065,10 +3296,10 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3065
3296
  row_id: z.ZodString;
3066
3297
  order_index: z.ZodNumber;
3067
3298
  role: z.ZodEnum<{
3299
+ steering: "steering";
3068
3300
  tool: "tool";
3069
3301
  reasoning: "reasoning";
3070
3302
  prose: "prose";
3071
- steering: "steering";
3072
3303
  }>;
3073
3304
  created_at: z.ZodOptional<z.ZodNumber>;
3074
3305
  text: z.ZodOptional<z.ZodString>;
@@ -3120,9 +3351,13 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3120
3351
  }, z.core.$strip>>;
3121
3352
  result_truncated: z.ZodOptional<z.ZodLiteral<true>>;
3122
3353
  result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3354
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3355
+ percent: z.ZodNullable<z.ZodNumber>;
3356
+ message: z.ZodNullable<z.ZodString>;
3357
+ }, z.core.$strip>>>;
3123
3358
  kind: z.ZodOptional<z.ZodEnum<{
3124
- unknown: "unknown";
3125
3359
  memory: "memory";
3360
+ unknown: "unknown";
3126
3361
  shell: "shell";
3127
3362
  read: "read";
3128
3363
  list: "list";
@@ -3322,9 +3557,13 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3322
3557
  cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3323
3558
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3324
3559
  event_type: z.ZodOptional<z.ZodString>;
3560
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3561
+ percent: z.ZodNullable<z.ZodNumber>;
3562
+ message: z.ZodNullable<z.ZodString>;
3563
+ }, z.core.$strip>>>;
3325
3564
  kind: z.ZodOptional<z.ZodEnum<{
3326
- unknown: "unknown";
3327
3565
  memory: "memory";
3566
+ unknown: "unknown";
3328
3567
  shell: "shell";
3329
3568
  read: "read";
3330
3569
  list: "list";
@@ -3419,8 +3658,8 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3419
3658
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
3420
3659
  key: z.ZodString;
3421
3660
  level: z.ZodEnum<{
3422
- success: "success";
3423
3661
  error: "error";
3662
+ success: "success";
3424
3663
  info: "info";
3425
3664
  warn: "warn";
3426
3665
  }>;
@@ -3556,18 +3795,31 @@ export declare const SteerResponseSchema: z.ZodObject<{
3556
3795
  started_turn: z.ZodOptional<z.ZodObject<{
3557
3796
  owner_attachment: z.ZodOptional<z.ZodObject<{
3558
3797
  state: z.ZodEnum<{
3798
+ unavailable: "unavailable";
3799
+ refused: "refused";
3559
3800
  attached: "attached";
3560
3801
  stopped: "stopped";
3561
- unavailable: "unavailable";
3562
3802
  incompatible: "incompatible";
3563
- refused: "refused";
3564
3803
  }>;
3565
3804
  reason: z.ZodNullable<z.ZodString>;
3566
3805
  can_submit: z.ZodBoolean;
3567
3806
  can_interrupt: z.ZodBoolean;
3568
3807
  can_attach: z.ZodBoolean;
3808
+ restarting: z.ZodBoolean;
3569
3809
  revision: z.ZodNullable<z.ZodNumber>;
3570
3810
  execution_generation: z.ZodNullable<z.ZodNumber>;
3811
+ model_change: z.ZodOptional<z.ZodObject<{
3812
+ state: z.ZodEnum<{
3813
+ applied: "applied";
3814
+ deferred: "deferred";
3815
+ confirmation_required: "confirmation_required";
3816
+ refused: "refused";
3817
+ }>;
3818
+ message: z.ZodOptional<z.ZodString>;
3819
+ confirm: z.ZodOptional<z.ZodString>;
3820
+ model: z.ZodOptional<z.ZodString>;
3821
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3822
+ }, z.core.$strip>>;
3571
3823
  active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3572
3824
  admission_id: z.ZodString;
3573
3825
  sequence: z.ZodNumber;
@@ -3580,6 +3832,8 @@ export declare const SteerResponseSchema: z.ZodObject<{
3580
3832
  outcome: z.ZodNullable<z.ZodString>;
3581
3833
  authority_epoch: z.ZodNumber;
3582
3834
  execution_generation: z.ZodNullable<z.ZodNumber>;
3835
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
3836
+ steering: z.ZodOptional<z.ZodBoolean>;
3583
3837
  text: z.ZodOptional<z.ZodString>;
3584
3838
  input_id: z.ZodOptional<z.ZodString>;
3585
3839
  }, z.core.$strip>>>;
@@ -3595,12 +3849,16 @@ export declare const SteerResponseSchema: z.ZodObject<{
3595
3849
  outcome: z.ZodNullable<z.ZodString>;
3596
3850
  authority_epoch: z.ZodNumber;
3597
3851
  execution_generation: z.ZodNullable<z.ZodNumber>;
3852
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
3853
+ steering: z.ZodOptional<z.ZodBoolean>;
3598
3854
  text: z.ZodOptional<z.ZodString>;
3599
3855
  input_id: z.ZodOptional<z.ZodString>;
3600
3856
  actions: z.ZodArray<z.ZodEnum<{
3601
3857
  cancel: "cancel";
3602
3858
  discard: "discard";
3603
3859
  retry: "retry";
3860
+ steer: "steer";
3861
+ edit: "edit";
3604
3862
  }>>;
3605
3863
  }, z.core.$strip>>;
3606
3864
  }, z.core.$strip>>;
@@ -3618,6 +3876,11 @@ export declare const SteerResponseSchema: z.ZodObject<{
3618
3876
  status: z.ZodOptional<z.ZodString>;
3619
3877
  reason: z.ZodOptional<z.ZodString>;
3620
3878
  session: z.ZodOptional<z.ZodObject<{
3879
+ execution_mode: z.ZodOptional<z.ZodEnum<{
3880
+ normal: "normal";
3881
+ ignore_config: "ignore_config";
3882
+ safe: "safe";
3883
+ }>>;
3621
3884
  enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3622
3885
  composer_draft: z.ZodOptional<z.ZodObject<{
3623
3886
  text: z.ZodOptional<z.ZodString>;
@@ -3642,18 +3905,31 @@ export declare const SteerResponseSchema: z.ZodObject<{
3642
3905
  read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3643
3906
  owner_attachment: z.ZodOptional<z.ZodObject<{
3644
3907
  state: z.ZodEnum<{
3908
+ unavailable: "unavailable";
3909
+ refused: "refused";
3645
3910
  attached: "attached";
3646
3911
  stopped: "stopped";
3647
- unavailable: "unavailable";
3648
3912
  incompatible: "incompatible";
3649
- refused: "refused";
3650
3913
  }>;
3651
3914
  reason: z.ZodNullable<z.ZodString>;
3652
3915
  can_submit: z.ZodBoolean;
3653
3916
  can_interrupt: z.ZodBoolean;
3654
3917
  can_attach: z.ZodBoolean;
3918
+ restarting: z.ZodBoolean;
3655
3919
  revision: z.ZodNullable<z.ZodNumber>;
3656
3920
  execution_generation: z.ZodNullable<z.ZodNumber>;
3921
+ model_change: z.ZodOptional<z.ZodObject<{
3922
+ state: z.ZodEnum<{
3923
+ applied: "applied";
3924
+ deferred: "deferred";
3925
+ confirmation_required: "confirmation_required";
3926
+ refused: "refused";
3927
+ }>;
3928
+ message: z.ZodOptional<z.ZodString>;
3929
+ confirm: z.ZodOptional<z.ZodString>;
3930
+ model: z.ZodOptional<z.ZodString>;
3931
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3932
+ }, z.core.$strip>>;
3657
3933
  active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3658
3934
  admission_id: z.ZodString;
3659
3935
  sequence: z.ZodNumber;
@@ -3666,6 +3942,8 @@ export declare const SteerResponseSchema: z.ZodObject<{
3666
3942
  outcome: z.ZodNullable<z.ZodString>;
3667
3943
  authority_epoch: z.ZodNumber;
3668
3944
  execution_generation: z.ZodNullable<z.ZodNumber>;
3945
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
3946
+ steering: z.ZodOptional<z.ZodBoolean>;
3669
3947
  text: z.ZodOptional<z.ZodString>;
3670
3948
  input_id: z.ZodOptional<z.ZodString>;
3671
3949
  }, z.core.$strip>>>;
@@ -3681,12 +3959,16 @@ export declare const SteerResponseSchema: z.ZodObject<{
3681
3959
  outcome: z.ZodNullable<z.ZodString>;
3682
3960
  authority_epoch: z.ZodNumber;
3683
3961
  execution_generation: z.ZodNullable<z.ZodNumber>;
3962
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
3963
+ steering: z.ZodOptional<z.ZodBoolean>;
3684
3964
  text: z.ZodOptional<z.ZodString>;
3685
3965
  input_id: z.ZodOptional<z.ZodString>;
3686
3966
  actions: z.ZodArray<z.ZodEnum<{
3687
3967
  cancel: "cancel";
3688
3968
  discard: "discard";
3689
3969
  retry: "retry";
3970
+ steer: "steer";
3971
+ edit: "edit";
3690
3972
  }>>;
3691
3973
  }, z.core.$strip>>;
3692
3974
  }, z.core.$strip>>;
@@ -3705,6 +3987,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
3705
3987
  worktree_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3706
3988
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3707
3989
  worktree_repo_root: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3990
+ worktree_retained: z.ZodOptional<z.ZodLiteral<true>>;
3708
3991
  share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3709
3992
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3710
3993
  share_created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -3737,6 +4020,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
3737
4020
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3738
4021
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3739
4022
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4023
+ context_detail_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3740
4024
  composer_state_key: z.ZodOptional<z.ZodString>;
3741
4025
  session_id: z.ZodString;
3742
4026
  title: z.ZodString;
@@ -3789,9 +4073,13 @@ export declare const SteerResponseSchema: z.ZodObject<{
3789
4073
  cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3790
4074
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3791
4075
  event_type: z.ZodOptional<z.ZodString>;
4076
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4077
+ percent: z.ZodNullable<z.ZodNumber>;
4078
+ message: z.ZodNullable<z.ZodString>;
4079
+ }, z.core.$strip>>>;
3792
4080
  kind: z.ZodOptional<z.ZodEnum<{
3793
- unknown: "unknown";
3794
4081
  memory: "memory";
4082
+ unknown: "unknown";
3795
4083
  shell: "shell";
3796
4084
  read: "read";
3797
4085
  list: "list";
@@ -3842,10 +4130,10 @@ export declare const SteerResponseSchema: z.ZodObject<{
3842
4130
  row_id: z.ZodString;
3843
4131
  order_index: z.ZodNumber;
3844
4132
  role: z.ZodEnum<{
4133
+ steering: "steering";
3845
4134
  tool: "tool";
3846
4135
  reasoning: "reasoning";
3847
4136
  prose: "prose";
3848
- steering: "steering";
3849
4137
  }>;
3850
4138
  created_at: z.ZodOptional<z.ZodNumber>;
3851
4139
  text: z.ZodOptional<z.ZodString>;
@@ -3897,9 +4185,13 @@ export declare const SteerResponseSchema: z.ZodObject<{
3897
4185
  }, z.core.$strip>>;
3898
4186
  result_truncated: z.ZodOptional<z.ZodLiteral<true>>;
3899
4187
  result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4188
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4189
+ percent: z.ZodNullable<z.ZodNumber>;
4190
+ message: z.ZodNullable<z.ZodString>;
4191
+ }, z.core.$strip>>>;
3900
4192
  kind: z.ZodOptional<z.ZodEnum<{
3901
- unknown: "unknown";
3902
4193
  memory: "memory";
4194
+ unknown: "unknown";
3903
4195
  shell: "shell";
3904
4196
  read: "read";
3905
4197
  list: "list";
@@ -4099,9 +4391,13 @@ export declare const SteerResponseSchema: z.ZodObject<{
4099
4391
  cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4100
4392
  timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4101
4393
  event_type: z.ZodOptional<z.ZodString>;
4394
+ progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4395
+ percent: z.ZodNullable<z.ZodNumber>;
4396
+ message: z.ZodNullable<z.ZodString>;
4397
+ }, z.core.$strip>>>;
4102
4398
  kind: z.ZodOptional<z.ZodEnum<{
4103
- unknown: "unknown";
4104
4399
  memory: "memory";
4400
+ unknown: "unknown";
4105
4401
  shell: "shell";
4106
4402
  read: "read";
4107
4403
  list: "list";
@@ -4196,8 +4492,8 @@ export declare const SteerResponseSchema: z.ZodObject<{
4196
4492
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
4197
4493
  key: z.ZodString;
4198
4494
  level: z.ZodEnum<{
4199
- success: "success";
4200
4495
  error: "error";
4496
+ success: "success";
4201
4497
  info: "info";
4202
4498
  warn: "warn";
4203
4499
  }>;
@@ -4326,6 +4622,7 @@ export declare const ClarifyStepSchema: z.ZodObject<{
4326
4622
  question: z.ZodString;
4327
4623
  choices: z.ZodArray<z.ZodString>;
4328
4624
  multi_select: z.ZodBoolean;
4625
+ answered: z.ZodOptional<z.ZodBoolean>;
4329
4626
  }, z.core.$loose>;
4330
4627
  export type ClarifyStep = z.infer<typeof ClarifyStepSchema>;
4331
4628
  /** Keyed step answers; a multi-select step takes a list. The server shapes them into the Agent's reply. */
@@ -4386,6 +4683,7 @@ export declare const ClarifyPendingSchema: z.ZodObject<{
4386
4683
  question: z.ZodString;
4387
4684
  choices: z.ZodArray<z.ZodString>;
4388
4685
  multi_select: z.ZodBoolean;
4686
+ answered: z.ZodOptional<z.ZodBoolean>;
4389
4687
  }, z.core.$loose>>>;
4390
4688
  vault: z.ZodOptional<z.ZodObject<{
4391
4689
  kind: z.ZodEnum<{
@@ -4447,6 +4745,7 @@ export declare const ClarifyPendingEnvelopeSchema: z.ZodObject<{
4447
4745
  question: z.ZodString;
4448
4746
  choices: z.ZodArray<z.ZodString>;
4449
4747
  multi_select: z.ZodBoolean;
4748
+ answered: z.ZodOptional<z.ZodBoolean>;
4450
4749
  }, z.core.$loose>>>;
4451
4750
  vault: z.ZodOptional<z.ZodObject<{
4452
4751
  kind: z.ZodEnum<{
@@ -4611,6 +4910,7 @@ export declare const BackgroundTaskSchema: z.ZodObject<{
4611
4910
  }, z.core.$strip>>;
4612
4911
  pinned: z.ZodBoolean;
4613
4912
  dismissible: z.ZodBoolean;
4913
+ can_stop: z.ZodOptional<z.ZodBoolean>;
4614
4914
  active: z.ZodBoolean;
4615
4915
  }, z.core.$strip>;
4616
4916
  export type BackgroundTask = z.infer<typeof BackgroundTaskSchema>;
@@ -4654,6 +4954,7 @@ export declare const BackgroundTasksResponseSchema: z.ZodObject<{
4654
4954
  }, z.core.$strip>>;
4655
4955
  pinned: z.ZodBoolean;
4656
4956
  dismissible: z.ZodBoolean;
4957
+ can_stop: z.ZodOptional<z.ZodBoolean>;
4657
4958
  active: z.ZodBoolean;
4658
4959
  }, z.core.$strip>>;
4659
4960
  agent_available: z.ZodBoolean;
@@ -4667,6 +4968,13 @@ export declare const BackgroundDismissRequestSchema: z.ZodObject<{
4667
4968
  session_id: z.ZodString;
4668
4969
  task_id: z.ZodString;
4669
4970
  }, z.core.$strip>;
4971
+ export declare const BackgroundStopResponseSchema: z.ZodObject<{
4972
+ outcome: z.ZodEnum<{
4973
+ stopped: "stopped";
4974
+ not_running: "not_running";
4975
+ not_found: "not_found";
4976
+ }>;
4977
+ }, z.core.$strip>;
4670
4978
  export declare const BackgroundDismissResponseSchema: z.ZodObject<{
4671
4979
  ok: z.ZodLiteral<true>;
4672
4980
  task: z.ZodObject<{
@@ -4702,6 +5010,7 @@ export declare const BackgroundDismissResponseSchema: z.ZodObject<{
4702
5010
  }, z.core.$strip>>;
4703
5011
  pinned: z.ZodBoolean;
4704
5012
  dismissible: z.ZodBoolean;
5013
+ can_stop: z.ZodOptional<z.ZodBoolean>;
4705
5014
  active: z.ZodBoolean;
4706
5015
  }, z.core.$strip>;
4707
5016
  }, z.core.$strip>;
@@ -4753,18 +5062,31 @@ export declare const ShareCreateResponseSchema: z.ZodObject<{
4753
5062
  read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4754
5063
  owner_attachment: z.ZodOptional<z.ZodObject<{
4755
5064
  state: z.ZodEnum<{
5065
+ unavailable: "unavailable";
5066
+ refused: "refused";
4756
5067
  attached: "attached";
4757
5068
  stopped: "stopped";
4758
- unavailable: "unavailable";
4759
5069
  incompatible: "incompatible";
4760
- refused: "refused";
4761
5070
  }>;
4762
5071
  reason: z.ZodNullable<z.ZodString>;
4763
5072
  can_submit: z.ZodBoolean;
4764
5073
  can_interrupt: z.ZodBoolean;
4765
5074
  can_attach: z.ZodBoolean;
5075
+ restarting: z.ZodBoolean;
4766
5076
  revision: z.ZodNullable<z.ZodNumber>;
4767
5077
  execution_generation: z.ZodNullable<z.ZodNumber>;
5078
+ model_change: z.ZodOptional<z.ZodObject<{
5079
+ state: z.ZodEnum<{
5080
+ applied: "applied";
5081
+ deferred: "deferred";
5082
+ confirmation_required: "confirmation_required";
5083
+ refused: "refused";
5084
+ }>;
5085
+ message: z.ZodOptional<z.ZodString>;
5086
+ confirm: z.ZodOptional<z.ZodString>;
5087
+ model: z.ZodOptional<z.ZodString>;
5088
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5089
+ }, z.core.$strip>>;
4768
5090
  active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4769
5091
  admission_id: z.ZodString;
4770
5092
  sequence: z.ZodNumber;
@@ -4777,6 +5099,8 @@ export declare const ShareCreateResponseSchema: z.ZodObject<{
4777
5099
  outcome: z.ZodNullable<z.ZodString>;
4778
5100
  authority_epoch: z.ZodNumber;
4779
5101
  execution_generation: z.ZodNullable<z.ZodNumber>;
5102
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
5103
+ steering: z.ZodOptional<z.ZodBoolean>;
4780
5104
  text: z.ZodOptional<z.ZodString>;
4781
5105
  input_id: z.ZodOptional<z.ZodString>;
4782
5106
  }, z.core.$strip>>>;
@@ -4792,12 +5116,16 @@ export declare const ShareCreateResponseSchema: z.ZodObject<{
4792
5116
  outcome: z.ZodNullable<z.ZodString>;
4793
5117
  authority_epoch: z.ZodNumber;
4794
5118
  execution_generation: z.ZodNullable<z.ZodNumber>;
5119
+ controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
5120
+ steering: z.ZodOptional<z.ZodBoolean>;
4795
5121
  text: z.ZodOptional<z.ZodString>;
4796
5122
  input_id: z.ZodOptional<z.ZodString>;
4797
5123
  actions: z.ZodArray<z.ZodEnum<{
4798
5124
  cancel: "cancel";
4799
5125
  discard: "discard";
4800
5126
  retry: "retry";
5127
+ steer: "steer";
5128
+ edit: "edit";
4801
5129
  }>>;
4802
5130
  }, z.core.$strip>>;
4803
5131
  }, z.core.$strip>>;
@@ -4820,8 +5148,8 @@ export declare const ShareCreateResponseSchema: z.ZodObject<{
4820
5148
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4821
5149
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4822
5150
  match_type: z.ZodOptional<z.ZodEnum<{
4823
- title: "title";
4824
5151
  content: "content";
5152
+ title: "title";
4825
5153
  metadata: "metadata";
4826
5154
  }>>;
4827
5155
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4868,6 +5196,12 @@ export declare const SessionNewRequestSchema: z.ZodObject<{
4868
5196
  worktree: z.ZodOptional<z.ZodUnknown>;
4869
5197
  enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
4870
5198
  parent_session_id: z.ZodOptional<z.ZodString>;
5199
+ execution_mode: z.ZodOptional<z.ZodEnum<{
5200
+ normal: "normal";
5201
+ ignore_config: "ignore_config";
5202
+ safe: "safe";
5203
+ }>>;
5204
+ request_id: z.ZodOptional<z.ZodString>;
4871
5205
  }, z.core.$loose>;
4872
5206
  /**
4873
5207
  * `streaming` (TAL-802): live dictation over `TRANSCRIBE_STREAM_PATH` would open for this profile (`stt.streaming` on, a live provider wire).
@@ -5078,6 +5412,7 @@ export declare const ReasoningStatusSchema: z.ZodObject<{
5078
5412
  supported_efforts: z.ZodOptional<z.ZodArray<z.ZodString>>;
5079
5413
  supports_reasoning_effort: z.ZodOptional<z.ZodBoolean>;
5080
5414
  supports_thinking_toggle: z.ZodOptional<z.ZodBoolean>;
5415
+ supports_session_scope: z.ZodOptional<z.ZodBoolean>;
5081
5416
  }, z.core.$loose>;
5082
5417
  export type ReasoningStatus = z.infer<typeof ReasoningStatusSchema>;
5083
5418
  export declare const QuotaLevelSchema: z.ZodEnum<{
@@ -5132,9 +5467,9 @@ export declare const ModelGroupLimitSchema: z.ZodDiscriminatedUnion<[z.ZodObject
5132
5467
  */
5133
5468
  export declare const CatalogAvailabilitySchema: z.ZodObject<{
5134
5469
  status: z.ZodEnum<{
5470
+ available: "available";
5135
5471
  unavailable: "unavailable";
5136
5472
  stale: "stale";
5137
- available: "available";
5138
5473
  }>;
5139
5474
  authoritative: z.ZodBoolean;
5140
5475
  unavailable_reason: z.ZodNullable<z.ZodString>;
@@ -5144,9 +5479,9 @@ export type CatalogAvailability = z.infer<typeof CatalogAvailabilitySchema>;
5144
5479
  export declare const ModelGroupSchema: z.ZodObject<{
5145
5480
  availability: z.ZodOptional<z.ZodObject<{
5146
5481
  status: z.ZodEnum<{
5482
+ available: "available";
5147
5483
  unavailable: "unavailable";
5148
5484
  stale: "stale";
5149
- available: "available";
5150
5485
  }>;
5151
5486
  authoritative: z.ZodBoolean;
5152
5487
  unavailable_reason: z.ZodNullable<z.ZodString>;
@@ -5222,9 +5557,9 @@ export declare const ModelGroupSchema: z.ZodObject<{
5222
5557
  export declare const ModelsSchema: z.ZodObject<{
5223
5558
  availability: z.ZodOptional<z.ZodObject<{
5224
5559
  status: z.ZodEnum<{
5560
+ available: "available";
5225
5561
  unavailable: "unavailable";
5226
5562
  stale: "stale";
5227
- available: "available";
5228
5563
  }>;
5229
5564
  authoritative: z.ZodBoolean;
5230
5565
  unavailable_reason: z.ZodNullable<z.ZodString>;
@@ -5238,9 +5573,9 @@ export declare const ModelsSchema: z.ZodObject<{
5238
5573
  groups: z.ZodArray<z.ZodObject<{
5239
5574
  availability: z.ZodOptional<z.ZodObject<{
5240
5575
  status: z.ZodEnum<{
5576
+ available: "available";
5241
5577
  unavailable: "unavailable";
5242
5578
  stale: "stale";
5243
- available: "available";
5244
5579
  }>;
5245
5580
  authoritative: z.ZodBoolean;
5246
5581
  unavailable_reason: z.ZodNullable<z.ZodString>;
@@ -5319,9 +5654,9 @@ export declare const ModelsSchema: z.ZodObject<{
5319
5654
  export declare const ModelsLiveSchema: z.ZodObject<{
5320
5655
  availability: z.ZodOptional<z.ZodObject<{
5321
5656
  status: z.ZodEnum<{
5657
+ available: "available";
5322
5658
  unavailable: "unavailable";
5323
5659
  stale: "stale";
5324
- available: "available";
5325
5660
  }>;
5326
5661
  authoritative: z.ZodBoolean;
5327
5662
  unavailable_reason: z.ZodNullable<z.ZodString>;
@@ -5428,9 +5763,9 @@ export declare const ProviderSchema: z.ZodObject<{
5428
5763
  export declare const ProvidersSchema: z.ZodObject<{
5429
5764
  availability: z.ZodOptional<z.ZodObject<{
5430
5765
  status: z.ZodEnum<{
5766
+ available: "available";
5431
5767
  unavailable: "unavailable";
5432
5768
  stale: "stale";
5433
- available: "available";
5434
5769
  }>;
5435
5770
  authoritative: z.ZodBoolean;
5436
5771
  unavailable_reason: z.ZodNullable<z.ZodString>;
@@ -5523,8 +5858,8 @@ export declare const QuotaPaceSchema: z.ZodObject<{
5523
5858
  }, z.core.$loose>;
5524
5859
  export declare const QuotaForecastSchema: z.ZodObject<{
5525
5860
  outcome: z.ZodEnum<{
5526
- warning: "warning";
5527
5861
  safe: "safe";
5862
+ warning: "warning";
5528
5863
  }>;
5529
5864
  budget_unit: z.ZodEnum<{
5530
5865
  hour: "hour";
@@ -5556,8 +5891,8 @@ export declare const QuotaWindowSchema: z.ZodObject<{
5556
5891
  }, z.core.$loose>>;
5557
5892
  forecast: z.ZodNullable<z.ZodObject<{
5558
5893
  outcome: z.ZodEnum<{
5559
- warning: "warning";
5560
5894
  safe: "safe";
5895
+ warning: "warning";
5561
5896
  }>;
5562
5897
  budget_unit: z.ZodEnum<{
5563
5898
  hour: "hour";
@@ -5618,8 +5953,8 @@ export declare const QuotaSourceSchema: z.ZodObject<{
5618
5953
  }, z.core.$loose>>;
5619
5954
  forecast: z.ZodNullable<z.ZodObject<{
5620
5955
  outcome: z.ZodEnum<{
5621
- warning: "warning";
5622
5956
  safe: "safe";
5957
+ warning: "warning";
5623
5958
  }>;
5624
5959
  budget_unit: z.ZodEnum<{
5625
5960
  hour: "hour";
@@ -5702,8 +6037,8 @@ export declare const QuotaAccountLimitsSchema: z.ZodObject<{
5702
6037
  }, z.core.$loose>>;
5703
6038
  forecast: z.ZodNullable<z.ZodObject<{
5704
6039
  outcome: z.ZodEnum<{
5705
- warning: "warning";
5706
6040
  safe: "safe";
6041
+ warning: "warning";
5707
6042
  }>;
5708
6043
  budget_unit: z.ZodEnum<{
5709
6044
  hour: "hour";
@@ -5776,8 +6111,8 @@ export declare const ProviderQuotaSchema: z.ZodObject<{
5776
6111
  }, z.core.$loose>>;
5777
6112
  forecast: z.ZodNullable<z.ZodObject<{
5778
6113
  outcome: z.ZodEnum<{
5779
- warning: "warning";
5780
6114
  safe: "safe";
6115
+ warning: "warning";
5781
6116
  }>;
5782
6117
  budget_unit: z.ZodEnum<{
5783
6118
  hour: "hour";
@@ -5815,9 +6150,9 @@ export declare const ProviderQuotaSchema: z.ZodObject<{
5815
6150
  export declare const ProviderQuotasSchema: z.ZodObject<{
5816
6151
  availability: z.ZodOptional<z.ZodObject<{
5817
6152
  status: z.ZodEnum<{
6153
+ available: "available";
5818
6154
  unavailable: "unavailable";
5819
6155
  stale: "stale";
5820
- available: "available";
5821
6156
  }>;
5822
6157
  authoritative: z.ZodBoolean;
5823
6158
  unavailable_reason: z.ZodNullable<z.ZodString>;
@@ -5864,8 +6199,8 @@ export declare const ProviderQuotasSchema: z.ZodObject<{
5864
6199
  }, z.core.$loose>>;
5865
6200
  forecast: z.ZodNullable<z.ZodObject<{
5866
6201
  outcome: z.ZodEnum<{
5867
- warning: "warning";
5868
6202
  safe: "safe";
6203
+ warning: "warning";
5869
6204
  }>;
5870
6205
  budget_unit: z.ZodEnum<{
5871
6206
  hour: "hour";
@@ -6077,14 +6412,14 @@ export declare const DirListingSchema: z.ZodObject<{
6077
6412
  }, z.core.$loose>;
6078
6413
  /** How a workspace file renders (TAL-566): media streams from `/api/file/raw`; text kinds carry `content`. */
6079
6414
  export declare const FilePreviewKindSchema: z.ZodEnum<{
6415
+ markdown: "markdown";
6416
+ html: "html";
6080
6417
  text: "text";
6081
6418
  image: "image";
6082
6419
  audio: "audio";
6083
6420
  video: "video";
6084
6421
  pdf: "pdf";
6085
- markdown: "markdown";
6086
6422
  csv: "csv";
6087
- html: "html";
6088
6423
  binary: "binary";
6089
6424
  }>;
6090
6425
  export type FilePreviewKind = z.infer<typeof FilePreviewKindSchema>;
@@ -6099,14 +6434,14 @@ export declare const FileContentSchema: z.ZodObject<{
6099
6434
  binary: z.ZodOptional<z.ZodBoolean>;
6100
6435
  mime: z.ZodOptional<z.ZodString>;
6101
6436
  preview: z.ZodOptional<z.ZodEnum<{
6437
+ markdown: "markdown";
6438
+ html: "html";
6102
6439
  text: "text";
6103
6440
  image: "image";
6104
6441
  audio: "audio";
6105
6442
  video: "video";
6106
6443
  pdf: "pdf";
6107
- markdown: "markdown";
6108
6444
  csv: "csv";
6109
- html: "html";
6110
6445
  binary: "binary";
6111
6446
  }>>;
6112
6447
  table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
@@ -6132,9 +6467,9 @@ export declare const SkillSchema: z.ZodObject<{
6132
6467
  load_name: z.ZodOptional<z.ZodString>;
6133
6468
  declared_name: z.ZodOptional<z.ZodString>;
6134
6469
  status: z.ZodOptional<z.ZodEnum<{
6470
+ shadowed: "shadowed";
6135
6471
  unique: "unique";
6136
6472
  ambiguous: "ambiguous";
6137
- shadowed: "shadowed";
6138
6473
  }>>;
6139
6474
  tier: z.ZodOptional<z.ZodNumber>;
6140
6475
  }, z.core.$loose>;
@@ -6147,9 +6482,9 @@ export declare const SkillsSchema: z.ZodObject<{
6147
6482
  load_name: z.ZodOptional<z.ZodString>;
6148
6483
  declared_name: z.ZodOptional<z.ZodString>;
6149
6484
  status: z.ZodOptional<z.ZodEnum<{
6485
+ shadowed: "shadowed";
6150
6486
  unique: "unique";
6151
6487
  ambiguous: "ambiguous";
6152
- shadowed: "shadowed";
6153
6488
  }>>;
6154
6489
  tier: z.ZodOptional<z.ZodNumber>;
6155
6490
  }, z.core.$loose>>;
@@ -6435,14 +6770,14 @@ export declare const ProjectOsDashboardSchema: z.ZodObject<{
6435
6770
  binary: z.ZodOptional<z.ZodBoolean>;
6436
6771
  mime: z.ZodOptional<z.ZodString>;
6437
6772
  preview: z.ZodOptional<z.ZodEnum<{
6773
+ markdown: "markdown";
6774
+ html: "html";
6438
6775
  text: "text";
6439
6776
  image: "image";
6440
6777
  audio: "audio";
6441
6778
  video: "video";
6442
6779
  pdf: "pdf";
6443
- markdown: "markdown";
6444
6780
  csv: "csv";
6445
- html: "html";
6446
6781
  binary: "binary";
6447
6782
  }>>;
6448
6783
  table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
@@ -6458,14 +6793,14 @@ export declare const ProjectOsDashboardSchema: z.ZodObject<{
6458
6793
  binary: z.ZodOptional<z.ZodBoolean>;
6459
6794
  mime: z.ZodOptional<z.ZodString>;
6460
6795
  preview: z.ZodOptional<z.ZodEnum<{
6796
+ markdown: "markdown";
6797
+ html: "html";
6461
6798
  text: "text";
6462
6799
  image: "image";
6463
6800
  audio: "audio";
6464
6801
  video: "video";
6465
6802
  pdf: "pdf";
6466
- markdown: "markdown";
6467
6803
  csv: "csv";
6468
- html: "html";
6469
6804
  binary: "binary";
6470
6805
  }>>;
6471
6806
  table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
@@ -6481,14 +6816,14 @@ export declare const ProjectOsDashboardSchema: z.ZodObject<{
6481
6816
  binary: z.ZodOptional<z.ZodBoolean>;
6482
6817
  mime: z.ZodOptional<z.ZodString>;
6483
6818
  preview: z.ZodOptional<z.ZodEnum<{
6819
+ markdown: "markdown";
6820
+ html: "html";
6484
6821
  text: "text";
6485
6822
  image: "image";
6486
6823
  audio: "audio";
6487
6824
  video: "video";
6488
6825
  pdf: "pdf";
6489
- markdown: "markdown";
6490
6826
  csv: "csv";
6491
- html: "html";
6492
6827
  binary: "binary";
6493
6828
  }>>;
6494
6829
  table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
@@ -6504,14 +6839,14 @@ export declare const ProjectOsDashboardSchema: z.ZodObject<{
6504
6839
  binary: z.ZodOptional<z.ZodBoolean>;
6505
6840
  mime: z.ZodOptional<z.ZodString>;
6506
6841
  preview: z.ZodOptional<z.ZodEnum<{
6842
+ markdown: "markdown";
6843
+ html: "html";
6507
6844
  text: "text";
6508
6845
  image: "image";
6509
6846
  audio: "audio";
6510
6847
  video: "video";
6511
6848
  pdf: "pdf";
6512
- markdown: "markdown";
6513
6849
  csv: "csv";
6514
- html: "html";
6515
6850
  binary: "binary";
6516
6851
  }>>;
6517
6852
  table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
@@ -6720,11 +7055,11 @@ export declare const UpdateTargetSchema: z.ZodObject<{
6720
7055
  }, z.core.$loose>;
6721
7056
  export declare const AgentRecoveryStateSchema: z.ZodObject<{
6722
7057
  phase: z.ZodEnum<{
7058
+ blocked: "blocked";
6723
7059
  running: "running";
6724
7060
  waiting: "waiting";
6725
7061
  idle: "idle";
6726
7062
  complete: "complete";
6727
- blocked: "blocked";
6728
7063
  }>;
6729
7064
  attempt: z.ZodNumber;
6730
7065
  detail: z.ZodString;
@@ -6734,11 +7069,11 @@ export type AgentRecoveryState = z.infer<typeof AgentRecoveryStateSchema>;
6734
7069
  export declare const UpdatesCheckSchema: z.ZodObject<{
6735
7070
  agent_recovery: z.ZodOptional<z.ZodObject<{
6736
7071
  phase: z.ZodEnum<{
7072
+ blocked: "blocked";
6737
7073
  running: "running";
6738
7074
  waiting: "waiting";
6739
7075
  idle: "idle";
6740
7076
  complete: "complete";
6741
- blocked: "blocked";
6742
7077
  }>;
6743
7078
  attempt: z.ZodNumber;
6744
7079
  detail: z.ZodString;
@@ -6953,14 +7288,16 @@ export declare const UpdateApplySchema: z.ZodObject<{
6953
7288
  stash_conflict: z.ZodOptional<z.ZodBoolean>;
6954
7289
  gateway_restart: z.ZodOptional<z.ZodString>;
6955
7290
  }, z.core.$loose>;
7291
+ /** `verifying` (TAL-1138): the gateway restarted, and the server is checking that the new gateway process and the Agent runtime answer. */
6956
7292
  export declare const UpdateNotificationPhaseSchema: z.ZodEnum<{
6957
7293
  unknown: "unknown";
6958
- failed: "failed";
6959
7294
  blocked: "blocked";
7295
+ restarting: "restarting";
7296
+ failed: "failed";
6960
7297
  applying: "applying";
6961
7298
  awaiting_confirmation: "awaiting_confirmation";
6962
7299
  waiting_for_idle: "waiting_for_idle";
6963
- restarting: "restarting";
7300
+ verifying: "verifying";
6964
7301
  succeeded: "succeeded";
6965
7302
  }>;
6966
7303
  export declare const UpdateNotificationActionSchema: z.ZodObject<{
@@ -6977,6 +7314,24 @@ export declare const UpdateNotificationDestinationSchema: z.ZodObject<{
6977
7314
  key: z.ZodString;
6978
7315
  label: z.ZodString;
6979
7316
  }, z.core.$strip>;
7317
+ /** TAL-1138: one step of an update as its Updating dialog lists it; the server derives every label and state. */
7318
+ export declare const UpdateStepSchema: z.ZodObject<{
7319
+ id: z.ZodEnum<{
7320
+ ready: "ready";
7321
+ gateway_restart: "gateway_restart";
7322
+ install: "install";
7323
+ web_restart: "web_restart";
7324
+ gateway_wait: "gateway_wait";
7325
+ agent_ready: "agent_ready";
7326
+ }>;
7327
+ label: z.ZodString;
7328
+ state: z.ZodEnum<{
7329
+ pending: "pending";
7330
+ active: "active";
7331
+ failed: "failed";
7332
+ done: "done";
7333
+ }>;
7334
+ }, z.core.$strip>;
6980
7335
  export declare const UpdateNotificationSchema: z.ZodObject<{
6981
7336
  id: z.ZodUUID;
6982
7337
  kind: z.ZodString;
@@ -6986,12 +7341,13 @@ export declare const UpdateNotificationSchema: z.ZodObject<{
6986
7341
  }>>;
6987
7342
  phase: z.ZodUnion<readonly [z.ZodEnum<{
6988
7343
  unknown: "unknown";
6989
- failed: "failed";
6990
7344
  blocked: "blocked";
7345
+ restarting: "restarting";
7346
+ failed: "failed";
6991
7347
  applying: "applying";
6992
7348
  awaiting_confirmation: "awaiting_confirmation";
6993
7349
  waiting_for_idle: "waiting_for_idle";
6994
- restarting: "restarting";
7350
+ verifying: "verifying";
6995
7351
  succeeded: "succeeded";
6996
7352
  }>, z.ZodString]>;
6997
7353
  severity: z.ZodEnum<{
@@ -7029,6 +7385,30 @@ export declare const UpdateNotificationSchema: z.ZodObject<{
7029
7385
  active: z.ZodBoolean;
7030
7386
  requires_interaction: z.ZodBoolean;
7031
7387
  can_dismiss: z.ZodBoolean;
7388
+ steps: z.ZodArray<z.ZodObject<{
7389
+ id: z.ZodEnum<{
7390
+ ready: "ready";
7391
+ gateway_restart: "gateway_restart";
7392
+ install: "install";
7393
+ web_restart: "web_restart";
7394
+ gateway_wait: "gateway_wait";
7395
+ agent_ready: "agent_ready";
7396
+ }>;
7397
+ label: z.ZodString;
7398
+ state: z.ZodEnum<{
7399
+ pending: "pending";
7400
+ active: "active";
7401
+ failed: "failed";
7402
+ done: "done";
7403
+ }>;
7404
+ }, z.core.$strip>>;
7405
+ presents_dialog: z.ZodBoolean;
7406
+ dialog_close: z.ZodEnum<{
7407
+ auto: "auto";
7408
+ none: "none";
7409
+ close: "close";
7410
+ restart_later: "restart_later";
7411
+ }>;
7032
7412
  }, z.core.$strip>;
7033
7413
  export declare const FrontendBuildIdSchema: z.ZodString;
7034
7414
  export declare const TabIdSchema: z.ZodString;
@@ -7056,12 +7436,13 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
7056
7436
  }>>;
7057
7437
  phase: z.ZodUnion<readonly [z.ZodEnum<{
7058
7438
  unknown: "unknown";
7059
- failed: "failed";
7060
7439
  blocked: "blocked";
7440
+ restarting: "restarting";
7441
+ failed: "failed";
7061
7442
  applying: "applying";
7062
7443
  awaiting_confirmation: "awaiting_confirmation";
7063
7444
  waiting_for_idle: "waiting_for_idle";
7064
- restarting: "restarting";
7445
+ verifying: "verifying";
7065
7446
  succeeded: "succeeded";
7066
7447
  }>, z.ZodString]>;
7067
7448
  severity: z.ZodEnum<{
@@ -7099,6 +7480,30 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
7099
7480
  active: z.ZodBoolean;
7100
7481
  requires_interaction: z.ZodBoolean;
7101
7482
  can_dismiss: z.ZodBoolean;
7483
+ steps: z.ZodArray<z.ZodObject<{
7484
+ id: z.ZodEnum<{
7485
+ ready: "ready";
7486
+ gateway_restart: "gateway_restart";
7487
+ install: "install";
7488
+ web_restart: "web_restart";
7489
+ gateway_wait: "gateway_wait";
7490
+ agent_ready: "agent_ready";
7491
+ }>;
7492
+ label: z.ZodString;
7493
+ state: z.ZodEnum<{
7494
+ pending: "pending";
7495
+ active: "active";
7496
+ failed: "failed";
7497
+ done: "done";
7498
+ }>;
7499
+ }, z.core.$strip>>;
7500
+ presents_dialog: z.ZodBoolean;
7501
+ dialog_close: z.ZodEnum<{
7502
+ auto: "auto";
7503
+ none: "none";
7504
+ close: "close";
7505
+ restart_later: "restart_later";
7506
+ }>;
7102
7507
  }, z.core.$strip>>;
7103
7508
  tab_update: z.ZodNullable<z.ZodObject<{
7104
7509
  id: z.ZodUUID;
@@ -7109,12 +7514,13 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
7109
7514
  }>>;
7110
7515
  phase: z.ZodUnion<readonly [z.ZodEnum<{
7111
7516
  unknown: "unknown";
7112
- failed: "failed";
7113
7517
  blocked: "blocked";
7518
+ restarting: "restarting";
7519
+ failed: "failed";
7114
7520
  applying: "applying";
7115
7521
  awaiting_confirmation: "awaiting_confirmation";
7116
7522
  waiting_for_idle: "waiting_for_idle";
7117
- restarting: "restarting";
7523
+ verifying: "verifying";
7118
7524
  succeeded: "succeeded";
7119
7525
  }>, z.ZodString]>;
7120
7526
  severity: z.ZodEnum<{
@@ -7152,6 +7558,30 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
7152
7558
  active: z.ZodBoolean;
7153
7559
  requires_interaction: z.ZodBoolean;
7154
7560
  can_dismiss: z.ZodBoolean;
7561
+ steps: z.ZodArray<z.ZodObject<{
7562
+ id: z.ZodEnum<{
7563
+ ready: "ready";
7564
+ gateway_restart: "gateway_restart";
7565
+ install: "install";
7566
+ web_restart: "web_restart";
7567
+ gateway_wait: "gateway_wait";
7568
+ agent_ready: "agent_ready";
7569
+ }>;
7570
+ label: z.ZodString;
7571
+ state: z.ZodEnum<{
7572
+ pending: "pending";
7573
+ active: "active";
7574
+ failed: "failed";
7575
+ done: "done";
7576
+ }>;
7577
+ }, z.core.$strip>>;
7578
+ presents_dialog: z.ZodBoolean;
7579
+ dialog_close: z.ZodEnum<{
7580
+ auto: "auto";
7581
+ none: "none";
7582
+ close: "close";
7583
+ restart_later: "restart_later";
7584
+ }>;
7155
7585
  }, z.core.$strip>>;
7156
7586
  tab_joined_at: z.ZodNullable<z.ZodISODateTime>;
7157
7587
  unread_count: z.ZodNumber;
@@ -7182,6 +7612,20 @@ export declare const PluginSettingViewSchema: z.ZodObject<{
7182
7612
  locked: z.ZodOptional<z.ZodBoolean>;
7183
7613
  }, z.core.$strip>;
7184
7614
  export type PluginSettingView = z.infer<typeof PluginSettingViewSchema>;
7615
+ /** TAL-1276: a plugin OAuth client as Settings shows it; `can_sign_out` is true while the profile stores a grant for it (any state but `logged_out`). */
7616
+ export declare const PluginOAuthClientViewSchema: z.ZodObject<{
7617
+ id: z.ZodString;
7618
+ state: z.ZodEnum<{
7619
+ signed_in: "signed_in";
7620
+ sign_in_needed: "sign_in_needed";
7621
+ revoked: "revoked";
7622
+ logged_out: "logged_out";
7623
+ }>;
7624
+ authorize_host: z.ZodString;
7625
+ token_host: z.ZodString;
7626
+ can_sign_out: z.ZodBoolean;
7627
+ }, z.core.$strip>;
7628
+ export type PluginOAuthClientView = z.infer<typeof PluginOAuthClientViewSchema>;
7185
7629
  export declare const PluginSchema: z.ZodObject<{
7186
7630
  key: z.ZodString;
7187
7631
  name: z.ZodOptional<z.ZodString>;
@@ -7192,6 +7636,10 @@ export declare const PluginSchema: z.ZodObject<{
7192
7636
  activation: z.ZodOptional<z.ZodString>;
7193
7637
  is_active_provider: z.ZodOptional<z.ZodBoolean>;
7194
7638
  hooks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
7639
+ update: z.ZodOptional<z.ZodObject<{
7640
+ available: z.ZodBoolean;
7641
+ latest_revision: z.ZodOptional<z.ZodString>;
7642
+ }, z.core.$strip>>;
7195
7643
  settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
7196
7644
  key: z.ZodString;
7197
7645
  type: z.ZodEnum<{
@@ -7212,6 +7660,18 @@ export declare const PluginSchema: z.ZodObject<{
7212
7660
  has_value: z.ZodOptional<z.ZodBoolean>;
7213
7661
  locked: z.ZodOptional<z.ZodBoolean>;
7214
7662
  }, z.core.$strip>>>;
7663
+ oauth_clients: z.ZodOptional<z.ZodArray<z.ZodObject<{
7664
+ id: z.ZodString;
7665
+ state: z.ZodEnum<{
7666
+ signed_in: "signed_in";
7667
+ sign_in_needed: "sign_in_needed";
7668
+ revoked: "revoked";
7669
+ logged_out: "logged_out";
7670
+ }>;
7671
+ authorize_host: z.ZodString;
7672
+ token_host: z.ZodString;
7673
+ can_sign_out: z.ZodBoolean;
7674
+ }, z.core.$strip>>>;
7215
7675
  }, z.core.$loose>;
7216
7676
  /**
7217
7677
  * `read_only` (TAL-806): this session may not save plugin `settings` (not the server owner, or no sidecar).
@@ -7229,6 +7689,10 @@ export declare const PluginsSchema: z.ZodObject<{
7229
7689
  activation: z.ZodOptional<z.ZodString>;
7230
7690
  is_active_provider: z.ZodOptional<z.ZodBoolean>;
7231
7691
  hooks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
7692
+ update: z.ZodOptional<z.ZodObject<{
7693
+ available: z.ZodBoolean;
7694
+ latest_revision: z.ZodOptional<z.ZodString>;
7695
+ }, z.core.$strip>>;
7232
7696
  settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
7233
7697
  key: z.ZodString;
7234
7698
  type: z.ZodEnum<{
@@ -7249,6 +7713,18 @@ export declare const PluginsSchema: z.ZodObject<{
7249
7713
  has_value: z.ZodOptional<z.ZodBoolean>;
7250
7714
  locked: z.ZodOptional<z.ZodBoolean>;
7251
7715
  }, z.core.$strip>>>;
7716
+ oauth_clients: z.ZodOptional<z.ZodArray<z.ZodObject<{
7717
+ id: z.ZodString;
7718
+ state: z.ZodEnum<{
7719
+ signed_in: "signed_in";
7720
+ sign_in_needed: "sign_in_needed";
7721
+ revoked: "revoked";
7722
+ logged_out: "logged_out";
7723
+ }>;
7724
+ authorize_host: z.ZodString;
7725
+ token_host: z.ZodString;
7726
+ can_sign_out: z.ZodBoolean;
7727
+ }, z.core.$strip>>>;
7252
7728
  }, z.core.$loose>>;
7253
7729
  empty: z.ZodOptional<z.ZodBoolean>;
7254
7730
  read_only: z.ZodOptional<z.ZodBoolean>;
@@ -7297,9 +7773,9 @@ export declare const ConnectorAccountViewSchema: z.ZodObject<{
7297
7773
  name: z.ZodString;
7298
7774
  problem: z.ZodNullable<z.ZodEnum<{
7299
7775
  pending: "pending";
7300
- failed: "failed";
7301
7776
  expired: "expired";
7302
7777
  revoked: "revoked";
7778
+ failed: "failed";
7303
7779
  inactive: "inactive";
7304
7780
  }>>;
7305
7781
  status_reason: z.ZodNullable<z.ZodString>;
@@ -7323,9 +7799,9 @@ export declare const ConnectorViewSchema: z.ZodObject<{
7323
7799
  name: z.ZodString;
7324
7800
  problem: z.ZodNullable<z.ZodEnum<{
7325
7801
  pending: "pending";
7326
- failed: "failed";
7327
7802
  expired: "expired";
7328
7803
  revoked: "revoked";
7804
+ failed: "failed";
7329
7805
  inactive: "inactive";
7330
7806
  }>>;
7331
7807
  status_reason: z.ZodNullable<z.ZodString>;
@@ -7340,10 +7816,12 @@ export declare const ConnectorViewSchema: z.ZodObject<{
7340
7816
  /**
7341
7817
  * TAL-818: the Connectors page. `available` is the Agent's connectors gate; false hides the page. `policy_revision` is the
7342
7818
  * 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).
7819
+ * so no switch changes them. `sign_in_required` offers Nous sign-in without creating a guest on reads.
7820
+ * `rules_error`: why the rules could not be read; every app then reads off (fails closed).
7344
7821
  */
7345
7822
  export declare const ConnectorsPageSchema: z.ZodObject<{
7346
7823
  available: z.ZodBoolean;
7824
+ sign_in_required: z.ZodDefault<z.ZodBoolean>;
7347
7825
  connectors: z.ZodArray<z.ZodObject<{
7348
7826
  slug: z.ZodString;
7349
7827
  name: z.ZodString;
@@ -7356,9 +7834,9 @@ export declare const ConnectorsPageSchema: z.ZodObject<{
7356
7834
  name: z.ZodString;
7357
7835
  problem: z.ZodNullable<z.ZodEnum<{
7358
7836
  pending: "pending";
7359
- failed: "failed";
7360
7837
  expired: "expired";
7361
7838
  revoked: "revoked";
7839
+ failed: "failed";
7362
7840
  inactive: "inactive";
7363
7841
  }>>;
7364
7842
  status_reason: z.ZodNullable<z.ZodString>;
@@ -7417,11 +7895,11 @@ export declare const ConnectorOperationViewSchema: z.ZodObject<{
7417
7895
  kind: z.ZodString;
7418
7896
  state: z.ZodEnum<{
7419
7897
  pending: "pending";
7898
+ expired: "expired";
7420
7899
  skipped: "skipped";
7421
7900
  initiated: "initiated";
7422
7901
  connected: "connected";
7423
7902
  failed: "failed";
7424
- expired: "expired";
7425
7903
  not_connected: "not_connected";
7426
7904
  }>;
7427
7905
  detail: z.ZodString;
@@ -7503,8 +7981,8 @@ export declare const WikiStatusSchema: z.ZodObject<{
7503
7981
  enabled: z.ZodBoolean;
7504
7982
  status: z.ZodEnum<{
7505
7983
  error: "error";
7506
- ready: "ready";
7507
7984
  empty: "empty";
7985
+ ready: "ready";
7508
7986
  missing: "missing";
7509
7987
  not_directory: "not_directory";
7510
7988
  }>;
@@ -7633,9 +8111,9 @@ export declare const OnboardingStatusSchema: z.ZodObject<{
7633
8111
  models: z.ZodOptional<z.ZodObject<{
7634
8112
  availability: z.ZodOptional<z.ZodObject<{
7635
8113
  status: z.ZodEnum<{
8114
+ available: "available";
7636
8115
  unavailable: "unavailable";
7637
8116
  stale: "stale";
7638
- available: "available";
7639
8117
  }>;
7640
8118
  authoritative: z.ZodBoolean;
7641
8119
  unavailable_reason: z.ZodNullable<z.ZodString>;
@@ -7649,9 +8127,9 @@ export declare const OnboardingStatusSchema: z.ZodObject<{
7649
8127
  groups: z.ZodArray<z.ZodObject<{
7650
8128
  availability: z.ZodOptional<z.ZodObject<{
7651
8129
  status: z.ZodEnum<{
8130
+ available: "available";
7652
8131
  unavailable: "unavailable";
7653
8132
  stale: "stale";
7654
- available: "available";
7655
8133
  }>;
7656
8134
  authoritative: z.ZodBoolean;
7657
8135
  unavailable_reason: z.ZodNullable<z.ZodString>;
@@ -7753,6 +8231,9 @@ export declare const OnboardingOAuthSchema: z.ZodObject<{
7753
8231
  provider: z.ZodOptional<z.ZodString>;
7754
8232
  expires_in: z.ZodOptional<z.ZodNumber>;
7755
8233
  interval: z.ZodOptional<z.ZodNumber>;
8234
+ authorize_host: z.ZodOptional<z.ZodString>;
8235
+ token_host: z.ZodOptional<z.ZodString>;
8236
+ redirect_uri: z.ZodOptional<z.ZodString>;
7756
8237
  }, z.core.$loose>;
7757
8238
  export declare const CronScheduleSchema: z.ZodObject<{
7758
8239
  kind: z.ZodOptional<z.ZodString>;