@blueking/chat-helper 0.0.12-beta.13 → 0.0.12-beta.14

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.
@@ -1,5 +1,5 @@
1
1
  import type { IMediatorModule } from '../mediator';
2
- import type { ISession, ISessionFeedback, ISessionListParams } from './type';
2
+ import type { GetPvFileDownloadUrlOptions, ISession, ISessionFeedback, ISessionListParams } 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,6 +53,31 @@ 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;
46
82
  id?: string;
47
83
  messageId?: string;
@@ -52,6 +88,14 @@ export declare const useSession: (mediator: IMediatorModule) => {
52
88
  content?: string;
53
89
  property?: {
54
90
  [x: string]: unknown;
91
+ artifacts?: {
92
+ name: string;
93
+ outputId: string;
94
+ size: number;
95
+ type: string;
96
+ previewUrl?: string;
97
+ url?: string;
98
+ }[];
55
99
  extra?: {
56
100
  [x: string]: unknown;
57
101
  cite?: string | {
@@ -91,6 +135,189 @@ export declare const useSession: (mediator: IMediatorModule) => {
91
135
  name?: string;
92
136
  sessionCode?: string;
93
137
  status: import("..").MessageStatus;
138
+ } | {
139
+ content: string;
140
+ role: import("..").MessageRole.Guide;
141
+ id?: string;
142
+ messageId?: string;
143
+ name?: string;
144
+ sessionCode?: string;
145
+ status: import("..").MessageStatus;
146
+ } | {
147
+ content: string;
148
+ role: import("..").MessageRole.HiddenAssistant;
149
+ id?: string;
150
+ messageId?: string;
151
+ name?: string;
152
+ sessionCode?: string;
153
+ status: import("..").MessageStatus;
154
+ } | {
155
+ content: string;
156
+ role: import("..").MessageRole.HiddenGuide;
157
+ id?: string;
158
+ messageId?: string;
159
+ name?: string;
160
+ sessionCode?: string;
161
+ status: import("..").MessageStatus;
162
+ } | {
163
+ content: string;
164
+ role: import("..").MessageRole.Hidden;
165
+ id?: string;
166
+ messageId?: string;
167
+ name?: string;
168
+ sessionCode?: string;
169
+ status: import("..").MessageStatus;
170
+ } | {
171
+ content: string;
172
+ role: import("..").MessageRole.HiddenSystem;
173
+ id?: string;
174
+ messageId?: string;
175
+ name?: string;
176
+ sessionCode?: string;
177
+ status: import("..").MessageStatus;
178
+ } | {
179
+ content: string;
180
+ role: import("..").MessageRole.HiddenUser;
181
+ id?: string;
182
+ messageId?: string;
183
+ name?: string;
184
+ sessionCode?: string;
185
+ status: import("..").MessageStatus;
186
+ } | {
187
+ content: string;
188
+ role: import("..").MessageRole.Info;
189
+ id?: string;
190
+ messageId?: string;
191
+ name?: string;
192
+ sessionCode?: string;
193
+ status: import("..").MessageStatus;
194
+ } | {
195
+ content: string;
196
+ role: import("..").MessageRole.Pause;
197
+ id?: string;
198
+ messageId?: string;
199
+ name?: string;
200
+ sessionCode?: string;
201
+ status: import("..").MessageStatus;
202
+ } | {
203
+ content: string;
204
+ role: import("..").MessageRole.Placeholder;
205
+ id?: string;
206
+ messageId?: string;
207
+ name?: string;
208
+ sessionCode?: string;
209
+ status: import("..").MessageStatus;
210
+ } | {
211
+ content: string[];
212
+ duration?: number;
213
+ role: import("..").MessageRole.Reasoning;
214
+ id?: string;
215
+ messageId?: string;
216
+ name?: string;
217
+ sessionCode?: string;
218
+ status: import("..").MessageStatus;
219
+ } | {
220
+ content: string;
221
+ role: import("..").MessageRole.System;
222
+ id?: string;
223
+ messageId?: string;
224
+ name?: string;
225
+ sessionCode?: string;
226
+ status: import("..").MessageStatus;
227
+ } | {
228
+ content: string;
229
+ role: import("..").MessageRole.TemplateAssistant;
230
+ id?: string;
231
+ messageId?: string;
232
+ name?: string;
233
+ sessionCode?: string;
234
+ status: import("..").MessageStatus;
235
+ } | {
236
+ content: string;
237
+ role: import("..").MessageRole.TemplateGuide;
238
+ id?: string;
239
+ messageId?: string;
240
+ name?: string;
241
+ sessionCode?: string;
242
+ status: import("..").MessageStatus;
243
+ } | {
244
+ content: string;
245
+ role: import("..").MessageRole.TemplateHidden;
246
+ id?: string;
247
+ messageId?: string;
248
+ name?: string;
249
+ sessionCode?: string;
250
+ status: import("..").MessageStatus;
251
+ } | {
252
+ content: string;
253
+ role: import("..").MessageRole.TemplateSystem;
254
+ id?: string;
255
+ messageId?: string;
256
+ name?: string;
257
+ sessionCode?: string;
258
+ status: import("..").MessageStatus;
259
+ } | {
260
+ content: string;
261
+ role: import("..").MessageRole.TemplateUser;
262
+ id?: string;
263
+ messageId?: string;
264
+ name?: string;
265
+ sessionCode?: string;
266
+ status: import("..").MessageStatus;
267
+ } | {
268
+ content: string;
269
+ duration?: number;
270
+ error?: string;
271
+ role: import("..").MessageRole.Tool;
272
+ toolCallId: string;
273
+ id?: string;
274
+ messageId?: string;
275
+ name?: string;
276
+ sessionCode?: string;
277
+ status: import("..").MessageStatus;
278
+ } | {
279
+ content: string | ({
280
+ data?: string;
281
+ filename?: string;
282
+ id?: string;
283
+ mimeType: string;
284
+ type: import("..").MessageType.Binary;
285
+ url?: string;
286
+ } | {
287
+ text: string;
288
+ type: import("..").MessageType.Text;
289
+ })[];
290
+ property?: {
291
+ [x: string]: unknown;
292
+ artifacts?: {
293
+ name: string;
294
+ outputId: string;
295
+ size: number;
296
+ type: string;
297
+ previewUrl?: string;
298
+ url?: string;
299
+ }[];
300
+ extra?: {
301
+ [x: string]: unknown;
302
+ cite?: string | {
303
+ data: {
304
+ key: string;
305
+ value: string;
306
+ }[];
307
+ title: string;
308
+ type: string;
309
+ };
310
+ command?: string;
311
+ context?: Array<Record<string, unknown>>;
312
+ resources?: Array<Record<string, unknown>>;
313
+ };
314
+ };
315
+ role: import("..").MessageRole.User;
316
+ id?: string;
317
+ messageId?: string;
318
+ name?: string;
319
+ sessionCode?: string;
320
+ status: import("..").MessageStatus;
94
321
  } | {
95
322
  content: {
96
323
  result?: {
@@ -721,187 +948,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
721
948
  name?: string;
722
949
  sessionCode?: string;
723
950
  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;
894
- id?: string;
895
- messageId?: string;
896
- name?: string;
897
- sessionCode?: string;
898
- status: import("..").MessageStatus;
899
951
  })[];
900
952
  variables: {
901
953
  name: string;
902
954
  value: string | ({
903
955
  activityType: import("..").ActivityType;
904
956
  content: {
957
+ artifacts: {
958
+ name: string;
959
+ outputId: string;
960
+ size: number;
961
+ type: string;
962
+ previewUrl?: string;
963
+ url?: string;
964
+ }[];
965
+ runId: string;
966
+ status: "complete" | "empty";
967
+ } | {
905
968
  nodes: Record<string, import("..").IFlowAgentNode>;
906
969
  task_id: string;
907
970
  task_name: string;
@@ -919,6 +982,31 @@ export declare const useSession: (mediator: IMediatorModule) => {
919
982
  originFileUrl?: string;
920
983
  url: string;
921
984
  }[];
985
+ property?: {
986
+ [x: string]: unknown;
987
+ artifacts?: {
988
+ name: string;
989
+ outputId: string;
990
+ size: number;
991
+ type: string;
992
+ previewUrl?: string;
993
+ url?: string;
994
+ }[];
995
+ extra?: {
996
+ [x: string]: unknown;
997
+ cite?: string | {
998
+ data: {
999
+ key: string;
1000
+ value: string;
1001
+ }[];
1002
+ title: string;
1003
+ type: string;
1004
+ };
1005
+ command?: string;
1006
+ context?: Array<Record<string, unknown>>;
1007
+ resources?: Array<Record<string, unknown>>;
1008
+ };
1009
+ };
922
1010
  role: import("..").MessageRole.Activity;
923
1011
  id?: string;
924
1012
  messageId?: string;
@@ -929,6 +1017,14 @@ export declare const useSession: (mediator: IMediatorModule) => {
929
1017
  content?: string;
930
1018
  property?: {
931
1019
  [x: string]: unknown;
1020
+ artifacts?: {
1021
+ name: string;
1022
+ outputId: string;
1023
+ size: number;
1024
+ type: string;
1025
+ previewUrl?: string;
1026
+ url?: string;
1027
+ }[];
932
1028
  extra?: {
933
1029
  [x: string]: unknown;
934
1030
  cite?: string | {
@@ -969,111 +1065,294 @@ export declare const useSession: (mediator: IMediatorModule) => {
969
1065
  sessionCode?: string;
970
1066
  status: import("..").MessageStatus;
971
1067
  } | {
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[];
1068
+ content: string;
1069
+ role: import("..").MessageRole.Guide;
1070
+ id?: string;
1071
+ messageId?: string;
1072
+ name?: string;
1073
+ sessionCode?: string;
1074
+ status: import("..").MessageStatus;
1075
+ } | {
1076
+ content: string;
1077
+ role: import("..").MessageRole.HiddenAssistant;
1078
+ id?: string;
1079
+ messageId?: string;
1080
+ name?: string;
1081
+ sessionCode?: string;
1082
+ status: import("..").MessageStatus;
1083
+ } | {
1084
+ content: string;
1085
+ role: import("..").MessageRole.HiddenGuide;
1086
+ id?: string;
1087
+ messageId?: string;
1088
+ name?: string;
1089
+ sessionCode?: string;
1090
+ status: import("..").MessageStatus;
1091
+ } | {
1092
+ content: string;
1093
+ role: import("..").MessageRole.Hidden;
1094
+ id?: string;
1095
+ messageId?: string;
1096
+ name?: string;
1097
+ sessionCode?: string;
1098
+ status: import("..").MessageStatus;
1099
+ } | {
1100
+ content: string;
1101
+ role: import("..").MessageRole.HiddenSystem;
1102
+ id?: string;
1103
+ messageId?: string;
1104
+ name?: string;
1105
+ sessionCode?: string;
1106
+ status: import("..").MessageStatus;
1107
+ } | {
1108
+ content: string;
1109
+ role: import("..").MessageRole.HiddenUser;
1110
+ id?: string;
1111
+ messageId?: string;
1112
+ name?: string;
1113
+ sessionCode?: string;
1114
+ status: import("..").MessageStatus;
1115
+ } | {
1116
+ content: string;
1117
+ role: import("..").MessageRole.Info;
1118
+ id?: string;
1119
+ messageId?: string;
1120
+ name?: string;
1121
+ sessionCode?: string;
1122
+ status: import("..").MessageStatus;
1123
+ } | {
1124
+ content: string;
1125
+ role: import("..").MessageRole.Pause;
1126
+ id?: string;
1127
+ messageId?: string;
1128
+ name?: string;
1129
+ sessionCode?: string;
1130
+ status: import("..").MessageStatus;
1131
+ } | {
1132
+ content: string;
1133
+ role: import("..").MessageRole.Placeholder;
1134
+ id?: string;
1135
+ messageId?: string;
1136
+ name?: string;
1137
+ sessionCode?: string;
1138
+ status: import("..").MessageStatus;
1139
+ } | {
1140
+ content: string[];
1141
+ duration?: number;
1142
+ role: import("..").MessageRole.Reasoning;
1143
+ id?: string;
1144
+ messageId?: string;
1145
+ name?: string;
1146
+ sessionCode?: string;
1147
+ status: import("..").MessageStatus;
1148
+ } | {
1149
+ content: string;
1150
+ role: import("..").MessageRole.System;
1151
+ id?: string;
1152
+ messageId?: string;
1153
+ name?: string;
1154
+ sessionCode?: string;
1155
+ status: import("..").MessageStatus;
1156
+ } | {
1157
+ content: string;
1158
+ role: import("..").MessageRole.TemplateAssistant;
1159
+ id?: string;
1160
+ messageId?: string;
1161
+ name?: string;
1162
+ sessionCode?: string;
1163
+ status: import("..").MessageStatus;
1164
+ } | {
1165
+ content: string;
1166
+ role: import("..").MessageRole.TemplateGuide;
1167
+ id?: string;
1168
+ messageId?: string;
1169
+ name?: string;
1170
+ sessionCode?: string;
1171
+ status: import("..").MessageStatus;
1172
+ } | {
1173
+ content: string;
1174
+ role: import("..").MessageRole.TemplateHidden;
1175
+ id?: string;
1176
+ messageId?: string;
1177
+ name?: string;
1178
+ sessionCode?: string;
1179
+ status: import("..").MessageStatus;
1180
+ } | {
1181
+ content: string;
1182
+ role: import("..").MessageRole.TemplateSystem;
1183
+ id?: string;
1184
+ messageId?: string;
1185
+ name?: string;
1186
+ sessionCode?: string;
1187
+ status: import("..").MessageStatus;
1188
+ } | {
1189
+ content: string;
1190
+ role: import("..").MessageRole.TemplateUser;
1191
+ id?: string;
1192
+ messageId?: string;
1193
+ name?: string;
1194
+ sessionCode?: string;
1195
+ status: import("..").MessageStatus;
1196
+ } | {
1197
+ content: string;
1198
+ duration?: number;
1199
+ error?: string;
1200
+ role: import("..").MessageRole.Tool;
1201
+ toolCallId: string;
1202
+ id?: string;
1203
+ messageId?: string;
1204
+ name?: string;
1205
+ sessionCode?: string;
1206
+ status: import("..").MessageStatus;
1207
+ } | {
1208
+ content: string | ({
1209
+ data?: string;
1210
+ filename?: string;
1211
+ id?: string;
1212
+ mimeType: string;
1213
+ type: import("..").MessageType.Binary;
1214
+ url?: string;
1215
+ } | {
1216
+ text: string;
1217
+ type: import("..").MessageType.Text;
1218
+ })[];
1219
+ property?: {
1220
+ [x: string]: unknown;
1221
+ artifacts?: {
1222
+ name: string;
1223
+ outputId: string;
1224
+ size: number;
1225
+ type: string;
1226
+ previewUrl?: string;
1227
+ url?: string;
1228
+ }[];
1229
+ extra?: {
1230
+ [x: string]: unknown;
1231
+ cite?: string | {
1232
+ data: {
1233
+ key: string;
1234
+ value: string;
1235
+ }[];
1236
+ title: string;
1237
+ type: string;
1238
+ };
1239
+ command?: string;
1240
+ context?: Array<Record<string, unknown>>;
1241
+ resources?: Array<Record<string, unknown>>;
1242
+ };
1243
+ };
1244
+ role: import("..").MessageRole.User;
1245
+ id?: string;
1246
+ messageId?: string;
1247
+ name?: string;
1248
+ sessionCode?: string;
1249
+ status: import("..").MessageStatus;
1250
+ } | {
1251
+ content: {
1252
+ result?: {
1253
+ interruptId: string;
1254
+ status: import("..").ResumeStatus;
1255
+ payload?: {
1256
+ answers: {
1257
+ answer: {
1258
+ description: string;
1259
+ label: string;
1260
+ }[];
1261
+ multiSelect?: boolean;
1262
+ question: string;
1263
+ }[];
1264
+ };
1265
+ };
1266
+ runId: number;
1267
+ threadId: string;
1268
+ type: import("..").EventType.RunFinished;
1269
+ outcome?: {
1270
+ type: import("..").RunFinishedOutcomeType.Success;
1271
+ } | {
1272
+ type: import("..").RunFinishedOutcomeType.Interrupt;
1273
+ interrupts: ({
1274
+ id: string;
1275
+ reason: import("..").InterruptReason.AIDevToolApproval;
1276
+ message?: string;
1277
+ toolCallId?: string;
1278
+ responseSchema?: {
1279
+ [x: string]: any;
1280
+ id?: string | undefined;
1281
+ $ref?: string | undefined;
1282
+ $schema?: import("json-schema").JSONSchema4Version | undefined;
1283
+ title?: string | undefined;
1284
+ description?: string | undefined;
1285
+ default?: string | number | boolean | import("json-schema").JSONSchema4Object | {
1286
+ [x: number]: string | number | boolean | import("json-schema").JSONSchema4Object | /*elided*/ any;
1287
+ length: number;
1288
+ toString: () => string;
1289
+ toLocaleString: {
1290
+ (): string;
1291
+ (locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
1292
+ };
1293
+ pop: () => import("json-schema").JSONSchema4Type;
1294
+ push: (...items: import("json-schema").JSONSchema4Type[]) => number;
1295
+ concat: {
1296
+ (...items: ConcatArray<import("json-schema").JSONSchema4Type>[]): import("json-schema").JSONSchema4Type[];
1297
+ (...items: (import("json-schema").JSONSchema4Type | ConcatArray<import("json-schema").JSONSchema4Type>)[]): import("json-schema").JSONSchema4Type[];
1298
+ };
1299
+ join: (separator?: string) => string;
1300
+ reverse: () => import("json-schema").JSONSchema4Type[];
1301
+ shift: () => import("json-schema").JSONSchema4Type;
1302
+ slice: (start?: number, end?: number) => import("json-schema").JSONSchema4Type[];
1303
+ sort: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Array;
1304
+ splice: {
1305
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1306
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1307
+ };
1308
+ unshift: (...items: import("json-schema").JSONSchema4Type[]) => number;
1309
+ indexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1310
+ lastIndexOf: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => number;
1311
+ every: {
1312
+ <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[];
1313
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): boolean;
1314
+ };
1315
+ some: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => boolean;
1316
+ forEach: (callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => void, thisArg?: any) => void;
1317
+ map: <U>(callbackfn: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => U, thisArg?: any) => U[];
1318
+ filter: {
1319
+ <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[];
1320
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type[];
1321
+ };
1322
+ reduce: {
1323
+ (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;
1324
+ (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;
1325
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1326
+ };
1327
+ reduceRight: {
1328
+ (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;
1329
+ (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;
1330
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
1331
+ };
1332
+ find: {
1333
+ <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;
1334
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1335
+ };
1336
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1337
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
1338
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
1339
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
1340
+ keys: () => ArrayIterator<number>;
1341
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
1342
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
1343
+ 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[];
1344
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
1345
+ at: (index: number) => import("json-schema").JSONSchema4Type;
1346
+ findLast: {
1347
+ <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;
1348
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
1349
+ };
1350
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
1351
+ toReversed: () => import("json-schema").JSONSchema4Type[];
1352
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
1353
+ toSpliced: {
1354
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
1355
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
1077
1356
  };
1078
1357
  with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
1079
1358
  [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
@@ -1546,228 +1825,53 @@ export declare const useSession: (mediator: IMediatorModule) => {
1546
1825
  map?: boolean;
1547
1826
  filter?: boolean;
1548
1827
  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>>;
1828
+ reduceRight?: boolean;
1829
+ find?: boolean;
1830
+ findIndex?: boolean;
1831
+ fill?: boolean;
1832
+ copyWithin?: boolean;
1833
+ entries?: boolean;
1834
+ keys?: boolean;
1835
+ values?: boolean;
1836
+ includes?: boolean;
1837
+ flatMap?: boolean;
1838
+ flat?: boolean;
1839
+ at?: boolean;
1840
+ findLast?: boolean;
1841
+ findLastIndex?: boolean;
1842
+ toReversed?: boolean;
1843
+ toSorted?: boolean;
1844
+ toSpliced?: boolean;
1845
+ with?: boolean;
1846
+ [Symbol.iterator]?: boolean;
1847
+ readonly [Symbol.unscopables]?: boolean;
1848
+ };
1849
+ })[];
1850
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
1851
+ allOf?: /*elided*/ any[];
1852
+ anyOf?: /*elided*/ any[];
1853
+ oneOf?: /*elided*/ any[];
1854
+ not?: /*elided*/ any;
1855
+ extends?: string | string[] | undefined;
1856
+ format?: string | undefined;
1857
+ };
1858
+ expiresAt?: string;
1859
+ metadata?: {
1860
+ questions: {
1861
+ header: string;
1862
+ multiSelect?: boolean;
1863
+ options?: {
1864
+ description: string;
1865
+ label: string;
1866
+ }[];
1867
+ question: string;
1868
+ }[];
1869
+ };
1870
+ })[];
1768
1871
  };
1872
+ timestamp?: number;
1769
1873
  };
1770
- role: import("..").MessageRole.User;
1874
+ role: import("..").MessageRole.Interrupt;
1771
1875
  id?: string;
1772
1876
  messageId?: string;
1773
1877
  name?: string;
@@ -1800,6 +1904,17 @@ export declare const useSession: (mediator: IMediatorModule) => {
1800
1904
  content: ({
1801
1905
  activityType: import("..").ActivityType;
1802
1906
  content: {
1907
+ artifacts: {
1908
+ name: string;
1909
+ outputId: string;
1910
+ size: number;
1911
+ type: string;
1912
+ previewUrl?: string;
1913
+ url?: string;
1914
+ }[];
1915
+ runId: string;
1916
+ status: "complete" | "empty";
1917
+ } | {
1803
1918
  nodes: Record<string, import("..").IFlowAgentNode>;
1804
1919
  task_id: string;
1805
1920
  task_name: string;
@@ -1817,6 +1932,31 @@ export declare const useSession: (mediator: IMediatorModule) => {
1817
1932
  originFileUrl?: string;
1818
1933
  url: string;
1819
1934
  }[];
1935
+ property?: {
1936
+ [x: string]: unknown;
1937
+ artifacts?: {
1938
+ name: string;
1939
+ outputId: string;
1940
+ size: number;
1941
+ type: string;
1942
+ previewUrl?: string;
1943
+ url?: string;
1944
+ }[];
1945
+ extra?: {
1946
+ [x: string]: unknown;
1947
+ cite?: string | {
1948
+ data: {
1949
+ key: string;
1950
+ value: string;
1951
+ }[];
1952
+ title: string;
1953
+ type: string;
1954
+ };
1955
+ command?: string;
1956
+ context?: Array<Record<string, unknown>>;
1957
+ resources?: Array<Record<string, unknown>>;
1958
+ };
1959
+ };
1820
1960
  role: import("..").MessageRole.Activity;
1821
1961
  id?: string;
1822
1962
  messageId?: string;
@@ -1824,9 +1964,218 @@ export declare const useSession: (mediator: IMediatorModule) => {
1824
1964
  sessionCode?: string;
1825
1965
  status: import("..").MessageStatus;
1826
1966
  } | {
1827
- content?: string;
1967
+ content?: string;
1968
+ property?: {
1969
+ [x: string]: unknown;
1970
+ artifacts?: {
1971
+ name: string;
1972
+ outputId: string;
1973
+ size: number;
1974
+ type: string;
1975
+ previewUrl?: string;
1976
+ url?: string;
1977
+ }[];
1978
+ extra?: {
1979
+ [x: string]: unknown;
1980
+ cite?: string | {
1981
+ data: {
1982
+ key: string;
1983
+ value: string;
1984
+ }[];
1985
+ title: string;
1986
+ type: string;
1987
+ };
1988
+ command?: string;
1989
+ context?: Array<Record<string, unknown>>;
1990
+ resources?: Array<Record<string, unknown>>;
1991
+ };
1992
+ };
1993
+ role: import("..").MessageRole.Assistant;
1994
+ toolCalls?: {
1995
+ function: {
1996
+ arguments: string;
1997
+ description?: string;
1998
+ mcpName?: string;
1999
+ name: string;
2000
+ };
2001
+ id: string;
2002
+ type: import("..").MessageType.Function;
2003
+ }[];
2004
+ id?: string;
2005
+ messageId?: string;
2006
+ name?: string;
2007
+ sessionCode?: string;
2008
+ status: import("..").MessageStatus;
2009
+ } | {
2010
+ content: string;
2011
+ role: import("..").MessageRole.Developer;
2012
+ id?: string;
2013
+ messageId?: string;
2014
+ name?: string;
2015
+ sessionCode?: string;
2016
+ status: import("..").MessageStatus;
2017
+ } | {
2018
+ content: string;
2019
+ role: import("..").MessageRole.Guide;
2020
+ id?: string;
2021
+ messageId?: string;
2022
+ name?: string;
2023
+ sessionCode?: string;
2024
+ status: import("..").MessageStatus;
2025
+ } | {
2026
+ content: string;
2027
+ role: import("..").MessageRole.HiddenAssistant;
2028
+ id?: string;
2029
+ messageId?: string;
2030
+ name?: string;
2031
+ sessionCode?: string;
2032
+ status: import("..").MessageStatus;
2033
+ } | {
2034
+ content: string;
2035
+ role: import("..").MessageRole.HiddenGuide;
2036
+ id?: string;
2037
+ messageId?: string;
2038
+ name?: string;
2039
+ sessionCode?: string;
2040
+ status: import("..").MessageStatus;
2041
+ } | {
2042
+ content: string;
2043
+ role: import("..").MessageRole.Hidden;
2044
+ id?: string;
2045
+ messageId?: string;
2046
+ name?: string;
2047
+ sessionCode?: string;
2048
+ status: import("..").MessageStatus;
2049
+ } | {
2050
+ content: string;
2051
+ role: import("..").MessageRole.HiddenSystem;
2052
+ id?: string;
2053
+ messageId?: string;
2054
+ name?: string;
2055
+ sessionCode?: string;
2056
+ status: import("..").MessageStatus;
2057
+ } | {
2058
+ content: string;
2059
+ role: import("..").MessageRole.HiddenUser;
2060
+ id?: string;
2061
+ messageId?: string;
2062
+ name?: string;
2063
+ sessionCode?: string;
2064
+ status: import("..").MessageStatus;
2065
+ } | {
2066
+ content: string;
2067
+ role: import("..").MessageRole.Info;
2068
+ id?: string;
2069
+ messageId?: string;
2070
+ name?: string;
2071
+ sessionCode?: string;
2072
+ status: import("..").MessageStatus;
2073
+ } | {
2074
+ content: string;
2075
+ role: import("..").MessageRole.Pause;
2076
+ id?: string;
2077
+ messageId?: string;
2078
+ name?: string;
2079
+ sessionCode?: string;
2080
+ status: import("..").MessageStatus;
2081
+ } | {
2082
+ content: string;
2083
+ role: import("..").MessageRole.Placeholder;
2084
+ id?: string;
2085
+ messageId?: string;
2086
+ name?: string;
2087
+ sessionCode?: string;
2088
+ status: import("..").MessageStatus;
2089
+ } | {
2090
+ content: string[];
2091
+ duration?: number;
2092
+ role: import("..").MessageRole.Reasoning;
2093
+ id?: string;
2094
+ messageId?: string;
2095
+ name?: string;
2096
+ sessionCode?: string;
2097
+ status: import("..").MessageStatus;
2098
+ } | {
2099
+ content: string;
2100
+ role: import("..").MessageRole.System;
2101
+ id?: string;
2102
+ messageId?: string;
2103
+ name?: string;
2104
+ sessionCode?: string;
2105
+ status: import("..").MessageStatus;
2106
+ } | {
2107
+ content: string;
2108
+ role: import("..").MessageRole.TemplateAssistant;
2109
+ id?: string;
2110
+ messageId?: string;
2111
+ name?: string;
2112
+ sessionCode?: string;
2113
+ status: import("..").MessageStatus;
2114
+ } | {
2115
+ content: string;
2116
+ role: import("..").MessageRole.TemplateGuide;
2117
+ id?: string;
2118
+ messageId?: string;
2119
+ name?: string;
2120
+ sessionCode?: string;
2121
+ status: import("..").MessageStatus;
2122
+ } | {
2123
+ content: string;
2124
+ role: import("..").MessageRole.TemplateHidden;
2125
+ id?: string;
2126
+ messageId?: string;
2127
+ name?: string;
2128
+ sessionCode?: string;
2129
+ status: import("..").MessageStatus;
2130
+ } | {
2131
+ content: string;
2132
+ role: import("..").MessageRole.TemplateSystem;
2133
+ id?: string;
2134
+ messageId?: string;
2135
+ name?: string;
2136
+ sessionCode?: string;
2137
+ status: import("..").MessageStatus;
2138
+ } | {
2139
+ content: string;
2140
+ role: import("..").MessageRole.TemplateUser;
2141
+ id?: string;
2142
+ messageId?: string;
2143
+ name?: string;
2144
+ sessionCode?: string;
2145
+ status: import("..").MessageStatus;
2146
+ } | {
2147
+ content: string;
2148
+ duration?: number;
2149
+ error?: string;
2150
+ role: import("..").MessageRole.Tool;
2151
+ toolCallId: string;
2152
+ id?: string;
2153
+ messageId?: string;
2154
+ name?: string;
2155
+ sessionCode?: string;
2156
+ status: import("..").MessageStatus;
2157
+ } | {
2158
+ content: string | ({
2159
+ data?: string;
2160
+ filename?: string;
2161
+ id?: string;
2162
+ mimeType: string;
2163
+ type: import("..").MessageType.Binary;
2164
+ url?: string;
2165
+ } | {
2166
+ text: string;
2167
+ type: import("..").MessageType.Text;
2168
+ })[];
1828
2169
  property?: {
1829
2170
  [x: string]: unknown;
2171
+ artifacts?: {
2172
+ name: string;
2173
+ outputId: string;
2174
+ size: number;
2175
+ type: string;
2176
+ previewUrl?: string;
2177
+ url?: string;
2178
+ }[];
1830
2179
  extra?: {
1831
2180
  [x: string]: unknown;
1832
2181
  cite?: string | {
@@ -1842,25 +2191,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
1842
2191
  resources?: Array<Record<string, unknown>>;
1843
2192
  };
1844
2193
  };
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;
2194
+ role: import("..").MessageRole.User;
1864
2195
  id?: string;
1865
2196
  messageId?: string;
1866
2197
  name?: string;
@@ -2442,230 +2773,55 @@ export declare const useSession: (mediator: IMediatorModule) => {
2442
2773
  some?: boolean;
2443
2774
  forEach?: boolean;
2444
2775
  map?: boolean;
2445
- filter?: boolean;
2446
- reduce?: boolean;
2447
- reduceRight?: boolean;
2448
- find?: boolean;
2449
- findIndex?: boolean;
2450
- fill?: boolean;
2451
- copyWithin?: boolean;
2452
- entries?: boolean;
2453
- 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>>;
2776
+ filter?: boolean;
2777
+ reduce?: boolean;
2778
+ reduceRight?: boolean;
2779
+ find?: boolean;
2780
+ findIndex?: boolean;
2781
+ fill?: boolean;
2782
+ copyWithin?: boolean;
2783
+ entries?: boolean;
2784
+ keys?: boolean;
2785
+ values?: boolean;
2786
+ includes?: boolean;
2787
+ flatMap?: boolean;
2788
+ flat?: boolean;
2789
+ at?: boolean;
2790
+ findLast?: boolean;
2791
+ findLastIndex?: boolean;
2792
+ toReversed?: boolean;
2793
+ toSorted?: boolean;
2794
+ toSpliced?: boolean;
2795
+ with?: boolean;
2796
+ [Symbol.iterator]?: boolean;
2797
+ readonly [Symbol.unscopables]?: boolean;
2798
+ };
2799
+ })[];
2800
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
2801
+ allOf?: /*elided*/ any[];
2802
+ anyOf?: /*elided*/ any[];
2803
+ oneOf?: /*elided*/ any[];
2804
+ not?: /*elided*/ any;
2805
+ extends?: string | string[] | undefined;
2806
+ format?: string | undefined;
2807
+ };
2808
+ expiresAt?: string;
2809
+ metadata?: {
2810
+ questions: {
2811
+ header: string;
2812
+ multiSelect?: boolean;
2813
+ options?: {
2814
+ description: string;
2815
+ label: string;
2816
+ }[];
2817
+ question: string;
2818
+ }[];
2819
+ };
2820
+ })[];
2666
2821
  };
2822
+ timestamp?: number;
2667
2823
  };
2668
- role: import("..").MessageRole.User;
2824
+ role: import("..").MessageRole.Interrupt;
2669
2825
  id?: string;
2670
2826
  messageId?: string;
2671
2827
  name?: string;
@@ -2677,6 +2833,17 @@ export declare const useSession: (mediator: IMediatorModule) => {
2677
2833
  value: string | ({
2678
2834
  activityType: import("..").ActivityType;
2679
2835
  content: {
2836
+ artifacts: {
2837
+ name: string;
2838
+ outputId: string;
2839
+ size: number;
2840
+ type: string;
2841
+ previewUrl?: string;
2842
+ url?: string;
2843
+ }[];
2844
+ runId: string;
2845
+ status: "complete" | "empty";
2846
+ } | {
2680
2847
  nodes: Record<string, import("..").IFlowAgentNode>;
2681
2848
  task_id: string;
2682
2849
  task_name: string;
@@ -2694,6 +2861,31 @@ export declare const useSession: (mediator: IMediatorModule) => {
2694
2861
  originFileUrl?: string;
2695
2862
  url: string;
2696
2863
  }[];
2864
+ property?: {
2865
+ [x: string]: unknown;
2866
+ artifacts?: {
2867
+ name: string;
2868
+ outputId: string;
2869
+ size: number;
2870
+ type: string;
2871
+ previewUrl?: string;
2872
+ url?: string;
2873
+ }[];
2874
+ extra?: {
2875
+ [x: string]: unknown;
2876
+ cite?: string | {
2877
+ data: {
2878
+ key: string;
2879
+ value: string;
2880
+ }[];
2881
+ title: string;
2882
+ type: string;
2883
+ };
2884
+ command?: string;
2885
+ context?: Array<Record<string, unknown>>;
2886
+ resources?: Array<Record<string, unknown>>;
2887
+ };
2888
+ };
2697
2889
  role: import("..").MessageRole.Activity;
2698
2890
  id?: string;
2699
2891
  messageId?: string;
@@ -2701,9 +2893,218 @@ export declare const useSession: (mediator: IMediatorModule) => {
2701
2893
  sessionCode?: string;
2702
2894
  status: import("..").MessageStatus;
2703
2895
  } | {
2704
- content?: string;
2896
+ content?: string;
2897
+ property?: {
2898
+ [x: string]: unknown;
2899
+ artifacts?: {
2900
+ name: string;
2901
+ outputId: string;
2902
+ size: number;
2903
+ type: string;
2904
+ previewUrl?: string;
2905
+ url?: string;
2906
+ }[];
2907
+ extra?: {
2908
+ [x: string]: unknown;
2909
+ cite?: string | {
2910
+ data: {
2911
+ key: string;
2912
+ value: string;
2913
+ }[];
2914
+ title: string;
2915
+ type: string;
2916
+ };
2917
+ command?: string;
2918
+ context?: Array<Record<string, unknown>>;
2919
+ resources?: Array<Record<string, unknown>>;
2920
+ };
2921
+ };
2922
+ role: import("..").MessageRole.Assistant;
2923
+ toolCalls?: {
2924
+ function: {
2925
+ arguments: string;
2926
+ description?: string;
2927
+ mcpName?: string;
2928
+ name: string;
2929
+ };
2930
+ id: string;
2931
+ type: import("..").MessageType.Function;
2932
+ }[];
2933
+ id?: string;
2934
+ messageId?: string;
2935
+ name?: string;
2936
+ sessionCode?: string;
2937
+ status: import("..").MessageStatus;
2938
+ } | {
2939
+ content: string;
2940
+ role: import("..").MessageRole.Developer;
2941
+ id?: string;
2942
+ messageId?: string;
2943
+ name?: string;
2944
+ sessionCode?: string;
2945
+ status: import("..").MessageStatus;
2946
+ } | {
2947
+ content: string;
2948
+ role: import("..").MessageRole.Guide;
2949
+ id?: string;
2950
+ messageId?: string;
2951
+ name?: string;
2952
+ sessionCode?: string;
2953
+ status: import("..").MessageStatus;
2954
+ } | {
2955
+ content: string;
2956
+ role: import("..").MessageRole.HiddenAssistant;
2957
+ id?: string;
2958
+ messageId?: string;
2959
+ name?: string;
2960
+ sessionCode?: string;
2961
+ status: import("..").MessageStatus;
2962
+ } | {
2963
+ content: string;
2964
+ role: import("..").MessageRole.HiddenGuide;
2965
+ id?: string;
2966
+ messageId?: string;
2967
+ name?: string;
2968
+ sessionCode?: string;
2969
+ status: import("..").MessageStatus;
2970
+ } | {
2971
+ content: string;
2972
+ role: import("..").MessageRole.Hidden;
2973
+ id?: string;
2974
+ messageId?: string;
2975
+ name?: string;
2976
+ sessionCode?: string;
2977
+ status: import("..").MessageStatus;
2978
+ } | {
2979
+ content: string;
2980
+ role: import("..").MessageRole.HiddenSystem;
2981
+ id?: string;
2982
+ messageId?: string;
2983
+ name?: string;
2984
+ sessionCode?: string;
2985
+ status: import("..").MessageStatus;
2986
+ } | {
2987
+ content: string;
2988
+ role: import("..").MessageRole.HiddenUser;
2989
+ id?: string;
2990
+ messageId?: string;
2991
+ name?: string;
2992
+ sessionCode?: string;
2993
+ status: import("..").MessageStatus;
2994
+ } | {
2995
+ content: string;
2996
+ role: import("..").MessageRole.Info;
2997
+ id?: string;
2998
+ messageId?: string;
2999
+ name?: string;
3000
+ sessionCode?: string;
3001
+ status: import("..").MessageStatus;
3002
+ } | {
3003
+ content: string;
3004
+ role: import("..").MessageRole.Pause;
3005
+ id?: string;
3006
+ messageId?: string;
3007
+ name?: string;
3008
+ sessionCode?: string;
3009
+ status: import("..").MessageStatus;
3010
+ } | {
3011
+ content: string;
3012
+ role: import("..").MessageRole.Placeholder;
3013
+ id?: string;
3014
+ messageId?: string;
3015
+ name?: string;
3016
+ sessionCode?: string;
3017
+ status: import("..").MessageStatus;
3018
+ } | {
3019
+ content: string[];
3020
+ duration?: number;
3021
+ role: import("..").MessageRole.Reasoning;
3022
+ id?: string;
3023
+ messageId?: string;
3024
+ name?: string;
3025
+ sessionCode?: string;
3026
+ status: import("..").MessageStatus;
3027
+ } | {
3028
+ content: string;
3029
+ role: import("..").MessageRole.System;
3030
+ id?: string;
3031
+ messageId?: string;
3032
+ name?: string;
3033
+ sessionCode?: string;
3034
+ status: import("..").MessageStatus;
3035
+ } | {
3036
+ content: string;
3037
+ role: import("..").MessageRole.TemplateAssistant;
3038
+ id?: string;
3039
+ messageId?: string;
3040
+ name?: string;
3041
+ sessionCode?: string;
3042
+ status: import("..").MessageStatus;
3043
+ } | {
3044
+ content: string;
3045
+ role: import("..").MessageRole.TemplateGuide;
3046
+ id?: string;
3047
+ messageId?: string;
3048
+ name?: string;
3049
+ sessionCode?: string;
3050
+ status: import("..").MessageStatus;
3051
+ } | {
3052
+ content: string;
3053
+ role: import("..").MessageRole.TemplateHidden;
3054
+ id?: string;
3055
+ messageId?: string;
3056
+ name?: string;
3057
+ sessionCode?: string;
3058
+ status: import("..").MessageStatus;
3059
+ } | {
3060
+ content: string;
3061
+ role: import("..").MessageRole.TemplateSystem;
3062
+ id?: string;
3063
+ messageId?: string;
3064
+ name?: string;
3065
+ sessionCode?: string;
3066
+ status: import("..").MessageStatus;
3067
+ } | {
3068
+ content: string;
3069
+ role: import("..").MessageRole.TemplateUser;
3070
+ id?: string;
3071
+ messageId?: string;
3072
+ name?: string;
3073
+ sessionCode?: string;
3074
+ status: import("..").MessageStatus;
3075
+ } | {
3076
+ content: string;
3077
+ duration?: number;
3078
+ error?: string;
3079
+ role: import("..").MessageRole.Tool;
3080
+ toolCallId: string;
3081
+ id?: string;
3082
+ messageId?: string;
3083
+ name?: string;
3084
+ sessionCode?: string;
3085
+ status: import("..").MessageStatus;
3086
+ } | {
3087
+ content: string | ({
3088
+ data?: string;
3089
+ filename?: string;
3090
+ id?: string;
3091
+ mimeType: string;
3092
+ type: import("..").MessageType.Binary;
3093
+ url?: string;
3094
+ } | {
3095
+ text: string;
3096
+ type: import("..").MessageType.Text;
3097
+ })[];
2705
3098
  property?: {
2706
3099
  [x: string]: unknown;
3100
+ artifacts?: {
3101
+ name: string;
3102
+ outputId: string;
3103
+ size: number;
3104
+ type: string;
3105
+ previewUrl?: string;
3106
+ url?: string;
3107
+ }[];
2707
3108
  extra?: {
2708
3109
  [x: string]: unknown;
2709
3110
  cite?: string | {
@@ -2719,25 +3120,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
2719
3120
  resources?: Array<Record<string, unknown>>;
2720
3121
  };
2721
3122
  };
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;
3123
+ role: import("..").MessageRole.User;
2741
3124
  id?: string;
2742
3125
  messageId?: string;
2743
3126
  name?: string;
@@ -3321,228 +3704,53 @@ export declare const useSession: (mediator: IMediatorModule) => {
3321
3704
  map?: boolean;
3322
3705
  filter?: boolean;
3323
3706
  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>>;
3707
+ reduceRight?: boolean;
3708
+ find?: boolean;
3709
+ findIndex?: boolean;
3710
+ fill?: boolean;
3711
+ copyWithin?: boolean;
3712
+ entries?: boolean;
3713
+ keys?: boolean;
3714
+ values?: boolean;
3715
+ includes?: boolean;
3716
+ flatMap?: boolean;
3717
+ flat?: boolean;
3718
+ at?: boolean;
3719
+ findLast?: boolean;
3720
+ findLastIndex?: boolean;
3721
+ toReversed?: boolean;
3722
+ toSorted?: boolean;
3723
+ toSpliced?: boolean;
3724
+ with?: boolean;
3725
+ [Symbol.iterator]?: boolean;
3726
+ readonly [Symbol.unscopables]?: boolean;
3727
+ };
3728
+ })[];
3729
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
3730
+ allOf?: /*elided*/ any[];
3731
+ anyOf?: /*elided*/ any[];
3732
+ oneOf?: /*elided*/ any[];
3733
+ not?: /*elided*/ any;
3734
+ extends?: string | string[] | undefined;
3735
+ format?: string | undefined;
3736
+ };
3737
+ expiresAt?: string;
3738
+ metadata?: {
3739
+ questions: {
3740
+ header: string;
3741
+ multiSelect?: boolean;
3742
+ options?: {
3743
+ description: string;
3744
+ label: string;
3745
+ }[];
3746
+ question: string;
3747
+ }[];
3748
+ };
3749
+ })[];
3543
3750
  };
3751
+ timestamp?: number;
3544
3752
  };
3545
- role: import("..").MessageRole.User;
3753
+ role: import("..").MessageRole.Interrupt;
3546
3754
  id?: string;
3547
3755
  messageId?: string;
3548
3756
  name?: string;
@@ -3576,6 +3784,17 @@ export declare const useSession: (mediator: IMediatorModule) => {
3576
3784
  content: ({
3577
3785
  activityType: import("..").ActivityType;
3578
3786
  content: {
3787
+ artifacts: {
3788
+ name: string;
3789
+ outputId: string;
3790
+ size: number;
3791
+ type: string;
3792
+ previewUrl?: string;
3793
+ url?: string;
3794
+ }[];
3795
+ runId: string;
3796
+ status: "complete" | "empty";
3797
+ } | {
3579
3798
  nodes: Record<string, import("..").IFlowAgentNode>;
3580
3799
  task_id: string;
3581
3800
  task_name: string;
@@ -3593,6 +3812,31 @@ export declare const useSession: (mediator: IMediatorModule) => {
3593
3812
  originFileUrl?: string;
3594
3813
  url: string;
3595
3814
  }[];
3815
+ property?: {
3816
+ [x: string]: unknown;
3817
+ artifacts?: {
3818
+ name: string;
3819
+ outputId: string;
3820
+ size: number;
3821
+ type: string;
3822
+ previewUrl?: string;
3823
+ url?: string;
3824
+ }[];
3825
+ extra?: {
3826
+ [x: string]: unknown;
3827
+ cite?: string | {
3828
+ data: {
3829
+ key: string;
3830
+ value: string;
3831
+ }[];
3832
+ title: string;
3833
+ type: string;
3834
+ };
3835
+ command?: string;
3836
+ context?: Array<Record<string, unknown>>;
3837
+ resources?: Array<Record<string, unknown>>;
3838
+ };
3839
+ };
3596
3840
  role: import("..").MessageRole.Activity;
3597
3841
  id?: string;
3598
3842
  messageId?: string;
@@ -3603,6 +3847,14 @@ export declare const useSession: (mediator: IMediatorModule) => {
3603
3847
  content?: string;
3604
3848
  property?: {
3605
3849
  [x: string]: unknown;
3850
+ artifacts?: {
3851
+ name: string;
3852
+ outputId: string;
3853
+ size: number;
3854
+ type: string;
3855
+ previewUrl?: string;
3856
+ url?: string;
3857
+ }[];
3606
3858
  extra?: {
3607
3859
  [x: string]: unknown;
3608
3860
  cite?: string | {
@@ -3626,17 +3878,200 @@ export declare const useSession: (mediator: IMediatorModule) => {
3626
3878
  mcpName?: string;
3627
3879
  name: string;
3628
3880
  };
3629
- id: string;
3630
- type: import("..").MessageType.Function;
3631
- }[];
3632
- id?: string;
3633
- messageId?: string;
3634
- name?: string;
3635
- sessionCode?: string;
3636
- status: import("..").MessageStatus;
3637
- } | {
3638
- content: string;
3639
- role: import("..").MessageRole.Developer;
3881
+ id: string;
3882
+ type: import("..").MessageType.Function;
3883
+ }[];
3884
+ id?: string;
3885
+ messageId?: string;
3886
+ name?: string;
3887
+ sessionCode?: string;
3888
+ status: import("..").MessageStatus;
3889
+ } | {
3890
+ content: string;
3891
+ role: import("..").MessageRole.Developer;
3892
+ id?: string;
3893
+ messageId?: string;
3894
+ name?: string;
3895
+ sessionCode?: string;
3896
+ status: import("..").MessageStatus;
3897
+ } | {
3898
+ content: string;
3899
+ role: import("..").MessageRole.Guide;
3900
+ id?: string;
3901
+ messageId?: string;
3902
+ name?: string;
3903
+ sessionCode?: string;
3904
+ status: import("..").MessageStatus;
3905
+ } | {
3906
+ content: string;
3907
+ role: import("..").MessageRole.HiddenAssistant;
3908
+ id?: string;
3909
+ messageId?: string;
3910
+ name?: string;
3911
+ sessionCode?: string;
3912
+ status: import("..").MessageStatus;
3913
+ } | {
3914
+ content: string;
3915
+ role: import("..").MessageRole.HiddenGuide;
3916
+ id?: string;
3917
+ messageId?: string;
3918
+ name?: string;
3919
+ sessionCode?: string;
3920
+ status: import("..").MessageStatus;
3921
+ } | {
3922
+ content: string;
3923
+ role: import("..").MessageRole.Hidden;
3924
+ id?: string;
3925
+ messageId?: string;
3926
+ name?: string;
3927
+ sessionCode?: string;
3928
+ status: import("..").MessageStatus;
3929
+ } | {
3930
+ content: string;
3931
+ role: import("..").MessageRole.HiddenSystem;
3932
+ id?: string;
3933
+ messageId?: string;
3934
+ name?: string;
3935
+ sessionCode?: string;
3936
+ status: import("..").MessageStatus;
3937
+ } | {
3938
+ content: string;
3939
+ role: import("..").MessageRole.HiddenUser;
3940
+ id?: string;
3941
+ messageId?: string;
3942
+ name?: string;
3943
+ sessionCode?: string;
3944
+ status: import("..").MessageStatus;
3945
+ } | {
3946
+ content: string;
3947
+ role: import("..").MessageRole.Info;
3948
+ id?: string;
3949
+ messageId?: string;
3950
+ name?: string;
3951
+ sessionCode?: string;
3952
+ status: import("..").MessageStatus;
3953
+ } | {
3954
+ content: string;
3955
+ role: import("..").MessageRole.Pause;
3956
+ id?: string;
3957
+ messageId?: string;
3958
+ name?: string;
3959
+ sessionCode?: string;
3960
+ status: import("..").MessageStatus;
3961
+ } | {
3962
+ content: string;
3963
+ role: import("..").MessageRole.Placeholder;
3964
+ id?: string;
3965
+ messageId?: string;
3966
+ name?: string;
3967
+ sessionCode?: string;
3968
+ status: import("..").MessageStatus;
3969
+ } | {
3970
+ content: string[];
3971
+ duration?: number;
3972
+ role: import("..").MessageRole.Reasoning;
3973
+ id?: string;
3974
+ messageId?: string;
3975
+ name?: string;
3976
+ sessionCode?: string;
3977
+ status: import("..").MessageStatus;
3978
+ } | {
3979
+ content: string;
3980
+ role: import("..").MessageRole.System;
3981
+ id?: string;
3982
+ messageId?: string;
3983
+ name?: string;
3984
+ sessionCode?: string;
3985
+ status: import("..").MessageStatus;
3986
+ } | {
3987
+ content: string;
3988
+ role: import("..").MessageRole.TemplateAssistant;
3989
+ id?: string;
3990
+ messageId?: string;
3991
+ name?: string;
3992
+ sessionCode?: string;
3993
+ status: import("..").MessageStatus;
3994
+ } | {
3995
+ content: string;
3996
+ role: import("..").MessageRole.TemplateGuide;
3997
+ id?: string;
3998
+ messageId?: string;
3999
+ name?: string;
4000
+ sessionCode?: string;
4001
+ status: import("..").MessageStatus;
4002
+ } | {
4003
+ content: string;
4004
+ role: import("..").MessageRole.TemplateHidden;
4005
+ id?: string;
4006
+ messageId?: string;
4007
+ name?: string;
4008
+ sessionCode?: string;
4009
+ status: import("..").MessageStatus;
4010
+ } | {
4011
+ content: string;
4012
+ role: import("..").MessageRole.TemplateSystem;
4013
+ id?: string;
4014
+ messageId?: string;
4015
+ name?: string;
4016
+ sessionCode?: string;
4017
+ status: import("..").MessageStatus;
4018
+ } | {
4019
+ content: string;
4020
+ role: import("..").MessageRole.TemplateUser;
4021
+ id?: string;
4022
+ messageId?: string;
4023
+ name?: string;
4024
+ sessionCode?: string;
4025
+ status: import("..").MessageStatus;
4026
+ } | {
4027
+ content: string;
4028
+ duration?: number;
4029
+ error?: string;
4030
+ role: import("..").MessageRole.Tool;
4031
+ toolCallId: string;
4032
+ id?: string;
4033
+ messageId?: string;
4034
+ name?: string;
4035
+ sessionCode?: string;
4036
+ status: import("..").MessageStatus;
4037
+ } | {
4038
+ content: string | ({
4039
+ data?: string;
4040
+ filename?: string;
4041
+ id?: string;
4042
+ mimeType: string;
4043
+ type: import("..").MessageType.Binary;
4044
+ url?: string;
4045
+ } | {
4046
+ text: string;
4047
+ type: import("..").MessageType.Text;
4048
+ })[];
4049
+ property?: {
4050
+ [x: string]: unknown;
4051
+ artifacts?: {
4052
+ name: string;
4053
+ outputId: string;
4054
+ size: number;
4055
+ type: string;
4056
+ previewUrl?: string;
4057
+ url?: string;
4058
+ }[];
4059
+ extra?: {
4060
+ [x: string]: unknown;
4061
+ cite?: string | {
4062
+ data: {
4063
+ key: string;
4064
+ value: string;
4065
+ }[];
4066
+ title: string;
4067
+ type: string;
4068
+ };
4069
+ command?: string;
4070
+ context?: Array<Record<string, unknown>>;
4071
+ resources?: Array<Record<string, unknown>>;
4072
+ };
4073
+ };
4074
+ role: import("..").MessageRole.User;
3640
4075
  id?: string;
3641
4076
  messageId?: string;
3642
4077
  name?: string;
@@ -4200,248 +4635,73 @@ export declare const useSession: (mediator: IMediatorModule) => {
4200
4635
  readonly [Symbol.unscopables]: {
4201
4636
  [x: number]: boolean;
4202
4637
  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>>;
4638
+ toString?: boolean;
4639
+ toLocaleString?: boolean;
4640
+ pop?: boolean;
4641
+ push?: boolean;
4642
+ concat?: boolean;
4643
+ join?: boolean;
4644
+ reverse?: boolean;
4645
+ shift?: boolean;
4646
+ slice?: boolean;
4647
+ sort?: boolean;
4648
+ splice?: boolean;
4649
+ unshift?: boolean;
4650
+ indexOf?: boolean;
4651
+ lastIndexOf?: boolean;
4652
+ every?: boolean;
4653
+ some?: boolean;
4654
+ forEach?: boolean;
4655
+ map?: boolean;
4656
+ filter?: boolean;
4657
+ reduce?: boolean;
4658
+ reduceRight?: boolean;
4659
+ find?: boolean;
4660
+ findIndex?: boolean;
4661
+ fill?: boolean;
4662
+ copyWithin?: boolean;
4663
+ entries?: boolean;
4664
+ keys?: boolean;
4665
+ values?: boolean;
4666
+ includes?: boolean;
4667
+ flatMap?: boolean;
4668
+ flat?: boolean;
4669
+ at?: boolean;
4670
+ findLast?: boolean;
4671
+ findLastIndex?: boolean;
4672
+ toReversed?: boolean;
4673
+ toSorted?: boolean;
4674
+ toSpliced?: boolean;
4675
+ with?: boolean;
4676
+ [Symbol.iterator]?: boolean;
4677
+ readonly [Symbol.unscopables]?: boolean;
4678
+ };
4679
+ })[];
4680
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
4681
+ allOf?: /*elided*/ any[];
4682
+ anyOf?: /*elided*/ any[];
4683
+ oneOf?: /*elided*/ any[];
4684
+ not?: /*elided*/ any;
4685
+ extends?: string | string[] | undefined;
4686
+ format?: string | undefined;
4687
+ };
4688
+ expiresAt?: string;
4689
+ metadata?: {
4690
+ questions: {
4691
+ header: string;
4692
+ multiSelect?: boolean;
4693
+ options?: {
4694
+ description: string;
4695
+ label: string;
4696
+ }[];
4697
+ question: string;
4698
+ }[];
4699
+ };
4700
+ })[];
4442
4701
  };
4702
+ timestamp?: number;
4443
4703
  };
4444
- role: import("..").MessageRole.User;
4704
+ role: import("..").MessageRole.Interrupt;
4445
4705
  id?: string;
4446
4706
  messageId?: string;
4447
4707
  name?: string;
@@ -4453,6 +4713,17 @@ export declare const useSession: (mediator: IMediatorModule) => {
4453
4713
  value: string | ({
4454
4714
  activityType: import("..").ActivityType;
4455
4715
  content: {
4716
+ artifacts: {
4717
+ name: string;
4718
+ outputId: string;
4719
+ size: number;
4720
+ type: string;
4721
+ previewUrl?: string;
4722
+ url?: string;
4723
+ }[];
4724
+ runId: string;
4725
+ status: "complete" | "empty";
4726
+ } | {
4456
4727
  nodes: Record<string, import("..").IFlowAgentNode>;
4457
4728
  task_id: string;
4458
4729
  task_name: string;
@@ -4470,6 +4741,31 @@ export declare const useSession: (mediator: IMediatorModule) => {
4470
4741
  originFileUrl?: string;
4471
4742
  url: string;
4472
4743
  }[];
4744
+ property?: {
4745
+ [x: string]: unknown;
4746
+ artifacts?: {
4747
+ name: string;
4748
+ outputId: string;
4749
+ size: number;
4750
+ type: string;
4751
+ previewUrl?: string;
4752
+ url?: string;
4753
+ }[];
4754
+ extra?: {
4755
+ [x: string]: unknown;
4756
+ cite?: string | {
4757
+ data: {
4758
+ key: string;
4759
+ value: string;
4760
+ }[];
4761
+ title: string;
4762
+ type: string;
4763
+ };
4764
+ command?: string;
4765
+ context?: Array<Record<string, unknown>>;
4766
+ resources?: Array<Record<string, unknown>>;
4767
+ };
4768
+ };
4473
4769
  role: import("..").MessageRole.Activity;
4474
4770
  id?: string;
4475
4771
  messageId?: string;
@@ -4477,9 +4773,218 @@ export declare const useSession: (mediator: IMediatorModule) => {
4477
4773
  sessionCode?: string;
4478
4774
  status: import("..").MessageStatus;
4479
4775
  } | {
4480
- content?: string;
4776
+ content?: string;
4777
+ property?: {
4778
+ [x: string]: unknown;
4779
+ artifacts?: {
4780
+ name: string;
4781
+ outputId: string;
4782
+ size: number;
4783
+ type: string;
4784
+ previewUrl?: string;
4785
+ url?: string;
4786
+ }[];
4787
+ extra?: {
4788
+ [x: string]: unknown;
4789
+ cite?: string | {
4790
+ data: {
4791
+ key: string;
4792
+ value: string;
4793
+ }[];
4794
+ title: string;
4795
+ type: string;
4796
+ };
4797
+ command?: string;
4798
+ context?: Array<Record<string, unknown>>;
4799
+ resources?: Array<Record<string, unknown>>;
4800
+ };
4801
+ };
4802
+ role: import("..").MessageRole.Assistant;
4803
+ toolCalls?: {
4804
+ function: {
4805
+ arguments: string;
4806
+ description?: string;
4807
+ mcpName?: string;
4808
+ name: string;
4809
+ };
4810
+ id: string;
4811
+ type: import("..").MessageType.Function;
4812
+ }[];
4813
+ id?: string;
4814
+ messageId?: string;
4815
+ name?: string;
4816
+ sessionCode?: string;
4817
+ status: import("..").MessageStatus;
4818
+ } | {
4819
+ content: string;
4820
+ role: import("..").MessageRole.Developer;
4821
+ id?: string;
4822
+ messageId?: string;
4823
+ name?: string;
4824
+ sessionCode?: string;
4825
+ status: import("..").MessageStatus;
4826
+ } | {
4827
+ content: string;
4828
+ role: import("..").MessageRole.Guide;
4829
+ id?: string;
4830
+ messageId?: string;
4831
+ name?: string;
4832
+ sessionCode?: string;
4833
+ status: import("..").MessageStatus;
4834
+ } | {
4835
+ content: string;
4836
+ role: import("..").MessageRole.HiddenAssistant;
4837
+ id?: string;
4838
+ messageId?: string;
4839
+ name?: string;
4840
+ sessionCode?: string;
4841
+ status: import("..").MessageStatus;
4842
+ } | {
4843
+ content: string;
4844
+ role: import("..").MessageRole.HiddenGuide;
4845
+ id?: string;
4846
+ messageId?: string;
4847
+ name?: string;
4848
+ sessionCode?: string;
4849
+ status: import("..").MessageStatus;
4850
+ } | {
4851
+ content: string;
4852
+ role: import("..").MessageRole.Hidden;
4853
+ id?: string;
4854
+ messageId?: string;
4855
+ name?: string;
4856
+ sessionCode?: string;
4857
+ status: import("..").MessageStatus;
4858
+ } | {
4859
+ content: string;
4860
+ role: import("..").MessageRole.HiddenSystem;
4861
+ id?: string;
4862
+ messageId?: string;
4863
+ name?: string;
4864
+ sessionCode?: string;
4865
+ status: import("..").MessageStatus;
4866
+ } | {
4867
+ content: string;
4868
+ role: import("..").MessageRole.HiddenUser;
4869
+ id?: string;
4870
+ messageId?: string;
4871
+ name?: string;
4872
+ sessionCode?: string;
4873
+ status: import("..").MessageStatus;
4874
+ } | {
4875
+ content: string;
4876
+ role: import("..").MessageRole.Info;
4877
+ id?: string;
4878
+ messageId?: string;
4879
+ name?: string;
4880
+ sessionCode?: string;
4881
+ status: import("..").MessageStatus;
4882
+ } | {
4883
+ content: string;
4884
+ role: import("..").MessageRole.Pause;
4885
+ id?: string;
4886
+ messageId?: string;
4887
+ name?: string;
4888
+ sessionCode?: string;
4889
+ status: import("..").MessageStatus;
4890
+ } | {
4891
+ content: string;
4892
+ role: import("..").MessageRole.Placeholder;
4893
+ id?: string;
4894
+ messageId?: string;
4895
+ name?: string;
4896
+ sessionCode?: string;
4897
+ status: import("..").MessageStatus;
4898
+ } | {
4899
+ content: string[];
4900
+ duration?: number;
4901
+ role: import("..").MessageRole.Reasoning;
4902
+ id?: string;
4903
+ messageId?: string;
4904
+ name?: string;
4905
+ sessionCode?: string;
4906
+ status: import("..").MessageStatus;
4907
+ } | {
4908
+ content: string;
4909
+ role: import("..").MessageRole.System;
4910
+ id?: string;
4911
+ messageId?: string;
4912
+ name?: string;
4913
+ sessionCode?: string;
4914
+ status: import("..").MessageStatus;
4915
+ } | {
4916
+ content: string;
4917
+ role: import("..").MessageRole.TemplateAssistant;
4918
+ id?: string;
4919
+ messageId?: string;
4920
+ name?: string;
4921
+ sessionCode?: string;
4922
+ status: import("..").MessageStatus;
4923
+ } | {
4924
+ content: string;
4925
+ role: import("..").MessageRole.TemplateGuide;
4926
+ id?: string;
4927
+ messageId?: string;
4928
+ name?: string;
4929
+ sessionCode?: string;
4930
+ status: import("..").MessageStatus;
4931
+ } | {
4932
+ content: string;
4933
+ role: import("..").MessageRole.TemplateHidden;
4934
+ id?: string;
4935
+ messageId?: string;
4936
+ name?: string;
4937
+ sessionCode?: string;
4938
+ status: import("..").MessageStatus;
4939
+ } | {
4940
+ content: string;
4941
+ role: import("..").MessageRole.TemplateSystem;
4942
+ id?: string;
4943
+ messageId?: string;
4944
+ name?: string;
4945
+ sessionCode?: string;
4946
+ status: import("..").MessageStatus;
4947
+ } | {
4948
+ content: string;
4949
+ role: import("..").MessageRole.TemplateUser;
4950
+ id?: string;
4951
+ messageId?: string;
4952
+ name?: string;
4953
+ sessionCode?: string;
4954
+ status: import("..").MessageStatus;
4955
+ } | {
4956
+ content: string;
4957
+ duration?: number;
4958
+ error?: string;
4959
+ role: import("..").MessageRole.Tool;
4960
+ toolCallId: string;
4961
+ id?: string;
4962
+ messageId?: string;
4963
+ name?: string;
4964
+ sessionCode?: string;
4965
+ status: import("..").MessageStatus;
4966
+ } | {
4967
+ content: string | ({
4968
+ data?: string;
4969
+ filename?: string;
4970
+ id?: string;
4971
+ mimeType: string;
4972
+ type: import("..").MessageType.Binary;
4973
+ url?: string;
4974
+ } | {
4975
+ text: string;
4976
+ type: import("..").MessageType.Text;
4977
+ })[];
4481
4978
  property?: {
4482
4979
  [x: string]: unknown;
4980
+ artifacts?: {
4981
+ name: string;
4982
+ outputId: string;
4983
+ size: number;
4984
+ type: string;
4985
+ previewUrl?: string;
4986
+ url?: string;
4987
+ }[];
4483
4988
  extra?: {
4484
4989
  [x: string]: unknown;
4485
4990
  cite?: string | {
@@ -4495,25 +5000,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
4495
5000
  resources?: Array<Record<string, unknown>>;
4496
5001
  };
4497
5002
  };
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;
5003
+ role: import("..").MessageRole.User;
4517
5004
  id?: string;
4518
5005
  messageId?: string;
4519
5006
  name?: string;
@@ -5115,210 +5602,35 @@ export declare const useSession: (mediator: IMediatorModule) => {
5115
5602
  toSorted?: boolean;
5116
5603
  toSpliced?: boolean;
5117
5604
  with?: boolean;
5118
- [Symbol.iterator]?: boolean;
5119
- readonly [Symbol.unscopables]?: boolean;
5120
- };
5121
- })[];
5122
- type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
5123
- allOf?: /*elided*/ any[];
5124
- anyOf?: /*elided*/ any[];
5125
- oneOf?: /*elided*/ any[];
5126
- not?: /*elided*/ any;
5127
- extends?: string | string[] | undefined;
5128
- 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>>;
5605
+ [Symbol.iterator]?: boolean;
5606
+ readonly [Symbol.unscopables]?: boolean;
5607
+ };
5608
+ })[];
5609
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
5610
+ allOf?: /*elided*/ any[];
5611
+ anyOf?: /*elided*/ any[];
5612
+ oneOf?: /*elided*/ any[];
5613
+ not?: /*elided*/ any;
5614
+ extends?: string | string[] | undefined;
5615
+ format?: string | undefined;
5616
+ };
5617
+ expiresAt?: string;
5618
+ metadata?: {
5619
+ questions: {
5620
+ header: string;
5621
+ multiSelect?: boolean;
5622
+ options?: {
5623
+ description: string;
5624
+ label: string;
5625
+ }[];
5626
+ question: string;
5627
+ }[];
5628
+ };
5629
+ })[];
5319
5630
  };
5631
+ timestamp?: number;
5320
5632
  };
5321
- role: import("..").MessageRole.User;
5633
+ role: import("..").MessageRole.Interrupt;
5322
5634
  id?: string;
5323
5635
  messageId?: string;
5324
5636
  name?: string;
@@ -5351,6 +5663,17 @@ export declare const useSession: (mediator: IMediatorModule) => {
5351
5663
  content: ({
5352
5664
  activityType: import("..").ActivityType;
5353
5665
  content: {
5666
+ artifacts: {
5667
+ name: string;
5668
+ outputId: string;
5669
+ size: number;
5670
+ type: string;
5671
+ previewUrl?: string;
5672
+ url?: string;
5673
+ }[];
5674
+ runId: string;
5675
+ status: "complete" | "empty";
5676
+ } | {
5354
5677
  nodes: Record<string, import("..").IFlowAgentNode>;
5355
5678
  task_id: string;
5356
5679
  task_name: string;
@@ -5368,6 +5691,31 @@ export declare const useSession: (mediator: IMediatorModule) => {
5368
5691
  originFileUrl?: string;
5369
5692
  url: string;
5370
5693
  }[];
5694
+ property?: {
5695
+ [x: string]: unknown;
5696
+ artifacts?: {
5697
+ name: string;
5698
+ outputId: string;
5699
+ size: number;
5700
+ type: string;
5701
+ previewUrl?: string;
5702
+ url?: string;
5703
+ }[];
5704
+ extra?: {
5705
+ [x: string]: unknown;
5706
+ cite?: string | {
5707
+ data: {
5708
+ key: string;
5709
+ value: string;
5710
+ }[];
5711
+ title: string;
5712
+ type: string;
5713
+ };
5714
+ command?: string;
5715
+ context?: Array<Record<string, unknown>>;
5716
+ resources?: Array<Record<string, unknown>>;
5717
+ };
5718
+ };
5371
5719
  role: import("..").MessageRole.Activity;
5372
5720
  id?: string;
5373
5721
  messageId?: string;
@@ -5378,6 +5726,14 @@ export declare const useSession: (mediator: IMediatorModule) => {
5378
5726
  content?: string;
5379
5727
  property?: {
5380
5728
  [x: string]: unknown;
5729
+ artifacts?: {
5730
+ name: string;
5731
+ outputId: string;
5732
+ size: number;
5733
+ type: string;
5734
+ previewUrl?: string;
5735
+ url?: string;
5736
+ }[];
5381
5737
  extra?: {
5382
5738
  [x: string]: unknown;
5383
5739
  cite?: string | {
@@ -5417,6 +5773,189 @@ export declare const useSession: (mediator: IMediatorModule) => {
5417
5773
  name?: string;
5418
5774
  sessionCode?: string;
5419
5775
  status: import("..").MessageStatus;
5776
+ } | {
5777
+ content: string;
5778
+ role: import("..").MessageRole.Guide;
5779
+ id?: string;
5780
+ messageId?: string;
5781
+ name?: string;
5782
+ sessionCode?: string;
5783
+ status: import("..").MessageStatus;
5784
+ } | {
5785
+ content: string;
5786
+ role: import("..").MessageRole.HiddenAssistant;
5787
+ id?: string;
5788
+ messageId?: string;
5789
+ name?: string;
5790
+ sessionCode?: string;
5791
+ status: import("..").MessageStatus;
5792
+ } | {
5793
+ content: string;
5794
+ role: import("..").MessageRole.HiddenGuide;
5795
+ id?: string;
5796
+ messageId?: string;
5797
+ name?: string;
5798
+ sessionCode?: string;
5799
+ status: import("..").MessageStatus;
5800
+ } | {
5801
+ content: string;
5802
+ role: import("..").MessageRole.Hidden;
5803
+ id?: string;
5804
+ messageId?: string;
5805
+ name?: string;
5806
+ sessionCode?: string;
5807
+ status: import("..").MessageStatus;
5808
+ } | {
5809
+ content: string;
5810
+ role: import("..").MessageRole.HiddenSystem;
5811
+ id?: string;
5812
+ messageId?: string;
5813
+ name?: string;
5814
+ sessionCode?: string;
5815
+ status: import("..").MessageStatus;
5816
+ } | {
5817
+ content: string;
5818
+ role: import("..").MessageRole.HiddenUser;
5819
+ id?: string;
5820
+ messageId?: string;
5821
+ name?: string;
5822
+ sessionCode?: string;
5823
+ status: import("..").MessageStatus;
5824
+ } | {
5825
+ content: string;
5826
+ role: import("..").MessageRole.Info;
5827
+ id?: string;
5828
+ messageId?: string;
5829
+ name?: string;
5830
+ sessionCode?: string;
5831
+ status: import("..").MessageStatus;
5832
+ } | {
5833
+ content: string;
5834
+ role: import("..").MessageRole.Pause;
5835
+ id?: string;
5836
+ messageId?: string;
5837
+ name?: string;
5838
+ sessionCode?: string;
5839
+ status: import("..").MessageStatus;
5840
+ } | {
5841
+ content: string;
5842
+ role: import("..").MessageRole.Placeholder;
5843
+ id?: string;
5844
+ messageId?: string;
5845
+ name?: string;
5846
+ sessionCode?: string;
5847
+ status: import("..").MessageStatus;
5848
+ } | {
5849
+ content: string[];
5850
+ duration?: number;
5851
+ role: import("..").MessageRole.Reasoning;
5852
+ id?: string;
5853
+ messageId?: string;
5854
+ name?: string;
5855
+ sessionCode?: string;
5856
+ status: import("..").MessageStatus;
5857
+ } | {
5858
+ content: string;
5859
+ role: import("..").MessageRole.System;
5860
+ id?: string;
5861
+ messageId?: string;
5862
+ name?: string;
5863
+ sessionCode?: string;
5864
+ status: import("..").MessageStatus;
5865
+ } | {
5866
+ content: string;
5867
+ role: import("..").MessageRole.TemplateAssistant;
5868
+ id?: string;
5869
+ messageId?: string;
5870
+ name?: string;
5871
+ sessionCode?: string;
5872
+ status: import("..").MessageStatus;
5873
+ } | {
5874
+ content: string;
5875
+ role: import("..").MessageRole.TemplateGuide;
5876
+ id?: string;
5877
+ messageId?: string;
5878
+ name?: string;
5879
+ sessionCode?: string;
5880
+ status: import("..").MessageStatus;
5881
+ } | {
5882
+ content: string;
5883
+ role: import("..").MessageRole.TemplateHidden;
5884
+ id?: string;
5885
+ messageId?: string;
5886
+ name?: string;
5887
+ sessionCode?: string;
5888
+ status: import("..").MessageStatus;
5889
+ } | {
5890
+ content: string;
5891
+ role: import("..").MessageRole.TemplateSystem;
5892
+ id?: string;
5893
+ messageId?: string;
5894
+ name?: string;
5895
+ sessionCode?: string;
5896
+ status: import("..").MessageStatus;
5897
+ } | {
5898
+ content: string;
5899
+ role: import("..").MessageRole.TemplateUser;
5900
+ id?: string;
5901
+ messageId?: string;
5902
+ name?: string;
5903
+ sessionCode?: string;
5904
+ status: import("..").MessageStatus;
5905
+ } | {
5906
+ content: string;
5907
+ duration?: number;
5908
+ error?: string;
5909
+ role: import("..").MessageRole.Tool;
5910
+ toolCallId: string;
5911
+ id?: string;
5912
+ messageId?: string;
5913
+ name?: string;
5914
+ sessionCode?: string;
5915
+ status: import("..").MessageStatus;
5916
+ } | {
5917
+ content: string | ({
5918
+ data?: string;
5919
+ filename?: string;
5920
+ id?: string;
5921
+ mimeType: string;
5922
+ type: import("..").MessageType.Binary;
5923
+ url?: string;
5924
+ } | {
5925
+ text: string;
5926
+ type: import("..").MessageType.Text;
5927
+ })[];
5928
+ property?: {
5929
+ [x: string]: unknown;
5930
+ artifacts?: {
5931
+ name: string;
5932
+ outputId: string;
5933
+ size: number;
5934
+ type: string;
5935
+ previewUrl?: string;
5936
+ url?: string;
5937
+ }[];
5938
+ extra?: {
5939
+ [x: string]: unknown;
5940
+ cite?: string | {
5941
+ data: {
5942
+ key: string;
5943
+ value: string;
5944
+ }[];
5945
+ title: string;
5946
+ type: string;
5947
+ };
5948
+ command?: string;
5949
+ context?: Array<Record<string, unknown>>;
5950
+ resources?: Array<Record<string, unknown>>;
5951
+ };
5952
+ };
5953
+ role: import("..").MessageRole.User;
5954
+ id?: string;
5955
+ messageId?: string;
5956
+ name?: string;
5957
+ sessionCode?: string;
5958
+ status: import("..").MessageStatus;
5420
5959
  } | {
5421
5960
  content: {
5422
5961
  result?: {
@@ -5940,283 +6479,108 @@ export declare const useSession: (mediator: IMediatorModule) => {
5940
6479
  (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
6480
  <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
5942
6481
  };
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[];
6482
+ reduceRight: {
6483
+ (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;
6484
+ (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;
6485
+ <U>(callbackfn: (previousValue: U, currentValue: import("json-schema").JSONSchema4Type, currentIndex: number, array: import("json-schema").JSONSchema4Type[]) => U, initialValue: U): U;
5972
6486
  };
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;
6487
+ find: {
6488
+ <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;
6489
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
6018
6490
  };
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>>;
6491
+ findIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, obj: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
6492
+ fill: (value: import("json-schema").JSONSchema4Type, start?: number, end?: number) => import("json-schema").JSONSchema4Array;
6493
+ copyWithin: (target: number, start: number, end?: number) => import("json-schema").JSONSchema4Array;
6494
+ entries: () => ArrayIterator<[number, import("json-schema").JSONSchema4Type]>;
6495
+ keys: () => ArrayIterator<number>;
6496
+ values: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
6497
+ includes: (searchElement: import("json-schema").JSONSchema4Type, fromIndex?: number) => boolean;
6498
+ 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[];
6499
+ flat: <A, D extends number = 1>(this: A, depth?: D) => FlatArray<A, D>[];
6500
+ at: (index: number) => import("json-schema").JSONSchema4Type;
6501
+ findLast: {
6502
+ <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;
6503
+ (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any): import("json-schema").JSONSchema4Type;
6504
+ };
6505
+ findLastIndex: (predicate: (value: import("json-schema").JSONSchema4Type, index: number, array: import("json-schema").JSONSchema4Type[]) => unknown, thisArg?: any) => number;
6506
+ toReversed: () => import("json-schema").JSONSchema4Type[];
6507
+ toSorted: (compareFn?: (a: import("json-schema").JSONSchema4Type, b: import("json-schema").JSONSchema4Type) => number) => import("json-schema").JSONSchema4Type[];
6508
+ toSpliced: {
6509
+ (start: number, deleteCount: number, ...items: import("json-schema").JSONSchema4Type[]): import("json-schema").JSONSchema4Type[];
6510
+ (start: number, deleteCount?: number): import("json-schema").JSONSchema4Type[];
6511
+ };
6512
+ with: (index: number, value: import("json-schema").JSONSchema4Type) => import("json-schema").JSONSchema4Type[];
6513
+ [Symbol.iterator]: () => ArrayIterator<import("json-schema").JSONSchema4Type>;
6514
+ readonly [Symbol.unscopables]: {
6515
+ [x: number]: boolean;
6516
+ length?: boolean;
6517
+ toString?: boolean;
6518
+ toLocaleString?: boolean;
6519
+ pop?: boolean;
6520
+ push?: boolean;
6521
+ concat?: boolean;
6522
+ join?: boolean;
6523
+ reverse?: boolean;
6524
+ shift?: boolean;
6525
+ slice?: boolean;
6526
+ sort?: boolean;
6527
+ splice?: boolean;
6528
+ unshift?: boolean;
6529
+ indexOf?: boolean;
6530
+ lastIndexOf?: boolean;
6531
+ every?: boolean;
6532
+ some?: boolean;
6533
+ forEach?: boolean;
6534
+ map?: boolean;
6535
+ filter?: boolean;
6536
+ reduce?: boolean;
6537
+ reduceRight?: boolean;
6538
+ find?: boolean;
6539
+ findIndex?: boolean;
6540
+ fill?: boolean;
6541
+ copyWithin?: boolean;
6542
+ entries?: boolean;
6543
+ keys?: boolean;
6544
+ values?: boolean;
6545
+ includes?: boolean;
6546
+ flatMap?: boolean;
6547
+ flat?: boolean;
6548
+ at?: boolean;
6549
+ findLast?: boolean;
6550
+ findLastIndex?: boolean;
6551
+ toReversed?: boolean;
6552
+ toSorted?: boolean;
6553
+ toSpliced?: boolean;
6554
+ with?: boolean;
6555
+ [Symbol.iterator]?: boolean;
6556
+ readonly [Symbol.unscopables]?: boolean;
6557
+ };
6558
+ })[];
6559
+ type?: import("json-schema").JSONSchema4TypeName | import("json-schema").JSONSchema4TypeName[] | undefined;
6560
+ allOf?: /*elided*/ any[];
6561
+ anyOf?: /*elided*/ any[];
6562
+ oneOf?: /*elided*/ any[];
6563
+ not?: /*elided*/ any;
6564
+ extends?: string | string[] | undefined;
6565
+ format?: string | undefined;
6566
+ };
6567
+ expiresAt?: string;
6568
+ metadata?: {
6569
+ questions: {
6570
+ header: string;
6571
+ multiSelect?: boolean;
6572
+ options?: {
6573
+ description: string;
6574
+ label: string;
6575
+ }[];
6576
+ question: string;
6577
+ }[];
6578
+ };
6579
+ })[];
6217
6580
  };
6581
+ timestamp?: number;
6218
6582
  };
6219
- role: import("..").MessageRole.User;
6583
+ role: import("..").MessageRole.Interrupt;
6220
6584
  id?: string;
6221
6585
  messageId?: string;
6222
6586
  name?: string;
@@ -6228,6 +6592,17 @@ export declare const useSession: (mediator: IMediatorModule) => {
6228
6592
  value: string | ({
6229
6593
  activityType: import("..").ActivityType;
6230
6594
  content: {
6595
+ artifacts: {
6596
+ name: string;
6597
+ outputId: string;
6598
+ size: number;
6599
+ type: string;
6600
+ previewUrl?: string;
6601
+ url?: string;
6602
+ }[];
6603
+ runId: string;
6604
+ status: "complete" | "empty";
6605
+ } | {
6231
6606
  nodes: Record<string, import("..").IFlowAgentNode>;
6232
6607
  task_id: string;
6233
6608
  task_name: string;
@@ -6245,6 +6620,31 @@ export declare const useSession: (mediator: IMediatorModule) => {
6245
6620
  originFileUrl?: string;
6246
6621
  url: string;
6247
6622
  }[];
6623
+ property?: {
6624
+ [x: string]: unknown;
6625
+ artifacts?: {
6626
+ name: string;
6627
+ outputId: string;
6628
+ size: number;
6629
+ type: string;
6630
+ previewUrl?: string;
6631
+ url?: string;
6632
+ }[];
6633
+ extra?: {
6634
+ [x: string]: unknown;
6635
+ cite?: string | {
6636
+ data: {
6637
+ key: string;
6638
+ value: string;
6639
+ }[];
6640
+ title: string;
6641
+ type: string;
6642
+ };
6643
+ command?: string;
6644
+ context?: Array<Record<string, unknown>>;
6645
+ resources?: Array<Record<string, unknown>>;
6646
+ };
6647
+ };
6248
6648
  role: import("..").MessageRole.Activity;
6249
6649
  id?: string;
6250
6650
  messageId?: string;
@@ -6252,9 +6652,218 @@ export declare const useSession: (mediator: IMediatorModule) => {
6252
6652
  sessionCode?: string;
6253
6653
  status: import("..").MessageStatus;
6254
6654
  } | {
6255
- content?: string;
6655
+ content?: string;
6656
+ property?: {
6657
+ [x: string]: unknown;
6658
+ artifacts?: {
6659
+ name: string;
6660
+ outputId: string;
6661
+ size: number;
6662
+ type: string;
6663
+ previewUrl?: string;
6664
+ url?: string;
6665
+ }[];
6666
+ extra?: {
6667
+ [x: string]: unknown;
6668
+ cite?: string | {
6669
+ data: {
6670
+ key: string;
6671
+ value: string;
6672
+ }[];
6673
+ title: string;
6674
+ type: string;
6675
+ };
6676
+ command?: string;
6677
+ context?: Array<Record<string, unknown>>;
6678
+ resources?: Array<Record<string, unknown>>;
6679
+ };
6680
+ };
6681
+ role: import("..").MessageRole.Assistant;
6682
+ toolCalls?: {
6683
+ function: {
6684
+ arguments: string;
6685
+ description?: string;
6686
+ mcpName?: string;
6687
+ name: string;
6688
+ };
6689
+ id: string;
6690
+ type: import("..").MessageType.Function;
6691
+ }[];
6692
+ id?: string;
6693
+ messageId?: string;
6694
+ name?: string;
6695
+ sessionCode?: string;
6696
+ status: import("..").MessageStatus;
6697
+ } | {
6698
+ content: string;
6699
+ role: import("..").MessageRole.Developer;
6700
+ id?: string;
6701
+ messageId?: string;
6702
+ name?: string;
6703
+ sessionCode?: string;
6704
+ status: import("..").MessageStatus;
6705
+ } | {
6706
+ content: string;
6707
+ role: import("..").MessageRole.Guide;
6708
+ id?: string;
6709
+ messageId?: string;
6710
+ name?: string;
6711
+ sessionCode?: string;
6712
+ status: import("..").MessageStatus;
6713
+ } | {
6714
+ content: string;
6715
+ role: import("..").MessageRole.HiddenAssistant;
6716
+ id?: string;
6717
+ messageId?: string;
6718
+ name?: string;
6719
+ sessionCode?: string;
6720
+ status: import("..").MessageStatus;
6721
+ } | {
6722
+ content: string;
6723
+ role: import("..").MessageRole.HiddenGuide;
6724
+ id?: string;
6725
+ messageId?: string;
6726
+ name?: string;
6727
+ sessionCode?: string;
6728
+ status: import("..").MessageStatus;
6729
+ } | {
6730
+ content: string;
6731
+ role: import("..").MessageRole.Hidden;
6732
+ id?: string;
6733
+ messageId?: string;
6734
+ name?: string;
6735
+ sessionCode?: string;
6736
+ status: import("..").MessageStatus;
6737
+ } | {
6738
+ content: string;
6739
+ role: import("..").MessageRole.HiddenSystem;
6740
+ id?: string;
6741
+ messageId?: string;
6742
+ name?: string;
6743
+ sessionCode?: string;
6744
+ status: import("..").MessageStatus;
6745
+ } | {
6746
+ content: string;
6747
+ role: import("..").MessageRole.HiddenUser;
6748
+ id?: string;
6749
+ messageId?: string;
6750
+ name?: string;
6751
+ sessionCode?: string;
6752
+ status: import("..").MessageStatus;
6753
+ } | {
6754
+ content: string;
6755
+ role: import("..").MessageRole.Info;
6756
+ id?: string;
6757
+ messageId?: string;
6758
+ name?: string;
6759
+ sessionCode?: string;
6760
+ status: import("..").MessageStatus;
6761
+ } | {
6762
+ content: string;
6763
+ role: import("..").MessageRole.Pause;
6764
+ id?: string;
6765
+ messageId?: string;
6766
+ name?: string;
6767
+ sessionCode?: string;
6768
+ status: import("..").MessageStatus;
6769
+ } | {
6770
+ content: string;
6771
+ role: import("..").MessageRole.Placeholder;
6772
+ id?: string;
6773
+ messageId?: string;
6774
+ name?: string;
6775
+ sessionCode?: string;
6776
+ status: import("..").MessageStatus;
6777
+ } | {
6778
+ content: string[];
6779
+ duration?: number;
6780
+ role: import("..").MessageRole.Reasoning;
6781
+ id?: string;
6782
+ messageId?: string;
6783
+ name?: string;
6784
+ sessionCode?: string;
6785
+ status: import("..").MessageStatus;
6786
+ } | {
6787
+ content: string;
6788
+ role: import("..").MessageRole.System;
6789
+ id?: string;
6790
+ messageId?: string;
6791
+ name?: string;
6792
+ sessionCode?: string;
6793
+ status: import("..").MessageStatus;
6794
+ } | {
6795
+ content: string;
6796
+ role: import("..").MessageRole.TemplateAssistant;
6797
+ id?: string;
6798
+ messageId?: string;
6799
+ name?: string;
6800
+ sessionCode?: string;
6801
+ status: import("..").MessageStatus;
6802
+ } | {
6803
+ content: string;
6804
+ role: import("..").MessageRole.TemplateGuide;
6805
+ id?: string;
6806
+ messageId?: string;
6807
+ name?: string;
6808
+ sessionCode?: string;
6809
+ status: import("..").MessageStatus;
6810
+ } | {
6811
+ content: string;
6812
+ role: import("..").MessageRole.TemplateHidden;
6813
+ id?: string;
6814
+ messageId?: string;
6815
+ name?: string;
6816
+ sessionCode?: string;
6817
+ status: import("..").MessageStatus;
6818
+ } | {
6819
+ content: string;
6820
+ role: import("..").MessageRole.TemplateSystem;
6821
+ id?: string;
6822
+ messageId?: string;
6823
+ name?: string;
6824
+ sessionCode?: string;
6825
+ status: import("..").MessageStatus;
6826
+ } | {
6827
+ content: string;
6828
+ role: import("..").MessageRole.TemplateUser;
6829
+ id?: string;
6830
+ messageId?: string;
6831
+ name?: string;
6832
+ sessionCode?: string;
6833
+ status: import("..").MessageStatus;
6834
+ } | {
6835
+ content: string;
6836
+ duration?: number;
6837
+ error?: string;
6838
+ role: import("..").MessageRole.Tool;
6839
+ toolCallId: string;
6840
+ id?: string;
6841
+ messageId?: string;
6842
+ name?: string;
6843
+ sessionCode?: string;
6844
+ status: import("..").MessageStatus;
6845
+ } | {
6846
+ content: string | ({
6847
+ data?: string;
6848
+ filename?: string;
6849
+ id?: string;
6850
+ mimeType: string;
6851
+ type: import("..").MessageType.Binary;
6852
+ url?: string;
6853
+ } | {
6854
+ text: string;
6855
+ type: import("..").MessageType.Text;
6856
+ })[];
6256
6857
  property?: {
6257
6858
  [x: string]: unknown;
6859
+ artifacts?: {
6860
+ name: string;
6861
+ outputId: string;
6862
+ size: number;
6863
+ type: string;
6864
+ previewUrl?: string;
6865
+ url?: string;
6866
+ }[];
6258
6867
  extra?: {
6259
6868
  [x: string]: unknown;
6260
6869
  cite?: string | {
@@ -6270,25 +6879,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
6270
6879
  resources?: Array<Record<string, unknown>>;
6271
6880
  };
6272
6881
  };
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;
6882
+ role: import("..").MessageRole.User;
6292
6883
  id?: string;
6293
6884
  messageId?: string;
6294
6885
  name?: string;
@@ -6924,181 +7515,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
6924
7515
  name?: string;
6925
7516
  sessionCode?: string;
6926
7517
  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;
7097
- id?: string;
7098
- messageId?: string;
7099
- name?: string;
7100
- sessionCode?: string;
7101
- status: import("..").MessageStatus;
7102
7518
  })[];
7103
7519
  }[];
7104
7520
  };
@@ -7143,6 +7559,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
7143
7559
  uploadFile: (sessionCode: string, file: File) => Promise<{
7144
7560
  download_url?: string;
7145
7561
  }>;
7562
+ getPvFileDownloadUrl: (sessionCode: string, path: string, options?: GetPvFileDownloadUrlOptions) => Promise<import("./type").IPvFileDownloadUrlResult>;
7146
7563
  reset: () => void;
7147
7564
  };
7148
7565
  export type ISessionModule = ReturnType<typeof useSession>;