@adecore/agent-contracts 0.20.1 → 0.21.1
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/chat.d.ts +1455 -0
- package/dist/chat.js +89 -4
- package/dist/protocol.d.ts +988 -0
- package/dist/protocol.js +4 -1
- package/package.json +2 -1
- package/src/chat.ts +111 -4
- package/src/protocol.ts +8 -0
package/dist/protocol.d.ts
CHANGED
|
@@ -79,8 +79,21 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
79
79
|
mime: z.ZodString;
|
|
80
80
|
size: z.ZodNumber;
|
|
81
81
|
path: z.ZodString;
|
|
82
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
82
84
|
}, z.core.$strip>>>;
|
|
83
85
|
createdAt: z.ZodNumber;
|
|
86
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
87
|
+
itemId: z.ZodString;
|
|
88
|
+
blockId: z.ZodString;
|
|
89
|
+
revision: z.ZodString;
|
|
90
|
+
choiceId: z.ZodString;
|
|
91
|
+
label: z.ZodString;
|
|
92
|
+
sourceAt: z.ZodNumber;
|
|
93
|
+
older: z.ZodBoolean;
|
|
94
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
95
|
+
at: z.ZodNumber;
|
|
96
|
+
}, z.core.$strip>>;
|
|
84
97
|
}, z.core.$strip>>>;
|
|
85
98
|
queuePaused: z.ZodOptional<z.ZodBoolean>;
|
|
86
99
|
background: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -184,12 +197,88 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
184
197
|
mime: z.ZodString;
|
|
185
198
|
size: z.ZodNumber;
|
|
186
199
|
path: z.ZodString;
|
|
200
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
187
202
|
}, z.core.$strip>>>;
|
|
203
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
itemId: z.ZodString;
|
|
205
|
+
blockId: z.ZodString;
|
|
206
|
+
revision: z.ZodString;
|
|
207
|
+
choiceId: z.ZodString;
|
|
208
|
+
label: z.ZodString;
|
|
209
|
+
sourceAt: z.ZodNumber;
|
|
210
|
+
older: z.ZodBoolean;
|
|
211
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
212
|
+
at: z.ZodNumber;
|
|
213
|
+
}, z.core.$strip>>;
|
|
188
214
|
}, z.core.$strip>, z.ZodObject<{
|
|
189
215
|
id: z.ZodString;
|
|
190
216
|
createdAt: z.ZodNumber;
|
|
191
217
|
turnId: z.ZodNullable<z.ZodString>;
|
|
192
218
|
kind: z.ZodLiteral<"assistant">;
|
|
219
|
+
ui: z.ZodOptional<z.ZodArray<z.ZodType<import("@adecore/intelligent-ui/compiler").UiBlock, unknown, z.core.$ZodTypeInternals<import("@adecore/intelligent-ui/compiler").UiBlock, unknown>>>>;
|
|
220
|
+
uiAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
221
|
+
itemId: z.ZodString;
|
|
222
|
+
blockId: z.ZodString;
|
|
223
|
+
revision: z.ZodString;
|
|
224
|
+
choiceId: z.ZodString;
|
|
225
|
+
label: z.ZodString;
|
|
226
|
+
sourceAt: z.ZodNumber;
|
|
227
|
+
older: z.ZodBoolean;
|
|
228
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
229
|
+
at: z.ZodNumber;
|
|
230
|
+
queued: z.ZodBoolean;
|
|
231
|
+
turnId: z.ZodString;
|
|
232
|
+
}, z.core.$strip>>>;
|
|
233
|
+
uiQueries: z.ZodOptional<z.ZodObject<{
|
|
234
|
+
authorChatId: z.ZodString;
|
|
235
|
+
blocks: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
236
|
+
revision: z.ZodString;
|
|
237
|
+
readings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
238
|
+
state: z.ZodEnum<{
|
|
239
|
+
failed: "failed";
|
|
240
|
+
fresh: "fresh";
|
|
241
|
+
refused: "refused";
|
|
242
|
+
}>;
|
|
243
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
244
|
+
readId: z.ZodOptional<z.ZodString>;
|
|
245
|
+
readAt: z.ZodNumber;
|
|
246
|
+
code: z.ZodOptional<z.ZodString>;
|
|
247
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
248
|
+
}, z.core.$strip>>;
|
|
249
|
+
fallback: z.ZodString;
|
|
250
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
251
|
+
state: z.ZodEnum<{
|
|
252
|
+
chip: "chip";
|
|
253
|
+
plain: "plain";
|
|
254
|
+
}>;
|
|
255
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
256
|
+
type: z.ZodLiteral<"File">;
|
|
257
|
+
path: z.ZodString;
|
|
258
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
259
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
260
|
+
type: z.ZodLiteral<"Diff">;
|
|
261
|
+
path: z.ZodString;
|
|
262
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
263
|
+
type: z.ZodLiteral<"Commit">;
|
|
264
|
+
sha: z.ZodString;
|
|
265
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
266
|
+
type: z.ZodLiteral<"Node">;
|
|
267
|
+
id: z.ZodString;
|
|
268
|
+
}, z.core.$strict>], "type">>;
|
|
269
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
270
|
+
viewId: z.ZodOptional<z.ZodString>;
|
|
271
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
272
|
+
staged: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
+
conflicted: z.ZodOptional<z.ZodBoolean>;
|
|
274
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
275
|
+
label: z.ZodOptional<z.ZodString>;
|
|
276
|
+
code: z.ZodOptional<z.ZodString>;
|
|
277
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
278
|
+
}, z.core.$strip>>>;
|
|
279
|
+
}, z.core.$strip>>;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
193
282
|
text: z.ZodString;
|
|
194
283
|
streaming: z.ZodBoolean;
|
|
195
284
|
parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -480,8 +569,21 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
480
569
|
mime: z.ZodString;
|
|
481
570
|
size: z.ZodNumber;
|
|
482
571
|
path: z.ZodString;
|
|
572
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
573
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
483
574
|
}, z.core.$strip>>>;
|
|
484
575
|
createdAt: z.ZodNumber;
|
|
576
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
577
|
+
itemId: z.ZodString;
|
|
578
|
+
blockId: z.ZodString;
|
|
579
|
+
revision: z.ZodString;
|
|
580
|
+
choiceId: z.ZodString;
|
|
581
|
+
label: z.ZodString;
|
|
582
|
+
sourceAt: z.ZodNumber;
|
|
583
|
+
older: z.ZodBoolean;
|
|
584
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
585
|
+
at: z.ZodNumber;
|
|
586
|
+
}, z.core.$strip>>;
|
|
485
587
|
}, z.core.$strip>>>;
|
|
486
588
|
queuePaused: z.ZodOptional<z.ZodBoolean>;
|
|
487
589
|
background: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -577,12 +679,88 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
577
679
|
mime: z.ZodString;
|
|
578
680
|
size: z.ZodNumber;
|
|
579
681
|
path: z.ZodString;
|
|
682
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
683
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
580
684
|
}, z.core.$strip>>>;
|
|
685
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
686
|
+
itemId: z.ZodString;
|
|
687
|
+
blockId: z.ZodString;
|
|
688
|
+
revision: z.ZodString;
|
|
689
|
+
choiceId: z.ZodString;
|
|
690
|
+
label: z.ZodString;
|
|
691
|
+
sourceAt: z.ZodNumber;
|
|
692
|
+
older: z.ZodBoolean;
|
|
693
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
694
|
+
at: z.ZodNumber;
|
|
695
|
+
}, z.core.$strip>>;
|
|
581
696
|
}, z.core.$strip>, z.ZodObject<{
|
|
582
697
|
id: z.ZodString;
|
|
583
698
|
createdAt: z.ZodNumber;
|
|
584
699
|
turnId: z.ZodNullable<z.ZodString>;
|
|
585
700
|
kind: z.ZodLiteral<"assistant">;
|
|
701
|
+
ui: z.ZodOptional<z.ZodArray<z.ZodType<import("@adecore/intelligent-ui/compiler").UiBlock, unknown, z.core.$ZodTypeInternals<import("@adecore/intelligent-ui/compiler").UiBlock, unknown>>>>;
|
|
702
|
+
uiAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
703
|
+
itemId: z.ZodString;
|
|
704
|
+
blockId: z.ZodString;
|
|
705
|
+
revision: z.ZodString;
|
|
706
|
+
choiceId: z.ZodString;
|
|
707
|
+
label: z.ZodString;
|
|
708
|
+
sourceAt: z.ZodNumber;
|
|
709
|
+
older: z.ZodBoolean;
|
|
710
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
711
|
+
at: z.ZodNumber;
|
|
712
|
+
queued: z.ZodBoolean;
|
|
713
|
+
turnId: z.ZodString;
|
|
714
|
+
}, z.core.$strip>>>;
|
|
715
|
+
uiQueries: z.ZodOptional<z.ZodObject<{
|
|
716
|
+
authorChatId: z.ZodString;
|
|
717
|
+
blocks: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
718
|
+
revision: z.ZodString;
|
|
719
|
+
readings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
720
|
+
state: z.ZodEnum<{
|
|
721
|
+
failed: "failed";
|
|
722
|
+
fresh: "fresh";
|
|
723
|
+
refused: "refused";
|
|
724
|
+
}>;
|
|
725
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
726
|
+
readId: z.ZodOptional<z.ZodString>;
|
|
727
|
+
readAt: z.ZodNumber;
|
|
728
|
+
code: z.ZodOptional<z.ZodString>;
|
|
729
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
730
|
+
}, z.core.$strip>>;
|
|
731
|
+
fallback: z.ZodString;
|
|
732
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
733
|
+
state: z.ZodEnum<{
|
|
734
|
+
chip: "chip";
|
|
735
|
+
plain: "plain";
|
|
736
|
+
}>;
|
|
737
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
738
|
+
type: z.ZodLiteral<"File">;
|
|
739
|
+
path: z.ZodString;
|
|
740
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
741
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
742
|
+
type: z.ZodLiteral<"Diff">;
|
|
743
|
+
path: z.ZodString;
|
|
744
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
745
|
+
type: z.ZodLiteral<"Commit">;
|
|
746
|
+
sha: z.ZodString;
|
|
747
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
748
|
+
type: z.ZodLiteral<"Node">;
|
|
749
|
+
id: z.ZodString;
|
|
750
|
+
}, z.core.$strict>], "type">>;
|
|
751
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
752
|
+
viewId: z.ZodOptional<z.ZodString>;
|
|
753
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
754
|
+
staged: z.ZodOptional<z.ZodBoolean>;
|
|
755
|
+
conflicted: z.ZodOptional<z.ZodBoolean>;
|
|
756
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
757
|
+
label: z.ZodOptional<z.ZodString>;
|
|
758
|
+
code: z.ZodOptional<z.ZodString>;
|
|
759
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
760
|
+
}, z.core.$strip>>>;
|
|
761
|
+
}, z.core.$strip>>;
|
|
762
|
+
}, z.core.$strip>>;
|
|
763
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
586
764
|
text: z.ZodString;
|
|
587
765
|
streaming: z.ZodBoolean;
|
|
588
766
|
parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -825,12 +1003,88 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
825
1003
|
mime: z.ZodString;
|
|
826
1004
|
size: z.ZodNumber;
|
|
827
1005
|
path: z.ZodString;
|
|
1006
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1007
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
828
1008
|
}, z.core.$strip>>>;
|
|
1009
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
1010
|
+
itemId: z.ZodString;
|
|
1011
|
+
blockId: z.ZodString;
|
|
1012
|
+
revision: z.ZodString;
|
|
1013
|
+
choiceId: z.ZodString;
|
|
1014
|
+
label: z.ZodString;
|
|
1015
|
+
sourceAt: z.ZodNumber;
|
|
1016
|
+
older: z.ZodBoolean;
|
|
1017
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1018
|
+
at: z.ZodNumber;
|
|
1019
|
+
}, z.core.$strip>>;
|
|
829
1020
|
}, z.core.$strip>, z.ZodObject<{
|
|
830
1021
|
id: z.ZodString;
|
|
831
1022
|
createdAt: z.ZodNumber;
|
|
832
1023
|
turnId: z.ZodNullable<z.ZodString>;
|
|
833
1024
|
kind: z.ZodLiteral<"assistant">;
|
|
1025
|
+
ui: z.ZodOptional<z.ZodArray<z.ZodType<import("@adecore/intelligent-ui/compiler").UiBlock, unknown, z.core.$ZodTypeInternals<import("@adecore/intelligent-ui/compiler").UiBlock, unknown>>>>;
|
|
1026
|
+
uiAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1027
|
+
itemId: z.ZodString;
|
|
1028
|
+
blockId: z.ZodString;
|
|
1029
|
+
revision: z.ZodString;
|
|
1030
|
+
choiceId: z.ZodString;
|
|
1031
|
+
label: z.ZodString;
|
|
1032
|
+
sourceAt: z.ZodNumber;
|
|
1033
|
+
older: z.ZodBoolean;
|
|
1034
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1035
|
+
at: z.ZodNumber;
|
|
1036
|
+
queued: z.ZodBoolean;
|
|
1037
|
+
turnId: z.ZodString;
|
|
1038
|
+
}, z.core.$strip>>>;
|
|
1039
|
+
uiQueries: z.ZodOptional<z.ZodObject<{
|
|
1040
|
+
authorChatId: z.ZodString;
|
|
1041
|
+
blocks: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1042
|
+
revision: z.ZodString;
|
|
1043
|
+
readings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1044
|
+
state: z.ZodEnum<{
|
|
1045
|
+
failed: "failed";
|
|
1046
|
+
fresh: "fresh";
|
|
1047
|
+
refused: "refused";
|
|
1048
|
+
}>;
|
|
1049
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
1050
|
+
readId: z.ZodOptional<z.ZodString>;
|
|
1051
|
+
readAt: z.ZodNumber;
|
|
1052
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1053
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1054
|
+
}, z.core.$strip>>;
|
|
1055
|
+
fallback: z.ZodString;
|
|
1056
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1057
|
+
state: z.ZodEnum<{
|
|
1058
|
+
chip: "chip";
|
|
1059
|
+
plain: "plain";
|
|
1060
|
+
}>;
|
|
1061
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1062
|
+
type: z.ZodLiteral<"File">;
|
|
1063
|
+
path: z.ZodString;
|
|
1064
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
1065
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1066
|
+
type: z.ZodLiteral<"Diff">;
|
|
1067
|
+
path: z.ZodString;
|
|
1068
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1069
|
+
type: z.ZodLiteral<"Commit">;
|
|
1070
|
+
sha: z.ZodString;
|
|
1071
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1072
|
+
type: z.ZodLiteral<"Node">;
|
|
1073
|
+
id: z.ZodString;
|
|
1074
|
+
}, z.core.$strict>], "type">>;
|
|
1075
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1076
|
+
viewId: z.ZodOptional<z.ZodString>;
|
|
1077
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1078
|
+
staged: z.ZodOptional<z.ZodBoolean>;
|
|
1079
|
+
conflicted: z.ZodOptional<z.ZodBoolean>;
|
|
1080
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1082
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1083
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1084
|
+
}, z.core.$strip>>>;
|
|
1085
|
+
}, z.core.$strip>>;
|
|
1086
|
+
}, z.core.$strip>>;
|
|
1087
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
834
1088
|
text: z.ZodString;
|
|
835
1089
|
streaming: z.ZodBoolean;
|
|
836
1090
|
parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1072,12 +1326,88 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1072
1326
|
mime: z.ZodString;
|
|
1073
1327
|
size: z.ZodNumber;
|
|
1074
1328
|
path: z.ZodString;
|
|
1329
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1330
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1075
1331
|
}, z.core.$strip>>>;
|
|
1332
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
1333
|
+
itemId: z.ZodString;
|
|
1334
|
+
blockId: z.ZodString;
|
|
1335
|
+
revision: z.ZodString;
|
|
1336
|
+
choiceId: z.ZodString;
|
|
1337
|
+
label: z.ZodString;
|
|
1338
|
+
sourceAt: z.ZodNumber;
|
|
1339
|
+
older: z.ZodBoolean;
|
|
1340
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1341
|
+
at: z.ZodNumber;
|
|
1342
|
+
}, z.core.$strip>>;
|
|
1076
1343
|
}, z.core.$strip>, z.ZodObject<{
|
|
1077
1344
|
id: z.ZodString;
|
|
1078
1345
|
createdAt: z.ZodNumber;
|
|
1079
1346
|
turnId: z.ZodNullable<z.ZodString>;
|
|
1080
1347
|
kind: z.ZodLiteral<"assistant">;
|
|
1348
|
+
ui: z.ZodOptional<z.ZodArray<z.ZodType<import("@adecore/intelligent-ui/compiler").UiBlock, unknown, z.core.$ZodTypeInternals<import("@adecore/intelligent-ui/compiler").UiBlock, unknown>>>>;
|
|
1349
|
+
uiAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1350
|
+
itemId: z.ZodString;
|
|
1351
|
+
blockId: z.ZodString;
|
|
1352
|
+
revision: z.ZodString;
|
|
1353
|
+
choiceId: z.ZodString;
|
|
1354
|
+
label: z.ZodString;
|
|
1355
|
+
sourceAt: z.ZodNumber;
|
|
1356
|
+
older: z.ZodBoolean;
|
|
1357
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1358
|
+
at: z.ZodNumber;
|
|
1359
|
+
queued: z.ZodBoolean;
|
|
1360
|
+
turnId: z.ZodString;
|
|
1361
|
+
}, z.core.$strip>>>;
|
|
1362
|
+
uiQueries: z.ZodOptional<z.ZodObject<{
|
|
1363
|
+
authorChatId: z.ZodString;
|
|
1364
|
+
blocks: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1365
|
+
revision: z.ZodString;
|
|
1366
|
+
readings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1367
|
+
state: z.ZodEnum<{
|
|
1368
|
+
failed: "failed";
|
|
1369
|
+
fresh: "fresh";
|
|
1370
|
+
refused: "refused";
|
|
1371
|
+
}>;
|
|
1372
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
1373
|
+
readId: z.ZodOptional<z.ZodString>;
|
|
1374
|
+
readAt: z.ZodNumber;
|
|
1375
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1377
|
+
}, z.core.$strip>>;
|
|
1378
|
+
fallback: z.ZodString;
|
|
1379
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1380
|
+
state: z.ZodEnum<{
|
|
1381
|
+
chip: "chip";
|
|
1382
|
+
plain: "plain";
|
|
1383
|
+
}>;
|
|
1384
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1385
|
+
type: z.ZodLiteral<"File">;
|
|
1386
|
+
path: z.ZodString;
|
|
1387
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
1388
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1389
|
+
type: z.ZodLiteral<"Diff">;
|
|
1390
|
+
path: z.ZodString;
|
|
1391
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1392
|
+
type: z.ZodLiteral<"Commit">;
|
|
1393
|
+
sha: z.ZodString;
|
|
1394
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1395
|
+
type: z.ZodLiteral<"Node">;
|
|
1396
|
+
id: z.ZodString;
|
|
1397
|
+
}, z.core.$strict>], "type">>;
|
|
1398
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1399
|
+
viewId: z.ZodOptional<z.ZodString>;
|
|
1400
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1401
|
+
staged: z.ZodOptional<z.ZodBoolean>;
|
|
1402
|
+
conflicted: z.ZodOptional<z.ZodBoolean>;
|
|
1403
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
1404
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1405
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1406
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1407
|
+
}, z.core.$strip>>>;
|
|
1408
|
+
}, z.core.$strip>>;
|
|
1409
|
+
}, z.core.$strip>>;
|
|
1410
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
1081
1411
|
text: z.ZodString;
|
|
1082
1412
|
streaming: z.ZodBoolean;
|
|
1083
1413
|
parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1306,6 +1636,56 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1306
1636
|
type: z.ZodLiteral<"delta">;
|
|
1307
1637
|
itemId: z.ZodString;
|
|
1308
1638
|
text: z.ZodString;
|
|
1639
|
+
ui: z.ZodOptional<z.ZodArray<z.ZodType<import("@adecore/intelligent-ui/compiler").UiBlock, unknown, z.core.$ZodTypeInternals<import("@adecore/intelligent-ui/compiler").UiBlock, unknown>>>>;
|
|
1640
|
+
uiQueries: z.ZodOptional<z.ZodObject<{
|
|
1641
|
+
authorChatId: z.ZodString;
|
|
1642
|
+
blocks: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1643
|
+
revision: z.ZodString;
|
|
1644
|
+
readings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1645
|
+
state: z.ZodEnum<{
|
|
1646
|
+
failed: "failed";
|
|
1647
|
+
fresh: "fresh";
|
|
1648
|
+
refused: "refused";
|
|
1649
|
+
}>;
|
|
1650
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
1651
|
+
readId: z.ZodOptional<z.ZodString>;
|
|
1652
|
+
readAt: z.ZodNumber;
|
|
1653
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1654
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1655
|
+
}, z.core.$strip>>;
|
|
1656
|
+
fallback: z.ZodString;
|
|
1657
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1658
|
+
state: z.ZodEnum<{
|
|
1659
|
+
chip: "chip";
|
|
1660
|
+
plain: "plain";
|
|
1661
|
+
}>;
|
|
1662
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1663
|
+
type: z.ZodLiteral<"File">;
|
|
1664
|
+
path: z.ZodString;
|
|
1665
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
1666
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1667
|
+
type: z.ZodLiteral<"Diff">;
|
|
1668
|
+
path: z.ZodString;
|
|
1669
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1670
|
+
type: z.ZodLiteral<"Commit">;
|
|
1671
|
+
sha: z.ZodString;
|
|
1672
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1673
|
+
type: z.ZodLiteral<"Node">;
|
|
1674
|
+
id: z.ZodString;
|
|
1675
|
+
}, z.core.$strict>], "type">>;
|
|
1676
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1677
|
+
viewId: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1679
|
+
staged: z.ZodOptional<z.ZodBoolean>;
|
|
1680
|
+
conflicted: z.ZodOptional<z.ZodBoolean>;
|
|
1681
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
1682
|
+
label: z.ZodOptional<z.ZodString>;
|
|
1683
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1684
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1685
|
+
}, z.core.$strip>>>;
|
|
1686
|
+
}, z.core.$strip>>;
|
|
1687
|
+
}, z.core.$strip>>;
|
|
1688
|
+
textLength: z.ZodOptional<z.ZodNumber>;
|
|
1309
1689
|
}, z.core.$strip>, z.ZodObject<{
|
|
1310
1690
|
type: z.ZodLiteral<"info">;
|
|
1311
1691
|
info: z.ZodObject<{
|
|
@@ -1362,8 +1742,21 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1362
1742
|
mime: z.ZodString;
|
|
1363
1743
|
size: z.ZodNumber;
|
|
1364
1744
|
path: z.ZodString;
|
|
1745
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1746
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1365
1747
|
}, z.core.$strip>>>;
|
|
1366
1748
|
createdAt: z.ZodNumber;
|
|
1749
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
1750
|
+
itemId: z.ZodString;
|
|
1751
|
+
blockId: z.ZodString;
|
|
1752
|
+
revision: z.ZodString;
|
|
1753
|
+
choiceId: z.ZodString;
|
|
1754
|
+
label: z.ZodString;
|
|
1755
|
+
sourceAt: z.ZodNumber;
|
|
1756
|
+
older: z.ZodBoolean;
|
|
1757
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1758
|
+
at: z.ZodNumber;
|
|
1759
|
+
}, z.core.$strip>>;
|
|
1367
1760
|
}, z.core.$strip>>>;
|
|
1368
1761
|
queuePaused: z.ZodOptional<z.ZodBoolean>;
|
|
1369
1762
|
background: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1500,8 +1893,21 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1500
1893
|
mime: z.ZodString;
|
|
1501
1894
|
size: z.ZodNumber;
|
|
1502
1895
|
path: z.ZodString;
|
|
1896
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1897
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1503
1898
|
}, z.core.$strip>>>;
|
|
1504
1899
|
createdAt: z.ZodNumber;
|
|
1900
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
1901
|
+
itemId: z.ZodString;
|
|
1902
|
+
blockId: z.ZodString;
|
|
1903
|
+
revision: z.ZodString;
|
|
1904
|
+
choiceId: z.ZodString;
|
|
1905
|
+
label: z.ZodString;
|
|
1906
|
+
sourceAt: z.ZodNumber;
|
|
1907
|
+
older: z.ZodBoolean;
|
|
1908
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1909
|
+
at: z.ZodNumber;
|
|
1910
|
+
}, z.core.$strip>>;
|
|
1505
1911
|
}, z.core.$strip>>>;
|
|
1506
1912
|
queuePaused: z.ZodOptional<z.ZodBoolean>;
|
|
1507
1913
|
background: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1597,12 +2003,88 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1597
2003
|
mime: z.ZodString;
|
|
1598
2004
|
size: z.ZodNumber;
|
|
1599
2005
|
path: z.ZodString;
|
|
2006
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
2007
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1600
2008
|
}, z.core.$strip>>>;
|
|
2009
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
2010
|
+
itemId: z.ZodString;
|
|
2011
|
+
blockId: z.ZodString;
|
|
2012
|
+
revision: z.ZodString;
|
|
2013
|
+
choiceId: z.ZodString;
|
|
2014
|
+
label: z.ZodString;
|
|
2015
|
+
sourceAt: z.ZodNumber;
|
|
2016
|
+
older: z.ZodBoolean;
|
|
2017
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2018
|
+
at: z.ZodNumber;
|
|
2019
|
+
}, z.core.$strip>>;
|
|
1601
2020
|
}, z.core.$strip>, z.ZodObject<{
|
|
1602
2021
|
id: z.ZodString;
|
|
1603
2022
|
createdAt: z.ZodNumber;
|
|
1604
2023
|
turnId: z.ZodNullable<z.ZodString>;
|
|
1605
2024
|
kind: z.ZodLiteral<"assistant">;
|
|
2025
|
+
ui: z.ZodOptional<z.ZodArray<z.ZodType<import("@adecore/intelligent-ui/compiler").UiBlock, unknown, z.core.$ZodTypeInternals<import("@adecore/intelligent-ui/compiler").UiBlock, unknown>>>>;
|
|
2026
|
+
uiAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2027
|
+
itemId: z.ZodString;
|
|
2028
|
+
blockId: z.ZodString;
|
|
2029
|
+
revision: z.ZodString;
|
|
2030
|
+
choiceId: z.ZodString;
|
|
2031
|
+
label: z.ZodString;
|
|
2032
|
+
sourceAt: z.ZodNumber;
|
|
2033
|
+
older: z.ZodBoolean;
|
|
2034
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2035
|
+
at: z.ZodNumber;
|
|
2036
|
+
queued: z.ZodBoolean;
|
|
2037
|
+
turnId: z.ZodString;
|
|
2038
|
+
}, z.core.$strip>>>;
|
|
2039
|
+
uiQueries: z.ZodOptional<z.ZodObject<{
|
|
2040
|
+
authorChatId: z.ZodString;
|
|
2041
|
+
blocks: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2042
|
+
revision: z.ZodString;
|
|
2043
|
+
readings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2044
|
+
state: z.ZodEnum<{
|
|
2045
|
+
failed: "failed";
|
|
2046
|
+
fresh: "fresh";
|
|
2047
|
+
refused: "refused";
|
|
2048
|
+
}>;
|
|
2049
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
2050
|
+
readId: z.ZodOptional<z.ZodString>;
|
|
2051
|
+
readAt: z.ZodNumber;
|
|
2052
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2053
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2054
|
+
}, z.core.$strip>>;
|
|
2055
|
+
fallback: z.ZodString;
|
|
2056
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2057
|
+
state: z.ZodEnum<{
|
|
2058
|
+
chip: "chip";
|
|
2059
|
+
plain: "plain";
|
|
2060
|
+
}>;
|
|
2061
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2062
|
+
type: z.ZodLiteral<"File">;
|
|
2063
|
+
path: z.ZodString;
|
|
2064
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
2065
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2066
|
+
type: z.ZodLiteral<"Diff">;
|
|
2067
|
+
path: z.ZodString;
|
|
2068
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2069
|
+
type: z.ZodLiteral<"Commit">;
|
|
2070
|
+
sha: z.ZodString;
|
|
2071
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2072
|
+
type: z.ZodLiteral<"Node">;
|
|
2073
|
+
id: z.ZodString;
|
|
2074
|
+
}, z.core.$strict>], "type">>;
|
|
2075
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
2076
|
+
viewId: z.ZodOptional<z.ZodString>;
|
|
2077
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2078
|
+
staged: z.ZodOptional<z.ZodBoolean>;
|
|
2079
|
+
conflicted: z.ZodOptional<z.ZodBoolean>;
|
|
2080
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
2081
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2082
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2083
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2084
|
+
}, z.core.$strip>>>;
|
|
2085
|
+
}, z.core.$strip>>;
|
|
2086
|
+
}, z.core.$strip>>;
|
|
2087
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
1606
2088
|
text: z.ZodString;
|
|
1607
2089
|
streaming: z.ZodBoolean;
|
|
1608
2090
|
parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1876,6 +2358,83 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1876
2358
|
turnId: z.ZodOptional<z.ZodString>;
|
|
1877
2359
|
}, z.core.$strip>;
|
|
1878
2360
|
};
|
|
2361
|
+
readonly 'chat.uiChoice': {
|
|
2362
|
+
readonly payload: z.ZodObject<{
|
|
2363
|
+
chatId: z.ZodString;
|
|
2364
|
+
itemId: z.ZodString;
|
|
2365
|
+
blockId: z.ZodString;
|
|
2366
|
+
revision: z.ZodString;
|
|
2367
|
+
choiceId: z.ZodString;
|
|
2368
|
+
reads: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2369
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2370
|
+
}, z.core.$strip>;
|
|
2371
|
+
readonly result: z.ZodObject<{
|
|
2372
|
+
queued: z.ZodBoolean;
|
|
2373
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
2374
|
+
}, z.core.$strip>;
|
|
2375
|
+
};
|
|
2376
|
+
readonly 'ui.link': {
|
|
2377
|
+
readonly payload: z.ZodObject<{
|
|
2378
|
+
chatId: z.ZodString;
|
|
2379
|
+
itemId: z.ZodString;
|
|
2380
|
+
blockId: z.ZodString;
|
|
2381
|
+
revision: z.ZodString;
|
|
2382
|
+
reads: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2383
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2384
|
+
nodeId: z.ZodString;
|
|
2385
|
+
}, z.core.$strip>;
|
|
2386
|
+
readonly result: z.ZodObject<{
|
|
2387
|
+
state: z.ZodEnum<{
|
|
2388
|
+
chip: "chip";
|
|
2389
|
+
plain: "plain";
|
|
2390
|
+
}>;
|
|
2391
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2392
|
+
type: z.ZodLiteral<"File">;
|
|
2393
|
+
path: z.ZodString;
|
|
2394
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
2395
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2396
|
+
type: z.ZodLiteral<"Diff">;
|
|
2397
|
+
path: z.ZodString;
|
|
2398
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2399
|
+
type: z.ZodLiteral<"Commit">;
|
|
2400
|
+
sha: z.ZodString;
|
|
2401
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2402
|
+
type: z.ZodLiteral<"Node">;
|
|
2403
|
+
id: z.ZodString;
|
|
2404
|
+
}, z.core.$strict>], "type">>;
|
|
2405
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
2406
|
+
viewId: z.ZodOptional<z.ZodString>;
|
|
2407
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
2408
|
+
staged: z.ZodOptional<z.ZodBoolean>;
|
|
2409
|
+
conflicted: z.ZodOptional<z.ZodBoolean>;
|
|
2410
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
2411
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2412
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2413
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2414
|
+
}, z.core.$strip>;
|
|
2415
|
+
};
|
|
2416
|
+
readonly 'ui.query': {
|
|
2417
|
+
readonly payload: z.ZodObject<{
|
|
2418
|
+
chatId: z.ZodString;
|
|
2419
|
+
itemId: z.ZodString;
|
|
2420
|
+
blockId: z.ZodString;
|
|
2421
|
+
revision: z.ZodString;
|
|
2422
|
+
query: z.ZodString;
|
|
2423
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2424
|
+
}, z.core.$strip>;
|
|
2425
|
+
readonly result: z.ZodObject<{
|
|
2426
|
+
state: z.ZodEnum<{
|
|
2427
|
+
failed: "failed";
|
|
2428
|
+
fresh: "fresh";
|
|
2429
|
+
refused: "refused";
|
|
2430
|
+
}>;
|
|
2431
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
2432
|
+
readId: z.ZodOptional<z.ZodString>;
|
|
2433
|
+
readAt: z.ZodNumber;
|
|
2434
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2435
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2436
|
+
}, z.core.$strip>;
|
|
2437
|
+
};
|
|
1879
2438
|
readonly 'chat.unqueue': {
|
|
1880
2439
|
readonly payload: z.ZodObject<{
|
|
1881
2440
|
chatId: z.ZodString;
|
|
@@ -1895,8 +2454,21 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1895
2454
|
mime: z.ZodString;
|
|
1896
2455
|
size: z.ZodNumber;
|
|
1897
2456
|
path: z.ZodString;
|
|
2457
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
2458
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1898
2459
|
}, z.core.$strip>>>;
|
|
1899
2460
|
createdAt: z.ZodNumber;
|
|
2461
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
2462
|
+
itemId: z.ZodString;
|
|
2463
|
+
blockId: z.ZodString;
|
|
2464
|
+
revision: z.ZodString;
|
|
2465
|
+
choiceId: z.ZodString;
|
|
2466
|
+
label: z.ZodString;
|
|
2467
|
+
sourceAt: z.ZodNumber;
|
|
2468
|
+
older: z.ZodBoolean;
|
|
2469
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2470
|
+
at: z.ZodNumber;
|
|
2471
|
+
}, z.core.$strip>>;
|
|
1900
2472
|
}, z.core.$strip>>;
|
|
1901
2473
|
}, z.core.$strip>;
|
|
1902
2474
|
};
|
|
@@ -2012,8 +2584,21 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
2012
2584
|
mime: z.ZodString;
|
|
2013
2585
|
size: z.ZodNumber;
|
|
2014
2586
|
path: z.ZodString;
|
|
2587
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
2588
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
2015
2589
|
}, z.core.$strip>>>;
|
|
2016
2590
|
createdAt: z.ZodNumber;
|
|
2591
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
2592
|
+
itemId: z.ZodString;
|
|
2593
|
+
blockId: z.ZodString;
|
|
2594
|
+
revision: z.ZodString;
|
|
2595
|
+
choiceId: z.ZodString;
|
|
2596
|
+
label: z.ZodString;
|
|
2597
|
+
sourceAt: z.ZodNumber;
|
|
2598
|
+
older: z.ZodBoolean;
|
|
2599
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2600
|
+
at: z.ZodNumber;
|
|
2601
|
+
}, z.core.$strip>>;
|
|
2017
2602
|
}, z.core.$strip>>>;
|
|
2018
2603
|
queuePaused: z.ZodOptional<z.ZodBoolean>;
|
|
2019
2604
|
background: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2248,8 +2833,21 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
2248
2833
|
mime: z.ZodString;
|
|
2249
2834
|
size: z.ZodNumber;
|
|
2250
2835
|
path: z.ZodString;
|
|
2836
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
2837
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
2251
2838
|
}, z.core.$strip>>>;
|
|
2252
2839
|
createdAt: z.ZodNumber;
|
|
2840
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
2841
|
+
itemId: z.ZodString;
|
|
2842
|
+
blockId: z.ZodString;
|
|
2843
|
+
revision: z.ZodString;
|
|
2844
|
+
choiceId: z.ZodString;
|
|
2845
|
+
label: z.ZodString;
|
|
2846
|
+
sourceAt: z.ZodNumber;
|
|
2847
|
+
older: z.ZodBoolean;
|
|
2848
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2849
|
+
at: z.ZodNumber;
|
|
2850
|
+
}, z.core.$strip>>;
|
|
2253
2851
|
}, z.core.$strip>>>;
|
|
2254
2852
|
queuePaused: z.ZodOptional<z.ZodBoolean>;
|
|
2255
2853
|
background: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2417,8 +3015,21 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
2417
3015
|
mime: z.ZodString;
|
|
2418
3016
|
size: z.ZodNumber;
|
|
2419
3017
|
path: z.ZodString;
|
|
3018
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
3019
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
2420
3020
|
}, z.core.$strip>>>;
|
|
2421
3021
|
createdAt: z.ZodNumber;
|
|
3022
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
3023
|
+
itemId: z.ZodString;
|
|
3024
|
+
blockId: z.ZodString;
|
|
3025
|
+
revision: z.ZodString;
|
|
3026
|
+
choiceId: z.ZodString;
|
|
3027
|
+
label: z.ZodString;
|
|
3028
|
+
sourceAt: z.ZodNumber;
|
|
3029
|
+
older: z.ZodBoolean;
|
|
3030
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3031
|
+
at: z.ZodNumber;
|
|
3032
|
+
}, z.core.$strip>>;
|
|
2422
3033
|
}, z.core.$strip>>>;
|
|
2423
3034
|
queuePaused: z.ZodOptional<z.ZodBoolean>;
|
|
2424
3035
|
background: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2569,12 +3180,88 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
2569
3180
|
mime: z.ZodString;
|
|
2570
3181
|
size: z.ZodNumber;
|
|
2571
3182
|
path: z.ZodString;
|
|
3183
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
3184
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
2572
3185
|
}, z.core.$strip>>>;
|
|
3186
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
3187
|
+
itemId: z.ZodString;
|
|
3188
|
+
blockId: z.ZodString;
|
|
3189
|
+
revision: z.ZodString;
|
|
3190
|
+
choiceId: z.ZodString;
|
|
3191
|
+
label: z.ZodString;
|
|
3192
|
+
sourceAt: z.ZodNumber;
|
|
3193
|
+
older: z.ZodBoolean;
|
|
3194
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3195
|
+
at: z.ZodNumber;
|
|
3196
|
+
}, z.core.$strip>>;
|
|
2573
3197
|
}, z.core.$strip>, z.ZodObject<{
|
|
2574
3198
|
id: z.ZodString;
|
|
2575
3199
|
createdAt: z.ZodNumber;
|
|
2576
3200
|
turnId: z.ZodNullable<z.ZodString>;
|
|
2577
3201
|
kind: z.ZodLiteral<"assistant">;
|
|
3202
|
+
ui: z.ZodOptional<z.ZodArray<z.ZodType<import("@adecore/intelligent-ui/compiler").UiBlock, unknown, z.core.$ZodTypeInternals<import("@adecore/intelligent-ui/compiler").UiBlock, unknown>>>>;
|
|
3203
|
+
uiAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3204
|
+
itemId: z.ZodString;
|
|
3205
|
+
blockId: z.ZodString;
|
|
3206
|
+
revision: z.ZodString;
|
|
3207
|
+
choiceId: z.ZodString;
|
|
3208
|
+
label: z.ZodString;
|
|
3209
|
+
sourceAt: z.ZodNumber;
|
|
3210
|
+
older: z.ZodBoolean;
|
|
3211
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3212
|
+
at: z.ZodNumber;
|
|
3213
|
+
queued: z.ZodBoolean;
|
|
3214
|
+
turnId: z.ZodString;
|
|
3215
|
+
}, z.core.$strip>>>;
|
|
3216
|
+
uiQueries: z.ZodOptional<z.ZodObject<{
|
|
3217
|
+
authorChatId: z.ZodString;
|
|
3218
|
+
blocks: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3219
|
+
revision: z.ZodString;
|
|
3220
|
+
readings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3221
|
+
state: z.ZodEnum<{
|
|
3222
|
+
failed: "failed";
|
|
3223
|
+
fresh: "fresh";
|
|
3224
|
+
refused: "refused";
|
|
3225
|
+
}>;
|
|
3226
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
3227
|
+
readId: z.ZodOptional<z.ZodString>;
|
|
3228
|
+
readAt: z.ZodNumber;
|
|
3229
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3230
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3231
|
+
}, z.core.$strip>>;
|
|
3232
|
+
fallback: z.ZodString;
|
|
3233
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3234
|
+
state: z.ZodEnum<{
|
|
3235
|
+
chip: "chip";
|
|
3236
|
+
plain: "plain";
|
|
3237
|
+
}>;
|
|
3238
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3239
|
+
type: z.ZodLiteral<"File">;
|
|
3240
|
+
path: z.ZodString;
|
|
3241
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
3242
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3243
|
+
type: z.ZodLiteral<"Diff">;
|
|
3244
|
+
path: z.ZodString;
|
|
3245
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3246
|
+
type: z.ZodLiteral<"Commit">;
|
|
3247
|
+
sha: z.ZodString;
|
|
3248
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3249
|
+
type: z.ZodLiteral<"Node">;
|
|
3250
|
+
id: z.ZodString;
|
|
3251
|
+
}, z.core.$strict>], "type">>;
|
|
3252
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
3253
|
+
viewId: z.ZodOptional<z.ZodString>;
|
|
3254
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
3255
|
+
staged: z.ZodOptional<z.ZodBoolean>;
|
|
3256
|
+
conflicted: z.ZodOptional<z.ZodBoolean>;
|
|
3257
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
3258
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3259
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3260
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3261
|
+
}, z.core.$strip>>>;
|
|
3262
|
+
}, z.core.$strip>>;
|
|
3263
|
+
}, z.core.$strip>>;
|
|
3264
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
2578
3265
|
text: z.ZodString;
|
|
2579
3266
|
streaming: z.ZodBoolean;
|
|
2580
3267
|
parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2802,6 +3489,53 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
2802
3489
|
start: z.ZodOptional<z.ZodNumber>;
|
|
2803
3490
|
cursor: z.ZodNullable<z.ZodString>;
|
|
2804
3491
|
}, z.core.$strip>;
|
|
3492
|
+
pending: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
3493
|
+
id: z.ZodString;
|
|
3494
|
+
createdAt: z.ZodNumber;
|
|
3495
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
3496
|
+
kind: z.ZodLiteral<"approval">;
|
|
3497
|
+
requestId: z.ZodString;
|
|
3498
|
+
toolUseId: z.ZodNullable<z.ZodString>;
|
|
3499
|
+
toolName: z.ZodString;
|
|
3500
|
+
input: z.ZodUnknown;
|
|
3501
|
+
description: z.ZodNullable<z.ZodString>;
|
|
3502
|
+
canAllowAlways: z.ZodBoolean;
|
|
3503
|
+
allowAlways: z.ZodOptional<z.ZodObject<{
|
|
3504
|
+
label: z.ZodString;
|
|
3505
|
+
description: z.ZodString;
|
|
3506
|
+
}, z.core.$strip>>;
|
|
3507
|
+
decision: z.ZodEnum<{
|
|
3508
|
+
allow: "allow";
|
|
3509
|
+
"allow-always": "allow-always";
|
|
3510
|
+
cancelled: "cancelled";
|
|
3511
|
+
deny: "deny";
|
|
3512
|
+
pending: "pending";
|
|
3513
|
+
}>;
|
|
3514
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3515
|
+
id: z.ZodString;
|
|
3516
|
+
createdAt: z.ZodNumber;
|
|
3517
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
3518
|
+
kind: z.ZodLiteral<"question">;
|
|
3519
|
+
requestId: z.ZodString;
|
|
3520
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
3521
|
+
id: z.ZodString;
|
|
3522
|
+
header: z.ZodString;
|
|
3523
|
+
question: z.ZodString;
|
|
3524
|
+
choices: z.ZodArray<z.ZodObject<{
|
|
3525
|
+
label: z.ZodString;
|
|
3526
|
+
description: z.ZodString;
|
|
3527
|
+
}, z.core.$strip>>;
|
|
3528
|
+
multiSelect: z.ZodBoolean;
|
|
3529
|
+
}, z.core.$strip>>;
|
|
3530
|
+
async: z.ZodOptional<z.ZodBoolean>;
|
|
3531
|
+
answers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3532
|
+
state: z.ZodEnum<{
|
|
3533
|
+
answered: "answered";
|
|
3534
|
+
cancelled: "cancelled";
|
|
3535
|
+
dismissed: "dismissed";
|
|
3536
|
+
pending: "pending";
|
|
3537
|
+
}>;
|
|
3538
|
+
}, z.core.$strip>]>>>;
|
|
2805
3539
|
source: z.ZodEnum<{
|
|
2806
3540
|
"claude-transcript": "claude-transcript";
|
|
2807
3541
|
"codex-thread": "codex-thread";
|
|
@@ -3505,8 +4239,21 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
3505
4239
|
mime: z.ZodString;
|
|
3506
4240
|
size: z.ZodNumber;
|
|
3507
4241
|
path: z.ZodString;
|
|
4242
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
4243
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
3508
4244
|
}, z.core.$strip>>>;
|
|
3509
4245
|
createdAt: z.ZodNumber;
|
|
4246
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
4247
|
+
itemId: z.ZodString;
|
|
4248
|
+
blockId: z.ZodString;
|
|
4249
|
+
revision: z.ZodString;
|
|
4250
|
+
choiceId: z.ZodString;
|
|
4251
|
+
label: z.ZodString;
|
|
4252
|
+
sourceAt: z.ZodNumber;
|
|
4253
|
+
older: z.ZodBoolean;
|
|
4254
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4255
|
+
at: z.ZodNumber;
|
|
4256
|
+
}, z.core.$strip>>;
|
|
3510
4257
|
}, z.core.$strip>>>;
|
|
3511
4258
|
queuePaused: z.ZodOptional<z.ZodBoolean>;
|
|
3512
4259
|
background: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3610,12 +4357,88 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
3610
4357
|
mime: z.ZodString;
|
|
3611
4358
|
size: z.ZodNumber;
|
|
3612
4359
|
path: z.ZodString;
|
|
4360
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
4361
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
3613
4362
|
}, z.core.$strip>>>;
|
|
4363
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
4364
|
+
itemId: z.ZodString;
|
|
4365
|
+
blockId: z.ZodString;
|
|
4366
|
+
revision: z.ZodString;
|
|
4367
|
+
choiceId: z.ZodString;
|
|
4368
|
+
label: z.ZodString;
|
|
4369
|
+
sourceAt: z.ZodNumber;
|
|
4370
|
+
older: z.ZodBoolean;
|
|
4371
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4372
|
+
at: z.ZodNumber;
|
|
4373
|
+
}, z.core.$strip>>;
|
|
3614
4374
|
}, z.core.$strip>, z.ZodObject<{
|
|
3615
4375
|
id: z.ZodString;
|
|
3616
4376
|
createdAt: z.ZodNumber;
|
|
3617
4377
|
turnId: z.ZodNullable<z.ZodString>;
|
|
3618
4378
|
kind: z.ZodLiteral<"assistant">;
|
|
4379
|
+
ui: z.ZodOptional<z.ZodArray<z.ZodType<import("@adecore/intelligent-ui/compiler").UiBlock, unknown, z.core.$ZodTypeInternals<import("@adecore/intelligent-ui/compiler").UiBlock, unknown>>>>;
|
|
4380
|
+
uiAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4381
|
+
itemId: z.ZodString;
|
|
4382
|
+
blockId: z.ZodString;
|
|
4383
|
+
revision: z.ZodString;
|
|
4384
|
+
choiceId: z.ZodString;
|
|
4385
|
+
label: z.ZodString;
|
|
4386
|
+
sourceAt: z.ZodNumber;
|
|
4387
|
+
older: z.ZodBoolean;
|
|
4388
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4389
|
+
at: z.ZodNumber;
|
|
4390
|
+
queued: z.ZodBoolean;
|
|
4391
|
+
turnId: z.ZodString;
|
|
4392
|
+
}, z.core.$strip>>>;
|
|
4393
|
+
uiQueries: z.ZodOptional<z.ZodObject<{
|
|
4394
|
+
authorChatId: z.ZodString;
|
|
4395
|
+
blocks: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4396
|
+
revision: z.ZodString;
|
|
4397
|
+
readings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4398
|
+
state: z.ZodEnum<{
|
|
4399
|
+
failed: "failed";
|
|
4400
|
+
fresh: "fresh";
|
|
4401
|
+
refused: "refused";
|
|
4402
|
+
}>;
|
|
4403
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
4404
|
+
readId: z.ZodOptional<z.ZodString>;
|
|
4405
|
+
readAt: z.ZodNumber;
|
|
4406
|
+
code: z.ZodOptional<z.ZodString>;
|
|
4407
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4408
|
+
}, z.core.$strip>>;
|
|
4409
|
+
fallback: z.ZodString;
|
|
4410
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4411
|
+
state: z.ZodEnum<{
|
|
4412
|
+
chip: "chip";
|
|
4413
|
+
plain: "plain";
|
|
4414
|
+
}>;
|
|
4415
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4416
|
+
type: z.ZodLiteral<"File">;
|
|
4417
|
+
path: z.ZodString;
|
|
4418
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
4419
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4420
|
+
type: z.ZodLiteral<"Diff">;
|
|
4421
|
+
path: z.ZodString;
|
|
4422
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4423
|
+
type: z.ZodLiteral<"Commit">;
|
|
4424
|
+
sha: z.ZodString;
|
|
4425
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4426
|
+
type: z.ZodLiteral<"Node">;
|
|
4427
|
+
id: z.ZodString;
|
|
4428
|
+
}, z.core.$strict>], "type">>;
|
|
4429
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
4430
|
+
viewId: z.ZodOptional<z.ZodString>;
|
|
4431
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
4432
|
+
staged: z.ZodOptional<z.ZodBoolean>;
|
|
4433
|
+
conflicted: z.ZodOptional<z.ZodBoolean>;
|
|
4434
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
4435
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4436
|
+
code: z.ZodOptional<z.ZodString>;
|
|
4437
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4438
|
+
}, z.core.$strip>>>;
|
|
4439
|
+
}, z.core.$strip>>;
|
|
4440
|
+
}, z.core.$strip>>;
|
|
4441
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
3619
4442
|
text: z.ZodString;
|
|
3620
4443
|
streaming: z.ZodBoolean;
|
|
3621
4444
|
parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3844,6 +4667,56 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
3844
4667
|
type: z.ZodLiteral<"delta">;
|
|
3845
4668
|
itemId: z.ZodString;
|
|
3846
4669
|
text: z.ZodString;
|
|
4670
|
+
ui: z.ZodOptional<z.ZodArray<z.ZodType<import("@adecore/intelligent-ui/compiler").UiBlock, unknown, z.core.$ZodTypeInternals<import("@adecore/intelligent-ui/compiler").UiBlock, unknown>>>>;
|
|
4671
|
+
uiQueries: z.ZodOptional<z.ZodObject<{
|
|
4672
|
+
authorChatId: z.ZodString;
|
|
4673
|
+
blocks: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4674
|
+
revision: z.ZodString;
|
|
4675
|
+
readings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4676
|
+
state: z.ZodEnum<{
|
|
4677
|
+
failed: "failed";
|
|
4678
|
+
fresh: "fresh";
|
|
4679
|
+
refused: "refused";
|
|
4680
|
+
}>;
|
|
4681
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
4682
|
+
readId: z.ZodOptional<z.ZodString>;
|
|
4683
|
+
readAt: z.ZodNumber;
|
|
4684
|
+
code: z.ZodOptional<z.ZodString>;
|
|
4685
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4686
|
+
}, z.core.$strip>>;
|
|
4687
|
+
fallback: z.ZodString;
|
|
4688
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4689
|
+
state: z.ZodEnum<{
|
|
4690
|
+
chip: "chip";
|
|
4691
|
+
plain: "plain";
|
|
4692
|
+
}>;
|
|
4693
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4694
|
+
type: z.ZodLiteral<"File">;
|
|
4695
|
+
path: z.ZodString;
|
|
4696
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
4697
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4698
|
+
type: z.ZodLiteral<"Diff">;
|
|
4699
|
+
path: z.ZodString;
|
|
4700
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4701
|
+
type: z.ZodLiteral<"Commit">;
|
|
4702
|
+
sha: z.ZodString;
|
|
4703
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4704
|
+
type: z.ZodLiteral<"Node">;
|
|
4705
|
+
id: z.ZodString;
|
|
4706
|
+
}, z.core.$strict>], "type">>;
|
|
4707
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
4708
|
+
viewId: z.ZodOptional<z.ZodString>;
|
|
4709
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
4710
|
+
staged: z.ZodOptional<z.ZodBoolean>;
|
|
4711
|
+
conflicted: z.ZodOptional<z.ZodBoolean>;
|
|
4712
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
4713
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4714
|
+
code: z.ZodOptional<z.ZodString>;
|
|
4715
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4716
|
+
}, z.core.$strip>>>;
|
|
4717
|
+
}, z.core.$strip>>;
|
|
4718
|
+
}, z.core.$strip>>;
|
|
4719
|
+
textLength: z.ZodOptional<z.ZodNumber>;
|
|
3847
4720
|
}, z.core.$strip>, z.ZodObject<{
|
|
3848
4721
|
type: z.ZodLiteral<"info">;
|
|
3849
4722
|
info: z.ZodObject<{
|
|
@@ -3900,8 +4773,21 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
3900
4773
|
mime: z.ZodString;
|
|
3901
4774
|
size: z.ZodNumber;
|
|
3902
4775
|
path: z.ZodString;
|
|
4776
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
4777
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
3903
4778
|
}, z.core.$strip>>>;
|
|
3904
4779
|
createdAt: z.ZodNumber;
|
|
4780
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
4781
|
+
itemId: z.ZodString;
|
|
4782
|
+
blockId: z.ZodString;
|
|
4783
|
+
revision: z.ZodString;
|
|
4784
|
+
choiceId: z.ZodString;
|
|
4785
|
+
label: z.ZodString;
|
|
4786
|
+
sourceAt: z.ZodNumber;
|
|
4787
|
+
older: z.ZodBoolean;
|
|
4788
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4789
|
+
at: z.ZodNumber;
|
|
4790
|
+
}, z.core.$strip>>;
|
|
3905
4791
|
}, z.core.$strip>>>;
|
|
3906
4792
|
queuePaused: z.ZodOptional<z.ZodBoolean>;
|
|
3907
4793
|
background: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -4038,8 +4924,21 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
4038
4924
|
mime: z.ZodString;
|
|
4039
4925
|
size: z.ZodNumber;
|
|
4040
4926
|
path: z.ZodString;
|
|
4927
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
4928
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
4041
4929
|
}, z.core.$strip>>>;
|
|
4042
4930
|
createdAt: z.ZodNumber;
|
|
4931
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
4932
|
+
itemId: z.ZodString;
|
|
4933
|
+
blockId: z.ZodString;
|
|
4934
|
+
revision: z.ZodString;
|
|
4935
|
+
choiceId: z.ZodString;
|
|
4936
|
+
label: z.ZodString;
|
|
4937
|
+
sourceAt: z.ZodNumber;
|
|
4938
|
+
older: z.ZodBoolean;
|
|
4939
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4940
|
+
at: z.ZodNumber;
|
|
4941
|
+
}, z.core.$strip>>;
|
|
4043
4942
|
}, z.core.$strip>>>;
|
|
4044
4943
|
queuePaused: z.ZodOptional<z.ZodBoolean>;
|
|
4045
4944
|
background: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -4135,12 +5034,88 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
4135
5034
|
mime: z.ZodString;
|
|
4136
5035
|
size: z.ZodNumber;
|
|
4137
5036
|
path: z.ZodString;
|
|
5037
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
5038
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
4138
5039
|
}, z.core.$strip>>>;
|
|
5040
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
5041
|
+
itemId: z.ZodString;
|
|
5042
|
+
blockId: z.ZodString;
|
|
5043
|
+
revision: z.ZodString;
|
|
5044
|
+
choiceId: z.ZodString;
|
|
5045
|
+
label: z.ZodString;
|
|
5046
|
+
sourceAt: z.ZodNumber;
|
|
5047
|
+
older: z.ZodBoolean;
|
|
5048
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5049
|
+
at: z.ZodNumber;
|
|
5050
|
+
}, z.core.$strip>>;
|
|
4139
5051
|
}, z.core.$strip>, z.ZodObject<{
|
|
4140
5052
|
id: z.ZodString;
|
|
4141
5053
|
createdAt: z.ZodNumber;
|
|
4142
5054
|
turnId: z.ZodNullable<z.ZodString>;
|
|
4143
5055
|
kind: z.ZodLiteral<"assistant">;
|
|
5056
|
+
ui: z.ZodOptional<z.ZodArray<z.ZodType<import("@adecore/intelligent-ui/compiler").UiBlock, unknown, z.core.$ZodTypeInternals<import("@adecore/intelligent-ui/compiler").UiBlock, unknown>>>>;
|
|
5057
|
+
uiAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5058
|
+
itemId: z.ZodString;
|
|
5059
|
+
blockId: z.ZodString;
|
|
5060
|
+
revision: z.ZodString;
|
|
5061
|
+
choiceId: z.ZodString;
|
|
5062
|
+
label: z.ZodString;
|
|
5063
|
+
sourceAt: z.ZodNumber;
|
|
5064
|
+
older: z.ZodBoolean;
|
|
5065
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5066
|
+
at: z.ZodNumber;
|
|
5067
|
+
queued: z.ZodBoolean;
|
|
5068
|
+
turnId: z.ZodString;
|
|
5069
|
+
}, z.core.$strip>>>;
|
|
5070
|
+
uiQueries: z.ZodOptional<z.ZodObject<{
|
|
5071
|
+
authorChatId: z.ZodString;
|
|
5072
|
+
blocks: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5073
|
+
revision: z.ZodString;
|
|
5074
|
+
readings: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5075
|
+
state: z.ZodEnum<{
|
|
5076
|
+
failed: "failed";
|
|
5077
|
+
fresh: "fresh";
|
|
5078
|
+
refused: "refused";
|
|
5079
|
+
}>;
|
|
5080
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
5081
|
+
readId: z.ZodOptional<z.ZodString>;
|
|
5082
|
+
readAt: z.ZodNumber;
|
|
5083
|
+
code: z.ZodOptional<z.ZodString>;
|
|
5084
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5085
|
+
}, z.core.$strip>>;
|
|
5086
|
+
fallback: z.ZodString;
|
|
5087
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5088
|
+
state: z.ZodEnum<{
|
|
5089
|
+
chip: "chip";
|
|
5090
|
+
plain: "plain";
|
|
5091
|
+
}>;
|
|
5092
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5093
|
+
type: z.ZodLiteral<"File">;
|
|
5094
|
+
path: z.ZodString;
|
|
5095
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
5096
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5097
|
+
type: z.ZodLiteral<"Diff">;
|
|
5098
|
+
path: z.ZodString;
|
|
5099
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5100
|
+
type: z.ZodLiteral<"Commit">;
|
|
5101
|
+
sha: z.ZodString;
|
|
5102
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5103
|
+
type: z.ZodLiteral<"Node">;
|
|
5104
|
+
id: z.ZodString;
|
|
5105
|
+
}, z.core.$strict>], "type">>;
|
|
5106
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
5107
|
+
viewId: z.ZodOptional<z.ZodString>;
|
|
5108
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
5109
|
+
staged: z.ZodOptional<z.ZodBoolean>;
|
|
5110
|
+
conflicted: z.ZodOptional<z.ZodBoolean>;
|
|
5111
|
+
relativePath: z.ZodOptional<z.ZodString>;
|
|
5112
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5113
|
+
code: z.ZodOptional<z.ZodString>;
|
|
5114
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5115
|
+
}, z.core.$strip>>>;
|
|
5116
|
+
}, z.core.$strip>>;
|
|
5117
|
+
}, z.core.$strip>>;
|
|
5118
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
4144
5119
|
text: z.ZodString;
|
|
4145
5120
|
streaming: z.ZodBoolean;
|
|
4146
5121
|
parentToolUseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4423,8 +5398,21 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
4423
5398
|
mime: z.ZodString;
|
|
4424
5399
|
size: z.ZodNumber;
|
|
4425
5400
|
path: z.ZodString;
|
|
5401
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
5402
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
4426
5403
|
}, z.core.$strip>>>;
|
|
4427
5404
|
createdAt: z.ZodNumber;
|
|
5405
|
+
uiChoice: z.ZodOptional<z.ZodObject<{
|
|
5406
|
+
itemId: z.ZodString;
|
|
5407
|
+
blockId: z.ZodString;
|
|
5408
|
+
revision: z.ZodString;
|
|
5409
|
+
choiceId: z.ZodString;
|
|
5410
|
+
label: z.ZodString;
|
|
5411
|
+
sourceAt: z.ZodNumber;
|
|
5412
|
+
older: z.ZodBoolean;
|
|
5413
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5414
|
+
at: z.ZodNumber;
|
|
5415
|
+
}, z.core.$strip>>;
|
|
4428
5416
|
}, z.core.$strip>>>;
|
|
4429
5417
|
queuePaused: z.ZodOptional<z.ZodBoolean>;
|
|
4430
5418
|
background: z.ZodOptional<z.ZodArray<z.ZodObject<{
|