@blueking/chat-helper 0.0.12-beta.9 → 0.0.13-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +21 -7
  2. package/dist/agent/type.d.ts +82 -0
  3. package/dist/agent/type.ts.js +5 -1
  4. package/dist/agent/use-agent.d.ts +229 -10
  5. package/dist/agent/use-agent.ts.js +365 -25
  6. package/dist/event/ag-ui.d.ts +4 -1
  7. package/dist/event/ag-ui.ts.js +76 -6
  8. package/dist/event/type.d.ts +14 -2
  9. package/dist/event/type.ts.js +2 -0
  10. package/dist/http/fetch/fetch.spec.d.ts +1 -0
  11. package/dist/http/fetch/fetch.ts.js +106 -22
  12. package/dist/http/index.d.ts +11 -5
  13. package/dist/http/module/agent.d.ts +2 -0
  14. package/dist/http/module/agent.ts.js +19 -2
  15. package/dist/http/module/index.d.ts +11 -5
  16. package/dist/http/module/message.d.ts +1 -1
  17. package/dist/http/module/message.ts.js +4 -3
  18. package/dist/http/module/session.d.ts +10 -5
  19. package/dist/http/module/session.ts.js +60 -3
  20. package/dist/http/transform/agent.d.ts +9 -1
  21. package/dist/http/transform/agent.spec.d.ts +1 -0
  22. package/dist/http/transform/agent.ts.js +29 -0
  23. package/dist/http/transform/message.spec.d.ts +1 -0
  24. package/dist/http/transform/message.ts.js +19 -5
  25. package/dist/index.d.ts +1194 -16
  26. package/dist/message/type.d.ts +35 -3
  27. package/dist/message/type.ts.js +16 -0
  28. package/dist/message/use-message.d.ts +316 -0
  29. package/dist/session/index.d.ts +1 -0
  30. package/dist/session/index.ts.js +2 -1
  31. package/dist/session/pv-file-upload.d.ts +7 -0
  32. package/dist/session/pv-file-upload.spec.d.ts +1 -0
  33. package/dist/session/pv-file-upload.ts.js +64 -0
  34. package/dist/session/type.d.ts +57 -0
  35. package/dist/session/use-session.d.ts +644 -6
  36. package/dist/session/use-session.spec.d.ts +1 -0
  37. package/dist/session/use-session.ts.js +117 -10
  38. package/package.json +4 -2
@@ -9,6 +9,17 @@ export declare const useMessage: (mediator: IMediatorModule) => {
9
9
  list: import("vue").Ref<({
10
10
  activityType: import("./type").ActivityType;
11
11
  content: {
12
+ artifacts: {
13
+ name: string;
14
+ outputId: string;
15
+ size: number;
16
+ type: string;
17
+ previewUrl?: string;
18
+ url?: string;
19
+ }[];
20
+ runId: string;
21
+ status: "complete" | "empty";
22
+ } | {
12
23
  nodes: Record<string, import("..").IFlowAgentNode>;
13
24
  task_id: string;
14
25
  task_name: string;
@@ -26,7 +37,34 @@ export declare const useMessage: (mediator: IMediatorModule) => {
26
37
  originFileUrl?: string;
27
38
  url: string;
28
39
  }[];
40
+ property?: {
41
+ [x: string]: unknown;
42
+ artifacts?: {
43
+ name: string;
44
+ outputId: string;
45
+ size: number;
46
+ type: string;
47
+ previewUrl?: string;
48
+ url?: string;
49
+ }[];
50
+ docSchema?: unknown;
51
+ extra?: {
52
+ [x: string]: unknown;
53
+ cite?: string | {
54
+ data: {
55
+ key: string;
56
+ value: string;
57
+ }[];
58
+ title: string;
59
+ type: string;
60
+ };
61
+ command?: string;
62
+ context?: Array<Record<string, unknown>>;
63
+ resources?: Array<Record<string, unknown>>;
64
+ };
65
+ };
29
66
  role: MessageRole.Activity;
67
+ createdAt?: string;
30
68
  id?: string;
31
69
  messageId?: string;
32
70
  name?: string;
@@ -36,6 +74,15 @@ export declare const useMessage: (mediator: IMediatorModule) => {
36
74
  content?: string;
37
75
  property?: {
38
76
  [x: string]: unknown;
77
+ artifacts?: {
78
+ name: string;
79
+ outputId: string;
80
+ size: number;
81
+ type: string;
82
+ previewUrl?: string;
83
+ url?: string;
84
+ }[];
85
+ docSchema?: unknown;
39
86
  extra?: {
40
87
  [x: string]: unknown;
41
88
  cite?: string | {
@@ -62,6 +109,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
62
109
  id: string;
63
110
  type: import("./type").MessageType.Function;
64
111
  }[];
112
+ createdAt?: string;
65
113
  id?: string;
66
114
  messageId?: string;
67
115
  name?: string;
@@ -70,6 +118,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
70
118
  } | {
71
119
  content: string;
72
120
  role: MessageRole.Developer;
121
+ createdAt?: string;
73
122
  id?: string;
74
123
  messageId?: string;
75
124
  name?: string;
@@ -700,6 +749,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
700
749
  timestamp?: number;
701
750
  };
702
751
  role: MessageRole.Interrupt;
752
+ createdAt?: string;
703
753
  id?: string;
704
754
  messageId?: string;
705
755
  name?: string;
@@ -708,6 +758,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
708
758
  } | {
709
759
  content: string;
710
760
  role: MessageRole.Guide;
761
+ createdAt?: string;
711
762
  id?: string;
712
763
  messageId?: string;
713
764
  name?: string;
@@ -716,6 +767,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
716
767
  } | {
717
768
  content: string;
718
769
  role: MessageRole.HiddenAssistant;
770
+ createdAt?: string;
719
771
  id?: string;
720
772
  messageId?: string;
721
773
  name?: string;
@@ -724,6 +776,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
724
776
  } | {
725
777
  content: string;
726
778
  role: MessageRole.HiddenGuide;
779
+ createdAt?: string;
727
780
  id?: string;
728
781
  messageId?: string;
729
782
  name?: string;
@@ -732,6 +785,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
732
785
  } | {
733
786
  content: string;
734
787
  role: MessageRole.Hidden;
788
+ createdAt?: string;
735
789
  id?: string;
736
790
  messageId?: string;
737
791
  name?: string;
@@ -740,6 +794,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
740
794
  } | {
741
795
  content: string;
742
796
  role: MessageRole.HiddenSystem;
797
+ createdAt?: string;
743
798
  id?: string;
744
799
  messageId?: string;
745
800
  name?: string;
@@ -748,6 +803,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
748
803
  } | {
749
804
  content: string;
750
805
  role: MessageRole.HiddenUser;
806
+ createdAt?: string;
751
807
  id?: string;
752
808
  messageId?: string;
753
809
  name?: string;
@@ -756,6 +812,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
756
812
  } | {
757
813
  content: string;
758
814
  role: MessageRole.Info;
815
+ createdAt?: string;
759
816
  id?: string;
760
817
  messageId?: string;
761
818
  name?: string;
@@ -764,6 +821,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
764
821
  } | {
765
822
  content: string;
766
823
  role: MessageRole.Pause;
824
+ createdAt?: string;
767
825
  id?: string;
768
826
  messageId?: string;
769
827
  name?: string;
@@ -772,6 +830,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
772
830
  } | {
773
831
  content: string;
774
832
  role: MessageRole.Placeholder;
833
+ createdAt?: string;
775
834
  id?: string;
776
835
  messageId?: string;
777
836
  name?: string;
@@ -781,6 +840,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
781
840
  content: string[];
782
841
  duration?: number;
783
842
  role: MessageRole.Reasoning;
843
+ createdAt?: string;
784
844
  id?: string;
785
845
  messageId?: string;
786
846
  name?: string;
@@ -789,6 +849,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
789
849
  } | {
790
850
  content: string;
791
851
  role: MessageRole.System;
852
+ createdAt?: string;
792
853
  id?: string;
793
854
  messageId?: string;
794
855
  name?: string;
@@ -797,6 +858,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
797
858
  } | {
798
859
  content: string;
799
860
  role: MessageRole.TemplateAssistant;
861
+ createdAt?: string;
800
862
  id?: string;
801
863
  messageId?: string;
802
864
  name?: string;
@@ -805,6 +867,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
805
867
  } | {
806
868
  content: string;
807
869
  role: MessageRole.TemplateGuide;
870
+ createdAt?: string;
808
871
  id?: string;
809
872
  messageId?: string;
810
873
  name?: string;
@@ -813,6 +876,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
813
876
  } | {
814
877
  content: string;
815
878
  role: MessageRole.TemplateHidden;
879
+ createdAt?: string;
816
880
  id?: string;
817
881
  messageId?: string;
818
882
  name?: string;
@@ -821,6 +885,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
821
885
  } | {
822
886
  content: string;
823
887
  role: MessageRole.TemplateSystem;
888
+ createdAt?: string;
824
889
  id?: string;
825
890
  messageId?: string;
826
891
  name?: string;
@@ -829,6 +894,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
829
894
  } | {
830
895
  content: string;
831
896
  role: MessageRole.TemplateUser;
897
+ createdAt?: string;
832
898
  id?: string;
833
899
  messageId?: string;
834
900
  name?: string;
@@ -840,6 +906,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
840
906
  error?: string;
841
907
  role: MessageRole.Tool;
842
908
  toolCallId: string;
909
+ createdAt?: string;
843
910
  id?: string;
844
911
  messageId?: string;
845
912
  name?: string;
@@ -851,6 +918,8 @@ export declare const useMessage: (mediator: IMediatorModule) => {
851
918
  filename?: string;
852
919
  id?: string;
853
920
  mimeType: string;
921
+ outputId?: string;
922
+ size?: number;
854
923
  type: import("./type").MessageType.Binary;
855
924
  url?: string;
856
925
  } | {
@@ -859,6 +928,15 @@ export declare const useMessage: (mediator: IMediatorModule) => {
859
928
  })[];
860
929
  property?: {
861
930
  [x: string]: unknown;
931
+ artifacts?: {
932
+ name: string;
933
+ outputId: string;
934
+ size: number;
935
+ type: string;
936
+ previewUrl?: string;
937
+ url?: string;
938
+ }[];
939
+ docSchema?: unknown;
862
940
  extra?: {
863
941
  [x: string]: unknown;
864
942
  cite?: string | {
@@ -875,6 +953,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
875
953
  };
876
954
  };
877
955
  role: MessageRole.User;
956
+ createdAt?: string;
878
957
  id?: string;
879
958
  messageId?: string;
880
959
  name?: string;
@@ -883,6 +962,17 @@ export declare const useMessage: (mediator: IMediatorModule) => {
883
962
  })[], IMessage[] | ({
884
963
  activityType: import("./type").ActivityType;
885
964
  content: {
965
+ artifacts: {
966
+ name: string;
967
+ outputId: string;
968
+ size: number;
969
+ type: string;
970
+ previewUrl?: string;
971
+ url?: string;
972
+ }[];
973
+ runId: string;
974
+ status: "complete" | "empty";
975
+ } | {
886
976
  nodes: Record<string, import("..").IFlowAgentNode>;
887
977
  task_id: string;
888
978
  task_name: string;
@@ -900,7 +990,34 @@ export declare const useMessage: (mediator: IMediatorModule) => {
900
990
  originFileUrl?: string;
901
991
  url: string;
902
992
  }[];
993
+ property?: {
994
+ [x: string]: unknown;
995
+ artifacts?: {
996
+ name: string;
997
+ outputId: string;
998
+ size: number;
999
+ type: string;
1000
+ previewUrl?: string;
1001
+ url?: string;
1002
+ }[];
1003
+ docSchema?: unknown;
1004
+ extra?: {
1005
+ [x: string]: unknown;
1006
+ cite?: string | {
1007
+ data: {
1008
+ key: string;
1009
+ value: string;
1010
+ }[];
1011
+ title: string;
1012
+ type: string;
1013
+ };
1014
+ command?: string;
1015
+ context?: Array<Record<string, unknown>>;
1016
+ resources?: Array<Record<string, unknown>>;
1017
+ };
1018
+ };
903
1019
  role: MessageRole.Activity;
1020
+ createdAt?: string;
904
1021
  id?: string;
905
1022
  messageId?: string;
906
1023
  name?: string;
@@ -910,6 +1027,15 @@ export declare const useMessage: (mediator: IMediatorModule) => {
910
1027
  content?: string;
911
1028
  property?: {
912
1029
  [x: string]: unknown;
1030
+ artifacts?: {
1031
+ name: string;
1032
+ outputId: string;
1033
+ size: number;
1034
+ type: string;
1035
+ previewUrl?: string;
1036
+ url?: string;
1037
+ }[];
1038
+ docSchema?: unknown;
913
1039
  extra?: {
914
1040
  [x: string]: unknown;
915
1041
  cite?: string | {
@@ -936,6 +1062,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
936
1062
  id: string;
937
1063
  type: import("./type").MessageType.Function;
938
1064
  }[];
1065
+ createdAt?: string;
939
1066
  id?: string;
940
1067
  messageId?: string;
941
1068
  name?: string;
@@ -944,6 +1071,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
944
1071
  } | {
945
1072
  content: string;
946
1073
  role: MessageRole.Developer;
1074
+ createdAt?: string;
947
1075
  id?: string;
948
1076
  messageId?: string;
949
1077
  name?: string;
@@ -1574,6 +1702,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1574
1702
  timestamp?: number;
1575
1703
  };
1576
1704
  role: MessageRole.Interrupt;
1705
+ createdAt?: string;
1577
1706
  id?: string;
1578
1707
  messageId?: string;
1579
1708
  name?: string;
@@ -1582,6 +1711,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1582
1711
  } | {
1583
1712
  content: string;
1584
1713
  role: MessageRole.Guide;
1714
+ createdAt?: string;
1585
1715
  id?: string;
1586
1716
  messageId?: string;
1587
1717
  name?: string;
@@ -1590,6 +1720,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1590
1720
  } | {
1591
1721
  content: string;
1592
1722
  role: MessageRole.HiddenAssistant;
1723
+ createdAt?: string;
1593
1724
  id?: string;
1594
1725
  messageId?: string;
1595
1726
  name?: string;
@@ -1598,6 +1729,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1598
1729
  } | {
1599
1730
  content: string;
1600
1731
  role: MessageRole.HiddenGuide;
1732
+ createdAt?: string;
1601
1733
  id?: string;
1602
1734
  messageId?: string;
1603
1735
  name?: string;
@@ -1606,6 +1738,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1606
1738
  } | {
1607
1739
  content: string;
1608
1740
  role: MessageRole.Hidden;
1741
+ createdAt?: string;
1609
1742
  id?: string;
1610
1743
  messageId?: string;
1611
1744
  name?: string;
@@ -1614,6 +1747,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1614
1747
  } | {
1615
1748
  content: string;
1616
1749
  role: MessageRole.HiddenSystem;
1750
+ createdAt?: string;
1617
1751
  id?: string;
1618
1752
  messageId?: string;
1619
1753
  name?: string;
@@ -1622,6 +1756,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1622
1756
  } | {
1623
1757
  content: string;
1624
1758
  role: MessageRole.HiddenUser;
1759
+ createdAt?: string;
1625
1760
  id?: string;
1626
1761
  messageId?: string;
1627
1762
  name?: string;
@@ -1630,6 +1765,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1630
1765
  } | {
1631
1766
  content: string;
1632
1767
  role: MessageRole.Info;
1768
+ createdAt?: string;
1633
1769
  id?: string;
1634
1770
  messageId?: string;
1635
1771
  name?: string;
@@ -1638,6 +1774,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1638
1774
  } | {
1639
1775
  content: string;
1640
1776
  role: MessageRole.Pause;
1777
+ createdAt?: string;
1641
1778
  id?: string;
1642
1779
  messageId?: string;
1643
1780
  name?: string;
@@ -1646,6 +1783,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1646
1783
  } | {
1647
1784
  content: string;
1648
1785
  role: MessageRole.Placeholder;
1786
+ createdAt?: string;
1649
1787
  id?: string;
1650
1788
  messageId?: string;
1651
1789
  name?: string;
@@ -1655,6 +1793,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1655
1793
  content: string[];
1656
1794
  duration?: number;
1657
1795
  role: MessageRole.Reasoning;
1796
+ createdAt?: string;
1658
1797
  id?: string;
1659
1798
  messageId?: string;
1660
1799
  name?: string;
@@ -1663,6 +1802,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1663
1802
  } | {
1664
1803
  content: string;
1665
1804
  role: MessageRole.System;
1805
+ createdAt?: string;
1666
1806
  id?: string;
1667
1807
  messageId?: string;
1668
1808
  name?: string;
@@ -1671,6 +1811,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1671
1811
  } | {
1672
1812
  content: string;
1673
1813
  role: MessageRole.TemplateAssistant;
1814
+ createdAt?: string;
1674
1815
  id?: string;
1675
1816
  messageId?: string;
1676
1817
  name?: string;
@@ -1679,6 +1820,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1679
1820
  } | {
1680
1821
  content: string;
1681
1822
  role: MessageRole.TemplateGuide;
1823
+ createdAt?: string;
1682
1824
  id?: string;
1683
1825
  messageId?: string;
1684
1826
  name?: string;
@@ -1687,6 +1829,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1687
1829
  } | {
1688
1830
  content: string;
1689
1831
  role: MessageRole.TemplateHidden;
1832
+ createdAt?: string;
1690
1833
  id?: string;
1691
1834
  messageId?: string;
1692
1835
  name?: string;
@@ -1695,6 +1838,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1695
1838
  } | {
1696
1839
  content: string;
1697
1840
  role: MessageRole.TemplateSystem;
1841
+ createdAt?: string;
1698
1842
  id?: string;
1699
1843
  messageId?: string;
1700
1844
  name?: string;
@@ -1703,6 +1847,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1703
1847
  } | {
1704
1848
  content: string;
1705
1849
  role: MessageRole.TemplateUser;
1850
+ createdAt?: string;
1706
1851
  id?: string;
1707
1852
  messageId?: string;
1708
1853
  name?: string;
@@ -1714,6 +1859,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1714
1859
  error?: string;
1715
1860
  role: MessageRole.Tool;
1716
1861
  toolCallId: string;
1862
+ createdAt?: string;
1717
1863
  id?: string;
1718
1864
  messageId?: string;
1719
1865
  name?: string;
@@ -1725,6 +1871,8 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1725
1871
  filename?: string;
1726
1872
  id?: string;
1727
1873
  mimeType: string;
1874
+ outputId?: string;
1875
+ size?: number;
1728
1876
  type: import("./type").MessageType.Binary;
1729
1877
  url?: string;
1730
1878
  } | {
@@ -1733,6 +1881,15 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1733
1881
  })[];
1734
1882
  property?: {
1735
1883
  [x: string]: unknown;
1884
+ artifacts?: {
1885
+ name: string;
1886
+ outputId: string;
1887
+ size: number;
1888
+ type: string;
1889
+ previewUrl?: string;
1890
+ url?: string;
1891
+ }[];
1892
+ docSchema?: unknown;
1736
1893
  extra?: {
1737
1894
  [x: string]: unknown;
1738
1895
  cite?: string | {
@@ -1749,6 +1906,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1749
1906
  };
1750
1907
  };
1751
1908
  role: MessageRole.User;
1909
+ createdAt?: string;
1752
1910
  id?: string;
1753
1911
  messageId?: string;
1754
1912
  name?: string;
@@ -1762,6 +1920,17 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1762
1920
  getCurrentLoadingMessage: () => {
1763
1921
  activityType: import("./type").ActivityType;
1764
1922
  content: {
1923
+ artifacts: {
1924
+ name: string;
1925
+ outputId: string;
1926
+ size: number;
1927
+ type: string;
1928
+ previewUrl?: string;
1929
+ url?: string;
1930
+ }[];
1931
+ runId: string;
1932
+ status: "complete" | "empty";
1933
+ } | {
1765
1934
  nodes: Record<string, import("..").IFlowAgentNode>;
1766
1935
  task_id: string;
1767
1936
  task_name: string;
@@ -1779,7 +1948,34 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1779
1948
  originFileUrl?: string;
1780
1949
  url: string;
1781
1950
  }[];
1951
+ property?: {
1952
+ [x: string]: unknown;
1953
+ artifacts?: {
1954
+ name: string;
1955
+ outputId: string;
1956
+ size: number;
1957
+ type: string;
1958
+ previewUrl?: string;
1959
+ url?: string;
1960
+ }[];
1961
+ docSchema?: unknown;
1962
+ extra?: {
1963
+ [x: string]: unknown;
1964
+ cite?: string | {
1965
+ data: {
1966
+ key: string;
1967
+ value: string;
1968
+ }[];
1969
+ title: string;
1970
+ type: string;
1971
+ };
1972
+ command?: string;
1973
+ context?: Array<Record<string, unknown>>;
1974
+ resources?: Array<Record<string, unknown>>;
1975
+ };
1976
+ };
1782
1977
  role: MessageRole.Activity;
1978
+ createdAt?: string;
1783
1979
  id?: string;
1784
1980
  messageId?: string;
1785
1981
  name?: string;
@@ -1789,6 +1985,15 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1789
1985
  content?: string;
1790
1986
  property?: {
1791
1987
  [x: string]: unknown;
1988
+ artifacts?: {
1989
+ name: string;
1990
+ outputId: string;
1991
+ size: number;
1992
+ type: string;
1993
+ previewUrl?: string;
1994
+ url?: string;
1995
+ }[];
1996
+ docSchema?: unknown;
1792
1997
  extra?: {
1793
1998
  [x: string]: unknown;
1794
1999
  cite?: string | {
@@ -1815,6 +2020,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1815
2020
  id: string;
1816
2021
  type: import("./type").MessageType.Function;
1817
2022
  }[];
2023
+ createdAt?: string;
1818
2024
  id?: string;
1819
2025
  messageId?: string;
1820
2026
  name?: string;
@@ -1823,6 +2029,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
1823
2029
  } | {
1824
2030
  content: string;
1825
2031
  role: MessageRole.Developer;
2032
+ createdAt?: string;
1826
2033
  id?: string;
1827
2034
  messageId?: string;
1828
2035
  name?: string;
@@ -2453,6 +2660,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2453
2660
  timestamp?: number;
2454
2661
  };
2455
2662
  role: MessageRole.Interrupt;
2663
+ createdAt?: string;
2456
2664
  id?: string;
2457
2665
  messageId?: string;
2458
2666
  name?: string;
@@ -2461,6 +2669,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2461
2669
  } | {
2462
2670
  content: string;
2463
2671
  role: MessageRole.Guide;
2672
+ createdAt?: string;
2464
2673
  id?: string;
2465
2674
  messageId?: string;
2466
2675
  name?: string;
@@ -2469,6 +2678,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2469
2678
  } | {
2470
2679
  content: string;
2471
2680
  role: MessageRole.HiddenAssistant;
2681
+ createdAt?: string;
2472
2682
  id?: string;
2473
2683
  messageId?: string;
2474
2684
  name?: string;
@@ -2477,6 +2687,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2477
2687
  } | {
2478
2688
  content: string;
2479
2689
  role: MessageRole.HiddenGuide;
2690
+ createdAt?: string;
2480
2691
  id?: string;
2481
2692
  messageId?: string;
2482
2693
  name?: string;
@@ -2485,6 +2696,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2485
2696
  } | {
2486
2697
  content: string;
2487
2698
  role: MessageRole.Hidden;
2699
+ createdAt?: string;
2488
2700
  id?: string;
2489
2701
  messageId?: string;
2490
2702
  name?: string;
@@ -2493,6 +2705,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2493
2705
  } | {
2494
2706
  content: string;
2495
2707
  role: MessageRole.HiddenSystem;
2708
+ createdAt?: string;
2496
2709
  id?: string;
2497
2710
  messageId?: string;
2498
2711
  name?: string;
@@ -2501,6 +2714,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2501
2714
  } | {
2502
2715
  content: string;
2503
2716
  role: MessageRole.HiddenUser;
2717
+ createdAt?: string;
2504
2718
  id?: string;
2505
2719
  messageId?: string;
2506
2720
  name?: string;
@@ -2509,6 +2723,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2509
2723
  } | {
2510
2724
  content: string;
2511
2725
  role: MessageRole.Info;
2726
+ createdAt?: string;
2512
2727
  id?: string;
2513
2728
  messageId?: string;
2514
2729
  name?: string;
@@ -2517,6 +2732,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2517
2732
  } | {
2518
2733
  content: string;
2519
2734
  role: MessageRole.Pause;
2735
+ createdAt?: string;
2520
2736
  id?: string;
2521
2737
  messageId?: string;
2522
2738
  name?: string;
@@ -2525,6 +2741,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2525
2741
  } | {
2526
2742
  content: string;
2527
2743
  role: MessageRole.Placeholder;
2744
+ createdAt?: string;
2528
2745
  id?: string;
2529
2746
  messageId?: string;
2530
2747
  name?: string;
@@ -2534,6 +2751,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2534
2751
  content: string[];
2535
2752
  duration?: number;
2536
2753
  role: MessageRole.Reasoning;
2754
+ createdAt?: string;
2537
2755
  id?: string;
2538
2756
  messageId?: string;
2539
2757
  name?: string;
@@ -2542,6 +2760,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2542
2760
  } | {
2543
2761
  content: string;
2544
2762
  role: MessageRole.System;
2763
+ createdAt?: string;
2545
2764
  id?: string;
2546
2765
  messageId?: string;
2547
2766
  name?: string;
@@ -2550,6 +2769,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2550
2769
  } | {
2551
2770
  content: string;
2552
2771
  role: MessageRole.TemplateAssistant;
2772
+ createdAt?: string;
2553
2773
  id?: string;
2554
2774
  messageId?: string;
2555
2775
  name?: string;
@@ -2558,6 +2778,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2558
2778
  } | {
2559
2779
  content: string;
2560
2780
  role: MessageRole.TemplateGuide;
2781
+ createdAt?: string;
2561
2782
  id?: string;
2562
2783
  messageId?: string;
2563
2784
  name?: string;
@@ -2566,6 +2787,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2566
2787
  } | {
2567
2788
  content: string;
2568
2789
  role: MessageRole.TemplateHidden;
2790
+ createdAt?: string;
2569
2791
  id?: string;
2570
2792
  messageId?: string;
2571
2793
  name?: string;
@@ -2574,6 +2796,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2574
2796
  } | {
2575
2797
  content: string;
2576
2798
  role: MessageRole.TemplateSystem;
2799
+ createdAt?: string;
2577
2800
  id?: string;
2578
2801
  messageId?: string;
2579
2802
  name?: string;
@@ -2582,6 +2805,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2582
2805
  } | {
2583
2806
  content: string;
2584
2807
  role: MessageRole.TemplateUser;
2808
+ createdAt?: string;
2585
2809
  id?: string;
2586
2810
  messageId?: string;
2587
2811
  name?: string;
@@ -2593,6 +2817,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2593
2817
  error?: string;
2594
2818
  role: MessageRole.Tool;
2595
2819
  toolCallId: string;
2820
+ createdAt?: string;
2596
2821
  id?: string;
2597
2822
  messageId?: string;
2598
2823
  name?: string;
@@ -2604,6 +2829,8 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2604
2829
  filename?: string;
2605
2830
  id?: string;
2606
2831
  mimeType: string;
2832
+ outputId?: string;
2833
+ size?: number;
2607
2834
  type: import("./type").MessageType.Binary;
2608
2835
  url?: string;
2609
2836
  } | {
@@ -2612,6 +2839,15 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2612
2839
  })[];
2613
2840
  property?: {
2614
2841
  [x: string]: unknown;
2842
+ artifacts?: {
2843
+ name: string;
2844
+ outputId: string;
2845
+ size: number;
2846
+ type: string;
2847
+ previewUrl?: string;
2848
+ url?: string;
2849
+ }[];
2850
+ docSchema?: unknown;
2615
2851
  extra?: {
2616
2852
  [x: string]: unknown;
2617
2853
  cite?: string | {
@@ -2628,6 +2864,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2628
2864
  };
2629
2865
  };
2630
2866
  role: MessageRole.User;
2867
+ createdAt?: string;
2631
2868
  id?: string;
2632
2869
  messageId?: string;
2633
2870
  name?: string;
@@ -2637,6 +2874,17 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2637
2874
  getMessageByMessageId: (id: string) => {
2638
2875
  activityType: import("./type").ActivityType;
2639
2876
  content: {
2877
+ artifacts: {
2878
+ name: string;
2879
+ outputId: string;
2880
+ size: number;
2881
+ type: string;
2882
+ previewUrl?: string;
2883
+ url?: string;
2884
+ }[];
2885
+ runId: string;
2886
+ status: "complete" | "empty";
2887
+ } | {
2640
2888
  nodes: Record<string, import("..").IFlowAgentNode>;
2641
2889
  task_id: string;
2642
2890
  task_name: string;
@@ -2654,7 +2902,34 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2654
2902
  originFileUrl?: string;
2655
2903
  url: string;
2656
2904
  }[];
2905
+ property?: {
2906
+ [x: string]: unknown;
2907
+ artifacts?: {
2908
+ name: string;
2909
+ outputId: string;
2910
+ size: number;
2911
+ type: string;
2912
+ previewUrl?: string;
2913
+ url?: string;
2914
+ }[];
2915
+ docSchema?: unknown;
2916
+ extra?: {
2917
+ [x: string]: unknown;
2918
+ cite?: string | {
2919
+ data: {
2920
+ key: string;
2921
+ value: string;
2922
+ }[];
2923
+ title: string;
2924
+ type: string;
2925
+ };
2926
+ command?: string;
2927
+ context?: Array<Record<string, unknown>>;
2928
+ resources?: Array<Record<string, unknown>>;
2929
+ };
2930
+ };
2657
2931
  role: MessageRole.Activity;
2932
+ createdAt?: string;
2658
2933
  id?: string;
2659
2934
  messageId?: string;
2660
2935
  name?: string;
@@ -2664,6 +2939,15 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2664
2939
  content?: string;
2665
2940
  property?: {
2666
2941
  [x: string]: unknown;
2942
+ artifacts?: {
2943
+ name: string;
2944
+ outputId: string;
2945
+ size: number;
2946
+ type: string;
2947
+ previewUrl?: string;
2948
+ url?: string;
2949
+ }[];
2950
+ docSchema?: unknown;
2667
2951
  extra?: {
2668
2952
  [x: string]: unknown;
2669
2953
  cite?: string | {
@@ -2690,6 +2974,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2690
2974
  id: string;
2691
2975
  type: import("./type").MessageType.Function;
2692
2976
  }[];
2977
+ createdAt?: string;
2693
2978
  id?: string;
2694
2979
  messageId?: string;
2695
2980
  name?: string;
@@ -2698,6 +2983,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
2698
2983
  } | {
2699
2984
  content: string;
2700
2985
  role: MessageRole.Developer;
2986
+ createdAt?: string;
2701
2987
  id?: string;
2702
2988
  messageId?: string;
2703
2989
  name?: string;
@@ -3328,6 +3614,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3328
3614
  timestamp?: number;
3329
3615
  };
3330
3616
  role: MessageRole.Interrupt;
3617
+ createdAt?: string;
3331
3618
  id?: string;
3332
3619
  messageId?: string;
3333
3620
  name?: string;
@@ -3336,6 +3623,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3336
3623
  } | {
3337
3624
  content: string;
3338
3625
  role: MessageRole.Guide;
3626
+ createdAt?: string;
3339
3627
  id?: string;
3340
3628
  messageId?: string;
3341
3629
  name?: string;
@@ -3344,6 +3632,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3344
3632
  } | {
3345
3633
  content: string;
3346
3634
  role: MessageRole.HiddenAssistant;
3635
+ createdAt?: string;
3347
3636
  id?: string;
3348
3637
  messageId?: string;
3349
3638
  name?: string;
@@ -3352,6 +3641,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3352
3641
  } | {
3353
3642
  content: string;
3354
3643
  role: MessageRole.HiddenGuide;
3644
+ createdAt?: string;
3355
3645
  id?: string;
3356
3646
  messageId?: string;
3357
3647
  name?: string;
@@ -3360,6 +3650,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3360
3650
  } | {
3361
3651
  content: string;
3362
3652
  role: MessageRole.Hidden;
3653
+ createdAt?: string;
3363
3654
  id?: string;
3364
3655
  messageId?: string;
3365
3656
  name?: string;
@@ -3368,6 +3659,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3368
3659
  } | {
3369
3660
  content: string;
3370
3661
  role: MessageRole.HiddenSystem;
3662
+ createdAt?: string;
3371
3663
  id?: string;
3372
3664
  messageId?: string;
3373
3665
  name?: string;
@@ -3376,6 +3668,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3376
3668
  } | {
3377
3669
  content: string;
3378
3670
  role: MessageRole.HiddenUser;
3671
+ createdAt?: string;
3379
3672
  id?: string;
3380
3673
  messageId?: string;
3381
3674
  name?: string;
@@ -3384,6 +3677,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3384
3677
  } | {
3385
3678
  content: string;
3386
3679
  role: MessageRole.Info;
3680
+ createdAt?: string;
3387
3681
  id?: string;
3388
3682
  messageId?: string;
3389
3683
  name?: string;
@@ -3392,6 +3686,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3392
3686
  } | {
3393
3687
  content: string;
3394
3688
  role: MessageRole.Pause;
3689
+ createdAt?: string;
3395
3690
  id?: string;
3396
3691
  messageId?: string;
3397
3692
  name?: string;
@@ -3400,6 +3695,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3400
3695
  } | {
3401
3696
  content: string;
3402
3697
  role: MessageRole.Placeholder;
3698
+ createdAt?: string;
3403
3699
  id?: string;
3404
3700
  messageId?: string;
3405
3701
  name?: string;
@@ -3409,6 +3705,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3409
3705
  content: string[];
3410
3706
  duration?: number;
3411
3707
  role: MessageRole.Reasoning;
3708
+ createdAt?: string;
3412
3709
  id?: string;
3413
3710
  messageId?: string;
3414
3711
  name?: string;
@@ -3417,6 +3714,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3417
3714
  } | {
3418
3715
  content: string;
3419
3716
  role: MessageRole.System;
3717
+ createdAt?: string;
3420
3718
  id?: string;
3421
3719
  messageId?: string;
3422
3720
  name?: string;
@@ -3425,6 +3723,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3425
3723
  } | {
3426
3724
  content: string;
3427
3725
  role: MessageRole.TemplateAssistant;
3726
+ createdAt?: string;
3428
3727
  id?: string;
3429
3728
  messageId?: string;
3430
3729
  name?: string;
@@ -3433,6 +3732,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3433
3732
  } | {
3434
3733
  content: string;
3435
3734
  role: MessageRole.TemplateGuide;
3735
+ createdAt?: string;
3436
3736
  id?: string;
3437
3737
  messageId?: string;
3438
3738
  name?: string;
@@ -3441,6 +3741,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3441
3741
  } | {
3442
3742
  content: string;
3443
3743
  role: MessageRole.TemplateHidden;
3744
+ createdAt?: string;
3444
3745
  id?: string;
3445
3746
  messageId?: string;
3446
3747
  name?: string;
@@ -3449,6 +3750,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3449
3750
  } | {
3450
3751
  content: string;
3451
3752
  role: MessageRole.TemplateSystem;
3753
+ createdAt?: string;
3452
3754
  id?: string;
3453
3755
  messageId?: string;
3454
3756
  name?: string;
@@ -3457,6 +3759,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3457
3759
  } | {
3458
3760
  content: string;
3459
3761
  role: MessageRole.TemplateUser;
3762
+ createdAt?: string;
3460
3763
  id?: string;
3461
3764
  messageId?: string;
3462
3765
  name?: string;
@@ -3468,6 +3771,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3468
3771
  error?: string;
3469
3772
  role: MessageRole.Tool;
3470
3773
  toolCallId: string;
3774
+ createdAt?: string;
3471
3775
  id?: string;
3472
3776
  messageId?: string;
3473
3777
  name?: string;
@@ -3479,6 +3783,8 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3479
3783
  filename?: string;
3480
3784
  id?: string;
3481
3785
  mimeType: string;
3786
+ outputId?: string;
3787
+ size?: number;
3482
3788
  type: import("./type").MessageType.Binary;
3483
3789
  url?: string;
3484
3790
  } | {
@@ -3487,6 +3793,15 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3487
3793
  })[];
3488
3794
  property?: {
3489
3795
  [x: string]: unknown;
3796
+ artifacts?: {
3797
+ name: string;
3798
+ outputId: string;
3799
+ size: number;
3800
+ type: string;
3801
+ previewUrl?: string;
3802
+ url?: string;
3803
+ }[];
3804
+ docSchema?: unknown;
3490
3805
  extra?: {
3491
3806
  [x: string]: unknown;
3492
3807
  cite?: string | {
@@ -3503,6 +3818,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
3503
3818
  };
3504
3819
  };
3505
3820
  role: MessageRole.User;
3821
+ createdAt?: string;
3506
3822
  id?: string;
3507
3823
  messageId?: string;
3508
3824
  name?: string;