@maudecode/talaria-web-contracts 1.18.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gateway-session.d.ts +229 -0
- package/dist/gateway-session.js +46 -0
- package/dist/gateway-session.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/openapi.js +4 -0
- package/dist/openapi.js.map +1 -1
- package/dist/router.d.ts +4265 -220
- package/dist/routes/automation.d.ts +104 -24
- package/dist/routes/automation.js +6 -3
- package/dist/routes/automation.js.map +1 -1
- package/dist/routes/chat.d.ts +1338 -43
- package/dist/routes/chat.js +5 -1
- package/dist/routes/chat.js.map +1 -1
- package/dist/routes/core.d.ts +17 -6
- package/dist/routes/core.js +2 -2
- package/dist/routes/core.js.map +1 -1
- package/dist/routes/raw.js +1 -1
- package/dist/routes/raw.js.map +1 -1
- package/dist/routes/sessions.d.ts +2367 -156
- package/dist/routes/sessions.js +18 -7
- package/dist/routes/sessions.js.map +1 -1
- package/dist/routes/settings.d.ts +427 -9
- package/dist/routes/settings.js +2 -2
- package/dist/routes/settings.js.map +1 -1
- package/dist/routes/tools.d.ts +645 -18
- package/dist/routes/tools.js +65 -8
- package/dist/routes/tools.js.map +1 -1
- package/dist/run-status.d.ts +39 -0
- package/dist/run-status.js +13 -0
- package/dist/run-status.js.map +1 -0
- package/dist/sidecar/methods.d.ts +1074 -17
- package/dist/sidecar/methods.js +9 -2
- package/dist/sidecar/methods.js.map +1 -1
- package/dist/sidecar/namespaces.d.ts +1469 -33
- package/dist/sidecar/namespaces.js +298 -31
- package/dist/sidecar/namespaces.js.map +1 -1
- package/dist/sidecar/runtime.d.ts +61 -0
- package/dist/sidecar/runtime.js +20 -0
- package/dist/sidecar/runtime.js.map +1 -1
- package/dist/sidecar/version.d.ts +1 -1
- package/dist/sidecar/version.js +1 -1
- package/dist/speed.d.ts +14 -0
- package/dist/speed.js +6 -0
- package/dist/speed.js.map +1 -0
- package/dist/sse.d.ts +797 -5
- package/dist/sse.js +24 -7
- package/dist/sse.js.map +1 -1
- package/dist/transcribe-stream.d.ts +34 -0
- package/dist/transcribe-stream.js +23 -0
- package/dist/transcribe-stream.js.map +1 -0
- package/dist/views.d.ts +2097 -127
- package/dist/views.js +273 -47
- package/dist/views.js.map +1 -1
- package/fixtures/sidecar/aux.json +134 -0
- package/fixtures/sidecar/chat.json +14 -0
- package/fixtures/sidecar/checkpoints.json +6 -6
- package/fixtures/sidecar/commands.json +216 -108
- package/fixtures/sidecar/config.json +15 -0
- package/fixtures/sidecar/connectors.json +218 -0
- package/fixtures/sidecar/cron.json +1001 -31
- package/fixtures/sidecar/gateway.json +39 -0
- package/fixtures/sidecar/goals.json +5 -3
- package/fixtures/sidecar/kanban.json +139 -49
- package/fixtures/sidecar/memory.json +50 -0
- package/fixtures/sidecar/models.json +122 -0
- package/fixtures/sidecar/personalities.json +92 -0
- package/fixtures/sidecar/plugins.json +116 -27
- package/fixtures/sidecar/process.json +31 -0
- package/fixtures/sidecar/profiles.json +2 -0
- package/fixtures/sidecar/providers.json +14 -1
- package/fixtures/sidecar/rpc.json +35 -1
- package/fixtures/sidecar/runtime.json +130 -14
- package/fixtures/sidecar/skills.json +256 -13
- package/fixtures/sidecar/state_db.json +19 -2
- package/fixtures/sidecar/stt.json +62 -1
- package/fixtures/sidecar/text.json +20 -2
- package/fixtures/sidecar/toolsets.json +468 -0
- package/fixtures/sidecar/usage.json +22 -2
- package/fixtures/sidecar/write_approval.json +98 -0
- package/package.json +1 -1
package/dist/views.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* that must survive a round trip (documented passthrough).
|
|
6
6
|
*/
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
+
export { SpeedTierSchema } from './speed.js';
|
|
8
9
|
export declare const NullableString: z.ZodNullable<z.ZodString>;
|
|
9
10
|
export declare const NullableNumber: z.ZodNullable<z.ZodNumber>;
|
|
10
11
|
/** Unix seconds as the server emits them (float). */
|
|
@@ -24,6 +25,7 @@ export type Attachment = z.infer<typeof AttachmentSchema>;
|
|
|
24
25
|
/** The server's display class for a tool call: clients map it to an icon and localized verb, and never classify names themselves. */
|
|
25
26
|
export declare const ToolKindSchema: z.ZodEnum<{
|
|
26
27
|
unknown: "unknown";
|
|
28
|
+
memory: "memory";
|
|
27
29
|
shell: "shell";
|
|
28
30
|
read: "read";
|
|
29
31
|
list: "list";
|
|
@@ -31,7 +33,6 @@ export declare const ToolKindSchema: z.ZodEnum<{
|
|
|
31
33
|
web: "web";
|
|
32
34
|
write: "write";
|
|
33
35
|
skill: "skill";
|
|
34
|
-
memory: "memory";
|
|
35
36
|
delegate: "delegate";
|
|
36
37
|
}>;
|
|
37
38
|
export type ToolKind = z.infer<typeof ToolKindSchema>;
|
|
@@ -107,6 +108,7 @@ export type ToolEditDiff = z.infer<typeof ToolEditDiffSchema>;
|
|
|
107
108
|
export declare const ToolDisplayFields: {
|
|
108
109
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
109
110
|
unknown: "unknown";
|
|
111
|
+
memory: "memory";
|
|
110
112
|
shell: "shell";
|
|
111
113
|
read: "read";
|
|
112
114
|
list: "list";
|
|
@@ -114,7 +116,6 @@ export declare const ToolDisplayFields: {
|
|
|
114
116
|
web: "web";
|
|
115
117
|
write: "write";
|
|
116
118
|
skill: "skill";
|
|
117
|
-
memory: "memory";
|
|
118
119
|
delegate: "delegate";
|
|
119
120
|
}>>;
|
|
120
121
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -192,6 +193,7 @@ export declare const ToolCallSchema: z.ZodObject<{
|
|
|
192
193
|
event_type: z.ZodOptional<z.ZodString>;
|
|
193
194
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
194
195
|
unknown: "unknown";
|
|
196
|
+
memory: "memory";
|
|
195
197
|
shell: "shell";
|
|
196
198
|
read: "read";
|
|
197
199
|
list: "list";
|
|
@@ -199,7 +201,6 @@ export declare const ToolCallSchema: z.ZodObject<{
|
|
|
199
201
|
web: "web";
|
|
200
202
|
write: "write";
|
|
201
203
|
skill: "skill";
|
|
202
|
-
memory: "memory";
|
|
203
204
|
delegate: "delegate";
|
|
204
205
|
}>>;
|
|
205
206
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -253,10 +254,10 @@ export declare const BackgroundLinkSchema: z.ZodObject<{
|
|
|
253
254
|
task_ids: z.ZodArray<z.ZodString>;
|
|
254
255
|
status: z.ZodEnum<{
|
|
255
256
|
unknown: "unknown";
|
|
257
|
+
running: "running";
|
|
256
258
|
cancelled: "cancelled";
|
|
257
|
-
completed: "completed";
|
|
258
259
|
failed: "failed";
|
|
259
|
-
|
|
260
|
+
completed: "completed";
|
|
260
261
|
attention: "attention";
|
|
261
262
|
}>;
|
|
262
263
|
agents: z.ZodObject<{
|
|
@@ -292,8 +293,8 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
|
|
|
292
293
|
row_id: z.ZodString;
|
|
293
294
|
order_index: z.ZodNumber;
|
|
294
295
|
role: z.ZodEnum<{
|
|
295
|
-
reasoning: "reasoning";
|
|
296
296
|
tool: "tool";
|
|
297
|
+
reasoning: "reasoning";
|
|
297
298
|
prose: "prose";
|
|
298
299
|
steering: "steering";
|
|
299
300
|
}>;
|
|
@@ -332,10 +333,10 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
|
|
|
332
333
|
task_ids: z.ZodArray<z.ZodString>;
|
|
333
334
|
status: z.ZodEnum<{
|
|
334
335
|
unknown: "unknown";
|
|
336
|
+
running: "running";
|
|
335
337
|
cancelled: "cancelled";
|
|
336
|
-
completed: "completed";
|
|
337
338
|
failed: "failed";
|
|
338
|
-
|
|
339
|
+
completed: "completed";
|
|
339
340
|
attention: "attention";
|
|
340
341
|
}>;
|
|
341
342
|
agents: z.ZodObject<{
|
|
@@ -349,6 +350,7 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
|
|
|
349
350
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
350
351
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
351
352
|
unknown: "unknown";
|
|
353
|
+
memory: "memory";
|
|
352
354
|
shell: "shell";
|
|
353
355
|
read: "read";
|
|
354
356
|
list: "list";
|
|
@@ -356,7 +358,6 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
|
|
|
356
358
|
web: "web";
|
|
357
359
|
write: "write";
|
|
358
360
|
skill: "skill";
|
|
359
|
-
memory: "memory";
|
|
360
361
|
delegate: "delegate";
|
|
361
362
|
}>>;
|
|
362
363
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -425,8 +426,8 @@ export declare const ActivitySceneSchema: z.ZodObject<{
|
|
|
425
426
|
row_id: z.ZodString;
|
|
426
427
|
order_index: z.ZodNumber;
|
|
427
428
|
role: z.ZodEnum<{
|
|
428
|
-
reasoning: "reasoning";
|
|
429
429
|
tool: "tool";
|
|
430
|
+
reasoning: "reasoning";
|
|
430
431
|
prose: "prose";
|
|
431
432
|
steering: "steering";
|
|
432
433
|
}>;
|
|
@@ -465,10 +466,10 @@ export declare const ActivitySceneSchema: z.ZodObject<{
|
|
|
465
466
|
task_ids: z.ZodArray<z.ZodString>;
|
|
466
467
|
status: z.ZodEnum<{
|
|
467
468
|
unknown: "unknown";
|
|
469
|
+
running: "running";
|
|
468
470
|
cancelled: "cancelled";
|
|
469
|
-
completed: "completed";
|
|
470
471
|
failed: "failed";
|
|
471
|
-
|
|
472
|
+
completed: "completed";
|
|
472
473
|
attention: "attention";
|
|
473
474
|
}>;
|
|
474
475
|
agents: z.ZodObject<{
|
|
@@ -482,6 +483,7 @@ export declare const ActivitySceneSchema: z.ZodObject<{
|
|
|
482
483
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
483
484
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
484
485
|
unknown: "unknown";
|
|
486
|
+
memory: "memory";
|
|
485
487
|
shell: "shell";
|
|
486
488
|
read: "read";
|
|
487
489
|
list: "list";
|
|
@@ -489,7 +491,6 @@ export declare const ActivitySceneSchema: z.ZodObject<{
|
|
|
489
491
|
web: "web";
|
|
490
492
|
write: "write";
|
|
491
493
|
skill: "skill";
|
|
492
|
-
memory: "memory";
|
|
493
494
|
delegate: "delegate";
|
|
494
495
|
}>>;
|
|
495
496
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -564,7 +565,16 @@ export declare const ActivitySceneSchema: z.ZodObject<{
|
|
|
564
565
|
activity_scene_ref: z.ZodOptional<z.ZodString>;
|
|
565
566
|
}, z.core.$loose>;
|
|
566
567
|
export type ActivityScene = z.infer<typeof ActivitySceneSchema>;
|
|
567
|
-
/**
|
|
568
|
+
/** The server-owned result-review lifecycle (TAL-1022). */
|
|
569
|
+
export declare const BackgroundReviewStateSchema: z.ZodEnum<{
|
|
570
|
+
unknown: "unknown";
|
|
571
|
+
failed: "failed";
|
|
572
|
+
waiting: "waiting";
|
|
573
|
+
reviewing: "reviewing";
|
|
574
|
+
reviewed: "reviewed";
|
|
575
|
+
}>;
|
|
576
|
+
export type BackgroundReviewState = z.infer<typeof BackgroundReviewStateSchema>;
|
|
577
|
+
/** One finished background item (see `_background_update.lines`). */
|
|
568
578
|
export declare const BackgroundLineSchema: z.ZodObject<{
|
|
569
579
|
kind: z.ZodEnum<{
|
|
570
580
|
command: "command";
|
|
@@ -572,12 +582,19 @@ export declare const BackgroundLineSchema: z.ZodObject<{
|
|
|
572
582
|
other: "other";
|
|
573
583
|
}>;
|
|
574
584
|
status: z.ZodEnum<{
|
|
575
|
-
completed: "completed";
|
|
576
585
|
failed: "failed";
|
|
586
|
+
completed: "completed";
|
|
577
587
|
notice: "notice";
|
|
578
588
|
}>;
|
|
579
589
|
label: z.ZodString;
|
|
580
590
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
591
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
592
|
+
unknown: "unknown";
|
|
593
|
+
failed: "failed";
|
|
594
|
+
waiting: "waiting";
|
|
595
|
+
reviewing: "reviewing";
|
|
596
|
+
reviewed: "reviewed";
|
|
597
|
+
}>>;
|
|
581
598
|
}, z.core.$strip>;
|
|
582
599
|
export type BackgroundLine = z.infer<typeof BackgroundLineSchema>;
|
|
583
600
|
export declare const MessageSchema: z.ZodObject<{
|
|
@@ -626,6 +643,7 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
626
643
|
event_type: z.ZodOptional<z.ZodString>;
|
|
627
644
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
628
645
|
unknown: "unknown";
|
|
646
|
+
memory: "memory";
|
|
629
647
|
shell: "shell";
|
|
630
648
|
read: "read";
|
|
631
649
|
list: "list";
|
|
@@ -633,7 +651,6 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
633
651
|
web: "web";
|
|
634
652
|
write: "write";
|
|
635
653
|
skill: "skill";
|
|
636
|
-
memory: "memory";
|
|
637
654
|
delegate: "delegate";
|
|
638
655
|
}>>;
|
|
639
656
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -677,8 +694,8 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
677
694
|
row_id: z.ZodString;
|
|
678
695
|
order_index: z.ZodNumber;
|
|
679
696
|
role: z.ZodEnum<{
|
|
680
|
-
reasoning: "reasoning";
|
|
681
697
|
tool: "tool";
|
|
698
|
+
reasoning: "reasoning";
|
|
682
699
|
prose: "prose";
|
|
683
700
|
steering: "steering";
|
|
684
701
|
}>;
|
|
@@ -717,10 +734,10 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
717
734
|
task_ids: z.ZodArray<z.ZodString>;
|
|
718
735
|
status: z.ZodEnum<{
|
|
719
736
|
unknown: "unknown";
|
|
737
|
+
running: "running";
|
|
720
738
|
cancelled: "cancelled";
|
|
721
|
-
completed: "completed";
|
|
722
739
|
failed: "failed";
|
|
723
|
-
|
|
740
|
+
completed: "completed";
|
|
724
741
|
attention: "attention";
|
|
725
742
|
}>;
|
|
726
743
|
agents: z.ZodObject<{
|
|
@@ -734,6 +751,7 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
734
751
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
735
752
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
736
753
|
unknown: "unknown";
|
|
754
|
+
memory: "memory";
|
|
737
755
|
shell: "shell";
|
|
738
756
|
read: "read";
|
|
739
757
|
list: "list";
|
|
@@ -741,7 +759,6 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
741
759
|
web: "web";
|
|
742
760
|
write: "write";
|
|
743
761
|
skill: "skill";
|
|
744
|
-
memory: "memory";
|
|
745
762
|
delegate: "delegate";
|
|
746
763
|
}>>;
|
|
747
764
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -861,19 +878,45 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
861
878
|
other: "other";
|
|
862
879
|
}>;
|
|
863
880
|
status: z.ZodEnum<{
|
|
864
|
-
completed: "completed";
|
|
865
881
|
failed: "failed";
|
|
882
|
+
completed: "completed";
|
|
866
883
|
notice: "notice";
|
|
867
884
|
}>;
|
|
868
885
|
label: z.ZodString;
|
|
869
886
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
887
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
888
|
+
unknown: "unknown";
|
|
889
|
+
failed: "failed";
|
|
890
|
+
waiting: "waiting";
|
|
891
|
+
reviewing: "reviewing";
|
|
892
|
+
reviewed: "reviewed";
|
|
893
|
+
}>>;
|
|
870
894
|
}, z.core.$strip>>;
|
|
895
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
896
|
+
unknown: "unknown";
|
|
897
|
+
failed: "failed";
|
|
898
|
+
waiting: "waiting";
|
|
899
|
+
reviewing: "reviewing";
|
|
900
|
+
reviewed: "reviewed";
|
|
901
|
+
}>>;
|
|
871
902
|
}, z.core.$strip>>;
|
|
872
903
|
_marker_kind: z.ZodOptional<z.ZodEnum<{
|
|
873
904
|
context_compaction: "context_compaction";
|
|
874
905
|
preserved_task_list: "preserved_task_list";
|
|
875
906
|
}>>;
|
|
876
907
|
_marker_body: z.ZodOptional<z.ZodString>;
|
|
908
|
+
_notice_kind: z.ZodOptional<z.ZodEnum<{
|
|
909
|
+
failed_turn: "failed_turn";
|
|
910
|
+
session_finalize: "session_finalize";
|
|
911
|
+
}>>;
|
|
912
|
+
_delivery: z.ZodOptional<z.ZodObject<{
|
|
913
|
+
kind: z.ZodEnum<{
|
|
914
|
+
webhook: "webhook";
|
|
915
|
+
cron: "cron";
|
|
916
|
+
}>;
|
|
917
|
+
name: z.ZodString;
|
|
918
|
+
body: z.ZodString;
|
|
919
|
+
}, z.core.$strip>>;
|
|
877
920
|
_background_reply: z.ZodOptional<z.ZodBoolean>;
|
|
878
921
|
_background_silent: z.ZodOptional<z.ZodBoolean>;
|
|
879
922
|
_display: z.ZodOptional<z.ZodEnum<{
|
|
@@ -906,6 +949,40 @@ export declare const PendingSteerSchema: z.ZodObject<{
|
|
|
906
949
|
}, z.core.$strip>;
|
|
907
950
|
}, z.core.$strip>;
|
|
908
951
|
export type PendingSteer = z.infer<typeof PendingSteerSchema>;
|
|
952
|
+
/**
|
|
953
|
+
* TAL-803: an out-of-band notice the Agent raised for the session (a memory provider that failed to load, credit and
|
|
954
|
+
* usage warnings), one per `key`. The server keeps it until the Agent clears that key, `expires_at` passes, or a new agent
|
|
955
|
+
* replaces the one that raised it.
|
|
956
|
+
*/
|
|
957
|
+
export declare const SessionNoticeSchema: z.ZodObject<{
|
|
958
|
+
key: z.ZodString;
|
|
959
|
+
level: z.ZodEnum<{
|
|
960
|
+
success: "success";
|
|
961
|
+
error: "error";
|
|
962
|
+
info: "info";
|
|
963
|
+
warn: "warn";
|
|
964
|
+
}>;
|
|
965
|
+
text: z.ZodString;
|
|
966
|
+
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
967
|
+
}, z.core.$strip>;
|
|
968
|
+
export type SessionNotice = z.infer<typeof SessionNoticeSchema>;
|
|
969
|
+
/**
|
|
970
|
+
* TAL-808: the session's standing `/goal` while it runs, from the Agent's goal state. `parked` is an active goal waiting on
|
|
971
|
+
* a process or a timer; `reason` is why it is paused or what it waits on. A done, cleared or absent goal is null.
|
|
972
|
+
*/
|
|
973
|
+
export declare const SessionGoalSchema: z.ZodObject<{
|
|
974
|
+
text: z.ZodString;
|
|
975
|
+
status: z.ZodEnum<{
|
|
976
|
+
active: "active";
|
|
977
|
+
parked: "parked";
|
|
978
|
+
paused: "paused";
|
|
979
|
+
}>;
|
|
980
|
+
turns_used: z.ZodNumber;
|
|
981
|
+
max_turns: z.ZodNumber;
|
|
982
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
983
|
+
parked_until: z.ZodNullable<z.ZodNumber>;
|
|
984
|
+
}, z.core.$strip>;
|
|
985
|
+
export type SessionGoal = z.infer<typeof SessionGoalSchema>;
|
|
909
986
|
/**
|
|
910
987
|
* TAL-299: the context ring, computed by the server. `context_used_tokens` is the post-compression estimate, else the last
|
|
911
988
|
* prompt (never the cumulative `input_tokens`); `context_window_tokens` is the model's window. The percents are rounded
|
|
@@ -919,11 +996,11 @@ export declare const ContextUsageFields: {
|
|
|
919
996
|
};
|
|
920
997
|
export declare const SourceKindSchema: z.ZodEnum<{
|
|
921
998
|
other: "other";
|
|
999
|
+
webhook: "webhook";
|
|
1000
|
+
cron: "cron";
|
|
922
1001
|
webui: "webui";
|
|
923
1002
|
cli: "cli";
|
|
924
1003
|
messaging: "messaging";
|
|
925
|
-
cron: "cron";
|
|
926
|
-
webhook: "webhook";
|
|
927
1004
|
subagent: "subagent";
|
|
928
1005
|
claude_code: "claude_code";
|
|
929
1006
|
kanban: "kanban";
|
|
@@ -955,11 +1032,11 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
955
1032
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
956
1033
|
source_kind: z.ZodEnum<{
|
|
957
1034
|
other: "other";
|
|
1035
|
+
webhook: "webhook";
|
|
1036
|
+
cron: "cron";
|
|
958
1037
|
webui: "webui";
|
|
959
1038
|
cli: "cli";
|
|
960
1039
|
messaging: "messaging";
|
|
961
|
-
cron: "cron";
|
|
962
|
-
webhook: "webhook";
|
|
963
1040
|
subagent: "subagent";
|
|
964
1041
|
claude_code: "claude_code";
|
|
965
1042
|
kanban: "kanban";
|
|
@@ -968,6 +1045,57 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
968
1045
|
is_messaging_session: z.ZodBoolean;
|
|
969
1046
|
sort_ts: z.ZodNumber;
|
|
970
1047
|
read_only: z.ZodBoolean;
|
|
1048
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1049
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
1050
|
+
state: z.ZodEnum<{
|
|
1051
|
+
attached: "attached";
|
|
1052
|
+
stopped: "stopped";
|
|
1053
|
+
unavailable: "unavailable";
|
|
1054
|
+
incompatible: "incompatible";
|
|
1055
|
+
refused: "refused";
|
|
1056
|
+
}>;
|
|
1057
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1058
|
+
can_submit: z.ZodBoolean;
|
|
1059
|
+
can_interrupt: z.ZodBoolean;
|
|
1060
|
+
can_attach: z.ZodBoolean;
|
|
1061
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
1062
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1063
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1064
|
+
admission_id: z.ZodString;
|
|
1065
|
+
sequence: z.ZodNumber;
|
|
1066
|
+
status: z.ZodEnum<{
|
|
1067
|
+
unknown: "unknown";
|
|
1068
|
+
queued: "queued";
|
|
1069
|
+
started: "started";
|
|
1070
|
+
terminal: "terminal";
|
|
1071
|
+
}>;
|
|
1072
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
1073
|
+
authority_epoch: z.ZodNumber;
|
|
1074
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1075
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1076
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
1077
|
+
}, z.core.$strip>>>;
|
|
1078
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
1079
|
+
admission_id: z.ZodString;
|
|
1080
|
+
sequence: z.ZodNumber;
|
|
1081
|
+
status: z.ZodEnum<{
|
|
1082
|
+
unknown: "unknown";
|
|
1083
|
+
queued: "queued";
|
|
1084
|
+
started: "started";
|
|
1085
|
+
terminal: "terminal";
|
|
1086
|
+
}>;
|
|
1087
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
1088
|
+
authority_epoch: z.ZodNumber;
|
|
1089
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1090
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1091
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
1092
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
1093
|
+
cancel: "cancel";
|
|
1094
|
+
discard: "discard";
|
|
1095
|
+
retry: "retry";
|
|
1096
|
+
}>>;
|
|
1097
|
+
}, z.core.$strip>>;
|
|
1098
|
+
}, z.core.$strip>>;
|
|
971
1099
|
can_branch: z.ZodBoolean;
|
|
972
1100
|
can_pin: z.ZodBoolean;
|
|
973
1101
|
can_archive: z.ZodBoolean;
|
|
@@ -975,6 +1103,7 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
975
1103
|
can_duplicate: z.ZodBoolean;
|
|
976
1104
|
source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
977
1105
|
can_compress: z.ZodOptional<z.ZodBoolean>;
|
|
1106
|
+
confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
|
|
978
1107
|
source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
979
1108
|
session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
980
1109
|
raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1014,6 +1143,7 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1014
1143
|
context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1015
1144
|
context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1016
1145
|
context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1146
|
+
composer_state_key: z.ZodOptional<z.ZodString>;
|
|
1017
1147
|
session_id: z.ZodString;
|
|
1018
1148
|
title: z.ZodString;
|
|
1019
1149
|
workspace: z.ZodOptional<z.ZodString>;
|
|
@@ -1067,6 +1197,7 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1067
1197
|
event_type: z.ZodOptional<z.ZodString>;
|
|
1068
1198
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1069
1199
|
unknown: "unknown";
|
|
1200
|
+
memory: "memory";
|
|
1070
1201
|
shell: "shell";
|
|
1071
1202
|
read: "read";
|
|
1072
1203
|
list: "list";
|
|
@@ -1074,7 +1205,6 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1074
1205
|
web: "web";
|
|
1075
1206
|
write: "write";
|
|
1076
1207
|
skill: "skill";
|
|
1077
|
-
memory: "memory";
|
|
1078
1208
|
delegate: "delegate";
|
|
1079
1209
|
}>>;
|
|
1080
1210
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1118,8 +1248,8 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1118
1248
|
row_id: z.ZodString;
|
|
1119
1249
|
order_index: z.ZodNumber;
|
|
1120
1250
|
role: z.ZodEnum<{
|
|
1121
|
-
reasoning: "reasoning";
|
|
1122
1251
|
tool: "tool";
|
|
1252
|
+
reasoning: "reasoning";
|
|
1123
1253
|
prose: "prose";
|
|
1124
1254
|
steering: "steering";
|
|
1125
1255
|
}>;
|
|
@@ -1158,10 +1288,10 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1158
1288
|
task_ids: z.ZodArray<z.ZodString>;
|
|
1159
1289
|
status: z.ZodEnum<{
|
|
1160
1290
|
unknown: "unknown";
|
|
1291
|
+
running: "running";
|
|
1161
1292
|
cancelled: "cancelled";
|
|
1162
|
-
completed: "completed";
|
|
1163
1293
|
failed: "failed";
|
|
1164
|
-
|
|
1294
|
+
completed: "completed";
|
|
1165
1295
|
attention: "attention";
|
|
1166
1296
|
}>;
|
|
1167
1297
|
agents: z.ZodObject<{
|
|
@@ -1175,6 +1305,7 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1175
1305
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1176
1306
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1177
1307
|
unknown: "unknown";
|
|
1308
|
+
memory: "memory";
|
|
1178
1309
|
shell: "shell";
|
|
1179
1310
|
read: "read";
|
|
1180
1311
|
list: "list";
|
|
@@ -1182,7 +1313,6 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1182
1313
|
web: "web";
|
|
1183
1314
|
write: "write";
|
|
1184
1315
|
skill: "skill";
|
|
1185
|
-
memory: "memory";
|
|
1186
1316
|
delegate: "delegate";
|
|
1187
1317
|
}>>;
|
|
1188
1318
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1302,19 +1432,45 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1302
1432
|
other: "other";
|
|
1303
1433
|
}>;
|
|
1304
1434
|
status: z.ZodEnum<{
|
|
1305
|
-
completed: "completed";
|
|
1306
1435
|
failed: "failed";
|
|
1436
|
+
completed: "completed";
|
|
1307
1437
|
notice: "notice";
|
|
1308
1438
|
}>;
|
|
1309
1439
|
label: z.ZodString;
|
|
1310
1440
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1441
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
1442
|
+
unknown: "unknown";
|
|
1443
|
+
failed: "failed";
|
|
1444
|
+
waiting: "waiting";
|
|
1445
|
+
reviewing: "reviewing";
|
|
1446
|
+
reviewed: "reviewed";
|
|
1447
|
+
}>>;
|
|
1311
1448
|
}, z.core.$strip>>;
|
|
1449
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
1450
|
+
unknown: "unknown";
|
|
1451
|
+
failed: "failed";
|
|
1452
|
+
waiting: "waiting";
|
|
1453
|
+
reviewing: "reviewing";
|
|
1454
|
+
reviewed: "reviewed";
|
|
1455
|
+
}>>;
|
|
1312
1456
|
}, z.core.$strip>>;
|
|
1313
1457
|
_marker_kind: z.ZodOptional<z.ZodEnum<{
|
|
1314
1458
|
context_compaction: "context_compaction";
|
|
1315
1459
|
preserved_task_list: "preserved_task_list";
|
|
1316
1460
|
}>>;
|
|
1317
1461
|
_marker_body: z.ZodOptional<z.ZodString>;
|
|
1462
|
+
_notice_kind: z.ZodOptional<z.ZodEnum<{
|
|
1463
|
+
failed_turn: "failed_turn";
|
|
1464
|
+
session_finalize: "session_finalize";
|
|
1465
|
+
}>>;
|
|
1466
|
+
_delivery: z.ZodOptional<z.ZodObject<{
|
|
1467
|
+
kind: z.ZodEnum<{
|
|
1468
|
+
webhook: "webhook";
|
|
1469
|
+
cron: "cron";
|
|
1470
|
+
}>;
|
|
1471
|
+
name: z.ZodString;
|
|
1472
|
+
body: z.ZodString;
|
|
1473
|
+
}, z.core.$strip>>;
|
|
1318
1474
|
_background_reply: z.ZodOptional<z.ZodBoolean>;
|
|
1319
1475
|
_background_silent: z.ZodOptional<z.ZodBoolean>;
|
|
1320
1476
|
_display: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1351,6 +1507,7 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1351
1507
|
event_type: z.ZodOptional<z.ZodString>;
|
|
1352
1508
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1353
1509
|
unknown: "unknown";
|
|
1510
|
+
memory: "memory";
|
|
1354
1511
|
shell: "shell";
|
|
1355
1512
|
read: "read";
|
|
1356
1513
|
list: "list";
|
|
@@ -1358,7 +1515,6 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1358
1515
|
web: "web";
|
|
1359
1516
|
write: "write";
|
|
1360
1517
|
skill: "skill";
|
|
1361
|
-
memory: "memory";
|
|
1362
1518
|
delegate: "delegate";
|
|
1363
1519
|
}>>;
|
|
1364
1520
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1423,6 +1579,50 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1423
1579
|
send_now: z.ZodBoolean;
|
|
1424
1580
|
}, z.core.$strip>;
|
|
1425
1581
|
}, z.core.$strip>>>;
|
|
1582
|
+
run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1583
|
+
phase: z.ZodLiteral<"compressing">;
|
|
1584
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1585
|
+
phase: z.ZodLiteral<"rate_limit_wait">;
|
|
1586
|
+
wait: z.ZodObject<{
|
|
1587
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
1588
|
+
provider_label: z.ZodNullable<z.ZodString>;
|
|
1589
|
+
until: z.ZodNumber;
|
|
1590
|
+
until_kind: z.ZodEnum<{
|
|
1591
|
+
reset: "reset";
|
|
1592
|
+
retry: "retry";
|
|
1593
|
+
}>;
|
|
1594
|
+
}, z.core.$strip>;
|
|
1595
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1596
|
+
phase: z.ZodLiteral<"prompt_reading">;
|
|
1597
|
+
progress_percent: z.ZodNullable<z.ZodNumber>;
|
|
1598
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1599
|
+
phase: z.ZodLiteral<"working">;
|
|
1600
|
+
}, z.core.$strip>], "phase">>>;
|
|
1601
|
+
compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1602
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1603
|
+
key: z.ZodString;
|
|
1604
|
+
level: z.ZodEnum<{
|
|
1605
|
+
success: "success";
|
|
1606
|
+
error: "error";
|
|
1607
|
+
info: "info";
|
|
1608
|
+
warn: "warn";
|
|
1609
|
+
}>;
|
|
1610
|
+
text: z.ZodString;
|
|
1611
|
+
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
1612
|
+
}, z.core.$strip>>>;
|
|
1613
|
+
goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1614
|
+
text: z.ZodString;
|
|
1615
|
+
status: z.ZodEnum<{
|
|
1616
|
+
active: "active";
|
|
1617
|
+
parked: "parked";
|
|
1618
|
+
paused: "paused";
|
|
1619
|
+
}>;
|
|
1620
|
+
turns_used: z.ZodNumber;
|
|
1621
|
+
max_turns: z.ZodNumber;
|
|
1622
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1623
|
+
parked_until: z.ZodNullable<z.ZodNumber>;
|
|
1624
|
+
}, z.core.$strip>>>;
|
|
1625
|
+
automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
|
|
1426
1626
|
has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
1427
1627
|
pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1428
1628
|
pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1452,11 +1652,11 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1452
1652
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
1453
1653
|
source_kind: z.ZodEnum<{
|
|
1454
1654
|
other: "other";
|
|
1655
|
+
webhook: "webhook";
|
|
1656
|
+
cron: "cron";
|
|
1455
1657
|
webui: "webui";
|
|
1456
1658
|
cli: "cli";
|
|
1457
1659
|
messaging: "messaging";
|
|
1458
|
-
cron: "cron";
|
|
1459
|
-
webhook: "webhook";
|
|
1460
1660
|
subagent: "subagent";
|
|
1461
1661
|
claude_code: "claude_code";
|
|
1462
1662
|
kanban: "kanban";
|
|
@@ -1465,6 +1665,57 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1465
1665
|
is_messaging_session: z.ZodBoolean;
|
|
1466
1666
|
sort_ts: z.ZodNumber;
|
|
1467
1667
|
read_only: z.ZodBoolean;
|
|
1668
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1669
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
1670
|
+
state: z.ZodEnum<{
|
|
1671
|
+
attached: "attached";
|
|
1672
|
+
stopped: "stopped";
|
|
1673
|
+
unavailable: "unavailable";
|
|
1674
|
+
incompatible: "incompatible";
|
|
1675
|
+
refused: "refused";
|
|
1676
|
+
}>;
|
|
1677
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1678
|
+
can_submit: z.ZodBoolean;
|
|
1679
|
+
can_interrupt: z.ZodBoolean;
|
|
1680
|
+
can_attach: z.ZodBoolean;
|
|
1681
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
1682
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1683
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1684
|
+
admission_id: z.ZodString;
|
|
1685
|
+
sequence: z.ZodNumber;
|
|
1686
|
+
status: z.ZodEnum<{
|
|
1687
|
+
unknown: "unknown";
|
|
1688
|
+
queued: "queued";
|
|
1689
|
+
started: "started";
|
|
1690
|
+
terminal: "terminal";
|
|
1691
|
+
}>;
|
|
1692
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
1693
|
+
authority_epoch: z.ZodNumber;
|
|
1694
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1695
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1696
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
1697
|
+
}, z.core.$strip>>>;
|
|
1698
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
1699
|
+
admission_id: z.ZodString;
|
|
1700
|
+
sequence: z.ZodNumber;
|
|
1701
|
+
status: z.ZodEnum<{
|
|
1702
|
+
unknown: "unknown";
|
|
1703
|
+
queued: "queued";
|
|
1704
|
+
started: "started";
|
|
1705
|
+
terminal: "terminal";
|
|
1706
|
+
}>;
|
|
1707
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
1708
|
+
authority_epoch: z.ZodNumber;
|
|
1709
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1710
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1711
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
1712
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
1713
|
+
cancel: "cancel";
|
|
1714
|
+
discard: "discard";
|
|
1715
|
+
retry: "retry";
|
|
1716
|
+
}>>;
|
|
1717
|
+
}, z.core.$strip>>;
|
|
1718
|
+
}, z.core.$strip>>;
|
|
1468
1719
|
can_branch: z.ZodBoolean;
|
|
1469
1720
|
can_pin: z.ZodBoolean;
|
|
1470
1721
|
can_archive: z.ZodBoolean;
|
|
@@ -1472,6 +1723,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1472
1723
|
can_duplicate: z.ZodBoolean;
|
|
1473
1724
|
source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1474
1725
|
can_compress: z.ZodOptional<z.ZodBoolean>;
|
|
1726
|
+
confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
|
|
1475
1727
|
source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1476
1728
|
session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1477
1729
|
raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1511,6 +1763,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1511
1763
|
context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1512
1764
|
context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1513
1765
|
context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1766
|
+
composer_state_key: z.ZodOptional<z.ZodString>;
|
|
1514
1767
|
session_id: z.ZodString;
|
|
1515
1768
|
title: z.ZodString;
|
|
1516
1769
|
workspace: z.ZodOptional<z.ZodString>;
|
|
@@ -1564,6 +1817,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1564
1817
|
event_type: z.ZodOptional<z.ZodString>;
|
|
1565
1818
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1566
1819
|
unknown: "unknown";
|
|
1820
|
+
memory: "memory";
|
|
1567
1821
|
shell: "shell";
|
|
1568
1822
|
read: "read";
|
|
1569
1823
|
list: "list";
|
|
@@ -1571,7 +1825,6 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1571
1825
|
web: "web";
|
|
1572
1826
|
write: "write";
|
|
1573
1827
|
skill: "skill";
|
|
1574
|
-
memory: "memory";
|
|
1575
1828
|
delegate: "delegate";
|
|
1576
1829
|
}>>;
|
|
1577
1830
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1615,8 +1868,8 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1615
1868
|
row_id: z.ZodString;
|
|
1616
1869
|
order_index: z.ZodNumber;
|
|
1617
1870
|
role: z.ZodEnum<{
|
|
1618
|
-
reasoning: "reasoning";
|
|
1619
1871
|
tool: "tool";
|
|
1872
|
+
reasoning: "reasoning";
|
|
1620
1873
|
prose: "prose";
|
|
1621
1874
|
steering: "steering";
|
|
1622
1875
|
}>;
|
|
@@ -1655,10 +1908,10 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1655
1908
|
task_ids: z.ZodArray<z.ZodString>;
|
|
1656
1909
|
status: z.ZodEnum<{
|
|
1657
1910
|
unknown: "unknown";
|
|
1911
|
+
running: "running";
|
|
1658
1912
|
cancelled: "cancelled";
|
|
1659
|
-
completed: "completed";
|
|
1660
1913
|
failed: "failed";
|
|
1661
|
-
|
|
1914
|
+
completed: "completed";
|
|
1662
1915
|
attention: "attention";
|
|
1663
1916
|
}>;
|
|
1664
1917
|
agents: z.ZodObject<{
|
|
@@ -1672,6 +1925,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1672
1925
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1673
1926
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1674
1927
|
unknown: "unknown";
|
|
1928
|
+
memory: "memory";
|
|
1675
1929
|
shell: "shell";
|
|
1676
1930
|
read: "read";
|
|
1677
1931
|
list: "list";
|
|
@@ -1679,7 +1933,6 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1679
1933
|
web: "web";
|
|
1680
1934
|
write: "write";
|
|
1681
1935
|
skill: "skill";
|
|
1682
|
-
memory: "memory";
|
|
1683
1936
|
delegate: "delegate";
|
|
1684
1937
|
}>>;
|
|
1685
1938
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1799,19 +2052,45 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1799
2052
|
other: "other";
|
|
1800
2053
|
}>;
|
|
1801
2054
|
status: z.ZodEnum<{
|
|
1802
|
-
completed: "completed";
|
|
1803
2055
|
failed: "failed";
|
|
2056
|
+
completed: "completed";
|
|
1804
2057
|
notice: "notice";
|
|
1805
2058
|
}>;
|
|
1806
2059
|
label: z.ZodString;
|
|
1807
2060
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2061
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
2062
|
+
unknown: "unknown";
|
|
2063
|
+
failed: "failed";
|
|
2064
|
+
waiting: "waiting";
|
|
2065
|
+
reviewing: "reviewing";
|
|
2066
|
+
reviewed: "reviewed";
|
|
2067
|
+
}>>;
|
|
1808
2068
|
}, z.core.$strip>>;
|
|
2069
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
2070
|
+
unknown: "unknown";
|
|
2071
|
+
failed: "failed";
|
|
2072
|
+
waiting: "waiting";
|
|
2073
|
+
reviewing: "reviewing";
|
|
2074
|
+
reviewed: "reviewed";
|
|
2075
|
+
}>>;
|
|
1809
2076
|
}, z.core.$strip>>;
|
|
1810
2077
|
_marker_kind: z.ZodOptional<z.ZodEnum<{
|
|
1811
2078
|
context_compaction: "context_compaction";
|
|
1812
2079
|
preserved_task_list: "preserved_task_list";
|
|
1813
2080
|
}>>;
|
|
1814
2081
|
_marker_body: z.ZodOptional<z.ZodString>;
|
|
2082
|
+
_notice_kind: z.ZodOptional<z.ZodEnum<{
|
|
2083
|
+
failed_turn: "failed_turn";
|
|
2084
|
+
session_finalize: "session_finalize";
|
|
2085
|
+
}>>;
|
|
2086
|
+
_delivery: z.ZodOptional<z.ZodObject<{
|
|
2087
|
+
kind: z.ZodEnum<{
|
|
2088
|
+
webhook: "webhook";
|
|
2089
|
+
cron: "cron";
|
|
2090
|
+
}>;
|
|
2091
|
+
name: z.ZodString;
|
|
2092
|
+
body: z.ZodString;
|
|
2093
|
+
}, z.core.$strip>>;
|
|
1815
2094
|
_background_reply: z.ZodOptional<z.ZodBoolean>;
|
|
1816
2095
|
_background_silent: z.ZodOptional<z.ZodBoolean>;
|
|
1817
2096
|
_display: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1848,6 +2127,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1848
2127
|
event_type: z.ZodOptional<z.ZodString>;
|
|
1849
2128
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1850
2129
|
unknown: "unknown";
|
|
2130
|
+
memory: "memory";
|
|
1851
2131
|
shell: "shell";
|
|
1852
2132
|
read: "read";
|
|
1853
2133
|
list: "list";
|
|
@@ -1855,7 +2135,6 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1855
2135
|
web: "web";
|
|
1856
2136
|
write: "write";
|
|
1857
2137
|
skill: "skill";
|
|
1858
|
-
memory: "memory";
|
|
1859
2138
|
delegate: "delegate";
|
|
1860
2139
|
}>>;
|
|
1861
2140
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1920,6 +2199,50 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1920
2199
|
send_now: z.ZodBoolean;
|
|
1921
2200
|
}, z.core.$strip>;
|
|
1922
2201
|
}, z.core.$strip>>>;
|
|
2202
|
+
run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2203
|
+
phase: z.ZodLiteral<"compressing">;
|
|
2204
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2205
|
+
phase: z.ZodLiteral<"rate_limit_wait">;
|
|
2206
|
+
wait: z.ZodObject<{
|
|
2207
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
2208
|
+
provider_label: z.ZodNullable<z.ZodString>;
|
|
2209
|
+
until: z.ZodNumber;
|
|
2210
|
+
until_kind: z.ZodEnum<{
|
|
2211
|
+
reset: "reset";
|
|
2212
|
+
retry: "retry";
|
|
2213
|
+
}>;
|
|
2214
|
+
}, z.core.$strip>;
|
|
2215
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2216
|
+
phase: z.ZodLiteral<"prompt_reading">;
|
|
2217
|
+
progress_percent: z.ZodNullable<z.ZodNumber>;
|
|
2218
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2219
|
+
phase: z.ZodLiteral<"working">;
|
|
2220
|
+
}, z.core.$strip>], "phase">>>;
|
|
2221
|
+
compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2222
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2223
|
+
key: z.ZodString;
|
|
2224
|
+
level: z.ZodEnum<{
|
|
2225
|
+
success: "success";
|
|
2226
|
+
error: "error";
|
|
2227
|
+
info: "info";
|
|
2228
|
+
warn: "warn";
|
|
2229
|
+
}>;
|
|
2230
|
+
text: z.ZodString;
|
|
2231
|
+
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
2232
|
+
}, z.core.$strip>>>;
|
|
2233
|
+
goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2234
|
+
text: z.ZodString;
|
|
2235
|
+
status: z.ZodEnum<{
|
|
2236
|
+
active: "active";
|
|
2237
|
+
parked: "parked";
|
|
2238
|
+
paused: "paused";
|
|
2239
|
+
}>;
|
|
2240
|
+
turns_used: z.ZodNumber;
|
|
2241
|
+
max_turns: z.ZodNumber;
|
|
2242
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2243
|
+
parked_until: z.ZodNullable<z.ZodNumber>;
|
|
2244
|
+
}, z.core.$strip>>>;
|
|
2245
|
+
automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
|
|
1923
2246
|
has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
1924
2247
|
pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1925
2248
|
pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1961,11 +2284,11 @@ export declare const SessionRowSchema: z.ZodObject<{
|
|
|
1961
2284
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
1962
2285
|
source_kind: z.ZodEnum<{
|
|
1963
2286
|
other: "other";
|
|
2287
|
+
webhook: "webhook";
|
|
2288
|
+
cron: "cron";
|
|
1964
2289
|
webui: "webui";
|
|
1965
2290
|
cli: "cli";
|
|
1966
2291
|
messaging: "messaging";
|
|
1967
|
-
cron: "cron";
|
|
1968
|
-
webhook: "webhook";
|
|
1969
2292
|
subagent: "subagent";
|
|
1970
2293
|
claude_code: "claude_code";
|
|
1971
2294
|
kanban: "kanban";
|
|
@@ -1975,6 +2298,57 @@ export declare const SessionRowSchema: z.ZodObject<{
|
|
|
1975
2298
|
sort_ts: z.ZodNumber;
|
|
1976
2299
|
cron_running: z.ZodOptional<z.ZodBoolean>;
|
|
1977
2300
|
read_only: z.ZodBoolean;
|
|
2301
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2302
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
2303
|
+
state: z.ZodEnum<{
|
|
2304
|
+
attached: "attached";
|
|
2305
|
+
stopped: "stopped";
|
|
2306
|
+
unavailable: "unavailable";
|
|
2307
|
+
incompatible: "incompatible";
|
|
2308
|
+
refused: "refused";
|
|
2309
|
+
}>;
|
|
2310
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2311
|
+
can_submit: z.ZodBoolean;
|
|
2312
|
+
can_interrupt: z.ZodBoolean;
|
|
2313
|
+
can_attach: z.ZodBoolean;
|
|
2314
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
2315
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2316
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2317
|
+
admission_id: z.ZodString;
|
|
2318
|
+
sequence: z.ZodNumber;
|
|
2319
|
+
status: z.ZodEnum<{
|
|
2320
|
+
unknown: "unknown";
|
|
2321
|
+
queued: "queued";
|
|
2322
|
+
started: "started";
|
|
2323
|
+
terminal: "terminal";
|
|
2324
|
+
}>;
|
|
2325
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2326
|
+
authority_epoch: z.ZodNumber;
|
|
2327
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2328
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2329
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2330
|
+
}, z.core.$strip>>>;
|
|
2331
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
2332
|
+
admission_id: z.ZodString;
|
|
2333
|
+
sequence: z.ZodNumber;
|
|
2334
|
+
status: z.ZodEnum<{
|
|
2335
|
+
unknown: "unknown";
|
|
2336
|
+
queued: "queued";
|
|
2337
|
+
started: "started";
|
|
2338
|
+
terminal: "terminal";
|
|
2339
|
+
}>;
|
|
2340
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2341
|
+
authority_epoch: z.ZodNumber;
|
|
2342
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2343
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2344
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2345
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
2346
|
+
cancel: "cancel";
|
|
2347
|
+
discard: "discard";
|
|
2348
|
+
retry: "retry";
|
|
2349
|
+
}>>;
|
|
2350
|
+
}, z.core.$strip>>;
|
|
2351
|
+
}, z.core.$strip>>;
|
|
1978
2352
|
can_branch: z.ZodBoolean;
|
|
1979
2353
|
can_pin: z.ZodBoolean;
|
|
1980
2354
|
can_archive: z.ZodBoolean;
|
|
@@ -2002,6 +2376,21 @@ export declare const SessionRowSchema: z.ZodObject<{
|
|
|
2002
2376
|
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2003
2377
|
}, z.core.$loose>;
|
|
2004
2378
|
export type SessionRow = z.infer<typeof SessionRowSchema>;
|
|
2379
|
+
/**
|
|
2380
|
+
* TAL-785: whether the Agent's `state.db` could serve the Agent session rows. `corrupt`: SQLite reports the file
|
|
2381
|
+
* damaged; `unavailable`: it could not be read for another reason (permissions, a lock, an I/O error); `outdated`: a
|
|
2382
|
+
* readable database from an older hermes-agent. `reason` explains a degraded state.
|
|
2383
|
+
*/
|
|
2384
|
+
export declare const AgentStorageSchema: z.ZodObject<{
|
|
2385
|
+
state: z.ZodEnum<{
|
|
2386
|
+
unavailable: "unavailable";
|
|
2387
|
+
ok: "ok";
|
|
2388
|
+
corrupt: "corrupt";
|
|
2389
|
+
outdated: "outdated";
|
|
2390
|
+
}>;
|
|
2391
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2392
|
+
}, z.core.$strip>;
|
|
2393
|
+
export type AgentStorage = z.infer<typeof AgentStorageSchema>;
|
|
2005
2394
|
export declare const SessionsListSchema: z.ZodObject<{
|
|
2006
2395
|
sessions: z.ZodArray<z.ZodObject<{
|
|
2007
2396
|
context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -2024,11 +2413,11 @@ export declare const SessionsListSchema: z.ZodObject<{
|
|
|
2024
2413
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
2025
2414
|
source_kind: z.ZodEnum<{
|
|
2026
2415
|
other: "other";
|
|
2416
|
+
webhook: "webhook";
|
|
2417
|
+
cron: "cron";
|
|
2027
2418
|
webui: "webui";
|
|
2028
2419
|
cli: "cli";
|
|
2029
2420
|
messaging: "messaging";
|
|
2030
|
-
cron: "cron";
|
|
2031
|
-
webhook: "webhook";
|
|
2032
2421
|
subagent: "subagent";
|
|
2033
2422
|
claude_code: "claude_code";
|
|
2034
2423
|
kanban: "kanban";
|
|
@@ -2038,6 +2427,57 @@ export declare const SessionsListSchema: z.ZodObject<{
|
|
|
2038
2427
|
sort_ts: z.ZodNumber;
|
|
2039
2428
|
cron_running: z.ZodOptional<z.ZodBoolean>;
|
|
2040
2429
|
read_only: z.ZodBoolean;
|
|
2430
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2431
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
2432
|
+
state: z.ZodEnum<{
|
|
2433
|
+
attached: "attached";
|
|
2434
|
+
stopped: "stopped";
|
|
2435
|
+
unavailable: "unavailable";
|
|
2436
|
+
incompatible: "incompatible";
|
|
2437
|
+
refused: "refused";
|
|
2438
|
+
}>;
|
|
2439
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2440
|
+
can_submit: z.ZodBoolean;
|
|
2441
|
+
can_interrupt: z.ZodBoolean;
|
|
2442
|
+
can_attach: z.ZodBoolean;
|
|
2443
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
2444
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2445
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2446
|
+
admission_id: z.ZodString;
|
|
2447
|
+
sequence: z.ZodNumber;
|
|
2448
|
+
status: z.ZodEnum<{
|
|
2449
|
+
unknown: "unknown";
|
|
2450
|
+
queued: "queued";
|
|
2451
|
+
started: "started";
|
|
2452
|
+
terminal: "terminal";
|
|
2453
|
+
}>;
|
|
2454
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2455
|
+
authority_epoch: z.ZodNumber;
|
|
2456
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2457
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2458
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2459
|
+
}, z.core.$strip>>>;
|
|
2460
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
2461
|
+
admission_id: z.ZodString;
|
|
2462
|
+
sequence: z.ZodNumber;
|
|
2463
|
+
status: z.ZodEnum<{
|
|
2464
|
+
unknown: "unknown";
|
|
2465
|
+
queued: "queued";
|
|
2466
|
+
started: "started";
|
|
2467
|
+
terminal: "terminal";
|
|
2468
|
+
}>;
|
|
2469
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2470
|
+
authority_epoch: z.ZodNumber;
|
|
2471
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2472
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2473
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2474
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
2475
|
+
cancel: "cancel";
|
|
2476
|
+
discard: "discard";
|
|
2477
|
+
retry: "retry";
|
|
2478
|
+
}>>;
|
|
2479
|
+
}, z.core.$strip>>;
|
|
2480
|
+
}, z.core.$strip>>;
|
|
2041
2481
|
can_branch: z.ZodBoolean;
|
|
2042
2482
|
can_pin: z.ZodBoolean;
|
|
2043
2483
|
can_archive: z.ZodBoolean;
|
|
@@ -2085,11 +2525,11 @@ export declare const SessionsListSchema: z.ZodObject<{
|
|
|
2085
2525
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
2086
2526
|
source_kind: z.ZodEnum<{
|
|
2087
2527
|
other: "other";
|
|
2528
|
+
webhook: "webhook";
|
|
2529
|
+
cron: "cron";
|
|
2088
2530
|
webui: "webui";
|
|
2089
2531
|
cli: "cli";
|
|
2090
2532
|
messaging: "messaging";
|
|
2091
|
-
cron: "cron";
|
|
2092
|
-
webhook: "webhook";
|
|
2093
2533
|
subagent: "subagent";
|
|
2094
2534
|
claude_code: "claude_code";
|
|
2095
2535
|
kanban: "kanban";
|
|
@@ -2099,9 +2539,60 @@ export declare const SessionsListSchema: z.ZodObject<{
|
|
|
2099
2539
|
sort_ts: z.ZodNumber;
|
|
2100
2540
|
cron_running: z.ZodOptional<z.ZodBoolean>;
|
|
2101
2541
|
read_only: z.ZodBoolean;
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2542
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2543
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
2544
|
+
state: z.ZodEnum<{
|
|
2545
|
+
attached: "attached";
|
|
2546
|
+
stopped: "stopped";
|
|
2547
|
+
unavailable: "unavailable";
|
|
2548
|
+
incompatible: "incompatible";
|
|
2549
|
+
refused: "refused";
|
|
2550
|
+
}>;
|
|
2551
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2552
|
+
can_submit: z.ZodBoolean;
|
|
2553
|
+
can_interrupt: z.ZodBoolean;
|
|
2554
|
+
can_attach: z.ZodBoolean;
|
|
2555
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
2556
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2557
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2558
|
+
admission_id: z.ZodString;
|
|
2559
|
+
sequence: z.ZodNumber;
|
|
2560
|
+
status: z.ZodEnum<{
|
|
2561
|
+
unknown: "unknown";
|
|
2562
|
+
queued: "queued";
|
|
2563
|
+
started: "started";
|
|
2564
|
+
terminal: "terminal";
|
|
2565
|
+
}>;
|
|
2566
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2567
|
+
authority_epoch: z.ZodNumber;
|
|
2568
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2569
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2570
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2571
|
+
}, z.core.$strip>>>;
|
|
2572
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
2573
|
+
admission_id: z.ZodString;
|
|
2574
|
+
sequence: z.ZodNumber;
|
|
2575
|
+
status: z.ZodEnum<{
|
|
2576
|
+
unknown: "unknown";
|
|
2577
|
+
queued: "queued";
|
|
2578
|
+
started: "started";
|
|
2579
|
+
terminal: "terminal";
|
|
2580
|
+
}>;
|
|
2581
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2582
|
+
authority_epoch: z.ZodNumber;
|
|
2583
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2584
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2585
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2586
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
2587
|
+
cancel: "cancel";
|
|
2588
|
+
discard: "discard";
|
|
2589
|
+
retry: "retry";
|
|
2590
|
+
}>>;
|
|
2591
|
+
}, z.core.$strip>>;
|
|
2592
|
+
}, z.core.$strip>>;
|
|
2593
|
+
can_branch: z.ZodBoolean;
|
|
2594
|
+
can_pin: z.ZodBoolean;
|
|
2595
|
+
can_archive: z.ZodBoolean;
|
|
2105
2596
|
can_delete: z.ZodBoolean;
|
|
2106
2597
|
can_duplicate: z.ZodBoolean;
|
|
2107
2598
|
attention: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -2141,6 +2632,15 @@ export declare const SessionsListSchema: z.ZodObject<{
|
|
|
2141
2632
|
scheduled_sessions_truncated: z.ZodBoolean;
|
|
2142
2633
|
webhook_session_count: z.ZodNumber;
|
|
2143
2634
|
webhook_sessions_truncated: z.ZodBoolean;
|
|
2635
|
+
agent_storage: z.ZodObject<{
|
|
2636
|
+
state: z.ZodEnum<{
|
|
2637
|
+
unavailable: "unavailable";
|
|
2638
|
+
ok: "ok";
|
|
2639
|
+
corrupt: "corrupt";
|
|
2640
|
+
outdated: "outdated";
|
|
2641
|
+
}>;
|
|
2642
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2643
|
+
}, z.core.$strip>;
|
|
2144
2644
|
archived_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2145
2645
|
archived_offset: z.ZodOptional<z.ZodNumber>;
|
|
2146
2646
|
}, z.core.$loose>;
|
|
@@ -2156,6 +2656,57 @@ export declare const SessionStatusSchema: z.ZodObject<{
|
|
|
2156
2656
|
agent_running: z.ZodBoolean;
|
|
2157
2657
|
is_streaming: z.ZodBoolean;
|
|
2158
2658
|
read_only: z.ZodBoolean;
|
|
2659
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2660
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
2661
|
+
state: z.ZodEnum<{
|
|
2662
|
+
attached: "attached";
|
|
2663
|
+
stopped: "stopped";
|
|
2664
|
+
unavailable: "unavailable";
|
|
2665
|
+
incompatible: "incompatible";
|
|
2666
|
+
refused: "refused";
|
|
2667
|
+
}>;
|
|
2668
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2669
|
+
can_submit: z.ZodBoolean;
|
|
2670
|
+
can_interrupt: z.ZodBoolean;
|
|
2671
|
+
can_attach: z.ZodBoolean;
|
|
2672
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
2673
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2674
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2675
|
+
admission_id: z.ZodString;
|
|
2676
|
+
sequence: z.ZodNumber;
|
|
2677
|
+
status: z.ZodEnum<{
|
|
2678
|
+
unknown: "unknown";
|
|
2679
|
+
queued: "queued";
|
|
2680
|
+
started: "started";
|
|
2681
|
+
terminal: "terminal";
|
|
2682
|
+
}>;
|
|
2683
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2684
|
+
authority_epoch: z.ZodNumber;
|
|
2685
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2686
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2687
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2688
|
+
}, z.core.$strip>>>;
|
|
2689
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
2690
|
+
admission_id: z.ZodString;
|
|
2691
|
+
sequence: z.ZodNumber;
|
|
2692
|
+
status: z.ZodEnum<{
|
|
2693
|
+
unknown: "unknown";
|
|
2694
|
+
queued: "queued";
|
|
2695
|
+
started: "started";
|
|
2696
|
+
terminal: "terminal";
|
|
2697
|
+
}>;
|
|
2698
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2699
|
+
authority_epoch: z.ZodNumber;
|
|
2700
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2701
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2702
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2703
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
2704
|
+
cancel: "cancel";
|
|
2705
|
+
discard: "discard";
|
|
2706
|
+
retry: "retry";
|
|
2707
|
+
}>>;
|
|
2708
|
+
}, z.core.$strip>>;
|
|
2709
|
+
}, z.core.$strip>>;
|
|
2159
2710
|
message_count: z.ZodOptional<z.ZodNumber>;
|
|
2160
2711
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2161
2712
|
profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2197,7 +2748,9 @@ export declare const SessionDeleteResultSchema: z.ZodObject<{
|
|
|
2197
2748
|
ok: z.ZodLiteral<true>;
|
|
2198
2749
|
state_db_cleanup_failed: z.ZodOptional<z.ZodBoolean>;
|
|
2199
2750
|
}, z.core.$loose>;
|
|
2751
|
+
/** `voice_turn` (TAL-801): the turn was spoken (an App voice note), so the Agent runs it on `auxiliary.voice_chat`. */
|
|
2200
2752
|
export declare const ChatStartRequestSchema: z.ZodObject<{
|
|
2753
|
+
submission_id: z.ZodOptional<z.ZodString>;
|
|
2201
2754
|
session_id: z.ZodString;
|
|
2202
2755
|
message: z.ZodOptional<z.ZodString>;
|
|
2203
2756
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2217,10 +2770,64 @@ export declare const ChatStartRequestSchema: z.ZodObject<{
|
|
|
2217
2770
|
moa_config: z.ZodOptional<z.ZodBoolean>;
|
|
2218
2771
|
regenerate: z.ZodOptional<z.ZodBoolean>;
|
|
2219
2772
|
regeneration_revision: z.ZodOptional<z.ZodString>;
|
|
2773
|
+
voice_turn: z.ZodOptional<z.ZodBoolean>;
|
|
2774
|
+
connect_card: z.ZodOptional<z.ZodBoolean>;
|
|
2775
|
+
skill_secret: z.ZodOptional<z.ZodBoolean>;
|
|
2220
2776
|
}, z.core.$loose>;
|
|
2221
2777
|
export type ChatStartRequest = z.infer<typeof ChatStartRequestSchema>;
|
|
2222
2778
|
/** Accepted turn. `stream_id` is the owner identity for the SSE connection. */
|
|
2223
2779
|
export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
2780
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
2781
|
+
state: z.ZodEnum<{
|
|
2782
|
+
attached: "attached";
|
|
2783
|
+
stopped: "stopped";
|
|
2784
|
+
unavailable: "unavailable";
|
|
2785
|
+
incompatible: "incompatible";
|
|
2786
|
+
refused: "refused";
|
|
2787
|
+
}>;
|
|
2788
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2789
|
+
can_submit: z.ZodBoolean;
|
|
2790
|
+
can_interrupt: z.ZodBoolean;
|
|
2791
|
+
can_attach: z.ZodBoolean;
|
|
2792
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
2793
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2794
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2795
|
+
admission_id: z.ZodString;
|
|
2796
|
+
sequence: z.ZodNumber;
|
|
2797
|
+
status: z.ZodEnum<{
|
|
2798
|
+
unknown: "unknown";
|
|
2799
|
+
queued: "queued";
|
|
2800
|
+
started: "started";
|
|
2801
|
+
terminal: "terminal";
|
|
2802
|
+
}>;
|
|
2803
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2804
|
+
authority_epoch: z.ZodNumber;
|
|
2805
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2806
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2807
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2808
|
+
}, z.core.$strip>>>;
|
|
2809
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
2810
|
+
admission_id: z.ZodString;
|
|
2811
|
+
sequence: z.ZodNumber;
|
|
2812
|
+
status: z.ZodEnum<{
|
|
2813
|
+
unknown: "unknown";
|
|
2814
|
+
queued: "queued";
|
|
2815
|
+
started: "started";
|
|
2816
|
+
terminal: "terminal";
|
|
2817
|
+
}>;
|
|
2818
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2819
|
+
authority_epoch: z.ZodNumber;
|
|
2820
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2821
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2822
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2823
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
2824
|
+
cancel: "cancel";
|
|
2825
|
+
discard: "discard";
|
|
2826
|
+
retry: "retry";
|
|
2827
|
+
}>>;
|
|
2828
|
+
}, z.core.$strip>>;
|
|
2829
|
+
}, z.core.$strip>>;
|
|
2830
|
+
admission_id: z.ZodOptional<z.ZodString>;
|
|
2224
2831
|
stream_id: z.ZodOptional<z.ZodString>;
|
|
2225
2832
|
session_id: z.ZodOptional<z.ZodString>;
|
|
2226
2833
|
turn_id: z.ZodOptional<z.ZodString>;
|
|
@@ -2242,11 +2849,11 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2242
2849
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
2243
2850
|
source_kind: z.ZodEnum<{
|
|
2244
2851
|
other: "other";
|
|
2852
|
+
webhook: "webhook";
|
|
2853
|
+
cron: "cron";
|
|
2245
2854
|
webui: "webui";
|
|
2246
2855
|
cli: "cli";
|
|
2247
2856
|
messaging: "messaging";
|
|
2248
|
-
cron: "cron";
|
|
2249
|
-
webhook: "webhook";
|
|
2250
2857
|
subagent: "subagent";
|
|
2251
2858
|
claude_code: "claude_code";
|
|
2252
2859
|
kanban: "kanban";
|
|
@@ -2255,6 +2862,57 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2255
2862
|
is_messaging_session: z.ZodBoolean;
|
|
2256
2863
|
sort_ts: z.ZodNumber;
|
|
2257
2864
|
read_only: z.ZodBoolean;
|
|
2865
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2866
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
2867
|
+
state: z.ZodEnum<{
|
|
2868
|
+
attached: "attached";
|
|
2869
|
+
stopped: "stopped";
|
|
2870
|
+
unavailable: "unavailable";
|
|
2871
|
+
incompatible: "incompatible";
|
|
2872
|
+
refused: "refused";
|
|
2873
|
+
}>;
|
|
2874
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2875
|
+
can_submit: z.ZodBoolean;
|
|
2876
|
+
can_interrupt: z.ZodBoolean;
|
|
2877
|
+
can_attach: z.ZodBoolean;
|
|
2878
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
2879
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2880
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2881
|
+
admission_id: z.ZodString;
|
|
2882
|
+
sequence: z.ZodNumber;
|
|
2883
|
+
status: z.ZodEnum<{
|
|
2884
|
+
unknown: "unknown";
|
|
2885
|
+
queued: "queued";
|
|
2886
|
+
started: "started";
|
|
2887
|
+
terminal: "terminal";
|
|
2888
|
+
}>;
|
|
2889
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2890
|
+
authority_epoch: z.ZodNumber;
|
|
2891
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2892
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2893
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2894
|
+
}, z.core.$strip>>>;
|
|
2895
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
2896
|
+
admission_id: z.ZodString;
|
|
2897
|
+
sequence: z.ZodNumber;
|
|
2898
|
+
status: z.ZodEnum<{
|
|
2899
|
+
unknown: "unknown";
|
|
2900
|
+
queued: "queued";
|
|
2901
|
+
started: "started";
|
|
2902
|
+
terminal: "terminal";
|
|
2903
|
+
}>;
|
|
2904
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2905
|
+
authority_epoch: z.ZodNumber;
|
|
2906
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2907
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2908
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2909
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
2910
|
+
cancel: "cancel";
|
|
2911
|
+
discard: "discard";
|
|
2912
|
+
retry: "retry";
|
|
2913
|
+
}>>;
|
|
2914
|
+
}, z.core.$strip>>;
|
|
2915
|
+
}, z.core.$strip>>;
|
|
2258
2916
|
can_branch: z.ZodBoolean;
|
|
2259
2917
|
can_pin: z.ZodBoolean;
|
|
2260
2918
|
can_archive: z.ZodBoolean;
|
|
@@ -2262,6 +2920,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2262
2920
|
can_duplicate: z.ZodBoolean;
|
|
2263
2921
|
source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2264
2922
|
can_compress: z.ZodOptional<z.ZodBoolean>;
|
|
2923
|
+
confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
|
|
2265
2924
|
source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2266
2925
|
session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2267
2926
|
raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2301,6 +2960,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2301
2960
|
context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2302
2961
|
context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2303
2962
|
context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2963
|
+
composer_state_key: z.ZodOptional<z.ZodString>;
|
|
2304
2964
|
session_id: z.ZodString;
|
|
2305
2965
|
title: z.ZodString;
|
|
2306
2966
|
workspace: z.ZodOptional<z.ZodString>;
|
|
@@ -2354,6 +3014,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2354
3014
|
event_type: z.ZodOptional<z.ZodString>;
|
|
2355
3015
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
2356
3016
|
unknown: "unknown";
|
|
3017
|
+
memory: "memory";
|
|
2357
3018
|
shell: "shell";
|
|
2358
3019
|
read: "read";
|
|
2359
3020
|
list: "list";
|
|
@@ -2361,7 +3022,6 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2361
3022
|
web: "web";
|
|
2362
3023
|
write: "write";
|
|
2363
3024
|
skill: "skill";
|
|
2364
|
-
memory: "memory";
|
|
2365
3025
|
delegate: "delegate";
|
|
2366
3026
|
}>>;
|
|
2367
3027
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -2405,8 +3065,8 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2405
3065
|
row_id: z.ZodString;
|
|
2406
3066
|
order_index: z.ZodNumber;
|
|
2407
3067
|
role: z.ZodEnum<{
|
|
2408
|
-
reasoning: "reasoning";
|
|
2409
3068
|
tool: "tool";
|
|
3069
|
+
reasoning: "reasoning";
|
|
2410
3070
|
prose: "prose";
|
|
2411
3071
|
steering: "steering";
|
|
2412
3072
|
}>;
|
|
@@ -2445,10 +3105,10 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2445
3105
|
task_ids: z.ZodArray<z.ZodString>;
|
|
2446
3106
|
status: z.ZodEnum<{
|
|
2447
3107
|
unknown: "unknown";
|
|
3108
|
+
running: "running";
|
|
2448
3109
|
cancelled: "cancelled";
|
|
2449
|
-
completed: "completed";
|
|
2450
3110
|
failed: "failed";
|
|
2451
|
-
|
|
3111
|
+
completed: "completed";
|
|
2452
3112
|
attention: "attention";
|
|
2453
3113
|
}>;
|
|
2454
3114
|
agents: z.ZodObject<{
|
|
@@ -2462,6 +3122,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2462
3122
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2463
3123
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
2464
3124
|
unknown: "unknown";
|
|
3125
|
+
memory: "memory";
|
|
2465
3126
|
shell: "shell";
|
|
2466
3127
|
read: "read";
|
|
2467
3128
|
list: "list";
|
|
@@ -2469,7 +3130,6 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2469
3130
|
web: "web";
|
|
2470
3131
|
write: "write";
|
|
2471
3132
|
skill: "skill";
|
|
2472
|
-
memory: "memory";
|
|
2473
3133
|
delegate: "delegate";
|
|
2474
3134
|
}>>;
|
|
2475
3135
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -2589,19 +3249,45 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2589
3249
|
other: "other";
|
|
2590
3250
|
}>;
|
|
2591
3251
|
status: z.ZodEnum<{
|
|
2592
|
-
completed: "completed";
|
|
2593
3252
|
failed: "failed";
|
|
3253
|
+
completed: "completed";
|
|
2594
3254
|
notice: "notice";
|
|
2595
3255
|
}>;
|
|
2596
3256
|
label: z.ZodString;
|
|
2597
3257
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3258
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
3259
|
+
unknown: "unknown";
|
|
3260
|
+
failed: "failed";
|
|
3261
|
+
waiting: "waiting";
|
|
3262
|
+
reviewing: "reviewing";
|
|
3263
|
+
reviewed: "reviewed";
|
|
3264
|
+
}>>;
|
|
2598
3265
|
}, z.core.$strip>>;
|
|
3266
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
3267
|
+
unknown: "unknown";
|
|
3268
|
+
failed: "failed";
|
|
3269
|
+
waiting: "waiting";
|
|
3270
|
+
reviewing: "reviewing";
|
|
3271
|
+
reviewed: "reviewed";
|
|
3272
|
+
}>>;
|
|
2599
3273
|
}, z.core.$strip>>;
|
|
2600
3274
|
_marker_kind: z.ZodOptional<z.ZodEnum<{
|
|
2601
3275
|
context_compaction: "context_compaction";
|
|
2602
3276
|
preserved_task_list: "preserved_task_list";
|
|
2603
3277
|
}>>;
|
|
2604
3278
|
_marker_body: z.ZodOptional<z.ZodString>;
|
|
3279
|
+
_notice_kind: z.ZodOptional<z.ZodEnum<{
|
|
3280
|
+
failed_turn: "failed_turn";
|
|
3281
|
+
session_finalize: "session_finalize";
|
|
3282
|
+
}>>;
|
|
3283
|
+
_delivery: z.ZodOptional<z.ZodObject<{
|
|
3284
|
+
kind: z.ZodEnum<{
|
|
3285
|
+
webhook: "webhook";
|
|
3286
|
+
cron: "cron";
|
|
3287
|
+
}>;
|
|
3288
|
+
name: z.ZodString;
|
|
3289
|
+
body: z.ZodString;
|
|
3290
|
+
}, z.core.$strip>>;
|
|
2605
3291
|
_background_reply: z.ZodOptional<z.ZodBoolean>;
|
|
2606
3292
|
_background_silent: z.ZodOptional<z.ZodBoolean>;
|
|
2607
3293
|
_display: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2638,6 +3324,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2638
3324
|
event_type: z.ZodOptional<z.ZodString>;
|
|
2639
3325
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
2640
3326
|
unknown: "unknown";
|
|
3327
|
+
memory: "memory";
|
|
2641
3328
|
shell: "shell";
|
|
2642
3329
|
read: "read";
|
|
2643
3330
|
list: "list";
|
|
@@ -2645,7 +3332,6 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2645
3332
|
web: "web";
|
|
2646
3333
|
write: "write";
|
|
2647
3334
|
skill: "skill";
|
|
2648
|
-
memory: "memory";
|
|
2649
3335
|
delegate: "delegate";
|
|
2650
3336
|
}>>;
|
|
2651
3337
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -2710,6 +3396,50 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2710
3396
|
send_now: z.ZodBoolean;
|
|
2711
3397
|
}, z.core.$strip>;
|
|
2712
3398
|
}, z.core.$strip>>>;
|
|
3399
|
+
run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3400
|
+
phase: z.ZodLiteral<"compressing">;
|
|
3401
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3402
|
+
phase: z.ZodLiteral<"rate_limit_wait">;
|
|
3403
|
+
wait: z.ZodObject<{
|
|
3404
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
3405
|
+
provider_label: z.ZodNullable<z.ZodString>;
|
|
3406
|
+
until: z.ZodNumber;
|
|
3407
|
+
until_kind: z.ZodEnum<{
|
|
3408
|
+
reset: "reset";
|
|
3409
|
+
retry: "retry";
|
|
3410
|
+
}>;
|
|
3411
|
+
}, z.core.$strip>;
|
|
3412
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3413
|
+
phase: z.ZodLiteral<"prompt_reading">;
|
|
3414
|
+
progress_percent: z.ZodNullable<z.ZodNumber>;
|
|
3415
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3416
|
+
phase: z.ZodLiteral<"working">;
|
|
3417
|
+
}, z.core.$strip>], "phase">>>;
|
|
3418
|
+
compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3419
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3420
|
+
key: z.ZodString;
|
|
3421
|
+
level: z.ZodEnum<{
|
|
3422
|
+
success: "success";
|
|
3423
|
+
error: "error";
|
|
3424
|
+
info: "info";
|
|
3425
|
+
warn: "warn";
|
|
3426
|
+
}>;
|
|
3427
|
+
text: z.ZodString;
|
|
3428
|
+
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
3429
|
+
}, z.core.$strip>>>;
|
|
3430
|
+
goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3431
|
+
text: z.ZodString;
|
|
3432
|
+
status: z.ZodEnum<{
|
|
3433
|
+
active: "active";
|
|
3434
|
+
parked: "parked";
|
|
3435
|
+
paused: "paused";
|
|
3436
|
+
}>;
|
|
3437
|
+
turns_used: z.ZodNumber;
|
|
3438
|
+
max_turns: z.ZodNumber;
|
|
3439
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3440
|
+
parked_until: z.ZodNullable<z.ZodNumber>;
|
|
3441
|
+
}, z.core.$strip>>>;
|
|
3442
|
+
automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
|
|
2713
3443
|
has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
2714
3444
|
pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2715
3445
|
pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2751,9 +3481,9 @@ export type StreamStatus = z.infer<typeof StreamStatusSchema>;
|
|
|
2751
3481
|
export declare const SteerWithdrawnSchema: z.ZodObject<{
|
|
2752
3482
|
steer_id: z.ZodNullable<z.ZodString>;
|
|
2753
3483
|
reason: z.ZodEnum<{
|
|
2754
|
-
edit: "edit";
|
|
2755
|
-
cancel: "cancel";
|
|
2756
3484
|
stopped: "stopped";
|
|
3485
|
+
cancel: "cancel";
|
|
3486
|
+
edit: "edit";
|
|
2757
3487
|
followup: "followup";
|
|
2758
3488
|
}>;
|
|
2759
3489
|
text: z.ZodString;
|
|
@@ -2770,9 +3500,9 @@ export declare const CancelResponseSchema: z.ZodObject<{
|
|
|
2770
3500
|
withdrawn_steers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2771
3501
|
steer_id: z.ZodNullable<z.ZodString>;
|
|
2772
3502
|
reason: z.ZodEnum<{
|
|
2773
|
-
edit: "edit";
|
|
2774
|
-
cancel: "cancel";
|
|
2775
3503
|
stopped: "stopped";
|
|
3504
|
+
cancel: "cancel";
|
|
3505
|
+
edit: "edit";
|
|
2776
3506
|
followup: "followup";
|
|
2777
3507
|
}>;
|
|
2778
3508
|
text: z.ZodString;
|
|
@@ -2783,8 +3513,8 @@ export declare const SteerWithdrawRequestSchema: z.ZodObject<{
|
|
|
2783
3513
|
session_id: z.ZodString;
|
|
2784
3514
|
steer_id: z.ZodString;
|
|
2785
3515
|
reason: z.ZodEnum<{
|
|
2786
|
-
edit: "edit";
|
|
2787
3516
|
cancel: "cancel";
|
|
3517
|
+
edit: "edit";
|
|
2788
3518
|
}>;
|
|
2789
3519
|
}, z.core.$strip>;
|
|
2790
3520
|
export type SteerWithdrawRequest = z.infer<typeof SteerWithdrawRequestSchema>;
|
|
@@ -2797,10 +3527,18 @@ export declare const SteerSendNowRequestSchema: z.ZodObject<{
|
|
|
2797
3527
|
session_id: z.ZodString;
|
|
2798
3528
|
steer_id: z.ZodString;
|
|
2799
3529
|
}, z.core.$strip>;
|
|
2800
|
-
/**
|
|
3530
|
+
/** The server decides why Send now did or did not deliver. `redirected` remains for older clients. */
|
|
2801
3531
|
export declare const SteerSendNowResponseSchema: z.ZodObject<{
|
|
2802
3532
|
redirected: z.ZodBoolean;
|
|
3533
|
+
outcome: z.ZodEnum<{
|
|
3534
|
+
failed: "failed";
|
|
3535
|
+
not_running: "not_running";
|
|
3536
|
+
delivered: "delivered";
|
|
3537
|
+
next_step: "next_step";
|
|
3538
|
+
taken: "taken";
|
|
3539
|
+
}>;
|
|
2803
3540
|
}, z.core.$strip>;
|
|
3541
|
+
export type SteerSendNowResponse = z.infer<typeof SteerSendNowResponseSchema>;
|
|
2804
3542
|
/** `text` is delivered to the running agent; `display_text` is what the transcript shows. */
|
|
2805
3543
|
export declare const SteerRequestSchema: z.ZodObject<{
|
|
2806
3544
|
session_id: z.ZodString;
|
|
@@ -2816,6 +3554,57 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2816
3554
|
stream_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2817
3555
|
steer_id: z.ZodOptional<z.ZodString>;
|
|
2818
3556
|
started_turn: z.ZodOptional<z.ZodObject<{
|
|
3557
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
3558
|
+
state: z.ZodEnum<{
|
|
3559
|
+
attached: "attached";
|
|
3560
|
+
stopped: "stopped";
|
|
3561
|
+
unavailable: "unavailable";
|
|
3562
|
+
incompatible: "incompatible";
|
|
3563
|
+
refused: "refused";
|
|
3564
|
+
}>;
|
|
3565
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3566
|
+
can_submit: z.ZodBoolean;
|
|
3567
|
+
can_interrupt: z.ZodBoolean;
|
|
3568
|
+
can_attach: z.ZodBoolean;
|
|
3569
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
3570
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3571
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3572
|
+
admission_id: z.ZodString;
|
|
3573
|
+
sequence: z.ZodNumber;
|
|
3574
|
+
status: z.ZodEnum<{
|
|
3575
|
+
unknown: "unknown";
|
|
3576
|
+
queued: "queued";
|
|
3577
|
+
started: "started";
|
|
3578
|
+
terminal: "terminal";
|
|
3579
|
+
}>;
|
|
3580
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
3581
|
+
authority_epoch: z.ZodNumber;
|
|
3582
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3583
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3584
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
3585
|
+
}, z.core.$strip>>>;
|
|
3586
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
3587
|
+
admission_id: z.ZodString;
|
|
3588
|
+
sequence: z.ZodNumber;
|
|
3589
|
+
status: z.ZodEnum<{
|
|
3590
|
+
unknown: "unknown";
|
|
3591
|
+
queued: "queued";
|
|
3592
|
+
started: "started";
|
|
3593
|
+
terminal: "terminal";
|
|
3594
|
+
}>;
|
|
3595
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
3596
|
+
authority_epoch: z.ZodNumber;
|
|
3597
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3598
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3599
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
3600
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
3601
|
+
cancel: "cancel";
|
|
3602
|
+
discard: "discard";
|
|
3603
|
+
retry: "retry";
|
|
3604
|
+
}>>;
|
|
3605
|
+
}, z.core.$strip>>;
|
|
3606
|
+
}, z.core.$strip>>;
|
|
3607
|
+
admission_id: z.ZodOptional<z.ZodString>;
|
|
2819
3608
|
stream_id: z.ZodOptional<z.ZodString>;
|
|
2820
3609
|
session_id: z.ZodOptional<z.ZodString>;
|
|
2821
3610
|
turn_id: z.ZodOptional<z.ZodString>;
|
|
@@ -2837,11 +3626,11 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2837
3626
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
2838
3627
|
source_kind: z.ZodEnum<{
|
|
2839
3628
|
other: "other";
|
|
3629
|
+
webhook: "webhook";
|
|
3630
|
+
cron: "cron";
|
|
2840
3631
|
webui: "webui";
|
|
2841
3632
|
cli: "cli";
|
|
2842
3633
|
messaging: "messaging";
|
|
2843
|
-
cron: "cron";
|
|
2844
|
-
webhook: "webhook";
|
|
2845
3634
|
subagent: "subagent";
|
|
2846
3635
|
claude_code: "claude_code";
|
|
2847
3636
|
kanban: "kanban";
|
|
@@ -2850,6 +3639,57 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2850
3639
|
is_messaging_session: z.ZodBoolean;
|
|
2851
3640
|
sort_ts: z.ZodNumber;
|
|
2852
3641
|
read_only: z.ZodBoolean;
|
|
3642
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3643
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
3644
|
+
state: z.ZodEnum<{
|
|
3645
|
+
attached: "attached";
|
|
3646
|
+
stopped: "stopped";
|
|
3647
|
+
unavailable: "unavailable";
|
|
3648
|
+
incompatible: "incompatible";
|
|
3649
|
+
refused: "refused";
|
|
3650
|
+
}>;
|
|
3651
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3652
|
+
can_submit: z.ZodBoolean;
|
|
3653
|
+
can_interrupt: z.ZodBoolean;
|
|
3654
|
+
can_attach: z.ZodBoolean;
|
|
3655
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
3656
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3657
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3658
|
+
admission_id: z.ZodString;
|
|
3659
|
+
sequence: z.ZodNumber;
|
|
3660
|
+
status: z.ZodEnum<{
|
|
3661
|
+
unknown: "unknown";
|
|
3662
|
+
queued: "queued";
|
|
3663
|
+
started: "started";
|
|
3664
|
+
terminal: "terminal";
|
|
3665
|
+
}>;
|
|
3666
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
3667
|
+
authority_epoch: z.ZodNumber;
|
|
3668
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3669
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3670
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
3671
|
+
}, z.core.$strip>>>;
|
|
3672
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
3673
|
+
admission_id: z.ZodString;
|
|
3674
|
+
sequence: z.ZodNumber;
|
|
3675
|
+
status: z.ZodEnum<{
|
|
3676
|
+
unknown: "unknown";
|
|
3677
|
+
queued: "queued";
|
|
3678
|
+
started: "started";
|
|
3679
|
+
terminal: "terminal";
|
|
3680
|
+
}>;
|
|
3681
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
3682
|
+
authority_epoch: z.ZodNumber;
|
|
3683
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3684
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3685
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
3686
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
3687
|
+
cancel: "cancel";
|
|
3688
|
+
discard: "discard";
|
|
3689
|
+
retry: "retry";
|
|
3690
|
+
}>>;
|
|
3691
|
+
}, z.core.$strip>>;
|
|
3692
|
+
}, z.core.$strip>>;
|
|
2853
3693
|
can_branch: z.ZodBoolean;
|
|
2854
3694
|
can_pin: z.ZodBoolean;
|
|
2855
3695
|
can_archive: z.ZodBoolean;
|
|
@@ -2857,6 +3697,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2857
3697
|
can_duplicate: z.ZodBoolean;
|
|
2858
3698
|
source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2859
3699
|
can_compress: z.ZodOptional<z.ZodBoolean>;
|
|
3700
|
+
confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
|
|
2860
3701
|
source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2861
3702
|
session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2862
3703
|
raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2896,6 +3737,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2896
3737
|
context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2897
3738
|
context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2898
3739
|
context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3740
|
+
composer_state_key: z.ZodOptional<z.ZodString>;
|
|
2899
3741
|
session_id: z.ZodString;
|
|
2900
3742
|
title: z.ZodString;
|
|
2901
3743
|
workspace: z.ZodOptional<z.ZodString>;
|
|
@@ -2949,6 +3791,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2949
3791
|
event_type: z.ZodOptional<z.ZodString>;
|
|
2950
3792
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
2951
3793
|
unknown: "unknown";
|
|
3794
|
+
memory: "memory";
|
|
2952
3795
|
shell: "shell";
|
|
2953
3796
|
read: "read";
|
|
2954
3797
|
list: "list";
|
|
@@ -2956,7 +3799,6 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2956
3799
|
web: "web";
|
|
2957
3800
|
write: "write";
|
|
2958
3801
|
skill: "skill";
|
|
2959
|
-
memory: "memory";
|
|
2960
3802
|
delegate: "delegate";
|
|
2961
3803
|
}>>;
|
|
2962
3804
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -3000,8 +3842,8 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3000
3842
|
row_id: z.ZodString;
|
|
3001
3843
|
order_index: z.ZodNumber;
|
|
3002
3844
|
role: z.ZodEnum<{
|
|
3003
|
-
reasoning: "reasoning";
|
|
3004
3845
|
tool: "tool";
|
|
3846
|
+
reasoning: "reasoning";
|
|
3005
3847
|
prose: "prose";
|
|
3006
3848
|
steering: "steering";
|
|
3007
3849
|
}>;
|
|
@@ -3040,10 +3882,10 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3040
3882
|
task_ids: z.ZodArray<z.ZodString>;
|
|
3041
3883
|
status: z.ZodEnum<{
|
|
3042
3884
|
unknown: "unknown";
|
|
3885
|
+
running: "running";
|
|
3043
3886
|
cancelled: "cancelled";
|
|
3044
|
-
completed: "completed";
|
|
3045
3887
|
failed: "failed";
|
|
3046
|
-
|
|
3888
|
+
completed: "completed";
|
|
3047
3889
|
attention: "attention";
|
|
3048
3890
|
}>;
|
|
3049
3891
|
agents: z.ZodObject<{
|
|
@@ -3057,6 +3899,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3057
3899
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3058
3900
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
3059
3901
|
unknown: "unknown";
|
|
3902
|
+
memory: "memory";
|
|
3060
3903
|
shell: "shell";
|
|
3061
3904
|
read: "read";
|
|
3062
3905
|
list: "list";
|
|
@@ -3064,7 +3907,6 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3064
3907
|
web: "web";
|
|
3065
3908
|
write: "write";
|
|
3066
3909
|
skill: "skill";
|
|
3067
|
-
memory: "memory";
|
|
3068
3910
|
delegate: "delegate";
|
|
3069
3911
|
}>>;
|
|
3070
3912
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -3184,19 +4026,45 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3184
4026
|
other: "other";
|
|
3185
4027
|
}>;
|
|
3186
4028
|
status: z.ZodEnum<{
|
|
3187
|
-
completed: "completed";
|
|
3188
4029
|
failed: "failed";
|
|
4030
|
+
completed: "completed";
|
|
3189
4031
|
notice: "notice";
|
|
3190
4032
|
}>;
|
|
3191
4033
|
label: z.ZodString;
|
|
3192
4034
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4035
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
4036
|
+
unknown: "unknown";
|
|
4037
|
+
failed: "failed";
|
|
4038
|
+
waiting: "waiting";
|
|
4039
|
+
reviewing: "reviewing";
|
|
4040
|
+
reviewed: "reviewed";
|
|
4041
|
+
}>>;
|
|
3193
4042
|
}, z.core.$strip>>;
|
|
4043
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
4044
|
+
unknown: "unknown";
|
|
4045
|
+
failed: "failed";
|
|
4046
|
+
waiting: "waiting";
|
|
4047
|
+
reviewing: "reviewing";
|
|
4048
|
+
reviewed: "reviewed";
|
|
4049
|
+
}>>;
|
|
3194
4050
|
}, z.core.$strip>>;
|
|
3195
4051
|
_marker_kind: z.ZodOptional<z.ZodEnum<{
|
|
3196
4052
|
context_compaction: "context_compaction";
|
|
3197
4053
|
preserved_task_list: "preserved_task_list";
|
|
3198
4054
|
}>>;
|
|
3199
4055
|
_marker_body: z.ZodOptional<z.ZodString>;
|
|
4056
|
+
_notice_kind: z.ZodOptional<z.ZodEnum<{
|
|
4057
|
+
failed_turn: "failed_turn";
|
|
4058
|
+
session_finalize: "session_finalize";
|
|
4059
|
+
}>>;
|
|
4060
|
+
_delivery: z.ZodOptional<z.ZodObject<{
|
|
4061
|
+
kind: z.ZodEnum<{
|
|
4062
|
+
webhook: "webhook";
|
|
4063
|
+
cron: "cron";
|
|
4064
|
+
}>;
|
|
4065
|
+
name: z.ZodString;
|
|
4066
|
+
body: z.ZodString;
|
|
4067
|
+
}, z.core.$strip>>;
|
|
3200
4068
|
_background_reply: z.ZodOptional<z.ZodBoolean>;
|
|
3201
4069
|
_background_silent: z.ZodOptional<z.ZodBoolean>;
|
|
3202
4070
|
_display: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3233,6 +4101,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3233
4101
|
event_type: z.ZodOptional<z.ZodString>;
|
|
3234
4102
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
3235
4103
|
unknown: "unknown";
|
|
4104
|
+
memory: "memory";
|
|
3236
4105
|
shell: "shell";
|
|
3237
4106
|
read: "read";
|
|
3238
4107
|
list: "list";
|
|
@@ -3240,7 +4109,6 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3240
4109
|
web: "web";
|
|
3241
4110
|
write: "write";
|
|
3242
4111
|
skill: "skill";
|
|
3243
|
-
memory: "memory";
|
|
3244
4112
|
delegate: "delegate";
|
|
3245
4113
|
}>>;
|
|
3246
4114
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -3305,6 +4173,50 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3305
4173
|
send_now: z.ZodBoolean;
|
|
3306
4174
|
}, z.core.$strip>;
|
|
3307
4175
|
}, z.core.$strip>>>;
|
|
4176
|
+
run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4177
|
+
phase: z.ZodLiteral<"compressing">;
|
|
4178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4179
|
+
phase: z.ZodLiteral<"rate_limit_wait">;
|
|
4180
|
+
wait: z.ZodObject<{
|
|
4181
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
4182
|
+
provider_label: z.ZodNullable<z.ZodString>;
|
|
4183
|
+
until: z.ZodNumber;
|
|
4184
|
+
until_kind: z.ZodEnum<{
|
|
4185
|
+
reset: "reset";
|
|
4186
|
+
retry: "retry";
|
|
4187
|
+
}>;
|
|
4188
|
+
}, z.core.$strip>;
|
|
4189
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4190
|
+
phase: z.ZodLiteral<"prompt_reading">;
|
|
4191
|
+
progress_percent: z.ZodNullable<z.ZodNumber>;
|
|
4192
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4193
|
+
phase: z.ZodLiteral<"working">;
|
|
4194
|
+
}, z.core.$strip>], "phase">>>;
|
|
4195
|
+
compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4196
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4197
|
+
key: z.ZodString;
|
|
4198
|
+
level: z.ZodEnum<{
|
|
4199
|
+
success: "success";
|
|
4200
|
+
error: "error";
|
|
4201
|
+
info: "info";
|
|
4202
|
+
warn: "warn";
|
|
4203
|
+
}>;
|
|
4204
|
+
text: z.ZodString;
|
|
4205
|
+
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
4206
|
+
}, z.core.$strip>>>;
|
|
4207
|
+
goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4208
|
+
text: z.ZodString;
|
|
4209
|
+
status: z.ZodEnum<{
|
|
4210
|
+
active: "active";
|
|
4211
|
+
parked: "parked";
|
|
4212
|
+
paused: "paused";
|
|
4213
|
+
}>;
|
|
4214
|
+
turns_used: z.ZodNumber;
|
|
4215
|
+
max_turns: z.ZodNumber;
|
|
4216
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
4217
|
+
parked_until: z.ZodNullable<z.ZodNumber>;
|
|
4218
|
+
}, z.core.$strip>>>;
|
|
4219
|
+
automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
|
|
3308
4220
|
has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
3309
4221
|
pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3310
4222
|
pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3326,6 +4238,13 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3326
4238
|
}, z.core.$loose>>;
|
|
3327
4239
|
}, z.core.$loose>;
|
|
3328
4240
|
export declare const ApprovalPendingSchema: z.ZodObject<{
|
|
4241
|
+
allowed_choices: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4242
|
+
once: "once";
|
|
4243
|
+
session: "session";
|
|
4244
|
+
always: "always";
|
|
4245
|
+
deny: "deny";
|
|
4246
|
+
}>>>;
|
|
4247
|
+
can_enable_yolo: z.ZodOptional<z.ZodBoolean>;
|
|
3329
4248
|
approval_id: z.ZodOptional<z.ZodString>;
|
|
3330
4249
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3331
4250
|
command: z.ZodOptional<z.ZodString>;
|
|
@@ -3344,6 +4263,13 @@ export declare const ApprovalPendingSchema: z.ZodObject<{
|
|
|
3344
4263
|
export type ApprovalPending = z.infer<typeof ApprovalPendingSchema>;
|
|
3345
4264
|
export declare const ApprovalPendingEnvelopeSchema: z.ZodObject<{
|
|
3346
4265
|
pending: z.ZodNullable<z.ZodObject<{
|
|
4266
|
+
allowed_choices: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4267
|
+
once: "once";
|
|
4268
|
+
session: "session";
|
|
4269
|
+
always: "always";
|
|
4270
|
+
deny: "deny";
|
|
4271
|
+
}>>>;
|
|
4272
|
+
can_enable_yolo: z.ZodOptional<z.ZodBoolean>;
|
|
3347
4273
|
approval_id: z.ZodOptional<z.ZodString>;
|
|
3348
4274
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3349
4275
|
command: z.ZodOptional<z.ZodString>;
|
|
@@ -3405,6 +4331,55 @@ export type ClarifyStep = z.infer<typeof ClarifyStepSchema>;
|
|
|
3405
4331
|
/** Keyed step answers; a multi-select step takes a list. The server shapes them into the Agent's reply. */
|
|
3406
4332
|
export declare const ClarifyAnswersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
3407
4333
|
export type ClarifyAnswers = z.infer<typeof ClarifyAnswersSchema>;
|
|
4334
|
+
/** TAL-887: one input of a password-manager prompt, answered under its `key`; a `secure` input is masked. */
|
|
4335
|
+
export declare const VaultPromptFieldSchema: z.ZodObject<{
|
|
4336
|
+
key: z.ZodEnum<{
|
|
4337
|
+
code: "code";
|
|
4338
|
+
secret: "secret";
|
|
4339
|
+
master_password: "master_password";
|
|
4340
|
+
identifier: "identifier";
|
|
4341
|
+
password: "password";
|
|
4342
|
+
}>;
|
|
4343
|
+
secure: z.ZodBoolean;
|
|
4344
|
+
}, z.core.$strip>;
|
|
4345
|
+
export type VaultPromptField = z.infer<typeof VaultPromptFieldSchema>;
|
|
4346
|
+
/**
|
|
4347
|
+
* TAL-887: the Agent asks for a password manager's master password (`vault_unlock`), a login to save for the page it is
|
|
4348
|
+
* on (`vault_save_login`), a one-time code (`vault_code`), or a skill environment secret (`skill_secret`). Clients answer through
|
|
4349
|
+
* `/api/clarify/respond` with keyed `answers`, or `decline`; an empty answer, a decline, a cancel and `timeout_at` all
|
|
4350
|
+
* resolve it unanswered. Answers never enter chat, logs, streams, or responses. Skill secrets are saved only to the invoking profile.
|
|
4351
|
+
*/
|
|
4352
|
+
export declare const VaultPromptSchema: z.ZodObject<{
|
|
4353
|
+
kind: z.ZodEnum<{
|
|
4354
|
+
skill_secret: "skill_secret";
|
|
4355
|
+
vault_unlock: "vault_unlock";
|
|
4356
|
+
vault_save_login: "vault_save_login";
|
|
4357
|
+
vault_code: "vault_code";
|
|
4358
|
+
}>;
|
|
4359
|
+
backend: z.ZodNullable<z.ZodString>;
|
|
4360
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
4361
|
+
origin: z.ZodNullable<z.ZodString>;
|
|
4362
|
+
site: z.ZodNullable<z.ZodString>;
|
|
4363
|
+
hint: z.ZodNullable<z.ZodString>;
|
|
4364
|
+
skill: z.ZodOptional<z.ZodObject<{
|
|
4365
|
+
env_var: z.ZodString;
|
|
4366
|
+
skill_name: z.ZodString;
|
|
4367
|
+
help: z.ZodNullable<z.ZodString>;
|
|
4368
|
+
required_for: z.ZodNullable<z.ZodString>;
|
|
4369
|
+
}, z.core.$strip>>;
|
|
4370
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
4371
|
+
key: z.ZodEnum<{
|
|
4372
|
+
code: "code";
|
|
4373
|
+
secret: "secret";
|
|
4374
|
+
master_password: "master_password";
|
|
4375
|
+
identifier: "identifier";
|
|
4376
|
+
password: "password";
|
|
4377
|
+
}>;
|
|
4378
|
+
secure: z.ZodBoolean;
|
|
4379
|
+
}, z.core.$strip>>;
|
|
4380
|
+
timeout_at: z.ZodNumber;
|
|
4381
|
+
}, z.core.$strip>;
|
|
4382
|
+
export type VaultPrompt = z.infer<typeof VaultPromptSchema>;
|
|
3408
4383
|
export declare const ClarifyPendingSchema: z.ZodObject<{
|
|
3409
4384
|
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3410
4385
|
qid: z.ZodString;
|
|
@@ -3412,6 +4387,36 @@ export declare const ClarifyPendingSchema: z.ZodObject<{
|
|
|
3412
4387
|
choices: z.ZodArray<z.ZodString>;
|
|
3413
4388
|
multi_select: z.ZodBoolean;
|
|
3414
4389
|
}, z.core.$loose>>>;
|
|
4390
|
+
vault: z.ZodOptional<z.ZodObject<{
|
|
4391
|
+
kind: z.ZodEnum<{
|
|
4392
|
+
skill_secret: "skill_secret";
|
|
4393
|
+
vault_unlock: "vault_unlock";
|
|
4394
|
+
vault_save_login: "vault_save_login";
|
|
4395
|
+
vault_code: "vault_code";
|
|
4396
|
+
}>;
|
|
4397
|
+
backend: z.ZodNullable<z.ZodString>;
|
|
4398
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
4399
|
+
origin: z.ZodNullable<z.ZodString>;
|
|
4400
|
+
site: z.ZodNullable<z.ZodString>;
|
|
4401
|
+
hint: z.ZodNullable<z.ZodString>;
|
|
4402
|
+
skill: z.ZodOptional<z.ZodObject<{
|
|
4403
|
+
env_var: z.ZodString;
|
|
4404
|
+
skill_name: z.ZodString;
|
|
4405
|
+
help: z.ZodNullable<z.ZodString>;
|
|
4406
|
+
required_for: z.ZodNullable<z.ZodString>;
|
|
4407
|
+
}, z.core.$strip>>;
|
|
4408
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
4409
|
+
key: z.ZodEnum<{
|
|
4410
|
+
code: "code";
|
|
4411
|
+
secret: "secret";
|
|
4412
|
+
master_password: "master_password";
|
|
4413
|
+
identifier: "identifier";
|
|
4414
|
+
password: "password";
|
|
4415
|
+
}>;
|
|
4416
|
+
secure: z.ZodBoolean;
|
|
4417
|
+
}, z.core.$strip>>;
|
|
4418
|
+
timeout_at: z.ZodNumber;
|
|
4419
|
+
}, z.core.$strip>>;
|
|
3415
4420
|
clarify_id: z.ZodOptional<z.ZodString>;
|
|
3416
4421
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3417
4422
|
question: z.ZodOptional<z.ZodString>;
|
|
@@ -3443,6 +4448,36 @@ export declare const ClarifyPendingEnvelopeSchema: z.ZodObject<{
|
|
|
3443
4448
|
choices: z.ZodArray<z.ZodString>;
|
|
3444
4449
|
multi_select: z.ZodBoolean;
|
|
3445
4450
|
}, z.core.$loose>>>;
|
|
4451
|
+
vault: z.ZodOptional<z.ZodObject<{
|
|
4452
|
+
kind: z.ZodEnum<{
|
|
4453
|
+
skill_secret: "skill_secret";
|
|
4454
|
+
vault_unlock: "vault_unlock";
|
|
4455
|
+
vault_save_login: "vault_save_login";
|
|
4456
|
+
vault_code: "vault_code";
|
|
4457
|
+
}>;
|
|
4458
|
+
backend: z.ZodNullable<z.ZodString>;
|
|
4459
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
4460
|
+
origin: z.ZodNullable<z.ZodString>;
|
|
4461
|
+
site: z.ZodNullable<z.ZodString>;
|
|
4462
|
+
hint: z.ZodNullable<z.ZodString>;
|
|
4463
|
+
skill: z.ZodOptional<z.ZodObject<{
|
|
4464
|
+
env_var: z.ZodString;
|
|
4465
|
+
skill_name: z.ZodString;
|
|
4466
|
+
help: z.ZodNullable<z.ZodString>;
|
|
4467
|
+
required_for: z.ZodNullable<z.ZodString>;
|
|
4468
|
+
}, z.core.$strip>>;
|
|
4469
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
4470
|
+
key: z.ZodEnum<{
|
|
4471
|
+
code: "code";
|
|
4472
|
+
secret: "secret";
|
|
4473
|
+
master_password: "master_password";
|
|
4474
|
+
identifier: "identifier";
|
|
4475
|
+
password: "password";
|
|
4476
|
+
}>;
|
|
4477
|
+
secure: z.ZodBoolean;
|
|
4478
|
+
}, z.core.$strip>>;
|
|
4479
|
+
timeout_at: z.ZodNumber;
|
|
4480
|
+
}, z.core.$strip>>;
|
|
3446
4481
|
clarify_id: z.ZodOptional<z.ZodString>;
|
|
3447
4482
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3448
4483
|
question: z.ZodOptional<z.ZodString>;
|
|
@@ -3474,6 +4509,7 @@ export declare const ClarifyRespondRequestSchema: z.ZodObject<{
|
|
|
3474
4509
|
answer: z.ZodOptional<z.ZodString>;
|
|
3475
4510
|
choice: z.ZodOptional<z.ZodString>;
|
|
3476
4511
|
clarify_id: z.ZodOptional<z.ZodString>;
|
|
4512
|
+
decline: z.ZodOptional<z.ZodBoolean>;
|
|
3477
4513
|
}, z.core.$loose>;
|
|
3478
4514
|
export declare const ClarifyRespondResponseSchema: z.ZodObject<{
|
|
3479
4515
|
ok: z.ZodBoolean;
|
|
@@ -3551,10 +4587,10 @@ export declare const BackgroundTaskSchema: z.ZodObject<{
|
|
|
3551
4587
|
}>;
|
|
3552
4588
|
status: z.ZodEnum<{
|
|
3553
4589
|
unknown: "unknown";
|
|
4590
|
+
running: "running";
|
|
3554
4591
|
cancelled: "cancelled";
|
|
3555
|
-
completed: "completed";
|
|
3556
4592
|
failed: "failed";
|
|
3557
|
-
|
|
4593
|
+
completed: "completed";
|
|
3558
4594
|
attention: "attention";
|
|
3559
4595
|
}>;
|
|
3560
4596
|
title: z.ZodString;
|
|
@@ -3594,10 +4630,10 @@ export declare const BackgroundTasksResponseSchema: z.ZodObject<{
|
|
|
3594
4630
|
}>;
|
|
3595
4631
|
status: z.ZodEnum<{
|
|
3596
4632
|
unknown: "unknown";
|
|
4633
|
+
running: "running";
|
|
3597
4634
|
cancelled: "cancelled";
|
|
3598
|
-
completed: "completed";
|
|
3599
4635
|
failed: "failed";
|
|
3600
|
-
|
|
4636
|
+
completed: "completed";
|
|
3601
4637
|
attention: "attention";
|
|
3602
4638
|
}>;
|
|
3603
4639
|
title: z.ZodString;
|
|
@@ -3642,10 +4678,10 @@ export declare const BackgroundDismissResponseSchema: z.ZodObject<{
|
|
|
3642
4678
|
}>;
|
|
3643
4679
|
status: z.ZodEnum<{
|
|
3644
4680
|
unknown: "unknown";
|
|
4681
|
+
running: "running";
|
|
3645
4682
|
cancelled: "cancelled";
|
|
3646
|
-
completed: "completed";
|
|
3647
4683
|
failed: "failed";
|
|
3648
|
-
|
|
4684
|
+
completed: "completed";
|
|
3649
4685
|
attention: "attention";
|
|
3650
4686
|
}>;
|
|
3651
4687
|
title: z.ZodString;
|
|
@@ -3700,11 +4736,11 @@ export declare const ShareCreateResponseSchema: z.ZodObject<{
|
|
|
3700
4736
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
3701
4737
|
source_kind: z.ZodEnum<{
|
|
3702
4738
|
other: "other";
|
|
4739
|
+
webhook: "webhook";
|
|
4740
|
+
cron: "cron";
|
|
3703
4741
|
webui: "webui";
|
|
3704
4742
|
cli: "cli";
|
|
3705
4743
|
messaging: "messaging";
|
|
3706
|
-
cron: "cron";
|
|
3707
|
-
webhook: "webhook";
|
|
3708
4744
|
subagent: "subagent";
|
|
3709
4745
|
claude_code: "claude_code";
|
|
3710
4746
|
kanban: "kanban";
|
|
@@ -3714,6 +4750,57 @@ export declare const ShareCreateResponseSchema: z.ZodObject<{
|
|
|
3714
4750
|
sort_ts: z.ZodNumber;
|
|
3715
4751
|
cron_running: z.ZodOptional<z.ZodBoolean>;
|
|
3716
4752
|
read_only: z.ZodBoolean;
|
|
4753
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4754
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
4755
|
+
state: z.ZodEnum<{
|
|
4756
|
+
attached: "attached";
|
|
4757
|
+
stopped: "stopped";
|
|
4758
|
+
unavailable: "unavailable";
|
|
4759
|
+
incompatible: "incompatible";
|
|
4760
|
+
refused: "refused";
|
|
4761
|
+
}>;
|
|
4762
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
4763
|
+
can_submit: z.ZodBoolean;
|
|
4764
|
+
can_interrupt: z.ZodBoolean;
|
|
4765
|
+
can_attach: z.ZodBoolean;
|
|
4766
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
4767
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
4768
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4769
|
+
admission_id: z.ZodString;
|
|
4770
|
+
sequence: z.ZodNumber;
|
|
4771
|
+
status: z.ZodEnum<{
|
|
4772
|
+
unknown: "unknown";
|
|
4773
|
+
queued: "queued";
|
|
4774
|
+
started: "started";
|
|
4775
|
+
terminal: "terminal";
|
|
4776
|
+
}>;
|
|
4777
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
4778
|
+
authority_epoch: z.ZodNumber;
|
|
4779
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
4780
|
+
text: z.ZodOptional<z.ZodString>;
|
|
4781
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
4782
|
+
}, z.core.$strip>>>;
|
|
4783
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
4784
|
+
admission_id: z.ZodString;
|
|
4785
|
+
sequence: z.ZodNumber;
|
|
4786
|
+
status: z.ZodEnum<{
|
|
4787
|
+
unknown: "unknown";
|
|
4788
|
+
queued: "queued";
|
|
4789
|
+
started: "started";
|
|
4790
|
+
terminal: "terminal";
|
|
4791
|
+
}>;
|
|
4792
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
4793
|
+
authority_epoch: z.ZodNumber;
|
|
4794
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
4795
|
+
text: z.ZodOptional<z.ZodString>;
|
|
4796
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
4797
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
4798
|
+
cancel: "cancel";
|
|
4799
|
+
discard: "discard";
|
|
4800
|
+
retry: "retry";
|
|
4801
|
+
}>>;
|
|
4802
|
+
}, z.core.$strip>>;
|
|
4803
|
+
}, z.core.$strip>>;
|
|
3717
4804
|
can_branch: z.ZodBoolean;
|
|
3718
4805
|
can_pin: z.ZodBoolean;
|
|
3719
4806
|
can_archive: z.ZodBoolean;
|
|
@@ -3782,10 +4869,26 @@ export declare const SessionNewRequestSchema: z.ZodObject<{
|
|
|
3782
4869
|
enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
3783
4870
|
parent_session_id: z.ZodOptional<z.ZodString>;
|
|
3784
4871
|
}, z.core.$loose>;
|
|
4872
|
+
/**
|
|
4873
|
+
* `streaming` (TAL-802): live dictation over `TRANSCRIBE_STREAM_PATH` would open for this profile (`stt.streaming` on, a live provider wire).
|
|
4874
|
+
* `warm_supported` (TAL-916): a client starting a recording should `POST /api/transcribe/warm` so the engine loads while the user speaks.
|
|
4875
|
+
*/
|
|
3785
4876
|
export declare const TranscribeCapabilitySchema: z.ZodObject<{
|
|
3786
4877
|
ok: z.ZodLiteral<true>;
|
|
3787
4878
|
available: z.ZodBoolean;
|
|
3788
4879
|
provider: z.ZodString;
|
|
4880
|
+
streaming: z.ZodBoolean;
|
|
4881
|
+
warm_supported: z.ZodBoolean;
|
|
4882
|
+
}, z.core.$loose>;
|
|
4883
|
+
/** TAL-906: what read-aloud speaks for a message; clients play it as is. */
|
|
4884
|
+
export declare const SpeechPrepareSchema: z.ZodObject<{
|
|
4885
|
+
spoken_text: z.ZodString;
|
|
4886
|
+
}, z.core.$strip>;
|
|
4887
|
+
/** `POST /api/transcribe`: the recording's transcript; `filtered` (TAL-917) when the server emptied a phrase Whisper invents on silent audio. */
|
|
4888
|
+
export declare const TranscribeResponseSchema: z.ZodObject<{
|
|
4889
|
+
ok: z.ZodLiteral<true>;
|
|
4890
|
+
transcript: z.ZodString;
|
|
4891
|
+
filtered: z.ZodBoolean;
|
|
3789
4892
|
}, z.core.$loose>;
|
|
3790
4893
|
/** TAL-411: the request profile's quota urgency thresholds. A save patches valid fields and clamps critical to at most warning. */
|
|
3791
4894
|
export declare const QuotaThresholdsSchema: z.ZodObject<{
|
|
@@ -3827,6 +4930,7 @@ export declare const SettingsSchema: z.ZodObject<{
|
|
|
3827
4930
|
show_webhook_sessions: z.ZodOptional<z.ZodBoolean>;
|
|
3828
4931
|
show_kanban_sessions: z.ZodOptional<z.ZodBoolean>;
|
|
3829
4932
|
check_for_updates: z.ZodOptional<z.ZodBoolean>;
|
|
4933
|
+
summarize_updates_automatically: z.ZodOptional<z.ZodBoolean>;
|
|
3830
4934
|
ignore_agent_updates: z.ZodOptional<z.ZodBoolean>;
|
|
3831
4935
|
auth_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3832
4936
|
password_auth_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3874,6 +4978,13 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
3874
4978
|
gateway_running: z.ZodOptional<z.ZodBoolean>;
|
|
3875
4979
|
has_env: z.ZodOptional<z.ZodBoolean>;
|
|
3876
4980
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
4981
|
+
gateway_mode: z.ZodOptional<z.ZodEnum<{
|
|
4982
|
+
stopped: "stopped";
|
|
4983
|
+
parked: "parked";
|
|
4984
|
+
own: "own";
|
|
4985
|
+
served: "served";
|
|
4986
|
+
standalone: "standalone";
|
|
4987
|
+
}>>;
|
|
3877
4988
|
display_name: z.ZodOptional<z.ZodString>;
|
|
3878
4989
|
description: z.ZodOptional<z.ZodString>;
|
|
3879
4990
|
has_avatar: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3881,6 +4992,7 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
3881
4992
|
session_id: z.ZodString;
|
|
3882
4993
|
tip_session_id: z.ZodString;
|
|
3883
4994
|
}, z.core.$strip>>>;
|
|
4995
|
+
pending_writes: z.ZodOptional<z.ZodNumber>;
|
|
3884
4996
|
}, z.core.$loose>;
|
|
3885
4997
|
export declare const ProfilesSchema: z.ZodObject<{
|
|
3886
4998
|
profiles: z.ZodArray<z.ZodObject<{
|
|
@@ -3896,6 +5008,13 @@ export declare const ProfilesSchema: z.ZodObject<{
|
|
|
3896
5008
|
gateway_running: z.ZodOptional<z.ZodBoolean>;
|
|
3897
5009
|
has_env: z.ZodOptional<z.ZodBoolean>;
|
|
3898
5010
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
5011
|
+
gateway_mode: z.ZodOptional<z.ZodEnum<{
|
|
5012
|
+
stopped: "stopped";
|
|
5013
|
+
parked: "parked";
|
|
5014
|
+
own: "own";
|
|
5015
|
+
served: "served";
|
|
5016
|
+
standalone: "standalone";
|
|
5017
|
+
}>>;
|
|
3899
5018
|
display_name: z.ZodOptional<z.ZodString>;
|
|
3900
5019
|
description: z.ZodOptional<z.ZodString>;
|
|
3901
5020
|
has_avatar: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3903,6 +5022,7 @@ export declare const ProfilesSchema: z.ZodObject<{
|
|
|
3903
5022
|
session_id: z.ZodString;
|
|
3904
5023
|
tip_session_id: z.ZodString;
|
|
3905
5024
|
}, z.core.$strip>>>;
|
|
5025
|
+
pending_writes: z.ZodOptional<z.ZodNumber>;
|
|
3906
5026
|
}, z.core.$loose>>;
|
|
3907
5027
|
active: z.ZodString;
|
|
3908
5028
|
single_profile_mode: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3928,6 +5048,13 @@ export declare const ProfileSwitchSchema: z.ZodObject<{
|
|
|
3928
5048
|
gateway_running: z.ZodOptional<z.ZodBoolean>;
|
|
3929
5049
|
has_env: z.ZodOptional<z.ZodBoolean>;
|
|
3930
5050
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
5051
|
+
gateway_mode: z.ZodOptional<z.ZodEnum<{
|
|
5052
|
+
stopped: "stopped";
|
|
5053
|
+
parked: "parked";
|
|
5054
|
+
own: "own";
|
|
5055
|
+
served: "served";
|
|
5056
|
+
standalone: "standalone";
|
|
5057
|
+
}>>;
|
|
3931
5058
|
display_name: z.ZodOptional<z.ZodString>;
|
|
3932
5059
|
description: z.ZodOptional<z.ZodString>;
|
|
3933
5060
|
has_avatar: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3935,6 +5062,7 @@ export declare const ProfileSwitchSchema: z.ZodObject<{
|
|
|
3935
5062
|
session_id: z.ZodString;
|
|
3936
5063
|
tip_session_id: z.ZodString;
|
|
3937
5064
|
}, z.core.$strip>>>;
|
|
5065
|
+
pending_writes: z.ZodOptional<z.ZodNumber>;
|
|
3938
5066
|
}, z.core.$loose>>;
|
|
3939
5067
|
active: z.ZodString;
|
|
3940
5068
|
single_profile_mode: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3952,7 +5080,18 @@ export declare const ReasoningStatusSchema: z.ZodObject<{
|
|
|
3952
5080
|
supports_thinking_toggle: z.ZodOptional<z.ZodBoolean>;
|
|
3953
5081
|
}, z.core.$loose>;
|
|
3954
5082
|
export type ReasoningStatus = z.infer<typeof ReasoningStatusSchema>;
|
|
3955
|
-
|
|
5083
|
+
export declare const QuotaLevelSchema: z.ZodEnum<{
|
|
5084
|
+
unavailable: "unavailable";
|
|
5085
|
+
stale: "stale";
|
|
5086
|
+
warning: "warning";
|
|
5087
|
+
healthy: "healthy";
|
|
5088
|
+
critical: "critical";
|
|
5089
|
+
}>;
|
|
5090
|
+
export type QuotaLevel = z.infer<typeof QuotaLevelSchema>;
|
|
5091
|
+
/**
|
|
5092
|
+
* TAL-301: `provider_id`/`bare_id` are the server's split of `id`; clients match a stored `(model, provider)` against them and send `id` back.
|
|
5093
|
+
* TAL-807: `limit` is present while the provider's credential pool cannot serve this model until `resets_at` (ISO-8601 UTC).
|
|
5094
|
+
*/
|
|
3956
5095
|
export declare const ModelEntrySchema: z.ZodObject<{
|
|
3957
5096
|
id: z.ZodString;
|
|
3958
5097
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -3960,8 +5099,59 @@ export declare const ModelEntrySchema: z.ZodObject<{
|
|
|
3960
5099
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
3961
5100
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
3962
5101
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5102
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5103
|
+
id: z.ZodEnum<{
|
|
5104
|
+
standard: "standard";
|
|
5105
|
+
priority: "priority";
|
|
5106
|
+
ultrafast: "ultrafast";
|
|
5107
|
+
fast: "fast";
|
|
5108
|
+
}>;
|
|
5109
|
+
service_tier: z.ZodEnum<{
|
|
5110
|
+
default: "default";
|
|
5111
|
+
priority: "priority";
|
|
5112
|
+
ultrafast: "ultrafast";
|
|
5113
|
+
}>;
|
|
5114
|
+
}, z.core.$strip>>>;
|
|
5115
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5116
|
+
scope: z.ZodLiteral<"model">;
|
|
5117
|
+
resets_at: z.ZodString;
|
|
5118
|
+
}, z.core.$strip>>;
|
|
3963
5119
|
}, z.core.$loose>;
|
|
5120
|
+
/** TAL-807: a group's rate limit: every pool account benched until `resets_at`, else the entry ids (`models`) cooling down until their reset. */
|
|
5121
|
+
export declare const ModelGroupLimitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5122
|
+
scope: z.ZodLiteral<"account">;
|
|
5123
|
+
resets_at: z.ZodString;
|
|
5124
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5125
|
+
scope: z.ZodLiteral<"models">;
|
|
5126
|
+
models: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5127
|
+
}, z.core.$strip>], "scope">;
|
|
5128
|
+
/**
|
|
5129
|
+
* TAL-807: `limit` is the provider's live pool rate limit; `quota_level` is the TAL-411 `remaining` level of the tightest
|
|
5130
|
+
* account-scope window in the provider's last account-usage read (a model-family window never counts), absent without one
|
|
5131
|
+
* and while the group is account-limited.
|
|
5132
|
+
*/
|
|
5133
|
+
export declare const CatalogAvailabilitySchema: z.ZodObject<{
|
|
5134
|
+
status: z.ZodEnum<{
|
|
5135
|
+
unavailable: "unavailable";
|
|
5136
|
+
stale: "stale";
|
|
5137
|
+
available: "available";
|
|
5138
|
+
}>;
|
|
5139
|
+
authoritative: z.ZodBoolean;
|
|
5140
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
5141
|
+
generation: z.ZodString;
|
|
5142
|
+
}, z.core.$strip>;
|
|
5143
|
+
export type CatalogAvailability = z.infer<typeof CatalogAvailabilitySchema>;
|
|
3964
5144
|
export declare const ModelGroupSchema: z.ZodObject<{
|
|
5145
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
5146
|
+
status: z.ZodEnum<{
|
|
5147
|
+
unavailable: "unavailable";
|
|
5148
|
+
stale: "stale";
|
|
5149
|
+
available: "available";
|
|
5150
|
+
}>;
|
|
5151
|
+
authoritative: z.ZodBoolean;
|
|
5152
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
5153
|
+
generation: z.ZodString;
|
|
5154
|
+
}, z.core.$strip>>;
|
|
3965
5155
|
provider: z.ZodString;
|
|
3966
5156
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
3967
5157
|
models: z.ZodArray<z.ZodObject<{
|
|
@@ -3971,6 +5161,23 @@ export declare const ModelGroupSchema: z.ZodObject<{
|
|
|
3971
5161
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
3972
5162
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
3973
5163
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5164
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5165
|
+
id: z.ZodEnum<{
|
|
5166
|
+
standard: "standard";
|
|
5167
|
+
priority: "priority";
|
|
5168
|
+
ultrafast: "ultrafast";
|
|
5169
|
+
fast: "fast";
|
|
5170
|
+
}>;
|
|
5171
|
+
service_tier: z.ZodEnum<{
|
|
5172
|
+
default: "default";
|
|
5173
|
+
priority: "priority";
|
|
5174
|
+
ultrafast: "ultrafast";
|
|
5175
|
+
}>;
|
|
5176
|
+
}, z.core.$strip>>>;
|
|
5177
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5178
|
+
scope: z.ZodLiteral<"model">;
|
|
5179
|
+
resets_at: z.ZodString;
|
|
5180
|
+
}, z.core.$strip>>;
|
|
3974
5181
|
}, z.core.$loose>>;
|
|
3975
5182
|
extra_models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3976
5183
|
id: z.ZodString;
|
|
@@ -3979,15 +5186,66 @@ export declare const ModelGroupSchema: z.ZodObject<{
|
|
|
3979
5186
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
3980
5187
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
3981
5188
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5189
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5190
|
+
id: z.ZodEnum<{
|
|
5191
|
+
standard: "standard";
|
|
5192
|
+
priority: "priority";
|
|
5193
|
+
ultrafast: "ultrafast";
|
|
5194
|
+
fast: "fast";
|
|
5195
|
+
}>;
|
|
5196
|
+
service_tier: z.ZodEnum<{
|
|
5197
|
+
default: "default";
|
|
5198
|
+
priority: "priority";
|
|
5199
|
+
ultrafast: "ultrafast";
|
|
5200
|
+
}>;
|
|
5201
|
+
}, z.core.$strip>>>;
|
|
5202
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5203
|
+
scope: z.ZodLiteral<"model">;
|
|
5204
|
+
resets_at: z.ZodString;
|
|
5205
|
+
}, z.core.$strip>>;
|
|
3982
5206
|
}, z.core.$loose>>>;
|
|
5207
|
+
limit: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5208
|
+
scope: z.ZodLiteral<"account">;
|
|
5209
|
+
resets_at: z.ZodString;
|
|
5210
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5211
|
+
scope: z.ZodLiteral<"models">;
|
|
5212
|
+
models: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5213
|
+
}, z.core.$strip>], "scope">>;
|
|
5214
|
+
quota_level: z.ZodOptional<z.ZodEnum<{
|
|
5215
|
+
unavailable: "unavailable";
|
|
5216
|
+
stale: "stale";
|
|
5217
|
+
warning: "warning";
|
|
5218
|
+
healthy: "healthy";
|
|
5219
|
+
critical: "critical";
|
|
5220
|
+
}>>;
|
|
3983
5221
|
}, z.core.$loose>;
|
|
3984
5222
|
export declare const ModelsSchema: z.ZodObject<{
|
|
5223
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
5224
|
+
status: z.ZodEnum<{
|
|
5225
|
+
unavailable: "unavailable";
|
|
5226
|
+
stale: "stale";
|
|
5227
|
+
available: "available";
|
|
5228
|
+
}>;
|
|
5229
|
+
authoritative: z.ZodBoolean;
|
|
5230
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
5231
|
+
generation: z.ZodString;
|
|
5232
|
+
}, z.core.$strip>>;
|
|
3985
5233
|
active_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3986
5234
|
default_model: z.ZodOptional<z.ZodString>;
|
|
3987
5235
|
default_provider_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3988
5236
|
default_bare_id: z.ZodOptional<z.ZodString>;
|
|
3989
5237
|
default_option_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3990
5238
|
groups: z.ZodArray<z.ZodObject<{
|
|
5239
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
5240
|
+
status: z.ZodEnum<{
|
|
5241
|
+
unavailable: "unavailable";
|
|
5242
|
+
stale: "stale";
|
|
5243
|
+
available: "available";
|
|
5244
|
+
}>;
|
|
5245
|
+
authoritative: z.ZodBoolean;
|
|
5246
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
5247
|
+
generation: z.ZodString;
|
|
5248
|
+
}, z.core.$strip>>;
|
|
3991
5249
|
provider: z.ZodString;
|
|
3992
5250
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
3993
5251
|
models: z.ZodArray<z.ZodObject<{
|
|
@@ -3997,6 +5255,23 @@ export declare const ModelsSchema: z.ZodObject<{
|
|
|
3997
5255
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
3998
5256
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
3999
5257
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5258
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5259
|
+
id: z.ZodEnum<{
|
|
5260
|
+
standard: "standard";
|
|
5261
|
+
priority: "priority";
|
|
5262
|
+
ultrafast: "ultrafast";
|
|
5263
|
+
fast: "fast";
|
|
5264
|
+
}>;
|
|
5265
|
+
service_tier: z.ZodEnum<{
|
|
5266
|
+
default: "default";
|
|
5267
|
+
priority: "priority";
|
|
5268
|
+
ultrafast: "ultrafast";
|
|
5269
|
+
}>;
|
|
5270
|
+
}, z.core.$strip>>>;
|
|
5271
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5272
|
+
scope: z.ZodLiteral<"model">;
|
|
5273
|
+
resets_at: z.ZodString;
|
|
5274
|
+
}, z.core.$strip>>;
|
|
4000
5275
|
}, z.core.$loose>>;
|
|
4001
5276
|
extra_models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4002
5277
|
id: z.ZodString;
|
|
@@ -4005,16 +5280,88 @@ export declare const ModelsSchema: z.ZodObject<{
|
|
|
4005
5280
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
4006
5281
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
4007
5282
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5283
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5284
|
+
id: z.ZodEnum<{
|
|
5285
|
+
standard: "standard";
|
|
5286
|
+
priority: "priority";
|
|
5287
|
+
ultrafast: "ultrafast";
|
|
5288
|
+
fast: "fast";
|
|
5289
|
+
}>;
|
|
5290
|
+
service_tier: z.ZodEnum<{
|
|
5291
|
+
default: "default";
|
|
5292
|
+
priority: "priority";
|
|
5293
|
+
ultrafast: "ultrafast";
|
|
5294
|
+
}>;
|
|
5295
|
+
}, z.core.$strip>>>;
|
|
5296
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5297
|
+
scope: z.ZodLiteral<"model">;
|
|
5298
|
+
resets_at: z.ZodString;
|
|
5299
|
+
}, z.core.$strip>>;
|
|
4008
5300
|
}, z.core.$loose>>>;
|
|
5301
|
+
limit: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5302
|
+
scope: z.ZodLiteral<"account">;
|
|
5303
|
+
resets_at: z.ZodString;
|
|
5304
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5305
|
+
scope: z.ZodLiteral<"models">;
|
|
5306
|
+
models: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5307
|
+
}, z.core.$strip>], "scope">>;
|
|
5308
|
+
quota_level: z.ZodOptional<z.ZodEnum<{
|
|
5309
|
+
unavailable: "unavailable";
|
|
5310
|
+
stale: "stale";
|
|
5311
|
+
warning: "warning";
|
|
5312
|
+
healthy: "healthy";
|
|
5313
|
+
critical: "critical";
|
|
5314
|
+
}>>;
|
|
4009
5315
|
}, z.core.$loose>>;
|
|
4010
5316
|
aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4011
5317
|
configured_model_badges: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4012
5318
|
}, z.core.$loose>;
|
|
5319
|
+
export declare const ModelsLiveSchema: z.ZodObject<{
|
|
5320
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
5321
|
+
status: z.ZodEnum<{
|
|
5322
|
+
unavailable: "unavailable";
|
|
5323
|
+
stale: "stale";
|
|
5324
|
+
available: "available";
|
|
5325
|
+
}>;
|
|
5326
|
+
authoritative: z.ZodBoolean;
|
|
5327
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
5328
|
+
generation: z.ZodString;
|
|
5329
|
+
}, z.core.$strip>>;
|
|
5330
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
5331
|
+
source: z.ZodOptional<z.ZodString>;
|
|
5332
|
+
models: z.ZodArray<z.ZodObject<{
|
|
5333
|
+
id: z.ZodString;
|
|
5334
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5335
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
5336
|
+
provider_id: z.ZodOptional<z.ZodString>;
|
|
5337
|
+
bare_id: z.ZodOptional<z.ZodString>;
|
|
5338
|
+
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5339
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5340
|
+
id: z.ZodEnum<{
|
|
5341
|
+
standard: "standard";
|
|
5342
|
+
priority: "priority";
|
|
5343
|
+
ultrafast: "ultrafast";
|
|
5344
|
+
fast: "fast";
|
|
5345
|
+
}>;
|
|
5346
|
+
service_tier: z.ZodEnum<{
|
|
5347
|
+
default: "default";
|
|
5348
|
+
priority: "priority";
|
|
5349
|
+
ultrafast: "ultrafast";
|
|
5350
|
+
}>;
|
|
5351
|
+
}, z.core.$strip>>>;
|
|
5352
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5353
|
+
scope: z.ZodLiteral<"model">;
|
|
5354
|
+
resets_at: z.ZodString;
|
|
5355
|
+
}, z.core.$strip>>;
|
|
5356
|
+
}, z.core.$loose>>;
|
|
5357
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
5358
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5359
|
+
}, z.core.$loose>;
|
|
4013
5360
|
export type Models = z.infer<typeof ModelsSchema>;
|
|
4014
5361
|
/** TAL-603: where a card's credential comes from; `other` is a source the server cannot name, shown as its raw `key_source`. */
|
|
4015
5362
|
export declare const KeySourceKindSchema: z.ZodEnum<{
|
|
4016
|
-
plugin: "plugin";
|
|
4017
5363
|
env: "env";
|
|
5364
|
+
plugin: "plugin";
|
|
4018
5365
|
config: "config";
|
|
4019
5366
|
other: "other";
|
|
4020
5367
|
oauth: "oauth";
|
|
@@ -4048,12 +5395,29 @@ export declare const ProviderSchema: z.ZodObject<{
|
|
|
4048
5395
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
4049
5396
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
4050
5397
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5398
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5399
|
+
id: z.ZodEnum<{
|
|
5400
|
+
standard: "standard";
|
|
5401
|
+
priority: "priority";
|
|
5402
|
+
ultrafast: "ultrafast";
|
|
5403
|
+
fast: "fast";
|
|
5404
|
+
}>;
|
|
5405
|
+
service_tier: z.ZodEnum<{
|
|
5406
|
+
default: "default";
|
|
5407
|
+
priority: "priority";
|
|
5408
|
+
ultrafast: "ultrafast";
|
|
5409
|
+
}>;
|
|
5410
|
+
}, z.core.$strip>>>;
|
|
5411
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5412
|
+
scope: z.ZodLiteral<"model">;
|
|
5413
|
+
resets_at: z.ZodString;
|
|
5414
|
+
}, z.core.$strip>>;
|
|
4051
5415
|
}, z.core.$loose>>>;
|
|
4052
5416
|
models_total: z.ZodOptional<z.ZodNumber>;
|
|
4053
5417
|
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
4054
5418
|
key_source_kind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4055
|
-
plugin: "plugin";
|
|
4056
5419
|
env: "env";
|
|
5420
|
+
plugin: "plugin";
|
|
4057
5421
|
config: "config";
|
|
4058
5422
|
other: "other";
|
|
4059
5423
|
oauth: "oauth";
|
|
@@ -4062,6 +5426,16 @@ export declare const ProviderSchema: z.ZodObject<{
|
|
|
4062
5426
|
removable: z.ZodOptional<z.ZodBoolean>;
|
|
4063
5427
|
}, z.core.$loose>;
|
|
4064
5428
|
export declare const ProvidersSchema: z.ZodObject<{
|
|
5429
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
5430
|
+
status: z.ZodEnum<{
|
|
5431
|
+
unavailable: "unavailable";
|
|
5432
|
+
stale: "stale";
|
|
5433
|
+
available: "available";
|
|
5434
|
+
}>;
|
|
5435
|
+
authoritative: z.ZodBoolean;
|
|
5436
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
5437
|
+
generation: z.ZodString;
|
|
5438
|
+
}, z.core.$strip>>;
|
|
4065
5439
|
providers: z.ZodArray<z.ZodObject<{
|
|
4066
5440
|
id: z.ZodString;
|
|
4067
5441
|
display_name: z.ZodOptional<z.ZodString>;
|
|
@@ -4083,12 +5457,29 @@ export declare const ProvidersSchema: z.ZodObject<{
|
|
|
4083
5457
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
4084
5458
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
4085
5459
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5460
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5461
|
+
id: z.ZodEnum<{
|
|
5462
|
+
standard: "standard";
|
|
5463
|
+
priority: "priority";
|
|
5464
|
+
ultrafast: "ultrafast";
|
|
5465
|
+
fast: "fast";
|
|
5466
|
+
}>;
|
|
5467
|
+
service_tier: z.ZodEnum<{
|
|
5468
|
+
default: "default";
|
|
5469
|
+
priority: "priority";
|
|
5470
|
+
ultrafast: "ultrafast";
|
|
5471
|
+
}>;
|
|
5472
|
+
}, z.core.$strip>>>;
|
|
5473
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5474
|
+
scope: z.ZodLiteral<"model">;
|
|
5475
|
+
resets_at: z.ZodString;
|
|
5476
|
+
}, z.core.$strip>>;
|
|
4086
5477
|
}, z.core.$loose>>>;
|
|
4087
5478
|
models_total: z.ZodOptional<z.ZodNumber>;
|
|
4088
5479
|
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
4089
5480
|
key_source_kind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4090
|
-
plugin: "plugin";
|
|
4091
5481
|
env: "env";
|
|
5482
|
+
plugin: "plugin";
|
|
4092
5483
|
config: "config";
|
|
4093
5484
|
other: "other";
|
|
4094
5485
|
oauth: "oauth";
|
|
@@ -4098,26 +5489,18 @@ export declare const ProvidersSchema: z.ZodObject<{
|
|
|
4098
5489
|
}, z.core.$loose>>;
|
|
4099
5490
|
active_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4100
5491
|
}, z.core.$loose>;
|
|
4101
|
-
export declare const QuotaLevelSchema: z.ZodEnum<{
|
|
4102
|
-
stale: "stale";
|
|
4103
|
-
unavailable: "unavailable";
|
|
4104
|
-
warning: "warning";
|
|
4105
|
-
healthy: "healthy";
|
|
4106
|
-
critical: "critical";
|
|
4107
|
-
}>;
|
|
4108
|
-
export type QuotaLevel = z.infer<typeof QuotaLevelSchema>;
|
|
4109
5492
|
/** TAL-411: the server's classification per colour basis; `/api/provider/quotas` only, at the profile's thresholds. */
|
|
4110
5493
|
export declare const QuotaUrgencySchema: z.ZodObject<{
|
|
4111
5494
|
remaining: z.ZodEnum<{
|
|
4112
|
-
stale: "stale";
|
|
4113
5495
|
unavailable: "unavailable";
|
|
5496
|
+
stale: "stale";
|
|
4114
5497
|
warning: "warning";
|
|
4115
5498
|
healthy: "healthy";
|
|
4116
5499
|
critical: "critical";
|
|
4117
5500
|
}>;
|
|
4118
5501
|
pace: z.ZodEnum<{
|
|
4119
|
-
stale: "stale";
|
|
4120
5502
|
unavailable: "unavailable";
|
|
5503
|
+
stale: "stale";
|
|
4121
5504
|
warning: "warning";
|
|
4122
5505
|
healthy: "healthy";
|
|
4123
5506
|
critical: "critical";
|
|
@@ -4186,15 +5569,15 @@ export declare const QuotaWindowSchema: z.ZodObject<{
|
|
|
4186
5569
|
projection_eligible: z.ZodOptional<z.ZodBoolean>;
|
|
4187
5570
|
urgency: z.ZodOptional<z.ZodObject<{
|
|
4188
5571
|
remaining: z.ZodEnum<{
|
|
4189
|
-
stale: "stale";
|
|
4190
5572
|
unavailable: "unavailable";
|
|
5573
|
+
stale: "stale";
|
|
4191
5574
|
warning: "warning";
|
|
4192
5575
|
healthy: "healthy";
|
|
4193
5576
|
critical: "critical";
|
|
4194
5577
|
}>;
|
|
4195
5578
|
pace: z.ZodEnum<{
|
|
4196
|
-
stale: "stale";
|
|
4197
5579
|
unavailable: "unavailable";
|
|
5580
|
+
stale: "stale";
|
|
4198
5581
|
warning: "warning";
|
|
4199
5582
|
healthy: "healthy";
|
|
4200
5583
|
critical: "critical";
|
|
@@ -4202,6 +5585,7 @@ export declare const QuotaWindowSchema: z.ZodObject<{
|
|
|
4202
5585
|
}, z.core.$loose>>;
|
|
4203
5586
|
}, z.core.$loose>;
|
|
4204
5587
|
export declare const QuotaSourceSchema: z.ZodObject<{
|
|
5588
|
+
computed_at: z.ZodOptional<z.ZodString>;
|
|
4205
5589
|
source_id: z.ZodString;
|
|
4206
5590
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
4207
5591
|
provider_label: z.ZodOptional<z.ZodString>;
|
|
@@ -4247,15 +5631,15 @@ export declare const QuotaSourceSchema: z.ZodObject<{
|
|
|
4247
5631
|
projection_eligible: z.ZodOptional<z.ZodBoolean>;
|
|
4248
5632
|
urgency: z.ZodOptional<z.ZodObject<{
|
|
4249
5633
|
remaining: z.ZodEnum<{
|
|
4250
|
-
stale: "stale";
|
|
4251
5634
|
unavailable: "unavailable";
|
|
5635
|
+
stale: "stale";
|
|
4252
5636
|
warning: "warning";
|
|
4253
5637
|
healthy: "healthy";
|
|
4254
5638
|
critical: "critical";
|
|
4255
5639
|
}>;
|
|
4256
5640
|
pace: z.ZodEnum<{
|
|
4257
|
-
stale: "stale";
|
|
4258
5641
|
unavailable: "unavailable";
|
|
5642
|
+
stale: "stale";
|
|
4259
5643
|
warning: "warning";
|
|
4260
5644
|
healthy: "healthy";
|
|
4261
5645
|
critical: "critical";
|
|
@@ -4273,15 +5657,15 @@ export declare const QuotaSourceSchema: z.ZodObject<{
|
|
|
4273
5657
|
weekly_window_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4274
5658
|
urgency: z.ZodOptional<z.ZodObject<{
|
|
4275
5659
|
remaining: z.ZodEnum<{
|
|
4276
|
-
stale: "stale";
|
|
4277
5660
|
unavailable: "unavailable";
|
|
5661
|
+
stale: "stale";
|
|
4278
5662
|
warning: "warning";
|
|
4279
5663
|
healthy: "healthy";
|
|
4280
5664
|
critical: "critical";
|
|
4281
5665
|
}>;
|
|
4282
5666
|
pace: z.ZodEnum<{
|
|
4283
|
-
stale: "stale";
|
|
4284
5667
|
unavailable: "unavailable";
|
|
5668
|
+
stale: "stale";
|
|
4285
5669
|
warning: "warning";
|
|
4286
5670
|
healthy: "healthy";
|
|
4287
5671
|
critical: "critical";
|
|
@@ -4331,15 +5715,15 @@ export declare const QuotaAccountLimitsSchema: z.ZodObject<{
|
|
|
4331
5715
|
projection_eligible: z.ZodOptional<z.ZodBoolean>;
|
|
4332
5716
|
urgency: z.ZodOptional<z.ZodObject<{
|
|
4333
5717
|
remaining: z.ZodEnum<{
|
|
4334
|
-
stale: "stale";
|
|
4335
5718
|
unavailable: "unavailable";
|
|
5719
|
+
stale: "stale";
|
|
4336
5720
|
warning: "warning";
|
|
4337
5721
|
healthy: "healthy";
|
|
4338
5722
|
critical: "critical";
|
|
4339
5723
|
}>;
|
|
4340
5724
|
pace: z.ZodEnum<{
|
|
4341
|
-
stale: "stale";
|
|
4342
5725
|
unavailable: "unavailable";
|
|
5726
|
+
stale: "stale";
|
|
4343
5727
|
warning: "warning";
|
|
4344
5728
|
healthy: "healthy";
|
|
4345
5729
|
critical: "critical";
|
|
@@ -4405,15 +5789,15 @@ export declare const ProviderQuotaSchema: z.ZodObject<{
|
|
|
4405
5789
|
projection_eligible: z.ZodOptional<z.ZodBoolean>;
|
|
4406
5790
|
urgency: z.ZodOptional<z.ZodObject<{
|
|
4407
5791
|
remaining: z.ZodEnum<{
|
|
4408
|
-
stale: "stale";
|
|
4409
5792
|
unavailable: "unavailable";
|
|
5793
|
+
stale: "stale";
|
|
4410
5794
|
warning: "warning";
|
|
4411
5795
|
healthy: "healthy";
|
|
4412
5796
|
critical: "critical";
|
|
4413
5797
|
}>;
|
|
4414
5798
|
pace: z.ZodEnum<{
|
|
4415
|
-
stale: "stale";
|
|
4416
5799
|
unavailable: "unavailable";
|
|
5800
|
+
stale: "stale";
|
|
4417
5801
|
warning: "warning";
|
|
4418
5802
|
healthy: "healthy";
|
|
4419
5803
|
critical: "critical";
|
|
@@ -4429,6 +5813,16 @@ export declare const ProviderQuotaSchema: z.ZodObject<{
|
|
|
4429
5813
|
}, z.core.$loose>;
|
|
4430
5814
|
/** Python `get_provider_quotas`: the stable identity envelope the iOS quota widget persists (`scope_id`/`profile_id`). */
|
|
4431
5815
|
export declare const ProviderQuotasSchema: z.ZodObject<{
|
|
5816
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
5817
|
+
status: z.ZodEnum<{
|
|
5818
|
+
unavailable: "unavailable";
|
|
5819
|
+
stale: "stale";
|
|
5820
|
+
available: "available";
|
|
5821
|
+
}>;
|
|
5822
|
+
authoritative: z.ZodBoolean;
|
|
5823
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
5824
|
+
generation: z.ZodString;
|
|
5825
|
+
}, z.core.$strip>>;
|
|
4432
5826
|
version: z.ZodNumber;
|
|
4433
5827
|
computed_at: z.ZodString;
|
|
4434
5828
|
scope_id: z.ZodString;
|
|
@@ -4437,6 +5831,7 @@ export declare const ProviderQuotasSchema: z.ZodObject<{
|
|
|
4437
5831
|
requested_source_id: z.ZodNullable<z.ZodString>;
|
|
4438
5832
|
missing_source: z.ZodBoolean;
|
|
4439
5833
|
sources: z.ZodArray<z.ZodObject<{
|
|
5834
|
+
computed_at: z.ZodOptional<z.ZodString>;
|
|
4440
5835
|
source_id: z.ZodString;
|
|
4441
5836
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
4442
5837
|
provider_label: z.ZodOptional<z.ZodString>;
|
|
@@ -4482,15 +5877,15 @@ export declare const ProviderQuotasSchema: z.ZodObject<{
|
|
|
4482
5877
|
projection_eligible: z.ZodOptional<z.ZodBoolean>;
|
|
4483
5878
|
urgency: z.ZodOptional<z.ZodObject<{
|
|
4484
5879
|
remaining: z.ZodEnum<{
|
|
4485
|
-
stale: "stale";
|
|
4486
5880
|
unavailable: "unavailable";
|
|
5881
|
+
stale: "stale";
|
|
4487
5882
|
warning: "warning";
|
|
4488
5883
|
healthy: "healthy";
|
|
4489
5884
|
critical: "critical";
|
|
4490
5885
|
}>;
|
|
4491
5886
|
pace: z.ZodEnum<{
|
|
4492
|
-
stale: "stale";
|
|
4493
5887
|
unavailable: "unavailable";
|
|
5888
|
+
stale: "stale";
|
|
4494
5889
|
warning: "warning";
|
|
4495
5890
|
healthy: "healthy";
|
|
4496
5891
|
critical: "critical";
|
|
@@ -4508,15 +5903,15 @@ export declare const ProviderQuotasSchema: z.ZodObject<{
|
|
|
4508
5903
|
weekly_window_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4509
5904
|
urgency: z.ZodOptional<z.ZodObject<{
|
|
4510
5905
|
remaining: z.ZodEnum<{
|
|
4511
|
-
stale: "stale";
|
|
4512
5906
|
unavailable: "unavailable";
|
|
5907
|
+
stale: "stale";
|
|
4513
5908
|
warning: "warning";
|
|
4514
5909
|
healthy: "healthy";
|
|
4515
5910
|
critical: "critical";
|
|
4516
5911
|
}>;
|
|
4517
5912
|
pace: z.ZodEnum<{
|
|
4518
|
-
stale: "stale";
|
|
4519
5913
|
unavailable: "unavailable";
|
|
5914
|
+
stale: "stale";
|
|
4520
5915
|
warning: "warning";
|
|
4521
5916
|
healthy: "healthy";
|
|
4522
5917
|
critical: "critical";
|
|
@@ -4554,8 +5949,8 @@ export declare const ProviderCostHistorySchema: z.ZodObject<{
|
|
|
4554
5949
|
budget_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4555
5950
|
budget_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4556
5951
|
ok: "ok";
|
|
4557
|
-
over: "over";
|
|
4558
5952
|
warn: "warn";
|
|
5953
|
+
over: "over";
|
|
4559
5954
|
}>>>;
|
|
4560
5955
|
}, z.core.$loose>;
|
|
4561
5956
|
export type ProviderCostHistory = z.infer<typeof ProviderCostHistorySchema>;
|
|
@@ -4579,6 +5974,8 @@ export declare const AuxiliaryTaskSchema: z.ZodObject<{
|
|
|
4579
5974
|
provider_label: z.ZodNullable<z.ZodString>;
|
|
4580
5975
|
selected_option_id: z.ZodNullable<z.ZodString>;
|
|
4581
5976
|
in_catalog: z.ZodBoolean;
|
|
5977
|
+
inherit_from: z.ZodNullable<z.ZodString>;
|
|
5978
|
+
reasoning_effort: z.ZodNullable<z.ZodString>;
|
|
4582
5979
|
}, z.core.$loose>;
|
|
4583
5980
|
export declare const AuxiliaryModelsSchema: z.ZodObject<{
|
|
4584
5981
|
main: z.ZodObject<{
|
|
@@ -4586,6 +5983,25 @@ export declare const AuxiliaryModelsSchema: z.ZodObject<{
|
|
|
4586
5983
|
provider: z.ZodOptional<z.ZodString>;
|
|
4587
5984
|
base_url: z.ZodOptional<z.ZodString>;
|
|
4588
5985
|
api_key_set: z.ZodOptional<z.ZodBoolean>;
|
|
5986
|
+
service_tier: z.ZodOptional<z.ZodEnum<{
|
|
5987
|
+
"": "";
|
|
5988
|
+
default: "default";
|
|
5989
|
+
priority: "priority";
|
|
5990
|
+
ultrafast: "ultrafast";
|
|
5991
|
+
}>>;
|
|
5992
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5993
|
+
id: z.ZodEnum<{
|
|
5994
|
+
standard: "standard";
|
|
5995
|
+
priority: "priority";
|
|
5996
|
+
ultrafast: "ultrafast";
|
|
5997
|
+
fast: "fast";
|
|
5998
|
+
}>;
|
|
5999
|
+
service_tier: z.ZodEnum<{
|
|
6000
|
+
default: "default";
|
|
6001
|
+
priority: "priority";
|
|
6002
|
+
ultrafast: "ultrafast";
|
|
6003
|
+
}>;
|
|
6004
|
+
}, z.core.$strip>>>;
|
|
4589
6005
|
}, z.core.$loose>;
|
|
4590
6006
|
tasks: z.ZodArray<z.ZodObject<{
|
|
4591
6007
|
task: z.ZodString;
|
|
@@ -4600,6 +6016,8 @@ export declare const AuxiliaryModelsSchema: z.ZodObject<{
|
|
|
4600
6016
|
provider_label: z.ZodNullable<z.ZodString>;
|
|
4601
6017
|
selected_option_id: z.ZodNullable<z.ZodString>;
|
|
4602
6018
|
in_catalog: z.ZodBoolean;
|
|
6019
|
+
inherit_from: z.ZodNullable<z.ZodString>;
|
|
6020
|
+
reasoning_effort: z.ZodNullable<z.ZodString>;
|
|
4603
6021
|
}, z.core.$loose>>;
|
|
4604
6022
|
}, z.core.$loose>;
|
|
4605
6023
|
export declare const MaxTokensSchema: z.ZodObject<{
|
|
@@ -4711,6 +6129,14 @@ export declare const SkillSchema: z.ZodObject<{
|
|
|
4711
6129
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4712
6130
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4713
6131
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
6132
|
+
load_name: z.ZodOptional<z.ZodString>;
|
|
6133
|
+
declared_name: z.ZodOptional<z.ZodString>;
|
|
6134
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
6135
|
+
unique: "unique";
|
|
6136
|
+
ambiguous: "ambiguous";
|
|
6137
|
+
shadowed: "shadowed";
|
|
6138
|
+
}>>;
|
|
6139
|
+
tier: z.ZodOptional<z.ZodNumber>;
|
|
4714
6140
|
}, z.core.$loose>;
|
|
4715
6141
|
export declare const SkillsSchema: z.ZodObject<{
|
|
4716
6142
|
skills: z.ZodArray<z.ZodObject<{
|
|
@@ -4718,6 +6144,14 @@ export declare const SkillsSchema: z.ZodObject<{
|
|
|
4718
6144
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4719
6145
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4720
6146
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
6147
|
+
load_name: z.ZodOptional<z.ZodString>;
|
|
6148
|
+
declared_name: z.ZodOptional<z.ZodString>;
|
|
6149
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
6150
|
+
unique: "unique";
|
|
6151
|
+
ambiguous: "ambiguous";
|
|
6152
|
+
shadowed: "shadowed";
|
|
6153
|
+
}>>;
|
|
6154
|
+
tier: z.ZodOptional<z.ZodNumber>;
|
|
4721
6155
|
}, z.core.$loose>>;
|
|
4722
6156
|
categories: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
4723
6157
|
}, z.core.$loose>;
|
|
@@ -4726,6 +6160,7 @@ export declare const SkillsSchema: z.ZodObject<{
|
|
|
4726
6160
|
* A linked file that is not UTF-8 text carries `binary: true` and its `size` instead of `content`.
|
|
4727
6161
|
*/
|
|
4728
6162
|
export declare const SkillContentSchema: z.ZodObject<{
|
|
6163
|
+
editable: z.ZodOptional<z.ZodBoolean>;
|
|
4729
6164
|
name: z.ZodOptional<z.ZodString>;
|
|
4730
6165
|
content: z.ZodOptional<z.ZodString>;
|
|
4731
6166
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -4763,6 +6198,9 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
4763
6198
|
project_context_mtime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4764
6199
|
project_context_shadowed: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
4765
6200
|
external_notes_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
6201
|
+
memory_revision: z.ZodString;
|
|
6202
|
+
user_revision: z.ZodString;
|
|
6203
|
+
soul_revision: z.ZodString;
|
|
4766
6204
|
}, z.core.$loose>;
|
|
4767
6205
|
export type Memory = z.infer<typeof MemorySchema>;
|
|
4768
6206
|
export declare const PromptSchema: z.ZodObject<{
|
|
@@ -4791,7 +6229,10 @@ export declare const PromptsSchema: z.ZodObject<{
|
|
|
4791
6229
|
* clients can run it, and `unsupported_message` is the English text a client outside `clients` shows when it is typed.
|
|
4792
6230
|
* Clients suggest the entries listing them whose name or any alias starts with the typed text (case-insensitive), and
|
|
4793
6231
|
* resolve a typed alias to the entry's `name`. `exec` marks an Agent entry `POST /api/commands/exec` runs: the client
|
|
4794
|
-
* posts the typed text there and shows the returned output instead of starting a chat turn
|
|
6232
|
+
* posts the typed text there with the open chat's `session_id` and shows the returned output instead of starting a chat turn
|
|
6233
|
+
* (TAL-561); `/refine` reviews that chat (TAL-902).
|
|
6234
|
+
* `handler: 'prompt'` marks an Agent prompt built-in: the client sends the typed text as a chat turn and the server starts the
|
|
6235
|
+
* turn with the Agent's expansion of it (TAL-817).
|
|
4795
6236
|
*/
|
|
4796
6237
|
export declare const CommandClientSchema: z.ZodEnum<{
|
|
4797
6238
|
web: "web";
|
|
@@ -4804,6 +6245,7 @@ export declare const CommandRowSchema: z.ZodObject<{
|
|
|
4804
6245
|
args_hint: z.ZodOptional<z.ZodString>;
|
|
4805
6246
|
category: z.ZodOptional<z.ZodString>;
|
|
4806
6247
|
handler: z.ZodEnum<{
|
|
6248
|
+
prompt: "prompt";
|
|
4807
6249
|
agent: "agent";
|
|
4808
6250
|
client: "client";
|
|
4809
6251
|
}>;
|
|
@@ -4825,6 +6267,7 @@ export declare const CommandsSchema: z.ZodObject<{
|
|
|
4825
6267
|
args_hint: z.ZodOptional<z.ZodString>;
|
|
4826
6268
|
category: z.ZodOptional<z.ZodString>;
|
|
4827
6269
|
handler: z.ZodEnum<{
|
|
6270
|
+
prompt: "prompt";
|
|
4828
6271
|
agent: "agent";
|
|
4829
6272
|
client: "client";
|
|
4830
6273
|
}>;
|
|
@@ -4899,10 +6342,19 @@ export declare const DashboardStatusSchema: z.ZodObject<{
|
|
|
4899
6342
|
* Gateway status for the Settings banner (TAL-266). `running` and `configured` come from the Agent health probe; when it
|
|
4900
6343
|
* is inconclusive, stale running metadata or known gateway sessions mark the gateway configured. `platforms` are the
|
|
4901
6344
|
* messaging platforms of known gateway sessions; `last_active` is the gateway session index's ISO mtime while running, else "".
|
|
6345
|
+
* TAL-805: `gateway_mode` is the active profile's mode and decides `running` when it is not null. It is null for a remote
|
|
6346
|
+
* gateway, or for the root profile when the sidecar cannot answer; a named profile whose mode is unconfirmed reads `stopped`.
|
|
4902
6347
|
*/
|
|
4903
6348
|
export declare const GatewayStatusSchema: z.ZodObject<{
|
|
4904
6349
|
running: z.ZodBoolean;
|
|
4905
6350
|
configured: z.ZodBoolean;
|
|
6351
|
+
gateway_mode: z.ZodNullable<z.ZodEnum<{
|
|
6352
|
+
stopped: "stopped";
|
|
6353
|
+
parked: "parked";
|
|
6354
|
+
own: "own";
|
|
6355
|
+
served: "served";
|
|
6356
|
+
standalone: "standalone";
|
|
6357
|
+
}>>;
|
|
4906
6358
|
platforms: z.ZodArray<z.ZodObject<{
|
|
4907
6359
|
name: z.ZodString;
|
|
4908
6360
|
label: z.ZodString;
|
|
@@ -4927,6 +6379,13 @@ export declare const GatewayActionSchema: z.ZodObject<{
|
|
|
4927
6379
|
status: z.ZodObject<{
|
|
4928
6380
|
running: z.ZodBoolean;
|
|
4929
6381
|
configured: z.ZodBoolean;
|
|
6382
|
+
gateway_mode: z.ZodNullable<z.ZodEnum<{
|
|
6383
|
+
stopped: "stopped";
|
|
6384
|
+
parked: "parked";
|
|
6385
|
+
own: "own";
|
|
6386
|
+
served: "served";
|
|
6387
|
+
standalone: "standalone";
|
|
6388
|
+
}>>;
|
|
4930
6389
|
platforms: z.ZodArray<z.ZodObject<{
|
|
4931
6390
|
name: z.ZodString;
|
|
4932
6391
|
label: z.ZodString;
|
|
@@ -5073,7 +6532,63 @@ export declare const ProjectOsDashboardSchema: z.ZodObject<{
|
|
|
5073
6532
|
goal_summary: z.ZodString;
|
|
5074
6533
|
}, z.core.$strip>;
|
|
5075
6534
|
export type ProjectOsDashboard = z.infer<typeof ProjectOsDashboardSchema>;
|
|
6535
|
+
/** One server projection used by chat readiness, HTTP refusals, and persisted stream errors. */
|
|
6536
|
+
export declare const AgentRuntimeMetadataSchema: z.ZodObject<{
|
|
6537
|
+
agent_runtime_reason: z.ZodOptional<z.ZodEnum<{
|
|
6538
|
+
unknown: "unknown";
|
|
6539
|
+
update_active: "update_active";
|
|
6540
|
+
recovery_incomplete: "recovery_incomplete";
|
|
6541
|
+
source_changed: "source_changed";
|
|
6542
|
+
}>>;
|
|
6543
|
+
agent_update_state: z.ZodOptional<z.ZodString>;
|
|
6544
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
6545
|
+
restart_scheduled: z.ZodOptional<z.ZodBoolean>;
|
|
6546
|
+
}, z.core.$strip>;
|
|
6547
|
+
export type AgentRuntimeMetadata = z.infer<typeof AgentRuntimeMetadataSchema>;
|
|
6548
|
+
/** TAL-951: whether Web chat can run, from the Agent sidecar's status; `condition` says why not, null when available. */
|
|
6549
|
+
export declare const ChatReadinessSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6550
|
+
available: z.ZodLiteral<true>;
|
|
6551
|
+
condition: z.ZodNull;
|
|
6552
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6553
|
+
agent_runtime_reason: z.ZodOptional<z.ZodEnum<{
|
|
6554
|
+
unknown: "unknown";
|
|
6555
|
+
update_active: "update_active";
|
|
6556
|
+
recovery_incomplete: "recovery_incomplete";
|
|
6557
|
+
source_changed: "source_changed";
|
|
6558
|
+
}>>;
|
|
6559
|
+
agent_update_state: z.ZodOptional<z.ZodString>;
|
|
6560
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
6561
|
+
restart_scheduled: z.ZodOptional<z.ZodBoolean>;
|
|
6562
|
+
available: z.ZodLiteral<false>;
|
|
6563
|
+
condition: z.ZodEnum<{
|
|
6564
|
+
sidecar_unavailable: "sidecar_unavailable";
|
|
6565
|
+
agent_runtime_stale: "agent_runtime_stale";
|
|
6566
|
+
agent_incompatible: "agent_incompatible";
|
|
6567
|
+
}>;
|
|
6568
|
+
}, z.core.$strip>], "available">;
|
|
6569
|
+
export type ChatReadiness = z.infer<typeof ChatReadinessSchema>;
|
|
6570
|
+
/** Messaging-gateway liveness (`alive`, `details`, `gateway_chat`) for Settings → System, plus Web chat readiness in `chat`. */
|
|
5076
6571
|
export declare const AgentHealthSchema: z.ZodObject<{
|
|
6572
|
+
chat: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6573
|
+
available: z.ZodLiteral<true>;
|
|
6574
|
+
condition: z.ZodNull;
|
|
6575
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6576
|
+
agent_runtime_reason: z.ZodOptional<z.ZodEnum<{
|
|
6577
|
+
unknown: "unknown";
|
|
6578
|
+
update_active: "update_active";
|
|
6579
|
+
recovery_incomplete: "recovery_incomplete";
|
|
6580
|
+
source_changed: "source_changed";
|
|
6581
|
+
}>>;
|
|
6582
|
+
agent_update_state: z.ZodOptional<z.ZodString>;
|
|
6583
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
6584
|
+
restart_scheduled: z.ZodOptional<z.ZodBoolean>;
|
|
6585
|
+
available: z.ZodLiteral<false>;
|
|
6586
|
+
condition: z.ZodEnum<{
|
|
6587
|
+
sidecar_unavailable: "sidecar_unavailable";
|
|
6588
|
+
agent_runtime_stale: "agent_runtime_stale";
|
|
6589
|
+
agent_incompatible: "agent_incompatible";
|
|
6590
|
+
}>;
|
|
6591
|
+
}, z.core.$strip>], "available">>;
|
|
5077
6592
|
alive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5078
6593
|
checked_at: z.ZodOptional<z.ZodString>;
|
|
5079
6594
|
details: z.ZodOptional<z.ZodObject<{
|
|
@@ -5107,23 +6622,50 @@ export declare const SystemHealthSchema: z.ZodObject<{
|
|
|
5107
6622
|
}, z.core.$loose>;
|
|
5108
6623
|
export declare const UpdateStateSchema: z.ZodEnum<{
|
|
5109
6624
|
unknown: "unknown";
|
|
6625
|
+
finish: "finish";
|
|
5110
6626
|
manual: "manual";
|
|
5111
6627
|
up_to_date: "up_to_date";
|
|
5112
6628
|
release_ready: "release_ready";
|
|
5113
6629
|
commits_behind: "commits_behind";
|
|
5114
6630
|
local_changes: "local_changes";
|
|
5115
|
-
finish: "finish";
|
|
5116
6631
|
check_failed: "check_failed";
|
|
5117
6632
|
off: "off";
|
|
5118
6633
|
}>;
|
|
5119
6634
|
export type UpdateState = z.infer<typeof UpdateStateSchema>;
|
|
6635
|
+
export declare const UpdateVersionSchema: z.ZodObject<{
|
|
6636
|
+
version: z.ZodString;
|
|
6637
|
+
ref: z.ZodString;
|
|
6638
|
+
sha: z.ZodOptional<z.ZodString>;
|
|
6639
|
+
release_url: z.ZodNullable<z.ZodString>;
|
|
6640
|
+
latest: z.ZodBoolean;
|
|
6641
|
+
folded: z.ZodBoolean;
|
|
6642
|
+
support: z.ZodOptional<z.ZodEnum<{
|
|
6643
|
+
supported: "supported";
|
|
6644
|
+
unchecked: "unchecked";
|
|
6645
|
+
}>>;
|
|
6646
|
+
support_label: z.ZodOptional<z.ZodString>;
|
|
6647
|
+
}, z.core.$strip>;
|
|
6648
|
+
export type UpdateVersion = z.infer<typeof UpdateVersionSchema>;
|
|
5120
6649
|
export declare const UpdateTargetSchema: z.ZodObject<{
|
|
6650
|
+
failed_update: z.ZodOptional<z.ZodObject<{
|
|
6651
|
+
version: z.ZodString;
|
|
6652
|
+
restored_version: z.ZodString;
|
|
6653
|
+
}, z.core.$strip>>;
|
|
5121
6654
|
name: z.ZodOptional<z.ZodString>;
|
|
5122
6655
|
channel: z.ZodOptional<z.ZodEnum<{
|
|
5123
6656
|
stable: "stable";
|
|
5124
6657
|
experimental: "experimental";
|
|
5125
6658
|
}>>;
|
|
5126
6659
|
unsupported: z.ZodOptional<z.ZodBoolean>;
|
|
6660
|
+
support: z.ZodOptional<z.ZodEnum<{
|
|
6661
|
+
supported: "supported";
|
|
6662
|
+
unchecked: "unchecked";
|
|
6663
|
+
}>>;
|
|
6664
|
+
support_label: z.ZodOptional<z.ZodString>;
|
|
6665
|
+
current_support: z.ZodOptional<z.ZodEnum<{
|
|
6666
|
+
supported: "supported";
|
|
6667
|
+
unchecked: "unchecked";
|
|
6668
|
+
}>>;
|
|
5127
6669
|
supported_revision: z.ZodOptional<z.ZodString>;
|
|
5128
6670
|
supported_version: z.ZodOptional<z.ZodString>;
|
|
5129
6671
|
candidate_revision: z.ZodOptional<z.ZodString>;
|
|
@@ -5147,12 +6689,12 @@ export declare const UpdateTargetSchema: z.ZodObject<{
|
|
|
5147
6689
|
current_version: z.ZodOptional<z.ZodString>;
|
|
5148
6690
|
state: z.ZodEnum<{
|
|
5149
6691
|
unknown: "unknown";
|
|
6692
|
+
finish: "finish";
|
|
5150
6693
|
manual: "manual";
|
|
5151
6694
|
up_to_date: "up_to_date";
|
|
5152
6695
|
release_ready: "release_ready";
|
|
5153
6696
|
commits_behind: "commits_behind";
|
|
5154
6697
|
local_changes: "local_changes";
|
|
5155
|
-
finish: "finish";
|
|
5156
6698
|
check_failed: "check_failed";
|
|
5157
6699
|
off: "off";
|
|
5158
6700
|
}>;
|
|
@@ -5161,8 +6703,47 @@ export declare const UpdateTargetSchema: z.ZodObject<{
|
|
|
5161
6703
|
manual_link: z.ZodBoolean;
|
|
5162
6704
|
target_version: z.ZodNullable<z.ZodString>;
|
|
5163
6705
|
summary_available: z.ZodBoolean;
|
|
6706
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
6707
|
+
version: z.ZodString;
|
|
6708
|
+
ref: z.ZodString;
|
|
6709
|
+
sha: z.ZodOptional<z.ZodString>;
|
|
6710
|
+
release_url: z.ZodNullable<z.ZodString>;
|
|
6711
|
+
latest: z.ZodBoolean;
|
|
6712
|
+
folded: z.ZodBoolean;
|
|
6713
|
+
support: z.ZodOptional<z.ZodEnum<{
|
|
6714
|
+
supported: "supported";
|
|
6715
|
+
unchecked: "unchecked";
|
|
6716
|
+
}>>;
|
|
6717
|
+
support_label: z.ZodOptional<z.ZodString>;
|
|
6718
|
+
}, z.core.$strip>>;
|
|
6719
|
+
folded_count: z.ZodNumber;
|
|
5164
6720
|
}, z.core.$loose>;
|
|
6721
|
+
export declare const AgentRecoveryStateSchema: z.ZodObject<{
|
|
6722
|
+
phase: z.ZodEnum<{
|
|
6723
|
+
running: "running";
|
|
6724
|
+
waiting: "waiting";
|
|
6725
|
+
idle: "idle";
|
|
6726
|
+
complete: "complete";
|
|
6727
|
+
blocked: "blocked";
|
|
6728
|
+
}>;
|
|
6729
|
+
attempt: z.ZodNumber;
|
|
6730
|
+
detail: z.ZodString;
|
|
6731
|
+
retry_at: z.ZodNullable<z.ZodString>;
|
|
6732
|
+
}, z.core.$strip>;
|
|
6733
|
+
export type AgentRecoveryState = z.infer<typeof AgentRecoveryStateSchema>;
|
|
5165
6734
|
export declare const UpdatesCheckSchema: z.ZodObject<{
|
|
6735
|
+
agent_recovery: z.ZodOptional<z.ZodObject<{
|
|
6736
|
+
phase: z.ZodEnum<{
|
|
6737
|
+
running: "running";
|
|
6738
|
+
waiting: "waiting";
|
|
6739
|
+
idle: "idle";
|
|
6740
|
+
complete: "complete";
|
|
6741
|
+
blocked: "blocked";
|
|
6742
|
+
}>;
|
|
6743
|
+
attempt: z.ZodNumber;
|
|
6744
|
+
detail: z.ZodString;
|
|
6745
|
+
retry_at: z.ZodNullable<z.ZodString>;
|
|
6746
|
+
}, z.core.$strip>>;
|
|
5166
6747
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
5167
6748
|
cached: z.ZodOptional<z.ZodBoolean>;
|
|
5168
6749
|
channel: z.ZodOptional<z.ZodString>;
|
|
@@ -5173,12 +6754,25 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
|
|
|
5173
6754
|
checked_at: z.ZodOptional<z.ZodNumber>;
|
|
5174
6755
|
include_agent: z.ZodOptional<z.ZodBoolean>;
|
|
5175
6756
|
webui: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6757
|
+
failed_update: z.ZodOptional<z.ZodObject<{
|
|
6758
|
+
version: z.ZodString;
|
|
6759
|
+
restored_version: z.ZodString;
|
|
6760
|
+
}, z.core.$strip>>;
|
|
5176
6761
|
name: z.ZodOptional<z.ZodString>;
|
|
5177
6762
|
channel: z.ZodOptional<z.ZodEnum<{
|
|
5178
6763
|
stable: "stable";
|
|
5179
6764
|
experimental: "experimental";
|
|
5180
6765
|
}>>;
|
|
5181
6766
|
unsupported: z.ZodOptional<z.ZodBoolean>;
|
|
6767
|
+
support: z.ZodOptional<z.ZodEnum<{
|
|
6768
|
+
supported: "supported";
|
|
6769
|
+
unchecked: "unchecked";
|
|
6770
|
+
}>>;
|
|
6771
|
+
support_label: z.ZodOptional<z.ZodString>;
|
|
6772
|
+
current_support: z.ZodOptional<z.ZodEnum<{
|
|
6773
|
+
supported: "supported";
|
|
6774
|
+
unchecked: "unchecked";
|
|
6775
|
+
}>>;
|
|
5182
6776
|
supported_revision: z.ZodOptional<z.ZodString>;
|
|
5183
6777
|
supported_version: z.ZodOptional<z.ZodString>;
|
|
5184
6778
|
candidate_revision: z.ZodOptional<z.ZodString>;
|
|
@@ -5202,12 +6796,12 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
|
|
|
5202
6796
|
current_version: z.ZodOptional<z.ZodString>;
|
|
5203
6797
|
state: z.ZodEnum<{
|
|
5204
6798
|
unknown: "unknown";
|
|
6799
|
+
finish: "finish";
|
|
5205
6800
|
manual: "manual";
|
|
5206
6801
|
up_to_date: "up_to_date";
|
|
5207
6802
|
release_ready: "release_ready";
|
|
5208
6803
|
commits_behind: "commits_behind";
|
|
5209
6804
|
local_changes: "local_changes";
|
|
5210
|
-
finish: "finish";
|
|
5211
6805
|
check_failed: "check_failed";
|
|
5212
6806
|
off: "off";
|
|
5213
6807
|
}>;
|
|
@@ -5216,14 +6810,41 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
|
|
|
5216
6810
|
manual_link: z.ZodBoolean;
|
|
5217
6811
|
target_version: z.ZodNullable<z.ZodString>;
|
|
5218
6812
|
summary_available: z.ZodBoolean;
|
|
6813
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
6814
|
+
version: z.ZodString;
|
|
6815
|
+
ref: z.ZodString;
|
|
6816
|
+
sha: z.ZodOptional<z.ZodString>;
|
|
6817
|
+
release_url: z.ZodNullable<z.ZodString>;
|
|
6818
|
+
latest: z.ZodBoolean;
|
|
6819
|
+
folded: z.ZodBoolean;
|
|
6820
|
+
support: z.ZodOptional<z.ZodEnum<{
|
|
6821
|
+
supported: "supported";
|
|
6822
|
+
unchecked: "unchecked";
|
|
6823
|
+
}>>;
|
|
6824
|
+
support_label: z.ZodOptional<z.ZodString>;
|
|
6825
|
+
}, z.core.$strip>>;
|
|
6826
|
+
folded_count: z.ZodNumber;
|
|
5219
6827
|
}, z.core.$loose>>>;
|
|
5220
6828
|
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6829
|
+
failed_update: z.ZodOptional<z.ZodObject<{
|
|
6830
|
+
version: z.ZodString;
|
|
6831
|
+
restored_version: z.ZodString;
|
|
6832
|
+
}, z.core.$strip>>;
|
|
5221
6833
|
name: z.ZodOptional<z.ZodString>;
|
|
5222
6834
|
channel: z.ZodOptional<z.ZodEnum<{
|
|
5223
6835
|
stable: "stable";
|
|
5224
6836
|
experimental: "experimental";
|
|
5225
6837
|
}>>;
|
|
5226
6838
|
unsupported: z.ZodOptional<z.ZodBoolean>;
|
|
6839
|
+
support: z.ZodOptional<z.ZodEnum<{
|
|
6840
|
+
supported: "supported";
|
|
6841
|
+
unchecked: "unchecked";
|
|
6842
|
+
}>>;
|
|
6843
|
+
support_label: z.ZodOptional<z.ZodString>;
|
|
6844
|
+
current_support: z.ZodOptional<z.ZodEnum<{
|
|
6845
|
+
supported: "supported";
|
|
6846
|
+
unchecked: "unchecked";
|
|
6847
|
+
}>>;
|
|
5227
6848
|
supported_revision: z.ZodOptional<z.ZodString>;
|
|
5228
6849
|
supported_version: z.ZodOptional<z.ZodString>;
|
|
5229
6850
|
candidate_revision: z.ZodOptional<z.ZodString>;
|
|
@@ -5247,12 +6868,12 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
|
|
|
5247
6868
|
current_version: z.ZodOptional<z.ZodString>;
|
|
5248
6869
|
state: z.ZodEnum<{
|
|
5249
6870
|
unknown: "unknown";
|
|
6871
|
+
finish: "finish";
|
|
5250
6872
|
manual: "manual";
|
|
5251
6873
|
up_to_date: "up_to_date";
|
|
5252
6874
|
release_ready: "release_ready";
|
|
5253
6875
|
commits_behind: "commits_behind";
|
|
5254
6876
|
local_changes: "local_changes";
|
|
5255
|
-
finish: "finish";
|
|
5256
6877
|
check_failed: "check_failed";
|
|
5257
6878
|
off: "off";
|
|
5258
6879
|
}>;
|
|
@@ -5261,6 +6882,20 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
|
|
|
5261
6882
|
manual_link: z.ZodBoolean;
|
|
5262
6883
|
target_version: z.ZodNullable<z.ZodString>;
|
|
5263
6884
|
summary_available: z.ZodBoolean;
|
|
6885
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
6886
|
+
version: z.ZodString;
|
|
6887
|
+
ref: z.ZodString;
|
|
6888
|
+
sha: z.ZodOptional<z.ZodString>;
|
|
6889
|
+
release_url: z.ZodNullable<z.ZodString>;
|
|
6890
|
+
latest: z.ZodBoolean;
|
|
6891
|
+
folded: z.ZodBoolean;
|
|
6892
|
+
support: z.ZodOptional<z.ZodEnum<{
|
|
6893
|
+
supported: "supported";
|
|
6894
|
+
unchecked: "unchecked";
|
|
6895
|
+
}>>;
|
|
6896
|
+
support_label: z.ZodOptional<z.ZodString>;
|
|
6897
|
+
}, z.core.$strip>>;
|
|
6898
|
+
folded_count: z.ZodNumber;
|
|
5264
6899
|
}, z.core.$loose>>>;
|
|
5265
6900
|
}, z.core.$loose>;
|
|
5266
6901
|
export declare const UpdatesSummarySchema: z.ZodObject<{
|
|
@@ -5290,12 +6925,20 @@ export declare const UpdatesSummarySchema: z.ZodObject<{
|
|
|
5290
6925
|
}, z.core.$strip>;
|
|
5291
6926
|
export type UpdatesSummary = z.infer<typeof UpdatesSummarySchema>;
|
|
5292
6927
|
export declare const UpdateApplySchema: z.ZodObject<{
|
|
6928
|
+
recovery_compatibility: z.ZodOptional<z.ZodObject<{
|
|
6929
|
+
manual_execution: z.ZodBoolean;
|
|
6930
|
+
bot_chat_delivery: z.ZodBoolean;
|
|
6931
|
+
}, z.core.$strip>>;
|
|
5293
6932
|
ok: z.ZodOptional<z.ZodBoolean>;
|
|
5294
6933
|
status: z.ZodOptional<z.ZodString>;
|
|
5295
6934
|
error: z.ZodOptional<z.ZodString>;
|
|
5296
6935
|
message: z.ZodOptional<z.ZodString>;
|
|
5297
6936
|
lock: z.ZodOptional<z.ZodUnknown>;
|
|
5298
6937
|
confirmation_required: z.ZodOptional<z.ZodBoolean>;
|
|
6938
|
+
refresh_confirmation: z.ZodOptional<z.ZodObject<{
|
|
6939
|
+
token: z.ZodString;
|
|
6940
|
+
services: z.ZodArray<z.ZodString>;
|
|
6941
|
+
}, z.core.$strip>>;
|
|
5299
6942
|
candidate_revision: z.ZodOptional<z.ZodString>;
|
|
5300
6943
|
supported_revision: z.ZodOptional<z.ZodString>;
|
|
5301
6944
|
supported_version: z.ZodOptional<z.ZodString>;
|
|
@@ -5308,15 +6951,17 @@ export declare const UpdateApplySchema: z.ZodObject<{
|
|
|
5308
6951
|
backup_dir: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5309
6952
|
backup_failed: z.ZodOptional<z.ZodBoolean>;
|
|
5310
6953
|
stash_conflict: z.ZodOptional<z.ZodBoolean>;
|
|
6954
|
+
gateway_restart: z.ZodOptional<z.ZodString>;
|
|
5311
6955
|
}, z.core.$loose>;
|
|
5312
6956
|
export declare const UpdateNotificationPhaseSchema: z.ZodEnum<{
|
|
5313
6957
|
unknown: "unknown";
|
|
5314
6958
|
failed: "failed";
|
|
6959
|
+
blocked: "blocked";
|
|
5315
6960
|
applying: "applying";
|
|
5316
6961
|
awaiting_confirmation: "awaiting_confirmation";
|
|
6962
|
+
waiting_for_idle: "waiting_for_idle";
|
|
5317
6963
|
restarting: "restarting";
|
|
5318
6964
|
succeeded: "succeeded";
|
|
5319
|
-
blocked: "blocked";
|
|
5320
6965
|
}>;
|
|
5321
6966
|
export declare const UpdateNotificationActionSchema: z.ZodObject<{
|
|
5322
6967
|
id: z.ZodString;
|
|
@@ -5342,16 +6987,17 @@ export declare const UpdateNotificationSchema: z.ZodObject<{
|
|
|
5342
6987
|
phase: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5343
6988
|
unknown: "unknown";
|
|
5344
6989
|
failed: "failed";
|
|
6990
|
+
blocked: "blocked";
|
|
5345
6991
|
applying: "applying";
|
|
5346
6992
|
awaiting_confirmation: "awaiting_confirmation";
|
|
6993
|
+
waiting_for_idle: "waiting_for_idle";
|
|
5347
6994
|
restarting: "restarting";
|
|
5348
6995
|
succeeded: "succeeded";
|
|
5349
|
-
blocked: "blocked";
|
|
5350
6996
|
}>, z.ZodString]>;
|
|
5351
6997
|
severity: z.ZodEnum<{
|
|
6998
|
+
info: "info";
|
|
5352
6999
|
warning: "warning";
|
|
5353
7000
|
critical: "critical";
|
|
5354
|
-
info: "info";
|
|
5355
7001
|
}>;
|
|
5356
7002
|
persistent: z.ZodBoolean;
|
|
5357
7003
|
requires_acknowledgement: z.ZodBoolean;
|
|
@@ -5411,16 +7057,17 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
|
|
|
5411
7057
|
phase: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5412
7058
|
unknown: "unknown";
|
|
5413
7059
|
failed: "failed";
|
|
7060
|
+
blocked: "blocked";
|
|
5414
7061
|
applying: "applying";
|
|
5415
7062
|
awaiting_confirmation: "awaiting_confirmation";
|
|
7063
|
+
waiting_for_idle: "waiting_for_idle";
|
|
5416
7064
|
restarting: "restarting";
|
|
5417
7065
|
succeeded: "succeeded";
|
|
5418
|
-
blocked: "blocked";
|
|
5419
7066
|
}>, z.ZodString]>;
|
|
5420
7067
|
severity: z.ZodEnum<{
|
|
7068
|
+
info: "info";
|
|
5421
7069
|
warning: "warning";
|
|
5422
7070
|
critical: "critical";
|
|
5423
|
-
info: "info";
|
|
5424
7071
|
}>;
|
|
5425
7072
|
persistent: z.ZodBoolean;
|
|
5426
7073
|
requires_acknowledgement: z.ZodBoolean;
|
|
@@ -5463,16 +7110,17 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
|
|
|
5463
7110
|
phase: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5464
7111
|
unknown: "unknown";
|
|
5465
7112
|
failed: "failed";
|
|
7113
|
+
blocked: "blocked";
|
|
5466
7114
|
applying: "applying";
|
|
5467
7115
|
awaiting_confirmation: "awaiting_confirmation";
|
|
7116
|
+
waiting_for_idle: "waiting_for_idle";
|
|
5468
7117
|
restarting: "restarting";
|
|
5469
7118
|
succeeded: "succeeded";
|
|
5470
|
-
blocked: "blocked";
|
|
5471
7119
|
}>, z.ZodString]>;
|
|
5472
7120
|
severity: z.ZodEnum<{
|
|
7121
|
+
info: "info";
|
|
5473
7122
|
warning: "warning";
|
|
5474
7123
|
critical: "critical";
|
|
5475
|
-
info: "info";
|
|
5476
7124
|
}>;
|
|
5477
7125
|
persistent: z.ZodBoolean;
|
|
5478
7126
|
requires_acknowledgement: z.ZodBoolean;
|
|
@@ -5512,6 +7160,28 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
|
|
|
5512
7160
|
}, z.core.$strip>;
|
|
5513
7161
|
export type UpdateNotification = z.infer<typeof UpdateNotificationSchema>;
|
|
5514
7162
|
export type UpdateNotifications = z.infer<typeof UpdateNotificationsSchema>;
|
|
7163
|
+
/** TAL-806: a plugin setting as Settings shows it; `locked` marks a secret the server's launch environment supplies, so an edit would not take effect. */
|
|
7164
|
+
export declare const PluginSettingViewSchema: z.ZodObject<{
|
|
7165
|
+
key: z.ZodString;
|
|
7166
|
+
type: z.ZodEnum<{
|
|
7167
|
+
string: "string";
|
|
7168
|
+
number: "number";
|
|
7169
|
+
boolean: "boolean";
|
|
7170
|
+
enum: "enum";
|
|
7171
|
+
json: "json";
|
|
7172
|
+
secret: "secret";
|
|
7173
|
+
}>;
|
|
7174
|
+
label: z.ZodString;
|
|
7175
|
+
description: z.ZodString;
|
|
7176
|
+
required: z.ZodBoolean;
|
|
7177
|
+
choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7178
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
7179
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
7180
|
+
env: z.ZodOptional<z.ZodString>;
|
|
7181
|
+
has_value: z.ZodOptional<z.ZodBoolean>;
|
|
7182
|
+
locked: z.ZodOptional<z.ZodBoolean>;
|
|
7183
|
+
}, z.core.$strip>;
|
|
7184
|
+
export type PluginSettingView = z.infer<typeof PluginSettingViewSchema>;
|
|
5515
7185
|
export declare const PluginSchema: z.ZodObject<{
|
|
5516
7186
|
key: z.ZodString;
|
|
5517
7187
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -5522,7 +7192,32 @@ export declare const PluginSchema: z.ZodObject<{
|
|
|
5522
7192
|
activation: z.ZodOptional<z.ZodString>;
|
|
5523
7193
|
is_active_provider: z.ZodOptional<z.ZodBoolean>;
|
|
5524
7194
|
hooks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
7195
|
+
settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7196
|
+
key: z.ZodString;
|
|
7197
|
+
type: z.ZodEnum<{
|
|
7198
|
+
string: "string";
|
|
7199
|
+
number: "number";
|
|
7200
|
+
boolean: "boolean";
|
|
7201
|
+
enum: "enum";
|
|
7202
|
+
json: "json";
|
|
7203
|
+
secret: "secret";
|
|
7204
|
+
}>;
|
|
7205
|
+
label: z.ZodString;
|
|
7206
|
+
description: z.ZodString;
|
|
7207
|
+
required: z.ZodBoolean;
|
|
7208
|
+
choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7209
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
7210
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
7211
|
+
env: z.ZodOptional<z.ZodString>;
|
|
7212
|
+
has_value: z.ZodOptional<z.ZodBoolean>;
|
|
7213
|
+
locked: z.ZodOptional<z.ZodBoolean>;
|
|
7214
|
+
}, z.core.$strip>>>;
|
|
5525
7215
|
}, z.core.$loose>;
|
|
7216
|
+
/**
|
|
7217
|
+
* `read_only` (TAL-806): this session may not save plugin `settings` (not the server owner, or no sidecar).
|
|
7218
|
+
* `plugin_isolation_advisory` (TAL-820): more than one profile has third-party plugins installed and one of those runs them
|
|
7219
|
+
* `in_process`, so Settings recommends `plugins.isolation: host`; Talaria never sets the mode.
|
|
7220
|
+
*/
|
|
5526
7221
|
export declare const PluginsSchema: z.ZodObject<{
|
|
5527
7222
|
plugins: z.ZodArray<z.ZodObject<{
|
|
5528
7223
|
key: z.ZodString;
|
|
@@ -5534,11 +7229,32 @@ export declare const PluginsSchema: z.ZodObject<{
|
|
|
5534
7229
|
activation: z.ZodOptional<z.ZodString>;
|
|
5535
7230
|
is_active_provider: z.ZodOptional<z.ZodBoolean>;
|
|
5536
7231
|
hooks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
7232
|
+
settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7233
|
+
key: z.ZodString;
|
|
7234
|
+
type: z.ZodEnum<{
|
|
7235
|
+
string: "string";
|
|
7236
|
+
number: "number";
|
|
7237
|
+
boolean: "boolean";
|
|
7238
|
+
enum: "enum";
|
|
7239
|
+
json: "json";
|
|
7240
|
+
secret: "secret";
|
|
7241
|
+
}>;
|
|
7242
|
+
label: z.ZodString;
|
|
7243
|
+
description: z.ZodString;
|
|
7244
|
+
required: z.ZodBoolean;
|
|
7245
|
+
choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7246
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
7247
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
7248
|
+
env: z.ZodOptional<z.ZodString>;
|
|
7249
|
+
has_value: z.ZodOptional<z.ZodBoolean>;
|
|
7250
|
+
locked: z.ZodOptional<z.ZodBoolean>;
|
|
7251
|
+
}, z.core.$strip>>>;
|
|
5537
7252
|
}, z.core.$loose>>;
|
|
5538
7253
|
empty: z.ZodOptional<z.ZodBoolean>;
|
|
5539
7254
|
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
5540
7255
|
supported_hooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5541
7256
|
unavailable: z.ZodOptional<z.ZodBoolean>;
|
|
7257
|
+
plugin_isolation_advisory: z.ZodOptional<z.ZodBoolean>;
|
|
5542
7258
|
}, z.core.$loose>;
|
|
5543
7259
|
export declare const McpServerSchema: z.ZodObject<{
|
|
5544
7260
|
name: z.ZodString;
|
|
@@ -5575,6 +7291,158 @@ export declare const McpServersSchema: z.ZodObject<{
|
|
|
5575
7291
|
reload_required: z.ZodOptional<z.ZodBoolean>;
|
|
5576
7292
|
toggle_supported: z.ZodOptional<z.ZodBoolean>;
|
|
5577
7293
|
}, z.core.$loose>;
|
|
7294
|
+
/** TAL-818: one connected account of a Nous tool-gateway app; `name` is its alias, else the vendor label. `problem` is its gateway status while it is not active, else null. */
|
|
7295
|
+
export declare const ConnectorAccountViewSchema: z.ZodObject<{
|
|
7296
|
+
connection_id: z.ZodString;
|
|
7297
|
+
name: z.ZodString;
|
|
7298
|
+
problem: z.ZodNullable<z.ZodEnum<{
|
|
7299
|
+
pending: "pending";
|
|
7300
|
+
failed: "failed";
|
|
7301
|
+
expired: "expired";
|
|
7302
|
+
revoked: "revoked";
|
|
7303
|
+
inactive: "inactive";
|
|
7304
|
+
}>>;
|
|
7305
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
7306
|
+
active: z.ZodBoolean;
|
|
7307
|
+
created_at: z.ZodString;
|
|
7308
|
+
}, z.core.$strip>;
|
|
7309
|
+
/**
|
|
7310
|
+
* TAL-818: one app on the Connectors page. `accounts` are its live accounts, active first. `enabled`: Hermes may use it (the
|
|
7311
|
+
* member rule allows it and no other layer locks it). `org_locked` means an organization or role rule keeps it off whatever the member rule says. `rules_editable`: the switch
|
|
7312
|
+
* may change the member rule (readable rules and no lock). `tools_off` counts the tools the member rules turn off.
|
|
7313
|
+
*/
|
|
7314
|
+
export declare const ConnectorViewSchema: z.ZodObject<{
|
|
7315
|
+
slug: z.ZodString;
|
|
7316
|
+
name: z.ZodString;
|
|
7317
|
+
description: z.ZodString;
|
|
7318
|
+
category: z.ZodString;
|
|
7319
|
+
logo_url: z.ZodNullable<z.ZodString>;
|
|
7320
|
+
connected: z.ZodBoolean;
|
|
7321
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
7322
|
+
connection_id: z.ZodString;
|
|
7323
|
+
name: z.ZodString;
|
|
7324
|
+
problem: z.ZodNullable<z.ZodEnum<{
|
|
7325
|
+
pending: "pending";
|
|
7326
|
+
failed: "failed";
|
|
7327
|
+
expired: "expired";
|
|
7328
|
+
revoked: "revoked";
|
|
7329
|
+
inactive: "inactive";
|
|
7330
|
+
}>>;
|
|
7331
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
7332
|
+
active: z.ZodBoolean;
|
|
7333
|
+
created_at: z.ZodString;
|
|
7334
|
+
}, z.core.$strip>>;
|
|
7335
|
+
enabled: z.ZodBoolean;
|
|
7336
|
+
org_locked: z.ZodBoolean;
|
|
7337
|
+
rules_editable: z.ZodBoolean;
|
|
7338
|
+
tools_off: z.ZodNumber;
|
|
7339
|
+
}, z.core.$strip>;
|
|
7340
|
+
/**
|
|
7341
|
+
* TAL-818: the Connectors page. `available` is the Agent's connectors gate; false hides the page. `policy_revision` is the
|
|
7342
|
+
* member rules' revision every rule change sends back; null when the rules are read-only (no member layer, or unreadable),
|
|
7343
|
+
* so no switch changes them. `rules_error`: why the rules could not be read; every app then reads off (fails closed).
|
|
7344
|
+
*/
|
|
7345
|
+
export declare const ConnectorsPageSchema: z.ZodObject<{
|
|
7346
|
+
available: z.ZodBoolean;
|
|
7347
|
+
connectors: z.ZodArray<z.ZodObject<{
|
|
7348
|
+
slug: z.ZodString;
|
|
7349
|
+
name: z.ZodString;
|
|
7350
|
+
description: z.ZodString;
|
|
7351
|
+
category: z.ZodString;
|
|
7352
|
+
logo_url: z.ZodNullable<z.ZodString>;
|
|
7353
|
+
connected: z.ZodBoolean;
|
|
7354
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
7355
|
+
connection_id: z.ZodString;
|
|
7356
|
+
name: z.ZodString;
|
|
7357
|
+
problem: z.ZodNullable<z.ZodEnum<{
|
|
7358
|
+
pending: "pending";
|
|
7359
|
+
failed: "failed";
|
|
7360
|
+
expired: "expired";
|
|
7361
|
+
revoked: "revoked";
|
|
7362
|
+
inactive: "inactive";
|
|
7363
|
+
}>>;
|
|
7364
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
7365
|
+
active: z.ZodBoolean;
|
|
7366
|
+
created_at: z.ZodString;
|
|
7367
|
+
}, z.core.$strip>>;
|
|
7368
|
+
enabled: z.ZodBoolean;
|
|
7369
|
+
org_locked: z.ZodBoolean;
|
|
7370
|
+
rules_editable: z.ZodBoolean;
|
|
7371
|
+
tools_off: z.ZodNumber;
|
|
7372
|
+
}, z.core.$strip>>;
|
|
7373
|
+
policy_revision: z.ZodNullable<z.ZodString>;
|
|
7374
|
+
rules_error: z.ZodNullable<z.ZodString>;
|
|
7375
|
+
}, z.core.$strip>;
|
|
7376
|
+
/**
|
|
7377
|
+
* TAL-818: one app's tools: `enabled`: Hermes may use it (the member rules leave it on and nothing locks it); `locked`: an
|
|
7378
|
+
* organization or role rule (by name or tag) keeps it off. `editable`: its switch may change the member rule (readable rules, the app on in them, and no lock).
|
|
7379
|
+
*/
|
|
7380
|
+
export declare const ConnectorToolsViewSchema: z.ZodObject<{
|
|
7381
|
+
connector: z.ZodString;
|
|
7382
|
+
policy_revision: z.ZodNullable<z.ZodString>;
|
|
7383
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
7384
|
+
slug: z.ZodString;
|
|
7385
|
+
name: z.ZodString;
|
|
7386
|
+
description: z.ZodString;
|
|
7387
|
+
facet: z.ZodEnum<{
|
|
7388
|
+
read: "read";
|
|
7389
|
+
write: "write";
|
|
7390
|
+
destructive: "destructive";
|
|
7391
|
+
unclassified: "unclassified";
|
|
7392
|
+
}>;
|
|
7393
|
+
deprecated: z.ZodBoolean;
|
|
7394
|
+
enabled: z.ZodBoolean;
|
|
7395
|
+
locked: z.ZodBoolean;
|
|
7396
|
+
editable: z.ZodBoolean;
|
|
7397
|
+
}, z.core.$strip>>;
|
|
7398
|
+
}, z.core.$strip>;
|
|
7399
|
+
/**
|
|
7400
|
+
* TAL-818: a connection operation, from the Connectors page's Connect or a chat's `manage_connections` card. Each target's
|
|
7401
|
+
* `connect_url` is the authorization link while it waits on one; `actions` are the moves the user may make on it now, and
|
|
7402
|
+
* `env_fields` the credentials an `approve` sends, each with its `label`. `can_continue`: the card may end the wait for the
|
|
7403
|
+
* rest (chat only). `outcome` is null while the operation is open, then `connected` when every target connected.
|
|
7404
|
+
*/
|
|
7405
|
+
export declare const ConnectorOperationViewSchema: z.ZodObject<{
|
|
7406
|
+
op_id: z.ZodString;
|
|
7407
|
+
settled: z.ZodBoolean;
|
|
7408
|
+
outcome: z.ZodNullable<z.ZodEnum<{
|
|
7409
|
+
connected: "connected";
|
|
7410
|
+
not_connected: "not_connected";
|
|
7411
|
+
}>>;
|
|
7412
|
+
can_continue: z.ZodBoolean;
|
|
7413
|
+
tool_call_id: z.ZodNullable<z.ZodString>;
|
|
7414
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
7415
|
+
name: z.ZodString;
|
|
7416
|
+
title: z.ZodString;
|
|
7417
|
+
kind: z.ZodString;
|
|
7418
|
+
state: z.ZodEnum<{
|
|
7419
|
+
pending: "pending";
|
|
7420
|
+
skipped: "skipped";
|
|
7421
|
+
initiated: "initiated";
|
|
7422
|
+
connected: "connected";
|
|
7423
|
+
failed: "failed";
|
|
7424
|
+
expired: "expired";
|
|
7425
|
+
not_connected: "not_connected";
|
|
7426
|
+
}>;
|
|
7427
|
+
detail: z.ZodString;
|
|
7428
|
+
connect_url: z.ZodNullable<z.ZodString>;
|
|
7429
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
7430
|
+
retry: "retry";
|
|
7431
|
+
skip: "skip";
|
|
7432
|
+
approve: "approve";
|
|
7433
|
+
}>>;
|
|
7434
|
+
env_fields: z.ZodArray<z.ZodObject<{
|
|
7435
|
+
name: z.ZodString;
|
|
7436
|
+
label: z.ZodString;
|
|
7437
|
+
required: z.ZodBoolean;
|
|
7438
|
+
secret: z.ZodBoolean;
|
|
7439
|
+
}, z.core.$strip>>;
|
|
7440
|
+
}, z.core.$strip>>;
|
|
7441
|
+
}, z.core.$strip>;
|
|
7442
|
+
export type ConnectorsPage = z.infer<typeof ConnectorsPageSchema>;
|
|
7443
|
+
export type ConnectorView = z.infer<typeof ConnectorViewSchema>;
|
|
7444
|
+
export type ConnectorToolsView = z.infer<typeof ConnectorToolsViewSchema>;
|
|
7445
|
+
export type ConnectorOperationView = z.infer<typeof ConnectorOperationViewSchema>;
|
|
5578
7446
|
export declare const McpToolsSchema: z.ZodObject<{
|
|
5579
7447
|
tools: z.ZodArray<z.ZodObject<{
|
|
5580
7448
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -5763,12 +7631,32 @@ export declare const OnboardingStatusSchema: z.ZodObject<{
|
|
|
5763
7631
|
last: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5764
7632
|
}, z.core.$loose>>;
|
|
5765
7633
|
models: z.ZodOptional<z.ZodObject<{
|
|
7634
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
7635
|
+
status: z.ZodEnum<{
|
|
7636
|
+
unavailable: "unavailable";
|
|
7637
|
+
stale: "stale";
|
|
7638
|
+
available: "available";
|
|
7639
|
+
}>;
|
|
7640
|
+
authoritative: z.ZodBoolean;
|
|
7641
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
7642
|
+
generation: z.ZodString;
|
|
7643
|
+
}, z.core.$strip>>;
|
|
5766
7644
|
active_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5767
7645
|
default_model: z.ZodOptional<z.ZodString>;
|
|
5768
7646
|
default_provider_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5769
7647
|
default_bare_id: z.ZodOptional<z.ZodString>;
|
|
5770
7648
|
default_option_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5771
7649
|
groups: z.ZodArray<z.ZodObject<{
|
|
7650
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
7651
|
+
status: z.ZodEnum<{
|
|
7652
|
+
unavailable: "unavailable";
|
|
7653
|
+
stale: "stale";
|
|
7654
|
+
available: "available";
|
|
7655
|
+
}>;
|
|
7656
|
+
authoritative: z.ZodBoolean;
|
|
7657
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
7658
|
+
generation: z.ZodString;
|
|
7659
|
+
}, z.core.$strip>>;
|
|
5772
7660
|
provider: z.ZodString;
|
|
5773
7661
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
5774
7662
|
models: z.ZodArray<z.ZodObject<{
|
|
@@ -5778,6 +7666,23 @@ export declare const OnboardingStatusSchema: z.ZodObject<{
|
|
|
5778
7666
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
5779
7667
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
5780
7668
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
7669
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7670
|
+
id: z.ZodEnum<{
|
|
7671
|
+
standard: "standard";
|
|
7672
|
+
priority: "priority";
|
|
7673
|
+
ultrafast: "ultrafast";
|
|
7674
|
+
fast: "fast";
|
|
7675
|
+
}>;
|
|
7676
|
+
service_tier: z.ZodEnum<{
|
|
7677
|
+
default: "default";
|
|
7678
|
+
priority: "priority";
|
|
7679
|
+
ultrafast: "ultrafast";
|
|
7680
|
+
}>;
|
|
7681
|
+
}, z.core.$strip>>>;
|
|
7682
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
7683
|
+
scope: z.ZodLiteral<"model">;
|
|
7684
|
+
resets_at: z.ZodString;
|
|
7685
|
+
}, z.core.$strip>>;
|
|
5781
7686
|
}, z.core.$loose>>;
|
|
5782
7687
|
extra_models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5783
7688
|
id: z.ZodString;
|
|
@@ -5786,7 +7691,38 @@ export declare const OnboardingStatusSchema: z.ZodObject<{
|
|
|
5786
7691
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
5787
7692
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
5788
7693
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
7694
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7695
|
+
id: z.ZodEnum<{
|
|
7696
|
+
standard: "standard";
|
|
7697
|
+
priority: "priority";
|
|
7698
|
+
ultrafast: "ultrafast";
|
|
7699
|
+
fast: "fast";
|
|
7700
|
+
}>;
|
|
7701
|
+
service_tier: z.ZodEnum<{
|
|
7702
|
+
default: "default";
|
|
7703
|
+
priority: "priority";
|
|
7704
|
+
ultrafast: "ultrafast";
|
|
7705
|
+
}>;
|
|
7706
|
+
}, z.core.$strip>>>;
|
|
7707
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
7708
|
+
scope: z.ZodLiteral<"model">;
|
|
7709
|
+
resets_at: z.ZodString;
|
|
7710
|
+
}, z.core.$strip>>;
|
|
5789
7711
|
}, z.core.$loose>>>;
|
|
7712
|
+
limit: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7713
|
+
scope: z.ZodLiteral<"account">;
|
|
7714
|
+
resets_at: z.ZodString;
|
|
7715
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7716
|
+
scope: z.ZodLiteral<"models">;
|
|
7717
|
+
models: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
7718
|
+
}, z.core.$strip>], "scope">>;
|
|
7719
|
+
quota_level: z.ZodOptional<z.ZodEnum<{
|
|
7720
|
+
unavailable: "unavailable";
|
|
7721
|
+
stale: "stale";
|
|
7722
|
+
warning: "warning";
|
|
7723
|
+
healthy: "healthy";
|
|
7724
|
+
critical: "critical";
|
|
7725
|
+
}>>;
|
|
5790
7726
|
}, z.core.$loose>>;
|
|
5791
7727
|
aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5792
7728
|
configured_model_badges: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -5832,10 +7768,10 @@ export declare const CronRepeatSchema: z.ZodObject<{
|
|
|
5832
7768
|
export declare const CronDerivedStateSchema: z.ZodEnum<{
|
|
5833
7769
|
error: "error";
|
|
5834
7770
|
active: "active";
|
|
7771
|
+
paused: "paused";
|
|
5835
7772
|
off: "off";
|
|
5836
7773
|
needs_attention: "needs_attention";
|
|
5837
7774
|
schedule_error: "schedule_error";
|
|
5838
|
-
paused: "paused";
|
|
5839
7775
|
}>;
|
|
5840
7776
|
export type CronDerivedState = z.infer<typeof CronDerivedStateSchema>;
|
|
5841
7777
|
export declare const CronJobViewSchema: z.ZodObject<{
|
|
@@ -5890,18 +7826,31 @@ export declare const CronJobViewSchema: z.ZodObject<{
|
|
|
5890
7826
|
derived_state: z.ZodOptional<z.ZodEnum<{
|
|
5891
7827
|
error: "error";
|
|
5892
7828
|
active: "active";
|
|
7829
|
+
paused: "paused";
|
|
5893
7830
|
off: "off";
|
|
5894
7831
|
needs_attention: "needs_attention";
|
|
5895
7832
|
schedule_error: "schedule_error";
|
|
5896
|
-
paused: "paused";
|
|
5897
7833
|
}>>;
|
|
5898
7834
|
needs_attention: z.ZodOptional<z.ZodBoolean>;
|
|
5899
7835
|
resumable: z.ZodOptional<z.ZodBoolean>;
|
|
5900
7836
|
attention_hint: z.ZodNullable<z.ZodEnum<{
|
|
5901
7837
|
croniter_missing: "croniter_missing";
|
|
5902
7838
|
}>>;
|
|
7839
|
+
last_failure: z.ZodNullable<z.ZodObject<{
|
|
7840
|
+
at: z.ZodNullable<z.ZodNumber>;
|
|
7841
|
+
detail: z.ZodString;
|
|
7842
|
+
}, z.core.$strip>>;
|
|
5903
7843
|
}, z.core.$loose>;
|
|
5904
7844
|
export type CronJob = z.infer<typeof CronJobViewSchema>;
|
|
7845
|
+
/** TAL-810: a listed profile's cron store whose writes fail (full disk, read-only mount, permissions), so its scheduler skips every run. `error` and `fix` are the Agent's text; `since` is the last write that landed (epoch seconds), null when unknown. */
|
|
7846
|
+
export declare const CronStoreHealthSchema: z.ZodObject<{
|
|
7847
|
+
profile: z.ZodString;
|
|
7848
|
+
store: z.ZodString;
|
|
7849
|
+
error: z.ZodString;
|
|
7850
|
+
fix: z.ZodString;
|
|
7851
|
+
since: z.ZodNullable<z.ZodNumber>;
|
|
7852
|
+
}, z.core.$strip>;
|
|
7853
|
+
export type CronStoreHealth = z.infer<typeof CronStoreHealthSchema>;
|
|
5905
7854
|
export declare const CronsSchema: z.ZodObject<{
|
|
5906
7855
|
jobs: z.ZodArray<z.ZodObject<{
|
|
5907
7856
|
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5955,22 +7904,33 @@ export declare const CronsSchema: z.ZodObject<{
|
|
|
5955
7904
|
derived_state: z.ZodOptional<z.ZodEnum<{
|
|
5956
7905
|
error: "error";
|
|
5957
7906
|
active: "active";
|
|
7907
|
+
paused: "paused";
|
|
5958
7908
|
off: "off";
|
|
5959
7909
|
needs_attention: "needs_attention";
|
|
5960
7910
|
schedule_error: "schedule_error";
|
|
5961
|
-
paused: "paused";
|
|
5962
7911
|
}>>;
|
|
5963
7912
|
needs_attention: z.ZodOptional<z.ZodBoolean>;
|
|
5964
7913
|
resumable: z.ZodOptional<z.ZodBoolean>;
|
|
5965
7914
|
attention_hint: z.ZodNullable<z.ZodEnum<{
|
|
5966
7915
|
croniter_missing: "croniter_missing";
|
|
5967
7916
|
}>>;
|
|
7917
|
+
last_failure: z.ZodNullable<z.ZodObject<{
|
|
7918
|
+
at: z.ZodNullable<z.ZodNumber>;
|
|
7919
|
+
detail: z.ZodString;
|
|
7920
|
+
}, z.core.$strip>>;
|
|
5968
7921
|
}, z.core.$loose>>;
|
|
5969
7922
|
ordered: z.ZodOptional<z.ZodBoolean>;
|
|
5970
7923
|
active_profile: z.ZodOptional<z.ZodString>;
|
|
5971
7924
|
all_profiles: z.ZodOptional<z.ZodBoolean>;
|
|
5972
7925
|
other_profile_count: z.ZodOptional<z.ZodNumber>;
|
|
5973
7926
|
cron_unavailable: z.ZodOptional<z.ZodBoolean>;
|
|
7927
|
+
unwritable_stores: z.ZodArray<z.ZodObject<{
|
|
7928
|
+
profile: z.ZodString;
|
|
7929
|
+
store: z.ZodString;
|
|
7930
|
+
error: z.ZodString;
|
|
7931
|
+
fix: z.ZodString;
|
|
7932
|
+
since: z.ZodNullable<z.ZodNumber>;
|
|
7933
|
+
}, z.core.$strip>>;
|
|
5974
7934
|
}, z.core.$loose>;
|
|
5975
7935
|
export type Crons = z.infer<typeof CronsSchema>;
|
|
5976
7936
|
export declare const CronContextSourcesSchema: z.ZodObject<{
|
|
@@ -6069,16 +8029,20 @@ export declare const CronMutationSchema: z.ZodObject<{
|
|
|
6069
8029
|
derived_state: z.ZodOptional<z.ZodEnum<{
|
|
6070
8030
|
error: "error";
|
|
6071
8031
|
active: "active";
|
|
8032
|
+
paused: "paused";
|
|
6072
8033
|
off: "off";
|
|
6073
8034
|
needs_attention: "needs_attention";
|
|
6074
8035
|
schedule_error: "schedule_error";
|
|
6075
|
-
paused: "paused";
|
|
6076
8036
|
}>>;
|
|
6077
8037
|
needs_attention: z.ZodOptional<z.ZodBoolean>;
|
|
6078
8038
|
resumable: z.ZodOptional<z.ZodBoolean>;
|
|
6079
8039
|
attention_hint: z.ZodNullable<z.ZodEnum<{
|
|
6080
8040
|
croniter_missing: "croniter_missing";
|
|
6081
8041
|
}>>;
|
|
8042
|
+
last_failure: z.ZodNullable<z.ZodObject<{
|
|
8043
|
+
at: z.ZodNullable<z.ZodNumber>;
|
|
8044
|
+
detail: z.ZodString;
|
|
8045
|
+
}, z.core.$strip>>;
|
|
6082
8046
|
}, z.core.$loose>>;
|
|
6083
8047
|
job_id: z.ZodOptional<z.ZodString>;
|
|
6084
8048
|
status: z.ZodOptional<z.ZodString>;
|
|
@@ -6187,8 +8151,10 @@ export declare const KanbanTaskViewSchema: z.ZodObject<{
|
|
|
6187
8151
|
created_at: z.ZodOptional<z.ZodUnknown>;
|
|
6188
8152
|
updated_at: z.ZodOptional<z.ZodUnknown>;
|
|
6189
8153
|
}, z.core.$loose>;
|
|
8154
|
+
/** A board column in the Agent workflow's order (TAL-796): `name` is the status key, `label` the Agent's English label. */
|
|
6190
8155
|
export declare const KanbanColumnSchema: z.ZodObject<{
|
|
6191
8156
|
name: z.ZodString;
|
|
8157
|
+
label: z.ZodString;
|
|
6192
8158
|
tasks: z.ZodArray<z.ZodObject<{
|
|
6193
8159
|
available_actions: z.ZodObject<{
|
|
6194
8160
|
block: z.ZodBoolean;
|
|
@@ -6217,6 +8183,7 @@ export declare const KanbanLaneSchema: z.ZodObject<{
|
|
|
6217
8183
|
count: z.ZodNumber;
|
|
6218
8184
|
columns: z.ZodArray<z.ZodObject<{
|
|
6219
8185
|
name: z.ZodString;
|
|
8186
|
+
label: z.ZodString;
|
|
6220
8187
|
tasks: z.ZodArray<z.ZodObject<{
|
|
6221
8188
|
available_actions: z.ZodObject<{
|
|
6222
8189
|
block: z.ZodBoolean;
|
|
@@ -6243,6 +8210,7 @@ export declare const KanbanLaneSchema: z.ZodObject<{
|
|
|
6243
8210
|
export declare const KanbanBoardViewSchema: z.ZodObject<{
|
|
6244
8211
|
columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6245
8212
|
name: z.ZodString;
|
|
8213
|
+
label: z.ZodString;
|
|
6246
8214
|
tasks: z.ZodArray<z.ZodObject<{
|
|
6247
8215
|
available_actions: z.ZodObject<{
|
|
6248
8216
|
block: z.ZodBoolean;
|
|
@@ -6272,12 +8240,14 @@ export declare const KanbanBoardViewSchema: z.ZodObject<{
|
|
|
6272
8240
|
tenants: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
6273
8241
|
changed: z.ZodOptional<z.ZodBoolean>;
|
|
6274
8242
|
bulk_move_targets: z.ZodArray<z.ZodString>;
|
|
8243
|
+
create_statuses: z.ZodArray<z.ZodString>;
|
|
6275
8244
|
lane_by_profile: z.ZodBoolean;
|
|
6276
8245
|
lanes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6277
8246
|
assignee: z.ZodNullable<z.ZodString>;
|
|
6278
8247
|
count: z.ZodNumber;
|
|
6279
8248
|
columns: z.ZodArray<z.ZodObject<{
|
|
6280
8249
|
name: z.ZodString;
|
|
8250
|
+
label: z.ZodString;
|
|
6281
8251
|
tasks: z.ZodArray<z.ZodObject<{
|
|
6282
8252
|
available_actions: z.ZodObject<{
|
|
6283
8253
|
block: z.ZodBoolean;
|