@maudecode/talaria-web-contracts 1.21.0 → 1.22.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 (68) hide show
  1. package/dist/agent-imports.d.ts +42 -0
  2. package/dist/agent-imports.js +11 -0
  3. package/dist/agent-imports.js.map +1 -0
  4. package/dist/context-detail.d.ts +3 -3
  5. package/dist/delegation.d.ts +206 -0
  6. package/dist/delegation.js +32 -0
  7. package/dist/delegation.js.map +1 -0
  8. package/dist/gateway-session.d.ts +24 -4
  9. package/dist/gateway-session.js +5 -1
  10. package/dist/gateway-session.js.map +1 -1
  11. package/dist/groups-native.d.ts +427 -0
  12. package/dist/groups-native.js +40 -0
  13. package/dist/groups-native.js.map +1 -0
  14. package/dist/groups.d.ts +1545 -0
  15. package/dist/groups.js +12 -0
  16. package/dist/groups.js.map +1 -0
  17. package/dist/index.d.ts +5 -0
  18. package/dist/index.js +5 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/mcp-cost-policy.d.ts +1 -1
  21. package/dist/openapi.js +4 -0
  22. package/dist/openapi.js.map +1 -1
  23. package/dist/plan-usage.d.ts +92 -0
  24. package/dist/plan-usage.js +20 -0
  25. package/dist/plan-usage.js.map +1 -0
  26. package/dist/prompt-queue.d.ts +2 -2
  27. package/dist/router.d.ts +13 -20005
  28. package/dist/router.js +4 -1
  29. package/dist/router.js.map +1 -1
  30. package/dist/routes/automation.d.ts +15 -15
  31. package/dist/routes/chat.d.ts +269 -83
  32. package/dist/routes/groups.d.ts +860 -0
  33. package/dist/routes/groups.js +13 -0
  34. package/dist/routes/groups.js.map +1 -0
  35. package/dist/routes/raw.js +13 -3
  36. package/dist/routes/raw.js.map +1 -1
  37. package/dist/routes/sessions.d.ts +714 -204
  38. package/dist/routes/settings.d.ts +949 -1
  39. package/dist/routes/settings.js +26 -0
  40. package/dist/routes/settings.js.map +1 -1
  41. package/dist/routes/tools.d.ts +109 -24
  42. package/dist/routes/tools.js +5 -2
  43. package/dist/routes/tools.js.map +1 -1
  44. package/dist/routes/workspaces.d.ts +2 -2
  45. package/dist/sidecar/methods.d.ts +522 -24
  46. package/dist/sidecar/methods.js +3 -1
  47. package/dist/sidecar/methods.js.map +1 -1
  48. package/dist/sidecar/namespaces.d.ts +611 -34
  49. package/dist/sidecar/namespaces.js +46 -5
  50. package/dist/sidecar/namespaces.js.map +1 -1
  51. package/dist/sidecar/rpc.d.ts +3 -3
  52. package/dist/sidecar/version.d.ts +1 -1
  53. package/dist/sidecar/version.js +1 -1
  54. package/dist/sse.d.ts +95 -20
  55. package/dist/sse.js +4 -3
  56. package/dist/sse.js.map +1 -1
  57. package/dist/views.d.ts +872 -161
  58. package/dist/views.js +43 -20
  59. package/dist/views.js.map +1 -1
  60. package/fixtures/sidecar/agent-imports.json +6 -0
  61. package/fixtures/sidecar/aux.json +58 -0
  62. package/fixtures/sidecar/connectors.json +29 -0
  63. package/fixtures/sidecar/groups.json +18 -0
  64. package/fixtures/sidecar/providers.json +37 -1
  65. package/fixtures/sidecar/runtime.json +3 -3
  66. package/fixtures/sidecar/skills.json +19 -2
  67. package/fixtures/sidecar/tts.json +6 -0
  68. package/package.json +1 -1
package/dist/views.d.ts CHANGED
@@ -13,6 +13,7 @@ export declare const UnixSeconds: z.ZodNumber;
13
13
  export declare const SessionIdSchema: z.ZodString;
14
14
  export type SessionId = z.infer<typeof SessionIdSchema>;
15
15
  export declare const AttachmentSchema: z.ZodObject<{
16
+ download_url: z.ZodOptional<z.ZodString>;
16
17
  filename: z.ZodOptional<z.ZodString>;
17
18
  name: z.ZodOptional<z.ZodString>;
18
19
  path: z.ZodOptional<z.ZodString>;
@@ -27,8 +28,8 @@ export declare const ToolKindSchema: z.ZodEnum<{
27
28
  unknown: "unknown";
28
29
  memory: "memory";
29
30
  shell: "shell";
30
- read: "read";
31
31
  list: "list";
32
+ read: "read";
32
33
  search: "search";
33
34
  web: "web";
34
35
  write: "write";
@@ -120,8 +121,8 @@ export declare const ToolDisplayFields: {
120
121
  unknown: "unknown";
121
122
  memory: "memory";
122
123
  shell: "shell";
123
- read: "read";
124
124
  list: "list";
125
+ read: "read";
125
126
  search: "search";
126
127
  web: "web";
127
128
  write: "write";
@@ -218,8 +219,8 @@ export declare const ToolCallSchema: z.ZodObject<{
218
219
  unknown: "unknown";
219
220
  memory: "memory";
220
221
  shell: "shell";
221
- read: "read";
222
222
  list: "list";
223
+ read: "read";
223
224
  search: "search";
224
225
  web: "web";
225
226
  write: "write";
@@ -279,8 +280,8 @@ export declare const BackgroundLinkSchema: z.ZodObject<{
279
280
  status: z.ZodEnum<{
280
281
  unknown: "unknown";
281
282
  running: "running";
282
- cancelled: "cancelled";
283
283
  failed: "failed";
284
+ cancelled: "cancelled";
284
285
  completed: "completed";
285
286
  attention: "attention";
286
287
  }>;
@@ -306,9 +307,9 @@ export declare const DisplayMediaSchema: z.ZodObject<{
306
307
  kind: z.ZodEnum<{
307
308
  file: "file";
308
309
  image: "image";
310
+ pdf: "pdf";
309
311
  audio: "audio";
310
312
  video: "video";
311
- pdf: "pdf";
312
313
  }>;
313
314
  }, z.core.$strip>;
314
315
  export type DisplayMedia = z.infer<typeof DisplayMediaSchema>;
@@ -333,9 +334,9 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
333
334
  kind: z.ZodEnum<{
334
335
  file: "file";
335
336
  image: "image";
337
+ pdf: "pdf";
336
338
  audio: "audio";
337
339
  video: "video";
338
- pdf: "pdf";
339
340
  }>;
340
341
  }, z.core.$strip>>>;
341
342
  tool: z.ZodOptional<z.ZodObject<{
@@ -362,8 +363,8 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
362
363
  status: z.ZodEnum<{
363
364
  unknown: "unknown";
364
365
  running: "running";
365
- cancelled: "cancelled";
366
366
  failed: "failed";
367
+ cancelled: "cancelled";
367
368
  completed: "completed";
368
369
  attention: "attention";
369
370
  }>;
@@ -384,8 +385,8 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
384
385
  unknown: "unknown";
385
386
  memory: "memory";
386
387
  shell: "shell";
387
- read: "read";
388
388
  list: "list";
389
+ read: "read";
389
390
  search: "search";
390
391
  web: "web";
391
392
  write: "write";
@@ -475,9 +476,9 @@ export declare const ActivitySceneSchema: z.ZodObject<{
475
476
  kind: z.ZodEnum<{
476
477
  file: "file";
477
478
  image: "image";
479
+ pdf: "pdf";
478
480
  audio: "audio";
479
481
  video: "video";
480
- pdf: "pdf";
481
482
  }>;
482
483
  }, z.core.$strip>>>;
483
484
  tool: z.ZodOptional<z.ZodObject<{
@@ -504,8 +505,8 @@ export declare const ActivitySceneSchema: z.ZodObject<{
504
505
  status: z.ZodEnum<{
505
506
  unknown: "unknown";
506
507
  running: "running";
507
- cancelled: "cancelled";
508
508
  failed: "failed";
509
+ cancelled: "cancelled";
509
510
  completed: "completed";
510
511
  attention: "attention";
511
512
  }>;
@@ -526,8 +527,8 @@ export declare const ActivitySceneSchema: z.ZodObject<{
526
527
  unknown: "unknown";
527
528
  memory: "memory";
528
529
  shell: "shell";
529
- read: "read";
530
530
  list: "list";
531
+ read: "read";
531
532
  search: "search";
532
533
  web: "web";
533
534
  write: "write";
@@ -582,9 +583,9 @@ export declare const ActivitySceneSchema: z.ZodObject<{
582
583
  kind: z.ZodEnum<{
583
584
  file: "file";
584
585
  image: "image";
586
+ pdf: "pdf";
585
587
  audio: "audio";
586
588
  video: "video";
587
- pdf: "pdf";
588
589
  }>;
589
590
  }, z.core.$strip>>>;
590
591
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -619,9 +620,9 @@ export type BackgroundReviewState = z.infer<typeof BackgroundReviewStateSchema>;
619
620
  /** One finished background item (see `_background_update.lines`). */
620
621
  export declare const BackgroundLineSchema: z.ZodObject<{
621
622
  kind: z.ZodEnum<{
622
- command: "command";
623
623
  agent: "agent";
624
624
  other: "other";
625
+ command: "command";
625
626
  }>;
626
627
  status: z.ZodEnum<{
627
628
  failed: "failed";
@@ -706,6 +707,7 @@ export declare const MessageSchema: z.ZodObject<{
706
707
  }, z.core.$strip>>;
707
708
  }, z.core.$strip>>;
708
709
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
710
+ download_url: z.ZodOptional<z.ZodString>;
709
711
  filename: z.ZodOptional<z.ZodString>;
710
712
  name: z.ZodOptional<z.ZodString>;
711
713
  path: z.ZodOptional<z.ZodString>;
@@ -752,8 +754,8 @@ export declare const MessageSchema: z.ZodObject<{
752
754
  unknown: "unknown";
753
755
  memory: "memory";
754
756
  shell: "shell";
755
- read: "read";
756
757
  list: "list";
758
+ read: "read";
757
759
  search: "search";
758
760
  web: "web";
759
761
  write: "write";
@@ -818,9 +820,9 @@ export declare const MessageSchema: z.ZodObject<{
818
820
  kind: z.ZodEnum<{
819
821
  file: "file";
820
822
  image: "image";
823
+ pdf: "pdf";
821
824
  audio: "audio";
822
825
  video: "video";
823
- pdf: "pdf";
824
826
  }>;
825
827
  }, z.core.$strip>>>;
826
828
  tool: z.ZodOptional<z.ZodObject<{
@@ -847,8 +849,8 @@ export declare const MessageSchema: z.ZodObject<{
847
849
  status: z.ZodEnum<{
848
850
  unknown: "unknown";
849
851
  running: "running";
850
- cancelled: "cancelled";
851
852
  failed: "failed";
853
+ cancelled: "cancelled";
852
854
  completed: "completed";
853
855
  attention: "attention";
854
856
  }>;
@@ -869,8 +871,8 @@ export declare const MessageSchema: z.ZodObject<{
869
871
  unknown: "unknown";
870
872
  memory: "memory";
871
873
  shell: "shell";
872
- read: "read";
873
874
  list: "list";
875
+ read: "read";
874
876
  search: "search";
875
877
  web: "web";
876
878
  write: "write";
@@ -925,9 +927,9 @@ export declare const MessageSchema: z.ZodObject<{
925
927
  kind: z.ZodEnum<{
926
928
  file: "file";
927
929
  image: "image";
930
+ pdf: "pdf";
928
931
  audio: "audio";
929
932
  video: "video";
930
- pdf: "pdf";
931
933
  }>;
932
934
  }, z.core.$strip>>>;
933
935
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -973,9 +975,9 @@ export declare const MessageSchema: z.ZodObject<{
973
975
  kind: z.ZodEnum<{
974
976
  file: "file";
975
977
  image: "image";
978
+ pdf: "pdf";
976
979
  audio: "audio";
977
980
  video: "video";
978
- pdf: "pdf";
979
981
  }>;
980
982
  }, z.core.$strip>>>;
981
983
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -990,9 +992,9 @@ export declare const MessageSchema: z.ZodObject<{
990
992
  summary: z.ZodString;
991
993
  lines: z.ZodArray<z.ZodObject<{
992
994
  kind: z.ZodEnum<{
993
- command: "command";
994
995
  agent: "agent";
995
996
  other: "other";
997
+ command: "command";
996
998
  }>;
997
999
  status: z.ZodEnum<{
998
1000
  failed: "failed";
@@ -1074,8 +1076,8 @@ export type PendingSteer = z.infer<typeof PendingSteerSchema>;
1074
1076
  export declare const SessionNoticeSchema: z.ZodObject<{
1075
1077
  key: z.ZodString;
1076
1078
  level: z.ZodEnum<{
1077
- error: "error";
1078
1079
  success: "success";
1080
+ error: "error";
1079
1081
  info: "info";
1080
1082
  warn: "warn";
1081
1083
  }>;
@@ -1123,16 +1125,6 @@ export declare const SourceKindSchema: z.ZodEnum<{
1123
1125
  kanban: "kanban";
1124
1126
  api: "api";
1125
1127
  }>;
1126
- /**
1127
- * TAL-560: the "Context compaction · Reference only" card, on payloads that carry `messages`. Clients render `text` after
1128
- * the row at full-transcript index `after_message_index` (row `after_message_index - _messages_offset` of `messages`), or
1129
- * above the loaded rows when it is null or before them. Null: no card.
1130
- */
1131
- export declare const CompressionReferenceSchema: z.ZodObject<{
1132
- text: z.ZodString;
1133
- after_message_index: z.ZodNullable<z.ZodNumber>;
1134
- }, z.core.$strip>;
1135
- export type CompressionReference = z.infer<typeof CompressionReferenceSchema>;
1136
1128
  /** TAL-454: the chat a `/branch` copied, with its redacted title. */
1137
1129
  export declare const BranchedFromSchema: z.ZodObject<{
1138
1130
  session_id: z.ZodString;
@@ -1155,16 +1147,59 @@ export declare const AcceptedSourceReferenceSchema: z.ZodObject<{
1155
1147
  export type AcceptedSourceReference = z.infer<typeof AcceptedSourceReferenceSchema>;
1156
1148
  /** Full session record from `GET /api/session` and mutations returning `session`. */
1157
1149
  export declare const SessionActivityPhaseSchema: z.ZodEnum<{
1158
- running: "running";
1159
- cancelled: "cancelled";
1160
1150
  stale: "stale";
1151
+ running: "running";
1161
1152
  failed: "failed";
1153
+ cancelled: "cancelled";
1162
1154
  completed: "completed";
1163
1155
  starting: "starting";
1164
1156
  waiting_for_approval: "waiting_for_approval";
1165
1157
  waiting_for_input: "waiting_for_input";
1166
1158
  }>;
1167
1159
  export type SessionActivityPhase = z.infer<typeof SessionActivityPhaseSchema>;
1160
+ /** Raw rows remain for older clients; current clients render only the server-normalized display items. */
1161
+ export declare const TodoItemSchema: z.ZodObject<{
1162
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1163
+ text: z.ZodOptional<z.ZodString>;
1164
+ content: z.ZodOptional<z.ZodString>;
1165
+ title: z.ZodOptional<z.ZodString>;
1166
+ status: z.ZodOptional<z.ZodString>;
1167
+ done: z.ZodOptional<z.ZodBoolean>;
1168
+ completed: z.ZodOptional<z.ZodBoolean>;
1169
+ }, z.core.$loose>;
1170
+ export declare const TodoStateSchema: z.ZodObject<{
1171
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1172
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1173
+ text: z.ZodString;
1174
+ state: z.ZodEnum<{
1175
+ pending: "pending";
1176
+ cancelled: "cancelled";
1177
+ completed: "completed";
1178
+ in_progress: "in_progress";
1179
+ }>;
1180
+ }, z.core.$strip>>>;
1181
+ total_count: z.ZodOptional<z.ZodNumber>;
1182
+ completed_count: z.ZodOptional<z.ZodNumber>;
1183
+ pending_count: z.ZodOptional<z.ZodNumber>;
1184
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
1185
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
1186
+ session_id: z.ZodOptional<z.ZodString>;
1187
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
1188
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1189
+ text: z.ZodOptional<z.ZodString>;
1190
+ content: z.ZodOptional<z.ZodString>;
1191
+ title: z.ZodOptional<z.ZodString>;
1192
+ status: z.ZodOptional<z.ZodString>;
1193
+ done: z.ZodOptional<z.ZodBoolean>;
1194
+ completed: z.ZodOptional<z.ZodBoolean>;
1195
+ }, z.core.$loose>>>;
1196
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1197
+ version: z.ZodOptional<z.ZodNumber>;
1198
+ ts: z.ZodOptional<z.ZodNumber>;
1199
+ source: z.ZodOptional<z.ZodString>;
1200
+ description: z.ZodOptional<z.ZodString>;
1201
+ }, z.core.$loose>;
1202
+ export type TodoState = z.infer<typeof TodoStateSchema>;
1168
1203
  export declare const SessionSchema: z.ZodObject<{
1169
1204
  execution_mode: z.ZodOptional<z.ZodEnum<{
1170
1205
  normal: "normal";
@@ -1298,10 +1333,6 @@ export declare const SessionSchema: z.ZodObject<{
1298
1333
  }, z.core.$strip>>>;
1299
1334
  assistant_name: z.ZodOptional<z.ZodString>;
1300
1335
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1301
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1302
- text: z.ZodString;
1303
- after_message_index: z.ZodNullable<z.ZodNumber>;
1304
- }, z.core.$strip>>>;
1305
1336
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1306
1337
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1307
1338
  session_id: z.ZodString;
@@ -1311,16 +1342,55 @@ export declare const SessionSchema: z.ZodObject<{
1311
1342
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1312
1343
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1313
1344
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1345
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1346
+ id: z.ZodString;
1347
+ label: z.ZodString;
1348
+ used_bp: z.ZodNumber;
1349
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
1350
+ }, z.core.$strip>>>;
1351
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
1314
1352
  activity_phase: z.ZodOptional<z.ZodEnum<{
1315
- running: "running";
1316
- cancelled: "cancelled";
1317
1353
  stale: "stale";
1354
+ running: "running";
1318
1355
  failed: "failed";
1356
+ cancelled: "cancelled";
1319
1357
  completed: "completed";
1320
1358
  starting: "starting";
1321
1359
  waiting_for_approval: "waiting_for_approval";
1322
1360
  waiting_for_input: "waiting_for_input";
1323
1361
  }>>;
1362
+ todo_state: z.ZodOptional<z.ZodObject<{
1363
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1364
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1365
+ text: z.ZodString;
1366
+ state: z.ZodEnum<{
1367
+ pending: "pending";
1368
+ cancelled: "cancelled";
1369
+ completed: "completed";
1370
+ in_progress: "in_progress";
1371
+ }>;
1372
+ }, z.core.$strip>>>;
1373
+ total_count: z.ZodOptional<z.ZodNumber>;
1374
+ completed_count: z.ZodOptional<z.ZodNumber>;
1375
+ pending_count: z.ZodOptional<z.ZodNumber>;
1376
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
1377
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
1378
+ session_id: z.ZodOptional<z.ZodString>;
1379
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
1380
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1381
+ text: z.ZodOptional<z.ZodString>;
1382
+ content: z.ZodOptional<z.ZodString>;
1383
+ title: z.ZodOptional<z.ZodString>;
1384
+ status: z.ZodOptional<z.ZodString>;
1385
+ done: z.ZodOptional<z.ZodBoolean>;
1386
+ completed: z.ZodOptional<z.ZodBoolean>;
1387
+ }, z.core.$loose>>>;
1388
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1389
+ version: z.ZodOptional<z.ZodNumber>;
1390
+ ts: z.ZodOptional<z.ZodNumber>;
1391
+ source: z.ZodOptional<z.ZodString>;
1392
+ description: z.ZodOptional<z.ZodString>;
1393
+ }, z.core.$loose>>;
1324
1394
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1325
1395
  session_id: z.ZodString;
1326
1396
  tip_session_id: z.ZodString;
@@ -1403,6 +1473,7 @@ export declare const SessionSchema: z.ZodObject<{
1403
1473
  }, z.core.$strip>>;
1404
1474
  }, z.core.$strip>>;
1405
1475
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1476
+ download_url: z.ZodOptional<z.ZodString>;
1406
1477
  filename: z.ZodOptional<z.ZodString>;
1407
1478
  name: z.ZodOptional<z.ZodString>;
1408
1479
  path: z.ZodOptional<z.ZodString>;
@@ -1449,8 +1520,8 @@ export declare const SessionSchema: z.ZodObject<{
1449
1520
  unknown: "unknown";
1450
1521
  memory: "memory";
1451
1522
  shell: "shell";
1452
- read: "read";
1453
1523
  list: "list";
1524
+ read: "read";
1454
1525
  search: "search";
1455
1526
  web: "web";
1456
1527
  write: "write";
@@ -1515,9 +1586,9 @@ export declare const SessionSchema: z.ZodObject<{
1515
1586
  kind: z.ZodEnum<{
1516
1587
  file: "file";
1517
1588
  image: "image";
1589
+ pdf: "pdf";
1518
1590
  audio: "audio";
1519
1591
  video: "video";
1520
- pdf: "pdf";
1521
1592
  }>;
1522
1593
  }, z.core.$strip>>>;
1523
1594
  tool: z.ZodOptional<z.ZodObject<{
@@ -1544,8 +1615,8 @@ export declare const SessionSchema: z.ZodObject<{
1544
1615
  status: z.ZodEnum<{
1545
1616
  unknown: "unknown";
1546
1617
  running: "running";
1547
- cancelled: "cancelled";
1548
1618
  failed: "failed";
1619
+ cancelled: "cancelled";
1549
1620
  completed: "completed";
1550
1621
  attention: "attention";
1551
1622
  }>;
@@ -1566,8 +1637,8 @@ export declare const SessionSchema: z.ZodObject<{
1566
1637
  unknown: "unknown";
1567
1638
  memory: "memory";
1568
1639
  shell: "shell";
1569
- read: "read";
1570
1640
  list: "list";
1641
+ read: "read";
1571
1642
  search: "search";
1572
1643
  web: "web";
1573
1644
  write: "write";
@@ -1622,9 +1693,9 @@ export declare const SessionSchema: z.ZodObject<{
1622
1693
  kind: z.ZodEnum<{
1623
1694
  file: "file";
1624
1695
  image: "image";
1696
+ pdf: "pdf";
1625
1697
  audio: "audio";
1626
1698
  video: "video";
1627
- pdf: "pdf";
1628
1699
  }>;
1629
1700
  }, z.core.$strip>>>;
1630
1701
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -1670,9 +1741,9 @@ export declare const SessionSchema: z.ZodObject<{
1670
1741
  kind: z.ZodEnum<{
1671
1742
  file: "file";
1672
1743
  image: "image";
1744
+ pdf: "pdf";
1673
1745
  audio: "audio";
1674
1746
  video: "video";
1675
- pdf: "pdf";
1676
1747
  }>;
1677
1748
  }, z.core.$strip>>>;
1678
1749
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -1687,9 +1758,9 @@ export declare const SessionSchema: z.ZodObject<{
1687
1758
  summary: z.ZodString;
1688
1759
  lines: z.ZodArray<z.ZodObject<{
1689
1760
  kind: z.ZodEnum<{
1690
- command: "command";
1691
1761
  agent: "agent";
1692
1762
  other: "other";
1763
+ command: "command";
1693
1764
  }>;
1694
1765
  status: z.ZodEnum<{
1695
1766
  failed: "failed";
@@ -1777,8 +1848,8 @@ export declare const SessionSchema: z.ZodObject<{
1777
1848
  unknown: "unknown";
1778
1849
  memory: "memory";
1779
1850
  shell: "shell";
1780
- read: "read";
1781
1851
  list: "list";
1852
+ read: "read";
1782
1853
  search: "search";
1783
1854
  web: "web";
1784
1855
  write: "write";
@@ -1871,8 +1942,8 @@ export declare const SessionSchema: z.ZodObject<{
1871
1942
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1872
1943
  key: z.ZodString;
1873
1944
  level: z.ZodEnum<{
1874
- error: "error";
1875
1945
  success: "success";
1946
+ error: "error";
1876
1947
  info: "info";
1877
1948
  warn: "warn";
1878
1949
  }>;
@@ -1895,6 +1966,7 @@ export declare const SessionSchema: z.ZodObject<{
1895
1966
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
1896
1967
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1897
1968
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1969
+ download_url: z.ZodOptional<z.ZodString>;
1898
1970
  filename: z.ZodOptional<z.ZodString>;
1899
1971
  name: z.ZodOptional<z.ZodString>;
1900
1972
  path: z.ZodOptional<z.ZodString>;
@@ -2045,10 +2117,6 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2045
2117
  }, z.core.$strip>>>;
2046
2118
  assistant_name: z.ZodOptional<z.ZodString>;
2047
2119
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2048
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2049
- text: z.ZodString;
2050
- after_message_index: z.ZodNullable<z.ZodNumber>;
2051
- }, z.core.$strip>>>;
2052
2120
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2053
2121
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2054
2122
  session_id: z.ZodString;
@@ -2058,16 +2126,55 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2058
2126
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2059
2127
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2060
2128
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2129
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2130
+ id: z.ZodString;
2131
+ label: z.ZodString;
2132
+ used_bp: z.ZodNumber;
2133
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
2134
+ }, z.core.$strip>>>;
2135
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
2061
2136
  activity_phase: z.ZodOptional<z.ZodEnum<{
2062
- running: "running";
2063
- cancelled: "cancelled";
2064
2137
  stale: "stale";
2138
+ running: "running";
2065
2139
  failed: "failed";
2140
+ cancelled: "cancelled";
2066
2141
  completed: "completed";
2067
2142
  starting: "starting";
2068
2143
  waiting_for_approval: "waiting_for_approval";
2069
2144
  waiting_for_input: "waiting_for_input";
2070
2145
  }>>;
2146
+ todo_state: z.ZodOptional<z.ZodObject<{
2147
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
2148
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2149
+ text: z.ZodString;
2150
+ state: z.ZodEnum<{
2151
+ pending: "pending";
2152
+ cancelled: "cancelled";
2153
+ completed: "completed";
2154
+ in_progress: "in_progress";
2155
+ }>;
2156
+ }, z.core.$strip>>>;
2157
+ total_count: z.ZodOptional<z.ZodNumber>;
2158
+ completed_count: z.ZodOptional<z.ZodNumber>;
2159
+ pending_count: z.ZodOptional<z.ZodNumber>;
2160
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
2161
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
2162
+ session_id: z.ZodOptional<z.ZodString>;
2163
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
2164
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2165
+ text: z.ZodOptional<z.ZodString>;
2166
+ content: z.ZodOptional<z.ZodString>;
2167
+ title: z.ZodOptional<z.ZodString>;
2168
+ status: z.ZodOptional<z.ZodString>;
2169
+ done: z.ZodOptional<z.ZodBoolean>;
2170
+ completed: z.ZodOptional<z.ZodBoolean>;
2171
+ }, z.core.$loose>>>;
2172
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2173
+ version: z.ZodOptional<z.ZodNumber>;
2174
+ ts: z.ZodOptional<z.ZodNumber>;
2175
+ source: z.ZodOptional<z.ZodString>;
2176
+ description: z.ZodOptional<z.ZodString>;
2177
+ }, z.core.$loose>>;
2071
2178
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
2072
2179
  session_id: z.ZodString;
2073
2180
  tip_session_id: z.ZodString;
@@ -2150,6 +2257,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2150
2257
  }, z.core.$strip>>;
2151
2258
  }, z.core.$strip>>;
2152
2259
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2260
+ download_url: z.ZodOptional<z.ZodString>;
2153
2261
  filename: z.ZodOptional<z.ZodString>;
2154
2262
  name: z.ZodOptional<z.ZodString>;
2155
2263
  path: z.ZodOptional<z.ZodString>;
@@ -2196,8 +2304,8 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2196
2304
  unknown: "unknown";
2197
2305
  memory: "memory";
2198
2306
  shell: "shell";
2199
- read: "read";
2200
2307
  list: "list";
2308
+ read: "read";
2201
2309
  search: "search";
2202
2310
  web: "web";
2203
2311
  write: "write";
@@ -2262,9 +2370,9 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2262
2370
  kind: z.ZodEnum<{
2263
2371
  file: "file";
2264
2372
  image: "image";
2373
+ pdf: "pdf";
2265
2374
  audio: "audio";
2266
2375
  video: "video";
2267
- pdf: "pdf";
2268
2376
  }>;
2269
2377
  }, z.core.$strip>>>;
2270
2378
  tool: z.ZodOptional<z.ZodObject<{
@@ -2291,8 +2399,8 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2291
2399
  status: z.ZodEnum<{
2292
2400
  unknown: "unknown";
2293
2401
  running: "running";
2294
- cancelled: "cancelled";
2295
2402
  failed: "failed";
2403
+ cancelled: "cancelled";
2296
2404
  completed: "completed";
2297
2405
  attention: "attention";
2298
2406
  }>;
@@ -2313,8 +2421,8 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2313
2421
  unknown: "unknown";
2314
2422
  memory: "memory";
2315
2423
  shell: "shell";
2316
- read: "read";
2317
2424
  list: "list";
2425
+ read: "read";
2318
2426
  search: "search";
2319
2427
  web: "web";
2320
2428
  write: "write";
@@ -2369,9 +2477,9 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2369
2477
  kind: z.ZodEnum<{
2370
2478
  file: "file";
2371
2479
  image: "image";
2480
+ pdf: "pdf";
2372
2481
  audio: "audio";
2373
2482
  video: "video";
2374
- pdf: "pdf";
2375
2483
  }>;
2376
2484
  }, z.core.$strip>>>;
2377
2485
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -2417,9 +2525,9 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2417
2525
  kind: z.ZodEnum<{
2418
2526
  file: "file";
2419
2527
  image: "image";
2528
+ pdf: "pdf";
2420
2529
  audio: "audio";
2421
2530
  video: "video";
2422
- pdf: "pdf";
2423
2531
  }>;
2424
2532
  }, z.core.$strip>>>;
2425
2533
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -2434,9 +2542,9 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2434
2542
  summary: z.ZodString;
2435
2543
  lines: z.ZodArray<z.ZodObject<{
2436
2544
  kind: z.ZodEnum<{
2437
- command: "command";
2438
2545
  agent: "agent";
2439
2546
  other: "other";
2547
+ command: "command";
2440
2548
  }>;
2441
2549
  status: z.ZodEnum<{
2442
2550
  failed: "failed";
@@ -2524,8 +2632,8 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2524
2632
  unknown: "unknown";
2525
2633
  memory: "memory";
2526
2634
  shell: "shell";
2527
- read: "read";
2528
2635
  list: "list";
2636
+ read: "read";
2529
2637
  search: "search";
2530
2638
  web: "web";
2531
2639
  write: "write";
@@ -2618,8 +2726,8 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2618
2726
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
2619
2727
  key: z.ZodString;
2620
2728
  level: z.ZodEnum<{
2621
- error: "error";
2622
2729
  success: "success";
2730
+ error: "error";
2623
2731
  info: "info";
2624
2732
  warn: "warn";
2625
2733
  }>;
@@ -2642,6 +2750,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2642
2750
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
2643
2751
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2644
2752
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2753
+ download_url: z.ZodOptional<z.ZodString>;
2645
2754
  filename: z.ZodOptional<z.ZodString>;
2646
2755
  name: z.ZodOptional<z.ZodString>;
2647
2756
  path: z.ZodOptional<z.ZodString>;
@@ -2658,6 +2767,21 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
2658
2767
  post_compression_context_tokens_estimate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2659
2768
  }, z.core.$loose>;
2660
2769
  }, z.core.$loose>;
2770
+ /** TAL-1534: the sidebar group a listed row belongs to; `pinned` rows come first in the canonical order. */
2771
+ export declare const SidebarGroupKindSchema: z.ZodEnum<{
2772
+ pinned: "pinned";
2773
+ recent: "recent";
2774
+ }>;
2775
+ export type SidebarGroupKind = z.infer<typeof SidebarGroupKindSchema>;
2776
+ /** One group present in a session list, with its English caption; clients localize the known kinds. */
2777
+ export declare const SidebarGroupSchema: z.ZodObject<{
2778
+ kind: z.ZodEnum<{
2779
+ pinned: "pinned";
2780
+ recent: "recent";
2781
+ }>;
2782
+ title: z.ZodString;
2783
+ }, z.core.$strip>;
2784
+ export type SidebarGroup = z.infer<typeof SidebarGroupSchema>;
2661
2785
  /** Sidebar row from `GET /api/sessions`. */
2662
2786
  export declare const SessionRowSchema: z.ZodObject<{
2663
2787
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -2783,12 +2907,16 @@ export declare const SessionRowSchema: z.ZodObject<{
2783
2907
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2784
2908
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2785
2909
  match_type: z.ZodOptional<z.ZodEnum<{
2786
- content: "content";
2787
2910
  title: "title";
2911
+ content: "content";
2788
2912
  metadata: "metadata";
2789
2913
  }>>;
2790
2914
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2791
2915
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2916
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2917
+ pinned: "pinned";
2918
+ recent: "recent";
2919
+ }>>>;
2792
2920
  }, z.core.$loose>;
2793
2921
  export type SessionRow = z.infer<typeof SessionRowSchema>;
2794
2922
  /**
@@ -2931,12 +3059,16 @@ export declare const SessionsListSchema: z.ZodObject<{
2931
3059
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2932
3060
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2933
3061
  match_type: z.ZodOptional<z.ZodEnum<{
2934
- content: "content";
2935
3062
  title: "title";
3063
+ content: "content";
2936
3064
  metadata: "metadata";
2937
3065
  }>>;
2938
3066
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2939
3067
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3068
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3069
+ pinned: "pinned";
3070
+ recent: "recent";
3071
+ }>>>;
2940
3072
  }, z.core.$loose>>;
2941
3073
  sidebar_reference_sessions: z.ZodArray<z.ZodObject<{
2942
3074
  context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -3062,12 +3194,16 @@ export declare const SessionsListSchema: z.ZodObject<{
3062
3194
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3063
3195
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3064
3196
  match_type: z.ZodOptional<z.ZodEnum<{
3065
- content: "content";
3066
3197
  title: "title";
3198
+ content: "content";
3067
3199
  metadata: "metadata";
3068
3200
  }>>;
3069
3201
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3070
3202
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3203
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3204
+ pinned: "pinned";
3205
+ recent: "recent";
3206
+ }>>>;
3071
3207
  }, z.core.$loose>>;
3072
3208
  server_time: z.ZodNumber;
3073
3209
  server_tz: z.ZodString;
@@ -3085,6 +3221,13 @@ export declare const SessionsListSchema: z.ZodObject<{
3085
3221
  scheduled_sessions_truncated: z.ZodBoolean;
3086
3222
  webhook_session_count: z.ZodNumber;
3087
3223
  webhook_sessions_truncated: z.ZodBoolean;
3224
+ sidebar_groups: z.ZodArray<z.ZodObject<{
3225
+ kind: z.ZodEnum<{
3226
+ pinned: "pinned";
3227
+ recent: "recent";
3228
+ }>;
3229
+ title: z.ZodString;
3230
+ }, z.core.$strip>>;
3088
3231
  agent_storage: z.ZodObject<{
3089
3232
  state: z.ZodEnum<{
3090
3233
  unavailable: "unavailable";
@@ -3100,10 +3243,10 @@ export declare const SessionsListSchema: z.ZodObject<{
3100
3243
  export type SessionsList = z.infer<typeof SessionsListSchema>;
3101
3244
  export declare const SessionStatusSchema: z.ZodObject<{
3102
3245
  activity_phase: z.ZodOptional<z.ZodEnum<{
3103
- running: "running";
3104
- cancelled: "cancelled";
3105
3246
  stale: "stale";
3247
+ running: "running";
3106
3248
  failed: "failed";
3249
+ cancelled: "cancelled";
3107
3250
  completed: "completed";
3108
3251
  starting: "starting";
3109
3252
  waiting_for_approval: "waiting_for_approval";
@@ -3201,6 +3344,12 @@ export declare const SessionStatusSchema: z.ZodObject<{
3201
3344
  }, z.core.$loose>;
3202
3345
  export type SessionStatus = z.infer<typeof SessionStatusSchema>;
3203
3346
  export declare const SessionUsageSchema: z.ZodObject<{
3347
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3348
+ id: z.ZodString;
3349
+ label: z.ZodString;
3350
+ used_bp: z.ZodNumber;
3351
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
3352
+ }, z.core.$strip>>>;
3204
3353
  input_tokens: z.ZodOptional<z.ZodNumber>;
3205
3354
  output_tokens: z.ZodOptional<z.ZodNumber>;
3206
3355
  total_tokens: z.ZodOptional<z.ZodNumber>;
@@ -3241,6 +3390,7 @@ export declare const ChatStartRequestSchema: z.ZodObject<{
3241
3390
  profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3242
3391
  explicit_model_pick: z.ZodOptional<z.ZodBoolean>;
3243
3392
  attachments: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3393
+ download_url: z.ZodOptional<z.ZodString>;
3244
3394
  filename: z.ZodOptional<z.ZodString>;
3245
3395
  name: z.ZodOptional<z.ZodString>;
3246
3396
  path: z.ZodOptional<z.ZodString>;
@@ -3474,10 +3624,6 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3474
3624
  }, z.core.$strip>>>;
3475
3625
  assistant_name: z.ZodOptional<z.ZodString>;
3476
3626
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3477
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3478
- text: z.ZodString;
3479
- after_message_index: z.ZodNullable<z.ZodNumber>;
3480
- }, z.core.$strip>>>;
3481
3627
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3482
3628
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3483
3629
  session_id: z.ZodString;
@@ -3487,16 +3633,55 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3487
3633
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3488
3634
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3489
3635
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3636
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3637
+ id: z.ZodString;
3638
+ label: z.ZodString;
3639
+ used_bp: z.ZodNumber;
3640
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
3641
+ }, z.core.$strip>>>;
3642
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
3490
3643
  activity_phase: z.ZodOptional<z.ZodEnum<{
3491
- running: "running";
3492
- cancelled: "cancelled";
3493
3644
  stale: "stale";
3645
+ running: "running";
3494
3646
  failed: "failed";
3647
+ cancelled: "cancelled";
3495
3648
  completed: "completed";
3496
3649
  starting: "starting";
3497
3650
  waiting_for_approval: "waiting_for_approval";
3498
3651
  waiting_for_input: "waiting_for_input";
3499
3652
  }>>;
3653
+ todo_state: z.ZodOptional<z.ZodObject<{
3654
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
3655
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
3656
+ text: z.ZodString;
3657
+ state: z.ZodEnum<{
3658
+ pending: "pending";
3659
+ cancelled: "cancelled";
3660
+ completed: "completed";
3661
+ in_progress: "in_progress";
3662
+ }>;
3663
+ }, z.core.$strip>>>;
3664
+ total_count: z.ZodOptional<z.ZodNumber>;
3665
+ completed_count: z.ZodOptional<z.ZodNumber>;
3666
+ pending_count: z.ZodOptional<z.ZodNumber>;
3667
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
3668
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
3669
+ session_id: z.ZodOptional<z.ZodString>;
3670
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
3671
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
3672
+ text: z.ZodOptional<z.ZodString>;
3673
+ content: z.ZodOptional<z.ZodString>;
3674
+ title: z.ZodOptional<z.ZodString>;
3675
+ status: z.ZodOptional<z.ZodString>;
3676
+ done: z.ZodOptional<z.ZodBoolean>;
3677
+ completed: z.ZodOptional<z.ZodBoolean>;
3678
+ }, z.core.$loose>>>;
3679
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3680
+ version: z.ZodOptional<z.ZodNumber>;
3681
+ ts: z.ZodOptional<z.ZodNumber>;
3682
+ source: z.ZodOptional<z.ZodString>;
3683
+ description: z.ZodOptional<z.ZodString>;
3684
+ }, z.core.$loose>>;
3500
3685
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
3501
3686
  session_id: z.ZodString;
3502
3687
  tip_session_id: z.ZodString;
@@ -3579,6 +3764,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3579
3764
  }, z.core.$strip>>;
3580
3765
  }, z.core.$strip>>;
3581
3766
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3767
+ download_url: z.ZodOptional<z.ZodString>;
3582
3768
  filename: z.ZodOptional<z.ZodString>;
3583
3769
  name: z.ZodOptional<z.ZodString>;
3584
3770
  path: z.ZodOptional<z.ZodString>;
@@ -3625,8 +3811,8 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3625
3811
  unknown: "unknown";
3626
3812
  memory: "memory";
3627
3813
  shell: "shell";
3628
- read: "read";
3629
3814
  list: "list";
3815
+ read: "read";
3630
3816
  search: "search";
3631
3817
  web: "web";
3632
3818
  write: "write";
@@ -3691,9 +3877,9 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3691
3877
  kind: z.ZodEnum<{
3692
3878
  file: "file";
3693
3879
  image: "image";
3880
+ pdf: "pdf";
3694
3881
  audio: "audio";
3695
3882
  video: "video";
3696
- pdf: "pdf";
3697
3883
  }>;
3698
3884
  }, z.core.$strip>>>;
3699
3885
  tool: z.ZodOptional<z.ZodObject<{
@@ -3720,8 +3906,8 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3720
3906
  status: z.ZodEnum<{
3721
3907
  unknown: "unknown";
3722
3908
  running: "running";
3723
- cancelled: "cancelled";
3724
3909
  failed: "failed";
3910
+ cancelled: "cancelled";
3725
3911
  completed: "completed";
3726
3912
  attention: "attention";
3727
3913
  }>;
@@ -3742,8 +3928,8 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3742
3928
  unknown: "unknown";
3743
3929
  memory: "memory";
3744
3930
  shell: "shell";
3745
- read: "read";
3746
3931
  list: "list";
3932
+ read: "read";
3747
3933
  search: "search";
3748
3934
  web: "web";
3749
3935
  write: "write";
@@ -3798,9 +3984,9 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3798
3984
  kind: z.ZodEnum<{
3799
3985
  file: "file";
3800
3986
  image: "image";
3987
+ pdf: "pdf";
3801
3988
  audio: "audio";
3802
3989
  video: "video";
3803
- pdf: "pdf";
3804
3990
  }>;
3805
3991
  }, z.core.$strip>>>;
3806
3992
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -3846,9 +4032,9 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3846
4032
  kind: z.ZodEnum<{
3847
4033
  file: "file";
3848
4034
  image: "image";
4035
+ pdf: "pdf";
3849
4036
  audio: "audio";
3850
4037
  video: "video";
3851
- pdf: "pdf";
3852
4038
  }>;
3853
4039
  }, z.core.$strip>>>;
3854
4040
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -3863,9 +4049,9 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3863
4049
  summary: z.ZodString;
3864
4050
  lines: z.ZodArray<z.ZodObject<{
3865
4051
  kind: z.ZodEnum<{
3866
- command: "command";
3867
4052
  agent: "agent";
3868
4053
  other: "other";
4054
+ command: "command";
3869
4055
  }>;
3870
4056
  status: z.ZodEnum<{
3871
4057
  failed: "failed";
@@ -3953,8 +4139,8 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
3953
4139
  unknown: "unknown";
3954
4140
  memory: "memory";
3955
4141
  shell: "shell";
3956
- read: "read";
3957
4142
  list: "list";
4143
+ read: "read";
3958
4144
  search: "search";
3959
4145
  web: "web";
3960
4146
  write: "write";
@@ -4047,8 +4233,8 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
4047
4233
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
4048
4234
  key: z.ZodString;
4049
4235
  level: z.ZodEnum<{
4050
- error: "error";
4051
4236
  success: "success";
4237
+ error: "error";
4052
4238
  info: "info";
4053
4239
  warn: "warn";
4054
4240
  }>;
@@ -4071,6 +4257,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
4071
4257
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
4072
4258
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4073
4259
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
4260
+ download_url: z.ZodOptional<z.ZodString>;
4074
4261
  filename: z.ZodOptional<z.ZodString>;
4075
4262
  name: z.ZodOptional<z.ZodString>;
4076
4263
  path: z.ZodOptional<z.ZodString>;
@@ -4095,10 +4282,10 @@ export type ChatStartResponse = z.infer<typeof ChatStartResponseSchema>;
4095
4282
  */
4096
4283
  export declare const StreamStatusSchema: z.ZodObject<{
4097
4284
  activity_phase: z.ZodOptional<z.ZodEnum<{
4098
- running: "running";
4099
- cancelled: "cancelled";
4100
4285
  stale: "stale";
4286
+ running: "running";
4101
4287
  failed: "failed";
4288
+ cancelled: "cancelled";
4102
4289
  completed: "completed";
4103
4290
  starting: "starting";
4104
4291
  waiting_for_approval: "waiting_for_approval";
@@ -4133,10 +4320,10 @@ export type SteerWithdrawn = z.infer<typeof SteerWithdrawnSchema>;
4133
4320
  */
4134
4321
  export declare const CancelResponseSchema: z.ZodObject<{
4135
4322
  activity_phase: z.ZodOptional<z.ZodEnum<{
4136
- running: "running";
4137
- cancelled: "cancelled";
4138
4323
  stale: "stale";
4324
+ running: "running";
4139
4325
  failed: "failed";
4326
+ cancelled: "cancelled";
4140
4327
  completed: "completed";
4141
4328
  starting: "starting";
4142
4329
  waiting_for_approval: "waiting_for_approval";
@@ -4417,10 +4604,6 @@ export declare const SteerResponseSchema: z.ZodObject<{
4417
4604
  }, z.core.$strip>>>;
4418
4605
  assistant_name: z.ZodOptional<z.ZodString>;
4419
4606
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4420
- compression_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4421
- text: z.ZodString;
4422
- after_message_index: z.ZodNullable<z.ZodNumber>;
4423
- }, z.core.$strip>>>;
4424
4607
  focus_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4425
4608
  branched_from: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4426
4609
  session_id: z.ZodString;
@@ -4430,16 +4613,55 @@ export declare const SteerResponseSchema: z.ZodObject<{
4430
4613
  context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4431
4614
  context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4432
4615
  context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4433
- activity_phase: z.ZodOptional<z.ZodEnum<{
4434
- running: "running";
4435
- cancelled: "cancelled";
4616
+ plan_gauge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4617
+ id: z.ZodString;
4618
+ label: z.ZodString;
4619
+ used_bp: z.ZodNumber;
4620
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
4621
+ }, z.core.$strip>>>;
4622
+ show_reasoning: z.ZodOptional<z.ZodBoolean>;
4623
+ activity_phase: z.ZodOptional<z.ZodEnum<{
4436
4624
  stale: "stale";
4625
+ running: "running";
4437
4626
  failed: "failed";
4627
+ cancelled: "cancelled";
4438
4628
  completed: "completed";
4439
4629
  starting: "starting";
4440
4630
  waiting_for_approval: "waiting_for_approval";
4441
4631
  waiting_for_input: "waiting_for_input";
4442
4632
  }>>;
4633
+ todo_state: z.ZodOptional<z.ZodObject<{
4634
+ display_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
4635
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
4636
+ text: z.ZodString;
4637
+ state: z.ZodEnum<{
4638
+ pending: "pending";
4639
+ cancelled: "cancelled";
4640
+ completed: "completed";
4641
+ in_progress: "in_progress";
4642
+ }>;
4643
+ }, z.core.$strip>>>;
4644
+ total_count: z.ZodOptional<z.ZodNumber>;
4645
+ completed_count: z.ZodOptional<z.ZodNumber>;
4646
+ pending_count: z.ZodOptional<z.ZodNumber>;
4647
+ in_progress_count: z.ZodOptional<z.ZodNumber>;
4648
+ cancelled_count: z.ZodOptional<z.ZodNumber>;
4649
+ session_id: z.ZodOptional<z.ZodString>;
4650
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
4651
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
4652
+ text: z.ZodOptional<z.ZodString>;
4653
+ content: z.ZodOptional<z.ZodString>;
4654
+ title: z.ZodOptional<z.ZodString>;
4655
+ status: z.ZodOptional<z.ZodString>;
4656
+ done: z.ZodOptional<z.ZodBoolean>;
4657
+ completed: z.ZodOptional<z.ZodBoolean>;
4658
+ }, z.core.$loose>>>;
4659
+ summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4660
+ version: z.ZodOptional<z.ZodNumber>;
4661
+ ts: z.ZodOptional<z.ZodNumber>;
4662
+ source: z.ZodOptional<z.ZodString>;
4663
+ description: z.ZodOptional<z.ZodString>;
4664
+ }, z.core.$loose>>;
4443
4665
  source_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
4444
4666
  session_id: z.ZodString;
4445
4667
  tip_session_id: z.ZodString;
@@ -4522,6 +4744,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
4522
4744
  }, z.core.$strip>>;
4523
4745
  }, z.core.$strip>>;
4524
4746
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
4747
+ download_url: z.ZodOptional<z.ZodString>;
4525
4748
  filename: z.ZodOptional<z.ZodString>;
4526
4749
  name: z.ZodOptional<z.ZodString>;
4527
4750
  path: z.ZodOptional<z.ZodString>;
@@ -4568,8 +4791,8 @@ export declare const SteerResponseSchema: z.ZodObject<{
4568
4791
  unknown: "unknown";
4569
4792
  memory: "memory";
4570
4793
  shell: "shell";
4571
- read: "read";
4572
4794
  list: "list";
4795
+ read: "read";
4573
4796
  search: "search";
4574
4797
  web: "web";
4575
4798
  write: "write";
@@ -4634,9 +4857,9 @@ export declare const SteerResponseSchema: z.ZodObject<{
4634
4857
  kind: z.ZodEnum<{
4635
4858
  file: "file";
4636
4859
  image: "image";
4860
+ pdf: "pdf";
4637
4861
  audio: "audio";
4638
4862
  video: "video";
4639
- pdf: "pdf";
4640
4863
  }>;
4641
4864
  }, z.core.$strip>>>;
4642
4865
  tool: z.ZodOptional<z.ZodObject<{
@@ -4663,8 +4886,8 @@ export declare const SteerResponseSchema: z.ZodObject<{
4663
4886
  status: z.ZodEnum<{
4664
4887
  unknown: "unknown";
4665
4888
  running: "running";
4666
- cancelled: "cancelled";
4667
4889
  failed: "failed";
4890
+ cancelled: "cancelled";
4668
4891
  completed: "completed";
4669
4892
  attention: "attention";
4670
4893
  }>;
@@ -4685,8 +4908,8 @@ export declare const SteerResponseSchema: z.ZodObject<{
4685
4908
  unknown: "unknown";
4686
4909
  memory: "memory";
4687
4910
  shell: "shell";
4688
- read: "read";
4689
4911
  list: "list";
4912
+ read: "read";
4690
4913
  search: "search";
4691
4914
  web: "web";
4692
4915
  write: "write";
@@ -4741,9 +4964,9 @@ export declare const SteerResponseSchema: z.ZodObject<{
4741
4964
  kind: z.ZodEnum<{
4742
4965
  file: "file";
4743
4966
  image: "image";
4967
+ pdf: "pdf";
4744
4968
  audio: "audio";
4745
4969
  video: "video";
4746
- pdf: "pdf";
4747
4970
  }>;
4748
4971
  }, z.core.$strip>>>;
4749
4972
  terminal_state: z.ZodOptional<z.ZodString>;
@@ -4789,9 +5012,9 @@ export declare const SteerResponseSchema: z.ZodObject<{
4789
5012
  kind: z.ZodEnum<{
4790
5013
  file: "file";
4791
5014
  image: "image";
5015
+ pdf: "pdf";
4792
5016
  audio: "audio";
4793
5017
  video: "video";
4794
- pdf: "pdf";
4795
5018
  }>;
4796
5019
  }, z.core.$strip>>>;
4797
5020
  _background_update: z.ZodOptional<z.ZodObject<{
@@ -4806,9 +5029,9 @@ export declare const SteerResponseSchema: z.ZodObject<{
4806
5029
  summary: z.ZodString;
4807
5030
  lines: z.ZodArray<z.ZodObject<{
4808
5031
  kind: z.ZodEnum<{
4809
- command: "command";
4810
5032
  agent: "agent";
4811
5033
  other: "other";
5034
+ command: "command";
4812
5035
  }>;
4813
5036
  status: z.ZodEnum<{
4814
5037
  failed: "failed";
@@ -4896,8 +5119,8 @@ export declare const SteerResponseSchema: z.ZodObject<{
4896
5119
  unknown: "unknown";
4897
5120
  memory: "memory";
4898
5121
  shell: "shell";
4899
- read: "read";
4900
5122
  list: "list";
5123
+ read: "read";
4901
5124
  search: "search";
4902
5125
  web: "web";
4903
5126
  write: "write";
@@ -4990,8 +5213,8 @@ export declare const SteerResponseSchema: z.ZodObject<{
4990
5213
  notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
4991
5214
  key: z.ZodString;
4992
5215
  level: z.ZodEnum<{
4993
- error: "error";
4994
5216
  success: "success";
5217
+ error: "error";
4995
5218
  info: "info";
4996
5219
  warn: "warn";
4997
5220
  }>;
@@ -5014,6 +5237,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
5014
5237
  has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
5015
5238
  pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5016
5239
  pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
5240
+ download_url: z.ZodOptional<z.ZodString>;
5017
5241
  filename: z.ZodOptional<z.ZodString>;
5018
5242
  name: z.ZodOptional<z.ZodString>;
5019
5243
  path: z.ZodOptional<z.ZodString>;
@@ -5385,8 +5609,8 @@ export declare const BackgroundTaskSchema: z.ZodObject<{
5385
5609
  status: z.ZodEnum<{
5386
5610
  unknown: "unknown";
5387
5611
  running: "running";
5388
- cancelled: "cancelled";
5389
5612
  failed: "failed";
5613
+ cancelled: "cancelled";
5390
5614
  completed: "completed";
5391
5615
  attention: "attention";
5392
5616
  }>;
@@ -5419,10 +5643,10 @@ export type BackgroundTask = z.infer<typeof BackgroundTaskSchema>;
5419
5643
  */
5420
5644
  export declare const BackgroundTasksResponseSchema: z.ZodObject<{
5421
5645
  activity_phase: z.ZodOptional<z.ZodEnum<{
5422
- running: "running";
5423
- cancelled: "cancelled";
5424
5646
  stale: "stale";
5647
+ running: "running";
5425
5648
  failed: "failed";
5649
+ cancelled: "cancelled";
5426
5650
  completed: "completed";
5427
5651
  starting: "starting";
5428
5652
  waiting_for_approval: "waiting_for_approval";
@@ -5439,8 +5663,8 @@ export declare const BackgroundTasksResponseSchema: z.ZodObject<{
5439
5663
  status: z.ZodEnum<{
5440
5664
  unknown: "unknown";
5441
5665
  running: "running";
5442
- cancelled: "cancelled";
5443
5666
  failed: "failed";
5667
+ cancelled: "cancelled";
5444
5668
  completed: "completed";
5445
5669
  attention: "attention";
5446
5670
  }>;
@@ -5495,8 +5719,8 @@ export declare const BackgroundDismissResponseSchema: z.ZodObject<{
5495
5719
  status: z.ZodEnum<{
5496
5720
  unknown: "unknown";
5497
5721
  running: "running";
5498
- cancelled: "cancelled";
5499
5722
  failed: "failed";
5723
+ cancelled: "cancelled";
5500
5724
  completed: "completed";
5501
5725
  attention: "attention";
5502
5726
  }>;
@@ -5656,12 +5880,16 @@ export declare const ShareCreateResponseSchema: z.ZodObject<{
5656
5880
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5657
5881
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5658
5882
  match_type: z.ZodOptional<z.ZodEnum<{
5659
- content: "content";
5660
5883
  title: "title";
5884
+ content: "content";
5661
5885
  metadata: "metadata";
5662
5886
  }>>;
5663
5887
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5664
5888
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5889
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
5890
+ pinned: "pinned";
5891
+ recent: "recent";
5892
+ }>>>;
5665
5893
  }, z.core.$loose>;
5666
5894
  }, z.core.$loose>;
5667
5895
  export declare const ShareMessageSchema: z.ZodObject<{
@@ -5817,12 +6045,16 @@ export declare const SourceReferenceSearchSchema: z.ZodObject<{
5817
6045
  share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5818
6046
  worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5819
6047
  match_type: z.ZodOptional<z.ZodEnum<{
5820
- content: "content";
5821
6048
  title: "title";
6049
+ content: "content";
5822
6050
  metadata: "metadata";
5823
6051
  }>>;
5824
6052
  match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5825
6053
  workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6054
+ sidebar_group: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6055
+ pinned: "pinned";
6056
+ recent: "recent";
6057
+ }>>>;
5826
6058
  source_reference: z.ZodObject<{
5827
6059
  session_id: z.ZodString;
5828
6060
  tip_session_id: z.ZodString;
@@ -5891,6 +6123,13 @@ export declare const LoginResponseSchema: z.ZodObject<{
5891
6123
  ok: z.ZodLiteral<true>;
5892
6124
  message: z.ZodOptional<z.ZodString>;
5893
6125
  }, z.core.$loose>;
6126
+ /** TAL-1569: Talaria Web update channels, in display order. Nightly is a daily snapshot of the Experimental artifact. */
6127
+ export declare const WebUpdateChannelSchema: z.ZodEnum<{
6128
+ stable: "stable";
6129
+ nightly: "nightly";
6130
+ experimental: "experimental";
6131
+ }>;
6132
+ export type WebUpdateChannel = z.infer<typeof WebUpdateChannelSchema>;
5894
6133
  export declare const SettingsSchema: z.ZodObject<{
5895
6134
  bot_name: z.ZodOptional<z.ZodString>;
5896
6135
  default_model: z.ZodOptional<z.ZodString>;
@@ -5928,6 +6167,11 @@ export declare const SettingsSchema: z.ZodObject<{
5928
6167
  webui_version: z.ZodOptional<z.ZodString>;
5929
6168
  agent_version: z.ZodOptional<z.ZodString>;
5930
6169
  update_channel: z.ZodOptional<z.ZodString>;
6170
+ update_channels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
6171
+ stable: "stable";
6172
+ nightly: "nightly";
6173
+ experimental: "experimental";
6174
+ }>>>;
5931
6175
  agent_update_channel: z.ZodOptional<z.ZodEnum<{
5932
6176
  stable: "stable";
5933
6177
  experimental: "experimental";
@@ -6081,6 +6325,22 @@ export type QuotaLevel = z.infer<typeof QuotaLevelSchema>;
6081
6325
  * TAL-807: `limit` is present while the provider's credential pool cannot serve this model until `resets_at` (ISO-8601 UTC).
6082
6326
  */
6083
6327
  export declare const ModelEntrySchema: z.ZodObject<{
6328
+ allowance: z.ZodOptional<z.ZodObject<{
6329
+ state: z.ZodEnum<{
6330
+ unknown: "unknown";
6331
+ blocked: "blocked";
6332
+ included: "included";
6333
+ free: "free";
6334
+ credits: "credits";
6335
+ }>;
6336
+ usage_level: z.ZodNullable<z.ZodEnum<{
6337
+ free: "free";
6338
+ low: "low";
6339
+ medium: "medium";
6340
+ top_tier: "top_tier";
6341
+ }>>;
6342
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
6343
+ }, z.core.$strip>>;
6084
6344
  id: z.ZodString;
6085
6345
  label: z.ZodOptional<z.ZodString>;
6086
6346
  provider: z.ZodOptional<z.ZodString>;
@@ -6130,6 +6390,34 @@ export declare const CatalogAvailabilitySchema: z.ZodObject<{
6130
6390
  }, z.core.$strip>;
6131
6391
  export type CatalogAvailability = z.infer<typeof CatalogAvailabilitySchema>;
6132
6392
  export declare const ModelGroupSchema: z.ZodObject<{
6393
+ plan_usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6394
+ kind: z.ZodLiteral<"usage_window">;
6395
+ plan: z.ZodNullable<z.ZodString>;
6396
+ gauges: z.ZodArray<z.ZodObject<{
6397
+ label: z.ZodString;
6398
+ left_fraction: z.ZodNumber;
6399
+ style: z.ZodEnum<{
6400
+ green: "green";
6401
+ yellow: "yellow";
6402
+ red: "red";
6403
+ }>;
6404
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
6405
+ scope: z.ZodString;
6406
+ title: z.ZodString;
6407
+ }, z.core.$strip>>;
6408
+ top_tier_model_ids: z.ZodArray<z.ZodString>;
6409
+ featured_model_ids: z.ZodArray<z.ZodString>;
6410
+ paused_reason: z.ZodNullable<z.ZodString>;
6411
+ credits_pay: z.ZodNullable<z.ZodBoolean>;
6412
+ }, z.core.$strip>>>;
6413
+ plan_stale: z.ZodOptional<z.ZodBoolean>;
6414
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
6415
+ kind: z.ZodEnum<{
6416
+ recommended: "recommended";
6417
+ other: "other";
6418
+ }>;
6419
+ model_ids: z.ZodArray<z.ZodString>;
6420
+ }, z.core.$strip>>>;
6133
6421
  availability: z.ZodOptional<z.ZodObject<{
6134
6422
  status: z.ZodEnum<{
6135
6423
  available: "available";
@@ -6143,6 +6431,22 @@ export declare const ModelGroupSchema: z.ZodObject<{
6143
6431
  provider: z.ZodString;
6144
6432
  provider_id: z.ZodOptional<z.ZodString>;
6145
6433
  models: z.ZodArray<z.ZodObject<{
6434
+ allowance: z.ZodOptional<z.ZodObject<{
6435
+ state: z.ZodEnum<{
6436
+ unknown: "unknown";
6437
+ blocked: "blocked";
6438
+ included: "included";
6439
+ free: "free";
6440
+ credits: "credits";
6441
+ }>;
6442
+ usage_level: z.ZodNullable<z.ZodEnum<{
6443
+ free: "free";
6444
+ low: "low";
6445
+ medium: "medium";
6446
+ top_tier: "top_tier";
6447
+ }>>;
6448
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
6449
+ }, z.core.$strip>>;
6146
6450
  id: z.ZodString;
6147
6451
  label: z.ZodOptional<z.ZodString>;
6148
6452
  provider: z.ZodOptional<z.ZodString>;
@@ -6168,6 +6472,22 @@ export declare const ModelGroupSchema: z.ZodObject<{
6168
6472
  }, z.core.$strip>>;
6169
6473
  }, z.core.$loose>>;
6170
6474
  extra_models: z.ZodOptional<z.ZodArray<z.ZodObject<{
6475
+ allowance: z.ZodOptional<z.ZodObject<{
6476
+ state: z.ZodEnum<{
6477
+ unknown: "unknown";
6478
+ blocked: "blocked";
6479
+ included: "included";
6480
+ free: "free";
6481
+ credits: "credits";
6482
+ }>;
6483
+ usage_level: z.ZodNullable<z.ZodEnum<{
6484
+ free: "free";
6485
+ low: "low";
6486
+ medium: "medium";
6487
+ top_tier: "top_tier";
6488
+ }>>;
6489
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
6490
+ }, z.core.$strip>>;
6171
6491
  id: z.ZodString;
6172
6492
  label: z.ZodOptional<z.ZodString>;
6173
6493
  provider: z.ZodOptional<z.ZodString>;
@@ -6224,6 +6544,34 @@ export declare const ModelsSchema: z.ZodObject<{
6224
6544
  default_bare_id: z.ZodOptional<z.ZodString>;
6225
6545
  default_option_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6226
6546
  groups: z.ZodArray<z.ZodObject<{
6547
+ plan_usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6548
+ kind: z.ZodLiteral<"usage_window">;
6549
+ plan: z.ZodNullable<z.ZodString>;
6550
+ gauges: z.ZodArray<z.ZodObject<{
6551
+ label: z.ZodString;
6552
+ left_fraction: z.ZodNumber;
6553
+ style: z.ZodEnum<{
6554
+ green: "green";
6555
+ yellow: "yellow";
6556
+ red: "red";
6557
+ }>;
6558
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
6559
+ scope: z.ZodString;
6560
+ title: z.ZodString;
6561
+ }, z.core.$strip>>;
6562
+ top_tier_model_ids: z.ZodArray<z.ZodString>;
6563
+ featured_model_ids: z.ZodArray<z.ZodString>;
6564
+ paused_reason: z.ZodNullable<z.ZodString>;
6565
+ credits_pay: z.ZodNullable<z.ZodBoolean>;
6566
+ }, z.core.$strip>>>;
6567
+ plan_stale: z.ZodOptional<z.ZodBoolean>;
6568
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
6569
+ kind: z.ZodEnum<{
6570
+ recommended: "recommended";
6571
+ other: "other";
6572
+ }>;
6573
+ model_ids: z.ZodArray<z.ZodString>;
6574
+ }, z.core.$strip>>>;
6227
6575
  availability: z.ZodOptional<z.ZodObject<{
6228
6576
  status: z.ZodEnum<{
6229
6577
  available: "available";
@@ -6237,6 +6585,22 @@ export declare const ModelsSchema: z.ZodObject<{
6237
6585
  provider: z.ZodString;
6238
6586
  provider_id: z.ZodOptional<z.ZodString>;
6239
6587
  models: z.ZodArray<z.ZodObject<{
6588
+ allowance: z.ZodOptional<z.ZodObject<{
6589
+ state: z.ZodEnum<{
6590
+ unknown: "unknown";
6591
+ blocked: "blocked";
6592
+ included: "included";
6593
+ free: "free";
6594
+ credits: "credits";
6595
+ }>;
6596
+ usage_level: z.ZodNullable<z.ZodEnum<{
6597
+ free: "free";
6598
+ low: "low";
6599
+ medium: "medium";
6600
+ top_tier: "top_tier";
6601
+ }>>;
6602
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
6603
+ }, z.core.$strip>>;
6240
6604
  id: z.ZodString;
6241
6605
  label: z.ZodOptional<z.ZodString>;
6242
6606
  provider: z.ZodOptional<z.ZodString>;
@@ -6262,6 +6626,22 @@ export declare const ModelsSchema: z.ZodObject<{
6262
6626
  }, z.core.$strip>>;
6263
6627
  }, z.core.$loose>>;
6264
6628
  extra_models: z.ZodOptional<z.ZodArray<z.ZodObject<{
6629
+ allowance: z.ZodOptional<z.ZodObject<{
6630
+ state: z.ZodEnum<{
6631
+ unknown: "unknown";
6632
+ blocked: "blocked";
6633
+ included: "included";
6634
+ free: "free";
6635
+ credits: "credits";
6636
+ }>;
6637
+ usage_level: z.ZodNullable<z.ZodEnum<{
6638
+ free: "free";
6639
+ low: "low";
6640
+ medium: "medium";
6641
+ top_tier: "top_tier";
6642
+ }>>;
6643
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
6644
+ }, z.core.$strip>>;
6265
6645
  id: z.ZodString;
6266
6646
  label: z.ZodOptional<z.ZodString>;
6267
6647
  provider: z.ZodOptional<z.ZodString>;
@@ -6318,6 +6698,22 @@ export declare const ModelsLiveSchema: z.ZodObject<{
6318
6698
  provider: z.ZodOptional<z.ZodString>;
6319
6699
  source: z.ZodOptional<z.ZodString>;
6320
6700
  models: z.ZodArray<z.ZodObject<{
6701
+ allowance: z.ZodOptional<z.ZodObject<{
6702
+ state: z.ZodEnum<{
6703
+ unknown: "unknown";
6704
+ blocked: "blocked";
6705
+ included: "included";
6706
+ free: "free";
6707
+ credits: "credits";
6708
+ }>;
6709
+ usage_level: z.ZodNullable<z.ZodEnum<{
6710
+ free: "free";
6711
+ low: "low";
6712
+ medium: "medium";
6713
+ top_tier: "top_tier";
6714
+ }>>;
6715
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
6716
+ }, z.core.$strip>>;
6321
6717
  id: z.ZodString;
6322
6718
  label: z.ZodOptional<z.ZodString>;
6323
6719
  provider: z.ZodOptional<z.ZodString>;
@@ -6348,10 +6744,10 @@ export declare const ModelsLiveSchema: z.ZodObject<{
6348
6744
  export type Models = z.infer<typeof ModelsSchema>;
6349
6745
  /** TAL-603: where a card's credential comes from; `other` is a source the server cannot name, shown as its raw `key_source`. */
6350
6746
  export declare const KeySourceKindSchema: z.ZodEnum<{
6747
+ other: "other";
6351
6748
  env: "env";
6352
6749
  plugin: "plugin";
6353
6750
  config: "config";
6354
- other: "other";
6355
6751
  oauth: "oauth";
6356
6752
  pool: "pool";
6357
6753
  }>;
@@ -6377,6 +6773,22 @@ export declare const ProviderSchema: z.ZodObject<{
6377
6773
  auth_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6378
6774
  env_var: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6379
6775
  models: z.ZodOptional<z.ZodArray<z.ZodObject<{
6776
+ allowance: z.ZodOptional<z.ZodObject<{
6777
+ state: z.ZodEnum<{
6778
+ unknown: "unknown";
6779
+ blocked: "blocked";
6780
+ included: "included";
6781
+ free: "free";
6782
+ credits: "credits";
6783
+ }>;
6784
+ usage_level: z.ZodNullable<z.ZodEnum<{
6785
+ free: "free";
6786
+ low: "low";
6787
+ medium: "medium";
6788
+ top_tier: "top_tier";
6789
+ }>>;
6790
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
6791
+ }, z.core.$strip>>;
6380
6792
  id: z.ZodString;
6381
6793
  label: z.ZodOptional<z.ZodString>;
6382
6794
  provider: z.ZodOptional<z.ZodString>;
@@ -6402,12 +6814,33 @@ export declare const ProviderSchema: z.ZodObject<{
6402
6814
  }, z.core.$strip>>;
6403
6815
  }, z.core.$loose>>>;
6404
6816
  models_total: z.ZodOptional<z.ZodNumber>;
6817
+ nous_account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6818
+ account_id: z.ZodString;
6819
+ email: z.ZodNullable<z.ZodString>;
6820
+ state: z.ZodEnum<{
6821
+ unavailable: "unavailable";
6822
+ unknown: "unknown";
6823
+ pending: "pending";
6824
+ failed: "failed";
6825
+ idle: "idle";
6826
+ retrying: "retrying";
6827
+ claimed: "claimed";
6828
+ gone: "gone";
6829
+ paused: "paused";
6830
+ }>;
6831
+ lines: z.ZodArray<z.ZodString>;
6832
+ moved: z.ZodArray<z.ZodString>;
6833
+ dropped: z.ZodArray<z.ZodString>;
6834
+ reconnect: z.ZodArray<z.ZodString>;
6835
+ poll_after: z.ZodNullable<z.ZodNumber>;
6836
+ }, z.core.$strip>>>;
6837
+ nous_account_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6405
6838
  is_active: z.ZodOptional<z.ZodBoolean>;
6406
6839
  key_source_kind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6840
+ other: "other";
6407
6841
  env: "env";
6408
6842
  plugin: "plugin";
6409
6843
  config: "config";
6410
- other: "other";
6411
6844
  oauth: "oauth";
6412
6845
  pool: "pool";
6413
6846
  }>>>;
@@ -6439,6 +6872,22 @@ export declare const ProvidersSchema: z.ZodObject<{
6439
6872
  auth_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6440
6873
  env_var: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6441
6874
  models: z.ZodOptional<z.ZodArray<z.ZodObject<{
6875
+ allowance: z.ZodOptional<z.ZodObject<{
6876
+ state: z.ZodEnum<{
6877
+ unknown: "unknown";
6878
+ blocked: "blocked";
6879
+ included: "included";
6880
+ free: "free";
6881
+ credits: "credits";
6882
+ }>;
6883
+ usage_level: z.ZodNullable<z.ZodEnum<{
6884
+ free: "free";
6885
+ low: "low";
6886
+ medium: "medium";
6887
+ top_tier: "top_tier";
6888
+ }>>;
6889
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
6890
+ }, z.core.$strip>>;
6442
6891
  id: z.ZodString;
6443
6892
  label: z.ZodOptional<z.ZodString>;
6444
6893
  provider: z.ZodOptional<z.ZodString>;
@@ -6464,12 +6913,33 @@ export declare const ProvidersSchema: z.ZodObject<{
6464
6913
  }, z.core.$strip>>;
6465
6914
  }, z.core.$loose>>>;
6466
6915
  models_total: z.ZodOptional<z.ZodNumber>;
6916
+ nous_account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6917
+ account_id: z.ZodString;
6918
+ email: z.ZodNullable<z.ZodString>;
6919
+ state: z.ZodEnum<{
6920
+ unavailable: "unavailable";
6921
+ unknown: "unknown";
6922
+ pending: "pending";
6923
+ failed: "failed";
6924
+ idle: "idle";
6925
+ retrying: "retrying";
6926
+ claimed: "claimed";
6927
+ gone: "gone";
6928
+ paused: "paused";
6929
+ }>;
6930
+ lines: z.ZodArray<z.ZodString>;
6931
+ moved: z.ZodArray<z.ZodString>;
6932
+ dropped: z.ZodArray<z.ZodString>;
6933
+ reconnect: z.ZodArray<z.ZodString>;
6934
+ poll_after: z.ZodNullable<z.ZodNumber>;
6935
+ }, z.core.$strip>>>;
6936
+ nous_account_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6467
6937
  is_active: z.ZodOptional<z.ZodBoolean>;
6468
6938
  key_source_kind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6939
+ other: "other";
6469
6940
  env: "env";
6470
6941
  plugin: "plugin";
6471
6942
  config: "config";
6472
- other: "other";
6473
6943
  oauth: "oauth";
6474
6944
  pool: "pool";
6475
6945
  }>>>;
@@ -6573,6 +7043,27 @@ export declare const QuotaWindowSchema: z.ZodObject<{
6573
7043
  }, z.core.$loose>>;
6574
7044
  }, z.core.$loose>;
6575
7045
  export declare const QuotaSourceSchema: z.ZodObject<{
7046
+ plan_usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7047
+ kind: z.ZodLiteral<"usage_window">;
7048
+ plan: z.ZodNullable<z.ZodString>;
7049
+ gauges: z.ZodArray<z.ZodObject<{
7050
+ label: z.ZodString;
7051
+ left_fraction: z.ZodNumber;
7052
+ style: z.ZodEnum<{
7053
+ green: "green";
7054
+ yellow: "yellow";
7055
+ red: "red";
7056
+ }>;
7057
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
7058
+ scope: z.ZodString;
7059
+ title: z.ZodString;
7060
+ }, z.core.$strip>>;
7061
+ top_tier_model_ids: z.ZodArray<z.ZodString>;
7062
+ featured_model_ids: z.ZodArray<z.ZodString>;
7063
+ paused_reason: z.ZodNullable<z.ZodString>;
7064
+ credits_pay: z.ZodNullable<z.ZodBoolean>;
7065
+ }, z.core.$strip>>>;
7066
+ plan_stale: z.ZodOptional<z.ZodBoolean>;
6576
7067
  computed_at: z.ZodOptional<z.ZodString>;
6577
7068
  source_id: z.ZodString;
6578
7069
  provider_id: z.ZodOptional<z.ZodString>;
@@ -6662,6 +7153,27 @@ export declare const QuotaSourceSchema: z.ZodObject<{
6662
7153
  }, z.core.$loose>;
6663
7154
  /** An account-usage provider's normalised snapshot on `/api/provider/quota` (the same windows and indexes as a quotas source). */
6664
7155
  export declare const QuotaAccountLimitsSchema: z.ZodObject<{
7156
+ plan_usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7157
+ kind: z.ZodLiteral<"usage_window">;
7158
+ plan: z.ZodNullable<z.ZodString>;
7159
+ gauges: z.ZodArray<z.ZodObject<{
7160
+ label: z.ZodString;
7161
+ left_fraction: z.ZodNumber;
7162
+ style: z.ZodEnum<{
7163
+ green: "green";
7164
+ yellow: "yellow";
7165
+ red: "red";
7166
+ }>;
7167
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
7168
+ scope: z.ZodString;
7169
+ title: z.ZodString;
7170
+ }, z.core.$strip>>;
7171
+ top_tier_model_ids: z.ZodArray<z.ZodString>;
7172
+ featured_model_ids: z.ZodArray<z.ZodString>;
7173
+ paused_reason: z.ZodNullable<z.ZodString>;
7174
+ credits_pay: z.ZodNullable<z.ZodBoolean>;
7175
+ }, z.core.$strip>>>;
7176
+ plan_stale: z.ZodOptional<z.ZodBoolean>;
6665
7177
  available: z.ZodOptional<z.ZodBoolean>;
6666
7178
  stale: z.ZodOptional<z.ZodBoolean>;
6667
7179
  title: z.ZodOptional<z.ZodString>;
@@ -6736,6 +7248,27 @@ export declare const ProviderQuotaSchema: z.ZodObject<{
6736
7248
  message: z.ZodString;
6737
7249
  quota: z.ZodUnknown;
6738
7250
  account_limits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7251
+ plan_usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7252
+ kind: z.ZodLiteral<"usage_window">;
7253
+ plan: z.ZodNullable<z.ZodString>;
7254
+ gauges: z.ZodArray<z.ZodObject<{
7255
+ label: z.ZodString;
7256
+ left_fraction: z.ZodNumber;
7257
+ style: z.ZodEnum<{
7258
+ green: "green";
7259
+ yellow: "yellow";
7260
+ red: "red";
7261
+ }>;
7262
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
7263
+ scope: z.ZodString;
7264
+ title: z.ZodString;
7265
+ }, z.core.$strip>>;
7266
+ top_tier_model_ids: z.ZodArray<z.ZodString>;
7267
+ featured_model_ids: z.ZodArray<z.ZodString>;
7268
+ paused_reason: z.ZodNullable<z.ZodString>;
7269
+ credits_pay: z.ZodNullable<z.ZodBoolean>;
7270
+ }, z.core.$strip>>>;
7271
+ plan_stale: z.ZodOptional<z.ZodBoolean>;
6739
7272
  available: z.ZodOptional<z.ZodBoolean>;
6740
7273
  stale: z.ZodOptional<z.ZodBoolean>;
6741
7274
  title: z.ZodOptional<z.ZodString>;
@@ -6819,6 +7352,27 @@ export declare const ProviderQuotasSchema: z.ZodObject<{
6819
7352
  requested_source_id: z.ZodNullable<z.ZodString>;
6820
7353
  missing_source: z.ZodBoolean;
6821
7354
  sources: z.ZodArray<z.ZodObject<{
7355
+ plan_usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7356
+ kind: z.ZodLiteral<"usage_window">;
7357
+ plan: z.ZodNullable<z.ZodString>;
7358
+ gauges: z.ZodArray<z.ZodObject<{
7359
+ label: z.ZodString;
7360
+ left_fraction: z.ZodNumber;
7361
+ style: z.ZodEnum<{
7362
+ green: "green";
7363
+ yellow: "yellow";
7364
+ red: "red";
7365
+ }>;
7366
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
7367
+ scope: z.ZodString;
7368
+ title: z.ZodString;
7369
+ }, z.core.$strip>>;
7370
+ top_tier_model_ids: z.ZodArray<z.ZodString>;
7371
+ featured_model_ids: z.ZodArray<z.ZodString>;
7372
+ paused_reason: z.ZodNullable<z.ZodString>;
7373
+ credits_pay: z.ZodNullable<z.ZodBoolean>;
7374
+ }, z.core.$strip>>>;
7375
+ plan_stale: z.ZodOptional<z.ZodBoolean>;
6822
7376
  computed_at: z.ZodOptional<z.ZodString>;
6823
7377
  source_id: z.ZodString;
6824
7378
  provider_id: z.ZodOptional<z.ZodString>;
@@ -6966,6 +7520,85 @@ export declare const AuxiliaryTaskSchema: z.ZodObject<{
6966
7520
  reasoning_effort: z.ZodNullable<z.ZodString>;
6967
7521
  }, z.core.$loose>;
6968
7522
  export declare const AuxiliaryModelsSchema: z.ZodObject<{
7523
+ delegation: z.ZodOptional<z.ZodObject<{
7524
+ supported: z.ZodBoolean;
7525
+ configured: z.ZodString;
7526
+ effective: z.ZodNullable<z.ZodString>;
7527
+ available: z.ZodBoolean;
7528
+ blocked_reason: z.ZodNullable<z.ZodString>;
7529
+ fixed_model_active: z.ZodBoolean;
7530
+ backends: z.ZodArray<z.ZodObject<{
7531
+ name: z.ZodString;
7532
+ label: z.ZodString;
7533
+ description: z.ZodString;
7534
+ available: z.ZodBoolean;
7535
+ reason: z.ZodString;
7536
+ }, z.core.$strip>>;
7537
+ profiles: z.ZodArray<z.ZodString>;
7538
+ can_edit: z.ZodBoolean;
7539
+ model_map: z.ZodObject<{
7540
+ default: z.ZodNullable<z.ZodString>;
7541
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
7542
+ label: z.ZodOptional<z.ZodString>;
7543
+ name: z.ZodString;
7544
+ description: z.ZodOptional<z.ZodString>;
7545
+ provider: z.ZodOptional<z.ZodString>;
7546
+ model: z.ZodOptional<z.ZodString>;
7547
+ base_url: z.ZodOptional<z.ZodString>;
7548
+ api_mode: z.ZodOptional<z.ZodString>;
7549
+ api_key_set: z.ZodOptional<z.ZodBoolean>;
7550
+ reasoning_effort: z.ZodOptional<z.ZodString>;
7551
+ service_tier: z.ZodOptional<z.ZodString>;
7552
+ fallback_providers: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
7553
+ profile: z.ZodOptional<z.ZodString>;
7554
+ }, z.core.$strip>>>;
7555
+ profiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
7556
+ label: z.ZodOptional<z.ZodString>;
7557
+ name: z.ZodString;
7558
+ description: z.ZodOptional<z.ZodString>;
7559
+ provider: z.ZodOptional<z.ZodString>;
7560
+ model: z.ZodOptional<z.ZodString>;
7561
+ base_url: z.ZodOptional<z.ZodString>;
7562
+ api_mode: z.ZodOptional<z.ZodString>;
7563
+ api_key_set: z.ZodOptional<z.ZodBoolean>;
7564
+ reasoning_effort: z.ZodOptional<z.ZodString>;
7565
+ service_tier: z.ZodOptional<z.ZodString>;
7566
+ fallback_providers: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
7567
+ profile: z.ZodOptional<z.ZodString>;
7568
+ }, z.core.$strip>>>;
7569
+ }, z.core.$strip>;
7570
+ profile_routes: z.ZodObject<{
7571
+ default: z.ZodNullable<z.ZodString>;
7572
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
7573
+ label: z.ZodOptional<z.ZodString>;
7574
+ name: z.ZodString;
7575
+ description: z.ZodOptional<z.ZodString>;
7576
+ provider: z.ZodOptional<z.ZodString>;
7577
+ model: z.ZodOptional<z.ZodString>;
7578
+ base_url: z.ZodOptional<z.ZodString>;
7579
+ api_mode: z.ZodOptional<z.ZodString>;
7580
+ api_key_set: z.ZodOptional<z.ZodBoolean>;
7581
+ reasoning_effort: z.ZodOptional<z.ZodString>;
7582
+ service_tier: z.ZodOptional<z.ZodString>;
7583
+ fallback_providers: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
7584
+ profile: z.ZodOptional<z.ZodString>;
7585
+ }, z.core.$strip>>>;
7586
+ profiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
7587
+ label: z.ZodOptional<z.ZodString>;
7588
+ name: z.ZodString;
7589
+ description: z.ZodOptional<z.ZodString>;
7590
+ provider: z.ZodOptional<z.ZodString>;
7591
+ model: z.ZodOptional<z.ZodString>;
7592
+ base_url: z.ZodOptional<z.ZodString>;
7593
+ api_mode: z.ZodOptional<z.ZodString>;
7594
+ api_key_set: z.ZodOptional<z.ZodBoolean>;
7595
+ reasoning_effort: z.ZodOptional<z.ZodString>;
7596
+ service_tier: z.ZodOptional<z.ZodString>;
7597
+ fallback_providers: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
7598
+ profile: z.ZodOptional<z.ZodString>;
7599
+ }, z.core.$strip>>>;
7600
+ }, z.core.$strip>;
7601
+ }, z.core.$strip>>;
6969
7602
  main: z.ZodObject<{
6970
7603
  model: z.ZodOptional<z.ZodString>;
6971
7604
  provider: z.ZodOptional<z.ZodString>;
@@ -7082,9 +7715,9 @@ export declare const FilePreviewKindSchema: z.ZodEnum<{
7082
7715
  html: "html";
7083
7716
  text: "text";
7084
7717
  image: "image";
7718
+ pdf: "pdf";
7085
7719
  audio: "audio";
7086
7720
  video: "video";
7087
- pdf: "pdf";
7088
7721
  csv: "csv";
7089
7722
  binary: "binary";
7090
7723
  }>;
@@ -7105,9 +7738,9 @@ export declare const FileContentSchema: z.ZodObject<{
7105
7738
  html: "html";
7106
7739
  text: "text";
7107
7740
  image: "image";
7741
+ pdf: "pdf";
7108
7742
  audio: "audio";
7109
7743
  video: "video";
7110
- pdf: "pdf";
7111
7744
  csv: "csv";
7112
7745
  binary: "binary";
7113
7746
  }>>;
@@ -7253,8 +7886,8 @@ export declare const CommandRowSchema: z.ZodObject<{
7253
7886
  args_hint: z.ZodOptional<z.ZodString>;
7254
7887
  category: z.ZodOptional<z.ZodString>;
7255
7888
  handler: z.ZodEnum<{
7256
- prompt: "prompt";
7257
7889
  agent: "agent";
7890
+ prompt: "prompt";
7258
7891
  client: "client";
7259
7892
  }>;
7260
7893
  clients: z.ZodArray<z.ZodEnum<{
@@ -7275,8 +7908,8 @@ export declare const CommandsSchema: z.ZodObject<{
7275
7908
  args_hint: z.ZodOptional<z.ZodString>;
7276
7909
  category: z.ZodOptional<z.ZodString>;
7277
7910
  handler: z.ZodEnum<{
7278
- prompt: "prompt";
7279
7911
  agent: "agent";
7912
+ prompt: "prompt";
7280
7913
  client: "client";
7281
7914
  }>;
7282
7915
  clients: z.ZodArray<z.ZodEnum<{
@@ -7379,8 +8012,8 @@ export type GatewayStatus = z.infer<typeof GatewayStatusSchema>;
7379
8012
  export declare const GatewayActionSchema: z.ZodObject<{
7380
8013
  ok: z.ZodLiteral<true>;
7381
8014
  action: z.ZodEnum<{
7382
- start: "start";
7383
8015
  stop: "stop";
8016
+ start: "start";
7384
8017
  restart: "restart";
7385
8018
  }>;
7386
8019
  message: z.ZodString;
@@ -7448,9 +8081,9 @@ export declare const ProjectOsDashboardSchema: z.ZodObject<{
7448
8081
  html: "html";
7449
8082
  text: "text";
7450
8083
  image: "image";
8084
+ pdf: "pdf";
7451
8085
  audio: "audio";
7452
8086
  video: "video";
7453
- pdf: "pdf";
7454
8087
  csv: "csv";
7455
8088
  binary: "binary";
7456
8089
  }>>;
@@ -7478,9 +8111,9 @@ export declare const ProjectOsDashboardSchema: z.ZodObject<{
7478
8111
  html: "html";
7479
8112
  text: "text";
7480
8113
  image: "image";
8114
+ pdf: "pdf";
7481
8115
  audio: "audio";
7482
8116
  video: "video";
7483
- pdf: "pdf";
7484
8117
  csv: "csv";
7485
8118
  binary: "binary";
7486
8119
  }>>;
@@ -7508,9 +8141,9 @@ export declare const ProjectOsDashboardSchema: z.ZodObject<{
7508
8141
  html: "html";
7509
8142
  text: "text";
7510
8143
  image: "image";
8144
+ pdf: "pdf";
7511
8145
  audio: "audio";
7512
8146
  video: "video";
7513
- pdf: "pdf";
7514
8147
  csv: "csv";
7515
8148
  binary: "binary";
7516
8149
  }>>;
@@ -7538,9 +8171,9 @@ export declare const ProjectOsDashboardSchema: z.ZodObject<{
7538
8171
  html: "html";
7539
8172
  text: "text";
7540
8173
  image: "image";
8174
+ pdf: "pdf";
7541
8175
  audio: "audio";
7542
8176
  video: "video";
7543
- pdf: "pdf";
7544
8177
  csv: "csv";
7545
8178
  binary: "binary";
7546
8179
  }>>;
@@ -7598,8 +8231,8 @@ export declare const ChatReadinessSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7598
8231
  available: z.ZodLiteral<false>;
7599
8232
  condition: z.ZodEnum<{
7600
8233
  sidecar_unavailable: "sidecar_unavailable";
7601
- agent_runtime_stale: "agent_runtime_stale";
7602
8234
  agent_incompatible: "agent_incompatible";
8235
+ agent_runtime_stale: "agent_runtime_stale";
7603
8236
  }>;
7604
8237
  }, z.core.$strip>], "available">;
7605
8238
  export type ChatReadiness = z.infer<typeof ChatReadinessSchema>;
@@ -7621,8 +8254,8 @@ export declare const AgentHealthSchema: z.ZodObject<{
7621
8254
  available: z.ZodLiteral<false>;
7622
8255
  condition: z.ZodEnum<{
7623
8256
  sidecar_unavailable: "sidecar_unavailable";
7624
- agent_runtime_stale: "agent_runtime_stale";
7625
8257
  agent_incompatible: "agent_incompatible";
8258
+ agent_runtime_stale: "agent_runtime_stale";
7626
8259
  }>;
7627
8260
  }, z.core.$strip>], "available">>;
7628
8261
  alive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -7690,6 +8323,7 @@ export declare const UpdateTargetSchema: z.ZodObject<{
7690
8323
  name: z.ZodOptional<z.ZodString>;
7691
8324
  channel: z.ZodOptional<z.ZodEnum<{
7692
8325
  stable: "stable";
8326
+ nightly: "nightly";
7693
8327
  experimental: "experimental";
7694
8328
  }>>;
7695
8329
  unsupported: z.ZodOptional<z.ZodBoolean>;
@@ -7758,8 +8392,8 @@ export declare const AgentRecoveryStateSchema: z.ZodObject<{
7758
8392
  phase: z.ZodEnum<{
7759
8393
  blocked: "blocked";
7760
8394
  running: "running";
7761
- waiting: "waiting";
7762
8395
  idle: "idle";
8396
+ waiting: "waiting";
7763
8397
  complete: "complete";
7764
8398
  }>;
7765
8399
  attempt: z.ZodNumber;
@@ -7794,8 +8428,8 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
7794
8428
  phase: z.ZodEnum<{
7795
8429
  blocked: "blocked";
7796
8430
  running: "running";
7797
- waiting: "waiting";
7798
8431
  idle: "idle";
8432
+ waiting: "waiting";
7799
8433
  complete: "complete";
7800
8434
  }>;
7801
8435
  attempt: z.ZodNumber;
@@ -7841,6 +8475,7 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
7841
8475
  name: z.ZodOptional<z.ZodString>;
7842
8476
  channel: z.ZodOptional<z.ZodEnum<{
7843
8477
  stable: "stable";
8478
+ nightly: "nightly";
7844
8479
  experimental: "experimental";
7845
8480
  }>>;
7846
8481
  unsupported: z.ZodOptional<z.ZodBoolean>;
@@ -7913,6 +8548,7 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
7913
8548
  name: z.ZodOptional<z.ZodString>;
7914
8549
  channel: z.ZodOptional<z.ZodEnum<{
7915
8550
  stable: "stable";
8551
+ nightly: "nightly";
7916
8552
  experimental: "experimental";
7917
8553
  }>>;
7918
8554
  unsupported: z.ZodOptional<z.ZodBoolean>;
@@ -8078,8 +8714,8 @@ export declare const UpdateStepSchema: z.ZodObject<{
8078
8714
  label: z.ZodString;
8079
8715
  state: z.ZodEnum<{
8080
8716
  pending: "pending";
8081
- active: "active";
8082
8717
  failed: "failed";
8718
+ active: "active";
8083
8719
  done: "done";
8084
8720
  }>;
8085
8721
  }, z.core.$strip>;
@@ -8212,8 +8848,8 @@ export declare const UpdateNotificationSchema: z.ZodObject<{
8212
8848
  label: z.ZodString;
8213
8849
  state: z.ZodEnum<{
8214
8850
  pending: "pending";
8215
- active: "active";
8216
8851
  failed: "failed";
8852
+ active: "active";
8217
8853
  done: "done";
8218
8854
  }>;
8219
8855
  }, z.core.$strip>>;
@@ -8340,8 +8976,8 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
8340
8976
  label: z.ZodString;
8341
8977
  state: z.ZodEnum<{
8342
8978
  pending: "pending";
8343
- active: "active";
8344
8979
  failed: "failed";
8980
+ active: "active";
8345
8981
  done: "done";
8346
8982
  }>;
8347
8983
  }, z.core.$strip>>;
@@ -8451,8 +9087,8 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
8451
9087
  label: z.ZodString;
8452
9088
  state: z.ZodEnum<{
8453
9089
  pending: "pending";
8454
- active: "active";
8455
9090
  failed: "failed";
9091
+ active: "active";
8456
9092
  done: "done";
8457
9093
  }>;
8458
9094
  }, z.core.$strip>>;
@@ -8621,6 +9257,7 @@ export declare const McpServerSchema: z.ZodObject<{
8621
9257
  package: "package";
8622
9258
  native_override: "native_override";
8623
9259
  }>;
9260
+ name: z.ZodString;
8624
9261
  can_edit: z.ZodBoolean;
8625
9262
  tool_costs: z.ZodArray<z.ZodObject<{
8626
9263
  name: z.ZodString;
@@ -8630,7 +9267,6 @@ export declare const McpServerSchema: z.ZodObject<{
8630
9267
  }, z.core.$strip>>;
8631
9268
  spend_limit: z.ZodNumber;
8632
9269
  cost_unit: z.ZodString;
8633
- name: z.ZodString;
8634
9270
  valid: z.ZodBoolean;
8635
9271
  overrides: z.ZodObject<{
8636
9272
  tool_costs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>, z.ZodObject<{
@@ -8686,6 +9322,7 @@ export declare const McpServersSchema: z.ZodObject<{
8686
9322
  package: "package";
8687
9323
  native_override: "native_override";
8688
9324
  }>;
9325
+ name: z.ZodString;
8689
9326
  can_edit: z.ZodBoolean;
8690
9327
  tool_costs: z.ZodArray<z.ZodObject<{
8691
9328
  name: z.ZodString;
@@ -8695,7 +9332,6 @@ export declare const McpServersSchema: z.ZodObject<{
8695
9332
  }, z.core.$strip>>;
8696
9333
  spend_limit: z.ZodNumber;
8697
9334
  cost_unit: z.ZodString;
8698
- name: z.ZodString;
8699
9335
  valid: z.ZodBoolean;
8700
9336
  overrides: z.ZodObject<{
8701
9337
  tool_costs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>, z.ZodObject<{
@@ -8798,9 +9434,32 @@ export declare const ConnectorViewSchema: z.ZodObject<{
8798
9434
  * so no switch changes them. `sign_in_required` offers Nous sign-in without creating a guest on reads.
8799
9435
  * `rules_error`: why the rules could not be read; every app then reads off (fails closed).
8800
9436
  */
9437
+ export declare const ConnectorSignInOfferSchema: z.ZodObject<{
9438
+ available: z.ZodBoolean;
9439
+ due: z.ZodBoolean;
9440
+ visible: z.ZodBoolean;
9441
+ offer_id: z.ZodNullable<z.ZodString>;
9442
+ actions: z.ZodArray<z.ZodEnum<{
9443
+ sign_in: "sign_in";
9444
+ dismiss: "dismiss";
9445
+ }>>;
9446
+ refresh_after: z.ZodNullable<z.ZodNumber>;
9447
+ }, z.core.$strip>;
9448
+ export type ConnectorSignInOffer = z.infer<typeof ConnectorSignInOfferSchema>;
8801
9449
  export declare const ConnectorsPageSchema: z.ZodObject<{
8802
9450
  available: z.ZodBoolean;
8803
9451
  sign_in_required: z.ZodDefault<z.ZodBoolean>;
9452
+ sign_in_offer: z.ZodOptional<z.ZodObject<{
9453
+ available: z.ZodBoolean;
9454
+ due: z.ZodBoolean;
9455
+ visible: z.ZodBoolean;
9456
+ offer_id: z.ZodNullable<z.ZodString>;
9457
+ actions: z.ZodArray<z.ZodEnum<{
9458
+ sign_in: "sign_in";
9459
+ dismiss: "dismiss";
9460
+ }>>;
9461
+ refresh_after: z.ZodNullable<z.ZodNumber>;
9462
+ }, z.core.$strip>>;
8804
9463
  connectors: z.ZodArray<z.ZodObject<{
8805
9464
  slug: z.ZodString;
8806
9465
  name: z.ZodString;
@@ -8873,9 +9532,9 @@ export declare const ConnectorOperationViewSchema: z.ZodObject<{
8873
9532
  title: z.ZodString;
8874
9533
  kind: z.ZodString;
8875
9534
  state: z.ZodEnum<{
9535
+ skipped: "skipped";
8876
9536
  pending: "pending";
8877
9537
  expired: "expired";
8878
- skipped: "skipped";
8879
9538
  failed: "failed";
8880
9539
  initiated: "initiated";
8881
9540
  connected: "connected";
@@ -8989,34 +9648,6 @@ export declare const WikiPageSchema: z.ZodObject<{
8989
9648
  content: z.ZodString;
8990
9649
  path: z.ZodString;
8991
9650
  }, z.core.$strip>;
8992
- export declare const TodoItemSchema: z.ZodObject<{
8993
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
8994
- text: z.ZodOptional<z.ZodString>;
8995
- content: z.ZodOptional<z.ZodString>;
8996
- title: z.ZodOptional<z.ZodString>;
8997
- status: z.ZodOptional<z.ZodString>;
8998
- done: z.ZodOptional<z.ZodBoolean>;
8999
- completed: z.ZodOptional<z.ZodBoolean>;
9000
- }, z.core.$loose>;
9001
- export declare const TodoStateSchema: z.ZodObject<{
9002
- session_id: z.ZodOptional<z.ZodString>;
9003
- todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
9004
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
9005
- text: z.ZodOptional<z.ZodString>;
9006
- content: z.ZodOptional<z.ZodString>;
9007
- title: z.ZodOptional<z.ZodString>;
9008
- status: z.ZodOptional<z.ZodString>;
9009
- done: z.ZodOptional<z.ZodBoolean>;
9010
- completed: z.ZodOptional<z.ZodBoolean>;
9011
- }, z.core.$loose>>>;
9012
- summary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9013
- version: z.ZodOptional<z.ZodNumber>;
9014
- ts: z.ZodOptional<z.ZodNumber>;
9015
- source: z.ZodOptional<z.ZodString>;
9016
- description: z.ZodOptional<z.ZodString>;
9017
- pending_count: z.ZodOptional<z.ZodNumber>;
9018
- }, z.core.$loose>;
9019
- export type TodoState = z.infer<typeof TodoStateSchema>;
9020
9651
  /** `oauth_flow` (TAL-398): `device_code` when the provider signs in through `/api/onboarding/oauth/*` instead of taking an API key; `oauth_label` then names the account to sign in with, and `signed_in` says whether the profile already holds its credential. */
9021
9652
  export declare const OnboardingProviderSchema: z.ZodObject<{
9022
9653
  id: z.ZodString;
@@ -9104,6 +9735,34 @@ export declare const OnboardingStatusSchema: z.ZodObject<{
9104
9735
  default_bare_id: z.ZodOptional<z.ZodString>;
9105
9736
  default_option_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9106
9737
  groups: z.ZodArray<z.ZodObject<{
9738
+ plan_usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9739
+ kind: z.ZodLiteral<"usage_window">;
9740
+ plan: z.ZodNullable<z.ZodString>;
9741
+ gauges: z.ZodArray<z.ZodObject<{
9742
+ label: z.ZodString;
9743
+ left_fraction: z.ZodNumber;
9744
+ style: z.ZodEnum<{
9745
+ green: "green";
9746
+ yellow: "yellow";
9747
+ red: "red";
9748
+ }>;
9749
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
9750
+ scope: z.ZodString;
9751
+ title: z.ZodString;
9752
+ }, z.core.$strip>>;
9753
+ top_tier_model_ids: z.ZodArray<z.ZodString>;
9754
+ featured_model_ids: z.ZodArray<z.ZodString>;
9755
+ paused_reason: z.ZodNullable<z.ZodString>;
9756
+ credits_pay: z.ZodNullable<z.ZodBoolean>;
9757
+ }, z.core.$strip>>>;
9758
+ plan_stale: z.ZodOptional<z.ZodBoolean>;
9759
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
9760
+ kind: z.ZodEnum<{
9761
+ recommended: "recommended";
9762
+ other: "other";
9763
+ }>;
9764
+ model_ids: z.ZodArray<z.ZodString>;
9765
+ }, z.core.$strip>>>;
9107
9766
  availability: z.ZodOptional<z.ZodObject<{
9108
9767
  status: z.ZodEnum<{
9109
9768
  available: "available";
@@ -9117,6 +9776,22 @@ export declare const OnboardingStatusSchema: z.ZodObject<{
9117
9776
  provider: z.ZodString;
9118
9777
  provider_id: z.ZodOptional<z.ZodString>;
9119
9778
  models: z.ZodArray<z.ZodObject<{
9779
+ allowance: z.ZodOptional<z.ZodObject<{
9780
+ state: z.ZodEnum<{
9781
+ unknown: "unknown";
9782
+ blocked: "blocked";
9783
+ included: "included";
9784
+ free: "free";
9785
+ credits: "credits";
9786
+ }>;
9787
+ usage_level: z.ZodNullable<z.ZodEnum<{
9788
+ free: "free";
9789
+ low: "low";
9790
+ medium: "medium";
9791
+ top_tier: "top_tier";
9792
+ }>>;
9793
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
9794
+ }, z.core.$strip>>;
9120
9795
  id: z.ZodString;
9121
9796
  label: z.ZodOptional<z.ZodString>;
9122
9797
  provider: z.ZodOptional<z.ZodString>;
@@ -9142,6 +9817,22 @@ export declare const OnboardingStatusSchema: z.ZodObject<{
9142
9817
  }, z.core.$strip>>;
9143
9818
  }, z.core.$loose>>;
9144
9819
  extra_models: z.ZodOptional<z.ZodArray<z.ZodObject<{
9820
+ allowance: z.ZodOptional<z.ZodObject<{
9821
+ state: z.ZodEnum<{
9822
+ unknown: "unknown";
9823
+ blocked: "blocked";
9824
+ included: "included";
9825
+ free: "free";
9826
+ credits: "credits";
9827
+ }>;
9828
+ usage_level: z.ZodNullable<z.ZodEnum<{
9829
+ free: "free";
9830
+ low: "low";
9831
+ medium: "medium";
9832
+ top_tier: "top_tier";
9833
+ }>>;
9834
+ resets_at_ms: z.ZodNullable<z.ZodNumber>;
9835
+ }, z.core.$strip>>;
9145
9836
  id: z.ZodString;
9146
9837
  label: z.ZodOptional<z.ZodString>;
9147
9838
  provider: z.ZodOptional<z.ZodString>;
@@ -9199,6 +9890,26 @@ export declare const OnboardingProbeSchema: z.ZodObject<{
9199
9890
  * `user_code`, `verification_url`, `expires_in` and `interval` (seconds between polls) come with the start.
9200
9891
  */
9201
9892
  export declare const OnboardingOAuthSchema: z.ZodObject<{
9893
+ nous_account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9894
+ account_id: z.ZodString;
9895
+ email: z.ZodNullable<z.ZodString>;
9896
+ state: z.ZodEnum<{
9897
+ unavailable: "unavailable";
9898
+ unknown: "unknown";
9899
+ pending: "pending";
9900
+ failed: "failed";
9901
+ idle: "idle";
9902
+ retrying: "retrying";
9903
+ claimed: "claimed";
9904
+ gone: "gone";
9905
+ paused: "paused";
9906
+ }>;
9907
+ lines: z.ZodArray<z.ZodString>;
9908
+ moved: z.ZodArray<z.ZodString>;
9909
+ dropped: z.ZodArray<z.ZodString>;
9910
+ reconnect: z.ZodArray<z.ZodString>;
9911
+ poll_after: z.ZodNullable<z.ZodNumber>;
9912
+ }, z.core.$strip>>>;
9202
9913
  ok: z.ZodOptional<z.ZodBoolean>;
9203
9914
  status: z.ZodOptional<z.ZodString>;
9204
9915
  url: z.ZodOptional<z.ZodString>;