@maudecode/talaria-web-contracts 1.18.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/context-detail.d.ts +75 -0
- package/dist/context-detail.js +18 -0
- package/dist/context-detail.js.map +1 -0
- package/dist/gateway-session.d.ts +475 -0
- package/dist/gateway-session.js +106 -0
- package/dist/gateway-session.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -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 +5503 -251
- package/dist/routes/automation.d.ts +100 -18
- package/dist/routes/automation.js +7 -4
- package/dist/routes/automation.js.map +1 -1
- package/dist/routes/chat.d.ts +1605 -47
- package/dist/routes/chat.js +7 -2
- package/dist/routes/chat.js.map +1 -1
- package/dist/routes/core.d.ts +15 -4
- package/dist/routes/core.js +2 -2
- package/dist/routes/core.js.map +1 -1
- package/dist/routes/git.d.ts +9 -0
- package/dist/routes/git.js +6 -1
- package/dist/routes/git.js.map +1 -1
- package/dist/routes/raw.js +10 -6
- package/dist/routes/raw.js.map +1 -1
- package/dist/routes/sessions.d.ts +3189 -181
- package/dist/routes/sessions.js +24 -7
- package/dist/routes/sessions.js.map +1 -1
- package/dist/routes/settings.d.ts +445 -11
- package/dist/routes/settings.js +5 -4
- package/dist/routes/settings.js.map +1 -1
- package/dist/routes/tools.d.ts +945 -34
- package/dist/routes/tools.js +75 -8
- package/dist/routes/tools.js.map +1 -1
- package/dist/routes/workspaces.d.ts +4 -4
- 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 +1906 -52
- package/dist/sidecar/methods.js +9 -2
- package/dist/sidecar/methods.js.map +1 -1
- package/dist/sidecar/namespaces.d.ts +2421 -54
- package/dist/sidecar/namespaces.js +390 -36
- package/dist/sidecar/namespaces.js.map +1 -1
- package/dist/sidecar/rpc.d.ts +1 -0
- package/dist/sidecar/rpc.js +2 -0
- package/dist/sidecar/rpc.js.map +1 -1
- package/dist/sidecar/runtime.d.ts +74 -0
- package/dist/sidecar/runtime.js +29 -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 +868 -5
- package/dist/sse.js +30 -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 +2627 -176
- package/dist/views.js +321 -52
- package/dist/views.js.map +1 -1
- package/fixtures/sidecar/aux.json +142 -0
- package/fixtures/sidecar/chat.json +28 -0
- package/fixtures/sidecar/checkpoints.json +12 -7
- package/fixtures/sidecar/commands.json +216 -108
- package/fixtures/sidecar/config.json +15 -0
- package/fixtures/sidecar/connectors.json +218 -0
- package/fixtures/sidecar/context-detail.json +77 -0
- package/fixtures/sidecar/cron.json +1004 -32
- package/fixtures/sidecar/dashboard_plugins.json +59 -0
- package/fixtures/sidecar/gateway.json +202 -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/plugin-catalog.json +4 -0
- package/fixtures/sidecar/plugins.json +171 -27
- package/fixtures/sidecar/process.json +63 -0
- package/fixtures/sidecar/profiles.json +2 -0
- package/fixtures/sidecar/providers.json +14 -1
- package/fixtures/sidecar/rpc.json +39 -1
- package/fixtures/sidecar/runtime.json +130 -14
- package/fixtures/sidecar/skills.json +256 -13
- package/fixtures/sidecar/state_db.json +29 -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). */
|
|
@@ -23,6 +24,7 @@ export declare const AttachmentSchema: z.ZodObject<{
|
|
|
23
24
|
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<{
|
|
27
|
+
memory: "memory";
|
|
26
28
|
unknown: "unknown";
|
|
27
29
|
shell: "shell";
|
|
28
30
|
read: "read";
|
|
@@ -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>;
|
|
@@ -103,9 +104,20 @@ export declare const ToolEditDiffSchema: z.ZodObject<{
|
|
|
103
104
|
}, z.core.$strip>>;
|
|
104
105
|
}, z.core.$strip>;
|
|
105
106
|
export type ToolEditDiff = z.infer<typeof ToolEditDiffSchema>;
|
|
106
|
-
/**
|
|
107
|
+
/** The latest server-normalized MCP update; never stored with the transcript. */
|
|
108
|
+
export declare const ToolProgressSchema: z.ZodObject<{
|
|
109
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
110
|
+
message: z.ZodNullable<z.ZodString>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
export type ToolProgress = z.infer<typeof ToolProgressSchema>;
|
|
113
|
+
/** Shared tool display fields. Progress is ephemeral, absent on older servers and null after completion. */
|
|
107
114
|
export declare const ToolDisplayFields: {
|
|
115
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
116
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
117
|
+
message: z.ZodNullable<z.ZodString>;
|
|
118
|
+
}, z.core.$strip>>>;
|
|
108
119
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
120
|
+
memory: "memory";
|
|
109
121
|
unknown: "unknown";
|
|
110
122
|
shell: "shell";
|
|
111
123
|
read: "read";
|
|
@@ -114,7 +126,6 @@ export declare const ToolDisplayFields: {
|
|
|
114
126
|
web: "web";
|
|
115
127
|
write: "write";
|
|
116
128
|
skill: "skill";
|
|
117
|
-
memory: "memory";
|
|
118
129
|
delegate: "delegate";
|
|
119
130
|
}>>;
|
|
120
131
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -190,7 +201,12 @@ export declare const ToolCallSchema: z.ZodObject<{
|
|
|
190
201
|
cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
191
202
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
192
203
|
event_type: z.ZodOptional<z.ZodString>;
|
|
204
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
205
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
206
|
+
message: z.ZodNullable<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>>>;
|
|
193
208
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
209
|
+
memory: "memory";
|
|
194
210
|
unknown: "unknown";
|
|
195
211
|
shell: "shell";
|
|
196
212
|
read: "read";
|
|
@@ -199,7 +215,6 @@ export declare const ToolCallSchema: z.ZodObject<{
|
|
|
199
215
|
web: "web";
|
|
200
216
|
write: "write";
|
|
201
217
|
skill: "skill";
|
|
202
|
-
memory: "memory";
|
|
203
218
|
delegate: "delegate";
|
|
204
219
|
}>>;
|
|
205
220
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -253,10 +268,10 @@ export declare const BackgroundLinkSchema: z.ZodObject<{
|
|
|
253
268
|
task_ids: z.ZodArray<z.ZodString>;
|
|
254
269
|
status: z.ZodEnum<{
|
|
255
270
|
unknown: "unknown";
|
|
271
|
+
running: "running";
|
|
256
272
|
cancelled: "cancelled";
|
|
257
|
-
completed: "completed";
|
|
258
273
|
failed: "failed";
|
|
259
|
-
|
|
274
|
+
completed: "completed";
|
|
260
275
|
attention: "attention";
|
|
261
276
|
}>;
|
|
262
277
|
agents: z.ZodObject<{
|
|
@@ -292,10 +307,10 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
|
|
|
292
307
|
row_id: z.ZodString;
|
|
293
308
|
order_index: z.ZodNumber;
|
|
294
309
|
role: z.ZodEnum<{
|
|
295
|
-
|
|
310
|
+
steering: "steering";
|
|
296
311
|
tool: "tool";
|
|
312
|
+
reasoning: "reasoning";
|
|
297
313
|
prose: "prose";
|
|
298
|
-
steering: "steering";
|
|
299
314
|
}>;
|
|
300
315
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
301
316
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -332,10 +347,10 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
|
|
|
332
347
|
task_ids: z.ZodArray<z.ZodString>;
|
|
333
348
|
status: z.ZodEnum<{
|
|
334
349
|
unknown: "unknown";
|
|
350
|
+
running: "running";
|
|
335
351
|
cancelled: "cancelled";
|
|
336
|
-
completed: "completed";
|
|
337
352
|
failed: "failed";
|
|
338
|
-
|
|
353
|
+
completed: "completed";
|
|
339
354
|
attention: "attention";
|
|
340
355
|
}>;
|
|
341
356
|
agents: z.ZodObject<{
|
|
@@ -347,7 +362,12 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
|
|
|
347
362
|
}, z.core.$strip>>;
|
|
348
363
|
result_truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
349
364
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
365
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
366
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
367
|
+
message: z.ZodNullable<z.ZodString>;
|
|
368
|
+
}, z.core.$strip>>>;
|
|
350
369
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
370
|
+
memory: "memory";
|
|
351
371
|
unknown: "unknown";
|
|
352
372
|
shell: "shell";
|
|
353
373
|
read: "read";
|
|
@@ -356,7 +376,6 @@ export declare const ActivitySceneRowSchema: z.ZodObject<{
|
|
|
356
376
|
web: "web";
|
|
357
377
|
write: "write";
|
|
358
378
|
skill: "skill";
|
|
359
|
-
memory: "memory";
|
|
360
379
|
delegate: "delegate";
|
|
361
380
|
}>>;
|
|
362
381
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -425,10 +444,10 @@ export declare const ActivitySceneSchema: z.ZodObject<{
|
|
|
425
444
|
row_id: z.ZodString;
|
|
426
445
|
order_index: z.ZodNumber;
|
|
427
446
|
role: z.ZodEnum<{
|
|
428
|
-
|
|
447
|
+
steering: "steering";
|
|
429
448
|
tool: "tool";
|
|
449
|
+
reasoning: "reasoning";
|
|
430
450
|
prose: "prose";
|
|
431
|
-
steering: "steering";
|
|
432
451
|
}>;
|
|
433
452
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
434
453
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -465,10 +484,10 @@ export declare const ActivitySceneSchema: z.ZodObject<{
|
|
|
465
484
|
task_ids: z.ZodArray<z.ZodString>;
|
|
466
485
|
status: z.ZodEnum<{
|
|
467
486
|
unknown: "unknown";
|
|
487
|
+
running: "running";
|
|
468
488
|
cancelled: "cancelled";
|
|
469
|
-
completed: "completed";
|
|
470
489
|
failed: "failed";
|
|
471
|
-
|
|
490
|
+
completed: "completed";
|
|
472
491
|
attention: "attention";
|
|
473
492
|
}>;
|
|
474
493
|
agents: z.ZodObject<{
|
|
@@ -480,7 +499,12 @@ export declare const ActivitySceneSchema: z.ZodObject<{
|
|
|
480
499
|
}, z.core.$strip>>;
|
|
481
500
|
result_truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
482
501
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
502
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
503
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
504
|
+
message: z.ZodNullable<z.ZodString>;
|
|
505
|
+
}, z.core.$strip>>>;
|
|
483
506
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
507
|
+
memory: "memory";
|
|
484
508
|
unknown: "unknown";
|
|
485
509
|
shell: "shell";
|
|
486
510
|
read: "read";
|
|
@@ -489,7 +513,6 @@ export declare const ActivitySceneSchema: z.ZodObject<{
|
|
|
489
513
|
web: "web";
|
|
490
514
|
write: "write";
|
|
491
515
|
skill: "skill";
|
|
492
|
-
memory: "memory";
|
|
493
516
|
delegate: "delegate";
|
|
494
517
|
}>>;
|
|
495
518
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -564,7 +587,16 @@ export declare const ActivitySceneSchema: z.ZodObject<{
|
|
|
564
587
|
activity_scene_ref: z.ZodOptional<z.ZodString>;
|
|
565
588
|
}, z.core.$loose>;
|
|
566
589
|
export type ActivityScene = z.infer<typeof ActivitySceneSchema>;
|
|
567
|
-
/**
|
|
590
|
+
/** The server-owned result-review lifecycle (TAL-1022). */
|
|
591
|
+
export declare const BackgroundReviewStateSchema: z.ZodEnum<{
|
|
592
|
+
unknown: "unknown";
|
|
593
|
+
failed: "failed";
|
|
594
|
+
waiting: "waiting";
|
|
595
|
+
reviewing: "reviewing";
|
|
596
|
+
reviewed: "reviewed";
|
|
597
|
+
}>;
|
|
598
|
+
export type BackgroundReviewState = z.infer<typeof BackgroundReviewStateSchema>;
|
|
599
|
+
/** One finished background item (see `_background_update.lines`). */
|
|
568
600
|
export declare const BackgroundLineSchema: z.ZodObject<{
|
|
569
601
|
kind: z.ZodEnum<{
|
|
570
602
|
command: "command";
|
|
@@ -572,12 +604,19 @@ export declare const BackgroundLineSchema: z.ZodObject<{
|
|
|
572
604
|
other: "other";
|
|
573
605
|
}>;
|
|
574
606
|
status: z.ZodEnum<{
|
|
575
|
-
completed: "completed";
|
|
576
607
|
failed: "failed";
|
|
608
|
+
completed: "completed";
|
|
577
609
|
notice: "notice";
|
|
578
610
|
}>;
|
|
579
611
|
label: z.ZodString;
|
|
580
612
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
613
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
614
|
+
unknown: "unknown";
|
|
615
|
+
failed: "failed";
|
|
616
|
+
waiting: "waiting";
|
|
617
|
+
reviewing: "reviewing";
|
|
618
|
+
reviewed: "reviewed";
|
|
619
|
+
}>>;
|
|
581
620
|
}, z.core.$strip>;
|
|
582
621
|
export type BackgroundLine = z.infer<typeof BackgroundLineSchema>;
|
|
583
622
|
export declare const MessageSchema: z.ZodObject<{
|
|
@@ -624,7 +663,12 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
624
663
|
cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
625
664
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
626
665
|
event_type: z.ZodOptional<z.ZodString>;
|
|
666
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
667
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
668
|
+
message: z.ZodNullable<z.ZodString>;
|
|
669
|
+
}, z.core.$strip>>>;
|
|
627
670
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
671
|
+
memory: "memory";
|
|
628
672
|
unknown: "unknown";
|
|
629
673
|
shell: "shell";
|
|
630
674
|
read: "read";
|
|
@@ -633,7 +677,6 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
633
677
|
web: "web";
|
|
634
678
|
write: "write";
|
|
635
679
|
skill: "skill";
|
|
636
|
-
memory: "memory";
|
|
637
680
|
delegate: "delegate";
|
|
638
681
|
}>>;
|
|
639
682
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -677,10 +720,10 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
677
720
|
row_id: z.ZodString;
|
|
678
721
|
order_index: z.ZodNumber;
|
|
679
722
|
role: z.ZodEnum<{
|
|
680
|
-
|
|
723
|
+
steering: "steering";
|
|
681
724
|
tool: "tool";
|
|
725
|
+
reasoning: "reasoning";
|
|
682
726
|
prose: "prose";
|
|
683
|
-
steering: "steering";
|
|
684
727
|
}>;
|
|
685
728
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
686
729
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -717,10 +760,10 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
717
760
|
task_ids: z.ZodArray<z.ZodString>;
|
|
718
761
|
status: z.ZodEnum<{
|
|
719
762
|
unknown: "unknown";
|
|
763
|
+
running: "running";
|
|
720
764
|
cancelled: "cancelled";
|
|
721
|
-
completed: "completed";
|
|
722
765
|
failed: "failed";
|
|
723
|
-
|
|
766
|
+
completed: "completed";
|
|
724
767
|
attention: "attention";
|
|
725
768
|
}>;
|
|
726
769
|
agents: z.ZodObject<{
|
|
@@ -732,7 +775,12 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
732
775
|
}, z.core.$strip>>;
|
|
733
776
|
result_truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
734
777
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
778
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
779
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
780
|
+
message: z.ZodNullable<z.ZodString>;
|
|
781
|
+
}, z.core.$strip>>>;
|
|
735
782
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
783
|
+
memory: "memory";
|
|
736
784
|
unknown: "unknown";
|
|
737
785
|
shell: "shell";
|
|
738
786
|
read: "read";
|
|
@@ -741,7 +789,6 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
741
789
|
web: "web";
|
|
742
790
|
write: "write";
|
|
743
791
|
skill: "skill";
|
|
744
|
-
memory: "memory";
|
|
745
792
|
delegate: "delegate";
|
|
746
793
|
}>>;
|
|
747
794
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -861,19 +908,45 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
861
908
|
other: "other";
|
|
862
909
|
}>;
|
|
863
910
|
status: z.ZodEnum<{
|
|
864
|
-
completed: "completed";
|
|
865
911
|
failed: "failed";
|
|
912
|
+
completed: "completed";
|
|
866
913
|
notice: "notice";
|
|
867
914
|
}>;
|
|
868
915
|
label: z.ZodString;
|
|
869
916
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
917
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
918
|
+
unknown: "unknown";
|
|
919
|
+
failed: "failed";
|
|
920
|
+
waiting: "waiting";
|
|
921
|
+
reviewing: "reviewing";
|
|
922
|
+
reviewed: "reviewed";
|
|
923
|
+
}>>;
|
|
870
924
|
}, z.core.$strip>>;
|
|
925
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
926
|
+
unknown: "unknown";
|
|
927
|
+
failed: "failed";
|
|
928
|
+
waiting: "waiting";
|
|
929
|
+
reviewing: "reviewing";
|
|
930
|
+
reviewed: "reviewed";
|
|
931
|
+
}>>;
|
|
871
932
|
}, z.core.$strip>>;
|
|
872
933
|
_marker_kind: z.ZodOptional<z.ZodEnum<{
|
|
873
934
|
context_compaction: "context_compaction";
|
|
874
935
|
preserved_task_list: "preserved_task_list";
|
|
875
936
|
}>>;
|
|
876
937
|
_marker_body: z.ZodOptional<z.ZodString>;
|
|
938
|
+
_notice_kind: z.ZodOptional<z.ZodEnum<{
|
|
939
|
+
failed_turn: "failed_turn";
|
|
940
|
+
session_finalize: "session_finalize";
|
|
941
|
+
}>>;
|
|
942
|
+
_delivery: z.ZodOptional<z.ZodObject<{
|
|
943
|
+
kind: z.ZodEnum<{
|
|
944
|
+
webhook: "webhook";
|
|
945
|
+
cron: "cron";
|
|
946
|
+
}>;
|
|
947
|
+
name: z.ZodString;
|
|
948
|
+
body: z.ZodString;
|
|
949
|
+
}, z.core.$strip>>;
|
|
877
950
|
_background_reply: z.ZodOptional<z.ZodBoolean>;
|
|
878
951
|
_background_silent: z.ZodOptional<z.ZodBoolean>;
|
|
879
952
|
_display: z.ZodOptional<z.ZodEnum<{
|
|
@@ -906,6 +979,40 @@ export declare const PendingSteerSchema: z.ZodObject<{
|
|
|
906
979
|
}, z.core.$strip>;
|
|
907
980
|
}, z.core.$strip>;
|
|
908
981
|
export type PendingSteer = z.infer<typeof PendingSteerSchema>;
|
|
982
|
+
/**
|
|
983
|
+
* TAL-803: an out-of-band notice the Agent raised for the session (a memory provider that failed to load, credit and
|
|
984
|
+
* usage warnings), one per `key`. The server keeps it until the Agent clears that key, `expires_at` passes, or a new agent
|
|
985
|
+
* replaces the one that raised it.
|
|
986
|
+
*/
|
|
987
|
+
export declare const SessionNoticeSchema: z.ZodObject<{
|
|
988
|
+
key: z.ZodString;
|
|
989
|
+
level: z.ZodEnum<{
|
|
990
|
+
error: "error";
|
|
991
|
+
success: "success";
|
|
992
|
+
info: "info";
|
|
993
|
+
warn: "warn";
|
|
994
|
+
}>;
|
|
995
|
+
text: z.ZodString;
|
|
996
|
+
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
997
|
+
}, z.core.$strip>;
|
|
998
|
+
export type SessionNotice = z.infer<typeof SessionNoticeSchema>;
|
|
999
|
+
/**
|
|
1000
|
+
* TAL-808: the session's standing `/goal` while it runs, from the Agent's goal state. `parked` is an active goal waiting on
|
|
1001
|
+
* a process or a timer; `reason` is why it is paused or what it waits on. A done, cleared or absent goal is null.
|
|
1002
|
+
*/
|
|
1003
|
+
export declare const SessionGoalSchema: z.ZodObject<{
|
|
1004
|
+
text: z.ZodString;
|
|
1005
|
+
status: z.ZodEnum<{
|
|
1006
|
+
active: "active";
|
|
1007
|
+
parked: "parked";
|
|
1008
|
+
paused: "paused";
|
|
1009
|
+
}>;
|
|
1010
|
+
turns_used: z.ZodNumber;
|
|
1011
|
+
max_turns: z.ZodNumber;
|
|
1012
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1013
|
+
parked_until: z.ZodNullable<z.ZodNumber>;
|
|
1014
|
+
}, z.core.$strip>;
|
|
1015
|
+
export type SessionGoal = z.infer<typeof SessionGoalSchema>;
|
|
909
1016
|
/**
|
|
910
1017
|
* TAL-299: the context ring, computed by the server. `context_used_tokens` is the post-compression estimate, else the last
|
|
911
1018
|
* prompt (never the cumulative `input_tokens`); `context_window_tokens` is the model's window. The percents are rounded
|
|
@@ -919,11 +1026,11 @@ export declare const ContextUsageFields: {
|
|
|
919
1026
|
};
|
|
920
1027
|
export declare const SourceKindSchema: z.ZodEnum<{
|
|
921
1028
|
other: "other";
|
|
1029
|
+
webhook: "webhook";
|
|
1030
|
+
cron: "cron";
|
|
922
1031
|
webui: "webui";
|
|
923
1032
|
cli: "cli";
|
|
924
1033
|
messaging: "messaging";
|
|
925
|
-
cron: "cron";
|
|
926
|
-
webhook: "webhook";
|
|
927
1034
|
subagent: "subagent";
|
|
928
1035
|
claude_code: "claude_code";
|
|
929
1036
|
kanban: "kanban";
|
|
@@ -947,6 +1054,11 @@ export declare const BranchedFromSchema: z.ZodObject<{
|
|
|
947
1054
|
export type BranchedFrom = z.infer<typeof BranchedFromSchema>;
|
|
948
1055
|
/** Full session record from `GET /api/session` and mutations returning `session`. */
|
|
949
1056
|
export declare const SessionSchema: z.ZodObject<{
|
|
1057
|
+
execution_mode: z.ZodOptional<z.ZodEnum<{
|
|
1058
|
+
normal: "normal";
|
|
1059
|
+
ignore_config: "ignore_config";
|
|
1060
|
+
safe: "safe";
|
|
1061
|
+
}>>;
|
|
950
1062
|
enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
951
1063
|
composer_draft: z.ZodOptional<z.ZodObject<{
|
|
952
1064
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -955,11 +1067,11 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
955
1067
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
956
1068
|
source_kind: z.ZodEnum<{
|
|
957
1069
|
other: "other";
|
|
1070
|
+
webhook: "webhook";
|
|
1071
|
+
cron: "cron";
|
|
958
1072
|
webui: "webui";
|
|
959
1073
|
cli: "cli";
|
|
960
1074
|
messaging: "messaging";
|
|
961
|
-
cron: "cron";
|
|
962
|
-
webhook: "webhook";
|
|
963
1075
|
subagent: "subagent";
|
|
964
1076
|
claude_code: "claude_code";
|
|
965
1077
|
kanban: "kanban";
|
|
@@ -968,6 +1080,76 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
968
1080
|
is_messaging_session: z.ZodBoolean;
|
|
969
1081
|
sort_ts: z.ZodNumber;
|
|
970
1082
|
read_only: z.ZodBoolean;
|
|
1083
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1084
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
1085
|
+
state: z.ZodEnum<{
|
|
1086
|
+
unavailable: "unavailable";
|
|
1087
|
+
refused: "refused";
|
|
1088
|
+
attached: "attached";
|
|
1089
|
+
stopped: "stopped";
|
|
1090
|
+
incompatible: "incompatible";
|
|
1091
|
+
}>;
|
|
1092
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1093
|
+
can_submit: z.ZodBoolean;
|
|
1094
|
+
can_interrupt: z.ZodBoolean;
|
|
1095
|
+
can_attach: z.ZodBoolean;
|
|
1096
|
+
restarting: z.ZodBoolean;
|
|
1097
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
1098
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1099
|
+
model_change: z.ZodOptional<z.ZodObject<{
|
|
1100
|
+
state: z.ZodEnum<{
|
|
1101
|
+
applied: "applied";
|
|
1102
|
+
deferred: "deferred";
|
|
1103
|
+
confirmation_required: "confirmation_required";
|
|
1104
|
+
refused: "refused";
|
|
1105
|
+
}>;
|
|
1106
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1107
|
+
confirm: z.ZodOptional<z.ZodString>;
|
|
1108
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1109
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1110
|
+
}, z.core.$strip>>;
|
|
1111
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1112
|
+
admission_id: z.ZodString;
|
|
1113
|
+
sequence: z.ZodNumber;
|
|
1114
|
+
status: z.ZodEnum<{
|
|
1115
|
+
unknown: "unknown";
|
|
1116
|
+
queued: "queued";
|
|
1117
|
+
started: "started";
|
|
1118
|
+
terminal: "terminal";
|
|
1119
|
+
}>;
|
|
1120
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
1121
|
+
authority_epoch: z.ZodNumber;
|
|
1122
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1123
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1124
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
1125
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1126
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
1127
|
+
}, z.core.$strip>>>;
|
|
1128
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
1129
|
+
admission_id: z.ZodString;
|
|
1130
|
+
sequence: z.ZodNumber;
|
|
1131
|
+
status: z.ZodEnum<{
|
|
1132
|
+
unknown: "unknown";
|
|
1133
|
+
queued: "queued";
|
|
1134
|
+
started: "started";
|
|
1135
|
+
terminal: "terminal";
|
|
1136
|
+
}>;
|
|
1137
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
1138
|
+
authority_epoch: z.ZodNumber;
|
|
1139
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1140
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1141
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
1142
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1143
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
1144
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
1145
|
+
cancel: "cancel";
|
|
1146
|
+
discard: "discard";
|
|
1147
|
+
retry: "retry";
|
|
1148
|
+
steer: "steer";
|
|
1149
|
+
edit: "edit";
|
|
1150
|
+
}>>;
|
|
1151
|
+
}, z.core.$strip>>;
|
|
1152
|
+
}, z.core.$strip>>;
|
|
971
1153
|
can_branch: z.ZodBoolean;
|
|
972
1154
|
can_pin: z.ZodBoolean;
|
|
973
1155
|
can_archive: z.ZodBoolean;
|
|
@@ -975,6 +1157,7 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
975
1157
|
can_duplicate: z.ZodBoolean;
|
|
976
1158
|
source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
977
1159
|
can_compress: z.ZodOptional<z.ZodBoolean>;
|
|
1160
|
+
confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
|
|
978
1161
|
source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
979
1162
|
session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
980
1163
|
raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -982,6 +1165,7 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
982
1165
|
worktree_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
983
1166
|
worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
984
1167
|
worktree_repo_root: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1168
|
+
worktree_retained: z.ZodOptional<z.ZodLiteral<true>>;
|
|
985
1169
|
share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
986
1170
|
share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
987
1171
|
share_created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1014,6 +1198,8 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1014
1198
|
context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1015
1199
|
context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1016
1200
|
context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1201
|
+
context_detail_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1202
|
+
composer_state_key: z.ZodOptional<z.ZodString>;
|
|
1017
1203
|
session_id: z.ZodString;
|
|
1018
1204
|
title: z.ZodString;
|
|
1019
1205
|
workspace: z.ZodOptional<z.ZodString>;
|
|
@@ -1065,7 +1251,12 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1065
1251
|
cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1066
1252
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1067
1253
|
event_type: z.ZodOptional<z.ZodString>;
|
|
1254
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1255
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
1256
|
+
message: z.ZodNullable<z.ZodString>;
|
|
1257
|
+
}, z.core.$strip>>>;
|
|
1068
1258
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1259
|
+
memory: "memory";
|
|
1069
1260
|
unknown: "unknown";
|
|
1070
1261
|
shell: "shell";
|
|
1071
1262
|
read: "read";
|
|
@@ -1074,7 +1265,6 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1074
1265
|
web: "web";
|
|
1075
1266
|
write: "write";
|
|
1076
1267
|
skill: "skill";
|
|
1077
|
-
memory: "memory";
|
|
1078
1268
|
delegate: "delegate";
|
|
1079
1269
|
}>>;
|
|
1080
1270
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1118,10 +1308,10 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1118
1308
|
row_id: z.ZodString;
|
|
1119
1309
|
order_index: z.ZodNumber;
|
|
1120
1310
|
role: z.ZodEnum<{
|
|
1121
|
-
|
|
1311
|
+
steering: "steering";
|
|
1122
1312
|
tool: "tool";
|
|
1313
|
+
reasoning: "reasoning";
|
|
1123
1314
|
prose: "prose";
|
|
1124
|
-
steering: "steering";
|
|
1125
1315
|
}>;
|
|
1126
1316
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
1127
1317
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -1158,10 +1348,10 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1158
1348
|
task_ids: z.ZodArray<z.ZodString>;
|
|
1159
1349
|
status: z.ZodEnum<{
|
|
1160
1350
|
unknown: "unknown";
|
|
1351
|
+
running: "running";
|
|
1161
1352
|
cancelled: "cancelled";
|
|
1162
|
-
completed: "completed";
|
|
1163
1353
|
failed: "failed";
|
|
1164
|
-
|
|
1354
|
+
completed: "completed";
|
|
1165
1355
|
attention: "attention";
|
|
1166
1356
|
}>;
|
|
1167
1357
|
agents: z.ZodObject<{
|
|
@@ -1173,7 +1363,12 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1173
1363
|
}, z.core.$strip>>;
|
|
1174
1364
|
result_truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1175
1365
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1366
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1367
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
1368
|
+
message: z.ZodNullable<z.ZodString>;
|
|
1369
|
+
}, z.core.$strip>>>;
|
|
1176
1370
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1371
|
+
memory: "memory";
|
|
1177
1372
|
unknown: "unknown";
|
|
1178
1373
|
shell: "shell";
|
|
1179
1374
|
read: "read";
|
|
@@ -1182,7 +1377,6 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1182
1377
|
web: "web";
|
|
1183
1378
|
write: "write";
|
|
1184
1379
|
skill: "skill";
|
|
1185
|
-
memory: "memory";
|
|
1186
1380
|
delegate: "delegate";
|
|
1187
1381
|
}>>;
|
|
1188
1382
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1302,19 +1496,45 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1302
1496
|
other: "other";
|
|
1303
1497
|
}>;
|
|
1304
1498
|
status: z.ZodEnum<{
|
|
1305
|
-
completed: "completed";
|
|
1306
1499
|
failed: "failed";
|
|
1500
|
+
completed: "completed";
|
|
1307
1501
|
notice: "notice";
|
|
1308
1502
|
}>;
|
|
1309
1503
|
label: z.ZodString;
|
|
1310
1504
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1505
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
1506
|
+
unknown: "unknown";
|
|
1507
|
+
failed: "failed";
|
|
1508
|
+
waiting: "waiting";
|
|
1509
|
+
reviewing: "reviewing";
|
|
1510
|
+
reviewed: "reviewed";
|
|
1511
|
+
}>>;
|
|
1311
1512
|
}, z.core.$strip>>;
|
|
1513
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
1514
|
+
unknown: "unknown";
|
|
1515
|
+
failed: "failed";
|
|
1516
|
+
waiting: "waiting";
|
|
1517
|
+
reviewing: "reviewing";
|
|
1518
|
+
reviewed: "reviewed";
|
|
1519
|
+
}>>;
|
|
1312
1520
|
}, z.core.$strip>>;
|
|
1313
1521
|
_marker_kind: z.ZodOptional<z.ZodEnum<{
|
|
1314
1522
|
context_compaction: "context_compaction";
|
|
1315
1523
|
preserved_task_list: "preserved_task_list";
|
|
1316
1524
|
}>>;
|
|
1317
1525
|
_marker_body: z.ZodOptional<z.ZodString>;
|
|
1526
|
+
_notice_kind: z.ZodOptional<z.ZodEnum<{
|
|
1527
|
+
failed_turn: "failed_turn";
|
|
1528
|
+
session_finalize: "session_finalize";
|
|
1529
|
+
}>>;
|
|
1530
|
+
_delivery: z.ZodOptional<z.ZodObject<{
|
|
1531
|
+
kind: z.ZodEnum<{
|
|
1532
|
+
webhook: "webhook";
|
|
1533
|
+
cron: "cron";
|
|
1534
|
+
}>;
|
|
1535
|
+
name: z.ZodString;
|
|
1536
|
+
body: z.ZodString;
|
|
1537
|
+
}, z.core.$strip>>;
|
|
1318
1538
|
_background_reply: z.ZodOptional<z.ZodBoolean>;
|
|
1319
1539
|
_background_silent: z.ZodOptional<z.ZodBoolean>;
|
|
1320
1540
|
_display: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1349,7 +1569,12 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1349
1569
|
cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1350
1570
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1351
1571
|
event_type: z.ZodOptional<z.ZodString>;
|
|
1572
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1573
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
1574
|
+
message: z.ZodNullable<z.ZodString>;
|
|
1575
|
+
}, z.core.$strip>>>;
|
|
1352
1576
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1577
|
+
memory: "memory";
|
|
1353
1578
|
unknown: "unknown";
|
|
1354
1579
|
shell: "shell";
|
|
1355
1580
|
read: "read";
|
|
@@ -1358,7 +1583,6 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1358
1583
|
web: "web";
|
|
1359
1584
|
write: "write";
|
|
1360
1585
|
skill: "skill";
|
|
1361
|
-
memory: "memory";
|
|
1362
1586
|
delegate: "delegate";
|
|
1363
1587
|
}>>;
|
|
1364
1588
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1423,6 +1647,50 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1423
1647
|
send_now: z.ZodBoolean;
|
|
1424
1648
|
}, z.core.$strip>;
|
|
1425
1649
|
}, z.core.$strip>>>;
|
|
1650
|
+
run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1651
|
+
phase: z.ZodLiteral<"compressing">;
|
|
1652
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1653
|
+
phase: z.ZodLiteral<"rate_limit_wait">;
|
|
1654
|
+
wait: z.ZodObject<{
|
|
1655
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
1656
|
+
provider_label: z.ZodNullable<z.ZodString>;
|
|
1657
|
+
until: z.ZodNumber;
|
|
1658
|
+
until_kind: z.ZodEnum<{
|
|
1659
|
+
reset: "reset";
|
|
1660
|
+
retry: "retry";
|
|
1661
|
+
}>;
|
|
1662
|
+
}, z.core.$strip>;
|
|
1663
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1664
|
+
phase: z.ZodLiteral<"prompt_reading">;
|
|
1665
|
+
progress_percent: z.ZodNullable<z.ZodNumber>;
|
|
1666
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1667
|
+
phase: z.ZodLiteral<"working">;
|
|
1668
|
+
}, z.core.$strip>], "phase">>>;
|
|
1669
|
+
compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1670
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1671
|
+
key: z.ZodString;
|
|
1672
|
+
level: z.ZodEnum<{
|
|
1673
|
+
error: "error";
|
|
1674
|
+
success: "success";
|
|
1675
|
+
info: "info";
|
|
1676
|
+
warn: "warn";
|
|
1677
|
+
}>;
|
|
1678
|
+
text: z.ZodString;
|
|
1679
|
+
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
1680
|
+
}, z.core.$strip>>>;
|
|
1681
|
+
goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1682
|
+
text: z.ZodString;
|
|
1683
|
+
status: z.ZodEnum<{
|
|
1684
|
+
active: "active";
|
|
1685
|
+
parked: "parked";
|
|
1686
|
+
paused: "paused";
|
|
1687
|
+
}>;
|
|
1688
|
+
turns_used: z.ZodNumber;
|
|
1689
|
+
max_turns: z.ZodNumber;
|
|
1690
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1691
|
+
parked_until: z.ZodNullable<z.ZodNumber>;
|
|
1692
|
+
}, z.core.$strip>>>;
|
|
1693
|
+
automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
|
|
1426
1694
|
has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
1427
1695
|
pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1428
1696
|
pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1444,6 +1712,11 @@ export declare const SessionSchema: z.ZodObject<{
|
|
|
1444
1712
|
export type Session = z.infer<typeof SessionSchema>;
|
|
1445
1713
|
export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
1446
1714
|
session: z.ZodObject<{
|
|
1715
|
+
execution_mode: z.ZodOptional<z.ZodEnum<{
|
|
1716
|
+
normal: "normal";
|
|
1717
|
+
ignore_config: "ignore_config";
|
|
1718
|
+
safe: "safe";
|
|
1719
|
+
}>>;
|
|
1447
1720
|
enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1448
1721
|
composer_draft: z.ZodOptional<z.ZodObject<{
|
|
1449
1722
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -1452,11 +1725,11 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1452
1725
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
1453
1726
|
source_kind: z.ZodEnum<{
|
|
1454
1727
|
other: "other";
|
|
1728
|
+
webhook: "webhook";
|
|
1729
|
+
cron: "cron";
|
|
1455
1730
|
webui: "webui";
|
|
1456
1731
|
cli: "cli";
|
|
1457
1732
|
messaging: "messaging";
|
|
1458
|
-
cron: "cron";
|
|
1459
|
-
webhook: "webhook";
|
|
1460
1733
|
subagent: "subagent";
|
|
1461
1734
|
claude_code: "claude_code";
|
|
1462
1735
|
kanban: "kanban";
|
|
@@ -1465,6 +1738,76 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1465
1738
|
is_messaging_session: z.ZodBoolean;
|
|
1466
1739
|
sort_ts: z.ZodNumber;
|
|
1467
1740
|
read_only: z.ZodBoolean;
|
|
1741
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1742
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
1743
|
+
state: z.ZodEnum<{
|
|
1744
|
+
unavailable: "unavailable";
|
|
1745
|
+
refused: "refused";
|
|
1746
|
+
attached: "attached";
|
|
1747
|
+
stopped: "stopped";
|
|
1748
|
+
incompatible: "incompatible";
|
|
1749
|
+
}>;
|
|
1750
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
1751
|
+
can_submit: z.ZodBoolean;
|
|
1752
|
+
can_interrupt: z.ZodBoolean;
|
|
1753
|
+
can_attach: z.ZodBoolean;
|
|
1754
|
+
restarting: z.ZodBoolean;
|
|
1755
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
1756
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1757
|
+
model_change: z.ZodOptional<z.ZodObject<{
|
|
1758
|
+
state: z.ZodEnum<{
|
|
1759
|
+
applied: "applied";
|
|
1760
|
+
deferred: "deferred";
|
|
1761
|
+
confirmation_required: "confirmation_required";
|
|
1762
|
+
refused: "refused";
|
|
1763
|
+
}>;
|
|
1764
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1765
|
+
confirm: z.ZodOptional<z.ZodString>;
|
|
1766
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1767
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1768
|
+
}, z.core.$strip>>;
|
|
1769
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1770
|
+
admission_id: z.ZodString;
|
|
1771
|
+
sequence: z.ZodNumber;
|
|
1772
|
+
status: z.ZodEnum<{
|
|
1773
|
+
unknown: "unknown";
|
|
1774
|
+
queued: "queued";
|
|
1775
|
+
started: "started";
|
|
1776
|
+
terminal: "terminal";
|
|
1777
|
+
}>;
|
|
1778
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
1779
|
+
authority_epoch: z.ZodNumber;
|
|
1780
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1781
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1782
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
1783
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1784
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
1785
|
+
}, z.core.$strip>>>;
|
|
1786
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
1787
|
+
admission_id: z.ZodString;
|
|
1788
|
+
sequence: z.ZodNumber;
|
|
1789
|
+
status: z.ZodEnum<{
|
|
1790
|
+
unknown: "unknown";
|
|
1791
|
+
queued: "queued";
|
|
1792
|
+
started: "started";
|
|
1793
|
+
terminal: "terminal";
|
|
1794
|
+
}>;
|
|
1795
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
1796
|
+
authority_epoch: z.ZodNumber;
|
|
1797
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
1798
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1799
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
1800
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1801
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
1802
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
1803
|
+
cancel: "cancel";
|
|
1804
|
+
discard: "discard";
|
|
1805
|
+
retry: "retry";
|
|
1806
|
+
steer: "steer";
|
|
1807
|
+
edit: "edit";
|
|
1808
|
+
}>>;
|
|
1809
|
+
}, z.core.$strip>>;
|
|
1810
|
+
}, z.core.$strip>>;
|
|
1468
1811
|
can_branch: z.ZodBoolean;
|
|
1469
1812
|
can_pin: z.ZodBoolean;
|
|
1470
1813
|
can_archive: z.ZodBoolean;
|
|
@@ -1472,6 +1815,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1472
1815
|
can_duplicate: z.ZodBoolean;
|
|
1473
1816
|
source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1474
1817
|
can_compress: z.ZodOptional<z.ZodBoolean>;
|
|
1818
|
+
confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
|
|
1475
1819
|
source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1476
1820
|
session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1477
1821
|
raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1479,6 +1823,7 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1479
1823
|
worktree_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1480
1824
|
worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1481
1825
|
worktree_repo_root: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1826
|
+
worktree_retained: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1482
1827
|
share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1483
1828
|
share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1484
1829
|
share_created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1511,6 +1856,8 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1511
1856
|
context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1512
1857
|
context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1513
1858
|
context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1859
|
+
context_detail_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1860
|
+
composer_state_key: z.ZodOptional<z.ZodString>;
|
|
1514
1861
|
session_id: z.ZodString;
|
|
1515
1862
|
title: z.ZodString;
|
|
1516
1863
|
workspace: z.ZodOptional<z.ZodString>;
|
|
@@ -1562,7 +1909,12 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1562
1909
|
cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1563
1910
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1564
1911
|
event_type: z.ZodOptional<z.ZodString>;
|
|
1912
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1913
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
1914
|
+
message: z.ZodNullable<z.ZodString>;
|
|
1915
|
+
}, z.core.$strip>>>;
|
|
1565
1916
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
1917
|
+
memory: "memory";
|
|
1566
1918
|
unknown: "unknown";
|
|
1567
1919
|
shell: "shell";
|
|
1568
1920
|
read: "read";
|
|
@@ -1571,7 +1923,6 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1571
1923
|
web: "web";
|
|
1572
1924
|
write: "write";
|
|
1573
1925
|
skill: "skill";
|
|
1574
|
-
memory: "memory";
|
|
1575
1926
|
delegate: "delegate";
|
|
1576
1927
|
}>>;
|
|
1577
1928
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1615,10 +1966,10 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1615
1966
|
row_id: z.ZodString;
|
|
1616
1967
|
order_index: z.ZodNumber;
|
|
1617
1968
|
role: z.ZodEnum<{
|
|
1618
|
-
|
|
1969
|
+
steering: "steering";
|
|
1619
1970
|
tool: "tool";
|
|
1971
|
+
reasoning: "reasoning";
|
|
1620
1972
|
prose: "prose";
|
|
1621
|
-
steering: "steering";
|
|
1622
1973
|
}>;
|
|
1623
1974
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
1624
1975
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -1655,10 +2006,10 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1655
2006
|
task_ids: z.ZodArray<z.ZodString>;
|
|
1656
2007
|
status: z.ZodEnum<{
|
|
1657
2008
|
unknown: "unknown";
|
|
2009
|
+
running: "running";
|
|
1658
2010
|
cancelled: "cancelled";
|
|
1659
|
-
completed: "completed";
|
|
1660
2011
|
failed: "failed";
|
|
1661
|
-
|
|
2012
|
+
completed: "completed";
|
|
1662
2013
|
attention: "attention";
|
|
1663
2014
|
}>;
|
|
1664
2015
|
agents: z.ZodObject<{
|
|
@@ -1670,7 +2021,12 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1670
2021
|
}, z.core.$strip>>;
|
|
1671
2022
|
result_truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1672
2023
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2024
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2025
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
2026
|
+
message: z.ZodNullable<z.ZodString>;
|
|
2027
|
+
}, z.core.$strip>>>;
|
|
1673
2028
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
2029
|
+
memory: "memory";
|
|
1674
2030
|
unknown: "unknown";
|
|
1675
2031
|
shell: "shell";
|
|
1676
2032
|
read: "read";
|
|
@@ -1679,7 +2035,6 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1679
2035
|
web: "web";
|
|
1680
2036
|
write: "write";
|
|
1681
2037
|
skill: "skill";
|
|
1682
|
-
memory: "memory";
|
|
1683
2038
|
delegate: "delegate";
|
|
1684
2039
|
}>>;
|
|
1685
2040
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1799,19 +2154,45 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1799
2154
|
other: "other";
|
|
1800
2155
|
}>;
|
|
1801
2156
|
status: z.ZodEnum<{
|
|
1802
|
-
completed: "completed";
|
|
1803
2157
|
failed: "failed";
|
|
2158
|
+
completed: "completed";
|
|
1804
2159
|
notice: "notice";
|
|
1805
2160
|
}>;
|
|
1806
2161
|
label: z.ZodString;
|
|
1807
2162
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2163
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
2164
|
+
unknown: "unknown";
|
|
2165
|
+
failed: "failed";
|
|
2166
|
+
waiting: "waiting";
|
|
2167
|
+
reviewing: "reviewing";
|
|
2168
|
+
reviewed: "reviewed";
|
|
2169
|
+
}>>;
|
|
1808
2170
|
}, z.core.$strip>>;
|
|
2171
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
2172
|
+
unknown: "unknown";
|
|
2173
|
+
failed: "failed";
|
|
2174
|
+
waiting: "waiting";
|
|
2175
|
+
reviewing: "reviewing";
|
|
2176
|
+
reviewed: "reviewed";
|
|
2177
|
+
}>>;
|
|
1809
2178
|
}, z.core.$strip>>;
|
|
1810
2179
|
_marker_kind: z.ZodOptional<z.ZodEnum<{
|
|
1811
2180
|
context_compaction: "context_compaction";
|
|
1812
2181
|
preserved_task_list: "preserved_task_list";
|
|
1813
2182
|
}>>;
|
|
1814
2183
|
_marker_body: z.ZodOptional<z.ZodString>;
|
|
2184
|
+
_notice_kind: z.ZodOptional<z.ZodEnum<{
|
|
2185
|
+
failed_turn: "failed_turn";
|
|
2186
|
+
session_finalize: "session_finalize";
|
|
2187
|
+
}>>;
|
|
2188
|
+
_delivery: z.ZodOptional<z.ZodObject<{
|
|
2189
|
+
kind: z.ZodEnum<{
|
|
2190
|
+
webhook: "webhook";
|
|
2191
|
+
cron: "cron";
|
|
2192
|
+
}>;
|
|
2193
|
+
name: z.ZodString;
|
|
2194
|
+
body: z.ZodString;
|
|
2195
|
+
}, z.core.$strip>>;
|
|
1815
2196
|
_background_reply: z.ZodOptional<z.ZodBoolean>;
|
|
1816
2197
|
_background_silent: z.ZodOptional<z.ZodBoolean>;
|
|
1817
2198
|
_display: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1846,7 +2227,12 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1846
2227
|
cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1847
2228
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1848
2229
|
event_type: z.ZodOptional<z.ZodString>;
|
|
2230
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2231
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
2232
|
+
message: z.ZodNullable<z.ZodString>;
|
|
2233
|
+
}, z.core.$strip>>>;
|
|
1849
2234
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
2235
|
+
memory: "memory";
|
|
1850
2236
|
unknown: "unknown";
|
|
1851
2237
|
shell: "shell";
|
|
1852
2238
|
read: "read";
|
|
@@ -1855,7 +2241,6 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1855
2241
|
web: "web";
|
|
1856
2242
|
write: "write";
|
|
1857
2243
|
skill: "skill";
|
|
1858
|
-
memory: "memory";
|
|
1859
2244
|
delegate: "delegate";
|
|
1860
2245
|
}>>;
|
|
1861
2246
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1920,6 +2305,50 @@ export declare const SessionEnvelopeSchema: z.ZodObject<{
|
|
|
1920
2305
|
send_now: z.ZodBoolean;
|
|
1921
2306
|
}, z.core.$strip>;
|
|
1922
2307
|
}, z.core.$strip>>>;
|
|
2308
|
+
run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2309
|
+
phase: z.ZodLiteral<"compressing">;
|
|
2310
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2311
|
+
phase: z.ZodLiteral<"rate_limit_wait">;
|
|
2312
|
+
wait: z.ZodObject<{
|
|
2313
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
2314
|
+
provider_label: z.ZodNullable<z.ZodString>;
|
|
2315
|
+
until: z.ZodNumber;
|
|
2316
|
+
until_kind: z.ZodEnum<{
|
|
2317
|
+
reset: "reset";
|
|
2318
|
+
retry: "retry";
|
|
2319
|
+
}>;
|
|
2320
|
+
}, z.core.$strip>;
|
|
2321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2322
|
+
phase: z.ZodLiteral<"prompt_reading">;
|
|
2323
|
+
progress_percent: z.ZodNullable<z.ZodNumber>;
|
|
2324
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2325
|
+
phase: z.ZodLiteral<"working">;
|
|
2326
|
+
}, z.core.$strip>], "phase">>>;
|
|
2327
|
+
compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2328
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2329
|
+
key: z.ZodString;
|
|
2330
|
+
level: z.ZodEnum<{
|
|
2331
|
+
error: "error";
|
|
2332
|
+
success: "success";
|
|
2333
|
+
info: "info";
|
|
2334
|
+
warn: "warn";
|
|
2335
|
+
}>;
|
|
2336
|
+
text: z.ZodString;
|
|
2337
|
+
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
2338
|
+
}, z.core.$strip>>>;
|
|
2339
|
+
goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2340
|
+
text: z.ZodString;
|
|
2341
|
+
status: z.ZodEnum<{
|
|
2342
|
+
active: "active";
|
|
2343
|
+
parked: "parked";
|
|
2344
|
+
paused: "paused";
|
|
2345
|
+
}>;
|
|
2346
|
+
turns_used: z.ZodNumber;
|
|
2347
|
+
max_turns: z.ZodNumber;
|
|
2348
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2349
|
+
parked_until: z.ZodNullable<z.ZodNumber>;
|
|
2350
|
+
}, z.core.$strip>>>;
|
|
2351
|
+
automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
|
|
1923
2352
|
has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
1924
2353
|
pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1925
2354
|
pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1961,11 +2390,11 @@ export declare const SessionRowSchema: z.ZodObject<{
|
|
|
1961
2390
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
1962
2391
|
source_kind: z.ZodEnum<{
|
|
1963
2392
|
other: "other";
|
|
2393
|
+
webhook: "webhook";
|
|
2394
|
+
cron: "cron";
|
|
1964
2395
|
webui: "webui";
|
|
1965
2396
|
cli: "cli";
|
|
1966
2397
|
messaging: "messaging";
|
|
1967
|
-
cron: "cron";
|
|
1968
|
-
webhook: "webhook";
|
|
1969
2398
|
subagent: "subagent";
|
|
1970
2399
|
claude_code: "claude_code";
|
|
1971
2400
|
kanban: "kanban";
|
|
@@ -1975,33 +2404,118 @@ export declare const SessionRowSchema: z.ZodObject<{
|
|
|
1975
2404
|
sort_ts: z.ZodNumber;
|
|
1976
2405
|
cron_running: z.ZodOptional<z.ZodBoolean>;
|
|
1977
2406
|
read_only: z.ZodBoolean;
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
2407
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2408
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
2409
|
+
state: z.ZodEnum<{
|
|
2410
|
+
unavailable: "unavailable";
|
|
2411
|
+
refused: "refused";
|
|
2412
|
+
attached: "attached";
|
|
2413
|
+
stopped: "stopped";
|
|
2414
|
+
incompatible: "incompatible";
|
|
2415
|
+
}>;
|
|
2416
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2417
|
+
can_submit: z.ZodBoolean;
|
|
2418
|
+
can_interrupt: z.ZodBoolean;
|
|
2419
|
+
can_attach: z.ZodBoolean;
|
|
2420
|
+
restarting: z.ZodBoolean;
|
|
2421
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
2422
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2423
|
+
model_change: z.ZodOptional<z.ZodObject<{
|
|
2424
|
+
state: z.ZodEnum<{
|
|
2425
|
+
applied: "applied";
|
|
2426
|
+
deferred: "deferred";
|
|
2427
|
+
confirmation_required: "confirmation_required";
|
|
2428
|
+
refused: "refused";
|
|
2429
|
+
}>;
|
|
2430
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2431
|
+
confirm: z.ZodOptional<z.ZodString>;
|
|
2432
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2433
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2434
|
+
}, z.core.$strip>>;
|
|
2435
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2436
|
+
admission_id: z.ZodString;
|
|
2437
|
+
sequence: z.ZodNumber;
|
|
2438
|
+
status: z.ZodEnum<{
|
|
2439
|
+
unknown: "unknown";
|
|
2440
|
+
queued: "queued";
|
|
2441
|
+
started: "started";
|
|
2442
|
+
terminal: "terminal";
|
|
2443
|
+
}>;
|
|
2444
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2445
|
+
authority_epoch: z.ZodNumber;
|
|
2446
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2447
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2448
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
2449
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2450
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2451
|
+
}, z.core.$strip>>>;
|
|
2452
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
2453
|
+
admission_id: z.ZodString;
|
|
2454
|
+
sequence: z.ZodNumber;
|
|
2455
|
+
status: z.ZodEnum<{
|
|
2456
|
+
unknown: "unknown";
|
|
2457
|
+
queued: "queued";
|
|
2458
|
+
started: "started";
|
|
2459
|
+
terminal: "terminal";
|
|
2460
|
+
}>;
|
|
2461
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2462
|
+
authority_epoch: z.ZodNumber;
|
|
2463
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2464
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2465
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
2466
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2467
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2468
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
2469
|
+
cancel: "cancel";
|
|
2470
|
+
discard: "discard";
|
|
2471
|
+
retry: "retry";
|
|
2472
|
+
steer: "steer";
|
|
2473
|
+
edit: "edit";
|
|
2474
|
+
}>>;
|
|
2475
|
+
}, z.core.$strip>>;
|
|
2476
|
+
}, z.core.$strip>>;
|
|
2477
|
+
can_branch: z.ZodBoolean;
|
|
2478
|
+
can_pin: z.ZodBoolean;
|
|
2479
|
+
can_archive: z.ZodBoolean;
|
|
2480
|
+
can_delete: z.ZodBoolean;
|
|
2481
|
+
can_duplicate: z.ZodBoolean;
|
|
2482
|
+
attention: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2483
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
2484
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
2485
|
+
}, z.core.$loose>>>;
|
|
2486
|
+
source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2487
|
+
source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2488
|
+
session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2489
|
+
raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2490
|
+
parent_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2491
|
+
active_stream_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2492
|
+
share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2493
|
+
share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1995
2494
|
worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1996
2495
|
match_type: z.ZodOptional<z.ZodEnum<{
|
|
1997
|
-
title: "title";
|
|
1998
2496
|
content: "content";
|
|
2497
|
+
title: "title";
|
|
1999
2498
|
metadata: "metadata";
|
|
2000
2499
|
}>>;
|
|
2001
2500
|
match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2002
2501
|
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2003
2502
|
}, z.core.$loose>;
|
|
2004
2503
|
export type SessionRow = z.infer<typeof SessionRowSchema>;
|
|
2504
|
+
/**
|
|
2505
|
+
* TAL-785: whether the Agent's `state.db` could serve the Agent session rows. `corrupt`: SQLite reports the file
|
|
2506
|
+
* damaged; `unavailable`: it could not be read for another reason (permissions, a lock, an I/O error); `outdated`: a
|
|
2507
|
+
* readable database from an older hermes-agent. `reason` explains a degraded state.
|
|
2508
|
+
*/
|
|
2509
|
+
export declare const AgentStorageSchema: z.ZodObject<{
|
|
2510
|
+
state: z.ZodEnum<{
|
|
2511
|
+
unavailable: "unavailable";
|
|
2512
|
+
ok: "ok";
|
|
2513
|
+
corrupt: "corrupt";
|
|
2514
|
+
outdated: "outdated";
|
|
2515
|
+
}>;
|
|
2516
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2517
|
+
}, z.core.$strip>;
|
|
2518
|
+
export type AgentStorage = z.infer<typeof AgentStorageSchema>;
|
|
2005
2519
|
export declare const SessionsListSchema: z.ZodObject<{
|
|
2006
2520
|
sessions: z.ZodArray<z.ZodObject<{
|
|
2007
2521
|
context_used_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -2024,11 +2538,11 @@ export declare const SessionsListSchema: z.ZodObject<{
|
|
|
2024
2538
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
2025
2539
|
source_kind: z.ZodEnum<{
|
|
2026
2540
|
other: "other";
|
|
2541
|
+
webhook: "webhook";
|
|
2542
|
+
cron: "cron";
|
|
2027
2543
|
webui: "webui";
|
|
2028
2544
|
cli: "cli";
|
|
2029
2545
|
messaging: "messaging";
|
|
2030
|
-
cron: "cron";
|
|
2031
|
-
webhook: "webhook";
|
|
2032
2546
|
subagent: "subagent";
|
|
2033
2547
|
claude_code: "claude_code";
|
|
2034
2548
|
kanban: "kanban";
|
|
@@ -2038,6 +2552,76 @@ export declare const SessionsListSchema: z.ZodObject<{
|
|
|
2038
2552
|
sort_ts: z.ZodNumber;
|
|
2039
2553
|
cron_running: z.ZodOptional<z.ZodBoolean>;
|
|
2040
2554
|
read_only: z.ZodBoolean;
|
|
2555
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2556
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
2557
|
+
state: z.ZodEnum<{
|
|
2558
|
+
unavailable: "unavailable";
|
|
2559
|
+
refused: "refused";
|
|
2560
|
+
attached: "attached";
|
|
2561
|
+
stopped: "stopped";
|
|
2562
|
+
incompatible: "incompatible";
|
|
2563
|
+
}>;
|
|
2564
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2565
|
+
can_submit: z.ZodBoolean;
|
|
2566
|
+
can_interrupt: z.ZodBoolean;
|
|
2567
|
+
can_attach: z.ZodBoolean;
|
|
2568
|
+
restarting: z.ZodBoolean;
|
|
2569
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
2570
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2571
|
+
model_change: z.ZodOptional<z.ZodObject<{
|
|
2572
|
+
state: z.ZodEnum<{
|
|
2573
|
+
applied: "applied";
|
|
2574
|
+
deferred: "deferred";
|
|
2575
|
+
confirmation_required: "confirmation_required";
|
|
2576
|
+
refused: "refused";
|
|
2577
|
+
}>;
|
|
2578
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2579
|
+
confirm: z.ZodOptional<z.ZodString>;
|
|
2580
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2581
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2582
|
+
}, z.core.$strip>>;
|
|
2583
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2584
|
+
admission_id: z.ZodString;
|
|
2585
|
+
sequence: z.ZodNumber;
|
|
2586
|
+
status: z.ZodEnum<{
|
|
2587
|
+
unknown: "unknown";
|
|
2588
|
+
queued: "queued";
|
|
2589
|
+
started: "started";
|
|
2590
|
+
terminal: "terminal";
|
|
2591
|
+
}>;
|
|
2592
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2593
|
+
authority_epoch: z.ZodNumber;
|
|
2594
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2595
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2596
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
2597
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2598
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2599
|
+
}, z.core.$strip>>>;
|
|
2600
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
2601
|
+
admission_id: z.ZodString;
|
|
2602
|
+
sequence: z.ZodNumber;
|
|
2603
|
+
status: z.ZodEnum<{
|
|
2604
|
+
unknown: "unknown";
|
|
2605
|
+
queued: "queued";
|
|
2606
|
+
started: "started";
|
|
2607
|
+
terminal: "terminal";
|
|
2608
|
+
}>;
|
|
2609
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2610
|
+
authority_epoch: z.ZodNumber;
|
|
2611
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2612
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2613
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
2614
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2615
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2616
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
2617
|
+
cancel: "cancel";
|
|
2618
|
+
discard: "discard";
|
|
2619
|
+
retry: "retry";
|
|
2620
|
+
steer: "steer";
|
|
2621
|
+
edit: "edit";
|
|
2622
|
+
}>>;
|
|
2623
|
+
}, z.core.$strip>>;
|
|
2624
|
+
}, z.core.$strip>>;
|
|
2041
2625
|
can_branch: z.ZodBoolean;
|
|
2042
2626
|
can_pin: z.ZodBoolean;
|
|
2043
2627
|
can_archive: z.ZodBoolean;
|
|
@@ -2057,8 +2641,8 @@ export declare const SessionsListSchema: z.ZodObject<{
|
|
|
2057
2641
|
share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2058
2642
|
worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2059
2643
|
match_type: z.ZodOptional<z.ZodEnum<{
|
|
2060
|
-
title: "title";
|
|
2061
2644
|
content: "content";
|
|
2645
|
+
title: "title";
|
|
2062
2646
|
metadata: "metadata";
|
|
2063
2647
|
}>>;
|
|
2064
2648
|
match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2085,11 +2669,11 @@ export declare const SessionsListSchema: z.ZodObject<{
|
|
|
2085
2669
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
2086
2670
|
source_kind: z.ZodEnum<{
|
|
2087
2671
|
other: "other";
|
|
2672
|
+
webhook: "webhook";
|
|
2673
|
+
cron: "cron";
|
|
2088
2674
|
webui: "webui";
|
|
2089
2675
|
cli: "cli";
|
|
2090
2676
|
messaging: "messaging";
|
|
2091
|
-
cron: "cron";
|
|
2092
|
-
webhook: "webhook";
|
|
2093
2677
|
subagent: "subagent";
|
|
2094
2678
|
claude_code: "claude_code";
|
|
2095
2679
|
kanban: "kanban";
|
|
@@ -2099,6 +2683,76 @@ export declare const SessionsListSchema: z.ZodObject<{
|
|
|
2099
2683
|
sort_ts: z.ZodNumber;
|
|
2100
2684
|
cron_running: z.ZodOptional<z.ZodBoolean>;
|
|
2101
2685
|
read_only: z.ZodBoolean;
|
|
2686
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2687
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
2688
|
+
state: z.ZodEnum<{
|
|
2689
|
+
unavailable: "unavailable";
|
|
2690
|
+
refused: "refused";
|
|
2691
|
+
attached: "attached";
|
|
2692
|
+
stopped: "stopped";
|
|
2693
|
+
incompatible: "incompatible";
|
|
2694
|
+
}>;
|
|
2695
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2696
|
+
can_submit: z.ZodBoolean;
|
|
2697
|
+
can_interrupt: z.ZodBoolean;
|
|
2698
|
+
can_attach: z.ZodBoolean;
|
|
2699
|
+
restarting: z.ZodBoolean;
|
|
2700
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
2701
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2702
|
+
model_change: z.ZodOptional<z.ZodObject<{
|
|
2703
|
+
state: z.ZodEnum<{
|
|
2704
|
+
applied: "applied";
|
|
2705
|
+
deferred: "deferred";
|
|
2706
|
+
confirmation_required: "confirmation_required";
|
|
2707
|
+
refused: "refused";
|
|
2708
|
+
}>;
|
|
2709
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2710
|
+
confirm: z.ZodOptional<z.ZodString>;
|
|
2711
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2712
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2713
|
+
}, z.core.$strip>>;
|
|
2714
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2715
|
+
admission_id: z.ZodString;
|
|
2716
|
+
sequence: z.ZodNumber;
|
|
2717
|
+
status: z.ZodEnum<{
|
|
2718
|
+
unknown: "unknown";
|
|
2719
|
+
queued: "queued";
|
|
2720
|
+
started: "started";
|
|
2721
|
+
terminal: "terminal";
|
|
2722
|
+
}>;
|
|
2723
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2724
|
+
authority_epoch: z.ZodNumber;
|
|
2725
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2726
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2727
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
2728
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2729
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2730
|
+
}, z.core.$strip>>>;
|
|
2731
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
2732
|
+
admission_id: z.ZodString;
|
|
2733
|
+
sequence: z.ZodNumber;
|
|
2734
|
+
status: z.ZodEnum<{
|
|
2735
|
+
unknown: "unknown";
|
|
2736
|
+
queued: "queued";
|
|
2737
|
+
started: "started";
|
|
2738
|
+
terminal: "terminal";
|
|
2739
|
+
}>;
|
|
2740
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2741
|
+
authority_epoch: z.ZodNumber;
|
|
2742
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2743
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2744
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
2745
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2746
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2747
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
2748
|
+
cancel: "cancel";
|
|
2749
|
+
discard: "discard";
|
|
2750
|
+
retry: "retry";
|
|
2751
|
+
steer: "steer";
|
|
2752
|
+
edit: "edit";
|
|
2753
|
+
}>>;
|
|
2754
|
+
}, z.core.$strip>>;
|
|
2755
|
+
}, z.core.$strip>>;
|
|
2102
2756
|
can_branch: z.ZodBoolean;
|
|
2103
2757
|
can_pin: z.ZodBoolean;
|
|
2104
2758
|
can_archive: z.ZodBoolean;
|
|
@@ -2118,8 +2772,8 @@ export declare const SessionsListSchema: z.ZodObject<{
|
|
|
2118
2772
|
share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2119
2773
|
worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2120
2774
|
match_type: z.ZodOptional<z.ZodEnum<{
|
|
2121
|
-
title: "title";
|
|
2122
2775
|
content: "content";
|
|
2776
|
+
title: "title";
|
|
2123
2777
|
metadata: "metadata";
|
|
2124
2778
|
}>>;
|
|
2125
2779
|
match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2141,6 +2795,15 @@ export declare const SessionsListSchema: z.ZodObject<{
|
|
|
2141
2795
|
scheduled_sessions_truncated: z.ZodBoolean;
|
|
2142
2796
|
webhook_session_count: z.ZodNumber;
|
|
2143
2797
|
webhook_sessions_truncated: z.ZodBoolean;
|
|
2798
|
+
agent_storage: z.ZodObject<{
|
|
2799
|
+
state: z.ZodEnum<{
|
|
2800
|
+
unavailable: "unavailable";
|
|
2801
|
+
ok: "ok";
|
|
2802
|
+
corrupt: "corrupt";
|
|
2803
|
+
outdated: "outdated";
|
|
2804
|
+
}>;
|
|
2805
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2806
|
+
}, z.core.$strip>;
|
|
2144
2807
|
archived_limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2145
2808
|
archived_offset: z.ZodOptional<z.ZodNumber>;
|
|
2146
2809
|
}, z.core.$loose>;
|
|
@@ -2156,6 +2819,76 @@ export declare const SessionStatusSchema: z.ZodObject<{
|
|
|
2156
2819
|
agent_running: z.ZodBoolean;
|
|
2157
2820
|
is_streaming: z.ZodBoolean;
|
|
2158
2821
|
read_only: z.ZodBoolean;
|
|
2822
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2823
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
2824
|
+
state: z.ZodEnum<{
|
|
2825
|
+
unavailable: "unavailable";
|
|
2826
|
+
refused: "refused";
|
|
2827
|
+
attached: "attached";
|
|
2828
|
+
stopped: "stopped";
|
|
2829
|
+
incompatible: "incompatible";
|
|
2830
|
+
}>;
|
|
2831
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2832
|
+
can_submit: z.ZodBoolean;
|
|
2833
|
+
can_interrupt: z.ZodBoolean;
|
|
2834
|
+
can_attach: z.ZodBoolean;
|
|
2835
|
+
restarting: z.ZodBoolean;
|
|
2836
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
2837
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2838
|
+
model_change: z.ZodOptional<z.ZodObject<{
|
|
2839
|
+
state: z.ZodEnum<{
|
|
2840
|
+
applied: "applied";
|
|
2841
|
+
deferred: "deferred";
|
|
2842
|
+
confirmation_required: "confirmation_required";
|
|
2843
|
+
refused: "refused";
|
|
2844
|
+
}>;
|
|
2845
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2846
|
+
confirm: z.ZodOptional<z.ZodString>;
|
|
2847
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2848
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2849
|
+
}, z.core.$strip>>;
|
|
2850
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2851
|
+
admission_id: z.ZodString;
|
|
2852
|
+
sequence: z.ZodNumber;
|
|
2853
|
+
status: z.ZodEnum<{
|
|
2854
|
+
unknown: "unknown";
|
|
2855
|
+
queued: "queued";
|
|
2856
|
+
started: "started";
|
|
2857
|
+
terminal: "terminal";
|
|
2858
|
+
}>;
|
|
2859
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2860
|
+
authority_epoch: z.ZodNumber;
|
|
2861
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2862
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2863
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
2864
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2865
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2866
|
+
}, z.core.$strip>>>;
|
|
2867
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
2868
|
+
admission_id: z.ZodString;
|
|
2869
|
+
sequence: z.ZodNumber;
|
|
2870
|
+
status: z.ZodEnum<{
|
|
2871
|
+
unknown: "unknown";
|
|
2872
|
+
queued: "queued";
|
|
2873
|
+
started: "started";
|
|
2874
|
+
terminal: "terminal";
|
|
2875
|
+
}>;
|
|
2876
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2877
|
+
authority_epoch: z.ZodNumber;
|
|
2878
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2879
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2880
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
2881
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2882
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
2883
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
2884
|
+
cancel: "cancel";
|
|
2885
|
+
discard: "discard";
|
|
2886
|
+
retry: "retry";
|
|
2887
|
+
steer: "steer";
|
|
2888
|
+
edit: "edit";
|
|
2889
|
+
}>>;
|
|
2890
|
+
}, z.core.$strip>>;
|
|
2891
|
+
}, z.core.$strip>>;
|
|
2159
2892
|
message_count: z.ZodOptional<z.ZodNumber>;
|
|
2160
2893
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2161
2894
|
profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2197,7 +2930,9 @@ export declare const SessionDeleteResultSchema: z.ZodObject<{
|
|
|
2197
2930
|
ok: z.ZodLiteral<true>;
|
|
2198
2931
|
state_db_cleanup_failed: z.ZodOptional<z.ZodBoolean>;
|
|
2199
2932
|
}, z.core.$loose>;
|
|
2933
|
+
/** `voice_turn` (TAL-801): the turn was spoken (an App voice note), so the Agent runs it on `auxiliary.voice_chat`. */
|
|
2200
2934
|
export declare const ChatStartRequestSchema: z.ZodObject<{
|
|
2935
|
+
submission_id: z.ZodOptional<z.ZodString>;
|
|
2201
2936
|
session_id: z.ZodString;
|
|
2202
2937
|
message: z.ZodOptional<z.ZodString>;
|
|
2203
2938
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2217,10 +2952,83 @@ export declare const ChatStartRequestSchema: z.ZodObject<{
|
|
|
2217
2952
|
moa_config: z.ZodOptional<z.ZodBoolean>;
|
|
2218
2953
|
regenerate: z.ZodOptional<z.ZodBoolean>;
|
|
2219
2954
|
regeneration_revision: z.ZodOptional<z.ZodString>;
|
|
2955
|
+
voice_turn: z.ZodOptional<z.ZodBoolean>;
|
|
2956
|
+
connect_card: z.ZodOptional<z.ZodBoolean>;
|
|
2957
|
+
skill_secret: z.ZodOptional<z.ZodBoolean>;
|
|
2220
2958
|
}, z.core.$loose>;
|
|
2221
2959
|
export type ChatStartRequest = z.infer<typeof ChatStartRequestSchema>;
|
|
2222
2960
|
/** Accepted turn. `stream_id` is the owner identity for the SSE connection. */
|
|
2223
2961
|
export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
2962
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
2963
|
+
state: z.ZodEnum<{
|
|
2964
|
+
unavailable: "unavailable";
|
|
2965
|
+
refused: "refused";
|
|
2966
|
+
attached: "attached";
|
|
2967
|
+
stopped: "stopped";
|
|
2968
|
+
incompatible: "incompatible";
|
|
2969
|
+
}>;
|
|
2970
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2971
|
+
can_submit: z.ZodBoolean;
|
|
2972
|
+
can_interrupt: z.ZodBoolean;
|
|
2973
|
+
can_attach: z.ZodBoolean;
|
|
2974
|
+
restarting: z.ZodBoolean;
|
|
2975
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
2976
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
2977
|
+
model_change: z.ZodOptional<z.ZodObject<{
|
|
2978
|
+
state: z.ZodEnum<{
|
|
2979
|
+
applied: "applied";
|
|
2980
|
+
deferred: "deferred";
|
|
2981
|
+
confirmation_required: "confirmation_required";
|
|
2982
|
+
refused: "refused";
|
|
2983
|
+
}>;
|
|
2984
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2985
|
+
confirm: z.ZodOptional<z.ZodString>;
|
|
2986
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2987
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2988
|
+
}, z.core.$strip>>;
|
|
2989
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2990
|
+
admission_id: z.ZodString;
|
|
2991
|
+
sequence: z.ZodNumber;
|
|
2992
|
+
status: z.ZodEnum<{
|
|
2993
|
+
unknown: "unknown";
|
|
2994
|
+
queued: "queued";
|
|
2995
|
+
started: "started";
|
|
2996
|
+
terminal: "terminal";
|
|
2997
|
+
}>;
|
|
2998
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
2999
|
+
authority_epoch: z.ZodNumber;
|
|
3000
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3001
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3002
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
3003
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3004
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
3005
|
+
}, z.core.$strip>>>;
|
|
3006
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
3007
|
+
admission_id: z.ZodString;
|
|
3008
|
+
sequence: z.ZodNumber;
|
|
3009
|
+
status: z.ZodEnum<{
|
|
3010
|
+
unknown: "unknown";
|
|
3011
|
+
queued: "queued";
|
|
3012
|
+
started: "started";
|
|
3013
|
+
terminal: "terminal";
|
|
3014
|
+
}>;
|
|
3015
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
3016
|
+
authority_epoch: z.ZodNumber;
|
|
3017
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3018
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3019
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
3020
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3021
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
3022
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
3023
|
+
cancel: "cancel";
|
|
3024
|
+
discard: "discard";
|
|
3025
|
+
retry: "retry";
|
|
3026
|
+
steer: "steer";
|
|
3027
|
+
edit: "edit";
|
|
3028
|
+
}>>;
|
|
3029
|
+
}, z.core.$strip>>;
|
|
3030
|
+
}, z.core.$strip>>;
|
|
3031
|
+
admission_id: z.ZodOptional<z.ZodString>;
|
|
2224
3032
|
stream_id: z.ZodOptional<z.ZodString>;
|
|
2225
3033
|
session_id: z.ZodOptional<z.ZodString>;
|
|
2226
3034
|
turn_id: z.ZodOptional<z.ZodString>;
|
|
@@ -2234,6 +3042,11 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2234
3042
|
status: z.ZodOptional<z.ZodString>;
|
|
2235
3043
|
reason: z.ZodOptional<z.ZodString>;
|
|
2236
3044
|
session: z.ZodOptional<z.ZodObject<{
|
|
3045
|
+
execution_mode: z.ZodOptional<z.ZodEnum<{
|
|
3046
|
+
normal: "normal";
|
|
3047
|
+
ignore_config: "ignore_config";
|
|
3048
|
+
safe: "safe";
|
|
3049
|
+
}>>;
|
|
2237
3050
|
enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
2238
3051
|
composer_draft: z.ZodOptional<z.ZodObject<{
|
|
2239
3052
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -2242,11 +3055,11 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2242
3055
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
2243
3056
|
source_kind: z.ZodEnum<{
|
|
2244
3057
|
other: "other";
|
|
3058
|
+
webhook: "webhook";
|
|
3059
|
+
cron: "cron";
|
|
2245
3060
|
webui: "webui";
|
|
2246
3061
|
cli: "cli";
|
|
2247
3062
|
messaging: "messaging";
|
|
2248
|
-
cron: "cron";
|
|
2249
|
-
webhook: "webhook";
|
|
2250
3063
|
subagent: "subagent";
|
|
2251
3064
|
claude_code: "claude_code";
|
|
2252
3065
|
kanban: "kanban";
|
|
@@ -2255,6 +3068,76 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2255
3068
|
is_messaging_session: z.ZodBoolean;
|
|
2256
3069
|
sort_ts: z.ZodNumber;
|
|
2257
3070
|
read_only: z.ZodBoolean;
|
|
3071
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3072
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
3073
|
+
state: z.ZodEnum<{
|
|
3074
|
+
unavailable: "unavailable";
|
|
3075
|
+
refused: "refused";
|
|
3076
|
+
attached: "attached";
|
|
3077
|
+
stopped: "stopped";
|
|
3078
|
+
incompatible: "incompatible";
|
|
3079
|
+
}>;
|
|
3080
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3081
|
+
can_submit: z.ZodBoolean;
|
|
3082
|
+
can_interrupt: z.ZodBoolean;
|
|
3083
|
+
can_attach: z.ZodBoolean;
|
|
3084
|
+
restarting: z.ZodBoolean;
|
|
3085
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
3086
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3087
|
+
model_change: z.ZodOptional<z.ZodObject<{
|
|
3088
|
+
state: z.ZodEnum<{
|
|
3089
|
+
applied: "applied";
|
|
3090
|
+
deferred: "deferred";
|
|
3091
|
+
confirmation_required: "confirmation_required";
|
|
3092
|
+
refused: "refused";
|
|
3093
|
+
}>;
|
|
3094
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3095
|
+
confirm: z.ZodOptional<z.ZodString>;
|
|
3096
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3097
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3098
|
+
}, z.core.$strip>>;
|
|
3099
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3100
|
+
admission_id: z.ZodString;
|
|
3101
|
+
sequence: z.ZodNumber;
|
|
3102
|
+
status: z.ZodEnum<{
|
|
3103
|
+
unknown: "unknown";
|
|
3104
|
+
queued: "queued";
|
|
3105
|
+
started: "started";
|
|
3106
|
+
terminal: "terminal";
|
|
3107
|
+
}>;
|
|
3108
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
3109
|
+
authority_epoch: z.ZodNumber;
|
|
3110
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3111
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3112
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
3113
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3114
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
3115
|
+
}, z.core.$strip>>>;
|
|
3116
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
3117
|
+
admission_id: z.ZodString;
|
|
3118
|
+
sequence: z.ZodNumber;
|
|
3119
|
+
status: z.ZodEnum<{
|
|
3120
|
+
unknown: "unknown";
|
|
3121
|
+
queued: "queued";
|
|
3122
|
+
started: "started";
|
|
3123
|
+
terminal: "terminal";
|
|
3124
|
+
}>;
|
|
3125
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
3126
|
+
authority_epoch: z.ZodNumber;
|
|
3127
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3128
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3129
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
3130
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3131
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
3132
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
3133
|
+
cancel: "cancel";
|
|
3134
|
+
discard: "discard";
|
|
3135
|
+
retry: "retry";
|
|
3136
|
+
steer: "steer";
|
|
3137
|
+
edit: "edit";
|
|
3138
|
+
}>>;
|
|
3139
|
+
}, z.core.$strip>>;
|
|
3140
|
+
}, z.core.$strip>>;
|
|
2258
3141
|
can_branch: z.ZodBoolean;
|
|
2259
3142
|
can_pin: z.ZodBoolean;
|
|
2260
3143
|
can_archive: z.ZodBoolean;
|
|
@@ -2262,6 +3145,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2262
3145
|
can_duplicate: z.ZodBoolean;
|
|
2263
3146
|
source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2264
3147
|
can_compress: z.ZodOptional<z.ZodBoolean>;
|
|
3148
|
+
confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
|
|
2265
3149
|
source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2266
3150
|
session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2267
3151
|
raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2269,6 +3153,7 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2269
3153
|
worktree_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2270
3154
|
worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2271
3155
|
worktree_repo_root: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3156
|
+
worktree_retained: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2272
3157
|
share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2273
3158
|
share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2274
3159
|
share_created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -2301,6 +3186,8 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2301
3186
|
context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2302
3187
|
context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2303
3188
|
context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3189
|
+
context_detail_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3190
|
+
composer_state_key: z.ZodOptional<z.ZodString>;
|
|
2304
3191
|
session_id: z.ZodString;
|
|
2305
3192
|
title: z.ZodString;
|
|
2306
3193
|
workspace: z.ZodOptional<z.ZodString>;
|
|
@@ -2352,7 +3239,12 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2352
3239
|
cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2353
3240
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2354
3241
|
event_type: z.ZodOptional<z.ZodString>;
|
|
3242
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3243
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
3244
|
+
message: z.ZodNullable<z.ZodString>;
|
|
3245
|
+
}, z.core.$strip>>>;
|
|
2355
3246
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
3247
|
+
memory: "memory";
|
|
2356
3248
|
unknown: "unknown";
|
|
2357
3249
|
shell: "shell";
|
|
2358
3250
|
read: "read";
|
|
@@ -2361,7 +3253,6 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2361
3253
|
web: "web";
|
|
2362
3254
|
write: "write";
|
|
2363
3255
|
skill: "skill";
|
|
2364
|
-
memory: "memory";
|
|
2365
3256
|
delegate: "delegate";
|
|
2366
3257
|
}>>;
|
|
2367
3258
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -2405,10 +3296,10 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2405
3296
|
row_id: z.ZodString;
|
|
2406
3297
|
order_index: z.ZodNumber;
|
|
2407
3298
|
role: z.ZodEnum<{
|
|
2408
|
-
|
|
3299
|
+
steering: "steering";
|
|
2409
3300
|
tool: "tool";
|
|
3301
|
+
reasoning: "reasoning";
|
|
2410
3302
|
prose: "prose";
|
|
2411
|
-
steering: "steering";
|
|
2412
3303
|
}>;
|
|
2413
3304
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
2414
3305
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -2445,10 +3336,10 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2445
3336
|
task_ids: z.ZodArray<z.ZodString>;
|
|
2446
3337
|
status: z.ZodEnum<{
|
|
2447
3338
|
unknown: "unknown";
|
|
3339
|
+
running: "running";
|
|
2448
3340
|
cancelled: "cancelled";
|
|
2449
|
-
completed: "completed";
|
|
2450
3341
|
failed: "failed";
|
|
2451
|
-
|
|
3342
|
+
completed: "completed";
|
|
2452
3343
|
attention: "attention";
|
|
2453
3344
|
}>;
|
|
2454
3345
|
agents: z.ZodObject<{
|
|
@@ -2460,7 +3351,12 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2460
3351
|
}, z.core.$strip>>;
|
|
2461
3352
|
result_truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2462
3353
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3354
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3355
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
3356
|
+
message: z.ZodNullable<z.ZodString>;
|
|
3357
|
+
}, z.core.$strip>>>;
|
|
2463
3358
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
3359
|
+
memory: "memory";
|
|
2464
3360
|
unknown: "unknown";
|
|
2465
3361
|
shell: "shell";
|
|
2466
3362
|
read: "read";
|
|
@@ -2469,7 +3365,6 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2469
3365
|
web: "web";
|
|
2470
3366
|
write: "write";
|
|
2471
3367
|
skill: "skill";
|
|
2472
|
-
memory: "memory";
|
|
2473
3368
|
delegate: "delegate";
|
|
2474
3369
|
}>>;
|
|
2475
3370
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -2589,19 +3484,45 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2589
3484
|
other: "other";
|
|
2590
3485
|
}>;
|
|
2591
3486
|
status: z.ZodEnum<{
|
|
2592
|
-
completed: "completed";
|
|
2593
3487
|
failed: "failed";
|
|
3488
|
+
completed: "completed";
|
|
2594
3489
|
notice: "notice";
|
|
2595
3490
|
}>;
|
|
2596
3491
|
label: z.ZodString;
|
|
2597
3492
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3493
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
3494
|
+
unknown: "unknown";
|
|
3495
|
+
failed: "failed";
|
|
3496
|
+
waiting: "waiting";
|
|
3497
|
+
reviewing: "reviewing";
|
|
3498
|
+
reviewed: "reviewed";
|
|
3499
|
+
}>>;
|
|
2598
3500
|
}, z.core.$strip>>;
|
|
3501
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
3502
|
+
unknown: "unknown";
|
|
3503
|
+
failed: "failed";
|
|
3504
|
+
waiting: "waiting";
|
|
3505
|
+
reviewing: "reviewing";
|
|
3506
|
+
reviewed: "reviewed";
|
|
3507
|
+
}>>;
|
|
2599
3508
|
}, z.core.$strip>>;
|
|
2600
3509
|
_marker_kind: z.ZodOptional<z.ZodEnum<{
|
|
2601
3510
|
context_compaction: "context_compaction";
|
|
2602
3511
|
preserved_task_list: "preserved_task_list";
|
|
2603
3512
|
}>>;
|
|
2604
3513
|
_marker_body: z.ZodOptional<z.ZodString>;
|
|
3514
|
+
_notice_kind: z.ZodOptional<z.ZodEnum<{
|
|
3515
|
+
failed_turn: "failed_turn";
|
|
3516
|
+
session_finalize: "session_finalize";
|
|
3517
|
+
}>>;
|
|
3518
|
+
_delivery: z.ZodOptional<z.ZodObject<{
|
|
3519
|
+
kind: z.ZodEnum<{
|
|
3520
|
+
webhook: "webhook";
|
|
3521
|
+
cron: "cron";
|
|
3522
|
+
}>;
|
|
3523
|
+
name: z.ZodString;
|
|
3524
|
+
body: z.ZodString;
|
|
3525
|
+
}, z.core.$strip>>;
|
|
2605
3526
|
_background_reply: z.ZodOptional<z.ZodBoolean>;
|
|
2606
3527
|
_background_silent: z.ZodOptional<z.ZodBoolean>;
|
|
2607
3528
|
_display: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2636,7 +3557,12 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2636
3557
|
cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2637
3558
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2638
3559
|
event_type: z.ZodOptional<z.ZodString>;
|
|
3560
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3561
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
3562
|
+
message: z.ZodNullable<z.ZodString>;
|
|
3563
|
+
}, z.core.$strip>>>;
|
|
2639
3564
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
3565
|
+
memory: "memory";
|
|
2640
3566
|
unknown: "unknown";
|
|
2641
3567
|
shell: "shell";
|
|
2642
3568
|
read: "read";
|
|
@@ -2645,7 +3571,6 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2645
3571
|
web: "web";
|
|
2646
3572
|
write: "write";
|
|
2647
3573
|
skill: "skill";
|
|
2648
|
-
memory: "memory";
|
|
2649
3574
|
delegate: "delegate";
|
|
2650
3575
|
}>>;
|
|
2651
3576
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -2710,6 +3635,50 @@ export declare const ChatStartResponseSchema: z.ZodObject<{
|
|
|
2710
3635
|
send_now: z.ZodBoolean;
|
|
2711
3636
|
}, z.core.$strip>;
|
|
2712
3637
|
}, z.core.$strip>>>;
|
|
3638
|
+
run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3639
|
+
phase: z.ZodLiteral<"compressing">;
|
|
3640
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3641
|
+
phase: z.ZodLiteral<"rate_limit_wait">;
|
|
3642
|
+
wait: z.ZodObject<{
|
|
3643
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
3644
|
+
provider_label: z.ZodNullable<z.ZodString>;
|
|
3645
|
+
until: z.ZodNumber;
|
|
3646
|
+
until_kind: z.ZodEnum<{
|
|
3647
|
+
reset: "reset";
|
|
3648
|
+
retry: "retry";
|
|
3649
|
+
}>;
|
|
3650
|
+
}, z.core.$strip>;
|
|
3651
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3652
|
+
phase: z.ZodLiteral<"prompt_reading">;
|
|
3653
|
+
progress_percent: z.ZodNullable<z.ZodNumber>;
|
|
3654
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3655
|
+
phase: z.ZodLiteral<"working">;
|
|
3656
|
+
}, z.core.$strip>], "phase">>>;
|
|
3657
|
+
compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3658
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3659
|
+
key: z.ZodString;
|
|
3660
|
+
level: z.ZodEnum<{
|
|
3661
|
+
error: "error";
|
|
3662
|
+
success: "success";
|
|
3663
|
+
info: "info";
|
|
3664
|
+
warn: "warn";
|
|
3665
|
+
}>;
|
|
3666
|
+
text: z.ZodString;
|
|
3667
|
+
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
3668
|
+
}, z.core.$strip>>>;
|
|
3669
|
+
goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3670
|
+
text: z.ZodString;
|
|
3671
|
+
status: z.ZodEnum<{
|
|
3672
|
+
active: "active";
|
|
3673
|
+
parked: "parked";
|
|
3674
|
+
paused: "paused";
|
|
3675
|
+
}>;
|
|
3676
|
+
turns_used: z.ZodNumber;
|
|
3677
|
+
max_turns: z.ZodNumber;
|
|
3678
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3679
|
+
parked_until: z.ZodNullable<z.ZodNumber>;
|
|
3680
|
+
}, z.core.$strip>>>;
|
|
3681
|
+
automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
|
|
2713
3682
|
has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
2714
3683
|
pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2715
3684
|
pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2751,9 +3720,9 @@ export type StreamStatus = z.infer<typeof StreamStatusSchema>;
|
|
|
2751
3720
|
export declare const SteerWithdrawnSchema: z.ZodObject<{
|
|
2752
3721
|
steer_id: z.ZodNullable<z.ZodString>;
|
|
2753
3722
|
reason: z.ZodEnum<{
|
|
2754
|
-
edit: "edit";
|
|
2755
|
-
cancel: "cancel";
|
|
2756
3723
|
stopped: "stopped";
|
|
3724
|
+
cancel: "cancel";
|
|
3725
|
+
edit: "edit";
|
|
2757
3726
|
followup: "followup";
|
|
2758
3727
|
}>;
|
|
2759
3728
|
text: z.ZodString;
|
|
@@ -2770,9 +3739,9 @@ export declare const CancelResponseSchema: z.ZodObject<{
|
|
|
2770
3739
|
withdrawn_steers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2771
3740
|
steer_id: z.ZodNullable<z.ZodString>;
|
|
2772
3741
|
reason: z.ZodEnum<{
|
|
2773
|
-
edit: "edit";
|
|
2774
|
-
cancel: "cancel";
|
|
2775
3742
|
stopped: "stopped";
|
|
3743
|
+
cancel: "cancel";
|
|
3744
|
+
edit: "edit";
|
|
2776
3745
|
followup: "followup";
|
|
2777
3746
|
}>;
|
|
2778
3747
|
text: z.ZodString;
|
|
@@ -2783,8 +3752,8 @@ export declare const SteerWithdrawRequestSchema: z.ZodObject<{
|
|
|
2783
3752
|
session_id: z.ZodString;
|
|
2784
3753
|
steer_id: z.ZodString;
|
|
2785
3754
|
reason: z.ZodEnum<{
|
|
2786
|
-
edit: "edit";
|
|
2787
3755
|
cancel: "cancel";
|
|
3756
|
+
edit: "edit";
|
|
2788
3757
|
}>;
|
|
2789
3758
|
}, z.core.$strip>;
|
|
2790
3759
|
export type SteerWithdrawRequest = z.infer<typeof SteerWithdrawRequestSchema>;
|
|
@@ -2797,10 +3766,18 @@ export declare const SteerSendNowRequestSchema: z.ZodObject<{
|
|
|
2797
3766
|
session_id: z.ZodString;
|
|
2798
3767
|
steer_id: z.ZodString;
|
|
2799
3768
|
}, z.core.$strip>;
|
|
2800
|
-
/**
|
|
3769
|
+
/** The server decides why Send now did or did not deliver. `redirected` remains for older clients. */
|
|
2801
3770
|
export declare const SteerSendNowResponseSchema: z.ZodObject<{
|
|
2802
3771
|
redirected: z.ZodBoolean;
|
|
3772
|
+
outcome: z.ZodEnum<{
|
|
3773
|
+
failed: "failed";
|
|
3774
|
+
not_running: "not_running";
|
|
3775
|
+
delivered: "delivered";
|
|
3776
|
+
next_step: "next_step";
|
|
3777
|
+
taken: "taken";
|
|
3778
|
+
}>;
|
|
2803
3779
|
}, z.core.$strip>;
|
|
3780
|
+
export type SteerSendNowResponse = z.infer<typeof SteerSendNowResponseSchema>;
|
|
2804
3781
|
/** `text` is delivered to the running agent; `display_text` is what the transcript shows. */
|
|
2805
3782
|
export declare const SteerRequestSchema: z.ZodObject<{
|
|
2806
3783
|
session_id: z.ZodString;
|
|
@@ -2816,6 +3793,76 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2816
3793
|
stream_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2817
3794
|
steer_id: z.ZodOptional<z.ZodString>;
|
|
2818
3795
|
started_turn: z.ZodOptional<z.ZodObject<{
|
|
3796
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
3797
|
+
state: z.ZodEnum<{
|
|
3798
|
+
unavailable: "unavailable";
|
|
3799
|
+
refused: "refused";
|
|
3800
|
+
attached: "attached";
|
|
3801
|
+
stopped: "stopped";
|
|
3802
|
+
incompatible: "incompatible";
|
|
3803
|
+
}>;
|
|
3804
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3805
|
+
can_submit: z.ZodBoolean;
|
|
3806
|
+
can_interrupt: z.ZodBoolean;
|
|
3807
|
+
can_attach: z.ZodBoolean;
|
|
3808
|
+
restarting: z.ZodBoolean;
|
|
3809
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
3810
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3811
|
+
model_change: z.ZodOptional<z.ZodObject<{
|
|
3812
|
+
state: z.ZodEnum<{
|
|
3813
|
+
applied: "applied";
|
|
3814
|
+
deferred: "deferred";
|
|
3815
|
+
confirmation_required: "confirmation_required";
|
|
3816
|
+
refused: "refused";
|
|
3817
|
+
}>;
|
|
3818
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3819
|
+
confirm: z.ZodOptional<z.ZodString>;
|
|
3820
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3821
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3822
|
+
}, z.core.$strip>>;
|
|
3823
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3824
|
+
admission_id: z.ZodString;
|
|
3825
|
+
sequence: z.ZodNumber;
|
|
3826
|
+
status: z.ZodEnum<{
|
|
3827
|
+
unknown: "unknown";
|
|
3828
|
+
queued: "queued";
|
|
3829
|
+
started: "started";
|
|
3830
|
+
terminal: "terminal";
|
|
3831
|
+
}>;
|
|
3832
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
3833
|
+
authority_epoch: z.ZodNumber;
|
|
3834
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3835
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3836
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
3837
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3838
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
3839
|
+
}, z.core.$strip>>>;
|
|
3840
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
3841
|
+
admission_id: z.ZodString;
|
|
3842
|
+
sequence: z.ZodNumber;
|
|
3843
|
+
status: z.ZodEnum<{
|
|
3844
|
+
unknown: "unknown";
|
|
3845
|
+
queued: "queued";
|
|
3846
|
+
started: "started";
|
|
3847
|
+
terminal: "terminal";
|
|
3848
|
+
}>;
|
|
3849
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
3850
|
+
authority_epoch: z.ZodNumber;
|
|
3851
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3852
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3853
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
3854
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3855
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
3856
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
3857
|
+
cancel: "cancel";
|
|
3858
|
+
discard: "discard";
|
|
3859
|
+
retry: "retry";
|
|
3860
|
+
steer: "steer";
|
|
3861
|
+
edit: "edit";
|
|
3862
|
+
}>>;
|
|
3863
|
+
}, z.core.$strip>>;
|
|
3864
|
+
}, z.core.$strip>>;
|
|
3865
|
+
admission_id: z.ZodOptional<z.ZodString>;
|
|
2819
3866
|
stream_id: z.ZodOptional<z.ZodString>;
|
|
2820
3867
|
session_id: z.ZodOptional<z.ZodString>;
|
|
2821
3868
|
turn_id: z.ZodOptional<z.ZodString>;
|
|
@@ -2829,6 +3876,11 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2829
3876
|
status: z.ZodOptional<z.ZodString>;
|
|
2830
3877
|
reason: z.ZodOptional<z.ZodString>;
|
|
2831
3878
|
session: z.ZodOptional<z.ZodObject<{
|
|
3879
|
+
execution_mode: z.ZodOptional<z.ZodEnum<{
|
|
3880
|
+
normal: "normal";
|
|
3881
|
+
ignore_config: "ignore_config";
|
|
3882
|
+
safe: "safe";
|
|
3883
|
+
}>>;
|
|
2832
3884
|
enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
2833
3885
|
composer_draft: z.ZodOptional<z.ZodObject<{
|
|
2834
3886
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -2837,11 +3889,11 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2837
3889
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
2838
3890
|
source_kind: z.ZodEnum<{
|
|
2839
3891
|
other: "other";
|
|
3892
|
+
webhook: "webhook";
|
|
3893
|
+
cron: "cron";
|
|
2840
3894
|
webui: "webui";
|
|
2841
3895
|
cli: "cli";
|
|
2842
3896
|
messaging: "messaging";
|
|
2843
|
-
cron: "cron";
|
|
2844
|
-
webhook: "webhook";
|
|
2845
3897
|
subagent: "subagent";
|
|
2846
3898
|
claude_code: "claude_code";
|
|
2847
3899
|
kanban: "kanban";
|
|
@@ -2850,6 +3902,76 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2850
3902
|
is_messaging_session: z.ZodBoolean;
|
|
2851
3903
|
sort_ts: z.ZodNumber;
|
|
2852
3904
|
read_only: z.ZodBoolean;
|
|
3905
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3906
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
3907
|
+
state: z.ZodEnum<{
|
|
3908
|
+
unavailable: "unavailable";
|
|
3909
|
+
refused: "refused";
|
|
3910
|
+
attached: "attached";
|
|
3911
|
+
stopped: "stopped";
|
|
3912
|
+
incompatible: "incompatible";
|
|
3913
|
+
}>;
|
|
3914
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3915
|
+
can_submit: z.ZodBoolean;
|
|
3916
|
+
can_interrupt: z.ZodBoolean;
|
|
3917
|
+
can_attach: z.ZodBoolean;
|
|
3918
|
+
restarting: z.ZodBoolean;
|
|
3919
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
3920
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3921
|
+
model_change: z.ZodOptional<z.ZodObject<{
|
|
3922
|
+
state: z.ZodEnum<{
|
|
3923
|
+
applied: "applied";
|
|
3924
|
+
deferred: "deferred";
|
|
3925
|
+
confirmation_required: "confirmation_required";
|
|
3926
|
+
refused: "refused";
|
|
3927
|
+
}>;
|
|
3928
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3929
|
+
confirm: z.ZodOptional<z.ZodString>;
|
|
3930
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3931
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3932
|
+
}, z.core.$strip>>;
|
|
3933
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3934
|
+
admission_id: z.ZodString;
|
|
3935
|
+
sequence: z.ZodNumber;
|
|
3936
|
+
status: z.ZodEnum<{
|
|
3937
|
+
unknown: "unknown";
|
|
3938
|
+
queued: "queued";
|
|
3939
|
+
started: "started";
|
|
3940
|
+
terminal: "terminal";
|
|
3941
|
+
}>;
|
|
3942
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
3943
|
+
authority_epoch: z.ZodNumber;
|
|
3944
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3945
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3946
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
3947
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3948
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
3949
|
+
}, z.core.$strip>>>;
|
|
3950
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
3951
|
+
admission_id: z.ZodString;
|
|
3952
|
+
sequence: z.ZodNumber;
|
|
3953
|
+
status: z.ZodEnum<{
|
|
3954
|
+
unknown: "unknown";
|
|
3955
|
+
queued: "queued";
|
|
3956
|
+
started: "started";
|
|
3957
|
+
terminal: "terminal";
|
|
3958
|
+
}>;
|
|
3959
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
3960
|
+
authority_epoch: z.ZodNumber;
|
|
3961
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
3962
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3963
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
3964
|
+
text: z.ZodOptional<z.ZodString>;
|
|
3965
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
3966
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
3967
|
+
cancel: "cancel";
|
|
3968
|
+
discard: "discard";
|
|
3969
|
+
retry: "retry";
|
|
3970
|
+
steer: "steer";
|
|
3971
|
+
edit: "edit";
|
|
3972
|
+
}>>;
|
|
3973
|
+
}, z.core.$strip>>;
|
|
3974
|
+
}, z.core.$strip>>;
|
|
2853
3975
|
can_branch: z.ZodBoolean;
|
|
2854
3976
|
can_pin: z.ZodBoolean;
|
|
2855
3977
|
can_archive: z.ZodBoolean;
|
|
@@ -2857,6 +3979,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2857
3979
|
can_duplicate: z.ZodBoolean;
|
|
2858
3980
|
source_tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2859
3981
|
can_compress: z.ZodOptional<z.ZodBoolean>;
|
|
3982
|
+
confirms_deep_truncate: z.ZodOptional<z.ZodBoolean>;
|
|
2860
3983
|
source_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2861
3984
|
session_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2862
3985
|
raw_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2864,6 +3987,7 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2864
3987
|
worktree_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2865
3988
|
worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2866
3989
|
worktree_repo_root: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3990
|
+
worktree_retained: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2867
3991
|
share_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2868
3992
|
share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2869
3993
|
share_created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -2896,6 +4020,8 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2896
4020
|
context_window_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2897
4021
|
context_usage_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2898
4022
|
context_threshold_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4023
|
+
context_detail_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4024
|
+
composer_state_key: z.ZodOptional<z.ZodString>;
|
|
2899
4025
|
session_id: z.ZodString;
|
|
2900
4026
|
title: z.ZodString;
|
|
2901
4027
|
workspace: z.ZodOptional<z.ZodString>;
|
|
@@ -2947,7 +4073,12 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2947
4073
|
cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2948
4074
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2949
4075
|
event_type: z.ZodOptional<z.ZodString>;
|
|
4076
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4077
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
4078
|
+
message: z.ZodNullable<z.ZodString>;
|
|
4079
|
+
}, z.core.$strip>>>;
|
|
2950
4080
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
4081
|
+
memory: "memory";
|
|
2951
4082
|
unknown: "unknown";
|
|
2952
4083
|
shell: "shell";
|
|
2953
4084
|
read: "read";
|
|
@@ -2956,7 +4087,6 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
2956
4087
|
web: "web";
|
|
2957
4088
|
write: "write";
|
|
2958
4089
|
skill: "skill";
|
|
2959
|
-
memory: "memory";
|
|
2960
4090
|
delegate: "delegate";
|
|
2961
4091
|
}>>;
|
|
2962
4092
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -3000,10 +4130,10 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3000
4130
|
row_id: z.ZodString;
|
|
3001
4131
|
order_index: z.ZodNumber;
|
|
3002
4132
|
role: z.ZodEnum<{
|
|
3003
|
-
|
|
4133
|
+
steering: "steering";
|
|
3004
4134
|
tool: "tool";
|
|
4135
|
+
reasoning: "reasoning";
|
|
3005
4136
|
prose: "prose";
|
|
3006
|
-
steering: "steering";
|
|
3007
4137
|
}>;
|
|
3008
4138
|
created_at: z.ZodOptional<z.ZodNumber>;
|
|
3009
4139
|
text: z.ZodOptional<z.ZodString>;
|
|
@@ -3040,10 +4170,10 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3040
4170
|
task_ids: z.ZodArray<z.ZodString>;
|
|
3041
4171
|
status: z.ZodEnum<{
|
|
3042
4172
|
unknown: "unknown";
|
|
4173
|
+
running: "running";
|
|
3043
4174
|
cancelled: "cancelled";
|
|
3044
|
-
completed: "completed";
|
|
3045
4175
|
failed: "failed";
|
|
3046
|
-
|
|
4176
|
+
completed: "completed";
|
|
3047
4177
|
attention: "attention";
|
|
3048
4178
|
}>;
|
|
3049
4179
|
agents: z.ZodObject<{
|
|
@@ -3055,7 +4185,12 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3055
4185
|
}, z.core.$strip>>;
|
|
3056
4186
|
result_truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3057
4187
|
result_chars: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4188
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4189
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
4190
|
+
message: z.ZodNullable<z.ZodString>;
|
|
4191
|
+
}, z.core.$strip>>>;
|
|
3058
4192
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
4193
|
+
memory: "memory";
|
|
3059
4194
|
unknown: "unknown";
|
|
3060
4195
|
shell: "shell";
|
|
3061
4196
|
read: "read";
|
|
@@ -3064,7 +4199,6 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3064
4199
|
web: "web";
|
|
3065
4200
|
write: "write";
|
|
3066
4201
|
skill: "skill";
|
|
3067
|
-
memory: "memory";
|
|
3068
4202
|
delegate: "delegate";
|
|
3069
4203
|
}>>;
|
|
3070
4204
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -3184,19 +4318,45 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3184
4318
|
other: "other";
|
|
3185
4319
|
}>;
|
|
3186
4320
|
status: z.ZodEnum<{
|
|
3187
|
-
completed: "completed";
|
|
3188
4321
|
failed: "failed";
|
|
4322
|
+
completed: "completed";
|
|
3189
4323
|
notice: "notice";
|
|
3190
4324
|
}>;
|
|
3191
4325
|
label: z.ZodString;
|
|
3192
4326
|
exit_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4327
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
4328
|
+
unknown: "unknown";
|
|
4329
|
+
failed: "failed";
|
|
4330
|
+
waiting: "waiting";
|
|
4331
|
+
reviewing: "reviewing";
|
|
4332
|
+
reviewed: "reviewed";
|
|
4333
|
+
}>>;
|
|
3193
4334
|
}, z.core.$strip>>;
|
|
4335
|
+
review_state: z.ZodOptional<z.ZodEnum<{
|
|
4336
|
+
unknown: "unknown";
|
|
4337
|
+
failed: "failed";
|
|
4338
|
+
waiting: "waiting";
|
|
4339
|
+
reviewing: "reviewing";
|
|
4340
|
+
reviewed: "reviewed";
|
|
4341
|
+
}>>;
|
|
3194
4342
|
}, z.core.$strip>>;
|
|
3195
4343
|
_marker_kind: z.ZodOptional<z.ZodEnum<{
|
|
3196
4344
|
context_compaction: "context_compaction";
|
|
3197
4345
|
preserved_task_list: "preserved_task_list";
|
|
3198
4346
|
}>>;
|
|
3199
4347
|
_marker_body: z.ZodOptional<z.ZodString>;
|
|
4348
|
+
_notice_kind: z.ZodOptional<z.ZodEnum<{
|
|
4349
|
+
failed_turn: "failed_turn";
|
|
4350
|
+
session_finalize: "session_finalize";
|
|
4351
|
+
}>>;
|
|
4352
|
+
_delivery: z.ZodOptional<z.ZodObject<{
|
|
4353
|
+
kind: z.ZodEnum<{
|
|
4354
|
+
webhook: "webhook";
|
|
4355
|
+
cron: "cron";
|
|
4356
|
+
}>;
|
|
4357
|
+
name: z.ZodString;
|
|
4358
|
+
body: z.ZodString;
|
|
4359
|
+
}, z.core.$strip>>;
|
|
3200
4360
|
_background_reply: z.ZodOptional<z.ZodBoolean>;
|
|
3201
4361
|
_background_silent: z.ZodOptional<z.ZodBoolean>;
|
|
3202
4362
|
_display: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3231,7 +4391,12 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3231
4391
|
cost_usd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3232
4392
|
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3233
4393
|
event_type: z.ZodOptional<z.ZodString>;
|
|
4394
|
+
progress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4395
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
4396
|
+
message: z.ZodNullable<z.ZodString>;
|
|
4397
|
+
}, z.core.$strip>>>;
|
|
3234
4398
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
4399
|
+
memory: "memory";
|
|
3235
4400
|
unknown: "unknown";
|
|
3236
4401
|
shell: "shell";
|
|
3237
4402
|
read: "read";
|
|
@@ -3240,7 +4405,6 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3240
4405
|
web: "web";
|
|
3241
4406
|
write: "write";
|
|
3242
4407
|
skill: "skill";
|
|
3243
|
-
memory: "memory";
|
|
3244
4408
|
delegate: "delegate";
|
|
3245
4409
|
}>>;
|
|
3246
4410
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -3305,6 +4469,50 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3305
4469
|
send_now: z.ZodBoolean;
|
|
3306
4470
|
}, z.core.$strip>;
|
|
3307
4471
|
}, z.core.$strip>>>;
|
|
4472
|
+
run_status: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4473
|
+
phase: z.ZodLiteral<"compressing">;
|
|
4474
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4475
|
+
phase: z.ZodLiteral<"rate_limit_wait">;
|
|
4476
|
+
wait: z.ZodObject<{
|
|
4477
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
4478
|
+
provider_label: z.ZodNullable<z.ZodString>;
|
|
4479
|
+
until: z.ZodNumber;
|
|
4480
|
+
until_kind: z.ZodEnum<{
|
|
4481
|
+
reset: "reset";
|
|
4482
|
+
retry: "retry";
|
|
4483
|
+
}>;
|
|
4484
|
+
}, z.core.$strip>;
|
|
4485
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4486
|
+
phase: z.ZodLiteral<"prompt_reading">;
|
|
4487
|
+
progress_percent: z.ZodNullable<z.ZodNumber>;
|
|
4488
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4489
|
+
phase: z.ZodLiteral<"working">;
|
|
4490
|
+
}, z.core.$strip>], "phase">>>;
|
|
4491
|
+
compression_started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4492
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4493
|
+
key: z.ZodString;
|
|
4494
|
+
level: z.ZodEnum<{
|
|
4495
|
+
error: "error";
|
|
4496
|
+
success: "success";
|
|
4497
|
+
info: "info";
|
|
4498
|
+
warn: "warn";
|
|
4499
|
+
}>;
|
|
4500
|
+
text: z.ZodString;
|
|
4501
|
+
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
4502
|
+
}, z.core.$strip>>>;
|
|
4503
|
+
goal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4504
|
+
text: z.ZodString;
|
|
4505
|
+
status: z.ZodEnum<{
|
|
4506
|
+
active: "active";
|
|
4507
|
+
parked: "parked";
|
|
4508
|
+
paused: "paused";
|
|
4509
|
+
}>;
|
|
4510
|
+
turns_used: z.ZodNumber;
|
|
4511
|
+
max_turns: z.ZodNumber;
|
|
4512
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
4513
|
+
parked_until: z.ZodNullable<z.ZodNumber>;
|
|
4514
|
+
}, z.core.$strip>>>;
|
|
4515
|
+
automatic_turns_held: z.ZodOptional<z.ZodBoolean>;
|
|
3308
4516
|
has_pending_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
3309
4517
|
pending_user_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3310
4518
|
pending_attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3326,6 +4534,13 @@ export declare const SteerResponseSchema: z.ZodObject<{
|
|
|
3326
4534
|
}, z.core.$loose>>;
|
|
3327
4535
|
}, z.core.$loose>;
|
|
3328
4536
|
export declare const ApprovalPendingSchema: z.ZodObject<{
|
|
4537
|
+
allowed_choices: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4538
|
+
once: "once";
|
|
4539
|
+
session: "session";
|
|
4540
|
+
always: "always";
|
|
4541
|
+
deny: "deny";
|
|
4542
|
+
}>>>;
|
|
4543
|
+
can_enable_yolo: z.ZodOptional<z.ZodBoolean>;
|
|
3329
4544
|
approval_id: z.ZodOptional<z.ZodString>;
|
|
3330
4545
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3331
4546
|
command: z.ZodOptional<z.ZodString>;
|
|
@@ -3344,6 +4559,13 @@ export declare const ApprovalPendingSchema: z.ZodObject<{
|
|
|
3344
4559
|
export type ApprovalPending = z.infer<typeof ApprovalPendingSchema>;
|
|
3345
4560
|
export declare const ApprovalPendingEnvelopeSchema: z.ZodObject<{
|
|
3346
4561
|
pending: z.ZodNullable<z.ZodObject<{
|
|
4562
|
+
allowed_choices: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4563
|
+
once: "once";
|
|
4564
|
+
session: "session";
|
|
4565
|
+
always: "always";
|
|
4566
|
+
deny: "deny";
|
|
4567
|
+
}>>>;
|
|
4568
|
+
can_enable_yolo: z.ZodOptional<z.ZodBoolean>;
|
|
3347
4569
|
approval_id: z.ZodOptional<z.ZodString>;
|
|
3348
4570
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3349
4571
|
command: z.ZodOptional<z.ZodString>;
|
|
@@ -3400,18 +4622,99 @@ export declare const ClarifyStepSchema: z.ZodObject<{
|
|
|
3400
4622
|
question: z.ZodString;
|
|
3401
4623
|
choices: z.ZodArray<z.ZodString>;
|
|
3402
4624
|
multi_select: z.ZodBoolean;
|
|
4625
|
+
answered: z.ZodOptional<z.ZodBoolean>;
|
|
3403
4626
|
}, z.core.$loose>;
|
|
3404
4627
|
export type ClarifyStep = z.infer<typeof ClarifyStepSchema>;
|
|
3405
4628
|
/** Keyed step answers; a multi-select step takes a list. The server shapes them into the Agent's reply. */
|
|
3406
4629
|
export declare const ClarifyAnswersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
3407
4630
|
export type ClarifyAnswers = z.infer<typeof ClarifyAnswersSchema>;
|
|
4631
|
+
/** TAL-887: one input of a password-manager prompt, answered under its `key`; a `secure` input is masked. */
|
|
4632
|
+
export declare const VaultPromptFieldSchema: z.ZodObject<{
|
|
4633
|
+
key: z.ZodEnum<{
|
|
4634
|
+
code: "code";
|
|
4635
|
+
secret: "secret";
|
|
4636
|
+
master_password: "master_password";
|
|
4637
|
+
identifier: "identifier";
|
|
4638
|
+
password: "password";
|
|
4639
|
+
}>;
|
|
4640
|
+
secure: z.ZodBoolean;
|
|
4641
|
+
}, z.core.$strip>;
|
|
4642
|
+
export type VaultPromptField = z.infer<typeof VaultPromptFieldSchema>;
|
|
4643
|
+
/**
|
|
4644
|
+
* TAL-887: the Agent asks for a password manager's master password (`vault_unlock`), a login to save for the page it is
|
|
4645
|
+
* on (`vault_save_login`), a one-time code (`vault_code`), or a skill environment secret (`skill_secret`). Clients answer through
|
|
4646
|
+
* `/api/clarify/respond` with keyed `answers`, or `decline`; an empty answer, a decline, a cancel and `timeout_at` all
|
|
4647
|
+
* resolve it unanswered. Answers never enter chat, logs, streams, or responses. Skill secrets are saved only to the invoking profile.
|
|
4648
|
+
*/
|
|
4649
|
+
export declare const VaultPromptSchema: z.ZodObject<{
|
|
4650
|
+
kind: z.ZodEnum<{
|
|
4651
|
+
skill_secret: "skill_secret";
|
|
4652
|
+
vault_unlock: "vault_unlock";
|
|
4653
|
+
vault_save_login: "vault_save_login";
|
|
4654
|
+
vault_code: "vault_code";
|
|
4655
|
+
}>;
|
|
4656
|
+
backend: z.ZodNullable<z.ZodString>;
|
|
4657
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
4658
|
+
origin: z.ZodNullable<z.ZodString>;
|
|
4659
|
+
site: z.ZodNullable<z.ZodString>;
|
|
4660
|
+
hint: z.ZodNullable<z.ZodString>;
|
|
4661
|
+
skill: z.ZodOptional<z.ZodObject<{
|
|
4662
|
+
env_var: z.ZodString;
|
|
4663
|
+
skill_name: z.ZodString;
|
|
4664
|
+
help: z.ZodNullable<z.ZodString>;
|
|
4665
|
+
required_for: z.ZodNullable<z.ZodString>;
|
|
4666
|
+
}, z.core.$strip>>;
|
|
4667
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
4668
|
+
key: z.ZodEnum<{
|
|
4669
|
+
code: "code";
|
|
4670
|
+
secret: "secret";
|
|
4671
|
+
master_password: "master_password";
|
|
4672
|
+
identifier: "identifier";
|
|
4673
|
+
password: "password";
|
|
4674
|
+
}>;
|
|
4675
|
+
secure: z.ZodBoolean;
|
|
4676
|
+
}, z.core.$strip>>;
|
|
4677
|
+
timeout_at: z.ZodNumber;
|
|
4678
|
+
}, z.core.$strip>;
|
|
4679
|
+
export type VaultPrompt = z.infer<typeof VaultPromptSchema>;
|
|
3408
4680
|
export declare const ClarifyPendingSchema: z.ZodObject<{
|
|
3409
4681
|
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3410
4682
|
qid: z.ZodString;
|
|
3411
4683
|
question: z.ZodString;
|
|
3412
4684
|
choices: z.ZodArray<z.ZodString>;
|
|
3413
4685
|
multi_select: z.ZodBoolean;
|
|
4686
|
+
answered: z.ZodOptional<z.ZodBoolean>;
|
|
3414
4687
|
}, z.core.$loose>>>;
|
|
4688
|
+
vault: z.ZodOptional<z.ZodObject<{
|
|
4689
|
+
kind: z.ZodEnum<{
|
|
4690
|
+
skill_secret: "skill_secret";
|
|
4691
|
+
vault_unlock: "vault_unlock";
|
|
4692
|
+
vault_save_login: "vault_save_login";
|
|
4693
|
+
vault_code: "vault_code";
|
|
4694
|
+
}>;
|
|
4695
|
+
backend: z.ZodNullable<z.ZodString>;
|
|
4696
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
4697
|
+
origin: z.ZodNullable<z.ZodString>;
|
|
4698
|
+
site: z.ZodNullable<z.ZodString>;
|
|
4699
|
+
hint: z.ZodNullable<z.ZodString>;
|
|
4700
|
+
skill: z.ZodOptional<z.ZodObject<{
|
|
4701
|
+
env_var: z.ZodString;
|
|
4702
|
+
skill_name: z.ZodString;
|
|
4703
|
+
help: z.ZodNullable<z.ZodString>;
|
|
4704
|
+
required_for: z.ZodNullable<z.ZodString>;
|
|
4705
|
+
}, z.core.$strip>>;
|
|
4706
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
4707
|
+
key: z.ZodEnum<{
|
|
4708
|
+
code: "code";
|
|
4709
|
+
secret: "secret";
|
|
4710
|
+
master_password: "master_password";
|
|
4711
|
+
identifier: "identifier";
|
|
4712
|
+
password: "password";
|
|
4713
|
+
}>;
|
|
4714
|
+
secure: z.ZodBoolean;
|
|
4715
|
+
}, z.core.$strip>>;
|
|
4716
|
+
timeout_at: z.ZodNumber;
|
|
4717
|
+
}, z.core.$strip>>;
|
|
3415
4718
|
clarify_id: z.ZodOptional<z.ZodString>;
|
|
3416
4719
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3417
4720
|
question: z.ZodOptional<z.ZodString>;
|
|
@@ -3442,7 +4745,38 @@ export declare const ClarifyPendingEnvelopeSchema: z.ZodObject<{
|
|
|
3442
4745
|
question: z.ZodString;
|
|
3443
4746
|
choices: z.ZodArray<z.ZodString>;
|
|
3444
4747
|
multi_select: z.ZodBoolean;
|
|
4748
|
+
answered: z.ZodOptional<z.ZodBoolean>;
|
|
3445
4749
|
}, z.core.$loose>>>;
|
|
4750
|
+
vault: z.ZodOptional<z.ZodObject<{
|
|
4751
|
+
kind: z.ZodEnum<{
|
|
4752
|
+
skill_secret: "skill_secret";
|
|
4753
|
+
vault_unlock: "vault_unlock";
|
|
4754
|
+
vault_save_login: "vault_save_login";
|
|
4755
|
+
vault_code: "vault_code";
|
|
4756
|
+
}>;
|
|
4757
|
+
backend: z.ZodNullable<z.ZodString>;
|
|
4758
|
+
display_name: z.ZodNullable<z.ZodString>;
|
|
4759
|
+
origin: z.ZodNullable<z.ZodString>;
|
|
4760
|
+
site: z.ZodNullable<z.ZodString>;
|
|
4761
|
+
hint: z.ZodNullable<z.ZodString>;
|
|
4762
|
+
skill: z.ZodOptional<z.ZodObject<{
|
|
4763
|
+
env_var: z.ZodString;
|
|
4764
|
+
skill_name: z.ZodString;
|
|
4765
|
+
help: z.ZodNullable<z.ZodString>;
|
|
4766
|
+
required_for: z.ZodNullable<z.ZodString>;
|
|
4767
|
+
}, z.core.$strip>>;
|
|
4768
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
4769
|
+
key: z.ZodEnum<{
|
|
4770
|
+
code: "code";
|
|
4771
|
+
secret: "secret";
|
|
4772
|
+
master_password: "master_password";
|
|
4773
|
+
identifier: "identifier";
|
|
4774
|
+
password: "password";
|
|
4775
|
+
}>;
|
|
4776
|
+
secure: z.ZodBoolean;
|
|
4777
|
+
}, z.core.$strip>>;
|
|
4778
|
+
timeout_at: z.ZodNumber;
|
|
4779
|
+
}, z.core.$strip>>;
|
|
3446
4780
|
clarify_id: z.ZodOptional<z.ZodString>;
|
|
3447
4781
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3448
4782
|
question: z.ZodOptional<z.ZodString>;
|
|
@@ -3474,6 +4808,7 @@ export declare const ClarifyRespondRequestSchema: z.ZodObject<{
|
|
|
3474
4808
|
answer: z.ZodOptional<z.ZodString>;
|
|
3475
4809
|
choice: z.ZodOptional<z.ZodString>;
|
|
3476
4810
|
clarify_id: z.ZodOptional<z.ZodString>;
|
|
4811
|
+
decline: z.ZodOptional<z.ZodBoolean>;
|
|
3477
4812
|
}, z.core.$loose>;
|
|
3478
4813
|
export declare const ClarifyRespondResponseSchema: z.ZodObject<{
|
|
3479
4814
|
ok: z.ZodBoolean;
|
|
@@ -3551,10 +4886,10 @@ export declare const BackgroundTaskSchema: z.ZodObject<{
|
|
|
3551
4886
|
}>;
|
|
3552
4887
|
status: z.ZodEnum<{
|
|
3553
4888
|
unknown: "unknown";
|
|
4889
|
+
running: "running";
|
|
3554
4890
|
cancelled: "cancelled";
|
|
3555
|
-
completed: "completed";
|
|
3556
4891
|
failed: "failed";
|
|
3557
|
-
|
|
4892
|
+
completed: "completed";
|
|
3558
4893
|
attention: "attention";
|
|
3559
4894
|
}>;
|
|
3560
4895
|
title: z.ZodString;
|
|
@@ -3575,6 +4910,7 @@ export declare const BackgroundTaskSchema: z.ZodObject<{
|
|
|
3575
4910
|
}, z.core.$strip>>;
|
|
3576
4911
|
pinned: z.ZodBoolean;
|
|
3577
4912
|
dismissible: z.ZodBoolean;
|
|
4913
|
+
can_stop: z.ZodOptional<z.ZodBoolean>;
|
|
3578
4914
|
active: z.ZodBoolean;
|
|
3579
4915
|
}, z.core.$strip>;
|
|
3580
4916
|
export type BackgroundTask = z.infer<typeof BackgroundTaskSchema>;
|
|
@@ -3594,10 +4930,10 @@ export declare const BackgroundTasksResponseSchema: z.ZodObject<{
|
|
|
3594
4930
|
}>;
|
|
3595
4931
|
status: z.ZodEnum<{
|
|
3596
4932
|
unknown: "unknown";
|
|
4933
|
+
running: "running";
|
|
3597
4934
|
cancelled: "cancelled";
|
|
3598
|
-
completed: "completed";
|
|
3599
4935
|
failed: "failed";
|
|
3600
|
-
|
|
4936
|
+
completed: "completed";
|
|
3601
4937
|
attention: "attention";
|
|
3602
4938
|
}>;
|
|
3603
4939
|
title: z.ZodString;
|
|
@@ -3618,6 +4954,7 @@ export declare const BackgroundTasksResponseSchema: z.ZodObject<{
|
|
|
3618
4954
|
}, z.core.$strip>>;
|
|
3619
4955
|
pinned: z.ZodBoolean;
|
|
3620
4956
|
dismissible: z.ZodBoolean;
|
|
4957
|
+
can_stop: z.ZodOptional<z.ZodBoolean>;
|
|
3621
4958
|
active: z.ZodBoolean;
|
|
3622
4959
|
}, z.core.$strip>>;
|
|
3623
4960
|
agent_available: z.ZodBoolean;
|
|
@@ -3631,6 +4968,13 @@ export declare const BackgroundDismissRequestSchema: z.ZodObject<{
|
|
|
3631
4968
|
session_id: z.ZodString;
|
|
3632
4969
|
task_id: z.ZodString;
|
|
3633
4970
|
}, z.core.$strip>;
|
|
4971
|
+
export declare const BackgroundStopResponseSchema: z.ZodObject<{
|
|
4972
|
+
outcome: z.ZodEnum<{
|
|
4973
|
+
stopped: "stopped";
|
|
4974
|
+
not_running: "not_running";
|
|
4975
|
+
not_found: "not_found";
|
|
4976
|
+
}>;
|
|
4977
|
+
}, z.core.$strip>;
|
|
3634
4978
|
export declare const BackgroundDismissResponseSchema: z.ZodObject<{
|
|
3635
4979
|
ok: z.ZodLiteral<true>;
|
|
3636
4980
|
task: z.ZodObject<{
|
|
@@ -3642,10 +4986,10 @@ export declare const BackgroundDismissResponseSchema: z.ZodObject<{
|
|
|
3642
4986
|
}>;
|
|
3643
4987
|
status: z.ZodEnum<{
|
|
3644
4988
|
unknown: "unknown";
|
|
4989
|
+
running: "running";
|
|
3645
4990
|
cancelled: "cancelled";
|
|
3646
|
-
completed: "completed";
|
|
3647
4991
|
failed: "failed";
|
|
3648
|
-
|
|
4992
|
+
completed: "completed";
|
|
3649
4993
|
attention: "attention";
|
|
3650
4994
|
}>;
|
|
3651
4995
|
title: z.ZodString;
|
|
@@ -3666,6 +5010,7 @@ export declare const BackgroundDismissResponseSchema: z.ZodObject<{
|
|
|
3666
5010
|
}, z.core.$strip>>;
|
|
3667
5011
|
pinned: z.ZodBoolean;
|
|
3668
5012
|
dismissible: z.ZodBoolean;
|
|
5013
|
+
can_stop: z.ZodOptional<z.ZodBoolean>;
|
|
3669
5014
|
active: z.ZodBoolean;
|
|
3670
5015
|
}, z.core.$strip>;
|
|
3671
5016
|
}, z.core.$strip>;
|
|
@@ -3700,11 +5045,11 @@ export declare const ShareCreateResponseSchema: z.ZodObject<{
|
|
|
3700
5045
|
is_cli_session: z.ZodOptional<z.ZodBoolean>;
|
|
3701
5046
|
source_kind: z.ZodEnum<{
|
|
3702
5047
|
other: "other";
|
|
5048
|
+
webhook: "webhook";
|
|
5049
|
+
cron: "cron";
|
|
3703
5050
|
webui: "webui";
|
|
3704
5051
|
cli: "cli";
|
|
3705
5052
|
messaging: "messaging";
|
|
3706
|
-
cron: "cron";
|
|
3707
|
-
webhook: "webhook";
|
|
3708
5053
|
subagent: "subagent";
|
|
3709
5054
|
claude_code: "claude_code";
|
|
3710
5055
|
kanban: "kanban";
|
|
@@ -3714,6 +5059,76 @@ export declare const ShareCreateResponseSchema: z.ZodObject<{
|
|
|
3714
5059
|
sort_ts: z.ZodNumber;
|
|
3715
5060
|
cron_running: z.ZodOptional<z.ZodBoolean>;
|
|
3716
5061
|
read_only: z.ZodBoolean;
|
|
5062
|
+
read_only_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5063
|
+
owner_attachment: z.ZodOptional<z.ZodObject<{
|
|
5064
|
+
state: z.ZodEnum<{
|
|
5065
|
+
unavailable: "unavailable";
|
|
5066
|
+
refused: "refused";
|
|
5067
|
+
attached: "attached";
|
|
5068
|
+
stopped: "stopped";
|
|
5069
|
+
incompatible: "incompatible";
|
|
5070
|
+
}>;
|
|
5071
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
5072
|
+
can_submit: z.ZodBoolean;
|
|
5073
|
+
can_interrupt: z.ZodBoolean;
|
|
5074
|
+
can_attach: z.ZodBoolean;
|
|
5075
|
+
restarting: z.ZodBoolean;
|
|
5076
|
+
revision: z.ZodNullable<z.ZodNumber>;
|
|
5077
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
5078
|
+
model_change: z.ZodOptional<z.ZodObject<{
|
|
5079
|
+
state: z.ZodEnum<{
|
|
5080
|
+
applied: "applied";
|
|
5081
|
+
deferred: "deferred";
|
|
5082
|
+
confirmation_required: "confirmation_required";
|
|
5083
|
+
refused: "refused";
|
|
5084
|
+
}>;
|
|
5085
|
+
message: z.ZodOptional<z.ZodString>;
|
|
5086
|
+
confirm: z.ZodOptional<z.ZodString>;
|
|
5087
|
+
model: z.ZodOptional<z.ZodString>;
|
|
5088
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5089
|
+
}, z.core.$strip>>;
|
|
5090
|
+
active_admission: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5091
|
+
admission_id: z.ZodString;
|
|
5092
|
+
sequence: z.ZodNumber;
|
|
5093
|
+
status: z.ZodEnum<{
|
|
5094
|
+
unknown: "unknown";
|
|
5095
|
+
queued: "queued";
|
|
5096
|
+
started: "started";
|
|
5097
|
+
terminal: "terminal";
|
|
5098
|
+
}>;
|
|
5099
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
5100
|
+
authority_epoch: z.ZodNumber;
|
|
5101
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
5102
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5103
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
5104
|
+
text: z.ZodOptional<z.ZodString>;
|
|
5105
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
5106
|
+
}, z.core.$strip>>>;
|
|
5107
|
+
admissions: z.ZodArray<z.ZodObject<{
|
|
5108
|
+
admission_id: z.ZodString;
|
|
5109
|
+
sequence: z.ZodNumber;
|
|
5110
|
+
status: z.ZodEnum<{
|
|
5111
|
+
unknown: "unknown";
|
|
5112
|
+
queued: "queued";
|
|
5113
|
+
started: "started";
|
|
5114
|
+
terminal: "terminal";
|
|
5115
|
+
}>;
|
|
5116
|
+
outcome: z.ZodNullable<z.ZodString>;
|
|
5117
|
+
authority_epoch: z.ZodNumber;
|
|
5118
|
+
execution_generation: z.ZodNullable<z.ZodNumber>;
|
|
5119
|
+
controls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5120
|
+
steering: z.ZodOptional<z.ZodBoolean>;
|
|
5121
|
+
text: z.ZodOptional<z.ZodString>;
|
|
5122
|
+
input_id: z.ZodOptional<z.ZodString>;
|
|
5123
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
5124
|
+
cancel: "cancel";
|
|
5125
|
+
discard: "discard";
|
|
5126
|
+
retry: "retry";
|
|
5127
|
+
steer: "steer";
|
|
5128
|
+
edit: "edit";
|
|
5129
|
+
}>>;
|
|
5130
|
+
}, z.core.$strip>>;
|
|
5131
|
+
}, z.core.$strip>>;
|
|
3717
5132
|
can_branch: z.ZodBoolean;
|
|
3718
5133
|
can_pin: z.ZodBoolean;
|
|
3719
5134
|
can_archive: z.ZodBoolean;
|
|
@@ -3733,8 +5148,8 @@ export declare const ShareCreateResponseSchema: z.ZodObject<{
|
|
|
3733
5148
|
share_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3734
5149
|
worktree_branch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3735
5150
|
match_type: z.ZodOptional<z.ZodEnum<{
|
|
3736
|
-
title: "title";
|
|
3737
5151
|
content: "content";
|
|
5152
|
+
title: "title";
|
|
3738
5153
|
metadata: "metadata";
|
|
3739
5154
|
}>>;
|
|
3740
5155
|
match_preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3781,11 +5196,33 @@ export declare const SessionNewRequestSchema: z.ZodObject<{
|
|
|
3781
5196
|
worktree: z.ZodOptional<z.ZodUnknown>;
|
|
3782
5197
|
enabled_toolsets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
3783
5198
|
parent_session_id: z.ZodOptional<z.ZodString>;
|
|
5199
|
+
execution_mode: z.ZodOptional<z.ZodEnum<{
|
|
5200
|
+
normal: "normal";
|
|
5201
|
+
ignore_config: "ignore_config";
|
|
5202
|
+
safe: "safe";
|
|
5203
|
+
}>>;
|
|
5204
|
+
request_id: z.ZodOptional<z.ZodString>;
|
|
3784
5205
|
}, z.core.$loose>;
|
|
5206
|
+
/**
|
|
5207
|
+
* `streaming` (TAL-802): live dictation over `TRANSCRIBE_STREAM_PATH` would open for this profile (`stt.streaming` on, a live provider wire).
|
|
5208
|
+
* `warm_supported` (TAL-916): a client starting a recording should `POST /api/transcribe/warm` so the engine loads while the user speaks.
|
|
5209
|
+
*/
|
|
3785
5210
|
export declare const TranscribeCapabilitySchema: z.ZodObject<{
|
|
3786
5211
|
ok: z.ZodLiteral<true>;
|
|
3787
5212
|
available: z.ZodBoolean;
|
|
3788
5213
|
provider: z.ZodString;
|
|
5214
|
+
streaming: z.ZodBoolean;
|
|
5215
|
+
warm_supported: z.ZodBoolean;
|
|
5216
|
+
}, z.core.$loose>;
|
|
5217
|
+
/** TAL-906: what read-aloud speaks for a message; clients play it as is. */
|
|
5218
|
+
export declare const SpeechPrepareSchema: z.ZodObject<{
|
|
5219
|
+
spoken_text: z.ZodString;
|
|
5220
|
+
}, z.core.$strip>;
|
|
5221
|
+
/** `POST /api/transcribe`: the recording's transcript; `filtered` (TAL-917) when the server emptied a phrase Whisper invents on silent audio. */
|
|
5222
|
+
export declare const TranscribeResponseSchema: z.ZodObject<{
|
|
5223
|
+
ok: z.ZodLiteral<true>;
|
|
5224
|
+
transcript: z.ZodString;
|
|
5225
|
+
filtered: z.ZodBoolean;
|
|
3789
5226
|
}, z.core.$loose>;
|
|
3790
5227
|
/** TAL-411: the request profile's quota urgency thresholds. A save patches valid fields and clamps critical to at most warning. */
|
|
3791
5228
|
export declare const QuotaThresholdsSchema: z.ZodObject<{
|
|
@@ -3827,6 +5264,7 @@ export declare const SettingsSchema: z.ZodObject<{
|
|
|
3827
5264
|
show_webhook_sessions: z.ZodOptional<z.ZodBoolean>;
|
|
3828
5265
|
show_kanban_sessions: z.ZodOptional<z.ZodBoolean>;
|
|
3829
5266
|
check_for_updates: z.ZodOptional<z.ZodBoolean>;
|
|
5267
|
+
summarize_updates_automatically: z.ZodOptional<z.ZodBoolean>;
|
|
3830
5268
|
ignore_agent_updates: z.ZodOptional<z.ZodBoolean>;
|
|
3831
5269
|
auth_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3832
5270
|
password_auth_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3874,6 +5312,13 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
3874
5312
|
gateway_running: z.ZodOptional<z.ZodBoolean>;
|
|
3875
5313
|
has_env: z.ZodOptional<z.ZodBoolean>;
|
|
3876
5314
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
5315
|
+
gateway_mode: z.ZodOptional<z.ZodEnum<{
|
|
5316
|
+
stopped: "stopped";
|
|
5317
|
+
parked: "parked";
|
|
5318
|
+
own: "own";
|
|
5319
|
+
served: "served";
|
|
5320
|
+
standalone: "standalone";
|
|
5321
|
+
}>>;
|
|
3877
5322
|
display_name: z.ZodOptional<z.ZodString>;
|
|
3878
5323
|
description: z.ZodOptional<z.ZodString>;
|
|
3879
5324
|
has_avatar: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3881,6 +5326,7 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
3881
5326
|
session_id: z.ZodString;
|
|
3882
5327
|
tip_session_id: z.ZodString;
|
|
3883
5328
|
}, z.core.$strip>>>;
|
|
5329
|
+
pending_writes: z.ZodOptional<z.ZodNumber>;
|
|
3884
5330
|
}, z.core.$loose>;
|
|
3885
5331
|
export declare const ProfilesSchema: z.ZodObject<{
|
|
3886
5332
|
profiles: z.ZodArray<z.ZodObject<{
|
|
@@ -3896,6 +5342,13 @@ export declare const ProfilesSchema: z.ZodObject<{
|
|
|
3896
5342
|
gateway_running: z.ZodOptional<z.ZodBoolean>;
|
|
3897
5343
|
has_env: z.ZodOptional<z.ZodBoolean>;
|
|
3898
5344
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
5345
|
+
gateway_mode: z.ZodOptional<z.ZodEnum<{
|
|
5346
|
+
stopped: "stopped";
|
|
5347
|
+
parked: "parked";
|
|
5348
|
+
own: "own";
|
|
5349
|
+
served: "served";
|
|
5350
|
+
standalone: "standalone";
|
|
5351
|
+
}>>;
|
|
3899
5352
|
display_name: z.ZodOptional<z.ZodString>;
|
|
3900
5353
|
description: z.ZodOptional<z.ZodString>;
|
|
3901
5354
|
has_avatar: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3903,6 +5356,7 @@ export declare const ProfilesSchema: z.ZodObject<{
|
|
|
3903
5356
|
session_id: z.ZodString;
|
|
3904
5357
|
tip_session_id: z.ZodString;
|
|
3905
5358
|
}, z.core.$strip>>>;
|
|
5359
|
+
pending_writes: z.ZodOptional<z.ZodNumber>;
|
|
3906
5360
|
}, z.core.$loose>>;
|
|
3907
5361
|
active: z.ZodString;
|
|
3908
5362
|
single_profile_mode: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3928,6 +5382,13 @@ export declare const ProfileSwitchSchema: z.ZodObject<{
|
|
|
3928
5382
|
gateway_running: z.ZodOptional<z.ZodBoolean>;
|
|
3929
5383
|
has_env: z.ZodOptional<z.ZodBoolean>;
|
|
3930
5384
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
5385
|
+
gateway_mode: z.ZodOptional<z.ZodEnum<{
|
|
5386
|
+
stopped: "stopped";
|
|
5387
|
+
parked: "parked";
|
|
5388
|
+
own: "own";
|
|
5389
|
+
served: "served";
|
|
5390
|
+
standalone: "standalone";
|
|
5391
|
+
}>>;
|
|
3931
5392
|
display_name: z.ZodOptional<z.ZodString>;
|
|
3932
5393
|
description: z.ZodOptional<z.ZodString>;
|
|
3933
5394
|
has_avatar: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3935,6 +5396,7 @@ export declare const ProfileSwitchSchema: z.ZodObject<{
|
|
|
3935
5396
|
session_id: z.ZodString;
|
|
3936
5397
|
tip_session_id: z.ZodString;
|
|
3937
5398
|
}, z.core.$strip>>>;
|
|
5399
|
+
pending_writes: z.ZodOptional<z.ZodNumber>;
|
|
3938
5400
|
}, z.core.$loose>>;
|
|
3939
5401
|
active: z.ZodString;
|
|
3940
5402
|
single_profile_mode: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3950,9 +5412,21 @@ export declare const ReasoningStatusSchema: z.ZodObject<{
|
|
|
3950
5412
|
supported_efforts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3951
5413
|
supports_reasoning_effort: z.ZodOptional<z.ZodBoolean>;
|
|
3952
5414
|
supports_thinking_toggle: z.ZodOptional<z.ZodBoolean>;
|
|
5415
|
+
supports_session_scope: z.ZodOptional<z.ZodBoolean>;
|
|
3953
5416
|
}, z.core.$loose>;
|
|
3954
5417
|
export type ReasoningStatus = z.infer<typeof ReasoningStatusSchema>;
|
|
3955
|
-
|
|
5418
|
+
export declare const QuotaLevelSchema: z.ZodEnum<{
|
|
5419
|
+
unavailable: "unavailable";
|
|
5420
|
+
stale: "stale";
|
|
5421
|
+
warning: "warning";
|
|
5422
|
+
healthy: "healthy";
|
|
5423
|
+
critical: "critical";
|
|
5424
|
+
}>;
|
|
5425
|
+
export type QuotaLevel = z.infer<typeof QuotaLevelSchema>;
|
|
5426
|
+
/**
|
|
5427
|
+
* 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.
|
|
5428
|
+
* TAL-807: `limit` is present while the provider's credential pool cannot serve this model until `resets_at` (ISO-8601 UTC).
|
|
5429
|
+
*/
|
|
3956
5430
|
export declare const ModelEntrySchema: z.ZodObject<{
|
|
3957
5431
|
id: z.ZodString;
|
|
3958
5432
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -3960,8 +5434,59 @@ export declare const ModelEntrySchema: z.ZodObject<{
|
|
|
3960
5434
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
3961
5435
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
3962
5436
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5437
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5438
|
+
id: z.ZodEnum<{
|
|
5439
|
+
standard: "standard";
|
|
5440
|
+
priority: "priority";
|
|
5441
|
+
ultrafast: "ultrafast";
|
|
5442
|
+
fast: "fast";
|
|
5443
|
+
}>;
|
|
5444
|
+
service_tier: z.ZodEnum<{
|
|
5445
|
+
default: "default";
|
|
5446
|
+
priority: "priority";
|
|
5447
|
+
ultrafast: "ultrafast";
|
|
5448
|
+
}>;
|
|
5449
|
+
}, z.core.$strip>>>;
|
|
5450
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5451
|
+
scope: z.ZodLiteral<"model">;
|
|
5452
|
+
resets_at: z.ZodString;
|
|
5453
|
+
}, z.core.$strip>>;
|
|
3963
5454
|
}, z.core.$loose>;
|
|
5455
|
+
/** TAL-807: a group's rate limit: every pool account benched until `resets_at`, else the entry ids (`models`) cooling down until their reset. */
|
|
5456
|
+
export declare const ModelGroupLimitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5457
|
+
scope: z.ZodLiteral<"account">;
|
|
5458
|
+
resets_at: z.ZodString;
|
|
5459
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5460
|
+
scope: z.ZodLiteral<"models">;
|
|
5461
|
+
models: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5462
|
+
}, z.core.$strip>], "scope">;
|
|
5463
|
+
/**
|
|
5464
|
+
* TAL-807: `limit` is the provider's live pool rate limit; `quota_level` is the TAL-411 `remaining` level of the tightest
|
|
5465
|
+
* account-scope window in the provider's last account-usage read (a model-family window never counts), absent without one
|
|
5466
|
+
* and while the group is account-limited.
|
|
5467
|
+
*/
|
|
5468
|
+
export declare const CatalogAvailabilitySchema: z.ZodObject<{
|
|
5469
|
+
status: z.ZodEnum<{
|
|
5470
|
+
available: "available";
|
|
5471
|
+
unavailable: "unavailable";
|
|
5472
|
+
stale: "stale";
|
|
5473
|
+
}>;
|
|
5474
|
+
authoritative: z.ZodBoolean;
|
|
5475
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
5476
|
+
generation: z.ZodString;
|
|
5477
|
+
}, z.core.$strip>;
|
|
5478
|
+
export type CatalogAvailability = z.infer<typeof CatalogAvailabilitySchema>;
|
|
3964
5479
|
export declare const ModelGroupSchema: z.ZodObject<{
|
|
5480
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
5481
|
+
status: z.ZodEnum<{
|
|
5482
|
+
available: "available";
|
|
5483
|
+
unavailable: "unavailable";
|
|
5484
|
+
stale: "stale";
|
|
5485
|
+
}>;
|
|
5486
|
+
authoritative: z.ZodBoolean;
|
|
5487
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
5488
|
+
generation: z.ZodString;
|
|
5489
|
+
}, z.core.$strip>>;
|
|
3965
5490
|
provider: z.ZodString;
|
|
3966
5491
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
3967
5492
|
models: z.ZodArray<z.ZodObject<{
|
|
@@ -3971,6 +5496,23 @@ export declare const ModelGroupSchema: z.ZodObject<{
|
|
|
3971
5496
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
3972
5497
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
3973
5498
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5499
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5500
|
+
id: z.ZodEnum<{
|
|
5501
|
+
standard: "standard";
|
|
5502
|
+
priority: "priority";
|
|
5503
|
+
ultrafast: "ultrafast";
|
|
5504
|
+
fast: "fast";
|
|
5505
|
+
}>;
|
|
5506
|
+
service_tier: z.ZodEnum<{
|
|
5507
|
+
default: "default";
|
|
5508
|
+
priority: "priority";
|
|
5509
|
+
ultrafast: "ultrafast";
|
|
5510
|
+
}>;
|
|
5511
|
+
}, z.core.$strip>>>;
|
|
5512
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5513
|
+
scope: z.ZodLiteral<"model">;
|
|
5514
|
+
resets_at: z.ZodString;
|
|
5515
|
+
}, z.core.$strip>>;
|
|
3974
5516
|
}, z.core.$loose>>;
|
|
3975
5517
|
extra_models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3976
5518
|
id: z.ZodString;
|
|
@@ -3979,15 +5521,66 @@ export declare const ModelGroupSchema: z.ZodObject<{
|
|
|
3979
5521
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
3980
5522
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
3981
5523
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5524
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5525
|
+
id: z.ZodEnum<{
|
|
5526
|
+
standard: "standard";
|
|
5527
|
+
priority: "priority";
|
|
5528
|
+
ultrafast: "ultrafast";
|
|
5529
|
+
fast: "fast";
|
|
5530
|
+
}>;
|
|
5531
|
+
service_tier: z.ZodEnum<{
|
|
5532
|
+
default: "default";
|
|
5533
|
+
priority: "priority";
|
|
5534
|
+
ultrafast: "ultrafast";
|
|
5535
|
+
}>;
|
|
5536
|
+
}, z.core.$strip>>>;
|
|
5537
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5538
|
+
scope: z.ZodLiteral<"model">;
|
|
5539
|
+
resets_at: z.ZodString;
|
|
5540
|
+
}, z.core.$strip>>;
|
|
3982
5541
|
}, z.core.$loose>>>;
|
|
5542
|
+
limit: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5543
|
+
scope: z.ZodLiteral<"account">;
|
|
5544
|
+
resets_at: z.ZodString;
|
|
5545
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5546
|
+
scope: z.ZodLiteral<"models">;
|
|
5547
|
+
models: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5548
|
+
}, z.core.$strip>], "scope">>;
|
|
5549
|
+
quota_level: z.ZodOptional<z.ZodEnum<{
|
|
5550
|
+
unavailable: "unavailable";
|
|
5551
|
+
stale: "stale";
|
|
5552
|
+
warning: "warning";
|
|
5553
|
+
healthy: "healthy";
|
|
5554
|
+
critical: "critical";
|
|
5555
|
+
}>>;
|
|
3983
5556
|
}, z.core.$loose>;
|
|
3984
5557
|
export declare const ModelsSchema: z.ZodObject<{
|
|
5558
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
5559
|
+
status: z.ZodEnum<{
|
|
5560
|
+
available: "available";
|
|
5561
|
+
unavailable: "unavailable";
|
|
5562
|
+
stale: "stale";
|
|
5563
|
+
}>;
|
|
5564
|
+
authoritative: z.ZodBoolean;
|
|
5565
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
5566
|
+
generation: z.ZodString;
|
|
5567
|
+
}, z.core.$strip>>;
|
|
3985
5568
|
active_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3986
5569
|
default_model: z.ZodOptional<z.ZodString>;
|
|
3987
5570
|
default_provider_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3988
5571
|
default_bare_id: z.ZodOptional<z.ZodString>;
|
|
3989
5572
|
default_option_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3990
5573
|
groups: z.ZodArray<z.ZodObject<{
|
|
5574
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
5575
|
+
status: z.ZodEnum<{
|
|
5576
|
+
available: "available";
|
|
5577
|
+
unavailable: "unavailable";
|
|
5578
|
+
stale: "stale";
|
|
5579
|
+
}>;
|
|
5580
|
+
authoritative: z.ZodBoolean;
|
|
5581
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
5582
|
+
generation: z.ZodString;
|
|
5583
|
+
}, z.core.$strip>>;
|
|
3991
5584
|
provider: z.ZodString;
|
|
3992
5585
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
3993
5586
|
models: z.ZodArray<z.ZodObject<{
|
|
@@ -3997,6 +5590,23 @@ export declare const ModelsSchema: z.ZodObject<{
|
|
|
3997
5590
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
3998
5591
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
3999
5592
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5593
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5594
|
+
id: z.ZodEnum<{
|
|
5595
|
+
standard: "standard";
|
|
5596
|
+
priority: "priority";
|
|
5597
|
+
ultrafast: "ultrafast";
|
|
5598
|
+
fast: "fast";
|
|
5599
|
+
}>;
|
|
5600
|
+
service_tier: z.ZodEnum<{
|
|
5601
|
+
default: "default";
|
|
5602
|
+
priority: "priority";
|
|
5603
|
+
ultrafast: "ultrafast";
|
|
5604
|
+
}>;
|
|
5605
|
+
}, z.core.$strip>>>;
|
|
5606
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5607
|
+
scope: z.ZodLiteral<"model">;
|
|
5608
|
+
resets_at: z.ZodString;
|
|
5609
|
+
}, z.core.$strip>>;
|
|
4000
5610
|
}, z.core.$loose>>;
|
|
4001
5611
|
extra_models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4002
5612
|
id: z.ZodString;
|
|
@@ -4005,16 +5615,88 @@ export declare const ModelsSchema: z.ZodObject<{
|
|
|
4005
5615
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
4006
5616
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
4007
5617
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5618
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5619
|
+
id: z.ZodEnum<{
|
|
5620
|
+
standard: "standard";
|
|
5621
|
+
priority: "priority";
|
|
5622
|
+
ultrafast: "ultrafast";
|
|
5623
|
+
fast: "fast";
|
|
5624
|
+
}>;
|
|
5625
|
+
service_tier: z.ZodEnum<{
|
|
5626
|
+
default: "default";
|
|
5627
|
+
priority: "priority";
|
|
5628
|
+
ultrafast: "ultrafast";
|
|
5629
|
+
}>;
|
|
5630
|
+
}, z.core.$strip>>>;
|
|
5631
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5632
|
+
scope: z.ZodLiteral<"model">;
|
|
5633
|
+
resets_at: z.ZodString;
|
|
5634
|
+
}, z.core.$strip>>;
|
|
4008
5635
|
}, z.core.$loose>>>;
|
|
5636
|
+
limit: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5637
|
+
scope: z.ZodLiteral<"account">;
|
|
5638
|
+
resets_at: z.ZodString;
|
|
5639
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5640
|
+
scope: z.ZodLiteral<"models">;
|
|
5641
|
+
models: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5642
|
+
}, z.core.$strip>], "scope">>;
|
|
5643
|
+
quota_level: z.ZodOptional<z.ZodEnum<{
|
|
5644
|
+
unavailable: "unavailable";
|
|
5645
|
+
stale: "stale";
|
|
5646
|
+
warning: "warning";
|
|
5647
|
+
healthy: "healthy";
|
|
5648
|
+
critical: "critical";
|
|
5649
|
+
}>>;
|
|
4009
5650
|
}, z.core.$loose>>;
|
|
4010
5651
|
aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4011
5652
|
configured_model_badges: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4012
5653
|
}, z.core.$loose>;
|
|
5654
|
+
export declare const ModelsLiveSchema: z.ZodObject<{
|
|
5655
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
5656
|
+
status: z.ZodEnum<{
|
|
5657
|
+
available: "available";
|
|
5658
|
+
unavailable: "unavailable";
|
|
5659
|
+
stale: "stale";
|
|
5660
|
+
}>;
|
|
5661
|
+
authoritative: z.ZodBoolean;
|
|
5662
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
5663
|
+
generation: z.ZodString;
|
|
5664
|
+
}, z.core.$strip>>;
|
|
5665
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
5666
|
+
source: z.ZodOptional<z.ZodString>;
|
|
5667
|
+
models: z.ZodArray<z.ZodObject<{
|
|
5668
|
+
id: z.ZodString;
|
|
5669
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5670
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
5671
|
+
provider_id: z.ZodOptional<z.ZodString>;
|
|
5672
|
+
bare_id: z.ZodOptional<z.ZodString>;
|
|
5673
|
+
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5674
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5675
|
+
id: z.ZodEnum<{
|
|
5676
|
+
standard: "standard";
|
|
5677
|
+
priority: "priority";
|
|
5678
|
+
ultrafast: "ultrafast";
|
|
5679
|
+
fast: "fast";
|
|
5680
|
+
}>;
|
|
5681
|
+
service_tier: z.ZodEnum<{
|
|
5682
|
+
default: "default";
|
|
5683
|
+
priority: "priority";
|
|
5684
|
+
ultrafast: "ultrafast";
|
|
5685
|
+
}>;
|
|
5686
|
+
}, z.core.$strip>>>;
|
|
5687
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5688
|
+
scope: z.ZodLiteral<"model">;
|
|
5689
|
+
resets_at: z.ZodString;
|
|
5690
|
+
}, z.core.$strip>>;
|
|
5691
|
+
}, z.core.$loose>>;
|
|
5692
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
5693
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5694
|
+
}, z.core.$loose>;
|
|
4013
5695
|
export type Models = z.infer<typeof ModelsSchema>;
|
|
4014
5696
|
/** TAL-603: where a card's credential comes from; `other` is a source the server cannot name, shown as its raw `key_source`. */
|
|
4015
5697
|
export declare const KeySourceKindSchema: z.ZodEnum<{
|
|
4016
|
-
plugin: "plugin";
|
|
4017
5698
|
env: "env";
|
|
5699
|
+
plugin: "plugin";
|
|
4018
5700
|
config: "config";
|
|
4019
5701
|
other: "other";
|
|
4020
5702
|
oauth: "oauth";
|
|
@@ -4048,12 +5730,29 @@ export declare const ProviderSchema: z.ZodObject<{
|
|
|
4048
5730
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
4049
5731
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
4050
5732
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5733
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5734
|
+
id: z.ZodEnum<{
|
|
5735
|
+
standard: "standard";
|
|
5736
|
+
priority: "priority";
|
|
5737
|
+
ultrafast: "ultrafast";
|
|
5738
|
+
fast: "fast";
|
|
5739
|
+
}>;
|
|
5740
|
+
service_tier: z.ZodEnum<{
|
|
5741
|
+
default: "default";
|
|
5742
|
+
priority: "priority";
|
|
5743
|
+
ultrafast: "ultrafast";
|
|
5744
|
+
}>;
|
|
5745
|
+
}, z.core.$strip>>>;
|
|
5746
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5747
|
+
scope: z.ZodLiteral<"model">;
|
|
5748
|
+
resets_at: z.ZodString;
|
|
5749
|
+
}, z.core.$strip>>;
|
|
4051
5750
|
}, z.core.$loose>>>;
|
|
4052
5751
|
models_total: z.ZodOptional<z.ZodNumber>;
|
|
4053
5752
|
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
4054
5753
|
key_source_kind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4055
|
-
plugin: "plugin";
|
|
4056
5754
|
env: "env";
|
|
5755
|
+
plugin: "plugin";
|
|
4057
5756
|
config: "config";
|
|
4058
5757
|
other: "other";
|
|
4059
5758
|
oauth: "oauth";
|
|
@@ -4062,6 +5761,16 @@ export declare const ProviderSchema: z.ZodObject<{
|
|
|
4062
5761
|
removable: z.ZodOptional<z.ZodBoolean>;
|
|
4063
5762
|
}, z.core.$loose>;
|
|
4064
5763
|
export declare const ProvidersSchema: z.ZodObject<{
|
|
5764
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
5765
|
+
status: z.ZodEnum<{
|
|
5766
|
+
available: "available";
|
|
5767
|
+
unavailable: "unavailable";
|
|
5768
|
+
stale: "stale";
|
|
5769
|
+
}>;
|
|
5770
|
+
authoritative: z.ZodBoolean;
|
|
5771
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
5772
|
+
generation: z.ZodString;
|
|
5773
|
+
}, z.core.$strip>>;
|
|
4065
5774
|
providers: z.ZodArray<z.ZodObject<{
|
|
4066
5775
|
id: z.ZodString;
|
|
4067
5776
|
display_name: z.ZodOptional<z.ZodString>;
|
|
@@ -4083,12 +5792,29 @@ export declare const ProvidersSchema: z.ZodObject<{
|
|
|
4083
5792
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
4084
5793
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
4085
5794
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
5795
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5796
|
+
id: z.ZodEnum<{
|
|
5797
|
+
standard: "standard";
|
|
5798
|
+
priority: "priority";
|
|
5799
|
+
ultrafast: "ultrafast";
|
|
5800
|
+
fast: "fast";
|
|
5801
|
+
}>;
|
|
5802
|
+
service_tier: z.ZodEnum<{
|
|
5803
|
+
default: "default";
|
|
5804
|
+
priority: "priority";
|
|
5805
|
+
ultrafast: "ultrafast";
|
|
5806
|
+
}>;
|
|
5807
|
+
}, z.core.$strip>>>;
|
|
5808
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
5809
|
+
scope: z.ZodLiteral<"model">;
|
|
5810
|
+
resets_at: z.ZodString;
|
|
5811
|
+
}, z.core.$strip>>;
|
|
4086
5812
|
}, z.core.$loose>>>;
|
|
4087
5813
|
models_total: z.ZodOptional<z.ZodNumber>;
|
|
4088
5814
|
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
4089
5815
|
key_source_kind: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4090
|
-
plugin: "plugin";
|
|
4091
5816
|
env: "env";
|
|
5817
|
+
plugin: "plugin";
|
|
4092
5818
|
config: "config";
|
|
4093
5819
|
other: "other";
|
|
4094
5820
|
oauth: "oauth";
|
|
@@ -4098,26 +5824,18 @@ export declare const ProvidersSchema: z.ZodObject<{
|
|
|
4098
5824
|
}, z.core.$loose>>;
|
|
4099
5825
|
active_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4100
5826
|
}, 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
5827
|
/** TAL-411: the server's classification per colour basis; `/api/provider/quotas` only, at the profile's thresholds. */
|
|
4110
5828
|
export declare const QuotaUrgencySchema: z.ZodObject<{
|
|
4111
5829
|
remaining: z.ZodEnum<{
|
|
4112
|
-
stale: "stale";
|
|
4113
5830
|
unavailable: "unavailable";
|
|
5831
|
+
stale: "stale";
|
|
4114
5832
|
warning: "warning";
|
|
4115
5833
|
healthy: "healthy";
|
|
4116
5834
|
critical: "critical";
|
|
4117
5835
|
}>;
|
|
4118
5836
|
pace: z.ZodEnum<{
|
|
4119
|
-
stale: "stale";
|
|
4120
5837
|
unavailable: "unavailable";
|
|
5838
|
+
stale: "stale";
|
|
4121
5839
|
warning: "warning";
|
|
4122
5840
|
healthy: "healthy";
|
|
4123
5841
|
critical: "critical";
|
|
@@ -4140,8 +5858,8 @@ export declare const QuotaPaceSchema: z.ZodObject<{
|
|
|
4140
5858
|
}, z.core.$loose>;
|
|
4141
5859
|
export declare const QuotaForecastSchema: z.ZodObject<{
|
|
4142
5860
|
outcome: z.ZodEnum<{
|
|
4143
|
-
warning: "warning";
|
|
4144
5861
|
safe: "safe";
|
|
5862
|
+
warning: "warning";
|
|
4145
5863
|
}>;
|
|
4146
5864
|
budget_unit: z.ZodEnum<{
|
|
4147
5865
|
hour: "hour";
|
|
@@ -4173,8 +5891,8 @@ export declare const QuotaWindowSchema: z.ZodObject<{
|
|
|
4173
5891
|
}, z.core.$loose>>;
|
|
4174
5892
|
forecast: z.ZodNullable<z.ZodObject<{
|
|
4175
5893
|
outcome: z.ZodEnum<{
|
|
4176
|
-
warning: "warning";
|
|
4177
5894
|
safe: "safe";
|
|
5895
|
+
warning: "warning";
|
|
4178
5896
|
}>;
|
|
4179
5897
|
budget_unit: z.ZodEnum<{
|
|
4180
5898
|
hour: "hour";
|
|
@@ -4186,15 +5904,15 @@ export declare const QuotaWindowSchema: z.ZodObject<{
|
|
|
4186
5904
|
projection_eligible: z.ZodOptional<z.ZodBoolean>;
|
|
4187
5905
|
urgency: z.ZodOptional<z.ZodObject<{
|
|
4188
5906
|
remaining: z.ZodEnum<{
|
|
4189
|
-
stale: "stale";
|
|
4190
5907
|
unavailable: "unavailable";
|
|
5908
|
+
stale: "stale";
|
|
4191
5909
|
warning: "warning";
|
|
4192
5910
|
healthy: "healthy";
|
|
4193
5911
|
critical: "critical";
|
|
4194
5912
|
}>;
|
|
4195
5913
|
pace: z.ZodEnum<{
|
|
4196
|
-
stale: "stale";
|
|
4197
5914
|
unavailable: "unavailable";
|
|
5915
|
+
stale: "stale";
|
|
4198
5916
|
warning: "warning";
|
|
4199
5917
|
healthy: "healthy";
|
|
4200
5918
|
critical: "critical";
|
|
@@ -4202,6 +5920,7 @@ export declare const QuotaWindowSchema: z.ZodObject<{
|
|
|
4202
5920
|
}, z.core.$loose>>;
|
|
4203
5921
|
}, z.core.$loose>;
|
|
4204
5922
|
export declare const QuotaSourceSchema: z.ZodObject<{
|
|
5923
|
+
computed_at: z.ZodOptional<z.ZodString>;
|
|
4205
5924
|
source_id: z.ZodString;
|
|
4206
5925
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
4207
5926
|
provider_label: z.ZodOptional<z.ZodString>;
|
|
@@ -4234,8 +5953,8 @@ export declare const QuotaSourceSchema: z.ZodObject<{
|
|
|
4234
5953
|
}, z.core.$loose>>;
|
|
4235
5954
|
forecast: z.ZodNullable<z.ZodObject<{
|
|
4236
5955
|
outcome: z.ZodEnum<{
|
|
4237
|
-
warning: "warning";
|
|
4238
5956
|
safe: "safe";
|
|
5957
|
+
warning: "warning";
|
|
4239
5958
|
}>;
|
|
4240
5959
|
budget_unit: z.ZodEnum<{
|
|
4241
5960
|
hour: "hour";
|
|
@@ -4247,15 +5966,15 @@ export declare const QuotaSourceSchema: z.ZodObject<{
|
|
|
4247
5966
|
projection_eligible: z.ZodOptional<z.ZodBoolean>;
|
|
4248
5967
|
urgency: z.ZodOptional<z.ZodObject<{
|
|
4249
5968
|
remaining: z.ZodEnum<{
|
|
4250
|
-
stale: "stale";
|
|
4251
5969
|
unavailable: "unavailable";
|
|
5970
|
+
stale: "stale";
|
|
4252
5971
|
warning: "warning";
|
|
4253
5972
|
healthy: "healthy";
|
|
4254
5973
|
critical: "critical";
|
|
4255
5974
|
}>;
|
|
4256
5975
|
pace: z.ZodEnum<{
|
|
4257
|
-
stale: "stale";
|
|
4258
5976
|
unavailable: "unavailable";
|
|
5977
|
+
stale: "stale";
|
|
4259
5978
|
warning: "warning";
|
|
4260
5979
|
healthy: "healthy";
|
|
4261
5980
|
critical: "critical";
|
|
@@ -4273,15 +5992,15 @@ export declare const QuotaSourceSchema: z.ZodObject<{
|
|
|
4273
5992
|
weekly_window_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4274
5993
|
urgency: z.ZodOptional<z.ZodObject<{
|
|
4275
5994
|
remaining: z.ZodEnum<{
|
|
4276
|
-
stale: "stale";
|
|
4277
5995
|
unavailable: "unavailable";
|
|
5996
|
+
stale: "stale";
|
|
4278
5997
|
warning: "warning";
|
|
4279
5998
|
healthy: "healthy";
|
|
4280
5999
|
critical: "critical";
|
|
4281
6000
|
}>;
|
|
4282
6001
|
pace: z.ZodEnum<{
|
|
4283
|
-
stale: "stale";
|
|
4284
6002
|
unavailable: "unavailable";
|
|
6003
|
+
stale: "stale";
|
|
4285
6004
|
warning: "warning";
|
|
4286
6005
|
healthy: "healthy";
|
|
4287
6006
|
critical: "critical";
|
|
@@ -4318,8 +6037,8 @@ export declare const QuotaAccountLimitsSchema: z.ZodObject<{
|
|
|
4318
6037
|
}, z.core.$loose>>;
|
|
4319
6038
|
forecast: z.ZodNullable<z.ZodObject<{
|
|
4320
6039
|
outcome: z.ZodEnum<{
|
|
4321
|
-
warning: "warning";
|
|
4322
6040
|
safe: "safe";
|
|
6041
|
+
warning: "warning";
|
|
4323
6042
|
}>;
|
|
4324
6043
|
budget_unit: z.ZodEnum<{
|
|
4325
6044
|
hour: "hour";
|
|
@@ -4331,15 +6050,15 @@ export declare const QuotaAccountLimitsSchema: z.ZodObject<{
|
|
|
4331
6050
|
projection_eligible: z.ZodOptional<z.ZodBoolean>;
|
|
4332
6051
|
urgency: z.ZodOptional<z.ZodObject<{
|
|
4333
6052
|
remaining: z.ZodEnum<{
|
|
4334
|
-
stale: "stale";
|
|
4335
6053
|
unavailable: "unavailable";
|
|
6054
|
+
stale: "stale";
|
|
4336
6055
|
warning: "warning";
|
|
4337
6056
|
healthy: "healthy";
|
|
4338
6057
|
critical: "critical";
|
|
4339
6058
|
}>;
|
|
4340
6059
|
pace: z.ZodEnum<{
|
|
4341
|
-
stale: "stale";
|
|
4342
6060
|
unavailable: "unavailable";
|
|
6061
|
+
stale: "stale";
|
|
4343
6062
|
warning: "warning";
|
|
4344
6063
|
healthy: "healthy";
|
|
4345
6064
|
critical: "critical";
|
|
@@ -4392,8 +6111,8 @@ export declare const ProviderQuotaSchema: z.ZodObject<{
|
|
|
4392
6111
|
}, z.core.$loose>>;
|
|
4393
6112
|
forecast: z.ZodNullable<z.ZodObject<{
|
|
4394
6113
|
outcome: z.ZodEnum<{
|
|
4395
|
-
warning: "warning";
|
|
4396
6114
|
safe: "safe";
|
|
6115
|
+
warning: "warning";
|
|
4397
6116
|
}>;
|
|
4398
6117
|
budget_unit: z.ZodEnum<{
|
|
4399
6118
|
hour: "hour";
|
|
@@ -4405,15 +6124,15 @@ export declare const ProviderQuotaSchema: z.ZodObject<{
|
|
|
4405
6124
|
projection_eligible: z.ZodOptional<z.ZodBoolean>;
|
|
4406
6125
|
urgency: z.ZodOptional<z.ZodObject<{
|
|
4407
6126
|
remaining: z.ZodEnum<{
|
|
4408
|
-
stale: "stale";
|
|
4409
6127
|
unavailable: "unavailable";
|
|
6128
|
+
stale: "stale";
|
|
4410
6129
|
warning: "warning";
|
|
4411
6130
|
healthy: "healthy";
|
|
4412
6131
|
critical: "critical";
|
|
4413
6132
|
}>;
|
|
4414
6133
|
pace: z.ZodEnum<{
|
|
4415
|
-
stale: "stale";
|
|
4416
6134
|
unavailable: "unavailable";
|
|
6135
|
+
stale: "stale";
|
|
4417
6136
|
warning: "warning";
|
|
4418
6137
|
healthy: "healthy";
|
|
4419
6138
|
critical: "critical";
|
|
@@ -4429,6 +6148,16 @@ export declare const ProviderQuotaSchema: z.ZodObject<{
|
|
|
4429
6148
|
}, z.core.$loose>;
|
|
4430
6149
|
/** Python `get_provider_quotas`: the stable identity envelope the iOS quota widget persists (`scope_id`/`profile_id`). */
|
|
4431
6150
|
export declare const ProviderQuotasSchema: z.ZodObject<{
|
|
6151
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
6152
|
+
status: z.ZodEnum<{
|
|
6153
|
+
available: "available";
|
|
6154
|
+
unavailable: "unavailable";
|
|
6155
|
+
stale: "stale";
|
|
6156
|
+
}>;
|
|
6157
|
+
authoritative: z.ZodBoolean;
|
|
6158
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
6159
|
+
generation: z.ZodString;
|
|
6160
|
+
}, z.core.$strip>>;
|
|
4432
6161
|
version: z.ZodNumber;
|
|
4433
6162
|
computed_at: z.ZodString;
|
|
4434
6163
|
scope_id: z.ZodString;
|
|
@@ -4437,6 +6166,7 @@ export declare const ProviderQuotasSchema: z.ZodObject<{
|
|
|
4437
6166
|
requested_source_id: z.ZodNullable<z.ZodString>;
|
|
4438
6167
|
missing_source: z.ZodBoolean;
|
|
4439
6168
|
sources: z.ZodArray<z.ZodObject<{
|
|
6169
|
+
computed_at: z.ZodOptional<z.ZodString>;
|
|
4440
6170
|
source_id: z.ZodString;
|
|
4441
6171
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
4442
6172
|
provider_label: z.ZodOptional<z.ZodString>;
|
|
@@ -4469,8 +6199,8 @@ export declare const ProviderQuotasSchema: z.ZodObject<{
|
|
|
4469
6199
|
}, z.core.$loose>>;
|
|
4470
6200
|
forecast: z.ZodNullable<z.ZodObject<{
|
|
4471
6201
|
outcome: z.ZodEnum<{
|
|
4472
|
-
warning: "warning";
|
|
4473
6202
|
safe: "safe";
|
|
6203
|
+
warning: "warning";
|
|
4474
6204
|
}>;
|
|
4475
6205
|
budget_unit: z.ZodEnum<{
|
|
4476
6206
|
hour: "hour";
|
|
@@ -4482,15 +6212,15 @@ export declare const ProviderQuotasSchema: z.ZodObject<{
|
|
|
4482
6212
|
projection_eligible: z.ZodOptional<z.ZodBoolean>;
|
|
4483
6213
|
urgency: z.ZodOptional<z.ZodObject<{
|
|
4484
6214
|
remaining: z.ZodEnum<{
|
|
4485
|
-
stale: "stale";
|
|
4486
6215
|
unavailable: "unavailable";
|
|
6216
|
+
stale: "stale";
|
|
4487
6217
|
warning: "warning";
|
|
4488
6218
|
healthy: "healthy";
|
|
4489
6219
|
critical: "critical";
|
|
4490
6220
|
}>;
|
|
4491
6221
|
pace: z.ZodEnum<{
|
|
4492
|
-
stale: "stale";
|
|
4493
6222
|
unavailable: "unavailable";
|
|
6223
|
+
stale: "stale";
|
|
4494
6224
|
warning: "warning";
|
|
4495
6225
|
healthy: "healthy";
|
|
4496
6226
|
critical: "critical";
|
|
@@ -4508,15 +6238,15 @@ export declare const ProviderQuotasSchema: z.ZodObject<{
|
|
|
4508
6238
|
weekly_window_index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4509
6239
|
urgency: z.ZodOptional<z.ZodObject<{
|
|
4510
6240
|
remaining: z.ZodEnum<{
|
|
4511
|
-
stale: "stale";
|
|
4512
6241
|
unavailable: "unavailable";
|
|
6242
|
+
stale: "stale";
|
|
4513
6243
|
warning: "warning";
|
|
4514
6244
|
healthy: "healthy";
|
|
4515
6245
|
critical: "critical";
|
|
4516
6246
|
}>;
|
|
4517
6247
|
pace: z.ZodEnum<{
|
|
4518
|
-
stale: "stale";
|
|
4519
6248
|
unavailable: "unavailable";
|
|
6249
|
+
stale: "stale";
|
|
4520
6250
|
warning: "warning";
|
|
4521
6251
|
healthy: "healthy";
|
|
4522
6252
|
critical: "critical";
|
|
@@ -4554,8 +6284,8 @@ export declare const ProviderCostHistorySchema: z.ZodObject<{
|
|
|
4554
6284
|
budget_percent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4555
6285
|
budget_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4556
6286
|
ok: "ok";
|
|
4557
|
-
over: "over";
|
|
4558
6287
|
warn: "warn";
|
|
6288
|
+
over: "over";
|
|
4559
6289
|
}>>>;
|
|
4560
6290
|
}, z.core.$loose>;
|
|
4561
6291
|
export type ProviderCostHistory = z.infer<typeof ProviderCostHistorySchema>;
|
|
@@ -4579,6 +6309,8 @@ export declare const AuxiliaryTaskSchema: z.ZodObject<{
|
|
|
4579
6309
|
provider_label: z.ZodNullable<z.ZodString>;
|
|
4580
6310
|
selected_option_id: z.ZodNullable<z.ZodString>;
|
|
4581
6311
|
in_catalog: z.ZodBoolean;
|
|
6312
|
+
inherit_from: z.ZodNullable<z.ZodString>;
|
|
6313
|
+
reasoning_effort: z.ZodNullable<z.ZodString>;
|
|
4582
6314
|
}, z.core.$loose>;
|
|
4583
6315
|
export declare const AuxiliaryModelsSchema: z.ZodObject<{
|
|
4584
6316
|
main: z.ZodObject<{
|
|
@@ -4586,6 +6318,25 @@ export declare const AuxiliaryModelsSchema: z.ZodObject<{
|
|
|
4586
6318
|
provider: z.ZodOptional<z.ZodString>;
|
|
4587
6319
|
base_url: z.ZodOptional<z.ZodString>;
|
|
4588
6320
|
api_key_set: z.ZodOptional<z.ZodBoolean>;
|
|
6321
|
+
service_tier: z.ZodOptional<z.ZodEnum<{
|
|
6322
|
+
"": "";
|
|
6323
|
+
default: "default";
|
|
6324
|
+
priority: "priority";
|
|
6325
|
+
ultrafast: "ultrafast";
|
|
6326
|
+
}>>;
|
|
6327
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6328
|
+
id: z.ZodEnum<{
|
|
6329
|
+
standard: "standard";
|
|
6330
|
+
priority: "priority";
|
|
6331
|
+
ultrafast: "ultrafast";
|
|
6332
|
+
fast: "fast";
|
|
6333
|
+
}>;
|
|
6334
|
+
service_tier: z.ZodEnum<{
|
|
6335
|
+
default: "default";
|
|
6336
|
+
priority: "priority";
|
|
6337
|
+
ultrafast: "ultrafast";
|
|
6338
|
+
}>;
|
|
6339
|
+
}, z.core.$strip>>>;
|
|
4589
6340
|
}, z.core.$loose>;
|
|
4590
6341
|
tasks: z.ZodArray<z.ZodObject<{
|
|
4591
6342
|
task: z.ZodString;
|
|
@@ -4600,6 +6351,8 @@ export declare const AuxiliaryModelsSchema: z.ZodObject<{
|
|
|
4600
6351
|
provider_label: z.ZodNullable<z.ZodString>;
|
|
4601
6352
|
selected_option_id: z.ZodNullable<z.ZodString>;
|
|
4602
6353
|
in_catalog: z.ZodBoolean;
|
|
6354
|
+
inherit_from: z.ZodNullable<z.ZodString>;
|
|
6355
|
+
reasoning_effort: z.ZodNullable<z.ZodString>;
|
|
4603
6356
|
}, z.core.$loose>>;
|
|
4604
6357
|
}, z.core.$loose>;
|
|
4605
6358
|
export declare const MaxTokensSchema: z.ZodObject<{
|
|
@@ -4659,14 +6412,14 @@ export declare const DirListingSchema: z.ZodObject<{
|
|
|
4659
6412
|
}, z.core.$loose>;
|
|
4660
6413
|
/** How a workspace file renders (TAL-566): media streams from `/api/file/raw`; text kinds carry `content`. */
|
|
4661
6414
|
export declare const FilePreviewKindSchema: z.ZodEnum<{
|
|
6415
|
+
markdown: "markdown";
|
|
6416
|
+
html: "html";
|
|
4662
6417
|
text: "text";
|
|
4663
6418
|
image: "image";
|
|
4664
6419
|
audio: "audio";
|
|
4665
6420
|
video: "video";
|
|
4666
6421
|
pdf: "pdf";
|
|
4667
|
-
markdown: "markdown";
|
|
4668
6422
|
csv: "csv";
|
|
4669
|
-
html: "html";
|
|
4670
6423
|
binary: "binary";
|
|
4671
6424
|
}>;
|
|
4672
6425
|
export type FilePreviewKind = z.infer<typeof FilePreviewKindSchema>;
|
|
@@ -4681,14 +6434,14 @@ export declare const FileContentSchema: z.ZodObject<{
|
|
|
4681
6434
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
4682
6435
|
mime: z.ZodOptional<z.ZodString>;
|
|
4683
6436
|
preview: z.ZodOptional<z.ZodEnum<{
|
|
6437
|
+
markdown: "markdown";
|
|
6438
|
+
html: "html";
|
|
4684
6439
|
text: "text";
|
|
4685
6440
|
image: "image";
|
|
4686
6441
|
audio: "audio";
|
|
4687
6442
|
video: "video";
|
|
4688
6443
|
pdf: "pdf";
|
|
4689
|
-
markdown: "markdown";
|
|
4690
6444
|
csv: "csv";
|
|
4691
|
-
html: "html";
|
|
4692
6445
|
binary: "binary";
|
|
4693
6446
|
}>>;
|
|
4694
6447
|
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
@@ -4711,6 +6464,14 @@ export declare const SkillSchema: z.ZodObject<{
|
|
|
4711
6464
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4712
6465
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4713
6466
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
6467
|
+
load_name: z.ZodOptional<z.ZodString>;
|
|
6468
|
+
declared_name: z.ZodOptional<z.ZodString>;
|
|
6469
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
6470
|
+
shadowed: "shadowed";
|
|
6471
|
+
unique: "unique";
|
|
6472
|
+
ambiguous: "ambiguous";
|
|
6473
|
+
}>>;
|
|
6474
|
+
tier: z.ZodOptional<z.ZodNumber>;
|
|
4714
6475
|
}, z.core.$loose>;
|
|
4715
6476
|
export declare const SkillsSchema: z.ZodObject<{
|
|
4716
6477
|
skills: z.ZodArray<z.ZodObject<{
|
|
@@ -4718,6 +6479,14 @@ export declare const SkillsSchema: z.ZodObject<{
|
|
|
4718
6479
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4719
6480
|
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4720
6481
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
6482
|
+
load_name: z.ZodOptional<z.ZodString>;
|
|
6483
|
+
declared_name: z.ZodOptional<z.ZodString>;
|
|
6484
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
6485
|
+
shadowed: "shadowed";
|
|
6486
|
+
unique: "unique";
|
|
6487
|
+
ambiguous: "ambiguous";
|
|
6488
|
+
}>>;
|
|
6489
|
+
tier: z.ZodOptional<z.ZodNumber>;
|
|
4721
6490
|
}, z.core.$loose>>;
|
|
4722
6491
|
categories: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
4723
6492
|
}, z.core.$loose>;
|
|
@@ -4726,6 +6495,7 @@ export declare const SkillsSchema: z.ZodObject<{
|
|
|
4726
6495
|
* A linked file that is not UTF-8 text carries `binary: true` and its `size` instead of `content`.
|
|
4727
6496
|
*/
|
|
4728
6497
|
export declare const SkillContentSchema: z.ZodObject<{
|
|
6498
|
+
editable: z.ZodOptional<z.ZodBoolean>;
|
|
4729
6499
|
name: z.ZodOptional<z.ZodString>;
|
|
4730
6500
|
content: z.ZodOptional<z.ZodString>;
|
|
4731
6501
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -4763,6 +6533,9 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
4763
6533
|
project_context_mtime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4764
6534
|
project_context_shadowed: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
4765
6535
|
external_notes_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
6536
|
+
memory_revision: z.ZodString;
|
|
6537
|
+
user_revision: z.ZodString;
|
|
6538
|
+
soul_revision: z.ZodString;
|
|
4766
6539
|
}, z.core.$loose>;
|
|
4767
6540
|
export type Memory = z.infer<typeof MemorySchema>;
|
|
4768
6541
|
export declare const PromptSchema: z.ZodObject<{
|
|
@@ -4791,7 +6564,10 @@ export declare const PromptsSchema: z.ZodObject<{
|
|
|
4791
6564
|
* clients can run it, and `unsupported_message` is the English text a client outside `clients` shows when it is typed.
|
|
4792
6565
|
* Clients suggest the entries listing them whose name or any alias starts with the typed text (case-insensitive), and
|
|
4793
6566
|
* 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
|
|
6567
|
+
* posts the typed text there with the open chat's `session_id` and shows the returned output instead of starting a chat turn
|
|
6568
|
+
* (TAL-561); `/refine` reviews that chat (TAL-902).
|
|
6569
|
+
* `handler: 'prompt'` marks an Agent prompt built-in: the client sends the typed text as a chat turn and the server starts the
|
|
6570
|
+
* turn with the Agent's expansion of it (TAL-817).
|
|
4795
6571
|
*/
|
|
4796
6572
|
export declare const CommandClientSchema: z.ZodEnum<{
|
|
4797
6573
|
web: "web";
|
|
@@ -4804,6 +6580,7 @@ export declare const CommandRowSchema: z.ZodObject<{
|
|
|
4804
6580
|
args_hint: z.ZodOptional<z.ZodString>;
|
|
4805
6581
|
category: z.ZodOptional<z.ZodString>;
|
|
4806
6582
|
handler: z.ZodEnum<{
|
|
6583
|
+
prompt: "prompt";
|
|
4807
6584
|
agent: "agent";
|
|
4808
6585
|
client: "client";
|
|
4809
6586
|
}>;
|
|
@@ -4825,6 +6602,7 @@ export declare const CommandsSchema: z.ZodObject<{
|
|
|
4825
6602
|
args_hint: z.ZodOptional<z.ZodString>;
|
|
4826
6603
|
category: z.ZodOptional<z.ZodString>;
|
|
4827
6604
|
handler: z.ZodEnum<{
|
|
6605
|
+
prompt: "prompt";
|
|
4828
6606
|
agent: "agent";
|
|
4829
6607
|
client: "client";
|
|
4830
6608
|
}>;
|
|
@@ -4899,10 +6677,19 @@ export declare const DashboardStatusSchema: z.ZodObject<{
|
|
|
4899
6677
|
* Gateway status for the Settings banner (TAL-266). `running` and `configured` come from the Agent health probe; when it
|
|
4900
6678
|
* is inconclusive, stale running metadata or known gateway sessions mark the gateway configured. `platforms` are the
|
|
4901
6679
|
* messaging platforms of known gateway sessions; `last_active` is the gateway session index's ISO mtime while running, else "".
|
|
6680
|
+
* TAL-805: `gateway_mode` is the active profile's mode and decides `running` when it is not null. It is null for a remote
|
|
6681
|
+
* gateway, or for the root profile when the sidecar cannot answer; a named profile whose mode is unconfirmed reads `stopped`.
|
|
4902
6682
|
*/
|
|
4903
6683
|
export declare const GatewayStatusSchema: z.ZodObject<{
|
|
4904
6684
|
running: z.ZodBoolean;
|
|
4905
6685
|
configured: z.ZodBoolean;
|
|
6686
|
+
gateway_mode: z.ZodNullable<z.ZodEnum<{
|
|
6687
|
+
stopped: "stopped";
|
|
6688
|
+
parked: "parked";
|
|
6689
|
+
own: "own";
|
|
6690
|
+
served: "served";
|
|
6691
|
+
standalone: "standalone";
|
|
6692
|
+
}>>;
|
|
4906
6693
|
platforms: z.ZodArray<z.ZodObject<{
|
|
4907
6694
|
name: z.ZodString;
|
|
4908
6695
|
label: z.ZodString;
|
|
@@ -4927,6 +6714,13 @@ export declare const GatewayActionSchema: z.ZodObject<{
|
|
|
4927
6714
|
status: z.ZodObject<{
|
|
4928
6715
|
running: z.ZodBoolean;
|
|
4929
6716
|
configured: z.ZodBoolean;
|
|
6717
|
+
gateway_mode: z.ZodNullable<z.ZodEnum<{
|
|
6718
|
+
stopped: "stopped";
|
|
6719
|
+
parked: "parked";
|
|
6720
|
+
own: "own";
|
|
6721
|
+
served: "served";
|
|
6722
|
+
standalone: "standalone";
|
|
6723
|
+
}>>;
|
|
4930
6724
|
platforms: z.ZodArray<z.ZodObject<{
|
|
4931
6725
|
name: z.ZodString;
|
|
4932
6726
|
label: z.ZodString;
|
|
@@ -4976,14 +6770,14 @@ export declare const ProjectOsDashboardSchema: z.ZodObject<{
|
|
|
4976
6770
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
4977
6771
|
mime: z.ZodOptional<z.ZodString>;
|
|
4978
6772
|
preview: z.ZodOptional<z.ZodEnum<{
|
|
6773
|
+
markdown: "markdown";
|
|
6774
|
+
html: "html";
|
|
4979
6775
|
text: "text";
|
|
4980
6776
|
image: "image";
|
|
4981
6777
|
audio: "audio";
|
|
4982
6778
|
video: "video";
|
|
4983
6779
|
pdf: "pdf";
|
|
4984
|
-
markdown: "markdown";
|
|
4985
6780
|
csv: "csv";
|
|
4986
|
-
html: "html";
|
|
4987
6781
|
binary: "binary";
|
|
4988
6782
|
}>>;
|
|
4989
6783
|
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
@@ -4999,14 +6793,14 @@ export declare const ProjectOsDashboardSchema: z.ZodObject<{
|
|
|
4999
6793
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
5000
6794
|
mime: z.ZodOptional<z.ZodString>;
|
|
5001
6795
|
preview: z.ZodOptional<z.ZodEnum<{
|
|
6796
|
+
markdown: "markdown";
|
|
6797
|
+
html: "html";
|
|
5002
6798
|
text: "text";
|
|
5003
6799
|
image: "image";
|
|
5004
6800
|
audio: "audio";
|
|
5005
6801
|
video: "video";
|
|
5006
6802
|
pdf: "pdf";
|
|
5007
|
-
markdown: "markdown";
|
|
5008
6803
|
csv: "csv";
|
|
5009
|
-
html: "html";
|
|
5010
6804
|
binary: "binary";
|
|
5011
6805
|
}>>;
|
|
5012
6806
|
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
@@ -5022,14 +6816,14 @@ export declare const ProjectOsDashboardSchema: z.ZodObject<{
|
|
|
5022
6816
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
5023
6817
|
mime: z.ZodOptional<z.ZodString>;
|
|
5024
6818
|
preview: z.ZodOptional<z.ZodEnum<{
|
|
6819
|
+
markdown: "markdown";
|
|
6820
|
+
html: "html";
|
|
5025
6821
|
text: "text";
|
|
5026
6822
|
image: "image";
|
|
5027
6823
|
audio: "audio";
|
|
5028
6824
|
video: "video";
|
|
5029
6825
|
pdf: "pdf";
|
|
5030
|
-
markdown: "markdown";
|
|
5031
6826
|
csv: "csv";
|
|
5032
|
-
html: "html";
|
|
5033
6827
|
binary: "binary";
|
|
5034
6828
|
}>>;
|
|
5035
6829
|
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
@@ -5045,14 +6839,14 @@ export declare const ProjectOsDashboardSchema: z.ZodObject<{
|
|
|
5045
6839
|
binary: z.ZodOptional<z.ZodBoolean>;
|
|
5046
6840
|
mime: z.ZodOptional<z.ZodString>;
|
|
5047
6841
|
preview: z.ZodOptional<z.ZodEnum<{
|
|
6842
|
+
markdown: "markdown";
|
|
6843
|
+
html: "html";
|
|
5048
6844
|
text: "text";
|
|
5049
6845
|
image: "image";
|
|
5050
6846
|
audio: "audio";
|
|
5051
6847
|
video: "video";
|
|
5052
6848
|
pdf: "pdf";
|
|
5053
|
-
markdown: "markdown";
|
|
5054
6849
|
csv: "csv";
|
|
5055
|
-
html: "html";
|
|
5056
6850
|
binary: "binary";
|
|
5057
6851
|
}>>;
|
|
5058
6852
|
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
@@ -5073,7 +6867,63 @@ export declare const ProjectOsDashboardSchema: z.ZodObject<{
|
|
|
5073
6867
|
goal_summary: z.ZodString;
|
|
5074
6868
|
}, z.core.$strip>;
|
|
5075
6869
|
export type ProjectOsDashboard = z.infer<typeof ProjectOsDashboardSchema>;
|
|
6870
|
+
/** One server projection used by chat readiness, HTTP refusals, and persisted stream errors. */
|
|
6871
|
+
export declare const AgentRuntimeMetadataSchema: z.ZodObject<{
|
|
6872
|
+
agent_runtime_reason: z.ZodOptional<z.ZodEnum<{
|
|
6873
|
+
unknown: "unknown";
|
|
6874
|
+
update_active: "update_active";
|
|
6875
|
+
recovery_incomplete: "recovery_incomplete";
|
|
6876
|
+
source_changed: "source_changed";
|
|
6877
|
+
}>>;
|
|
6878
|
+
agent_update_state: z.ZodOptional<z.ZodString>;
|
|
6879
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
6880
|
+
restart_scheduled: z.ZodOptional<z.ZodBoolean>;
|
|
6881
|
+
}, z.core.$strip>;
|
|
6882
|
+
export type AgentRuntimeMetadata = z.infer<typeof AgentRuntimeMetadataSchema>;
|
|
6883
|
+
/** TAL-951: whether Web chat can run, from the Agent sidecar's status; `condition` says why not, null when available. */
|
|
6884
|
+
export declare const ChatReadinessSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6885
|
+
available: z.ZodLiteral<true>;
|
|
6886
|
+
condition: z.ZodNull;
|
|
6887
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6888
|
+
agent_runtime_reason: z.ZodOptional<z.ZodEnum<{
|
|
6889
|
+
unknown: "unknown";
|
|
6890
|
+
update_active: "update_active";
|
|
6891
|
+
recovery_incomplete: "recovery_incomplete";
|
|
6892
|
+
source_changed: "source_changed";
|
|
6893
|
+
}>>;
|
|
6894
|
+
agent_update_state: z.ZodOptional<z.ZodString>;
|
|
6895
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
6896
|
+
restart_scheduled: z.ZodOptional<z.ZodBoolean>;
|
|
6897
|
+
available: z.ZodLiteral<false>;
|
|
6898
|
+
condition: z.ZodEnum<{
|
|
6899
|
+
sidecar_unavailable: "sidecar_unavailable";
|
|
6900
|
+
agent_runtime_stale: "agent_runtime_stale";
|
|
6901
|
+
agent_incompatible: "agent_incompatible";
|
|
6902
|
+
}>;
|
|
6903
|
+
}, z.core.$strip>], "available">;
|
|
6904
|
+
export type ChatReadiness = z.infer<typeof ChatReadinessSchema>;
|
|
6905
|
+
/** Messaging-gateway liveness (`alive`, `details`, `gateway_chat`) for Settings → System, plus Web chat readiness in `chat`. */
|
|
5076
6906
|
export declare const AgentHealthSchema: z.ZodObject<{
|
|
6907
|
+
chat: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6908
|
+
available: z.ZodLiteral<true>;
|
|
6909
|
+
condition: z.ZodNull;
|
|
6910
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6911
|
+
agent_runtime_reason: z.ZodOptional<z.ZodEnum<{
|
|
6912
|
+
unknown: "unknown";
|
|
6913
|
+
update_active: "update_active";
|
|
6914
|
+
recovery_incomplete: "recovery_incomplete";
|
|
6915
|
+
source_changed: "source_changed";
|
|
6916
|
+
}>>;
|
|
6917
|
+
agent_update_state: z.ZodOptional<z.ZodString>;
|
|
6918
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
6919
|
+
restart_scheduled: z.ZodOptional<z.ZodBoolean>;
|
|
6920
|
+
available: z.ZodLiteral<false>;
|
|
6921
|
+
condition: z.ZodEnum<{
|
|
6922
|
+
sidecar_unavailable: "sidecar_unavailable";
|
|
6923
|
+
agent_runtime_stale: "agent_runtime_stale";
|
|
6924
|
+
agent_incompatible: "agent_incompatible";
|
|
6925
|
+
}>;
|
|
6926
|
+
}, z.core.$strip>], "available">>;
|
|
5077
6927
|
alive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5078
6928
|
checked_at: z.ZodOptional<z.ZodString>;
|
|
5079
6929
|
details: z.ZodOptional<z.ZodObject<{
|
|
@@ -5107,23 +6957,50 @@ export declare const SystemHealthSchema: z.ZodObject<{
|
|
|
5107
6957
|
}, z.core.$loose>;
|
|
5108
6958
|
export declare const UpdateStateSchema: z.ZodEnum<{
|
|
5109
6959
|
unknown: "unknown";
|
|
6960
|
+
finish: "finish";
|
|
5110
6961
|
manual: "manual";
|
|
5111
6962
|
up_to_date: "up_to_date";
|
|
5112
6963
|
release_ready: "release_ready";
|
|
5113
6964
|
commits_behind: "commits_behind";
|
|
5114
6965
|
local_changes: "local_changes";
|
|
5115
|
-
finish: "finish";
|
|
5116
6966
|
check_failed: "check_failed";
|
|
5117
6967
|
off: "off";
|
|
5118
6968
|
}>;
|
|
5119
6969
|
export type UpdateState = z.infer<typeof UpdateStateSchema>;
|
|
6970
|
+
export declare const UpdateVersionSchema: z.ZodObject<{
|
|
6971
|
+
version: z.ZodString;
|
|
6972
|
+
ref: z.ZodString;
|
|
6973
|
+
sha: z.ZodOptional<z.ZodString>;
|
|
6974
|
+
release_url: z.ZodNullable<z.ZodString>;
|
|
6975
|
+
latest: z.ZodBoolean;
|
|
6976
|
+
folded: z.ZodBoolean;
|
|
6977
|
+
support: z.ZodOptional<z.ZodEnum<{
|
|
6978
|
+
supported: "supported";
|
|
6979
|
+
unchecked: "unchecked";
|
|
6980
|
+
}>>;
|
|
6981
|
+
support_label: z.ZodOptional<z.ZodString>;
|
|
6982
|
+
}, z.core.$strip>;
|
|
6983
|
+
export type UpdateVersion = z.infer<typeof UpdateVersionSchema>;
|
|
5120
6984
|
export declare const UpdateTargetSchema: z.ZodObject<{
|
|
6985
|
+
failed_update: z.ZodOptional<z.ZodObject<{
|
|
6986
|
+
version: z.ZodString;
|
|
6987
|
+
restored_version: z.ZodString;
|
|
6988
|
+
}, z.core.$strip>>;
|
|
5121
6989
|
name: z.ZodOptional<z.ZodString>;
|
|
5122
6990
|
channel: z.ZodOptional<z.ZodEnum<{
|
|
5123
6991
|
stable: "stable";
|
|
5124
6992
|
experimental: "experimental";
|
|
5125
6993
|
}>>;
|
|
5126
6994
|
unsupported: z.ZodOptional<z.ZodBoolean>;
|
|
6995
|
+
support: z.ZodOptional<z.ZodEnum<{
|
|
6996
|
+
supported: "supported";
|
|
6997
|
+
unchecked: "unchecked";
|
|
6998
|
+
}>>;
|
|
6999
|
+
support_label: z.ZodOptional<z.ZodString>;
|
|
7000
|
+
current_support: z.ZodOptional<z.ZodEnum<{
|
|
7001
|
+
supported: "supported";
|
|
7002
|
+
unchecked: "unchecked";
|
|
7003
|
+
}>>;
|
|
5127
7004
|
supported_revision: z.ZodOptional<z.ZodString>;
|
|
5128
7005
|
supported_version: z.ZodOptional<z.ZodString>;
|
|
5129
7006
|
candidate_revision: z.ZodOptional<z.ZodString>;
|
|
@@ -5147,12 +7024,12 @@ export declare const UpdateTargetSchema: z.ZodObject<{
|
|
|
5147
7024
|
current_version: z.ZodOptional<z.ZodString>;
|
|
5148
7025
|
state: z.ZodEnum<{
|
|
5149
7026
|
unknown: "unknown";
|
|
7027
|
+
finish: "finish";
|
|
5150
7028
|
manual: "manual";
|
|
5151
7029
|
up_to_date: "up_to_date";
|
|
5152
7030
|
release_ready: "release_ready";
|
|
5153
7031
|
commits_behind: "commits_behind";
|
|
5154
7032
|
local_changes: "local_changes";
|
|
5155
|
-
finish: "finish";
|
|
5156
7033
|
check_failed: "check_failed";
|
|
5157
7034
|
off: "off";
|
|
5158
7035
|
}>;
|
|
@@ -5161,8 +7038,47 @@ export declare const UpdateTargetSchema: z.ZodObject<{
|
|
|
5161
7038
|
manual_link: z.ZodBoolean;
|
|
5162
7039
|
target_version: z.ZodNullable<z.ZodString>;
|
|
5163
7040
|
summary_available: z.ZodBoolean;
|
|
7041
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
7042
|
+
version: z.ZodString;
|
|
7043
|
+
ref: z.ZodString;
|
|
7044
|
+
sha: z.ZodOptional<z.ZodString>;
|
|
7045
|
+
release_url: z.ZodNullable<z.ZodString>;
|
|
7046
|
+
latest: z.ZodBoolean;
|
|
7047
|
+
folded: z.ZodBoolean;
|
|
7048
|
+
support: z.ZodOptional<z.ZodEnum<{
|
|
7049
|
+
supported: "supported";
|
|
7050
|
+
unchecked: "unchecked";
|
|
7051
|
+
}>>;
|
|
7052
|
+
support_label: z.ZodOptional<z.ZodString>;
|
|
7053
|
+
}, z.core.$strip>>;
|
|
7054
|
+
folded_count: z.ZodNumber;
|
|
5164
7055
|
}, z.core.$loose>;
|
|
7056
|
+
export declare const AgentRecoveryStateSchema: z.ZodObject<{
|
|
7057
|
+
phase: z.ZodEnum<{
|
|
7058
|
+
blocked: "blocked";
|
|
7059
|
+
running: "running";
|
|
7060
|
+
waiting: "waiting";
|
|
7061
|
+
idle: "idle";
|
|
7062
|
+
complete: "complete";
|
|
7063
|
+
}>;
|
|
7064
|
+
attempt: z.ZodNumber;
|
|
7065
|
+
detail: z.ZodString;
|
|
7066
|
+
retry_at: z.ZodNullable<z.ZodString>;
|
|
7067
|
+
}, z.core.$strip>;
|
|
7068
|
+
export type AgentRecoveryState = z.infer<typeof AgentRecoveryStateSchema>;
|
|
5165
7069
|
export declare const UpdatesCheckSchema: z.ZodObject<{
|
|
7070
|
+
agent_recovery: z.ZodOptional<z.ZodObject<{
|
|
7071
|
+
phase: z.ZodEnum<{
|
|
7072
|
+
blocked: "blocked";
|
|
7073
|
+
running: "running";
|
|
7074
|
+
waiting: "waiting";
|
|
7075
|
+
idle: "idle";
|
|
7076
|
+
complete: "complete";
|
|
7077
|
+
}>;
|
|
7078
|
+
attempt: z.ZodNumber;
|
|
7079
|
+
detail: z.ZodString;
|
|
7080
|
+
retry_at: z.ZodNullable<z.ZodString>;
|
|
7081
|
+
}, z.core.$strip>>;
|
|
5166
7082
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
5167
7083
|
cached: z.ZodOptional<z.ZodBoolean>;
|
|
5168
7084
|
channel: z.ZodOptional<z.ZodString>;
|
|
@@ -5173,12 +7089,25 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
|
|
|
5173
7089
|
checked_at: z.ZodOptional<z.ZodNumber>;
|
|
5174
7090
|
include_agent: z.ZodOptional<z.ZodBoolean>;
|
|
5175
7091
|
webui: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7092
|
+
failed_update: z.ZodOptional<z.ZodObject<{
|
|
7093
|
+
version: z.ZodString;
|
|
7094
|
+
restored_version: z.ZodString;
|
|
7095
|
+
}, z.core.$strip>>;
|
|
5176
7096
|
name: z.ZodOptional<z.ZodString>;
|
|
5177
7097
|
channel: z.ZodOptional<z.ZodEnum<{
|
|
5178
7098
|
stable: "stable";
|
|
5179
7099
|
experimental: "experimental";
|
|
5180
7100
|
}>>;
|
|
5181
7101
|
unsupported: z.ZodOptional<z.ZodBoolean>;
|
|
7102
|
+
support: z.ZodOptional<z.ZodEnum<{
|
|
7103
|
+
supported: "supported";
|
|
7104
|
+
unchecked: "unchecked";
|
|
7105
|
+
}>>;
|
|
7106
|
+
support_label: z.ZodOptional<z.ZodString>;
|
|
7107
|
+
current_support: z.ZodOptional<z.ZodEnum<{
|
|
7108
|
+
supported: "supported";
|
|
7109
|
+
unchecked: "unchecked";
|
|
7110
|
+
}>>;
|
|
5182
7111
|
supported_revision: z.ZodOptional<z.ZodString>;
|
|
5183
7112
|
supported_version: z.ZodOptional<z.ZodString>;
|
|
5184
7113
|
candidate_revision: z.ZodOptional<z.ZodString>;
|
|
@@ -5202,12 +7131,12 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
|
|
|
5202
7131
|
current_version: z.ZodOptional<z.ZodString>;
|
|
5203
7132
|
state: z.ZodEnum<{
|
|
5204
7133
|
unknown: "unknown";
|
|
7134
|
+
finish: "finish";
|
|
5205
7135
|
manual: "manual";
|
|
5206
7136
|
up_to_date: "up_to_date";
|
|
5207
7137
|
release_ready: "release_ready";
|
|
5208
7138
|
commits_behind: "commits_behind";
|
|
5209
7139
|
local_changes: "local_changes";
|
|
5210
|
-
finish: "finish";
|
|
5211
7140
|
check_failed: "check_failed";
|
|
5212
7141
|
off: "off";
|
|
5213
7142
|
}>;
|
|
@@ -5216,14 +7145,41 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
|
|
|
5216
7145
|
manual_link: z.ZodBoolean;
|
|
5217
7146
|
target_version: z.ZodNullable<z.ZodString>;
|
|
5218
7147
|
summary_available: z.ZodBoolean;
|
|
7148
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
7149
|
+
version: z.ZodString;
|
|
7150
|
+
ref: z.ZodString;
|
|
7151
|
+
sha: z.ZodOptional<z.ZodString>;
|
|
7152
|
+
release_url: z.ZodNullable<z.ZodString>;
|
|
7153
|
+
latest: z.ZodBoolean;
|
|
7154
|
+
folded: z.ZodBoolean;
|
|
7155
|
+
support: z.ZodOptional<z.ZodEnum<{
|
|
7156
|
+
supported: "supported";
|
|
7157
|
+
unchecked: "unchecked";
|
|
7158
|
+
}>>;
|
|
7159
|
+
support_label: z.ZodOptional<z.ZodString>;
|
|
7160
|
+
}, z.core.$strip>>;
|
|
7161
|
+
folded_count: z.ZodNumber;
|
|
5219
7162
|
}, z.core.$loose>>>;
|
|
5220
7163
|
agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7164
|
+
failed_update: z.ZodOptional<z.ZodObject<{
|
|
7165
|
+
version: z.ZodString;
|
|
7166
|
+
restored_version: z.ZodString;
|
|
7167
|
+
}, z.core.$strip>>;
|
|
5221
7168
|
name: z.ZodOptional<z.ZodString>;
|
|
5222
7169
|
channel: z.ZodOptional<z.ZodEnum<{
|
|
5223
7170
|
stable: "stable";
|
|
5224
7171
|
experimental: "experimental";
|
|
5225
7172
|
}>>;
|
|
5226
7173
|
unsupported: z.ZodOptional<z.ZodBoolean>;
|
|
7174
|
+
support: z.ZodOptional<z.ZodEnum<{
|
|
7175
|
+
supported: "supported";
|
|
7176
|
+
unchecked: "unchecked";
|
|
7177
|
+
}>>;
|
|
7178
|
+
support_label: z.ZodOptional<z.ZodString>;
|
|
7179
|
+
current_support: z.ZodOptional<z.ZodEnum<{
|
|
7180
|
+
supported: "supported";
|
|
7181
|
+
unchecked: "unchecked";
|
|
7182
|
+
}>>;
|
|
5227
7183
|
supported_revision: z.ZodOptional<z.ZodString>;
|
|
5228
7184
|
supported_version: z.ZodOptional<z.ZodString>;
|
|
5229
7185
|
candidate_revision: z.ZodOptional<z.ZodString>;
|
|
@@ -5247,12 +7203,12 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
|
|
|
5247
7203
|
current_version: z.ZodOptional<z.ZodString>;
|
|
5248
7204
|
state: z.ZodEnum<{
|
|
5249
7205
|
unknown: "unknown";
|
|
7206
|
+
finish: "finish";
|
|
5250
7207
|
manual: "manual";
|
|
5251
7208
|
up_to_date: "up_to_date";
|
|
5252
7209
|
release_ready: "release_ready";
|
|
5253
7210
|
commits_behind: "commits_behind";
|
|
5254
7211
|
local_changes: "local_changes";
|
|
5255
|
-
finish: "finish";
|
|
5256
7212
|
check_failed: "check_failed";
|
|
5257
7213
|
off: "off";
|
|
5258
7214
|
}>;
|
|
@@ -5261,6 +7217,20 @@ export declare const UpdatesCheckSchema: z.ZodObject<{
|
|
|
5261
7217
|
manual_link: z.ZodBoolean;
|
|
5262
7218
|
target_version: z.ZodNullable<z.ZodString>;
|
|
5263
7219
|
summary_available: z.ZodBoolean;
|
|
7220
|
+
versions: z.ZodArray<z.ZodObject<{
|
|
7221
|
+
version: z.ZodString;
|
|
7222
|
+
ref: z.ZodString;
|
|
7223
|
+
sha: z.ZodOptional<z.ZodString>;
|
|
7224
|
+
release_url: z.ZodNullable<z.ZodString>;
|
|
7225
|
+
latest: z.ZodBoolean;
|
|
7226
|
+
folded: z.ZodBoolean;
|
|
7227
|
+
support: z.ZodOptional<z.ZodEnum<{
|
|
7228
|
+
supported: "supported";
|
|
7229
|
+
unchecked: "unchecked";
|
|
7230
|
+
}>>;
|
|
7231
|
+
support_label: z.ZodOptional<z.ZodString>;
|
|
7232
|
+
}, z.core.$strip>>;
|
|
7233
|
+
folded_count: z.ZodNumber;
|
|
5264
7234
|
}, z.core.$loose>>>;
|
|
5265
7235
|
}, z.core.$loose>;
|
|
5266
7236
|
export declare const UpdatesSummarySchema: z.ZodObject<{
|
|
@@ -5290,12 +7260,20 @@ export declare const UpdatesSummarySchema: z.ZodObject<{
|
|
|
5290
7260
|
}, z.core.$strip>;
|
|
5291
7261
|
export type UpdatesSummary = z.infer<typeof UpdatesSummarySchema>;
|
|
5292
7262
|
export declare const UpdateApplySchema: z.ZodObject<{
|
|
7263
|
+
recovery_compatibility: z.ZodOptional<z.ZodObject<{
|
|
7264
|
+
manual_execution: z.ZodBoolean;
|
|
7265
|
+
bot_chat_delivery: z.ZodBoolean;
|
|
7266
|
+
}, z.core.$strip>>;
|
|
5293
7267
|
ok: z.ZodOptional<z.ZodBoolean>;
|
|
5294
7268
|
status: z.ZodOptional<z.ZodString>;
|
|
5295
7269
|
error: z.ZodOptional<z.ZodString>;
|
|
5296
7270
|
message: z.ZodOptional<z.ZodString>;
|
|
5297
7271
|
lock: z.ZodOptional<z.ZodUnknown>;
|
|
5298
7272
|
confirmation_required: z.ZodOptional<z.ZodBoolean>;
|
|
7273
|
+
refresh_confirmation: z.ZodOptional<z.ZodObject<{
|
|
7274
|
+
token: z.ZodString;
|
|
7275
|
+
services: z.ZodArray<z.ZodString>;
|
|
7276
|
+
}, z.core.$strip>>;
|
|
5299
7277
|
candidate_revision: z.ZodOptional<z.ZodString>;
|
|
5300
7278
|
supported_revision: z.ZodOptional<z.ZodString>;
|
|
5301
7279
|
supported_version: z.ZodOptional<z.ZodString>;
|
|
@@ -5308,15 +7286,19 @@ export declare const UpdateApplySchema: z.ZodObject<{
|
|
|
5308
7286
|
backup_dir: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5309
7287
|
backup_failed: z.ZodOptional<z.ZodBoolean>;
|
|
5310
7288
|
stash_conflict: z.ZodOptional<z.ZodBoolean>;
|
|
7289
|
+
gateway_restart: z.ZodOptional<z.ZodString>;
|
|
5311
7290
|
}, z.core.$loose>;
|
|
7291
|
+
/** `verifying` (TAL-1138): the gateway restarted, and the server is checking that the new gateway process and the Agent runtime answer. */
|
|
5312
7292
|
export declare const UpdateNotificationPhaseSchema: z.ZodEnum<{
|
|
5313
7293
|
unknown: "unknown";
|
|
7294
|
+
blocked: "blocked";
|
|
7295
|
+
restarting: "restarting";
|
|
5314
7296
|
failed: "failed";
|
|
5315
7297
|
applying: "applying";
|
|
5316
7298
|
awaiting_confirmation: "awaiting_confirmation";
|
|
5317
|
-
|
|
7299
|
+
waiting_for_idle: "waiting_for_idle";
|
|
7300
|
+
verifying: "verifying";
|
|
5318
7301
|
succeeded: "succeeded";
|
|
5319
|
-
blocked: "blocked";
|
|
5320
7302
|
}>;
|
|
5321
7303
|
export declare const UpdateNotificationActionSchema: z.ZodObject<{
|
|
5322
7304
|
id: z.ZodString;
|
|
@@ -5332,6 +7314,24 @@ export declare const UpdateNotificationDestinationSchema: z.ZodObject<{
|
|
|
5332
7314
|
key: z.ZodString;
|
|
5333
7315
|
label: z.ZodString;
|
|
5334
7316
|
}, z.core.$strip>;
|
|
7317
|
+
/** TAL-1138: one step of an update as its Updating dialog lists it; the server derives every label and state. */
|
|
7318
|
+
export declare const UpdateStepSchema: z.ZodObject<{
|
|
7319
|
+
id: z.ZodEnum<{
|
|
7320
|
+
ready: "ready";
|
|
7321
|
+
gateway_restart: "gateway_restart";
|
|
7322
|
+
install: "install";
|
|
7323
|
+
web_restart: "web_restart";
|
|
7324
|
+
gateway_wait: "gateway_wait";
|
|
7325
|
+
agent_ready: "agent_ready";
|
|
7326
|
+
}>;
|
|
7327
|
+
label: z.ZodString;
|
|
7328
|
+
state: z.ZodEnum<{
|
|
7329
|
+
pending: "pending";
|
|
7330
|
+
active: "active";
|
|
7331
|
+
failed: "failed";
|
|
7332
|
+
done: "done";
|
|
7333
|
+
}>;
|
|
7334
|
+
}, z.core.$strip>;
|
|
5335
7335
|
export declare const UpdateNotificationSchema: z.ZodObject<{
|
|
5336
7336
|
id: z.ZodUUID;
|
|
5337
7337
|
kind: z.ZodString;
|
|
@@ -5341,17 +7341,19 @@ export declare const UpdateNotificationSchema: z.ZodObject<{
|
|
|
5341
7341
|
}>>;
|
|
5342
7342
|
phase: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5343
7343
|
unknown: "unknown";
|
|
7344
|
+
blocked: "blocked";
|
|
7345
|
+
restarting: "restarting";
|
|
5344
7346
|
failed: "failed";
|
|
5345
7347
|
applying: "applying";
|
|
5346
7348
|
awaiting_confirmation: "awaiting_confirmation";
|
|
5347
|
-
|
|
7349
|
+
waiting_for_idle: "waiting_for_idle";
|
|
7350
|
+
verifying: "verifying";
|
|
5348
7351
|
succeeded: "succeeded";
|
|
5349
|
-
blocked: "blocked";
|
|
5350
7352
|
}>, z.ZodString]>;
|
|
5351
7353
|
severity: z.ZodEnum<{
|
|
7354
|
+
info: "info";
|
|
5352
7355
|
warning: "warning";
|
|
5353
7356
|
critical: "critical";
|
|
5354
|
-
info: "info";
|
|
5355
7357
|
}>;
|
|
5356
7358
|
persistent: z.ZodBoolean;
|
|
5357
7359
|
requires_acknowledgement: z.ZodBoolean;
|
|
@@ -5383,6 +7385,30 @@ export declare const UpdateNotificationSchema: z.ZodObject<{
|
|
|
5383
7385
|
active: z.ZodBoolean;
|
|
5384
7386
|
requires_interaction: z.ZodBoolean;
|
|
5385
7387
|
can_dismiss: z.ZodBoolean;
|
|
7388
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
7389
|
+
id: z.ZodEnum<{
|
|
7390
|
+
ready: "ready";
|
|
7391
|
+
gateway_restart: "gateway_restart";
|
|
7392
|
+
install: "install";
|
|
7393
|
+
web_restart: "web_restart";
|
|
7394
|
+
gateway_wait: "gateway_wait";
|
|
7395
|
+
agent_ready: "agent_ready";
|
|
7396
|
+
}>;
|
|
7397
|
+
label: z.ZodString;
|
|
7398
|
+
state: z.ZodEnum<{
|
|
7399
|
+
pending: "pending";
|
|
7400
|
+
active: "active";
|
|
7401
|
+
failed: "failed";
|
|
7402
|
+
done: "done";
|
|
7403
|
+
}>;
|
|
7404
|
+
}, z.core.$strip>>;
|
|
7405
|
+
presents_dialog: z.ZodBoolean;
|
|
7406
|
+
dialog_close: z.ZodEnum<{
|
|
7407
|
+
auto: "auto";
|
|
7408
|
+
none: "none";
|
|
7409
|
+
close: "close";
|
|
7410
|
+
restart_later: "restart_later";
|
|
7411
|
+
}>;
|
|
5386
7412
|
}, z.core.$strip>;
|
|
5387
7413
|
export declare const FrontendBuildIdSchema: z.ZodString;
|
|
5388
7414
|
export declare const TabIdSchema: z.ZodString;
|
|
@@ -5410,17 +7436,19 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
|
|
|
5410
7436
|
}>>;
|
|
5411
7437
|
phase: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5412
7438
|
unknown: "unknown";
|
|
7439
|
+
blocked: "blocked";
|
|
7440
|
+
restarting: "restarting";
|
|
5413
7441
|
failed: "failed";
|
|
5414
7442
|
applying: "applying";
|
|
5415
7443
|
awaiting_confirmation: "awaiting_confirmation";
|
|
5416
|
-
|
|
7444
|
+
waiting_for_idle: "waiting_for_idle";
|
|
7445
|
+
verifying: "verifying";
|
|
5417
7446
|
succeeded: "succeeded";
|
|
5418
|
-
blocked: "blocked";
|
|
5419
7447
|
}>, z.ZodString]>;
|
|
5420
7448
|
severity: z.ZodEnum<{
|
|
7449
|
+
info: "info";
|
|
5421
7450
|
warning: "warning";
|
|
5422
7451
|
critical: "critical";
|
|
5423
|
-
info: "info";
|
|
5424
7452
|
}>;
|
|
5425
7453
|
persistent: z.ZodBoolean;
|
|
5426
7454
|
requires_acknowledgement: z.ZodBoolean;
|
|
@@ -5452,6 +7480,30 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
|
|
|
5452
7480
|
active: z.ZodBoolean;
|
|
5453
7481
|
requires_interaction: z.ZodBoolean;
|
|
5454
7482
|
can_dismiss: z.ZodBoolean;
|
|
7483
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
7484
|
+
id: z.ZodEnum<{
|
|
7485
|
+
ready: "ready";
|
|
7486
|
+
gateway_restart: "gateway_restart";
|
|
7487
|
+
install: "install";
|
|
7488
|
+
web_restart: "web_restart";
|
|
7489
|
+
gateway_wait: "gateway_wait";
|
|
7490
|
+
agent_ready: "agent_ready";
|
|
7491
|
+
}>;
|
|
7492
|
+
label: z.ZodString;
|
|
7493
|
+
state: z.ZodEnum<{
|
|
7494
|
+
pending: "pending";
|
|
7495
|
+
active: "active";
|
|
7496
|
+
failed: "failed";
|
|
7497
|
+
done: "done";
|
|
7498
|
+
}>;
|
|
7499
|
+
}, z.core.$strip>>;
|
|
7500
|
+
presents_dialog: z.ZodBoolean;
|
|
7501
|
+
dialog_close: z.ZodEnum<{
|
|
7502
|
+
auto: "auto";
|
|
7503
|
+
none: "none";
|
|
7504
|
+
close: "close";
|
|
7505
|
+
restart_later: "restart_later";
|
|
7506
|
+
}>;
|
|
5455
7507
|
}, z.core.$strip>>;
|
|
5456
7508
|
tab_update: z.ZodNullable<z.ZodObject<{
|
|
5457
7509
|
id: z.ZodUUID;
|
|
@@ -5462,17 +7514,19 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
|
|
|
5462
7514
|
}>>;
|
|
5463
7515
|
phase: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5464
7516
|
unknown: "unknown";
|
|
7517
|
+
blocked: "blocked";
|
|
7518
|
+
restarting: "restarting";
|
|
5465
7519
|
failed: "failed";
|
|
5466
7520
|
applying: "applying";
|
|
5467
7521
|
awaiting_confirmation: "awaiting_confirmation";
|
|
5468
|
-
|
|
7522
|
+
waiting_for_idle: "waiting_for_idle";
|
|
7523
|
+
verifying: "verifying";
|
|
5469
7524
|
succeeded: "succeeded";
|
|
5470
|
-
blocked: "blocked";
|
|
5471
7525
|
}>, z.ZodString]>;
|
|
5472
7526
|
severity: z.ZodEnum<{
|
|
7527
|
+
info: "info";
|
|
5473
7528
|
warning: "warning";
|
|
5474
7529
|
critical: "critical";
|
|
5475
|
-
info: "info";
|
|
5476
7530
|
}>;
|
|
5477
7531
|
persistent: z.ZodBoolean;
|
|
5478
7532
|
requires_acknowledgement: z.ZodBoolean;
|
|
@@ -5504,6 +7558,30 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
|
|
|
5504
7558
|
active: z.ZodBoolean;
|
|
5505
7559
|
requires_interaction: z.ZodBoolean;
|
|
5506
7560
|
can_dismiss: z.ZodBoolean;
|
|
7561
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
7562
|
+
id: z.ZodEnum<{
|
|
7563
|
+
ready: "ready";
|
|
7564
|
+
gateway_restart: "gateway_restart";
|
|
7565
|
+
install: "install";
|
|
7566
|
+
web_restart: "web_restart";
|
|
7567
|
+
gateway_wait: "gateway_wait";
|
|
7568
|
+
agent_ready: "agent_ready";
|
|
7569
|
+
}>;
|
|
7570
|
+
label: z.ZodString;
|
|
7571
|
+
state: z.ZodEnum<{
|
|
7572
|
+
pending: "pending";
|
|
7573
|
+
active: "active";
|
|
7574
|
+
failed: "failed";
|
|
7575
|
+
done: "done";
|
|
7576
|
+
}>;
|
|
7577
|
+
}, z.core.$strip>>;
|
|
7578
|
+
presents_dialog: z.ZodBoolean;
|
|
7579
|
+
dialog_close: z.ZodEnum<{
|
|
7580
|
+
auto: "auto";
|
|
7581
|
+
none: "none";
|
|
7582
|
+
close: "close";
|
|
7583
|
+
restart_later: "restart_later";
|
|
7584
|
+
}>;
|
|
5507
7585
|
}, z.core.$strip>>;
|
|
5508
7586
|
tab_joined_at: z.ZodNullable<z.ZodISODateTime>;
|
|
5509
7587
|
unread_count: z.ZodNumber;
|
|
@@ -5512,6 +7590,42 @@ export declare const UpdateNotificationsSchema: z.ZodObject<{
|
|
|
5512
7590
|
}, z.core.$strip>;
|
|
5513
7591
|
export type UpdateNotification = z.infer<typeof UpdateNotificationSchema>;
|
|
5514
7592
|
export type UpdateNotifications = z.infer<typeof UpdateNotificationsSchema>;
|
|
7593
|
+
/** 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. */
|
|
7594
|
+
export declare const PluginSettingViewSchema: z.ZodObject<{
|
|
7595
|
+
key: z.ZodString;
|
|
7596
|
+
type: z.ZodEnum<{
|
|
7597
|
+
string: "string";
|
|
7598
|
+
number: "number";
|
|
7599
|
+
boolean: "boolean";
|
|
7600
|
+
enum: "enum";
|
|
7601
|
+
json: "json";
|
|
7602
|
+
secret: "secret";
|
|
7603
|
+
}>;
|
|
7604
|
+
label: z.ZodString;
|
|
7605
|
+
description: z.ZodString;
|
|
7606
|
+
required: z.ZodBoolean;
|
|
7607
|
+
choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7608
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
7609
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
7610
|
+
env: z.ZodOptional<z.ZodString>;
|
|
7611
|
+
has_value: z.ZodOptional<z.ZodBoolean>;
|
|
7612
|
+
locked: z.ZodOptional<z.ZodBoolean>;
|
|
7613
|
+
}, z.core.$strip>;
|
|
7614
|
+
export type PluginSettingView = z.infer<typeof PluginSettingViewSchema>;
|
|
7615
|
+
/** TAL-1276: a plugin OAuth client as Settings shows it; `can_sign_out` is true while the profile stores a grant for it (any state but `logged_out`). */
|
|
7616
|
+
export declare const PluginOAuthClientViewSchema: z.ZodObject<{
|
|
7617
|
+
id: z.ZodString;
|
|
7618
|
+
state: z.ZodEnum<{
|
|
7619
|
+
signed_in: "signed_in";
|
|
7620
|
+
sign_in_needed: "sign_in_needed";
|
|
7621
|
+
revoked: "revoked";
|
|
7622
|
+
logged_out: "logged_out";
|
|
7623
|
+
}>;
|
|
7624
|
+
authorize_host: z.ZodString;
|
|
7625
|
+
token_host: z.ZodString;
|
|
7626
|
+
can_sign_out: z.ZodBoolean;
|
|
7627
|
+
}, z.core.$strip>;
|
|
7628
|
+
export type PluginOAuthClientView = z.infer<typeof PluginOAuthClientViewSchema>;
|
|
5515
7629
|
export declare const PluginSchema: z.ZodObject<{
|
|
5516
7630
|
key: z.ZodString;
|
|
5517
7631
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -5522,7 +7636,48 @@ export declare const PluginSchema: z.ZodObject<{
|
|
|
5522
7636
|
activation: z.ZodOptional<z.ZodString>;
|
|
5523
7637
|
is_active_provider: z.ZodOptional<z.ZodBoolean>;
|
|
5524
7638
|
hooks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
7639
|
+
update: z.ZodOptional<z.ZodObject<{
|
|
7640
|
+
available: z.ZodBoolean;
|
|
7641
|
+
latest_revision: z.ZodOptional<z.ZodString>;
|
|
7642
|
+
}, z.core.$strip>>;
|
|
7643
|
+
settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7644
|
+
key: z.ZodString;
|
|
7645
|
+
type: z.ZodEnum<{
|
|
7646
|
+
string: "string";
|
|
7647
|
+
number: "number";
|
|
7648
|
+
boolean: "boolean";
|
|
7649
|
+
enum: "enum";
|
|
7650
|
+
json: "json";
|
|
7651
|
+
secret: "secret";
|
|
7652
|
+
}>;
|
|
7653
|
+
label: z.ZodString;
|
|
7654
|
+
description: z.ZodString;
|
|
7655
|
+
required: z.ZodBoolean;
|
|
7656
|
+
choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7657
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
7658
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
7659
|
+
env: z.ZodOptional<z.ZodString>;
|
|
7660
|
+
has_value: z.ZodOptional<z.ZodBoolean>;
|
|
7661
|
+
locked: z.ZodOptional<z.ZodBoolean>;
|
|
7662
|
+
}, z.core.$strip>>>;
|
|
7663
|
+
oauth_clients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7664
|
+
id: z.ZodString;
|
|
7665
|
+
state: z.ZodEnum<{
|
|
7666
|
+
signed_in: "signed_in";
|
|
7667
|
+
sign_in_needed: "sign_in_needed";
|
|
7668
|
+
revoked: "revoked";
|
|
7669
|
+
logged_out: "logged_out";
|
|
7670
|
+
}>;
|
|
7671
|
+
authorize_host: z.ZodString;
|
|
7672
|
+
token_host: z.ZodString;
|
|
7673
|
+
can_sign_out: z.ZodBoolean;
|
|
7674
|
+
}, z.core.$strip>>>;
|
|
5525
7675
|
}, z.core.$loose>;
|
|
7676
|
+
/**
|
|
7677
|
+
* `read_only` (TAL-806): this session may not save plugin `settings` (not the server owner, or no sidecar).
|
|
7678
|
+
* `plugin_isolation_advisory` (TAL-820): more than one profile has third-party plugins installed and one of those runs them
|
|
7679
|
+
* `in_process`, so Settings recommends `plugins.isolation: host`; Talaria never sets the mode.
|
|
7680
|
+
*/
|
|
5526
7681
|
export declare const PluginsSchema: z.ZodObject<{
|
|
5527
7682
|
plugins: z.ZodArray<z.ZodObject<{
|
|
5528
7683
|
key: z.ZodString;
|
|
@@ -5534,11 +7689,48 @@ export declare const PluginsSchema: z.ZodObject<{
|
|
|
5534
7689
|
activation: z.ZodOptional<z.ZodString>;
|
|
5535
7690
|
is_active_provider: z.ZodOptional<z.ZodBoolean>;
|
|
5536
7691
|
hooks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
7692
|
+
update: z.ZodOptional<z.ZodObject<{
|
|
7693
|
+
available: z.ZodBoolean;
|
|
7694
|
+
latest_revision: z.ZodOptional<z.ZodString>;
|
|
7695
|
+
}, z.core.$strip>>;
|
|
7696
|
+
settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7697
|
+
key: z.ZodString;
|
|
7698
|
+
type: z.ZodEnum<{
|
|
7699
|
+
string: "string";
|
|
7700
|
+
number: "number";
|
|
7701
|
+
boolean: "boolean";
|
|
7702
|
+
enum: "enum";
|
|
7703
|
+
json: "json";
|
|
7704
|
+
secret: "secret";
|
|
7705
|
+
}>;
|
|
7706
|
+
label: z.ZodString;
|
|
7707
|
+
description: z.ZodString;
|
|
7708
|
+
required: z.ZodBoolean;
|
|
7709
|
+
choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7710
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
7711
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
7712
|
+
env: z.ZodOptional<z.ZodString>;
|
|
7713
|
+
has_value: z.ZodOptional<z.ZodBoolean>;
|
|
7714
|
+
locked: z.ZodOptional<z.ZodBoolean>;
|
|
7715
|
+
}, z.core.$strip>>>;
|
|
7716
|
+
oauth_clients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7717
|
+
id: z.ZodString;
|
|
7718
|
+
state: z.ZodEnum<{
|
|
7719
|
+
signed_in: "signed_in";
|
|
7720
|
+
sign_in_needed: "sign_in_needed";
|
|
7721
|
+
revoked: "revoked";
|
|
7722
|
+
logged_out: "logged_out";
|
|
7723
|
+
}>;
|
|
7724
|
+
authorize_host: z.ZodString;
|
|
7725
|
+
token_host: z.ZodString;
|
|
7726
|
+
can_sign_out: z.ZodBoolean;
|
|
7727
|
+
}, z.core.$strip>>>;
|
|
5537
7728
|
}, z.core.$loose>>;
|
|
5538
7729
|
empty: z.ZodOptional<z.ZodBoolean>;
|
|
5539
7730
|
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
5540
7731
|
supported_hooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5541
7732
|
unavailable: z.ZodOptional<z.ZodBoolean>;
|
|
7733
|
+
plugin_isolation_advisory: z.ZodOptional<z.ZodBoolean>;
|
|
5542
7734
|
}, z.core.$loose>;
|
|
5543
7735
|
export declare const McpServerSchema: z.ZodObject<{
|
|
5544
7736
|
name: z.ZodString;
|
|
@@ -5575,6 +7767,160 @@ export declare const McpServersSchema: z.ZodObject<{
|
|
|
5575
7767
|
reload_required: z.ZodOptional<z.ZodBoolean>;
|
|
5576
7768
|
toggle_supported: z.ZodOptional<z.ZodBoolean>;
|
|
5577
7769
|
}, z.core.$loose>;
|
|
7770
|
+
/** 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. */
|
|
7771
|
+
export declare const ConnectorAccountViewSchema: z.ZodObject<{
|
|
7772
|
+
connection_id: z.ZodString;
|
|
7773
|
+
name: z.ZodString;
|
|
7774
|
+
problem: z.ZodNullable<z.ZodEnum<{
|
|
7775
|
+
pending: "pending";
|
|
7776
|
+
expired: "expired";
|
|
7777
|
+
revoked: "revoked";
|
|
7778
|
+
failed: "failed";
|
|
7779
|
+
inactive: "inactive";
|
|
7780
|
+
}>>;
|
|
7781
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
7782
|
+
active: z.ZodBoolean;
|
|
7783
|
+
created_at: z.ZodString;
|
|
7784
|
+
}, z.core.$strip>;
|
|
7785
|
+
/**
|
|
7786
|
+
* TAL-818: one app on the Connectors page. `accounts` are its live accounts, active first. `enabled`: Hermes may use it (the
|
|
7787
|
+
* 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
|
|
7788
|
+
* may change the member rule (readable rules and no lock). `tools_off` counts the tools the member rules turn off.
|
|
7789
|
+
*/
|
|
7790
|
+
export declare const ConnectorViewSchema: z.ZodObject<{
|
|
7791
|
+
slug: z.ZodString;
|
|
7792
|
+
name: z.ZodString;
|
|
7793
|
+
description: z.ZodString;
|
|
7794
|
+
category: z.ZodString;
|
|
7795
|
+
logo_url: z.ZodNullable<z.ZodString>;
|
|
7796
|
+
connected: z.ZodBoolean;
|
|
7797
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
7798
|
+
connection_id: z.ZodString;
|
|
7799
|
+
name: z.ZodString;
|
|
7800
|
+
problem: z.ZodNullable<z.ZodEnum<{
|
|
7801
|
+
pending: "pending";
|
|
7802
|
+
expired: "expired";
|
|
7803
|
+
revoked: "revoked";
|
|
7804
|
+
failed: "failed";
|
|
7805
|
+
inactive: "inactive";
|
|
7806
|
+
}>>;
|
|
7807
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
7808
|
+
active: z.ZodBoolean;
|
|
7809
|
+
created_at: z.ZodString;
|
|
7810
|
+
}, z.core.$strip>>;
|
|
7811
|
+
enabled: z.ZodBoolean;
|
|
7812
|
+
org_locked: z.ZodBoolean;
|
|
7813
|
+
rules_editable: z.ZodBoolean;
|
|
7814
|
+
tools_off: z.ZodNumber;
|
|
7815
|
+
}, z.core.$strip>;
|
|
7816
|
+
/**
|
|
7817
|
+
* TAL-818: the Connectors page. `available` is the Agent's connectors gate; false hides the page. `policy_revision` is the
|
|
7818
|
+
* member rules' revision every rule change sends back; null when the rules are read-only (no member layer, or unreadable),
|
|
7819
|
+
* so no switch changes them. `sign_in_required` offers Nous sign-in without creating a guest on reads.
|
|
7820
|
+
* `rules_error`: why the rules could not be read; every app then reads off (fails closed).
|
|
7821
|
+
*/
|
|
7822
|
+
export declare const ConnectorsPageSchema: z.ZodObject<{
|
|
7823
|
+
available: z.ZodBoolean;
|
|
7824
|
+
sign_in_required: z.ZodDefault<z.ZodBoolean>;
|
|
7825
|
+
connectors: z.ZodArray<z.ZodObject<{
|
|
7826
|
+
slug: z.ZodString;
|
|
7827
|
+
name: z.ZodString;
|
|
7828
|
+
description: z.ZodString;
|
|
7829
|
+
category: z.ZodString;
|
|
7830
|
+
logo_url: z.ZodNullable<z.ZodString>;
|
|
7831
|
+
connected: z.ZodBoolean;
|
|
7832
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
7833
|
+
connection_id: z.ZodString;
|
|
7834
|
+
name: z.ZodString;
|
|
7835
|
+
problem: z.ZodNullable<z.ZodEnum<{
|
|
7836
|
+
pending: "pending";
|
|
7837
|
+
expired: "expired";
|
|
7838
|
+
revoked: "revoked";
|
|
7839
|
+
failed: "failed";
|
|
7840
|
+
inactive: "inactive";
|
|
7841
|
+
}>>;
|
|
7842
|
+
status_reason: z.ZodNullable<z.ZodString>;
|
|
7843
|
+
active: z.ZodBoolean;
|
|
7844
|
+
created_at: z.ZodString;
|
|
7845
|
+
}, z.core.$strip>>;
|
|
7846
|
+
enabled: z.ZodBoolean;
|
|
7847
|
+
org_locked: z.ZodBoolean;
|
|
7848
|
+
rules_editable: z.ZodBoolean;
|
|
7849
|
+
tools_off: z.ZodNumber;
|
|
7850
|
+
}, z.core.$strip>>;
|
|
7851
|
+
policy_revision: z.ZodNullable<z.ZodString>;
|
|
7852
|
+
rules_error: z.ZodNullable<z.ZodString>;
|
|
7853
|
+
}, z.core.$strip>;
|
|
7854
|
+
/**
|
|
7855
|
+
* TAL-818: one app's tools: `enabled`: Hermes may use it (the member rules leave it on and nothing locks it); `locked`: an
|
|
7856
|
+
* 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).
|
|
7857
|
+
*/
|
|
7858
|
+
export declare const ConnectorToolsViewSchema: z.ZodObject<{
|
|
7859
|
+
connector: z.ZodString;
|
|
7860
|
+
policy_revision: z.ZodNullable<z.ZodString>;
|
|
7861
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
7862
|
+
slug: z.ZodString;
|
|
7863
|
+
name: z.ZodString;
|
|
7864
|
+
description: z.ZodString;
|
|
7865
|
+
facet: z.ZodEnum<{
|
|
7866
|
+
read: "read";
|
|
7867
|
+
write: "write";
|
|
7868
|
+
destructive: "destructive";
|
|
7869
|
+
unclassified: "unclassified";
|
|
7870
|
+
}>;
|
|
7871
|
+
deprecated: z.ZodBoolean;
|
|
7872
|
+
enabled: z.ZodBoolean;
|
|
7873
|
+
locked: z.ZodBoolean;
|
|
7874
|
+
editable: z.ZodBoolean;
|
|
7875
|
+
}, z.core.$strip>>;
|
|
7876
|
+
}, z.core.$strip>;
|
|
7877
|
+
/**
|
|
7878
|
+
* TAL-818: a connection operation, from the Connectors page's Connect or a chat's `manage_connections` card. Each target's
|
|
7879
|
+
* `connect_url` is the authorization link while it waits on one; `actions` are the moves the user may make on it now, and
|
|
7880
|
+
* `env_fields` the credentials an `approve` sends, each with its `label`. `can_continue`: the card may end the wait for the
|
|
7881
|
+
* rest (chat only). `outcome` is null while the operation is open, then `connected` when every target connected.
|
|
7882
|
+
*/
|
|
7883
|
+
export declare const ConnectorOperationViewSchema: z.ZodObject<{
|
|
7884
|
+
op_id: z.ZodString;
|
|
7885
|
+
settled: z.ZodBoolean;
|
|
7886
|
+
outcome: z.ZodNullable<z.ZodEnum<{
|
|
7887
|
+
connected: "connected";
|
|
7888
|
+
not_connected: "not_connected";
|
|
7889
|
+
}>>;
|
|
7890
|
+
can_continue: z.ZodBoolean;
|
|
7891
|
+
tool_call_id: z.ZodNullable<z.ZodString>;
|
|
7892
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
7893
|
+
name: z.ZodString;
|
|
7894
|
+
title: z.ZodString;
|
|
7895
|
+
kind: z.ZodString;
|
|
7896
|
+
state: z.ZodEnum<{
|
|
7897
|
+
pending: "pending";
|
|
7898
|
+
expired: "expired";
|
|
7899
|
+
skipped: "skipped";
|
|
7900
|
+
initiated: "initiated";
|
|
7901
|
+
connected: "connected";
|
|
7902
|
+
failed: "failed";
|
|
7903
|
+
not_connected: "not_connected";
|
|
7904
|
+
}>;
|
|
7905
|
+
detail: z.ZodString;
|
|
7906
|
+
connect_url: z.ZodNullable<z.ZodString>;
|
|
7907
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
7908
|
+
retry: "retry";
|
|
7909
|
+
skip: "skip";
|
|
7910
|
+
approve: "approve";
|
|
7911
|
+
}>>;
|
|
7912
|
+
env_fields: z.ZodArray<z.ZodObject<{
|
|
7913
|
+
name: z.ZodString;
|
|
7914
|
+
label: z.ZodString;
|
|
7915
|
+
required: z.ZodBoolean;
|
|
7916
|
+
secret: z.ZodBoolean;
|
|
7917
|
+
}, z.core.$strip>>;
|
|
7918
|
+
}, z.core.$strip>>;
|
|
7919
|
+
}, z.core.$strip>;
|
|
7920
|
+
export type ConnectorsPage = z.infer<typeof ConnectorsPageSchema>;
|
|
7921
|
+
export type ConnectorView = z.infer<typeof ConnectorViewSchema>;
|
|
7922
|
+
export type ConnectorToolsView = z.infer<typeof ConnectorToolsViewSchema>;
|
|
7923
|
+
export type ConnectorOperationView = z.infer<typeof ConnectorOperationViewSchema>;
|
|
5578
7924
|
export declare const McpToolsSchema: z.ZodObject<{
|
|
5579
7925
|
tools: z.ZodArray<z.ZodObject<{
|
|
5580
7926
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -5635,8 +7981,8 @@ export declare const WikiStatusSchema: z.ZodObject<{
|
|
|
5635
7981
|
enabled: z.ZodBoolean;
|
|
5636
7982
|
status: z.ZodEnum<{
|
|
5637
7983
|
error: "error";
|
|
5638
|
-
ready: "ready";
|
|
5639
7984
|
empty: "empty";
|
|
7985
|
+
ready: "ready";
|
|
5640
7986
|
missing: "missing";
|
|
5641
7987
|
not_directory: "not_directory";
|
|
5642
7988
|
}>;
|
|
@@ -5763,12 +8109,32 @@ export declare const OnboardingStatusSchema: z.ZodObject<{
|
|
|
5763
8109
|
last: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5764
8110
|
}, z.core.$loose>>;
|
|
5765
8111
|
models: z.ZodOptional<z.ZodObject<{
|
|
8112
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
8113
|
+
status: z.ZodEnum<{
|
|
8114
|
+
available: "available";
|
|
8115
|
+
unavailable: "unavailable";
|
|
8116
|
+
stale: "stale";
|
|
8117
|
+
}>;
|
|
8118
|
+
authoritative: z.ZodBoolean;
|
|
8119
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
8120
|
+
generation: z.ZodString;
|
|
8121
|
+
}, z.core.$strip>>;
|
|
5766
8122
|
active_provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5767
8123
|
default_model: z.ZodOptional<z.ZodString>;
|
|
5768
8124
|
default_provider_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5769
8125
|
default_bare_id: z.ZodOptional<z.ZodString>;
|
|
5770
8126
|
default_option_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5771
8127
|
groups: z.ZodArray<z.ZodObject<{
|
|
8128
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
8129
|
+
status: z.ZodEnum<{
|
|
8130
|
+
available: "available";
|
|
8131
|
+
unavailable: "unavailable";
|
|
8132
|
+
stale: "stale";
|
|
8133
|
+
}>;
|
|
8134
|
+
authoritative: z.ZodBoolean;
|
|
8135
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
8136
|
+
generation: z.ZodString;
|
|
8137
|
+
}, z.core.$strip>>;
|
|
5772
8138
|
provider: z.ZodString;
|
|
5773
8139
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
5774
8140
|
models: z.ZodArray<z.ZodObject<{
|
|
@@ -5778,6 +8144,23 @@ export declare const OnboardingStatusSchema: z.ZodObject<{
|
|
|
5778
8144
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
5779
8145
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
5780
8146
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
8147
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8148
|
+
id: z.ZodEnum<{
|
|
8149
|
+
standard: "standard";
|
|
8150
|
+
priority: "priority";
|
|
8151
|
+
ultrafast: "ultrafast";
|
|
8152
|
+
fast: "fast";
|
|
8153
|
+
}>;
|
|
8154
|
+
service_tier: z.ZodEnum<{
|
|
8155
|
+
default: "default";
|
|
8156
|
+
priority: "priority";
|
|
8157
|
+
ultrafast: "ultrafast";
|
|
8158
|
+
}>;
|
|
8159
|
+
}, z.core.$strip>>>;
|
|
8160
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
8161
|
+
scope: z.ZodLiteral<"model">;
|
|
8162
|
+
resets_at: z.ZodString;
|
|
8163
|
+
}, z.core.$strip>>;
|
|
5781
8164
|
}, z.core.$loose>>;
|
|
5782
8165
|
extra_models: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5783
8166
|
id: z.ZodString;
|
|
@@ -5786,7 +8169,38 @@ export declare const OnboardingStatusSchema: z.ZodObject<{
|
|
|
5786
8169
|
provider_id: z.ZodOptional<z.ZodString>;
|
|
5787
8170
|
bare_id: z.ZodOptional<z.ZodString>;
|
|
5788
8171
|
supports_fast_tier: z.ZodOptional<z.ZodBoolean>;
|
|
8172
|
+
supported_speed_tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8173
|
+
id: z.ZodEnum<{
|
|
8174
|
+
standard: "standard";
|
|
8175
|
+
priority: "priority";
|
|
8176
|
+
ultrafast: "ultrafast";
|
|
8177
|
+
fast: "fast";
|
|
8178
|
+
}>;
|
|
8179
|
+
service_tier: z.ZodEnum<{
|
|
8180
|
+
default: "default";
|
|
8181
|
+
priority: "priority";
|
|
8182
|
+
ultrafast: "ultrafast";
|
|
8183
|
+
}>;
|
|
8184
|
+
}, z.core.$strip>>>;
|
|
8185
|
+
limit: z.ZodOptional<z.ZodObject<{
|
|
8186
|
+
scope: z.ZodLiteral<"model">;
|
|
8187
|
+
resets_at: z.ZodString;
|
|
8188
|
+
}, z.core.$strip>>;
|
|
5789
8189
|
}, z.core.$loose>>>;
|
|
8190
|
+
limit: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8191
|
+
scope: z.ZodLiteral<"account">;
|
|
8192
|
+
resets_at: z.ZodString;
|
|
8193
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8194
|
+
scope: z.ZodLiteral<"models">;
|
|
8195
|
+
models: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
8196
|
+
}, z.core.$strip>], "scope">>;
|
|
8197
|
+
quota_level: z.ZodOptional<z.ZodEnum<{
|
|
8198
|
+
unavailable: "unavailable";
|
|
8199
|
+
stale: "stale";
|
|
8200
|
+
warning: "warning";
|
|
8201
|
+
healthy: "healthy";
|
|
8202
|
+
critical: "critical";
|
|
8203
|
+
}>>;
|
|
5790
8204
|
}, z.core.$loose>>;
|
|
5791
8205
|
aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5792
8206
|
configured_model_badges: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -5817,6 +8231,9 @@ export declare const OnboardingOAuthSchema: z.ZodObject<{
|
|
|
5817
8231
|
provider: z.ZodOptional<z.ZodString>;
|
|
5818
8232
|
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
5819
8233
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
8234
|
+
authorize_host: z.ZodOptional<z.ZodString>;
|
|
8235
|
+
token_host: z.ZodOptional<z.ZodString>;
|
|
8236
|
+
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
5820
8237
|
}, z.core.$loose>;
|
|
5821
8238
|
export declare const CronScheduleSchema: z.ZodObject<{
|
|
5822
8239
|
kind: z.ZodOptional<z.ZodString>;
|
|
@@ -5832,10 +8249,10 @@ export declare const CronRepeatSchema: z.ZodObject<{
|
|
|
5832
8249
|
export declare const CronDerivedStateSchema: z.ZodEnum<{
|
|
5833
8250
|
error: "error";
|
|
5834
8251
|
active: "active";
|
|
8252
|
+
paused: "paused";
|
|
5835
8253
|
off: "off";
|
|
5836
8254
|
needs_attention: "needs_attention";
|
|
5837
8255
|
schedule_error: "schedule_error";
|
|
5838
|
-
paused: "paused";
|
|
5839
8256
|
}>;
|
|
5840
8257
|
export type CronDerivedState = z.infer<typeof CronDerivedStateSchema>;
|
|
5841
8258
|
export declare const CronJobViewSchema: z.ZodObject<{
|
|
@@ -5890,18 +8307,31 @@ export declare const CronJobViewSchema: z.ZodObject<{
|
|
|
5890
8307
|
derived_state: z.ZodOptional<z.ZodEnum<{
|
|
5891
8308
|
error: "error";
|
|
5892
8309
|
active: "active";
|
|
8310
|
+
paused: "paused";
|
|
5893
8311
|
off: "off";
|
|
5894
8312
|
needs_attention: "needs_attention";
|
|
5895
8313
|
schedule_error: "schedule_error";
|
|
5896
|
-
paused: "paused";
|
|
5897
8314
|
}>>;
|
|
5898
8315
|
needs_attention: z.ZodOptional<z.ZodBoolean>;
|
|
5899
8316
|
resumable: z.ZodOptional<z.ZodBoolean>;
|
|
5900
8317
|
attention_hint: z.ZodNullable<z.ZodEnum<{
|
|
5901
8318
|
croniter_missing: "croniter_missing";
|
|
5902
8319
|
}>>;
|
|
8320
|
+
last_failure: z.ZodNullable<z.ZodObject<{
|
|
8321
|
+
at: z.ZodNullable<z.ZodNumber>;
|
|
8322
|
+
detail: z.ZodString;
|
|
8323
|
+
}, z.core.$strip>>;
|
|
5903
8324
|
}, z.core.$loose>;
|
|
5904
8325
|
export type CronJob = z.infer<typeof CronJobViewSchema>;
|
|
8326
|
+
/** 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. */
|
|
8327
|
+
export declare const CronStoreHealthSchema: z.ZodObject<{
|
|
8328
|
+
profile: z.ZodString;
|
|
8329
|
+
store: z.ZodString;
|
|
8330
|
+
error: z.ZodString;
|
|
8331
|
+
fix: z.ZodString;
|
|
8332
|
+
since: z.ZodNullable<z.ZodNumber>;
|
|
8333
|
+
}, z.core.$strip>;
|
|
8334
|
+
export type CronStoreHealth = z.infer<typeof CronStoreHealthSchema>;
|
|
5905
8335
|
export declare const CronsSchema: z.ZodObject<{
|
|
5906
8336
|
jobs: z.ZodArray<z.ZodObject<{
|
|
5907
8337
|
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5955,22 +8385,33 @@ export declare const CronsSchema: z.ZodObject<{
|
|
|
5955
8385
|
derived_state: z.ZodOptional<z.ZodEnum<{
|
|
5956
8386
|
error: "error";
|
|
5957
8387
|
active: "active";
|
|
8388
|
+
paused: "paused";
|
|
5958
8389
|
off: "off";
|
|
5959
8390
|
needs_attention: "needs_attention";
|
|
5960
8391
|
schedule_error: "schedule_error";
|
|
5961
|
-
paused: "paused";
|
|
5962
8392
|
}>>;
|
|
5963
8393
|
needs_attention: z.ZodOptional<z.ZodBoolean>;
|
|
5964
8394
|
resumable: z.ZodOptional<z.ZodBoolean>;
|
|
5965
8395
|
attention_hint: z.ZodNullable<z.ZodEnum<{
|
|
5966
8396
|
croniter_missing: "croniter_missing";
|
|
5967
8397
|
}>>;
|
|
8398
|
+
last_failure: z.ZodNullable<z.ZodObject<{
|
|
8399
|
+
at: z.ZodNullable<z.ZodNumber>;
|
|
8400
|
+
detail: z.ZodString;
|
|
8401
|
+
}, z.core.$strip>>;
|
|
5968
8402
|
}, z.core.$loose>>;
|
|
5969
8403
|
ordered: z.ZodOptional<z.ZodBoolean>;
|
|
5970
8404
|
active_profile: z.ZodOptional<z.ZodString>;
|
|
5971
8405
|
all_profiles: z.ZodOptional<z.ZodBoolean>;
|
|
5972
8406
|
other_profile_count: z.ZodOptional<z.ZodNumber>;
|
|
5973
8407
|
cron_unavailable: z.ZodOptional<z.ZodBoolean>;
|
|
8408
|
+
unwritable_stores: z.ZodArray<z.ZodObject<{
|
|
8409
|
+
profile: z.ZodString;
|
|
8410
|
+
store: z.ZodString;
|
|
8411
|
+
error: z.ZodString;
|
|
8412
|
+
fix: z.ZodString;
|
|
8413
|
+
since: z.ZodNullable<z.ZodNumber>;
|
|
8414
|
+
}, z.core.$strip>>;
|
|
5974
8415
|
}, z.core.$loose>;
|
|
5975
8416
|
export type Crons = z.infer<typeof CronsSchema>;
|
|
5976
8417
|
export declare const CronContextSourcesSchema: z.ZodObject<{
|
|
@@ -6069,16 +8510,20 @@ export declare const CronMutationSchema: z.ZodObject<{
|
|
|
6069
8510
|
derived_state: z.ZodOptional<z.ZodEnum<{
|
|
6070
8511
|
error: "error";
|
|
6071
8512
|
active: "active";
|
|
8513
|
+
paused: "paused";
|
|
6072
8514
|
off: "off";
|
|
6073
8515
|
needs_attention: "needs_attention";
|
|
6074
8516
|
schedule_error: "schedule_error";
|
|
6075
|
-
paused: "paused";
|
|
6076
8517
|
}>>;
|
|
6077
8518
|
needs_attention: z.ZodOptional<z.ZodBoolean>;
|
|
6078
8519
|
resumable: z.ZodOptional<z.ZodBoolean>;
|
|
6079
8520
|
attention_hint: z.ZodNullable<z.ZodEnum<{
|
|
6080
8521
|
croniter_missing: "croniter_missing";
|
|
6081
8522
|
}>>;
|
|
8523
|
+
last_failure: z.ZodNullable<z.ZodObject<{
|
|
8524
|
+
at: z.ZodNullable<z.ZodNumber>;
|
|
8525
|
+
detail: z.ZodString;
|
|
8526
|
+
}, z.core.$strip>>;
|
|
6082
8527
|
}, z.core.$loose>>;
|
|
6083
8528
|
job_id: z.ZodOptional<z.ZodString>;
|
|
6084
8529
|
status: z.ZodOptional<z.ZodString>;
|
|
@@ -6187,8 +8632,10 @@ export declare const KanbanTaskViewSchema: z.ZodObject<{
|
|
|
6187
8632
|
created_at: z.ZodOptional<z.ZodUnknown>;
|
|
6188
8633
|
updated_at: z.ZodOptional<z.ZodUnknown>;
|
|
6189
8634
|
}, z.core.$loose>;
|
|
8635
|
+
/** A board column in the Agent workflow's order (TAL-796): `name` is the status key, `label` the Agent's English label. */
|
|
6190
8636
|
export declare const KanbanColumnSchema: z.ZodObject<{
|
|
6191
8637
|
name: z.ZodString;
|
|
8638
|
+
label: z.ZodString;
|
|
6192
8639
|
tasks: z.ZodArray<z.ZodObject<{
|
|
6193
8640
|
available_actions: z.ZodObject<{
|
|
6194
8641
|
block: z.ZodBoolean;
|
|
@@ -6217,6 +8664,7 @@ export declare const KanbanLaneSchema: z.ZodObject<{
|
|
|
6217
8664
|
count: z.ZodNumber;
|
|
6218
8665
|
columns: z.ZodArray<z.ZodObject<{
|
|
6219
8666
|
name: z.ZodString;
|
|
8667
|
+
label: z.ZodString;
|
|
6220
8668
|
tasks: z.ZodArray<z.ZodObject<{
|
|
6221
8669
|
available_actions: z.ZodObject<{
|
|
6222
8670
|
block: z.ZodBoolean;
|
|
@@ -6243,6 +8691,7 @@ export declare const KanbanLaneSchema: z.ZodObject<{
|
|
|
6243
8691
|
export declare const KanbanBoardViewSchema: z.ZodObject<{
|
|
6244
8692
|
columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6245
8693
|
name: z.ZodString;
|
|
8694
|
+
label: z.ZodString;
|
|
6246
8695
|
tasks: z.ZodArray<z.ZodObject<{
|
|
6247
8696
|
available_actions: z.ZodObject<{
|
|
6248
8697
|
block: z.ZodBoolean;
|
|
@@ -6272,12 +8721,14 @@ export declare const KanbanBoardViewSchema: z.ZodObject<{
|
|
|
6272
8721
|
tenants: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
6273
8722
|
changed: z.ZodOptional<z.ZodBoolean>;
|
|
6274
8723
|
bulk_move_targets: z.ZodArray<z.ZodString>;
|
|
8724
|
+
create_statuses: z.ZodArray<z.ZodString>;
|
|
6275
8725
|
lane_by_profile: z.ZodBoolean;
|
|
6276
8726
|
lanes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6277
8727
|
assignee: z.ZodNullable<z.ZodString>;
|
|
6278
8728
|
count: z.ZodNumber;
|
|
6279
8729
|
columns: z.ZodArray<z.ZodObject<{
|
|
6280
8730
|
name: z.ZodString;
|
|
8731
|
+
label: z.ZodString;
|
|
6281
8732
|
tasks: z.ZodArray<z.ZodObject<{
|
|
6282
8733
|
available_actions: z.ZodObject<{
|
|
6283
8734
|
block: z.ZodBoolean;
|