@blueking/chat-helper 0.0.12-beta.8 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +21 -7
  2. package/dist/agent/type.d.ts +84 -0
  3. package/dist/agent/type.ts.js +5 -1
  4. package/dist/agent/use-agent.d.ts +573 -360
  5. package/dist/agent/use-agent.ts.js +365 -25
  6. package/dist/event/ag-ui.d.ts +4 -1
  7. package/dist/event/ag-ui.ts.js +107 -7
  8. package/dist/event/type.d.ts +15 -3
  9. package/dist/event/type.ts.js +2 -0
  10. package/dist/http/fetch/fetch.spec.d.ts +1 -0
  11. package/dist/http/fetch/fetch.ts.js +106 -22
  12. package/dist/http/index.d.ts +13 -7
  13. package/dist/http/module/agent.d.ts +2 -0
  14. package/dist/http/module/agent.ts.js +19 -2
  15. package/dist/http/module/index.d.ts +13 -7
  16. package/dist/http/module/message.d.ts +3 -3
  17. package/dist/http/module/message.ts.js +4 -3
  18. package/dist/http/module/session.d.ts +10 -5
  19. package/dist/http/module/session.ts.js +60 -3
  20. package/dist/http/transform/agent.d.ts +9 -1
  21. package/dist/http/transform/agent.spec.d.ts +1 -0
  22. package/dist/http/transform/agent.ts.js +32 -2
  23. package/dist/http/transform/message.ts.js +17 -5
  24. package/dist/index.d.ts +3844 -2720
  25. package/dist/message/type.d.ts +30 -3
  26. package/dist/message/type.ts.js +16 -0
  27. package/dist/message/use-message.d.ts +685 -385
  28. package/dist/session/index.d.ts +1 -0
  29. package/dist/session/index.ts.js +2 -1
  30. package/dist/session/pv-file-upload.d.ts +7 -0
  31. package/dist/session/pv-file-upload.spec.d.ts +1 -0
  32. package/dist/session/pv-file-upload.ts.js +64 -0
  33. package/dist/session/type.d.ts +57 -0
  34. package/dist/session/use-session.d.ts +2539 -1933
  35. package/dist/session/use-session.spec.d.ts +1 -0
  36. package/dist/session/use-session.ts.js +117 -10
  37. package/package.json +4 -2
@@ -1,5 +1,5 @@
1
1
  import type { IMediatorModule } from '../mediator';
2
- import type { ISession, ISessionFeedback } from './type';
2
+ import type { GetPvFileDownloadUrlOptions, ISession, ISessionFeedback, ISessionListParams, IUploadFileResult } from './type';
3
3
  /**
4
4
  * 使用会话模块,主要做业务的组合
5
5
  * @param mediator - 中介者模块,用于获取其他模块的引用
@@ -25,6 +25,17 @@ export declare const useSession: (mediator: IMediatorModule) => {
25
25
  content: ({
26
26
  activityType: import("..").ActivityType;
27
27
  content: {
28
+ artifacts: {
29
+ name: string;
30
+ outputId: string;
31
+ size: number;
32
+ type: string;
33
+ previewUrl?: string;
34
+ url?: string;
35
+ }[];
36
+ runId: string;
37
+ status: "complete" | "empty";
38
+ } | {
28
39
  nodes: Record<string, import("..").IFlowAgentNode>;
29
40
  task_id: string;
30
41
  task_name: string;
@@ -42,7 +53,33 @@ export declare const useSession: (mediator: IMediatorModule) => {
42
53
  originFileUrl?: string;
43
54
  url: string;
44
55
  }[];
56
+ property?: {
57
+ [x: string]: unknown;
58
+ artifacts?: {
59
+ name: string;
60
+ outputId: string;
61
+ size: number;
62
+ type: string;
63
+ previewUrl?: string;
64
+ url?: string;
65
+ }[];
66
+ extra?: {
67
+ [x: string]: unknown;
68
+ cite?: string | {
69
+ data: {
70
+ key: string;
71
+ value: string;
72
+ }[];
73
+ title: string;
74
+ type: string;
75
+ };
76
+ command?: string;
77
+ context?: Array<Record<string, unknown>>;
78
+ resources?: Array<Record<string, unknown>>;
79
+ };
80
+ };
45
81
  role: import("..").MessageRole.Activity;
82
+ createdAt?: string;
46
83
  id?: string;
47
84
  messageId?: string;
48
85
  name?: string;
@@ -52,6 +89,14 @@ export declare const useSession: (mediator: IMediatorModule) => {
52
89
  content?: string;
53
90
  property?: {
54
91
  [x: string]: unknown;
92
+ artifacts?: {
93
+ name: string;
94
+ outputId: string;
95
+ size: number;
96
+ type: string;
97
+ previewUrl?: string;
98
+ url?: string;
99
+ }[];
55
100
  extra?: {
56
101
  [x: string]: unknown;
57
102
  cite?: string | {
@@ -78,6 +123,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
78
123
  id: string;
79
124
  type: import("..").MessageType.Function;
80
125
  }[];
126
+ createdAt?: string;
81
127
  id?: string;
82
128
  messageId?: string;
83
129
  name?: string;
@@ -86,6 +132,209 @@ export declare const useSession: (mediator: IMediatorModule) => {
86
132
  } | {
87
133
  content: string;
88
134
  role: import("..").MessageRole.Developer;
135
+ createdAt?: string;
136
+ id?: string;
137
+ messageId?: string;
138
+ name?: string;
139
+ sessionCode?: string;
140
+ status: import("..").MessageStatus;
141
+ } | {
142
+ content: string;
143
+ role: import("..").MessageRole.Guide;
144
+ createdAt?: string;
145
+ id?: string;
146
+ messageId?: string;
147
+ name?: string;
148
+ sessionCode?: string;
149
+ status: import("..").MessageStatus;
150
+ } | {
151
+ content: string;
152
+ role: import("..").MessageRole.HiddenAssistant;
153
+ createdAt?: string;
154
+ id?: string;
155
+ messageId?: string;
156
+ name?: string;
157
+ sessionCode?: string;
158
+ status: import("..").MessageStatus;
159
+ } | {
160
+ content: string;
161
+ role: import("..").MessageRole.HiddenGuide;
162
+ createdAt?: string;
163
+ id?: string;
164
+ messageId?: string;
165
+ name?: string;
166
+ sessionCode?: string;
167
+ status: import("..").MessageStatus;
168
+ } | {
169
+ content: string;
170
+ role: import("..").MessageRole.Hidden;
171
+ createdAt?: string;
172
+ id?: string;
173
+ messageId?: string;
174
+ name?: string;
175
+ sessionCode?: string;
176
+ status: import("..").MessageStatus;
177
+ } | {
178
+ content: string;
179
+ role: import("..").MessageRole.HiddenSystem;
180
+ createdAt?: string;
181
+ id?: string;
182
+ messageId?: string;
183
+ name?: string;
184
+ sessionCode?: string;
185
+ status: import("..").MessageStatus;
186
+ } | {
187
+ content: string;
188
+ role: import("..").MessageRole.HiddenUser;
189
+ createdAt?: string;
190
+ id?: string;
191
+ messageId?: string;
192
+ name?: string;
193
+ sessionCode?: string;
194
+ status: import("..").MessageStatus;
195
+ } | {
196
+ content: string;
197
+ role: import("..").MessageRole.Info;
198
+ createdAt?: string;
199
+ id?: string;
200
+ messageId?: string;
201
+ name?: string;
202
+ sessionCode?: string;
203
+ status: import("..").MessageStatus;
204
+ } | {
205
+ content: string;
206
+ role: import("..").MessageRole.Pause;
207
+ createdAt?: string;
208
+ id?: string;
209
+ messageId?: string;
210
+ name?: string;
211
+ sessionCode?: string;
212
+ status: import("..").MessageStatus;
213
+ } | {
214
+ content: string;
215
+ role: import("..").MessageRole.Placeholder;
216
+ createdAt?: string;
217
+ id?: string;
218
+ messageId?: string;
219
+ name?: string;
220
+ sessionCode?: string;
221
+ status: import("..").MessageStatus;
222
+ } | {
223
+ content: string[];
224
+ duration?: number;
225
+ role: import("..").MessageRole.Reasoning;
226
+ createdAt?: string;
227
+ id?: string;
228
+ messageId?: string;
229
+ name?: string;
230
+ sessionCode?: string;
231
+ status: import("..").MessageStatus;
232
+ } | {
233
+ content: string;
234
+ role: import("..").MessageRole.System;
235
+ createdAt?: string;
236
+ id?: string;
237
+ messageId?: string;
238
+ name?: string;
239
+ sessionCode?: string;
240
+ status: import("..").MessageStatus;
241
+ } | {
242
+ content: string;
243
+ role: import("..").MessageRole.TemplateAssistant;
244
+ createdAt?: string;
245
+ id?: string;
246
+ messageId?: string;
247
+ name?: string;
248
+ sessionCode?: string;
249
+ status: import("..").MessageStatus;
250
+ } | {
251
+ content: string;
252
+ role: import("..").MessageRole.TemplateGuide;
253
+ createdAt?: string;
254
+ id?: string;
255
+ messageId?: string;
256
+ name?: string;
257
+ sessionCode?: string;
258
+ status: import("..").MessageStatus;
259
+ } | {
260
+ content: string;
261
+ role: import("..").MessageRole.TemplateHidden;
262
+ createdAt?: string;
263
+ id?: string;
264
+ messageId?: string;
265
+ name?: string;
266
+ sessionCode?: string;
267
+ status: import("..").MessageStatus;
268
+ } | {
269
+ content: string;
270
+ role: import("..").MessageRole.TemplateSystem;
271
+ createdAt?: string;
272
+ id?: string;
273
+ messageId?: string;
274
+ name?: string;
275
+ sessionCode?: string;
276
+ status: import("..").MessageStatus;
277
+ } | {
278
+ content: string;
279
+ role: import("..").MessageRole.TemplateUser;
280
+ createdAt?: string;
281
+ id?: string;
282
+ messageId?: string;
283
+ name?: string;
284
+ sessionCode?: string;
285
+ status: import("..").MessageStatus;
286
+ } | {
287
+ content: string;
288
+ duration?: number;
289
+ error?: string;
290
+ role: import("..").MessageRole.Tool;
291
+ toolCallId: string;
292
+ createdAt?: string;
293
+ id?: string;
294
+ messageId?: string;
295
+ name?: string;
296
+ sessionCode?: string;
297
+ status: import("..").MessageStatus;
298
+ } | {
299
+ content: string | ({
300
+ data?: string;
301
+ filename?: string;
302
+ id?: string;
303
+ mimeType: string;
304
+ size?: number;
305
+ type: import("..").MessageType.Binary;
306
+ url?: string;
307
+ } | {
308
+ text: string;
309
+ type: import("..").MessageType.Text;
310
+ })[];
311
+ property?: {
312
+ [x: string]: unknown;
313
+ artifacts?: {
314
+ name: string;
315
+ outputId: string;
316
+ size: number;
317
+ type: string;
318
+ previewUrl?: string;
319
+ url?: string;
320
+ }[];
321
+ extra?: {
322
+ [x: string]: unknown;
323
+ cite?: string | {
324
+ data: {
325
+ key: string;
326
+ value: string;
327
+ }[];
328
+ title: string;
329
+ type: string;
330
+ };
331
+ command?: string;
332
+ context?: Array<Record<string, unknown>>;
333
+ resources?: Array<Record<string, unknown>>;
334
+ };
335
+ };
336
+ role: import("..").MessageRole.User;
337
+ createdAt?: string;
89
338
  id?: string;
90
339
  messageId?: string;
91
340
  name?: string;
@@ -716,181 +965,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
716
965
  timestamp?: number;
717
966
  };
718
967
  role: import("..").MessageRole.Interrupt;
719
- id?: string;
720
- messageId?: string;
721
- name?: string;
722
- sessionCode?: string;
723
- status: import("..").MessageStatus;
724
- } | {
725
- content: string;
726
- role: import("..").MessageRole.Guide;
727
- id?: string;
728
- messageId?: string;
729
- name?: string;
730
- sessionCode?: string;
731
- status: import("..").MessageStatus;
732
- } | {
733
- content: string;
734
- role: import("..").MessageRole.HiddenAssistant;
735
- id?: string;
736
- messageId?: string;
737
- name?: string;
738
- sessionCode?: string;
739
- status: import("..").MessageStatus;
740
- } | {
741
- content: string;
742
- role: import("..").MessageRole.HiddenGuide;
743
- id?: string;
744
- messageId?: string;
745
- name?: string;
746
- sessionCode?: string;
747
- status: import("..").MessageStatus;
748
- } | {
749
- content: string;
750
- role: import("..").MessageRole.Hidden;
751
- id?: string;
752
- messageId?: string;
753
- name?: string;
754
- sessionCode?: string;
755
- status: import("..").MessageStatus;
756
- } | {
757
- content: string;
758
- role: import("..").MessageRole.HiddenSystem;
759
- id?: string;
760
- messageId?: string;
761
- name?: string;
762
- sessionCode?: string;
763
- status: import("..").MessageStatus;
764
- } | {
765
- content: string;
766
- role: import("..").MessageRole.HiddenUser;
767
- id?: string;
768
- messageId?: string;
769
- name?: string;
770
- sessionCode?: string;
771
- status: import("..").MessageStatus;
772
- } | {
773
- content: string;
774
- role: import("..").MessageRole.Info;
775
- id?: string;
776
- messageId?: string;
777
- name?: string;
778
- sessionCode?: string;
779
- status: import("..").MessageStatus;
780
- } | {
781
- content: string;
782
- role: import("..").MessageRole.Pause;
783
- id?: string;
784
- messageId?: string;
785
- name?: string;
786
- sessionCode?: string;
787
- status: import("..").MessageStatus;
788
- } | {
789
- content: string;
790
- role: import("..").MessageRole.Placeholder;
791
- id?: string;
792
- messageId?: string;
793
- name?: string;
794
- sessionCode?: string;
795
- status: import("..").MessageStatus;
796
- } | {
797
- content: string[];
798
- duration?: number;
799
- role: import("..").MessageRole.Reasoning;
800
- id?: string;
801
- messageId?: string;
802
- name?: string;
803
- sessionCode?: string;
804
- status: import("..").MessageStatus;
805
- } | {
806
- content: string;
807
- role: import("..").MessageRole.System;
808
- id?: string;
809
- messageId?: string;
810
- name?: string;
811
- sessionCode?: string;
812
- status: import("..").MessageStatus;
813
- } | {
814
- content: string;
815
- role: import("..").MessageRole.TemplateAssistant;
816
- id?: string;
817
- messageId?: string;
818
- name?: string;
819
- sessionCode?: string;
820
- status: import("..").MessageStatus;
821
- } | {
822
- content: string;
823
- role: import("..").MessageRole.TemplateGuide;
824
- id?: string;
825
- messageId?: string;
826
- name?: string;
827
- sessionCode?: string;
828
- status: import("..").MessageStatus;
829
- } | {
830
- content: string;
831
- role: import("..").MessageRole.TemplateHidden;
832
- id?: string;
833
- messageId?: string;
834
- name?: string;
835
- sessionCode?: string;
836
- status: import("..").MessageStatus;
837
- } | {
838
- content: string;
839
- role: import("..").MessageRole.TemplateSystem;
840
- id?: string;
841
- messageId?: string;
842
- name?: string;
843
- sessionCode?: string;
844
- status: import("..").MessageStatus;
845
- } | {
846
- content: string;
847
- role: import("..").MessageRole.TemplateUser;
848
- id?: string;
849
- messageId?: string;
850
- name?: string;
851
- sessionCode?: string;
852
- status: import("..").MessageStatus;
853
- } | {
854
- content: string;
855
- duration?: number;
856
- error?: string;
857
- role: import("..").MessageRole.Tool;
858
- toolCallId: string;
859
- id?: string;
860
- messageId?: string;
861
- name?: string;
862
- sessionCode?: string;
863
- status: import("..").MessageStatus;
864
- } | {
865
- content: string | ({
866
- data?: string;
867
- filename?: string;
868
- id?: string;
869
- mimeType: string;
870
- type: import("..").MessageType.Binary;
871
- url?: string;
872
- } | {
873
- text: string;
874
- type: import("..").MessageType.Text;
875
- })[];
876
- property?: {
877
- [x: string]: unknown;
878
- extra?: {
879
- [x: string]: unknown;
880
- cite?: string | {
881
- data: {
882
- key: string;
883
- value: string;
884
- }[];
885
- title: string;
886
- type: string;
887
- };
888
- command?: string;
889
- context?: Array<Record<string, unknown>>;
890
- resources?: Array<Record<string, unknown>>;
891
- };
892
- };
893
- role: import("..").MessageRole.User;
968
+ createdAt?: string;
894
969
  id?: string;
895
970
  messageId?: string;
896
971
  name?: string;
@@ -902,6 +977,17 @@ export declare const useSession: (mediator: IMediatorModule) => {
902
977
  value: string | ({
903
978
  activityType: import("..").ActivityType;
904
979
  content: {
980
+ artifacts: {
981
+ name: string;
982
+ outputId: string;
983
+ size: number;
984
+ type: string;
985
+ previewUrl?: string;
986
+ url?: string;
987
+ }[];
988
+ runId: string;
989
+ status: "complete" | "empty";
990
+ } | {
905
991
  nodes: Record<string, import("..").IFlowAgentNode>;
906
992
  task_id: string;
907
993
  task_name: string;
@@ -919,7 +1005,33 @@ export declare const useSession: (mediator: IMediatorModule) => {
919
1005
  originFileUrl?: string;
920
1006
  url: string;
921
1007
  }[];
1008
+ property?: {
1009
+ [x: string]: unknown;
1010
+ artifacts?: {
1011
+ name: string;
1012
+ outputId: string;
1013
+ size: number;
1014
+ type: string;
1015
+ previewUrl?: string;
1016
+ url?: string;
1017
+ }[];
1018
+ extra?: {
1019
+ [x: string]: unknown;
1020
+ cite?: string | {
1021
+ data: {
1022
+ key: string;
1023
+ value: string;
1024
+ }[];
1025
+ title: string;
1026
+ type: string;
1027
+ };
1028
+ command?: string;
1029
+ context?: Array<Record<string, unknown>>;
1030
+ resources?: Array<Record<string, unknown>>;
1031
+ };
1032
+ };
922
1033
  role: import("..").MessageRole.Activity;
1034
+ createdAt?: string;
923
1035
  id?: string;
924
1036
  messageId?: string;
925
1037
  name?: string;
@@ -929,6 +1041,14 @@ export declare const useSession: (mediator: IMediatorModule) => {
929
1041
  content?: string;
930
1042
  property?: {
931
1043
  [x: string]: unknown;
1044
+ artifacts?: {
1045
+ name: string;
1046
+ outputId: string;
1047
+ size: number;
1048
+ type: string;
1049
+ previewUrl?: string;
1050
+ url?: string;
1051
+ }[];
932
1052
  extra?: {
933
1053
  [x: string]: unknown;
934
1054
  cite?: string | {
@@ -955,6 +1075,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
955
1075
  id: string;
956
1076
  type: import("..").MessageType.Function;
957
1077
  }[];
1078
+ createdAt?: string;
958
1079
  id?: string;
959
1080
  messageId?: string;
960
1081
  name?: string;
@@ -963,117 +1084,320 @@ export declare const useSession: (mediator: IMediatorModule) => {
963
1084
  } | {
964
1085
  content: string;
965
1086
  role: import("..").MessageRole.Developer;
1087
+ createdAt?: string;
966
1088
  id?: string;
967
1089
  messageId?: string;
968
1090
  name?: string;
969
1091
  sessionCode?: string;
970
1092
  status: import("..").MessageStatus;
971
1093
  } | {
972
- content: {
973
- result?: {
974
- interruptId: string;
975
- status: import("..").ResumeStatus;
976
- payload?: {
977
- answers: {
978
- answer: {
979
- description: string;
980
- label: string;
981
- }[];
982
- multiSelect?: boolean;
983
- question: string;
984
- }[];
985
- };
986
- };
987
- runId: number;
988
- threadId: string;
989
- type: import("..").EventType.RunFinished;
990
- outcome?: {
991
- type: import("..").RunFinishedOutcomeType.Success;
992
- } | {
993
- type: import("..").RunFinishedOutcomeType.Interrupt;
994
- interrupts: ({
995
- id: string;
996
- reason: import("..").InterruptReason.AIDevToolApproval;
997
- message?: string;
998
- toolCallId?: string;
999
- responseSchema?: {
1000
- [x: string]: any;
1001
- id?: string | undefined;
1002
- $ref?: string | undefined;
1003
- $schema?: import("json-schema").JSONSchema4Version | undefined;
1004
- title?: string | undefined;
1005
- description?: string | undefined;
1006
- default?: string | number | boolean | import("json-schema").JSONSchema4Object | {
1007
- [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
1008
- length: number;
1009
- toString: () => string;
1010
- toLocaleString: {
1011
- (): string;
1012
- (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
1013
- };
1014
- pop: () => import("json-schema").JSONSchema4Type;
1015
- push: (...items: import("json-schema").JSONSchema4Type[]) => number;
1016
- concat: {
1017
- (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
1018
- (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
1019
- };
1020
- join: (separator?: string) => string;
1021
- reverse: () => import("json-schema").JSONSchema4Type[];
1022
- shift: () => import("json-schema").JSONSchema4Type;
1023
- slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
1024
- sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
1025
- splice: {
1026
- (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1027
- (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1028
- };
1029
- unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
1030
- indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1031
- lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1032
- every: {
1033
- <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): this is S[];
1034
- (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
1035
- };
1036
- some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
1037
- forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
1038
- map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
1039
- filter: {
1040
- <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S[];
1041
- (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
1042
- };
1043
- reduce: {
1044
- (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1045
- (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1046
- <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1047
- };
1048
- reduceRight: {
1049
- (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1050
- (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1051
- <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1052
- };
1053
- find: {
1054
- <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
1055
- (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1056
- };
1057
- findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1058
- fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
1059
- copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
1060
- entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
1061
- keys: () => ArrayIterator<number>;
1062
- values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1063
- includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
1064
- flatMap: <U, This = undefined>(callback: (this: This, value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U | readonly U[], thisArg?: This) => U[];
1065
- flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
1066
- at: (index: number) => import("json-schema").JSONSchema4Type;
1067
- findLast: {
1068
- <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
1069
- (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1070
- };
1071
- findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1072
- toReversed: () => import("json-schema").JSONSchema4Type[];
1073
- toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
1074
- toSpliced: {
1075
- (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1076
- (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1094
+ content: string;
1095
+ role: import("..").MessageRole.Guide;
1096
+ createdAt?: string;
1097
+ id?: string;
1098
+ messageId?: string;
1099
+ name?: string;
1100
+ sessionCode?: string;
1101
+ status: import("..").MessageStatus;
1102
+ } | {
1103
+ content: string;
1104
+ role: import("..").MessageRole.HiddenAssistant;
1105
+ createdAt?: string;
1106
+ id?: string;
1107
+ messageId?: string;
1108
+ name?: string;
1109
+ sessionCode?: string;
1110
+ status: import("..").MessageStatus;
1111
+ } | {
1112
+ content: string;
1113
+ role: import("..").MessageRole.HiddenGuide;
1114
+ createdAt?: string;
1115
+ id?: string;
1116
+ messageId?: string;
1117
+ name?: string;
1118
+ sessionCode?: string;
1119
+ status: import("..").MessageStatus;
1120
+ } | {
1121
+ content: string;
1122
+ role: import("..").MessageRole.Hidden;
1123
+ createdAt?: string;
1124
+ id?: string;
1125
+ messageId?: string;
1126
+ name?: string;
1127
+ sessionCode?: string;
1128
+ status: import("..").MessageStatus;
1129
+ } | {
1130
+ content: string;
1131
+ role: import("..").MessageRole.HiddenSystem;
1132
+ createdAt?: string;
1133
+ id?: string;
1134
+ messageId?: string;
1135
+ name?: string;
1136
+ sessionCode?: string;
1137
+ status: import("..").MessageStatus;
1138
+ } | {
1139
+ content: string;
1140
+ role: import("..").MessageRole.HiddenUser;
1141
+ createdAt?: string;
1142
+ id?: string;
1143
+ messageId?: string;
1144
+ name?: string;
1145
+ sessionCode?: string;
1146
+ status: import("..").MessageStatus;
1147
+ } | {
1148
+ content: string;
1149
+ role: import("..").MessageRole.Info;
1150
+ createdAt?: string;
1151
+ id?: string;
1152
+ messageId?: string;
1153
+ name?: string;
1154
+ sessionCode?: string;
1155
+ status: import("..").MessageStatus;
1156
+ } | {
1157
+ content: string;
1158
+ role: import("..").MessageRole.Pause;
1159
+ createdAt?: string;
1160
+ id?: string;
1161
+ messageId?: string;
1162
+ name?: string;
1163
+ sessionCode?: string;
1164
+ status: import("..").MessageStatus;
1165
+ } | {
1166
+ content: string;
1167
+ role: import("..").MessageRole.Placeholder;
1168
+ createdAt?: string;
1169
+ id?: string;
1170
+ messageId?: string;
1171
+ name?: string;
1172
+ sessionCode?: string;
1173
+ status: import("..").MessageStatus;
1174
+ } | {
1175
+ content: string[];
1176
+ duration?: number;
1177
+ role: import("..").MessageRole.Reasoning;
1178
+ createdAt?: string;
1179
+ id?: string;
1180
+ messageId?: string;
1181
+ name?: string;
1182
+ sessionCode?: string;
1183
+ status: import("..").MessageStatus;
1184
+ } | {
1185
+ content: string;
1186
+ role: import("..").MessageRole.System;
1187
+ createdAt?: string;
1188
+ id?: string;
1189
+ messageId?: string;
1190
+ name?: string;
1191
+ sessionCode?: string;
1192
+ status: import("..").MessageStatus;
1193
+ } | {
1194
+ content: string;
1195
+ role: import("..").MessageRole.TemplateAssistant;
1196
+ createdAt?: string;
1197
+ id?: string;
1198
+ messageId?: string;
1199
+ name?: string;
1200
+ sessionCode?: string;
1201
+ status: import("..").MessageStatus;
1202
+ } | {
1203
+ content: string;
1204
+ role: import("..").MessageRole.TemplateGuide;
1205
+ createdAt?: string;
1206
+ id?: string;
1207
+ messageId?: string;
1208
+ name?: string;
1209
+ sessionCode?: string;
1210
+ status: import("..").MessageStatus;
1211
+ } | {
1212
+ content: string;
1213
+ role: import("..").MessageRole.TemplateHidden;
1214
+ createdAt?: string;
1215
+ id?: string;
1216
+ messageId?: string;
1217
+ name?: string;
1218
+ sessionCode?: string;
1219
+ status: import("..").MessageStatus;
1220
+ } | {
1221
+ content: string;
1222
+ role: import("..").MessageRole.TemplateSystem;
1223
+ createdAt?: string;
1224
+ id?: string;
1225
+ messageId?: string;
1226
+ name?: string;
1227
+ sessionCode?: string;
1228
+ status: import("..").MessageStatus;
1229
+ } | {
1230
+ content: string;
1231
+ role: import("..").MessageRole.TemplateUser;
1232
+ createdAt?: string;
1233
+ id?: string;
1234
+ messageId?: string;
1235
+ name?: string;
1236
+ sessionCode?: string;
1237
+ status: import("..").MessageStatus;
1238
+ } | {
1239
+ content: string;
1240
+ duration?: number;
1241
+ error?: string;
1242
+ role: import("..").MessageRole.Tool;
1243
+ toolCallId: string;
1244
+ createdAt?: string;
1245
+ id?: string;
1246
+ messageId?: string;
1247
+ name?: string;
1248
+ sessionCode?: string;
1249
+ status: import("..").MessageStatus;
1250
+ } | {
1251
+ content: string | ({
1252
+ data?: string;
1253
+ filename?: string;
1254
+ id?: string;
1255
+ mimeType: string;
1256
+ size?: number;
1257
+ type: import("..").MessageType.Binary;
1258
+ url?: string;
1259
+ } | {
1260
+ text: string;
1261
+ type: import("..").MessageType.Text;
1262
+ })[];
1263
+ property?: {
1264
+ [x: string]: unknown;
1265
+ artifacts?: {
1266
+ name: string;
1267
+ outputId: string;
1268
+ size: number;
1269
+ type: string;
1270
+ previewUrl?: string;
1271
+ url?: string;
1272
+ }[];
1273
+ extra?: {
1274
+ [x: string]: unknown;
1275
+ cite?: string | {
1276
+ data: {
1277
+ key: string;
1278
+ value: string;
1279
+ }[];
1280
+ title: string;
1281
+ type: string;
1282
+ };
1283
+ command?: string;
1284
+ context?: Array<Record<string, unknown>>;
1285
+ resources?: Array<Record<string, unknown>>;
1286
+ };
1287
+ };
1288
+ role: import("..").MessageRole.User;
1289
+ createdAt?: string;
1290
+ id?: string;
1291
+ messageId?: string;
1292
+ name?: string;
1293
+ sessionCode?: string;
1294
+ status: import("..").MessageStatus;
1295
+ } | {
1296
+ content: {
1297
+ result?: {
1298
+ interruptId: string;
1299
+ status: import("..").ResumeStatus;
1300
+ payload?: {
1301
+ answers: {
1302
+ answer: {
1303
+ description: string;
1304
+ label: string;
1305
+ }[];
1306
+ multiSelect?: boolean;
1307
+ question: string;
1308
+ }[];
1309
+ };
1310
+ };
1311
+ runId: number;
1312
+ threadId: string;
1313
+ type: import("..").EventType.RunFinished;
1314
+ outcome?: {
1315
+ type: import("..").RunFinishedOutcomeType.Success;
1316
+ } | {
1317
+ type: import("..").RunFinishedOutcomeType.Interrupt;
1318
+ interrupts: ({
1319
+ id: string;
1320
+ reason: import("..").InterruptReason.AIDevToolApproval;
1321
+ message?: string;
1322
+ toolCallId?: string;
1323
+ responseSchema?: {
1324
+ [x: string]: any;
1325
+ id?: string | undefined;
1326
+ $ref?: string | undefined;
1327
+ $schema?: import("json-schema").JSONSchema4Version | undefined;
1328
+ title?: string | undefined;
1329
+ description?: string | undefined;
1330
+ default?: string | number | boolean | import("json-schema").JSONSchema4Object | {
1331
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
1332
+ length: number;
1333
+ toString: () => string;
1334
+ toLocaleString: {
1335
+ (): string;
1336
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
1337
+ };
1338
+ pop: () => import("json-schema").JSONSchema4Type;
1339
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
1340
+ concat: {
1341
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
1342
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
1343
+ };
1344
+ join: (separator?: string) => string;
1345
+ reverse: () => import("json-schema").JSONSchema4Type[];
1346
+ shift: () => import("json-schema").JSONSchema4Type;
1347
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
1348
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
1349
+ splice: {
1350
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1351
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1352
+ };
1353
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
1354
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1355
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1356
+ every: {
1357
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): this is S[];
1358
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
1359
+ };
1360
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
1361
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
1362
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
1363
+ filter: {
1364
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S[];
1365
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
1366
+ };
1367
+ reduce: {
1368
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1369
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1370
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1371
+ };
1372
+ reduceRight: {
1373
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1374
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
1375
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1376
+ };
1377
+ find: {
1378
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
1379
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1380
+ };
1381
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1382
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
1383
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
1384
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
1385
+ keys: () => ArrayIterator<number>;
1386
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1387
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
1388
+ flatMap: <U, This = undefined>(callback: (this: This, value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U | readonly U[], thisArg?: This) => U[];
1389
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
1390
+ at: (index: number) => import("json-schema").JSONSchema4Type;
1391
+ findLast: {
1392
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
1393
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1394
+ };
1395
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1396
+ toReversed: () => import("json-schema").JSONSchema4Type[];
1397
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
1398
+ toSpliced: {
1399
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1400
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1077
1401
  };
1078
1402
  with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
1079
1403
  [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
@@ -1537,237 +1861,63 @@ export declare const useSession: (mediator: IMediatorModule) => {
1537
1861
  slice?: boolean;
1538
1862
  sort?: boolean;
1539
1863
  splice?: boolean;
1540
- unshift?: boolean;
1541
- indexOf?: boolean;
1542
- lastIndexOf?: boolean;
1543
- every?: boolean;
1544
- some?: boolean;
1545
- forEach?: boolean;
1546
- map?: boolean;
1547
- filter?: boolean;
1548
- reduce?: boolean;
1549
- reduceRight?: boolean;
1550
- find?: boolean;
1551
- findIndex?: boolean;
1552
- fill?: boolean;
1553
- copyWithin?: boolean;
1554
- entries?: boolean;
1555
- keys?: boolean;
1556
- values?: boolean;
1557
- includes?: boolean;
1558
- flatMap?: boolean;
1559
- flat?: boolean;
1560
- at?: boolean;
1561
- findLast?: boolean;
1562
- findLastIndex?: boolean;
1563
- toReversed?: boolean;
1564
- toSorted?: boolean;
1565
- toSpliced?: boolean;
1566
- with?: boolean;
1567
- [Symbol.iterator]?: boolean;
1568
- readonly [Symbol.unscopables]?: boolean;
1569
- };
1570
- })[];
1571
- type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
1572
- allOf?: /*elided*/ any[];
1573
- anyOf?: /*elided*/ any[];
1574
- oneOf?: /*elided*/ any[];
1575
- not?: /*elided*/ any;
1576
- extends?: string | string[] | undefined;
1577
- format?: string | undefined;
1578
- };
1579
- expiresAt?: string;
1580
- metadata?: {
1581
- questions: {
1582
- header: string;
1583
- multiSelect?: boolean;
1584
- options?: {
1585
- description: string;
1586
- label: string;
1587
- }[];
1588
- question: string;
1589
- }[];
1590
- };
1591
- })[];
1592
- };
1593
- timestamp?: number;
1594
- };
1595
- role: import("..").MessageRole.Interrupt;
1596
- id?: string;
1597
- messageId?: string;
1598
- name?: string;
1599
- sessionCode?: string;
1600
- status: import("..").MessageStatus;
1601
- } | {
1602
- content: string;
1603
- role: import("..").MessageRole.Guide;
1604
- id?: string;
1605
- messageId?: string;
1606
- name?: string;
1607
- sessionCode?: string;
1608
- status: import("..").MessageStatus;
1609
- } | {
1610
- content: string;
1611
- role: import("..").MessageRole.HiddenAssistant;
1612
- id?: string;
1613
- messageId?: string;
1614
- name?: string;
1615
- sessionCode?: string;
1616
- status: import("..").MessageStatus;
1617
- } | {
1618
- content: string;
1619
- role: import("..").MessageRole.HiddenGuide;
1620
- id?: string;
1621
- messageId?: string;
1622
- name?: string;
1623
- sessionCode?: string;
1624
- status: import("..").MessageStatus;
1625
- } | {
1626
- content: string;
1627
- role: import("..").MessageRole.Hidden;
1628
- id?: string;
1629
- messageId?: string;
1630
- name?: string;
1631
- sessionCode?: string;
1632
- status: import("..").MessageStatus;
1633
- } | {
1634
- content: string;
1635
- role: import("..").MessageRole.HiddenSystem;
1636
- id?: string;
1637
- messageId?: string;
1638
- name?: string;
1639
- sessionCode?: string;
1640
- status: import("..").MessageStatus;
1641
- } | {
1642
- content: string;
1643
- role: import("..").MessageRole.HiddenUser;
1644
- id?: string;
1645
- messageId?: string;
1646
- name?: string;
1647
- sessionCode?: string;
1648
- status: import("..").MessageStatus;
1649
- } | {
1650
- content: string;
1651
- role: import("..").MessageRole.Info;
1652
- id?: string;
1653
- messageId?: string;
1654
- name?: string;
1655
- sessionCode?: string;
1656
- status: import("..").MessageStatus;
1657
- } | {
1658
- content: string;
1659
- role: import("..").MessageRole.Pause;
1660
- id?: string;
1661
- messageId?: string;
1662
- name?: string;
1663
- sessionCode?: string;
1664
- status: import("..").MessageStatus;
1665
- } | {
1666
- content: string;
1667
- role: import("..").MessageRole.Placeholder;
1668
- id?: string;
1669
- messageId?: string;
1670
- name?: string;
1671
- sessionCode?: string;
1672
- status: import("..").MessageStatus;
1673
- } | {
1674
- content: string[];
1675
- duration?: number;
1676
- role: import("..").MessageRole.Reasoning;
1677
- id?: string;
1678
- messageId?: string;
1679
- name?: string;
1680
- sessionCode?: string;
1681
- status: import("..").MessageStatus;
1682
- } | {
1683
- content: string;
1684
- role: import("..").MessageRole.System;
1685
- id?: string;
1686
- messageId?: string;
1687
- name?: string;
1688
- sessionCode?: string;
1689
- status: import("..").MessageStatus;
1690
- } | {
1691
- content: string;
1692
- role: import("..").MessageRole.TemplateAssistant;
1693
- id?: string;
1694
- messageId?: string;
1695
- name?: string;
1696
- sessionCode?: string;
1697
- status: import("..").MessageStatus;
1698
- } | {
1699
- content: string;
1700
- role: import("..").MessageRole.TemplateGuide;
1701
- id?: string;
1702
- messageId?: string;
1703
- name?: string;
1704
- sessionCode?: string;
1705
- status: import("..").MessageStatus;
1706
- } | {
1707
- content: string;
1708
- role: import("..").MessageRole.TemplateHidden;
1709
- id?: string;
1710
- messageId?: string;
1711
- name?: string;
1712
- sessionCode?: string;
1713
- status: import("..").MessageStatus;
1714
- } | {
1715
- content: string;
1716
- role: import("..").MessageRole.TemplateSystem;
1717
- id?: string;
1718
- messageId?: string;
1719
- name?: string;
1720
- sessionCode?: string;
1721
- status: import("..").MessageStatus;
1722
- } | {
1723
- content: string;
1724
- role: import("..").MessageRole.TemplateUser;
1725
- id?: string;
1726
- messageId?: string;
1727
- name?: string;
1728
- sessionCode?: string;
1729
- status: import("..").MessageStatus;
1730
- } | {
1731
- content: string;
1732
- duration?: number;
1733
- error?: string;
1734
- role: import("..").MessageRole.Tool;
1735
- toolCallId: string;
1736
- id?: string;
1737
- messageId?: string;
1738
- name?: string;
1739
- sessionCode?: string;
1740
- status: import("..").MessageStatus;
1741
- } | {
1742
- content: string | ({
1743
- data?: string;
1744
- filename?: string;
1745
- id?: string;
1746
- mimeType: string;
1747
- type: import("..").MessageType.Binary;
1748
- url?: string;
1749
- } | {
1750
- text: string;
1751
- type: import("..").MessageType.Text;
1752
- })[];
1753
- property?: {
1754
- [x: string]: unknown;
1755
- extra?: {
1756
- [x: string]: unknown;
1757
- cite?: string | {
1758
- data: {
1759
- key: string;
1760
- value: string;
1761
- }[];
1762
- title: string;
1763
- type: string;
1764
- };
1765
- command?: string;
1766
- context?: Array<Record<string, unknown>>;
1767
- resources?: Array<Record<string, unknown>>;
1864
+ unshift?: boolean;
1865
+ indexOf?: boolean;
1866
+ lastIndexOf?: boolean;
1867
+ every?: boolean;
1868
+ some?: boolean;
1869
+ forEach?: boolean;
1870
+ map?: boolean;
1871
+ filter?: boolean;
1872
+ reduce?: boolean;
1873
+ reduceRight?: boolean;
1874
+ find?: boolean;
1875
+ findIndex?: boolean;
1876
+ fill?: boolean;
1877
+ copyWithin?: boolean;
1878
+ entries?: boolean;
1879
+ keys?: boolean;
1880
+ values?: boolean;
1881
+ includes?: boolean;
1882
+ flatMap?: boolean;
1883
+ flat?: boolean;
1884
+ at?: boolean;
1885
+ findLast?: boolean;
1886
+ findLastIndex?: boolean;
1887
+ toReversed?: boolean;
1888
+ toSorted?: boolean;
1889
+ toSpliced?: boolean;
1890
+ with?: boolean;
1891
+ [Symbol.iterator]?: boolean;
1892
+ readonly [Symbol.unscopables]?: boolean;
1893
+ };
1894
+ })[];
1895
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
1896
+ allOf?: /*elided*/ any[];
1897
+ anyOf?: /*elided*/ any[];
1898
+ oneOf?: /*elided*/ any[];
1899
+ not?: /*elided*/ any;
1900
+ extends?: string | string[] | undefined;
1901
+ format?: string | undefined;
1902
+ };
1903
+ expiresAt?: string;
1904
+ metadata?: {
1905
+ questions: {
1906
+ header: string;
1907
+ multiSelect?: boolean;
1908
+ options?: {
1909
+ description: string;
1910
+ label: string;
1911
+ }[];
1912
+ question: string;
1913
+ }[];
1914
+ };
1915
+ })[];
1768
1916
  };
1917
+ timestamp?: number;
1769
1918
  };
1770
- role: import("..").MessageRole.User;
1919
+ role: import("..").MessageRole.Interrupt;
1920
+ createdAt?: string;
1771
1921
  id?: string;
1772
1922
  messageId?: string;
1773
1923
  name?: string;
@@ -1800,6 +1950,17 @@ export declare const useSession: (mediator: IMediatorModule) => {
1800
1950
  content: ({
1801
1951
  activityType: import("..").ActivityType;
1802
1952
  content: {
1953
+ artifacts: {
1954
+ name: string;
1955
+ outputId: string;
1956
+ size: number;
1957
+ type: string;
1958
+ previewUrl?: string;
1959
+ url?: string;
1960
+ }[];
1961
+ runId: string;
1962
+ status: "complete" | "empty";
1963
+ } | {
1803
1964
  nodes: Record<string, import("..").IFlowAgentNode>;
1804
1965
  task_id: string;
1805
1966
  task_name: string;
@@ -1817,16 +1978,271 @@ export declare const useSession: (mediator: IMediatorModule) => {
1817
1978
  originFileUrl?: string;
1818
1979
  url: string;
1819
1980
  }[];
1981
+ property?: {
1982
+ [x: string]: unknown;
1983
+ artifacts?: {
1984
+ name: string;
1985
+ outputId: string;
1986
+ size: number;
1987
+ type: string;
1988
+ previewUrl?: string;
1989
+ url?: string;
1990
+ }[];
1991
+ extra?: {
1992
+ [x: string]: unknown;
1993
+ cite?: string | {
1994
+ data: {
1995
+ key: string;
1996
+ value: string;
1997
+ }[];
1998
+ title: string;
1999
+ type: string;
2000
+ };
2001
+ command?: string;
2002
+ context?: Array<Record<string, unknown>>;
2003
+ resources?: Array<Record<string, unknown>>;
2004
+ };
2005
+ };
1820
2006
  role: import("..").MessageRole.Activity;
2007
+ createdAt?: string;
2008
+ id?: string;
2009
+ messageId?: string;
2010
+ name?: string;
2011
+ sessionCode?: string;
2012
+ status: import("..").MessageStatus;
2013
+ } | {
2014
+ content?: string;
2015
+ property?: {
2016
+ [x: string]: unknown;
2017
+ artifacts?: {
2018
+ name: string;
2019
+ outputId: string;
2020
+ size: number;
2021
+ type: string;
2022
+ previewUrl?: string;
2023
+ url?: string;
2024
+ }[];
2025
+ extra?: {
2026
+ [x: string]: unknown;
2027
+ cite?: string | {
2028
+ data: {
2029
+ key: string;
2030
+ value: string;
2031
+ }[];
2032
+ title: string;
2033
+ type: string;
2034
+ };
2035
+ command?: string;
2036
+ context?: Array<Record<string, unknown>>;
2037
+ resources?: Array<Record<string, unknown>>;
2038
+ };
2039
+ };
2040
+ role: import("..").MessageRole.Assistant;
2041
+ toolCalls?: {
2042
+ function: {
2043
+ arguments: string;
2044
+ description?: string;
2045
+ mcpName?: string;
2046
+ name: string;
2047
+ };
2048
+ id: string;
2049
+ type: import("..").MessageType.Function;
2050
+ }[];
2051
+ createdAt?: string;
2052
+ id?: string;
2053
+ messageId?: string;
2054
+ name?: string;
2055
+ sessionCode?: string;
2056
+ status: import("..").MessageStatus;
2057
+ } | {
2058
+ content: string;
2059
+ role: import("..").MessageRole.Developer;
2060
+ createdAt?: string;
2061
+ id?: string;
2062
+ messageId?: string;
2063
+ name?: string;
2064
+ sessionCode?: string;
2065
+ status: import("..").MessageStatus;
2066
+ } | {
2067
+ content: string;
2068
+ role: import("..").MessageRole.Guide;
2069
+ createdAt?: string;
2070
+ id?: string;
2071
+ messageId?: string;
2072
+ name?: string;
2073
+ sessionCode?: string;
2074
+ status: import("..").MessageStatus;
2075
+ } | {
2076
+ content: string;
2077
+ role: import("..").MessageRole.HiddenAssistant;
2078
+ createdAt?: string;
2079
+ id?: string;
2080
+ messageId?: string;
2081
+ name?: string;
2082
+ sessionCode?: string;
2083
+ status: import("..").MessageStatus;
2084
+ } | {
2085
+ content: string;
2086
+ role: import("..").MessageRole.HiddenGuide;
2087
+ createdAt?: string;
2088
+ id?: string;
2089
+ messageId?: string;
2090
+ name?: string;
2091
+ sessionCode?: string;
2092
+ status: import("..").MessageStatus;
2093
+ } | {
2094
+ content: string;
2095
+ role: import("..").MessageRole.Hidden;
2096
+ createdAt?: string;
2097
+ id?: string;
2098
+ messageId?: string;
2099
+ name?: string;
2100
+ sessionCode?: string;
2101
+ status: import("..").MessageStatus;
2102
+ } | {
2103
+ content: string;
2104
+ role: import("..").MessageRole.HiddenSystem;
2105
+ createdAt?: string;
2106
+ id?: string;
2107
+ messageId?: string;
2108
+ name?: string;
2109
+ sessionCode?: string;
2110
+ status: import("..").MessageStatus;
2111
+ } | {
2112
+ content: string;
2113
+ role: import("..").MessageRole.HiddenUser;
2114
+ createdAt?: string;
2115
+ id?: string;
2116
+ messageId?: string;
2117
+ name?: string;
2118
+ sessionCode?: string;
2119
+ status: import("..").MessageStatus;
2120
+ } | {
2121
+ content: string;
2122
+ role: import("..").MessageRole.Info;
2123
+ createdAt?: string;
2124
+ id?: string;
2125
+ messageId?: string;
2126
+ name?: string;
2127
+ sessionCode?: string;
2128
+ status: import("..").MessageStatus;
2129
+ } | {
2130
+ content: string;
2131
+ role: import("..").MessageRole.Pause;
2132
+ createdAt?: string;
2133
+ id?: string;
2134
+ messageId?: string;
2135
+ name?: string;
2136
+ sessionCode?: string;
2137
+ status: import("..").MessageStatus;
2138
+ } | {
2139
+ content: string;
2140
+ role: import("..").MessageRole.Placeholder;
2141
+ createdAt?: string;
2142
+ id?: string;
2143
+ messageId?: string;
2144
+ name?: string;
2145
+ sessionCode?: string;
2146
+ status: import("..").MessageStatus;
2147
+ } | {
2148
+ content: string[];
2149
+ duration?: number;
2150
+ role: import("..").MessageRole.Reasoning;
2151
+ createdAt?: string;
2152
+ id?: string;
2153
+ messageId?: string;
2154
+ name?: string;
2155
+ sessionCode?: string;
2156
+ status: import("..").MessageStatus;
2157
+ } | {
2158
+ content: string;
2159
+ role: import("..").MessageRole.System;
2160
+ createdAt?: string;
2161
+ id?: string;
2162
+ messageId?: string;
2163
+ name?: string;
2164
+ sessionCode?: string;
2165
+ status: import("..").MessageStatus;
2166
+ } | {
2167
+ content: string;
2168
+ role: import("..").MessageRole.TemplateAssistant;
2169
+ createdAt?: string;
2170
+ id?: string;
2171
+ messageId?: string;
2172
+ name?: string;
2173
+ sessionCode?: string;
2174
+ status: import("..").MessageStatus;
2175
+ } | {
2176
+ content: string;
2177
+ role: import("..").MessageRole.TemplateGuide;
2178
+ createdAt?: string;
2179
+ id?: string;
2180
+ messageId?: string;
2181
+ name?: string;
2182
+ sessionCode?: string;
2183
+ status: import("..").MessageStatus;
2184
+ } | {
2185
+ content: string;
2186
+ role: import("..").MessageRole.TemplateHidden;
2187
+ createdAt?: string;
2188
+ id?: string;
2189
+ messageId?: string;
2190
+ name?: string;
2191
+ sessionCode?: string;
2192
+ status: import("..").MessageStatus;
2193
+ } | {
2194
+ content: string;
2195
+ role: import("..").MessageRole.TemplateSystem;
2196
+ createdAt?: string;
2197
+ id?: string;
2198
+ messageId?: string;
2199
+ name?: string;
2200
+ sessionCode?: string;
2201
+ status: import("..").MessageStatus;
2202
+ } | {
2203
+ content: string;
2204
+ role: import("..").MessageRole.TemplateUser;
2205
+ createdAt?: string;
2206
+ id?: string;
2207
+ messageId?: string;
2208
+ name?: string;
2209
+ sessionCode?: string;
2210
+ status: import("..").MessageStatus;
2211
+ } | {
2212
+ content: string;
2213
+ duration?: number;
2214
+ error?: string;
2215
+ role: import("..").MessageRole.Tool;
2216
+ toolCallId: string;
2217
+ createdAt?: string;
1821
2218
  id?: string;
1822
2219
  messageId?: string;
1823
2220
  name?: string;
1824
2221
  sessionCode?: string;
1825
2222
  status: import("..").MessageStatus;
1826
2223
  } | {
1827
- content?: string;
2224
+ content: string | ({
2225
+ data?: string;
2226
+ filename?: string;
2227
+ id?: string;
2228
+ mimeType: string;
2229
+ size?: number;
2230
+ type: import("..").MessageType.Binary;
2231
+ url?: string;
2232
+ } | {
2233
+ text: string;
2234
+ type: import("..").MessageType.Text;
2235
+ })[];
1828
2236
  property?: {
1829
2237
  [x: string]: unknown;
2238
+ artifacts?: {
2239
+ name: string;
2240
+ outputId: string;
2241
+ size: number;
2242
+ type: string;
2243
+ previewUrl?: string;
2244
+ url?: string;
2245
+ }[];
1830
2246
  extra?: {
1831
2247
  [x: string]: unknown;
1832
2248
  cite?: string | {
@@ -1842,25 +2258,8 @@ export declare const useSession: (mediator: IMediatorModule) => {
1842
2258
  resources?: Array<Record<string, unknown>>;
1843
2259
  };
1844
2260
  };
1845
- role: import("..").MessageRole.Assistant;
1846
- toolCalls?: {
1847
- function: {
1848
- arguments: string;
1849
- description?: string;
1850
- mcpName?: string;
1851
- name: string;
1852
- };
1853
- id: string;
1854
- type: import("..").MessageType.Function;
1855
- }[];
1856
- id?: string;
1857
- messageId?: string;
1858
- name?: string;
1859
- sessionCode?: string;
1860
- status: import("..").MessageStatus;
1861
- } | {
1862
- content: string;
1863
- role: import("..").MessageRole.Developer;
2261
+ role: import("..").MessageRole.User;
2262
+ createdAt?: string;
1864
2263
  id?: string;
1865
2264
  messageId?: string;
1866
2265
  name?: string;
@@ -2451,221 +2850,47 @@ export declare const useSession: (mediator: IMediatorModule) => {
2451
2850
  copyWithin?: boolean;
2452
2851
  entries?: boolean;
2453
2852
  keys?: boolean;
2454
- values?: boolean;
2455
- includes?: boolean;
2456
- flatMap?: boolean;
2457
- flat?: boolean;
2458
- at?: boolean;
2459
- findLast?: boolean;
2460
- findLastIndex?: boolean;
2461
- toReversed?: boolean;
2462
- toSorted?: boolean;
2463
- toSpliced?: boolean;
2464
- with?: boolean;
2465
- [Symbol.iterator]?: boolean;
2466
- readonly [Symbol.unscopables]?: boolean;
2467
- };
2468
- })[];
2469
- type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
2470
- allOf?: /*elided*/ any[];
2471
- anyOf?: /*elided*/ any[];
2472
- oneOf?: /*elided*/ any[];
2473
- not?: /*elided*/ any;
2474
- extends?: string | string[] | undefined;
2475
- format?: string | undefined;
2476
- };
2477
- expiresAt?: string;
2478
- metadata?: {
2479
- questions: {
2480
- header: string;
2481
- multiSelect?: boolean;
2482
- options?: {
2483
- description: string;
2484
- label: string;
2485
- }[];
2486
- question: string;
2487
- }[];
2488
- };
2489
- })[];
2490
- };
2491
- timestamp?: number;
2492
- };
2493
- role: import("..").MessageRole.Interrupt;
2494
- id?: string;
2495
- messageId?: string;
2496
- name?: string;
2497
- sessionCode?: string;
2498
- status: import("..").MessageStatus;
2499
- } | {
2500
- content: string;
2501
- role: import("..").MessageRole.Guide;
2502
- id?: string;
2503
- messageId?: string;
2504
- name?: string;
2505
- sessionCode?: string;
2506
- status: import("..").MessageStatus;
2507
- } | {
2508
- content: string;
2509
- role: import("..").MessageRole.HiddenAssistant;
2510
- id?: string;
2511
- messageId?: string;
2512
- name?: string;
2513
- sessionCode?: string;
2514
- status: import("..").MessageStatus;
2515
- } | {
2516
- content: string;
2517
- role: import("..").MessageRole.HiddenGuide;
2518
- id?: string;
2519
- messageId?: string;
2520
- name?: string;
2521
- sessionCode?: string;
2522
- status: import("..").MessageStatus;
2523
- } | {
2524
- content: string;
2525
- role: import("..").MessageRole.Hidden;
2526
- id?: string;
2527
- messageId?: string;
2528
- name?: string;
2529
- sessionCode?: string;
2530
- status: import("..").MessageStatus;
2531
- } | {
2532
- content: string;
2533
- role: import("..").MessageRole.HiddenSystem;
2534
- id?: string;
2535
- messageId?: string;
2536
- name?: string;
2537
- sessionCode?: string;
2538
- status: import("..").MessageStatus;
2539
- } | {
2540
- content: string;
2541
- role: import("..").MessageRole.HiddenUser;
2542
- id?: string;
2543
- messageId?: string;
2544
- name?: string;
2545
- sessionCode?: string;
2546
- status: import("..").MessageStatus;
2547
- } | {
2548
- content: string;
2549
- role: import("..").MessageRole.Info;
2550
- id?: string;
2551
- messageId?: string;
2552
- name?: string;
2553
- sessionCode?: string;
2554
- status: import("..").MessageStatus;
2555
- } | {
2556
- content: string;
2557
- role: import("..").MessageRole.Pause;
2558
- id?: string;
2559
- messageId?: string;
2560
- name?: string;
2561
- sessionCode?: string;
2562
- status: import("..").MessageStatus;
2563
- } | {
2564
- content: string;
2565
- role: import("..").MessageRole.Placeholder;
2566
- id?: string;
2567
- messageId?: string;
2568
- name?: string;
2569
- sessionCode?: string;
2570
- status: import("..").MessageStatus;
2571
- } | {
2572
- content: string[];
2573
- duration?: number;
2574
- role: import("..").MessageRole.Reasoning;
2575
- id?: string;
2576
- messageId?: string;
2577
- name?: string;
2578
- sessionCode?: string;
2579
- status: import("..").MessageStatus;
2580
- } | {
2581
- content: string;
2582
- role: import("..").MessageRole.System;
2583
- id?: string;
2584
- messageId?: string;
2585
- name?: string;
2586
- sessionCode?: string;
2587
- status: import("..").MessageStatus;
2588
- } | {
2589
- content: string;
2590
- role: import("..").MessageRole.TemplateAssistant;
2591
- id?: string;
2592
- messageId?: string;
2593
- name?: string;
2594
- sessionCode?: string;
2595
- status: import("..").MessageStatus;
2596
- } | {
2597
- content: string;
2598
- role: import("..").MessageRole.TemplateGuide;
2599
- id?: string;
2600
- messageId?: string;
2601
- name?: string;
2602
- sessionCode?: string;
2603
- status: import("..").MessageStatus;
2604
- } | {
2605
- content: string;
2606
- role: import("..").MessageRole.TemplateHidden;
2607
- id?: string;
2608
- messageId?: string;
2609
- name?: string;
2610
- sessionCode?: string;
2611
- status: import("..").MessageStatus;
2612
- } | {
2613
- content: string;
2614
- role: import("..").MessageRole.TemplateSystem;
2615
- id?: string;
2616
- messageId?: string;
2617
- name?: string;
2618
- sessionCode?: string;
2619
- status: import("..").MessageStatus;
2620
- } | {
2621
- content: string;
2622
- role: import("..").MessageRole.TemplateUser;
2623
- id?: string;
2624
- messageId?: string;
2625
- name?: string;
2626
- sessionCode?: string;
2627
- status: import("..").MessageStatus;
2628
- } | {
2629
- content: string;
2630
- duration?: number;
2631
- error?: string;
2632
- role: import("..").MessageRole.Tool;
2633
- toolCallId: string;
2634
- id?: string;
2635
- messageId?: string;
2636
- name?: string;
2637
- sessionCode?: string;
2638
- status: import("..").MessageStatus;
2639
- } | {
2640
- content: string | ({
2641
- data?: string;
2642
- filename?: string;
2643
- id?: string;
2644
- mimeType: string;
2645
- type: import("..").MessageType.Binary;
2646
- url?: string;
2647
- } | {
2648
- text: string;
2649
- type: import("..").MessageType.Text;
2650
- })[];
2651
- property?: {
2652
- [x: string]: unknown;
2653
- extra?: {
2654
- [x: string]: unknown;
2655
- cite?: string | {
2656
- data: {
2657
- key: string;
2658
- value: string;
2659
- }[];
2660
- title: string;
2661
- type: string;
2662
- };
2663
- command?: string;
2664
- context?: Array<Record<string, unknown>>;
2665
- resources?: Array<Record<string, unknown>>;
2853
+ values?: boolean;
2854
+ includes?: boolean;
2855
+ flatMap?: boolean;
2856
+ flat?: boolean;
2857
+ at?: boolean;
2858
+ findLast?: boolean;
2859
+ findLastIndex?: boolean;
2860
+ toReversed?: boolean;
2861
+ toSorted?: boolean;
2862
+ toSpliced?: boolean;
2863
+ with?: boolean;
2864
+ [Symbol.iterator]?: boolean;
2865
+ readonly [Symbol.unscopables]?: boolean;
2866
+ };
2867
+ })[];
2868
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
2869
+ allOf?: /*elided*/ any[];
2870
+ anyOf?: /*elided*/ any[];
2871
+ oneOf?: /*elided*/ any[];
2872
+ not?: /*elided*/ any;
2873
+ extends?: string | string[] | undefined;
2874
+ format?: string | undefined;
2875
+ };
2876
+ expiresAt?: string;
2877
+ metadata?: {
2878
+ questions: {
2879
+ header: string;
2880
+ multiSelect?: boolean;
2881
+ options?: {
2882
+ description: string;
2883
+ label: string;
2884
+ }[];
2885
+ question: string;
2886
+ }[];
2887
+ };
2888
+ })[];
2666
2889
  };
2890
+ timestamp?: number;
2667
2891
  };
2668
- role: import("..").MessageRole.User;
2892
+ role: import("..").MessageRole.Interrupt;
2893
+ createdAt?: string;
2669
2894
  id?: string;
2670
2895
  messageId?: string;
2671
2896
  name?: string;
@@ -2677,6 +2902,17 @@ export declare const useSession: (mediator: IMediatorModule) => {
2677
2902
  value: string | ({
2678
2903
  activityType: import("..").ActivityType;
2679
2904
  content: {
2905
+ artifacts: {
2906
+ name: string;
2907
+ outputId: string;
2908
+ size: number;
2909
+ type: string;
2910
+ previewUrl?: string;
2911
+ url?: string;
2912
+ }[];
2913
+ runId: string;
2914
+ status: "complete" | "empty";
2915
+ } | {
2680
2916
  nodes: Record<string, import("..").IFlowAgentNode>;
2681
2917
  task_id: string;
2682
2918
  task_name: string;
@@ -2694,7 +2930,33 @@ export declare const useSession: (mediator: IMediatorModule) => {
2694
2930
  originFileUrl?: string;
2695
2931
  url: string;
2696
2932
  }[];
2933
+ property?: {
2934
+ [x: string]: unknown;
2935
+ artifacts?: {
2936
+ name: string;
2937
+ outputId: string;
2938
+ size: number;
2939
+ type: string;
2940
+ previewUrl?: string;
2941
+ url?: string;
2942
+ }[];
2943
+ extra?: {
2944
+ [x: string]: unknown;
2945
+ cite?: string | {
2946
+ data: {
2947
+ key: string;
2948
+ value: string;
2949
+ }[];
2950
+ title: string;
2951
+ type: string;
2952
+ };
2953
+ command?: string;
2954
+ context?: Array<Record<string, unknown>>;
2955
+ resources?: Array<Record<string, unknown>>;
2956
+ };
2957
+ };
2697
2958
  role: import("..").MessageRole.Activity;
2959
+ createdAt?: string;
2698
2960
  id?: string;
2699
2961
  messageId?: string;
2700
2962
  name?: string;
@@ -2704,6 +2966,235 @@ export declare const useSession: (mediator: IMediatorModule) => {
2704
2966
  content?: string;
2705
2967
  property?: {
2706
2968
  [x: string]: unknown;
2969
+ artifacts?: {
2970
+ name: string;
2971
+ outputId: string;
2972
+ size: number;
2973
+ type: string;
2974
+ previewUrl?: string;
2975
+ url?: string;
2976
+ }[];
2977
+ extra?: {
2978
+ [x: string]: unknown;
2979
+ cite?: string | {
2980
+ data: {
2981
+ key: string;
2982
+ value: string;
2983
+ }[];
2984
+ title: string;
2985
+ type: string;
2986
+ };
2987
+ command?: string;
2988
+ context?: Array<Record<string, unknown>>;
2989
+ resources?: Array<Record<string, unknown>>;
2990
+ };
2991
+ };
2992
+ role: import("..").MessageRole.Assistant;
2993
+ toolCalls?: {
2994
+ function: {
2995
+ arguments: string;
2996
+ description?: string;
2997
+ mcpName?: string;
2998
+ name: string;
2999
+ };
3000
+ id: string;
3001
+ type: import("..").MessageType.Function;
3002
+ }[];
3003
+ createdAt?: string;
3004
+ id?: string;
3005
+ messageId?: string;
3006
+ name?: string;
3007
+ sessionCode?: string;
3008
+ status: import("..").MessageStatus;
3009
+ } | {
3010
+ content: string;
3011
+ role: import("..").MessageRole.Developer;
3012
+ createdAt?: string;
3013
+ id?: string;
3014
+ messageId?: string;
3015
+ name?: string;
3016
+ sessionCode?: string;
3017
+ status: import("..").MessageStatus;
3018
+ } | {
3019
+ content: string;
3020
+ role: import("..").MessageRole.Guide;
3021
+ createdAt?: string;
3022
+ id?: string;
3023
+ messageId?: string;
3024
+ name?: string;
3025
+ sessionCode?: string;
3026
+ status: import("..").MessageStatus;
3027
+ } | {
3028
+ content: string;
3029
+ role: import("..").MessageRole.HiddenAssistant;
3030
+ createdAt?: string;
3031
+ id?: string;
3032
+ messageId?: string;
3033
+ name?: string;
3034
+ sessionCode?: string;
3035
+ status: import("..").MessageStatus;
3036
+ } | {
3037
+ content: string;
3038
+ role: import("..").MessageRole.HiddenGuide;
3039
+ createdAt?: string;
3040
+ id?: string;
3041
+ messageId?: string;
3042
+ name?: string;
3043
+ sessionCode?: string;
3044
+ status: import("..").MessageStatus;
3045
+ } | {
3046
+ content: string;
3047
+ role: import("..").MessageRole.Hidden;
3048
+ createdAt?: string;
3049
+ id?: string;
3050
+ messageId?: string;
3051
+ name?: string;
3052
+ sessionCode?: string;
3053
+ status: import("..").MessageStatus;
3054
+ } | {
3055
+ content: string;
3056
+ role: import("..").MessageRole.HiddenSystem;
3057
+ createdAt?: string;
3058
+ id?: string;
3059
+ messageId?: string;
3060
+ name?: string;
3061
+ sessionCode?: string;
3062
+ status: import("..").MessageStatus;
3063
+ } | {
3064
+ content: string;
3065
+ role: import("..").MessageRole.HiddenUser;
3066
+ createdAt?: string;
3067
+ id?: string;
3068
+ messageId?: string;
3069
+ name?: string;
3070
+ sessionCode?: string;
3071
+ status: import("..").MessageStatus;
3072
+ } | {
3073
+ content: string;
3074
+ role: import("..").MessageRole.Info;
3075
+ createdAt?: string;
3076
+ id?: string;
3077
+ messageId?: string;
3078
+ name?: string;
3079
+ sessionCode?: string;
3080
+ status: import("..").MessageStatus;
3081
+ } | {
3082
+ content: string;
3083
+ role: import("..").MessageRole.Pause;
3084
+ createdAt?: string;
3085
+ id?: string;
3086
+ messageId?: string;
3087
+ name?: string;
3088
+ sessionCode?: string;
3089
+ status: import("..").MessageStatus;
3090
+ } | {
3091
+ content: string;
3092
+ role: import("..").MessageRole.Placeholder;
3093
+ createdAt?: string;
3094
+ id?: string;
3095
+ messageId?: string;
3096
+ name?: string;
3097
+ sessionCode?: string;
3098
+ status: import("..").MessageStatus;
3099
+ } | {
3100
+ content: string[];
3101
+ duration?: number;
3102
+ role: import("..").MessageRole.Reasoning;
3103
+ createdAt?: string;
3104
+ id?: string;
3105
+ messageId?: string;
3106
+ name?: string;
3107
+ sessionCode?: string;
3108
+ status: import("..").MessageStatus;
3109
+ } | {
3110
+ content: string;
3111
+ role: import("..").MessageRole.System;
3112
+ createdAt?: string;
3113
+ id?: string;
3114
+ messageId?: string;
3115
+ name?: string;
3116
+ sessionCode?: string;
3117
+ status: import("..").MessageStatus;
3118
+ } | {
3119
+ content: string;
3120
+ role: import("..").MessageRole.TemplateAssistant;
3121
+ createdAt?: string;
3122
+ id?: string;
3123
+ messageId?: string;
3124
+ name?: string;
3125
+ sessionCode?: string;
3126
+ status: import("..").MessageStatus;
3127
+ } | {
3128
+ content: string;
3129
+ role: import("..").MessageRole.TemplateGuide;
3130
+ createdAt?: string;
3131
+ id?: string;
3132
+ messageId?: string;
3133
+ name?: string;
3134
+ sessionCode?: string;
3135
+ status: import("..").MessageStatus;
3136
+ } | {
3137
+ content: string;
3138
+ role: import("..").MessageRole.TemplateHidden;
3139
+ createdAt?: string;
3140
+ id?: string;
3141
+ messageId?: string;
3142
+ name?: string;
3143
+ sessionCode?: string;
3144
+ status: import("..").MessageStatus;
3145
+ } | {
3146
+ content: string;
3147
+ role: import("..").MessageRole.TemplateSystem;
3148
+ createdAt?: string;
3149
+ id?: string;
3150
+ messageId?: string;
3151
+ name?: string;
3152
+ sessionCode?: string;
3153
+ status: import("..").MessageStatus;
3154
+ } | {
3155
+ content: string;
3156
+ role: import("..").MessageRole.TemplateUser;
3157
+ createdAt?: string;
3158
+ id?: string;
3159
+ messageId?: string;
3160
+ name?: string;
3161
+ sessionCode?: string;
3162
+ status: import("..").MessageStatus;
3163
+ } | {
3164
+ content: string;
3165
+ duration?: number;
3166
+ error?: string;
3167
+ role: import("..").MessageRole.Tool;
3168
+ toolCallId: string;
3169
+ createdAt?: string;
3170
+ id?: string;
3171
+ messageId?: string;
3172
+ name?: string;
3173
+ sessionCode?: string;
3174
+ status: import("..").MessageStatus;
3175
+ } | {
3176
+ content: string | ({
3177
+ data?: string;
3178
+ filename?: string;
3179
+ id?: string;
3180
+ mimeType: string;
3181
+ size?: number;
3182
+ type: import("..").MessageType.Binary;
3183
+ url?: string;
3184
+ } | {
3185
+ text: string;
3186
+ type: import("..").MessageType.Text;
3187
+ })[];
3188
+ property?: {
3189
+ [x: string]: unknown;
3190
+ artifacts?: {
3191
+ name: string;
3192
+ outputId: string;
3193
+ size: number;
3194
+ type: string;
3195
+ previewUrl?: string;
3196
+ url?: string;
3197
+ }[];
2707
3198
  extra?: {
2708
3199
  [x: string]: unknown;
2709
3200
  cite?: string | {
@@ -2719,25 +3210,8 @@ export declare const useSession: (mediator: IMediatorModule) => {
2719
3210
  resources?: Array<Record<string, unknown>>;
2720
3211
  };
2721
3212
  };
2722
- role: import("..").MessageRole.Assistant;
2723
- toolCalls?: {
2724
- function: {
2725
- arguments: string;
2726
- description?: string;
2727
- mcpName?: string;
2728
- name: string;
2729
- };
2730
- id: string;
2731
- type: import("..").MessageType.Function;
2732
- }[];
2733
- id?: string;
2734
- messageId?: string;
2735
- name?: string;
2736
- sessionCode?: string;
2737
- status: import("..").MessageStatus;
2738
- } | {
2739
- content: string;
2740
- role: import("..").MessageRole.Developer;
3213
+ role: import("..").MessageRole.User;
3214
+ createdAt?: string;
2741
3215
  id?: string;
2742
3216
  messageId?: string;
2743
3217
  name?: string;
@@ -3310,239 +3784,65 @@ export declare const useSession: (mediator: IMediatorModule) => {
3310
3784
  reverse?: boolean;
3311
3785
  shift?: boolean;
3312
3786
  slice?: boolean;
3313
- sort?: boolean;
3314
- splice?: boolean;
3315
- unshift?: boolean;
3316
- indexOf?: boolean;
3317
- lastIndexOf?: boolean;
3318
- every?: boolean;
3319
- some?: boolean;
3320
- forEach?: boolean;
3321
- map?: boolean;
3322
- filter?: boolean;
3323
- reduce?: boolean;
3324
- reduceRight?: boolean;
3325
- find?: boolean;
3326
- findIndex?: boolean;
3327
- fill?: boolean;
3328
- copyWithin?: boolean;
3329
- entries?: boolean;
3330
- keys?: boolean;
3331
- values?: boolean;
3332
- includes?: boolean;
3333
- flatMap?: boolean;
3334
- flat?: boolean;
3335
- at?: boolean;
3336
- findLast?: boolean;
3337
- findLastIndex?: boolean;
3338
- toReversed?: boolean;
3339
- toSorted?: boolean;
3340
- toSpliced?: boolean;
3341
- with?: boolean;
3342
- [Symbol.iterator]?: boolean;
3343
- readonly [Symbol.unscopables]?: boolean;
3344
- };
3345
- })[];
3346
- type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
3347
- allOf?: /*elided*/ any[];
3348
- anyOf?: /*elided*/ any[];
3349
- oneOf?: /*elided*/ any[];
3350
- not?: /*elided*/ any;
3351
- extends?: string | string[] | undefined;
3352
- format?: string | undefined;
3353
- };
3354
- expiresAt?: string;
3355
- metadata?: {
3356
- questions: {
3357
- header: string;
3358
- multiSelect?: boolean;
3359
- options?: {
3360
- description: string;
3361
- label: string;
3362
- }[];
3363
- question: string;
3364
- }[];
3365
- };
3366
- })[];
3367
- };
3368
- timestamp?: number;
3369
- };
3370
- role: import("..").MessageRole.Interrupt;
3371
- id?: string;
3372
- messageId?: string;
3373
- name?: string;
3374
- sessionCode?: string;
3375
- status: import("..").MessageStatus;
3376
- } | {
3377
- content: string;
3378
- role: import("..").MessageRole.Guide;
3379
- id?: string;
3380
- messageId?: string;
3381
- name?: string;
3382
- sessionCode?: string;
3383
- status: import("..").MessageStatus;
3384
- } | {
3385
- content: string;
3386
- role: import("..").MessageRole.HiddenAssistant;
3387
- id?: string;
3388
- messageId?: string;
3389
- name?: string;
3390
- sessionCode?: string;
3391
- status: import("..").MessageStatus;
3392
- } | {
3393
- content: string;
3394
- role: import("..").MessageRole.HiddenGuide;
3395
- id?: string;
3396
- messageId?: string;
3397
- name?: string;
3398
- sessionCode?: string;
3399
- status: import("..").MessageStatus;
3400
- } | {
3401
- content: string;
3402
- role: import("..").MessageRole.Hidden;
3403
- id?: string;
3404
- messageId?: string;
3405
- name?: string;
3406
- sessionCode?: string;
3407
- status: import("..").MessageStatus;
3408
- } | {
3409
- content: string;
3410
- role: import("..").MessageRole.HiddenSystem;
3411
- id?: string;
3412
- messageId?: string;
3413
- name?: string;
3414
- sessionCode?: string;
3415
- status: import("..").MessageStatus;
3416
- } | {
3417
- content: string;
3418
- role: import("..").MessageRole.HiddenUser;
3419
- id?: string;
3420
- messageId?: string;
3421
- name?: string;
3422
- sessionCode?: string;
3423
- status: import("..").MessageStatus;
3424
- } | {
3425
- content: string;
3426
- role: import("..").MessageRole.Info;
3427
- id?: string;
3428
- messageId?: string;
3429
- name?: string;
3430
- sessionCode?: string;
3431
- status: import("..").MessageStatus;
3432
- } | {
3433
- content: string;
3434
- role: import("..").MessageRole.Pause;
3435
- id?: string;
3436
- messageId?: string;
3437
- name?: string;
3438
- sessionCode?: string;
3439
- status: import("..").MessageStatus;
3440
- } | {
3441
- content: string;
3442
- role: import("..").MessageRole.Placeholder;
3443
- id?: string;
3444
- messageId?: string;
3445
- name?: string;
3446
- sessionCode?: string;
3447
- status: import("..").MessageStatus;
3448
- } | {
3449
- content: string[];
3450
- duration?: number;
3451
- role: import("..").MessageRole.Reasoning;
3452
- id?: string;
3453
- messageId?: string;
3454
- name?: string;
3455
- sessionCode?: string;
3456
- status: import("..").MessageStatus;
3457
- } | {
3458
- content: string;
3459
- role: import("..").MessageRole.System;
3460
- id?: string;
3461
- messageId?: string;
3462
- name?: string;
3463
- sessionCode?: string;
3464
- status: import("..").MessageStatus;
3465
- } | {
3466
- content: string;
3467
- role: import("..").MessageRole.TemplateAssistant;
3468
- id?: string;
3469
- messageId?: string;
3470
- name?: string;
3471
- sessionCode?: string;
3472
- status: import("..").MessageStatus;
3473
- } | {
3474
- content: string;
3475
- role: import("..").MessageRole.TemplateGuide;
3476
- id?: string;
3477
- messageId?: string;
3478
- name?: string;
3479
- sessionCode?: string;
3480
- status: import("..").MessageStatus;
3481
- } | {
3482
- content: string;
3483
- role: import("..").MessageRole.TemplateHidden;
3484
- id?: string;
3485
- messageId?: string;
3486
- name?: string;
3487
- sessionCode?: string;
3488
- status: import("..").MessageStatus;
3489
- } | {
3490
- content: string;
3491
- role: import("..").MessageRole.TemplateSystem;
3492
- id?: string;
3493
- messageId?: string;
3494
- name?: string;
3495
- sessionCode?: string;
3496
- status: import("..").MessageStatus;
3497
- } | {
3498
- content: string;
3499
- role: import("..").MessageRole.TemplateUser;
3500
- id?: string;
3501
- messageId?: string;
3502
- name?: string;
3503
- sessionCode?: string;
3504
- status: import("..").MessageStatus;
3505
- } | {
3506
- content: string;
3507
- duration?: number;
3508
- error?: string;
3509
- role: import("..").MessageRole.Tool;
3510
- toolCallId: string;
3511
- id?: string;
3512
- messageId?: string;
3513
- name?: string;
3514
- sessionCode?: string;
3515
- status: import("..").MessageStatus;
3516
- } | {
3517
- content: string | ({
3518
- data?: string;
3519
- filename?: string;
3520
- id?: string;
3521
- mimeType: string;
3522
- type: import("..").MessageType.Binary;
3523
- url?: string;
3524
- } | {
3525
- text: string;
3526
- type: import("..").MessageType.Text;
3527
- })[];
3528
- property?: {
3529
- [x: string]: unknown;
3530
- extra?: {
3531
- [x: string]: unknown;
3532
- cite?: string | {
3533
- data: {
3534
- key: string;
3535
- value: string;
3536
- }[];
3537
- title: string;
3538
- type: string;
3539
- };
3540
- command?: string;
3541
- context?: Array<Record<string, unknown>>;
3542
- resources?: Array<Record<string, unknown>>;
3787
+ sort?: boolean;
3788
+ splice?: boolean;
3789
+ unshift?: boolean;
3790
+ indexOf?: boolean;
3791
+ lastIndexOf?: boolean;
3792
+ every?: boolean;
3793
+ some?: boolean;
3794
+ forEach?: boolean;
3795
+ map?: boolean;
3796
+ filter?: boolean;
3797
+ reduce?: boolean;
3798
+ reduceRight?: boolean;
3799
+ find?: boolean;
3800
+ findIndex?: boolean;
3801
+ fill?: boolean;
3802
+ copyWithin?: boolean;
3803
+ entries?: boolean;
3804
+ keys?: boolean;
3805
+ values?: boolean;
3806
+ includes?: boolean;
3807
+ flatMap?: boolean;
3808
+ flat?: boolean;
3809
+ at?: boolean;
3810
+ findLast?: boolean;
3811
+ findLastIndex?: boolean;
3812
+ toReversed?: boolean;
3813
+ toSorted?: boolean;
3814
+ toSpliced?: boolean;
3815
+ with?: boolean;
3816
+ [Symbol.iterator]?: boolean;
3817
+ readonly [Symbol.unscopables]?: boolean;
3818
+ };
3819
+ })[];
3820
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
3821
+ allOf?: /*elided*/ any[];
3822
+ anyOf?: /*elided*/ any[];
3823
+ oneOf?: /*elided*/ any[];
3824
+ not?: /*elided*/ any;
3825
+ extends?: string | string[] | undefined;
3826
+ format?: string | undefined;
3827
+ };
3828
+ expiresAt?: string;
3829
+ metadata?: {
3830
+ questions: {
3831
+ header: string;
3832
+ multiSelect?: boolean;
3833
+ options?: {
3834
+ description: string;
3835
+ label: string;
3836
+ }[];
3837
+ question: string;
3838
+ }[];
3839
+ };
3840
+ })[];
3543
3841
  };
3842
+ timestamp?: number;
3544
3843
  };
3545
- role: import("..").MessageRole.User;
3844
+ role: import("..").MessageRole.Interrupt;
3845
+ createdAt?: string;
3546
3846
  id?: string;
3547
3847
  messageId?: string;
3548
3848
  name?: string;
@@ -3576,6 +3876,17 @@ export declare const useSession: (mediator: IMediatorModule) => {
3576
3876
  content: ({
3577
3877
  activityType: import("..").ActivityType;
3578
3878
  content: {
3879
+ artifacts: {
3880
+ name: string;
3881
+ outputId: string;
3882
+ size: number;
3883
+ type: string;
3884
+ previewUrl?: string;
3885
+ url?: string;
3886
+ }[];
3887
+ runId: string;
3888
+ status: "complete" | "empty";
3889
+ } | {
3579
3890
  nodes: Record<string, import("..").IFlowAgentNode>;
3580
3891
  task_id: string;
3581
3892
  task_name: string;
@@ -3593,7 +3904,33 @@ export declare const useSession: (mediator: IMediatorModule) => {
3593
3904
  originFileUrl?: string;
3594
3905
  url: string;
3595
3906
  }[];
3907
+ property?: {
3908
+ [x: string]: unknown;
3909
+ artifacts?: {
3910
+ name: string;
3911
+ outputId: string;
3912
+ size: number;
3913
+ type: string;
3914
+ previewUrl?: string;
3915
+ url?: string;
3916
+ }[];
3917
+ extra?: {
3918
+ [x: string]: unknown;
3919
+ cite?: string | {
3920
+ data: {
3921
+ key: string;
3922
+ value: string;
3923
+ }[];
3924
+ title: string;
3925
+ type: string;
3926
+ };
3927
+ command?: string;
3928
+ context?: Array<Record<string, unknown>>;
3929
+ resources?: Array<Record<string, unknown>>;
3930
+ };
3931
+ };
3596
3932
  role: import("..").MessageRole.Activity;
3933
+ createdAt?: string;
3597
3934
  id?: string;
3598
3935
  messageId?: string;
3599
3936
  name?: string;
@@ -3603,6 +3940,14 @@ export declare const useSession: (mediator: IMediatorModule) => {
3603
3940
  content?: string;
3604
3941
  property?: {
3605
3942
  [x: string]: unknown;
3943
+ artifacts?: {
3944
+ name: string;
3945
+ outputId: string;
3946
+ size: number;
3947
+ type: string;
3948
+ previewUrl?: string;
3949
+ url?: string;
3950
+ }[];
3606
3951
  extra?: {
3607
3952
  [x: string]: unknown;
3608
3953
  cite?: string | {
@@ -3629,6 +3974,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
3629
3974
  id: string;
3630
3975
  type: import("..").MessageType.Function;
3631
3976
  }[];
3977
+ createdAt?: string;
3632
3978
  id?: string;
3633
3979
  messageId?: string;
3634
3980
  name?: string;
@@ -3637,6 +3983,209 @@ export declare const useSession: (mediator: IMediatorModule) => {
3637
3983
  } | {
3638
3984
  content: string;
3639
3985
  role: import("..").MessageRole.Developer;
3986
+ createdAt?: string;
3987
+ id?: string;
3988
+ messageId?: string;
3989
+ name?: string;
3990
+ sessionCode?: string;
3991
+ status: import("..").MessageStatus;
3992
+ } | {
3993
+ content: string;
3994
+ role: import("..").MessageRole.Guide;
3995
+ createdAt?: string;
3996
+ id?: string;
3997
+ messageId?: string;
3998
+ name?: string;
3999
+ sessionCode?: string;
4000
+ status: import("..").MessageStatus;
4001
+ } | {
4002
+ content: string;
4003
+ role: import("..").MessageRole.HiddenAssistant;
4004
+ createdAt?: string;
4005
+ id?: string;
4006
+ messageId?: string;
4007
+ name?: string;
4008
+ sessionCode?: string;
4009
+ status: import("..").MessageStatus;
4010
+ } | {
4011
+ content: string;
4012
+ role: import("..").MessageRole.HiddenGuide;
4013
+ createdAt?: string;
4014
+ id?: string;
4015
+ messageId?: string;
4016
+ name?: string;
4017
+ sessionCode?: string;
4018
+ status: import("..").MessageStatus;
4019
+ } | {
4020
+ content: string;
4021
+ role: import("..").MessageRole.Hidden;
4022
+ createdAt?: string;
4023
+ id?: string;
4024
+ messageId?: string;
4025
+ name?: string;
4026
+ sessionCode?: string;
4027
+ status: import("..").MessageStatus;
4028
+ } | {
4029
+ content: string;
4030
+ role: import("..").MessageRole.HiddenSystem;
4031
+ createdAt?: string;
4032
+ id?: string;
4033
+ messageId?: string;
4034
+ name?: string;
4035
+ sessionCode?: string;
4036
+ status: import("..").MessageStatus;
4037
+ } | {
4038
+ content: string;
4039
+ role: import("..").MessageRole.HiddenUser;
4040
+ createdAt?: string;
4041
+ id?: string;
4042
+ messageId?: string;
4043
+ name?: string;
4044
+ sessionCode?: string;
4045
+ status: import("..").MessageStatus;
4046
+ } | {
4047
+ content: string;
4048
+ role: import("..").MessageRole.Info;
4049
+ createdAt?: string;
4050
+ id?: string;
4051
+ messageId?: string;
4052
+ name?: string;
4053
+ sessionCode?: string;
4054
+ status: import("..").MessageStatus;
4055
+ } | {
4056
+ content: string;
4057
+ role: import("..").MessageRole.Pause;
4058
+ createdAt?: string;
4059
+ id?: string;
4060
+ messageId?: string;
4061
+ name?: string;
4062
+ sessionCode?: string;
4063
+ status: import("..").MessageStatus;
4064
+ } | {
4065
+ content: string;
4066
+ role: import("..").MessageRole.Placeholder;
4067
+ createdAt?: string;
4068
+ id?: string;
4069
+ messageId?: string;
4070
+ name?: string;
4071
+ sessionCode?: string;
4072
+ status: import("..").MessageStatus;
4073
+ } | {
4074
+ content: string[];
4075
+ duration?: number;
4076
+ role: import("..").MessageRole.Reasoning;
4077
+ createdAt?: string;
4078
+ id?: string;
4079
+ messageId?: string;
4080
+ name?: string;
4081
+ sessionCode?: string;
4082
+ status: import("..").MessageStatus;
4083
+ } | {
4084
+ content: string;
4085
+ role: import("..").MessageRole.System;
4086
+ createdAt?: string;
4087
+ id?: string;
4088
+ messageId?: string;
4089
+ name?: string;
4090
+ sessionCode?: string;
4091
+ status: import("..").MessageStatus;
4092
+ } | {
4093
+ content: string;
4094
+ role: import("..").MessageRole.TemplateAssistant;
4095
+ createdAt?: string;
4096
+ id?: string;
4097
+ messageId?: string;
4098
+ name?: string;
4099
+ sessionCode?: string;
4100
+ status: import("..").MessageStatus;
4101
+ } | {
4102
+ content: string;
4103
+ role: import("..").MessageRole.TemplateGuide;
4104
+ createdAt?: string;
4105
+ id?: string;
4106
+ messageId?: string;
4107
+ name?: string;
4108
+ sessionCode?: string;
4109
+ status: import("..").MessageStatus;
4110
+ } | {
4111
+ content: string;
4112
+ role: import("..").MessageRole.TemplateHidden;
4113
+ createdAt?: string;
4114
+ id?: string;
4115
+ messageId?: string;
4116
+ name?: string;
4117
+ sessionCode?: string;
4118
+ status: import("..").MessageStatus;
4119
+ } | {
4120
+ content: string;
4121
+ role: import("..").MessageRole.TemplateSystem;
4122
+ createdAt?: string;
4123
+ id?: string;
4124
+ messageId?: string;
4125
+ name?: string;
4126
+ sessionCode?: string;
4127
+ status: import("..").MessageStatus;
4128
+ } | {
4129
+ content: string;
4130
+ role: import("..").MessageRole.TemplateUser;
4131
+ createdAt?: string;
4132
+ id?: string;
4133
+ messageId?: string;
4134
+ name?: string;
4135
+ sessionCode?: string;
4136
+ status: import("..").MessageStatus;
4137
+ } | {
4138
+ content: string;
4139
+ duration?: number;
4140
+ error?: string;
4141
+ role: import("..").MessageRole.Tool;
4142
+ toolCallId: string;
4143
+ createdAt?: string;
4144
+ id?: string;
4145
+ messageId?: string;
4146
+ name?: string;
4147
+ sessionCode?: string;
4148
+ status: import("..").MessageStatus;
4149
+ } | {
4150
+ content: string | ({
4151
+ data?: string;
4152
+ filename?: string;
4153
+ id?: string;
4154
+ mimeType: string;
4155
+ size?: number;
4156
+ type: import("..").MessageType.Binary;
4157
+ url?: string;
4158
+ } | {
4159
+ text: string;
4160
+ type: import("..").MessageType.Text;
4161
+ })[];
4162
+ property?: {
4163
+ [x: string]: unknown;
4164
+ artifacts?: {
4165
+ name: string;
4166
+ outputId: string;
4167
+ size: number;
4168
+ type: string;
4169
+ previewUrl?: string;
4170
+ url?: string;
4171
+ }[];
4172
+ extra?: {
4173
+ [x: string]: unknown;
4174
+ cite?: string | {
4175
+ data: {
4176
+ key: string;
4177
+ value: string;
4178
+ }[];
4179
+ title: string;
4180
+ type: string;
4181
+ };
4182
+ command?: string;
4183
+ context?: Array<Record<string, unknown>>;
4184
+ resources?: Array<Record<string, unknown>>;
4185
+ };
4186
+ };
4187
+ role: import("..").MessageRole.User;
4188
+ createdAt?: string;
3640
4189
  id?: string;
3641
4190
  messageId?: string;
3642
4191
  name?: string;
@@ -4189,259 +4738,85 @@ export declare const useSession: (mediator: IMediatorModule) => {
4189
4738
  (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
4190
4739
  };
4191
4740
  findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
4192
- toReversed: () => import("json-schema").JSONSchema4Type[];
4193
- toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
4194
- toSpliced: {
4195
- (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
4196
- (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
4197
- };
4198
- with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
4199
- [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
4200
- readonly [Symbol.unscopables]: {
4201
- [x: number]: boolean;
4202
- length?: boolean;
4203
- toString?: boolean;
4204
- toLocaleString?: boolean;
4205
- pop?: boolean;
4206
- push?: boolean;
4207
- concat?: boolean;
4208
- join?: boolean;
4209
- reverse?: boolean;
4210
- shift?: boolean;
4211
- slice?: boolean;
4212
- sort?: boolean;
4213
- splice?: boolean;
4214
- unshift?: boolean;
4215
- indexOf?: boolean;
4216
- lastIndexOf?: boolean;
4217
- every?: boolean;
4218
- some?: boolean;
4219
- forEach?: boolean;
4220
- map?: boolean;
4221
- filter?: boolean;
4222
- reduce?: boolean;
4223
- reduceRight?: boolean;
4224
- find?: boolean;
4225
- findIndex?: boolean;
4226
- fill?: boolean;
4227
- copyWithin?: boolean;
4228
- entries?: boolean;
4229
- keys?: boolean;
4230
- values?: boolean;
4231
- includes?: boolean;
4232
- flatMap?: boolean;
4233
- flat?: boolean;
4234
- at?: boolean;
4235
- findLast?: boolean;
4236
- findLastIndex?: boolean;
4237
- toReversed?: boolean;
4238
- toSorted?: boolean;
4239
- toSpliced?: boolean;
4240
- with?: boolean;
4241
- [Symbol.iterator]?: boolean;
4242
- readonly [Symbol.unscopables]?: boolean;
4243
- };
4244
- })[];
4245
- type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
4246
- allOf?: /*elided*/ any[];
4247
- anyOf?: /*elided*/ any[];
4248
- oneOf?: /*elided*/ any[];
4249
- not?: /*elided*/ any;
4250
- extends?: string | string[] | undefined;
4251
- format?: string | undefined;
4252
- };
4253
- expiresAt?: string;
4254
- metadata?: {
4255
- questions: {
4256
- header: string;
4257
- multiSelect?: boolean;
4258
- options?: {
4259
- description: string;
4260
- label: string;
4261
- }[];
4262
- question: string;
4263
- }[];
4264
- };
4265
- })[];
4266
- };
4267
- timestamp?: number;
4268
- };
4269
- role: import("..").MessageRole.Interrupt;
4270
- id?: string;
4271
- messageId?: string;
4272
- name?: string;
4273
- sessionCode?: string;
4274
- status: import("..").MessageStatus;
4275
- } | {
4276
- content: string;
4277
- role: import("..").MessageRole.Guide;
4278
- id?: string;
4279
- messageId?: string;
4280
- name?: string;
4281
- sessionCode?: string;
4282
- status: import("..").MessageStatus;
4283
- } | {
4284
- content: string;
4285
- role: import("..").MessageRole.HiddenAssistant;
4286
- id?: string;
4287
- messageId?: string;
4288
- name?: string;
4289
- sessionCode?: string;
4290
- status: import("..").MessageStatus;
4291
- } | {
4292
- content: string;
4293
- role: import("..").MessageRole.HiddenGuide;
4294
- id?: string;
4295
- messageId?: string;
4296
- name?: string;
4297
- sessionCode?: string;
4298
- status: import("..").MessageStatus;
4299
- } | {
4300
- content: string;
4301
- role: import("..").MessageRole.Hidden;
4302
- id?: string;
4303
- messageId?: string;
4304
- name?: string;
4305
- sessionCode?: string;
4306
- status: import("..").MessageStatus;
4307
- } | {
4308
- content: string;
4309
- role: import("..").MessageRole.HiddenSystem;
4310
- id?: string;
4311
- messageId?: string;
4312
- name?: string;
4313
- sessionCode?: string;
4314
- status: import("..").MessageStatus;
4315
- } | {
4316
- content: string;
4317
- role: import("..").MessageRole.HiddenUser;
4318
- id?: string;
4319
- messageId?: string;
4320
- name?: string;
4321
- sessionCode?: string;
4322
- status: import("..").MessageStatus;
4323
- } | {
4324
- content: string;
4325
- role: import("..").MessageRole.Info;
4326
- id?: string;
4327
- messageId?: string;
4328
- name?: string;
4329
- sessionCode?: string;
4330
- status: import("..").MessageStatus;
4331
- } | {
4332
- content: string;
4333
- role: import("..").MessageRole.Pause;
4334
- id?: string;
4335
- messageId?: string;
4336
- name?: string;
4337
- sessionCode?: string;
4338
- status: import("..").MessageStatus;
4339
- } | {
4340
- content: string;
4341
- role: import("..").MessageRole.Placeholder;
4342
- id?: string;
4343
- messageId?: string;
4344
- name?: string;
4345
- sessionCode?: string;
4346
- status: import("..").MessageStatus;
4347
- } | {
4348
- content: string[];
4349
- duration?: number;
4350
- role: import("..").MessageRole.Reasoning;
4351
- id?: string;
4352
- messageId?: string;
4353
- name?: string;
4354
- sessionCode?: string;
4355
- status: import("..").MessageStatus;
4356
- } | {
4357
- content: string;
4358
- role: import("..").MessageRole.System;
4359
- id?: string;
4360
- messageId?: string;
4361
- name?: string;
4362
- sessionCode?: string;
4363
- status: import("..").MessageStatus;
4364
- } | {
4365
- content: string;
4366
- role: import("..").MessageRole.TemplateAssistant;
4367
- id?: string;
4368
- messageId?: string;
4369
- name?: string;
4370
- sessionCode?: string;
4371
- status: import("..").MessageStatus;
4372
- } | {
4373
- content: string;
4374
- role: import("..").MessageRole.TemplateGuide;
4375
- id?: string;
4376
- messageId?: string;
4377
- name?: string;
4378
- sessionCode?: string;
4379
- status: import("..").MessageStatus;
4380
- } | {
4381
- content: string;
4382
- role: import("..").MessageRole.TemplateHidden;
4383
- id?: string;
4384
- messageId?: string;
4385
- name?: string;
4386
- sessionCode?: string;
4387
- status: import("..").MessageStatus;
4388
- } | {
4389
- content: string;
4390
- role: import("..").MessageRole.TemplateSystem;
4391
- id?: string;
4392
- messageId?: string;
4393
- name?: string;
4394
- sessionCode?: string;
4395
- status: import("..").MessageStatus;
4396
- } | {
4397
- content: string;
4398
- role: import("..").MessageRole.TemplateUser;
4399
- id?: string;
4400
- messageId?: string;
4401
- name?: string;
4402
- sessionCode?: string;
4403
- status: import("..").MessageStatus;
4404
- } | {
4405
- content: string;
4406
- duration?: number;
4407
- error?: string;
4408
- role: import("..").MessageRole.Tool;
4409
- toolCallId: string;
4410
- id?: string;
4411
- messageId?: string;
4412
- name?: string;
4413
- sessionCode?: string;
4414
- status: import("..").MessageStatus;
4415
- } | {
4416
- content: string | ({
4417
- data?: string;
4418
- filename?: string;
4419
- id?: string;
4420
- mimeType: string;
4421
- type: import("..").MessageType.Binary;
4422
- url?: string;
4423
- } | {
4424
- text: string;
4425
- type: import("..").MessageType.Text;
4426
- })[];
4427
- property?: {
4428
- [x: string]: unknown;
4429
- extra?: {
4430
- [x: string]: unknown;
4431
- cite?: string | {
4432
- data: {
4433
- key: string;
4434
- value: string;
4435
- }[];
4436
- title: string;
4437
- type: string;
4438
- };
4439
- command?: string;
4440
- context?: Array<Record<string, unknown>>;
4441
- resources?: Array<Record<string, unknown>>;
4741
+ toReversed: () => import("json-schema").JSONSchema4Type[];
4742
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
4743
+ toSpliced: {
4744
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
4745
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
4746
+ };
4747
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
4748
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
4749
+ readonly [Symbol.unscopables]: {
4750
+ [x: number]: boolean;
4751
+ length?: boolean;
4752
+ toString?: boolean;
4753
+ toLocaleString?: boolean;
4754
+ pop?: boolean;
4755
+ push?: boolean;
4756
+ concat?: boolean;
4757
+ join?: boolean;
4758
+ reverse?: boolean;
4759
+ shift?: boolean;
4760
+ slice?: boolean;
4761
+ sort?: boolean;
4762
+ splice?: boolean;
4763
+ unshift?: boolean;
4764
+ indexOf?: boolean;
4765
+ lastIndexOf?: boolean;
4766
+ every?: boolean;
4767
+ some?: boolean;
4768
+ forEach?: boolean;
4769
+ map?: boolean;
4770
+ filter?: boolean;
4771
+ reduce?: boolean;
4772
+ reduceRight?: boolean;
4773
+ find?: boolean;
4774
+ findIndex?: boolean;
4775
+ fill?: boolean;
4776
+ copyWithin?: boolean;
4777
+ entries?: boolean;
4778
+ keys?: boolean;
4779
+ values?: boolean;
4780
+ includes?: boolean;
4781
+ flatMap?: boolean;
4782
+ flat?: boolean;
4783
+ at?: boolean;
4784
+ findLast?: boolean;
4785
+ findLastIndex?: boolean;
4786
+ toReversed?: boolean;
4787
+ toSorted?: boolean;
4788
+ toSpliced?: boolean;
4789
+ with?: boolean;
4790
+ [Symbol.iterator]?: boolean;
4791
+ readonly [Symbol.unscopables]?: boolean;
4792
+ };
4793
+ })[];
4794
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
4795
+ allOf?: /*elided*/ any[];
4796
+ anyOf?: /*elided*/ any[];
4797
+ oneOf?: /*elided*/ any[];
4798
+ not?: /*elided*/ any;
4799
+ extends?: string | string[] | undefined;
4800
+ format?: string | undefined;
4801
+ };
4802
+ expiresAt?: string;
4803
+ metadata?: {
4804
+ questions: {
4805
+ header: string;
4806
+ multiSelect?: boolean;
4807
+ options?: {
4808
+ description: string;
4809
+ label: string;
4810
+ }[];
4811
+ question: string;
4812
+ }[];
4813
+ };
4814
+ })[];
4442
4815
  };
4816
+ timestamp?: number;
4443
4817
  };
4444
- role: import("..").MessageRole.User;
4818
+ role: import("..").MessageRole.Interrupt;
4819
+ createdAt?: string;
4445
4820
  id?: string;
4446
4821
  messageId?: string;
4447
4822
  name?: string;
@@ -4453,6 +4828,17 @@ export declare const useSession: (mediator: IMediatorModule) => {
4453
4828
  value: string | ({
4454
4829
  activityType: import("..").ActivityType;
4455
4830
  content: {
4831
+ artifacts: {
4832
+ name: string;
4833
+ outputId: string;
4834
+ size: number;
4835
+ type: string;
4836
+ previewUrl?: string;
4837
+ url?: string;
4838
+ }[];
4839
+ runId: string;
4840
+ status: "complete" | "empty";
4841
+ } | {
4456
4842
  nodes: Record<string, import("..").IFlowAgentNode>;
4457
4843
  task_id: string;
4458
4844
  task_name: string;
@@ -4470,16 +4856,271 @@ export declare const useSession: (mediator: IMediatorModule) => {
4470
4856
  originFileUrl?: string;
4471
4857
  url: string;
4472
4858
  }[];
4859
+ property?: {
4860
+ [x: string]: unknown;
4861
+ artifacts?: {
4862
+ name: string;
4863
+ outputId: string;
4864
+ size: number;
4865
+ type: string;
4866
+ previewUrl?: string;
4867
+ url?: string;
4868
+ }[];
4869
+ extra?: {
4870
+ [x: string]: unknown;
4871
+ cite?: string | {
4872
+ data: {
4873
+ key: string;
4874
+ value: string;
4875
+ }[];
4876
+ title: string;
4877
+ type: string;
4878
+ };
4879
+ command?: string;
4880
+ context?: Array<Record<string, unknown>>;
4881
+ resources?: Array<Record<string, unknown>>;
4882
+ };
4883
+ };
4473
4884
  role: import("..").MessageRole.Activity;
4885
+ createdAt?: string;
4886
+ id?: string;
4887
+ messageId?: string;
4888
+ name?: string;
4889
+ sessionCode?: string;
4890
+ status: import("..").MessageStatus;
4891
+ } | {
4892
+ content?: string;
4893
+ property?: {
4894
+ [x: string]: unknown;
4895
+ artifacts?: {
4896
+ name: string;
4897
+ outputId: string;
4898
+ size: number;
4899
+ type: string;
4900
+ previewUrl?: string;
4901
+ url?: string;
4902
+ }[];
4903
+ extra?: {
4904
+ [x: string]: unknown;
4905
+ cite?: string | {
4906
+ data: {
4907
+ key: string;
4908
+ value: string;
4909
+ }[];
4910
+ title: string;
4911
+ type: string;
4912
+ };
4913
+ command?: string;
4914
+ context?: Array<Record<string, unknown>>;
4915
+ resources?: Array<Record<string, unknown>>;
4916
+ };
4917
+ };
4918
+ role: import("..").MessageRole.Assistant;
4919
+ toolCalls?: {
4920
+ function: {
4921
+ arguments: string;
4922
+ description?: string;
4923
+ mcpName?: string;
4924
+ name: string;
4925
+ };
4926
+ id: string;
4927
+ type: import("..").MessageType.Function;
4928
+ }[];
4929
+ createdAt?: string;
4930
+ id?: string;
4931
+ messageId?: string;
4932
+ name?: string;
4933
+ sessionCode?: string;
4934
+ status: import("..").MessageStatus;
4935
+ } | {
4936
+ content: string;
4937
+ role: import("..").MessageRole.Developer;
4938
+ createdAt?: string;
4939
+ id?: string;
4940
+ messageId?: string;
4941
+ name?: string;
4942
+ sessionCode?: string;
4943
+ status: import("..").MessageStatus;
4944
+ } | {
4945
+ content: string;
4946
+ role: import("..").MessageRole.Guide;
4947
+ createdAt?: string;
4948
+ id?: string;
4949
+ messageId?: string;
4950
+ name?: string;
4951
+ sessionCode?: string;
4952
+ status: import("..").MessageStatus;
4953
+ } | {
4954
+ content: string;
4955
+ role: import("..").MessageRole.HiddenAssistant;
4956
+ createdAt?: string;
4957
+ id?: string;
4958
+ messageId?: string;
4959
+ name?: string;
4960
+ sessionCode?: string;
4961
+ status: import("..").MessageStatus;
4962
+ } | {
4963
+ content: string;
4964
+ role: import("..").MessageRole.HiddenGuide;
4965
+ createdAt?: string;
4966
+ id?: string;
4967
+ messageId?: string;
4968
+ name?: string;
4969
+ sessionCode?: string;
4970
+ status: import("..").MessageStatus;
4971
+ } | {
4972
+ content: string;
4973
+ role: import("..").MessageRole.Hidden;
4974
+ createdAt?: string;
4975
+ id?: string;
4976
+ messageId?: string;
4977
+ name?: string;
4978
+ sessionCode?: string;
4979
+ status: import("..").MessageStatus;
4980
+ } | {
4981
+ content: string;
4982
+ role: import("..").MessageRole.HiddenSystem;
4983
+ createdAt?: string;
4984
+ id?: string;
4985
+ messageId?: string;
4986
+ name?: string;
4987
+ sessionCode?: string;
4988
+ status: import("..").MessageStatus;
4989
+ } | {
4990
+ content: string;
4991
+ role: import("..").MessageRole.HiddenUser;
4992
+ createdAt?: string;
4993
+ id?: string;
4994
+ messageId?: string;
4995
+ name?: string;
4996
+ sessionCode?: string;
4997
+ status: import("..").MessageStatus;
4998
+ } | {
4999
+ content: string;
5000
+ role: import("..").MessageRole.Info;
5001
+ createdAt?: string;
5002
+ id?: string;
5003
+ messageId?: string;
5004
+ name?: string;
5005
+ sessionCode?: string;
5006
+ status: import("..").MessageStatus;
5007
+ } | {
5008
+ content: string;
5009
+ role: import("..").MessageRole.Pause;
5010
+ createdAt?: string;
5011
+ id?: string;
5012
+ messageId?: string;
5013
+ name?: string;
5014
+ sessionCode?: string;
5015
+ status: import("..").MessageStatus;
5016
+ } | {
5017
+ content: string;
5018
+ role: import("..").MessageRole.Placeholder;
5019
+ createdAt?: string;
5020
+ id?: string;
5021
+ messageId?: string;
5022
+ name?: string;
5023
+ sessionCode?: string;
5024
+ status: import("..").MessageStatus;
5025
+ } | {
5026
+ content: string[];
5027
+ duration?: number;
5028
+ role: import("..").MessageRole.Reasoning;
5029
+ createdAt?: string;
5030
+ id?: string;
5031
+ messageId?: string;
5032
+ name?: string;
5033
+ sessionCode?: string;
5034
+ status: import("..").MessageStatus;
5035
+ } | {
5036
+ content: string;
5037
+ role: import("..").MessageRole.System;
5038
+ createdAt?: string;
5039
+ id?: string;
5040
+ messageId?: string;
5041
+ name?: string;
5042
+ sessionCode?: string;
5043
+ status: import("..").MessageStatus;
5044
+ } | {
5045
+ content: string;
5046
+ role: import("..").MessageRole.TemplateAssistant;
5047
+ createdAt?: string;
5048
+ id?: string;
5049
+ messageId?: string;
5050
+ name?: string;
5051
+ sessionCode?: string;
5052
+ status: import("..").MessageStatus;
5053
+ } | {
5054
+ content: string;
5055
+ role: import("..").MessageRole.TemplateGuide;
5056
+ createdAt?: string;
5057
+ id?: string;
5058
+ messageId?: string;
5059
+ name?: string;
5060
+ sessionCode?: string;
5061
+ status: import("..").MessageStatus;
5062
+ } | {
5063
+ content: string;
5064
+ role: import("..").MessageRole.TemplateHidden;
5065
+ createdAt?: string;
4474
5066
  id?: string;
4475
5067
  messageId?: string;
4476
5068
  name?: string;
4477
5069
  sessionCode?: string;
4478
5070
  status: import("..").MessageStatus;
4479
5071
  } | {
4480
- content?: string;
5072
+ content: string;
5073
+ role: import("..").MessageRole.TemplateSystem;
5074
+ createdAt?: string;
5075
+ id?: string;
5076
+ messageId?: string;
5077
+ name?: string;
5078
+ sessionCode?: string;
5079
+ status: import("..").MessageStatus;
5080
+ } | {
5081
+ content: string;
5082
+ role: import("..").MessageRole.TemplateUser;
5083
+ createdAt?: string;
5084
+ id?: string;
5085
+ messageId?: string;
5086
+ name?: string;
5087
+ sessionCode?: string;
5088
+ status: import("..").MessageStatus;
5089
+ } | {
5090
+ content: string;
5091
+ duration?: number;
5092
+ error?: string;
5093
+ role: import("..").MessageRole.Tool;
5094
+ toolCallId: string;
5095
+ createdAt?: string;
5096
+ id?: string;
5097
+ messageId?: string;
5098
+ name?: string;
5099
+ sessionCode?: string;
5100
+ status: import("..").MessageStatus;
5101
+ } | {
5102
+ content: string | ({
5103
+ data?: string;
5104
+ filename?: string;
5105
+ id?: string;
5106
+ mimeType: string;
5107
+ size?: number;
5108
+ type: import("..").MessageType.Binary;
5109
+ url?: string;
5110
+ } | {
5111
+ text: string;
5112
+ type: import("..").MessageType.Text;
5113
+ })[];
4481
5114
  property?: {
4482
5115
  [x: string]: unknown;
5116
+ artifacts?: {
5117
+ name: string;
5118
+ outputId: string;
5119
+ size: number;
5120
+ type: string;
5121
+ previewUrl?: string;
5122
+ url?: string;
5123
+ }[];
4483
5124
  extra?: {
4484
5125
  [x: string]: unknown;
4485
5126
  cite?: string | {
@@ -4495,25 +5136,8 @@ export declare const useSession: (mediator: IMediatorModule) => {
4495
5136
  resources?: Array<Record<string, unknown>>;
4496
5137
  };
4497
5138
  };
4498
- role: import("..").MessageRole.Assistant;
4499
- toolCalls?: {
4500
- function: {
4501
- arguments: string;
4502
- description?: string;
4503
- mcpName?: string;
4504
- name: string;
4505
- };
4506
- id: string;
4507
- type: import("..").MessageType.Function;
4508
- }[];
4509
- id?: string;
4510
- messageId?: string;
4511
- name?: string;
4512
- sessionCode?: string;
4513
- status: import("..").MessageStatus;
4514
- } | {
4515
- content: string;
4516
- role: import("..").MessageRole.Developer;
5139
+ role: import("..").MessageRole.User;
5140
+ createdAt?: string;
4517
5141
  id?: string;
4518
5142
  messageId?: string;
4519
5143
  name?: string;
@@ -5126,199 +5750,25 @@ export declare const useSession: (mediator: IMediatorModule) => {
5126
5750
  not?: /*elided*/ any;
5127
5751
  extends?: string | string[] | undefined;
5128
5752
  format?: string | undefined;
5129
- };
5130
- expiresAt?: string;
5131
- metadata?: {
5132
- questions: {
5133
- header: string;
5134
- multiSelect?: boolean;
5135
- options?: {
5136
- description: string;
5137
- label: string;
5138
- }[];
5139
- question: string;
5140
- }[];
5141
- };
5142
- })[];
5143
- };
5144
- timestamp?: number;
5145
- };
5146
- role: import("..").MessageRole.Interrupt;
5147
- id?: string;
5148
- messageId?: string;
5149
- name?: string;
5150
- sessionCode?: string;
5151
- status: import("..").MessageStatus;
5152
- } | {
5153
- content: string;
5154
- role: import("..").MessageRole.Guide;
5155
- id?: string;
5156
- messageId?: string;
5157
- name?: string;
5158
- sessionCode?: string;
5159
- status: import("..").MessageStatus;
5160
- } | {
5161
- content: string;
5162
- role: import("..").MessageRole.HiddenAssistant;
5163
- id?: string;
5164
- messageId?: string;
5165
- name?: string;
5166
- sessionCode?: string;
5167
- status: import("..").MessageStatus;
5168
- } | {
5169
- content: string;
5170
- role: import("..").MessageRole.HiddenGuide;
5171
- id?: string;
5172
- messageId?: string;
5173
- name?: string;
5174
- sessionCode?: string;
5175
- status: import("..").MessageStatus;
5176
- } | {
5177
- content: string;
5178
- role: import("..").MessageRole.Hidden;
5179
- id?: string;
5180
- messageId?: string;
5181
- name?: string;
5182
- sessionCode?: string;
5183
- status: import("..").MessageStatus;
5184
- } | {
5185
- content: string;
5186
- role: import("..").MessageRole.HiddenSystem;
5187
- id?: string;
5188
- messageId?: string;
5189
- name?: string;
5190
- sessionCode?: string;
5191
- status: import("..").MessageStatus;
5192
- } | {
5193
- content: string;
5194
- role: import("..").MessageRole.HiddenUser;
5195
- id?: string;
5196
- messageId?: string;
5197
- name?: string;
5198
- sessionCode?: string;
5199
- status: import("..").MessageStatus;
5200
- } | {
5201
- content: string;
5202
- role: import("..").MessageRole.Info;
5203
- id?: string;
5204
- messageId?: string;
5205
- name?: string;
5206
- sessionCode?: string;
5207
- status: import("..").MessageStatus;
5208
- } | {
5209
- content: string;
5210
- role: import("..").MessageRole.Pause;
5211
- id?: string;
5212
- messageId?: string;
5213
- name?: string;
5214
- sessionCode?: string;
5215
- status: import("..").MessageStatus;
5216
- } | {
5217
- content: string;
5218
- role: import("..").MessageRole.Placeholder;
5219
- id?: string;
5220
- messageId?: string;
5221
- name?: string;
5222
- sessionCode?: string;
5223
- status: import("..").MessageStatus;
5224
- } | {
5225
- content: string[];
5226
- duration?: number;
5227
- role: import("..").MessageRole.Reasoning;
5228
- id?: string;
5229
- messageId?: string;
5230
- name?: string;
5231
- sessionCode?: string;
5232
- status: import("..").MessageStatus;
5233
- } | {
5234
- content: string;
5235
- role: import("..").MessageRole.System;
5236
- id?: string;
5237
- messageId?: string;
5238
- name?: string;
5239
- sessionCode?: string;
5240
- status: import("..").MessageStatus;
5241
- } | {
5242
- content: string;
5243
- role: import("..").MessageRole.TemplateAssistant;
5244
- id?: string;
5245
- messageId?: string;
5246
- name?: string;
5247
- sessionCode?: string;
5248
- status: import("..").MessageStatus;
5249
- } | {
5250
- content: string;
5251
- role: import("..").MessageRole.TemplateGuide;
5252
- id?: string;
5253
- messageId?: string;
5254
- name?: string;
5255
- sessionCode?: string;
5256
- status: import("..").MessageStatus;
5257
- } | {
5258
- content: string;
5259
- role: import("..").MessageRole.TemplateHidden;
5260
- id?: string;
5261
- messageId?: string;
5262
- name?: string;
5263
- sessionCode?: string;
5264
- status: import("..").MessageStatus;
5265
- } | {
5266
- content: string;
5267
- role: import("..").MessageRole.TemplateSystem;
5268
- id?: string;
5269
- messageId?: string;
5270
- name?: string;
5271
- sessionCode?: string;
5272
- status: import("..").MessageStatus;
5273
- } | {
5274
- content: string;
5275
- role: import("..").MessageRole.TemplateUser;
5276
- id?: string;
5277
- messageId?: string;
5278
- name?: string;
5279
- sessionCode?: string;
5280
- status: import("..").MessageStatus;
5281
- } | {
5282
- content: string;
5283
- duration?: number;
5284
- error?: string;
5285
- role: import("..").MessageRole.Tool;
5286
- toolCallId: string;
5287
- id?: string;
5288
- messageId?: string;
5289
- name?: string;
5290
- sessionCode?: string;
5291
- status: import("..").MessageStatus;
5292
- } | {
5293
- content: string | ({
5294
- data?: string;
5295
- filename?: string;
5296
- id?: string;
5297
- mimeType: string;
5298
- type: import("..").MessageType.Binary;
5299
- url?: string;
5300
- } | {
5301
- text: string;
5302
- type: import("..").MessageType.Text;
5303
- })[];
5304
- property?: {
5305
- [x: string]: unknown;
5306
- extra?: {
5307
- [x: string]: unknown;
5308
- cite?: string | {
5309
- data: {
5310
- key: string;
5311
- value: string;
5312
- }[];
5313
- title: string;
5314
- type: string;
5315
- };
5316
- command?: string;
5317
- context?: Array<Record<string, unknown>>;
5318
- resources?: Array<Record<string, unknown>>;
5753
+ };
5754
+ expiresAt?: string;
5755
+ metadata?: {
5756
+ questions: {
5757
+ header: string;
5758
+ multiSelect?: boolean;
5759
+ options?: {
5760
+ description: string;
5761
+ label: string;
5762
+ }[];
5763
+ question: string;
5764
+ }[];
5765
+ };
5766
+ })[];
5319
5767
  };
5768
+ timestamp?: number;
5320
5769
  };
5321
- role: import("..").MessageRole.User;
5770
+ role: import("..").MessageRole.Interrupt;
5771
+ createdAt?: string;
5322
5772
  id?: string;
5323
5773
  messageId?: string;
5324
5774
  name?: string;
@@ -5351,6 +5801,17 @@ export declare const useSession: (mediator: IMediatorModule) => {
5351
5801
  content: ({
5352
5802
  activityType: import("..").ActivityType;
5353
5803
  content: {
5804
+ artifacts: {
5805
+ name: string;
5806
+ outputId: string;
5807
+ size: number;
5808
+ type: string;
5809
+ previewUrl?: string;
5810
+ url?: string;
5811
+ }[];
5812
+ runId: string;
5813
+ status: "complete" | "empty";
5814
+ } | {
5354
5815
  nodes: Record<string, import("..").IFlowAgentNode>;
5355
5816
  task_id: string;
5356
5817
  task_name: string;
@@ -5368,7 +5829,33 @@ export declare const useSession: (mediator: IMediatorModule) => {
5368
5829
  originFileUrl?: string;
5369
5830
  url: string;
5370
5831
  }[];
5832
+ property?: {
5833
+ [x: string]: unknown;
5834
+ artifacts?: {
5835
+ name: string;
5836
+ outputId: string;
5837
+ size: number;
5838
+ type: string;
5839
+ previewUrl?: string;
5840
+ url?: string;
5841
+ }[];
5842
+ extra?: {
5843
+ [x: string]: unknown;
5844
+ cite?: string | {
5845
+ data: {
5846
+ key: string;
5847
+ value: string;
5848
+ }[];
5849
+ title: string;
5850
+ type: string;
5851
+ };
5852
+ command?: string;
5853
+ context?: Array<Record<string, unknown>>;
5854
+ resources?: Array<Record<string, unknown>>;
5855
+ };
5856
+ };
5371
5857
  role: import("..").MessageRole.Activity;
5858
+ createdAt?: string;
5372
5859
  id?: string;
5373
5860
  messageId?: string;
5374
5861
  name?: string;
@@ -5378,6 +5865,14 @@ export declare const useSession: (mediator: IMediatorModule) => {
5378
5865
  content?: string;
5379
5866
  property?: {
5380
5867
  [x: string]: unknown;
5868
+ artifacts?: {
5869
+ name: string;
5870
+ outputId: string;
5871
+ size: number;
5872
+ type: string;
5873
+ previewUrl?: string;
5874
+ url?: string;
5875
+ }[];
5381
5876
  extra?: {
5382
5877
  [x: string]: unknown;
5383
5878
  cite?: string | {
@@ -5404,6 +5899,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
5404
5899
  id: string;
5405
5900
  type: import("..").MessageType.Function;
5406
5901
  }[];
5902
+ createdAt?: string;
5407
5903
  id?: string;
5408
5904
  messageId?: string;
5409
5905
  name?: string;
@@ -5412,6 +5908,209 @@ export declare const useSession: (mediator: IMediatorModule) => {
5412
5908
  } | {
5413
5909
  content: string;
5414
5910
  role: import("..").MessageRole.Developer;
5911
+ createdAt?: string;
5912
+ id?: string;
5913
+ messageId?: string;
5914
+ name?: string;
5915
+ sessionCode?: string;
5916
+ status: import("..").MessageStatus;
5917
+ } | {
5918
+ content: string;
5919
+ role: import("..").MessageRole.Guide;
5920
+ createdAt?: string;
5921
+ id?: string;
5922
+ messageId?: string;
5923
+ name?: string;
5924
+ sessionCode?: string;
5925
+ status: import("..").MessageStatus;
5926
+ } | {
5927
+ content: string;
5928
+ role: import("..").MessageRole.HiddenAssistant;
5929
+ createdAt?: string;
5930
+ id?: string;
5931
+ messageId?: string;
5932
+ name?: string;
5933
+ sessionCode?: string;
5934
+ status: import("..").MessageStatus;
5935
+ } | {
5936
+ content: string;
5937
+ role: import("..").MessageRole.HiddenGuide;
5938
+ createdAt?: string;
5939
+ id?: string;
5940
+ messageId?: string;
5941
+ name?: string;
5942
+ sessionCode?: string;
5943
+ status: import("..").MessageStatus;
5944
+ } | {
5945
+ content: string;
5946
+ role: import("..").MessageRole.Hidden;
5947
+ createdAt?: string;
5948
+ id?: string;
5949
+ messageId?: string;
5950
+ name?: string;
5951
+ sessionCode?: string;
5952
+ status: import("..").MessageStatus;
5953
+ } | {
5954
+ content: string;
5955
+ role: import("..").MessageRole.HiddenSystem;
5956
+ createdAt?: string;
5957
+ id?: string;
5958
+ messageId?: string;
5959
+ name?: string;
5960
+ sessionCode?: string;
5961
+ status: import("..").MessageStatus;
5962
+ } | {
5963
+ content: string;
5964
+ role: import("..").MessageRole.HiddenUser;
5965
+ createdAt?: string;
5966
+ id?: string;
5967
+ messageId?: string;
5968
+ name?: string;
5969
+ sessionCode?: string;
5970
+ status: import("..").MessageStatus;
5971
+ } | {
5972
+ content: string;
5973
+ role: import("..").MessageRole.Info;
5974
+ createdAt?: string;
5975
+ id?: string;
5976
+ messageId?: string;
5977
+ name?: string;
5978
+ sessionCode?: string;
5979
+ status: import("..").MessageStatus;
5980
+ } | {
5981
+ content: string;
5982
+ role: import("..").MessageRole.Pause;
5983
+ createdAt?: string;
5984
+ id?: string;
5985
+ messageId?: string;
5986
+ name?: string;
5987
+ sessionCode?: string;
5988
+ status: import("..").MessageStatus;
5989
+ } | {
5990
+ content: string;
5991
+ role: import("..").MessageRole.Placeholder;
5992
+ createdAt?: string;
5993
+ id?: string;
5994
+ messageId?: string;
5995
+ name?: string;
5996
+ sessionCode?: string;
5997
+ status: import("..").MessageStatus;
5998
+ } | {
5999
+ content: string[];
6000
+ duration?: number;
6001
+ role: import("..").MessageRole.Reasoning;
6002
+ createdAt?: string;
6003
+ id?: string;
6004
+ messageId?: string;
6005
+ name?: string;
6006
+ sessionCode?: string;
6007
+ status: import("..").MessageStatus;
6008
+ } | {
6009
+ content: string;
6010
+ role: import("..").MessageRole.System;
6011
+ createdAt?: string;
6012
+ id?: string;
6013
+ messageId?: string;
6014
+ name?: string;
6015
+ sessionCode?: string;
6016
+ status: import("..").MessageStatus;
6017
+ } | {
6018
+ content: string;
6019
+ role: import("..").MessageRole.TemplateAssistant;
6020
+ createdAt?: string;
6021
+ id?: string;
6022
+ messageId?: string;
6023
+ name?: string;
6024
+ sessionCode?: string;
6025
+ status: import("..").MessageStatus;
6026
+ } | {
6027
+ content: string;
6028
+ role: import("..").MessageRole.TemplateGuide;
6029
+ createdAt?: string;
6030
+ id?: string;
6031
+ messageId?: string;
6032
+ name?: string;
6033
+ sessionCode?: string;
6034
+ status: import("..").MessageStatus;
6035
+ } | {
6036
+ content: string;
6037
+ role: import("..").MessageRole.TemplateHidden;
6038
+ createdAt?: string;
6039
+ id?: string;
6040
+ messageId?: string;
6041
+ name?: string;
6042
+ sessionCode?: string;
6043
+ status: import("..").MessageStatus;
6044
+ } | {
6045
+ content: string;
6046
+ role: import("..").MessageRole.TemplateSystem;
6047
+ createdAt?: string;
6048
+ id?: string;
6049
+ messageId?: string;
6050
+ name?: string;
6051
+ sessionCode?: string;
6052
+ status: import("..").MessageStatus;
6053
+ } | {
6054
+ content: string;
6055
+ role: import("..").MessageRole.TemplateUser;
6056
+ createdAt?: string;
6057
+ id?: string;
6058
+ messageId?: string;
6059
+ name?: string;
6060
+ sessionCode?: string;
6061
+ status: import("..").MessageStatus;
6062
+ } | {
6063
+ content: string;
6064
+ duration?: number;
6065
+ error?: string;
6066
+ role: import("..").MessageRole.Tool;
6067
+ toolCallId: string;
6068
+ createdAt?: string;
6069
+ id?: string;
6070
+ messageId?: string;
6071
+ name?: string;
6072
+ sessionCode?: string;
6073
+ status: import("..").MessageStatus;
6074
+ } | {
6075
+ content: string | ({
6076
+ data?: string;
6077
+ filename?: string;
6078
+ id?: string;
6079
+ mimeType: string;
6080
+ size?: number;
6081
+ type: import("..").MessageType.Binary;
6082
+ url?: string;
6083
+ } | {
6084
+ text: string;
6085
+ type: import("..").MessageType.Text;
6086
+ })[];
6087
+ property?: {
6088
+ [x: string]: unknown;
6089
+ artifacts?: {
6090
+ name: string;
6091
+ outputId: string;
6092
+ size: number;
6093
+ type: string;
6094
+ previewUrl?: string;
6095
+ url?: string;
6096
+ }[];
6097
+ extra?: {
6098
+ [x: string]: unknown;
6099
+ cite?: string | {
6100
+ data: {
6101
+ key: string;
6102
+ value: string;
6103
+ }[];
6104
+ title: string;
6105
+ type: string;
6106
+ };
6107
+ command?: string;
6108
+ context?: Array<Record<string, unknown>>;
6109
+ resources?: Array<Record<string, unknown>>;
6110
+ };
6111
+ };
6112
+ role: import("..").MessageRole.User;
6113
+ createdAt?: string;
5415
6114
  id?: string;
5416
6115
  messageId?: string;
5417
6116
  name?: string;
@@ -5935,288 +6634,114 @@ export declare const useSession: (mediator: IMediatorModule) => {
5935
6634
  <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S[];
5936
6635
  (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
5937
6636
  };
5938
- reduce: {
5939
- (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
5940
- (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
5941
- <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
5942
- };
5943
- reduceRight: {
5944
- (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
5945
- (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
5946
- <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
5947
- };
5948
- find: {
5949
- <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
5950
- (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
5951
- };
5952
- findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
5953
- fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
5954
- copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
5955
- entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
5956
- keys: () => ArrayIterator<number>;
5957
- values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
5958
- includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
5959
- flatMap: <U, This = undefined>(callback: (this: This, value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U | readonly U[], thisArg?: This) => U[];
5960
- flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
5961
- at: (index: number) => import("json-schema").JSONSchema4Type;
5962
- findLast: {
5963
- <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
5964
- (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
5965
- };
5966
- findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
5967
- toReversed: () => import("json-schema").JSONSchema4Type[];
5968
- toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
5969
- toSpliced: {
5970
- (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
5971
- (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
6637
+ reduce: {
6638
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
6639
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
6640
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
5972
6641
  };
5973
- with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
5974
- [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
5975
- readonly [Symbol.unscopables]: {
5976
- [x: number]: boolean;
5977
- length?: boolean;
5978
- toString?: boolean;
5979
- toLocaleString?: boolean;
5980
- pop?: boolean;
5981
- push?: boolean;
5982
- concat?: boolean;
5983
- join?: boolean;
5984
- reverse?: boolean;
5985
- shift?: boolean;
5986
- slice?: boolean;
5987
- sort?: boolean;
5988
- splice?: boolean;
5989
- unshift?: boolean;
5990
- indexOf?: boolean;
5991
- lastIndexOf?: boolean;
5992
- every?: boolean;
5993
- some?: boolean;
5994
- forEach?: boolean;
5995
- map?: boolean;
5996
- filter?: boolean;
5997
- reduce?: boolean;
5998
- reduceRight?: boolean;
5999
- find?: boolean;
6000
- findIndex?: boolean;
6001
- fill?: boolean;
6002
- copyWithin?: boolean;
6003
- entries?: boolean;
6004
- keys?: boolean;
6005
- values?: boolean;
6006
- includes?: boolean;
6007
- flatMap?: boolean;
6008
- flat?: boolean;
6009
- at?: boolean;
6010
- findLast?: boolean;
6011
- findLastIndex?: boolean;
6012
- toReversed?: boolean;
6013
- toSorted?: boolean;
6014
- toSpliced?: boolean;
6015
- with?: boolean;
6016
- [Symbol.iterator]?: boolean;
6017
- readonly [Symbol.unscopables]?: boolean;
6642
+ reduceRight: {
6643
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
6644
+ (callbackfn: (previousValue: import("json-schema").JSONSchema4Type, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => import("json-schema").JSONSchema4Type, initialValue: import("json-schema").JSONSchema4Type): import("json-schema").JSONSchema4Type;
6645
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
6018
6646
  };
6019
- })[];
6020
- type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
6021
- allOf?: /*elided*/ any[];
6022
- anyOf?: /*elided*/ any[];
6023
- oneOf?: /*elided*/ any[];
6024
- not?: /*elided*/ any;
6025
- extends?: string | string[] | undefined;
6026
- format?: string | undefined;
6027
- };
6028
- expiresAt?: string;
6029
- metadata?: {
6030
- questions: {
6031
- header: string;
6032
- multiSelect?: boolean;
6033
- options?: {
6034
- description: string;
6035
- label: string;
6036
- }[];
6037
- question: string;
6038
- }[];
6039
- };
6040
- })[];
6041
- };
6042
- timestamp?: number;
6043
- };
6044
- role: import("..").MessageRole.Interrupt;
6045
- id?: string;
6046
- messageId?: string;
6047
- name?: string;
6048
- sessionCode?: string;
6049
- status: import("..").MessageStatus;
6050
- } | {
6051
- content: string;
6052
- role: import("..").MessageRole.Guide;
6053
- id?: string;
6054
- messageId?: string;
6055
- name?: string;
6056
- sessionCode?: string;
6057
- status: import("..").MessageStatus;
6058
- } | {
6059
- content: string;
6060
- role: import("..").MessageRole.HiddenAssistant;
6061
- id?: string;
6062
- messageId?: string;
6063
- name?: string;
6064
- sessionCode?: string;
6065
- status: import("..").MessageStatus;
6066
- } | {
6067
- content: string;
6068
- role: import("..").MessageRole.HiddenGuide;
6069
- id?: string;
6070
- messageId?: string;
6071
- name?: string;
6072
- sessionCode?: string;
6073
- status: import("..").MessageStatus;
6074
- } | {
6075
- content: string;
6076
- role: import("..").MessageRole.Hidden;
6077
- id?: string;
6078
- messageId?: string;
6079
- name?: string;
6080
- sessionCode?: string;
6081
- status: import("..").MessageStatus;
6082
- } | {
6083
- content: string;
6084
- role: import("..").MessageRole.HiddenSystem;
6085
- id?: string;
6086
- messageId?: string;
6087
- name?: string;
6088
- sessionCode?: string;
6089
- status: import("..").MessageStatus;
6090
- } | {
6091
- content: string;
6092
- role: import("..").MessageRole.HiddenUser;
6093
- id?: string;
6094
- messageId?: string;
6095
- name?: string;
6096
- sessionCode?: string;
6097
- status: import("..").MessageStatus;
6098
- } | {
6099
- content: string;
6100
- role: import("..").MessageRole.Info;
6101
- id?: string;
6102
- messageId?: string;
6103
- name?: string;
6104
- sessionCode?: string;
6105
- status: import("..").MessageStatus;
6106
- } | {
6107
- content: string;
6108
- role: import("..").MessageRole.Pause;
6109
- id?: string;
6110
- messageId?: string;
6111
- name?: string;
6112
- sessionCode?: string;
6113
- status: import("..").MessageStatus;
6114
- } | {
6115
- content: string;
6116
- role: import("..").MessageRole.Placeholder;
6117
- id?: string;
6118
- messageId?: string;
6119
- name?: string;
6120
- sessionCode?: string;
6121
- status: import("..").MessageStatus;
6122
- } | {
6123
- content: string[];
6124
- duration?: number;
6125
- role: import("..").MessageRole.Reasoning;
6126
- id?: string;
6127
- messageId?: string;
6128
- name?: string;
6129
- sessionCode?: string;
6130
- status: import("..").MessageStatus;
6131
- } | {
6132
- content: string;
6133
- role: import("..").MessageRole.System;
6134
- id?: string;
6135
- messageId?: string;
6136
- name?: string;
6137
- sessionCode?: string;
6138
- status: import("..").MessageStatus;
6139
- } | {
6140
- content: string;
6141
- role: import("..").MessageRole.TemplateAssistant;
6142
- id?: string;
6143
- messageId?: string;
6144
- name?: string;
6145
- sessionCode?: string;
6146
- status: import("..").MessageStatus;
6147
- } | {
6148
- content: string;
6149
- role: import("..").MessageRole.TemplateGuide;
6150
- id?: string;
6151
- messageId?: string;
6152
- name?: string;
6153
- sessionCode?: string;
6154
- status: import("..").MessageStatus;
6155
- } | {
6156
- content: string;
6157
- role: import("..").MessageRole.TemplateHidden;
6158
- id?: string;
6159
- messageId?: string;
6160
- name?: string;
6161
- sessionCode?: string;
6162
- status: import("..").MessageStatus;
6163
- } | {
6164
- content: string;
6165
- role: import("..").MessageRole.TemplateSystem;
6166
- id?: string;
6167
- messageId?: string;
6168
- name?: string;
6169
- sessionCode?: string;
6170
- status: import("..").MessageStatus;
6171
- } | {
6172
- content: string;
6173
- role: import("..").MessageRole.TemplateUser;
6174
- id?: string;
6175
- messageId?: string;
6176
- name?: string;
6177
- sessionCode?: string;
6178
- status: import("..").MessageStatus;
6179
- } | {
6180
- content: string;
6181
- duration?: number;
6182
- error?: string;
6183
- role: import("..").MessageRole.Tool;
6184
- toolCallId: string;
6185
- id?: string;
6186
- messageId?: string;
6187
- name?: string;
6188
- sessionCode?: string;
6189
- status: import("..").MessageStatus;
6190
- } | {
6191
- content: string | ({
6192
- data?: string;
6193
- filename?: string;
6194
- id?: string;
6195
- mimeType: string;
6196
- type: import("..").MessageType.Binary;
6197
- url?: string;
6198
- } | {
6199
- text: string;
6200
- type: import("..").MessageType.Text;
6201
- })[];
6202
- property?: {
6203
- [x: string]: unknown;
6204
- extra?: {
6205
- [x: string]: unknown;
6206
- cite?: string | {
6207
- data: {
6208
- key: string;
6209
- value: string;
6210
- }[];
6211
- title: string;
6212
- type: string;
6213
- };
6214
- command?: string;
6215
- context?: Array<Record<string, unknown>>;
6216
- resources?: Array<Record<string, unknown>>;
6647
+ find: {
6648
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
6649
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
6650
+ };
6651
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
6652
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
6653
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
6654
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
6655
+ keys: () => ArrayIterator<number>;
6656
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
6657
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
6658
+ flatMap: <U, This = undefined>(callback: (this: This, value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U | readonly U[], thisArg?: This) => U[];
6659
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
6660
+ at: (index: number) => import("json-schema").JSONSchema4Type;
6661
+ findLast: {
6662
+ <S extends import("json-schema").JSONSchema4Type>(predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => value is S, thisArg?: any): S;
6663
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
6664
+ };
6665
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
6666
+ toReversed: () => import("json-schema").JSONSchema4Type[];
6667
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
6668
+ toSpliced: {
6669
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
6670
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
6671
+ };
6672
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
6673
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
6674
+ readonly [Symbol.unscopables]: {
6675
+ [x: number]: boolean;
6676
+ length?: boolean;
6677
+ toString?: boolean;
6678
+ toLocaleString?: boolean;
6679
+ pop?: boolean;
6680
+ push?: boolean;
6681
+ concat?: boolean;
6682
+ join?: boolean;
6683
+ reverse?: boolean;
6684
+ shift?: boolean;
6685
+ slice?: boolean;
6686
+ sort?: boolean;
6687
+ splice?: boolean;
6688
+ unshift?: boolean;
6689
+ indexOf?: boolean;
6690
+ lastIndexOf?: boolean;
6691
+ every?: boolean;
6692
+ some?: boolean;
6693
+ forEach?: boolean;
6694
+ map?: boolean;
6695
+ filter?: boolean;
6696
+ reduce?: boolean;
6697
+ reduceRight?: boolean;
6698
+ find?: boolean;
6699
+ findIndex?: boolean;
6700
+ fill?: boolean;
6701
+ copyWithin?: boolean;
6702
+ entries?: boolean;
6703
+ keys?: boolean;
6704
+ values?: boolean;
6705
+ includes?: boolean;
6706
+ flatMap?: boolean;
6707
+ flat?: boolean;
6708
+ at?: boolean;
6709
+ findLast?: boolean;
6710
+ findLastIndex?: boolean;
6711
+ toReversed?: boolean;
6712
+ toSorted?: boolean;
6713
+ toSpliced?: boolean;
6714
+ with?: boolean;
6715
+ [Symbol.iterator]?: boolean;
6716
+ readonly [Symbol.unscopables]?: boolean;
6717
+ };
6718
+ })[];
6719
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
6720
+ allOf?: /*elided*/ any[];
6721
+ anyOf?: /*elided*/ any[];
6722
+ oneOf?: /*elided*/ any[];
6723
+ not?: /*elided*/ any;
6724
+ extends?: string | string[] | undefined;
6725
+ format?: string | undefined;
6726
+ };
6727
+ expiresAt?: string;
6728
+ metadata?: {
6729
+ questions: {
6730
+ header: string;
6731
+ multiSelect?: boolean;
6732
+ options?: {
6733
+ description: string;
6734
+ label: string;
6735
+ }[];
6736
+ question: string;
6737
+ }[];
6738
+ };
6739
+ })[];
6217
6740
  };
6741
+ timestamp?: number;
6218
6742
  };
6219
- role: import("..").MessageRole.User;
6743
+ role: import("..").MessageRole.Interrupt;
6744
+ createdAt?: string;
6220
6745
  id?: string;
6221
6746
  messageId?: string;
6222
6747
  name?: string;
@@ -6228,6 +6753,17 @@ export declare const useSession: (mediator: IMediatorModule) => {
6228
6753
  value: string | ({
6229
6754
  activityType: import("..").ActivityType;
6230
6755
  content: {
6756
+ artifacts: {
6757
+ name: string;
6758
+ outputId: string;
6759
+ size: number;
6760
+ type: string;
6761
+ previewUrl?: string;
6762
+ url?: string;
6763
+ }[];
6764
+ runId: string;
6765
+ status: "complete" | "empty";
6766
+ } | {
6231
6767
  nodes: Record<string, import("..").IFlowAgentNode>;
6232
6768
  task_id: string;
6233
6769
  task_name: string;
@@ -6245,16 +6781,271 @@ export declare const useSession: (mediator: IMediatorModule) => {
6245
6781
  originFileUrl?: string;
6246
6782
  url: string;
6247
6783
  }[];
6784
+ property?: {
6785
+ [x: string]: unknown;
6786
+ artifacts?: {
6787
+ name: string;
6788
+ outputId: string;
6789
+ size: number;
6790
+ type: string;
6791
+ previewUrl?: string;
6792
+ url?: string;
6793
+ }[];
6794
+ extra?: {
6795
+ [x: string]: unknown;
6796
+ cite?: string | {
6797
+ data: {
6798
+ key: string;
6799
+ value: string;
6800
+ }[];
6801
+ title: string;
6802
+ type: string;
6803
+ };
6804
+ command?: string;
6805
+ context?: Array<Record<string, unknown>>;
6806
+ resources?: Array<Record<string, unknown>>;
6807
+ };
6808
+ };
6248
6809
  role: import("..").MessageRole.Activity;
6810
+ createdAt?: string;
6811
+ id?: string;
6812
+ messageId?: string;
6813
+ name?: string;
6814
+ sessionCode?: string;
6815
+ status: import("..").MessageStatus;
6816
+ } | {
6817
+ content?: string;
6818
+ property?: {
6819
+ [x: string]: unknown;
6820
+ artifacts?: {
6821
+ name: string;
6822
+ outputId: string;
6823
+ size: number;
6824
+ type: string;
6825
+ previewUrl?: string;
6826
+ url?: string;
6827
+ }[];
6828
+ extra?: {
6829
+ [x: string]: unknown;
6830
+ cite?: string | {
6831
+ data: {
6832
+ key: string;
6833
+ value: string;
6834
+ }[];
6835
+ title: string;
6836
+ type: string;
6837
+ };
6838
+ command?: string;
6839
+ context?: Array<Record<string, unknown>>;
6840
+ resources?: Array<Record<string, unknown>>;
6841
+ };
6842
+ };
6843
+ role: import("..").MessageRole.Assistant;
6844
+ toolCalls?: {
6845
+ function: {
6846
+ arguments: string;
6847
+ description?: string;
6848
+ mcpName?: string;
6849
+ name: string;
6850
+ };
6851
+ id: string;
6852
+ type: import("..").MessageType.Function;
6853
+ }[];
6854
+ createdAt?: string;
6855
+ id?: string;
6856
+ messageId?: string;
6857
+ name?: string;
6858
+ sessionCode?: string;
6859
+ status: import("..").MessageStatus;
6860
+ } | {
6861
+ content: string;
6862
+ role: import("..").MessageRole.Developer;
6863
+ createdAt?: string;
6864
+ id?: string;
6865
+ messageId?: string;
6866
+ name?: string;
6867
+ sessionCode?: string;
6868
+ status: import("..").MessageStatus;
6869
+ } | {
6870
+ content: string;
6871
+ role: import("..").MessageRole.Guide;
6872
+ createdAt?: string;
6873
+ id?: string;
6874
+ messageId?: string;
6875
+ name?: string;
6876
+ sessionCode?: string;
6877
+ status: import("..").MessageStatus;
6878
+ } | {
6879
+ content: string;
6880
+ role: import("..").MessageRole.HiddenAssistant;
6881
+ createdAt?: string;
6882
+ id?: string;
6883
+ messageId?: string;
6884
+ name?: string;
6885
+ sessionCode?: string;
6886
+ status: import("..").MessageStatus;
6887
+ } | {
6888
+ content: string;
6889
+ role: import("..").MessageRole.HiddenGuide;
6890
+ createdAt?: string;
6891
+ id?: string;
6892
+ messageId?: string;
6893
+ name?: string;
6894
+ sessionCode?: string;
6895
+ status: import("..").MessageStatus;
6896
+ } | {
6897
+ content: string;
6898
+ role: import("..").MessageRole.Hidden;
6899
+ createdAt?: string;
6900
+ id?: string;
6901
+ messageId?: string;
6902
+ name?: string;
6903
+ sessionCode?: string;
6904
+ status: import("..").MessageStatus;
6905
+ } | {
6906
+ content: string;
6907
+ role: import("..").MessageRole.HiddenSystem;
6908
+ createdAt?: string;
6909
+ id?: string;
6910
+ messageId?: string;
6911
+ name?: string;
6912
+ sessionCode?: string;
6913
+ status: import("..").MessageStatus;
6914
+ } | {
6915
+ content: string;
6916
+ role: import("..").MessageRole.HiddenUser;
6917
+ createdAt?: string;
6918
+ id?: string;
6919
+ messageId?: string;
6920
+ name?: string;
6921
+ sessionCode?: string;
6922
+ status: import("..").MessageStatus;
6923
+ } | {
6924
+ content: string;
6925
+ role: import("..").MessageRole.Info;
6926
+ createdAt?: string;
6927
+ id?: string;
6928
+ messageId?: string;
6929
+ name?: string;
6930
+ sessionCode?: string;
6931
+ status: import("..").MessageStatus;
6932
+ } | {
6933
+ content: string;
6934
+ role: import("..").MessageRole.Pause;
6935
+ createdAt?: string;
6936
+ id?: string;
6937
+ messageId?: string;
6938
+ name?: string;
6939
+ sessionCode?: string;
6940
+ status: import("..").MessageStatus;
6941
+ } | {
6942
+ content: string;
6943
+ role: import("..").MessageRole.Placeholder;
6944
+ createdAt?: string;
6945
+ id?: string;
6946
+ messageId?: string;
6947
+ name?: string;
6948
+ sessionCode?: string;
6949
+ status: import("..").MessageStatus;
6950
+ } | {
6951
+ content: string[];
6952
+ duration?: number;
6953
+ role: import("..").MessageRole.Reasoning;
6954
+ createdAt?: string;
6955
+ id?: string;
6956
+ messageId?: string;
6957
+ name?: string;
6958
+ sessionCode?: string;
6959
+ status: import("..").MessageStatus;
6960
+ } | {
6961
+ content: string;
6962
+ role: import("..").MessageRole.System;
6963
+ createdAt?: string;
6964
+ id?: string;
6965
+ messageId?: string;
6966
+ name?: string;
6967
+ sessionCode?: string;
6968
+ status: import("..").MessageStatus;
6969
+ } | {
6970
+ content: string;
6971
+ role: import("..").MessageRole.TemplateAssistant;
6972
+ createdAt?: string;
6249
6973
  id?: string;
6250
6974
  messageId?: string;
6251
6975
  name?: string;
6252
6976
  sessionCode?: string;
6253
6977
  status: import("..").MessageStatus;
6254
6978
  } | {
6255
- content?: string;
6979
+ content: string;
6980
+ role: import("..").MessageRole.TemplateGuide;
6981
+ createdAt?: string;
6982
+ id?: string;
6983
+ messageId?: string;
6984
+ name?: string;
6985
+ sessionCode?: string;
6986
+ status: import("..").MessageStatus;
6987
+ } | {
6988
+ content: string;
6989
+ role: import("..").MessageRole.TemplateHidden;
6990
+ createdAt?: string;
6991
+ id?: string;
6992
+ messageId?: string;
6993
+ name?: string;
6994
+ sessionCode?: string;
6995
+ status: import("..").MessageStatus;
6996
+ } | {
6997
+ content: string;
6998
+ role: import("..").MessageRole.TemplateSystem;
6999
+ createdAt?: string;
7000
+ id?: string;
7001
+ messageId?: string;
7002
+ name?: string;
7003
+ sessionCode?: string;
7004
+ status: import("..").MessageStatus;
7005
+ } | {
7006
+ content: string;
7007
+ role: import("..").MessageRole.TemplateUser;
7008
+ createdAt?: string;
7009
+ id?: string;
7010
+ messageId?: string;
7011
+ name?: string;
7012
+ sessionCode?: string;
7013
+ status: import("..").MessageStatus;
7014
+ } | {
7015
+ content: string;
7016
+ duration?: number;
7017
+ error?: string;
7018
+ role: import("..").MessageRole.Tool;
7019
+ toolCallId: string;
7020
+ createdAt?: string;
7021
+ id?: string;
7022
+ messageId?: string;
7023
+ name?: string;
7024
+ sessionCode?: string;
7025
+ status: import("..").MessageStatus;
7026
+ } | {
7027
+ content: string | ({
7028
+ data?: string;
7029
+ filename?: string;
7030
+ id?: string;
7031
+ mimeType: string;
7032
+ size?: number;
7033
+ type: import("..").MessageType.Binary;
7034
+ url?: string;
7035
+ } | {
7036
+ text: string;
7037
+ type: import("..").MessageType.Text;
7038
+ })[];
6256
7039
  property?: {
6257
7040
  [x: string]: unknown;
7041
+ artifacts?: {
7042
+ name: string;
7043
+ outputId: string;
7044
+ size: number;
7045
+ type: string;
7046
+ previewUrl?: string;
7047
+ url?: string;
7048
+ }[];
6258
7049
  extra?: {
6259
7050
  [x: string]: unknown;
6260
7051
  cite?: string | {
@@ -6270,25 +7061,8 @@ export declare const useSession: (mediator: IMediatorModule) => {
6270
7061
  resources?: Array<Record<string, unknown>>;
6271
7062
  };
6272
7063
  };
6273
- role: import("..").MessageRole.Assistant;
6274
- toolCalls?: {
6275
- function: {
6276
- arguments: string;
6277
- description?: string;
6278
- mcpName?: string;
6279
- name: string;
6280
- };
6281
- id: string;
6282
- type: import("..").MessageType.Function;
6283
- }[];
6284
- id?: string;
6285
- messageId?: string;
6286
- name?: string;
6287
- sessionCode?: string;
6288
- status: import("..").MessageStatus;
6289
- } | {
6290
- content: string;
6291
- role: import("..").MessageRole.Developer;
7064
+ role: import("..").MessageRole.User;
7065
+ createdAt?: string;
6292
7066
  id?: string;
6293
7067
  messageId?: string;
6294
7068
  name?: string;
@@ -6919,181 +7693,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
6919
7693
  timestamp?: number;
6920
7694
  };
6921
7695
  role: import("..").MessageRole.Interrupt;
6922
- id?: string;
6923
- messageId?: string;
6924
- name?: string;
6925
- sessionCode?: string;
6926
- status: import("..").MessageStatus;
6927
- } | {
6928
- content: string;
6929
- role: import("..").MessageRole.Guide;
6930
- id?: string;
6931
- messageId?: string;
6932
- name?: string;
6933
- sessionCode?: string;
6934
- status: import("..").MessageStatus;
6935
- } | {
6936
- content: string;
6937
- role: import("..").MessageRole.HiddenAssistant;
6938
- id?: string;
6939
- messageId?: string;
6940
- name?: string;
6941
- sessionCode?: string;
6942
- status: import("..").MessageStatus;
6943
- } | {
6944
- content: string;
6945
- role: import("..").MessageRole.HiddenGuide;
6946
- id?: string;
6947
- messageId?: string;
6948
- name?: string;
6949
- sessionCode?: string;
6950
- status: import("..").MessageStatus;
6951
- } | {
6952
- content: string;
6953
- role: import("..").MessageRole.Hidden;
6954
- id?: string;
6955
- messageId?: string;
6956
- name?: string;
6957
- sessionCode?: string;
6958
- status: import("..").MessageStatus;
6959
- } | {
6960
- content: string;
6961
- role: import("..").MessageRole.HiddenSystem;
6962
- id?: string;
6963
- messageId?: string;
6964
- name?: string;
6965
- sessionCode?: string;
6966
- status: import("..").MessageStatus;
6967
- } | {
6968
- content: string;
6969
- role: import("..").MessageRole.HiddenUser;
6970
- id?: string;
6971
- messageId?: string;
6972
- name?: string;
6973
- sessionCode?: string;
6974
- status: import("..").MessageStatus;
6975
- } | {
6976
- content: string;
6977
- role: import("..").MessageRole.Info;
6978
- id?: string;
6979
- messageId?: string;
6980
- name?: string;
6981
- sessionCode?: string;
6982
- status: import("..").MessageStatus;
6983
- } | {
6984
- content: string;
6985
- role: import("..").MessageRole.Pause;
6986
- id?: string;
6987
- messageId?: string;
6988
- name?: string;
6989
- sessionCode?: string;
6990
- status: import("..").MessageStatus;
6991
- } | {
6992
- content: string;
6993
- role: import("..").MessageRole.Placeholder;
6994
- id?: string;
6995
- messageId?: string;
6996
- name?: string;
6997
- sessionCode?: string;
6998
- status: import("..").MessageStatus;
6999
- } | {
7000
- content: string[];
7001
- duration?: number;
7002
- role: import("..").MessageRole.Reasoning;
7003
- id?: string;
7004
- messageId?: string;
7005
- name?: string;
7006
- sessionCode?: string;
7007
- status: import("..").MessageStatus;
7008
- } | {
7009
- content: string;
7010
- role: import("..").MessageRole.System;
7011
- id?: string;
7012
- messageId?: string;
7013
- name?: string;
7014
- sessionCode?: string;
7015
- status: import("..").MessageStatus;
7016
- } | {
7017
- content: string;
7018
- role: import("..").MessageRole.TemplateAssistant;
7019
- id?: string;
7020
- messageId?: string;
7021
- name?: string;
7022
- sessionCode?: string;
7023
- status: import("..").MessageStatus;
7024
- } | {
7025
- content: string;
7026
- role: import("..").MessageRole.TemplateGuide;
7027
- id?: string;
7028
- messageId?: string;
7029
- name?: string;
7030
- sessionCode?: string;
7031
- status: import("..").MessageStatus;
7032
- } | {
7033
- content: string;
7034
- role: import("..").MessageRole.TemplateHidden;
7035
- id?: string;
7036
- messageId?: string;
7037
- name?: string;
7038
- sessionCode?: string;
7039
- status: import("..").MessageStatus;
7040
- } | {
7041
- content: string;
7042
- role: import("..").MessageRole.TemplateSystem;
7043
- id?: string;
7044
- messageId?: string;
7045
- name?: string;
7046
- sessionCode?: string;
7047
- status: import("..").MessageStatus;
7048
- } | {
7049
- content: string;
7050
- role: import("..").MessageRole.TemplateUser;
7051
- id?: string;
7052
- messageId?: string;
7053
- name?: string;
7054
- sessionCode?: string;
7055
- status: import("..").MessageStatus;
7056
- } | {
7057
- content: string;
7058
- duration?: number;
7059
- error?: string;
7060
- role: import("..").MessageRole.Tool;
7061
- toolCallId: string;
7062
- id?: string;
7063
- messageId?: string;
7064
- name?: string;
7065
- sessionCode?: string;
7066
- status: import("..").MessageStatus;
7067
- } | {
7068
- content: string | ({
7069
- data?: string;
7070
- filename?: string;
7071
- id?: string;
7072
- mimeType: string;
7073
- type: import("..").MessageType.Binary;
7074
- url?: string;
7075
- } | {
7076
- text: string;
7077
- type: import("..").MessageType.Text;
7078
- })[];
7079
- property?: {
7080
- [x: string]: unknown;
7081
- extra?: {
7082
- [x: string]: unknown;
7083
- cite?: string | {
7084
- data: {
7085
- key: string;
7086
- value: string;
7087
- }[];
7088
- title: string;
7089
- type: string;
7090
- };
7091
- command?: string;
7092
- context?: Array<Record<string, unknown>>;
7093
- resources?: Array<Record<string, unknown>>;
7094
- };
7095
- };
7096
- role: import("..").MessageRole.User;
7696
+ createdAt?: string;
7097
7697
  id?: string;
7098
7698
  messageId?: string;
7099
7699
  name?: string;
@@ -7108,13 +7708,19 @@ export declare const useSession: (mediator: IMediatorModule) => {
7108
7708
  labels?: string[];
7109
7709
  };
7110
7710
  }>;
7711
+ page: import("vue").Ref<number, number>;
7712
+ numPages: import("vue").Ref<number, number>;
7713
+ count: import("vue").Ref<number, number>;
7714
+ hasMore: import("vue").ComputedRef<boolean>;
7111
7715
  isCurrentLoading: import("vue").Ref<boolean, boolean>;
7112
7716
  isListLoading: import("vue").Ref<boolean, boolean>;
7717
+ isLoadingMore: import("vue").Ref<boolean, boolean>;
7113
7718
  isCreateLoading: import("vue").Ref<boolean, boolean>;
7114
7719
  isUpdateLoading: import("vue").Ref<boolean, boolean>;
7115
7720
  isDeleteLoading: import("vue").Ref<boolean, boolean>;
7116
7721
  isBatchDeleteLoading: import("vue").Ref<boolean, boolean>;
7117
- getSessions: () => Promise<void>;
7722
+ getSessions: (params?: ISessionListParams) => Promise<void>;
7723
+ loadMoreSessions: (pageSize?: number) => Promise<void>;
7118
7724
  chooseSession: (sessionCode: string, options?: {
7119
7725
  loadMessages?: boolean;
7120
7726
  }) => Promise<void>;
@@ -7133,10 +7739,10 @@ export declare const useSession: (mediator: IMediatorModule) => {
7133
7739
  labels: string[];
7134
7740
  }>;
7135
7741
  getSessionFeedbackReasons: (rate: number) => Promise<string[]>;
7136
- renameSession: (sessionCode: string) => Promise<void>;
7137
- uploadFile: (sessionCode: string, file: File) => Promise<{
7138
- download_url?: string;
7139
- }>;
7742
+ renameSession: (sessionCode: string) => Promise<ISession<unknown, unknown>>;
7743
+ uploadFile: (sessionCode: string, file: File) => Promise<IUploadFileResult | undefined>;
7744
+ uploadFiles: (sessionCode: string, files: File[]) => Promise<IUploadFileResult[]>;
7745
+ getPvFileDownloadUrl: (sessionCode: string, path: string, options?: GetPvFileDownloadUrlOptions) => Promise<import("./type").IPvFileDownloadUrlResult>;
7140
7746
  reset: () => void;
7141
7747
  };
7142
7748
  export type ISessionModule = ReturnType<typeof useSession>;