@mastra/server 1.0.0-beta.2 → 1.0.0-beta.21

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 (394) hide show
  1. package/CHANGELOG.md +708 -0
  2. package/README.md +2 -2
  3. package/dist/chunk-2UAI7X5P.js +1018 -0
  4. package/dist/chunk-2UAI7X5P.js.map +1 -0
  5. package/dist/chunk-3FEYUHHJ.js +116 -0
  6. package/dist/chunk-3FEYUHHJ.js.map +1 -0
  7. package/dist/chunk-3RAQVZUX.js +204 -0
  8. package/dist/chunk-3RAQVZUX.js.map +1 -0
  9. package/dist/{chunk-SHWNNZBL.js → chunk-3REGEJEN.js} +13 -17
  10. package/dist/chunk-3REGEJEN.js.map +1 -0
  11. package/dist/chunk-3W67K7YE.js +13 -0
  12. package/dist/chunk-3W67K7YE.js.map +1 -0
  13. package/dist/chunk-4DJ7EJRB.cjs +186 -0
  14. package/dist/chunk-4DJ7EJRB.cjs.map +1 -0
  15. package/dist/chunk-4EYONQIW.cjs +82 -0
  16. package/dist/chunk-4EYONQIW.cjs.map +1 -0
  17. package/dist/chunk-4TRYHC5Z.cjs +205 -0
  18. package/dist/chunk-4TRYHC5Z.cjs.map +1 -0
  19. package/dist/chunk-5NFRDYFN.js +77 -0
  20. package/dist/chunk-5NFRDYFN.js.map +1 -0
  21. package/dist/chunk-5VDI75UV.js +44 -0
  22. package/dist/chunk-5VDI75UV.js.map +1 -0
  23. package/dist/chunk-5W4RPVTK.cjs +49 -0
  24. package/dist/chunk-5W4RPVTK.cjs.map +1 -0
  25. package/dist/chunk-6HKMJXTF.js +234 -0
  26. package/dist/chunk-6HKMJXTF.js.map +1 -0
  27. package/dist/chunk-7S7ALPCY.js +225 -0
  28. package/dist/chunk-7S7ALPCY.js.map +1 -0
  29. package/dist/{chunk-2PLXW4ZX.cjs → chunk-AQI6GLTN.cjs} +74 -74
  30. package/dist/{chunk-2PLXW4ZX.cjs.map → chunk-AQI6GLTN.cjs.map} +1 -1
  31. package/dist/chunk-AV3CN5ZR.cjs +326 -0
  32. package/dist/chunk-AV3CN5ZR.cjs.map +1 -0
  33. package/dist/chunk-AVRO3FIN.cjs +231 -0
  34. package/dist/chunk-AVRO3FIN.cjs.map +1 -0
  35. package/dist/chunk-CGIGPJRU.js +279 -0
  36. package/dist/chunk-CGIGPJRU.js.map +1 -0
  37. package/dist/chunk-DVSCJECS.js +250 -0
  38. package/dist/chunk-DVSCJECS.js.map +1 -0
  39. package/dist/chunk-EUBTCHQC.js +83 -0
  40. package/dist/chunk-EUBTCHQC.js.map +1 -0
  41. package/dist/chunk-EZPXTOSM.cjs +928 -0
  42. package/dist/chunk-EZPXTOSM.cjs.map +1 -0
  43. package/dist/chunk-F6CHEWZT.cjs +211 -0
  44. package/dist/chunk-F6CHEWZT.cjs.map +1 -0
  45. package/dist/chunk-FBB2QKRV.js +1075 -0
  46. package/dist/chunk-FBB2QKRV.js.map +1 -0
  47. package/dist/chunk-FLLJIPD4.cjs +46 -0
  48. package/dist/chunk-FLLJIPD4.cjs.map +1 -0
  49. package/dist/chunk-FWSKVWS7.cjs +88 -0
  50. package/dist/chunk-FWSKVWS7.cjs.map +1 -0
  51. package/dist/chunk-G2AMUTU4.js +250 -0
  52. package/dist/chunk-G2AMUTU4.js.map +1 -0
  53. package/dist/{chunk-W2KMU354.cjs → chunk-GWLR6K3H.cjs} +23 -4
  54. package/dist/chunk-GWLR6K3H.cjs.map +1 -0
  55. package/dist/chunk-H27ZCWUX.cjs +33025 -0
  56. package/dist/chunk-H27ZCWUX.cjs.map +1 -0
  57. package/dist/{chunk-RQK4FQUD.js → chunk-H66LLFDL.js} +4 -46
  58. package/dist/chunk-H66LLFDL.js.map +1 -0
  59. package/dist/chunk-HT4LP3BO.js +75 -0
  60. package/dist/chunk-HT4LP3BO.js.map +1 -0
  61. package/dist/chunk-KKY4MSZO.js +314 -0
  62. package/dist/chunk-KKY4MSZO.js.map +1 -0
  63. package/dist/{chunk-QU6N55W6.cjs → chunk-L2E5RUVT.cjs} +17 -21
  64. package/dist/chunk-L2E5RUVT.cjs.map +1 -0
  65. package/dist/chunk-LJ6YRVDI.cjs +15 -0
  66. package/dist/chunk-LJ6YRVDI.cjs.map +1 -0
  67. package/dist/{chunk-ZULZ2752.js → chunk-LOA7RQYO.js} +3 -3
  68. package/dist/{chunk-ZULZ2752.js.map → chunk-LOA7RQYO.js.map} +1 -1
  69. package/dist/chunk-MCYD5LW7.cjs +90 -0
  70. package/dist/chunk-MCYD5LW7.cjs.map +1 -0
  71. package/dist/chunk-MPUVSOEU.cjs +346 -0
  72. package/dist/chunk-MPUVSOEU.cjs.map +1 -0
  73. package/dist/chunk-N4EIZSG2.js +180 -0
  74. package/dist/chunk-N4EIZSG2.js.map +1 -0
  75. package/dist/{chunk-FPBYKMIS.js → chunk-NETDNGUZ.js} +222 -30
  76. package/dist/chunk-NETDNGUZ.js.map +1 -0
  77. package/dist/chunk-NGPUSFSO.cjs +1117 -0
  78. package/dist/chunk-NGPUSFSO.cjs.map +1 -0
  79. package/dist/{chunk-UXGQZUYZ.js → chunk-ONN5EA7E.js} +13 -3
  80. package/dist/chunk-ONN5EA7E.js.map +1 -0
  81. package/dist/chunk-OQVXRANI.js +196 -0
  82. package/dist/chunk-OQVXRANI.js.map +1 -0
  83. package/dist/chunk-P3H4AZKI.cjs +252 -0
  84. package/dist/chunk-P3H4AZKI.cjs.map +1 -0
  85. package/dist/chunk-PNZQCQY4.cjs +252 -0
  86. package/dist/chunk-PNZQCQY4.cjs.map +1 -0
  87. package/dist/{chunk-D7T74TVR.js → chunk-QKXZF7YS.js} +23 -4
  88. package/dist/chunk-QKXZF7YS.js.map +1 -0
  89. package/dist/chunk-QPFYN6B5.cjs +125 -0
  90. package/dist/chunk-QPFYN6B5.cjs.map +1 -0
  91. package/dist/chunk-R25YJP3Y.cjs +269 -0
  92. package/dist/chunk-R25YJP3Y.cjs.map +1 -0
  93. package/dist/{chunk-V5WWQN7P.cjs → chunk-SUKFO7UM.cjs} +13 -2
  94. package/dist/chunk-SUKFO7UM.cjs.map +1 -0
  95. package/dist/chunk-T4SPG2GP.cjs +82 -0
  96. package/dist/chunk-T4SPG2GP.cjs.map +1 -0
  97. package/dist/chunk-TMS4LS2J.js +302 -0
  98. package/dist/chunk-TMS4LS2J.js.map +1 -0
  99. package/dist/{chunk-KJIDZQRA.cjs → chunk-U7IJEAF4.cjs} +228 -30
  100. package/dist/chunk-U7IJEAF4.cjs.map +1 -0
  101. package/dist/chunk-UST3FS67.cjs +1048 -0
  102. package/dist/chunk-UST3FS67.cjs.map +1 -0
  103. package/dist/chunk-V2BBRMP6.js +32986 -0
  104. package/dist/chunk-V2BBRMP6.js.map +1 -0
  105. package/dist/chunk-VEHQCZFU.js +903 -0
  106. package/dist/chunk-VEHQCZFU.js.map +1 -0
  107. package/dist/{chunk-LPM6BBAX.cjs → chunk-VX3VN7FN.cjs} +3 -54
  108. package/dist/chunk-VX3VN7FN.cjs.map +1 -0
  109. package/dist/chunk-WJ6DNHLW.cjs +312 -0
  110. package/dist/chunk-WJ6DNHLW.cjs.map +1 -0
  111. package/dist/chunk-XB27LCKO.js +328 -0
  112. package/dist/chunk-XB27LCKO.js.map +1 -0
  113. package/dist/chunk-XCEQ4GQW.cjs +289 -0
  114. package/dist/chunk-XCEQ4GQW.cjs.map +1 -0
  115. package/dist/chunk-XOUK3IYU.js +77 -0
  116. package/dist/chunk-XOUK3IYU.js.map +1 -0
  117. package/dist/chunk-XWGAT2DA.js +44 -0
  118. package/dist/chunk-XWGAT2DA.js.map +1 -0
  119. package/dist/{dist-G2BYZJOC.cjs → dist-7NTDEVLP.cjs} +28 -28
  120. package/dist/{dist-G2BYZJOC.cjs.map → dist-7NTDEVLP.cjs.map} +1 -1
  121. package/dist/{dist-X7XR3M3Z.js → dist-B5GMANA6.js} +3 -3
  122. package/dist/{dist-X7XR3M3Z.js.map → dist-B5GMANA6.js.map} +1 -1
  123. package/dist/dist-EDO7GEGI.js +3 -0
  124. package/dist/{dist-YREX2TJT.js.map → dist-EDO7GEGI.js.map} +1 -1
  125. package/dist/{dist-RFMYFILX.cjs → dist-OF24ZMHH.cjs} +30 -30
  126. package/dist/{dist-RFMYFILX.cjs.map → dist-OF24ZMHH.cjs.map} +1 -1
  127. package/dist/{dist-4MVGNSRL.cjs → dist-P6YSNLL3.cjs} +20 -20
  128. package/dist/{dist-4MVGNSRL.cjs.map → dist-P6YSNLL3.cjs.map} +1 -1
  129. package/dist/{dist-PQZUVLPC.js → dist-SMBO5KVB.js} +3 -3
  130. package/dist/{dist-PQZUVLPC.js.map → dist-SMBO5KVB.js.map} +1 -1
  131. package/dist/{dist-XVBSOGFK.js → dist-THPMW5QR.js} +3 -3
  132. package/dist/{dist-XVBSOGFK.js.map → dist-THPMW5QR.js.map} +1 -1
  133. package/dist/{dist-FZYCV3VB.cjs → dist-VZTG56X2.cjs} +26 -26
  134. package/dist/{dist-FZYCV3VB.cjs.map → dist-VZTG56X2.cjs.map} +1 -1
  135. package/dist/dist-ZLC23RVC.cjs +16 -0
  136. package/dist/{dist-P4MXBQ3U.cjs.map → dist-ZLC23RVC.cjs.map} +1 -1
  137. package/dist/{dist-R7WYX6LC.js → dist-ZOZ6MHJH.js} +3 -3
  138. package/dist/{dist-R7WYX6LC.js.map → dist-ZOZ6MHJH.js.map} +1 -1
  139. package/dist/docs/README.md +31 -0
  140. package/dist/docs/SKILL.md +32 -0
  141. package/dist/docs/SOURCE_MAP.json +6 -0
  142. package/dist/docs/server/01-custom-adapters.md +377 -0
  143. package/dist/docs/server/02-reference.md +828 -0
  144. package/dist/server/auth/defaults.d.ts +3 -0
  145. package/dist/server/auth/defaults.d.ts.map +1 -0
  146. package/dist/server/auth/helpers.d.ts +14 -0
  147. package/dist/server/auth/helpers.d.ts.map +1 -0
  148. package/dist/server/auth/index.cjs +137 -0
  149. package/dist/server/auth/index.cjs.map +1 -0
  150. package/dist/server/auth/index.d.ts +3 -0
  151. package/dist/server/auth/index.d.ts.map +1 -0
  152. package/dist/server/auth/index.js +127 -0
  153. package/dist/server/auth/index.js.map +1 -0
  154. package/dist/server/handlers/a2a.cjs +15 -7
  155. package/dist/server/handlers/a2a.d.ts +482 -0
  156. package/dist/server/handlers/a2a.d.ts.map +1 -1
  157. package/dist/server/handlers/a2a.js +1 -1
  158. package/dist/server/handlers/agent-builder.cjs +31 -43
  159. package/dist/server/handlers/agent-builder.d.ts +624 -77
  160. package/dist/server/handlers/agent-builder.d.ts.map +1 -1
  161. package/dist/server/handlers/agent-builder.js +1 -1
  162. package/dist/server/handlers/agents.cjs +57 -37
  163. package/dist/server/handlers/agents.d.ts +3296 -131
  164. package/dist/server/handlers/agents.d.ts.map +1 -1
  165. package/dist/server/handlers/agents.js +1 -1
  166. package/dist/server/handlers/error.cjs +6 -2
  167. package/dist/server/handlers/error.d.ts +12 -0
  168. package/dist/server/handlers/error.d.ts.map +1 -1
  169. package/dist/server/handlers/error.js +1 -1
  170. package/dist/server/handlers/logs.cjs +7 -7
  171. package/dist/server/handlers/logs.d.ts +135 -27
  172. package/dist/server/handlers/logs.d.ts.map +1 -1
  173. package/dist/server/handlers/logs.js +1 -1
  174. package/dist/server/handlers/mcp.cjs +40 -0
  175. package/dist/server/handlers/mcp.cjs.map +1 -0
  176. package/dist/server/handlers/mcp.d.ts +110 -0
  177. package/dist/server/handlers/mcp.d.ts.map +1 -0
  178. package/dist/server/handlers/mcp.js +3 -0
  179. package/dist/server/handlers/mcp.js.map +1 -0
  180. package/dist/server/handlers/memory.cjs +71 -27
  181. package/dist/server/handlers/memory.d.ts +1016 -95
  182. package/dist/server/handlers/memory.d.ts.map +1 -1
  183. package/dist/server/handlers/memory.js +1 -1
  184. package/dist/server/handlers/observability.cjs +9 -9
  185. package/dist/server/handlers/observability.d.ts +146 -42
  186. package/dist/server/handlers/observability.d.ts.map +1 -1
  187. package/dist/server/handlers/observability.js +1 -1
  188. package/dist/server/handlers/scores.cjs +13 -13
  189. package/dist/server/handlers/scores.d.ts +110 -141
  190. package/dist/server/handlers/scores.d.ts.map +1 -1
  191. package/dist/server/handlers/scores.js +1 -1
  192. package/dist/server/handlers/stored-agents.cjs +28 -0
  193. package/dist/server/handlers/stored-agents.cjs.map +1 -0
  194. package/dist/server/handlers/stored-agents.d.ts +289 -0
  195. package/dist/server/handlers/stored-agents.d.ts.map +1 -0
  196. package/dist/server/handlers/stored-agents.js +3 -0
  197. package/dist/server/handlers/stored-agents.js.map +1 -0
  198. package/dist/server/handlers/system.cjs +12 -0
  199. package/dist/server/handlers/system.cjs.map +1 -0
  200. package/dist/server/handlers/system.d.ts +7 -0
  201. package/dist/server/handlers/system.d.ts.map +1 -0
  202. package/dist/server/handlers/system.js +3 -0
  203. package/dist/server/handlers/system.js.map +1 -0
  204. package/dist/server/handlers/test-utils.cjs +15 -0
  205. package/dist/server/handlers/test-utils.cjs.map +1 -0
  206. package/dist/server/handlers/test-utils.d.ts +6 -0
  207. package/dist/server/handlers/test-utils.d.ts.map +1 -0
  208. package/dist/server/handlers/test-utils.js +13 -0
  209. package/dist/server/handlers/test-utils.js.map +1 -0
  210. package/dist/server/handlers/tools.cjs +11 -11
  211. package/dist/server/handlers/tools.d.ts +69 -23
  212. package/dist/server/handlers/tools.d.ts.map +1 -1
  213. package/dist/server/handlers/tools.js +1 -1
  214. package/dist/server/handlers/utils.cjs +11 -3
  215. package/dist/server/handlers/utils.d.ts +5 -0
  216. package/dist/server/handlers/utils.d.ts.map +1 -1
  217. package/dist/server/handlers/utils.js +1 -1
  218. package/dist/server/handlers/vector.cjs +31 -7
  219. package/dist/server/handlers/vector.d.ts +93 -9
  220. package/dist/server/handlers/vector.d.ts.map +1 -1
  221. package/dist/server/handlers/vector.js +1 -1
  222. package/dist/server/handlers/voice.cjs +21 -9
  223. package/dist/server/handlers/voice.d.ts +81 -40
  224. package/dist/server/handlers/voice.d.ts.map +1 -1
  225. package/dist/server/handlers/voice.js +1 -1
  226. package/dist/server/handlers/workflows.cjs +57 -37
  227. package/dist/server/handlers/workflows.d.ts +980 -74
  228. package/dist/server/handlers/workflows.d.ts.map +1 -1
  229. package/dist/server/handlers/workflows.js +1 -1
  230. package/dist/server/handlers.cjs +36 -31
  231. package/dist/server/handlers.d.ts +1 -0
  232. package/dist/server/handlers.d.ts.map +1 -1
  233. package/dist/server/handlers.js +12 -11
  234. package/dist/server/schemas/a2a.d.ts +786 -0
  235. package/dist/server/schemas/a2a.d.ts.map +1 -0
  236. package/dist/server/schemas/agent-builder.d.ts +225 -0
  237. package/dist/server/schemas/agent-builder.d.ts.map +1 -0
  238. package/dist/server/schemas/agents.d.ts +1401 -0
  239. package/dist/server/schemas/agents.d.ts.map +1 -0
  240. package/dist/server/schemas/common.d.ts +179 -0
  241. package/dist/server/schemas/common.d.ts.map +1 -0
  242. package/dist/server/schemas/logs.d.ts +124 -0
  243. package/dist/server/schemas/logs.d.ts.map +1 -0
  244. package/dist/server/schemas/mcp.d.ts +299 -0
  245. package/dist/server/schemas/mcp.d.ts.map +1 -0
  246. package/dist/server/schemas/memory.d.ts +1128 -0
  247. package/dist/server/schemas/memory.d.ts.map +1 -0
  248. package/dist/server/schemas/scores.d.ts +259 -0
  249. package/dist/server/schemas/scores.d.ts.map +1 -0
  250. package/dist/server/schemas/stored-agents.d.ts +792 -0
  251. package/dist/server/schemas/stored-agents.d.ts.map +1 -0
  252. package/dist/server/schemas/system.d.ts +36 -0
  253. package/dist/server/schemas/system.d.ts.map +1 -0
  254. package/dist/server/schemas/vectors.d.ts +107 -0
  255. package/dist/server/schemas/vectors.d.ts.map +1 -0
  256. package/dist/server/schemas/workflows.d.ts +863 -0
  257. package/dist/server/schemas/workflows.d.ts.map +1 -0
  258. package/dist/server/server-adapter/index.cjs +510 -0
  259. package/dist/server/server-adapter/index.cjs.map +1 -0
  260. package/dist/server/server-adapter/index.d.ts +109 -0
  261. package/dist/server/server-adapter/index.d.ts.map +1 -0
  262. package/dist/server/server-adapter/index.js +482 -0
  263. package/dist/server/server-adapter/index.js.map +1 -0
  264. package/dist/server/server-adapter/openapi-utils.d.ts +59 -0
  265. package/dist/server/server-adapter/openapi-utils.d.ts.map +1 -0
  266. package/dist/server/server-adapter/redact.d.ts +26 -0
  267. package/dist/server/server-adapter/redact.d.ts.map +1 -0
  268. package/dist/server/server-adapter/routes/a2a.d.ts +3 -0
  269. package/dist/server/server-adapter/routes/a2a.d.ts.map +1 -0
  270. package/dist/server/server-adapter/routes/agent-builder.d.ts +3 -0
  271. package/dist/server/server-adapter/routes/agent-builder.d.ts.map +1 -0
  272. package/dist/server/server-adapter/routes/agents.d.ts +3 -0
  273. package/dist/server/server-adapter/routes/agents.d.ts.map +1 -0
  274. package/dist/server/server-adapter/routes/index.d.ts +50 -0
  275. package/dist/server/server-adapter/routes/index.d.ts.map +1 -0
  276. package/dist/server/server-adapter/routes/legacy.d.ts +7 -0
  277. package/dist/server/server-adapter/routes/legacy.d.ts.map +1 -0
  278. package/dist/server/server-adapter/routes/logs.d.ts +3 -0
  279. package/dist/server/server-adapter/routes/logs.d.ts.map +1 -0
  280. package/dist/server/server-adapter/routes/mcp.d.ts +9 -0
  281. package/dist/server/server-adapter/routes/mcp.d.ts.map +1 -0
  282. package/dist/server/server-adapter/routes/memory.d.ts +3 -0
  283. package/dist/server/server-adapter/routes/memory.d.ts.map +1 -0
  284. package/dist/server/server-adapter/routes/observability.d.ts +3 -0
  285. package/dist/server/server-adapter/routes/observability.d.ts.map +1 -0
  286. package/dist/server/server-adapter/routes/route-builder.d.ts +111 -0
  287. package/dist/server/server-adapter/routes/route-builder.d.ts.map +1 -0
  288. package/dist/server/server-adapter/routes/scorers.d.ts +3 -0
  289. package/dist/server/server-adapter/routes/scorers.d.ts.map +1 -0
  290. package/dist/server/server-adapter/routes/stored-agents.d.ts +8 -0
  291. package/dist/server/server-adapter/routes/stored-agents.d.ts.map +1 -0
  292. package/dist/server/server-adapter/routes/stream-types.d.ts +10 -0
  293. package/dist/server/server-adapter/routes/stream-types.d.ts.map +1 -0
  294. package/dist/server/server-adapter/routes/system.d.ts +12 -0
  295. package/dist/server/server-adapter/routes/system.d.ts.map +1 -0
  296. package/dist/server/server-adapter/routes/tools.d.ts +3 -0
  297. package/dist/server/server-adapter/routes/tools.d.ts.map +1 -0
  298. package/dist/server/server-adapter/routes/vectors.d.ts +3 -0
  299. package/dist/server/server-adapter/routes/vectors.d.ts.map +1 -0
  300. package/dist/server/server-adapter/routes/workflows.d.ts +3 -0
  301. package/dist/server/server-adapter/routes/workflows.d.ts.map +1 -0
  302. package/dist/server/utils.d.ts +1 -1
  303. package/dist/server/utils.d.ts.map +1 -1
  304. package/dist/{token-375W3LEI.cjs → token-6GSAFR2W-K2BTU23I-5WBYUIGY.cjs} +11 -12
  305. package/dist/token-6GSAFR2W-K2BTU23I-5WBYUIGY.cjs.map +1 -0
  306. package/dist/{token-C3IMNCC4.js → token-6GSAFR2W-K2BTU23I-NW33N3NU.js} +8 -9
  307. package/dist/token-6GSAFR2W-K2BTU23I-NW33N3NU.js.map +1 -0
  308. package/dist/token-6GSAFR2W-KVDFAJ2M-EPLMGMHT.cjs +63 -0
  309. package/dist/token-6GSAFR2W-KVDFAJ2M-EPLMGMHT.cjs.map +1 -0
  310. package/dist/token-6GSAFR2W-KVDFAJ2M-VW443KIA.js +61 -0
  311. package/dist/token-6GSAFR2W-KVDFAJ2M-VW443KIA.js.map +1 -0
  312. package/dist/token-6GSAFR2W-VLY2XUPA-NCSASMWN.js +61 -0
  313. package/dist/token-6GSAFR2W-VLY2XUPA-NCSASMWN.js.map +1 -0
  314. package/dist/token-6GSAFR2W-VLY2XUPA-RKITWXKR.cjs +63 -0
  315. package/dist/token-6GSAFR2W-VLY2XUPA-RKITWXKR.cjs.map +1 -0
  316. package/dist/token-util-NEHG7TUY-DJYRKLRD-6TH3ODCN.cjs +10 -0
  317. package/dist/token-util-NEHG7TUY-DJYRKLRD-6TH3ODCN.cjs.map +1 -0
  318. package/dist/token-util-NEHG7TUY-DJYRKLRD-EACKYD4V.js +8 -0
  319. package/dist/token-util-NEHG7TUY-DJYRKLRD-EACKYD4V.js.map +1 -0
  320. package/dist/token-util-NEHG7TUY-KSXDO2NO-J6DEINGO.cjs +10 -0
  321. package/dist/token-util-NEHG7TUY-KSXDO2NO-J6DEINGO.cjs.map +1 -0
  322. package/dist/token-util-NEHG7TUY-KSXDO2NO-WH6I3PH3.js +8 -0
  323. package/dist/token-util-NEHG7TUY-KSXDO2NO-WH6I3PH3.js.map +1 -0
  324. package/dist/token-util-NEHG7TUY-TIJ3LMSH-ANFISSXX.cjs +10 -0
  325. package/dist/token-util-NEHG7TUY-TIJ3LMSH-ANFISSXX.cjs.map +1 -0
  326. package/dist/token-util-NEHG7TUY-TIJ3LMSH-SGVKOKXF.js +8 -0
  327. package/dist/token-util-NEHG7TUY-TIJ3LMSH-SGVKOKXF.js.map +1 -0
  328. package/package.json +35 -10
  329. package/dist/chunk-2IS5WICF.js +0 -23036
  330. package/dist/chunk-2IS5WICF.js.map +0 -1
  331. package/dist/chunk-2YZH5PH6.cjs +0 -200
  332. package/dist/chunk-2YZH5PH6.cjs.map +0 -1
  333. package/dist/chunk-3AMNUUZF.js +0 -124
  334. package/dist/chunk-3AMNUUZF.js.map +0 -1
  335. package/dist/chunk-3F52QCI4.js +0 -192
  336. package/dist/chunk-3F52QCI4.js.map +0 -1
  337. package/dist/chunk-4JF5WXPL.js +0 -502
  338. package/dist/chunk-4JF5WXPL.js.map +0 -1
  339. package/dist/chunk-73PAWDM5.js +0 -83
  340. package/dist/chunk-73PAWDM5.js.map +0 -1
  341. package/dist/chunk-A24TSVEZ.cjs +0 -130
  342. package/dist/chunk-A24TSVEZ.cjs.map +0 -1
  343. package/dist/chunk-A2NPD5N6.cjs +0 -517
  344. package/dist/chunk-A2NPD5N6.cjs.map +0 -1
  345. package/dist/chunk-B3Z6J745.js +0 -122
  346. package/dist/chunk-B3Z6J745.js.map +0 -1
  347. package/dist/chunk-BTWIR2B7.cjs +0 -28
  348. package/dist/chunk-BTWIR2B7.cjs.map +0 -1
  349. package/dist/chunk-D7T74TVR.js.map +0 -1
  350. package/dist/chunk-EHACNWDL.cjs +0 -681
  351. package/dist/chunk-EHACNWDL.cjs.map +0 -1
  352. package/dist/chunk-FPBYKMIS.js.map +0 -1
  353. package/dist/chunk-GLAZTMX3.cjs +0 -128
  354. package/dist/chunk-GLAZTMX3.cjs.map +0 -1
  355. package/dist/chunk-ID6JYDNL.cjs +0 -23075
  356. package/dist/chunk-ID6JYDNL.cjs.map +0 -1
  357. package/dist/chunk-KF3RI45U.cjs +0 -172
  358. package/dist/chunk-KF3RI45U.cjs.map +0 -1
  359. package/dist/chunk-KJIDZQRA.cjs.map +0 -1
  360. package/dist/chunk-KWH5QBXP.js +0 -123
  361. package/dist/chunk-KWH5QBXP.js.map +0 -1
  362. package/dist/chunk-LPM6BBAX.cjs.map +0 -1
  363. package/dist/chunk-ND5OKOMT.js +0 -165
  364. package/dist/chunk-ND5OKOMT.js.map +0 -1
  365. package/dist/chunk-PPMIB3FQ.cjs +0 -88
  366. package/dist/chunk-PPMIB3FQ.cjs.map +0 -1
  367. package/dist/chunk-QU6N55W6.cjs.map +0 -1
  368. package/dist/chunk-RQK4FQUD.js.map +0 -1
  369. package/dist/chunk-S54HNARD.cjs +0 -131
  370. package/dist/chunk-S54HNARD.cjs.map +0 -1
  371. package/dist/chunk-SHWNNZBL.js.map +0 -1
  372. package/dist/chunk-SZIFSF4T.js +0 -25
  373. package/dist/chunk-SZIFSF4T.js.map +0 -1
  374. package/dist/chunk-TOCYBDP2.js +0 -46
  375. package/dist/chunk-TOCYBDP2.js.map +0 -1
  376. package/dist/chunk-UXGQZUYZ.js.map +0 -1
  377. package/dist/chunk-V5WWQN7P.cjs.map +0 -1
  378. package/dist/chunk-W2KMU354.cjs.map +0 -1
  379. package/dist/chunk-X3MICMI2.cjs +0 -620
  380. package/dist/chunk-X3MICMI2.cjs.map +0 -1
  381. package/dist/chunk-X6C7BUWN.cjs +0 -48
  382. package/dist/chunk-X6C7BUWN.cjs.map +0 -1
  383. package/dist/chunk-Z2O5YVHY.js +0 -661
  384. package/dist/chunk-Z2O5YVHY.js.map +0 -1
  385. package/dist/chunk-ZJ6KEY6H.js +0 -600
  386. package/dist/chunk-ZJ6KEY6H.js.map +0 -1
  387. package/dist/dist-P4MXBQ3U.cjs +0 -16
  388. package/dist/dist-YREX2TJT.js +0 -3
  389. package/dist/token-375W3LEI.cjs.map +0 -1
  390. package/dist/token-C3IMNCC4.js.map +0 -1
  391. package/dist/token-util-CV3RRG6K.cjs +0 -9
  392. package/dist/token-util-CV3RRG6K.cjs.map +0 -1
  393. package/dist/token-util-E5QO2RCL.js +0 -7
  394. package/dist/token-util-E5QO2RCL.js.map +0 -1
@@ -1,112 +1,1033 @@
1
1
  import type { MastraDBMessage } from '@mastra/core/agent';
2
- import { RequestContext } from '@mastra/core/di';
3
- import type { MastraMemory } from '@mastra/core/memory';
4
- import type { StorageListMessagesInput, StorageOrderBy } from '@mastra/core/storage';
5
- import type { Context } from '../types.js';
6
- import { handleError } from './error.js';
7
- interface MemoryContext extends Context {
8
- agentId?: string;
9
- resourceId?: string;
10
- threadId?: string;
11
- requestContext?: RequestContext;
12
- }
13
- export declare function getMemoryStatusHandler({ mastra, agentId, requestContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'requestContext'>): Promise<{
2
+ export declare function getTextContent(message: MastraDBMessage): string;
3
+ export declare const GET_MEMORY_STATUS_ROUTE: import("../server-adapter").ServerRoute<{
4
+ agentId: string;
5
+ }, {
14
6
  result: boolean;
15
- }>;
16
- export declare function getMemoryConfigHandler({ mastra, agentId, requestContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'requestContext'>): Promise<{
17
- config: import("@mastra/core/memory").MemoryConfig;
18
- }>;
19
- export declare function listThreadsHandler({ mastra, agentId, resourceId, requestContext, page, perPage, orderBy, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'resourceId' | 'requestContext'> & {
7
+ }, "json">;
8
+ export declare const GET_MEMORY_CONFIG_ROUTE: import("../server-adapter").ServerRoute<{
9
+ agentId: string;
10
+ }, {
11
+ config: {
12
+ lastMessages?: number | false | undefined;
13
+ semanticRecall?: any;
14
+ workingMemory?: any;
15
+ };
16
+ }, "json">;
17
+ export declare const LIST_THREADS_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
18
+ perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
19
+ page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
20
+ } & {
21
+ agentId: import("zod").ZodOptional<import("zod").ZodString>;
22
+ resourceId: import("zod").ZodString;
23
+ orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
24
+ field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt", "updatedAt"]>>;
25
+ direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
26
+ }, "strip", import("zod").ZodTypeAny, {
27
+ field?: "createdAt" | "updatedAt" | undefined;
28
+ direction?: "ASC" | "DESC" | undefined;
29
+ }, {
30
+ field?: "createdAt" | "updatedAt" | undefined;
31
+ direction?: "ASC" | "DESC" | undefined;
32
+ }>>;
33
+ }, "strip", import("zod").ZodTypeAny, {
34
+ page: number;
35
+ perPage: number;
36
+ resourceId: string;
37
+ agentId?: string | undefined;
38
+ orderBy?: {
39
+ field?: "createdAt" | "updatedAt" | undefined;
40
+ direction?: "ASC" | "DESC" | undefined;
41
+ } | undefined;
42
+ }, {
43
+ resourceId: string;
44
+ page?: number | undefined;
45
+ perPage?: number | undefined;
46
+ agentId?: string | undefined;
47
+ orderBy?: {
48
+ field?: "createdAt" | "updatedAt" | undefined;
49
+ direction?: "ASC" | "DESC" | undefined;
50
+ } | undefined;
51
+ }> | import("zod").ZodObject<{
52
+ perPage: import("zod").ZodOptional<import("zod").ZodNumber>;
53
+ page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
54
+ } & {
55
+ agentId: import("zod").ZodOptional<import("zod").ZodString>;
56
+ resourceId: import("zod").ZodString;
57
+ orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
58
+ field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt", "updatedAt"]>>;
59
+ direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
60
+ }, "strip", import("zod").ZodTypeAny, {
61
+ field?: "createdAt" | "updatedAt" | undefined;
62
+ direction?: "ASC" | "DESC" | undefined;
63
+ }, {
64
+ field?: "createdAt" | "updatedAt" | undefined;
65
+ direction?: "ASC" | "DESC" | undefined;
66
+ }>>;
67
+ }, "strip", import("zod").ZodTypeAny, {
68
+ page: number;
69
+ resourceId: string;
70
+ perPage?: number | undefined;
71
+ agentId?: string | undefined;
72
+ orderBy?: {
73
+ field?: "createdAt" | "updatedAt" | undefined;
74
+ direction?: "ASC" | "DESC" | undefined;
75
+ } | undefined;
76
+ }, {
77
+ resourceId: string;
78
+ page?: number | undefined;
79
+ perPage?: number | undefined;
80
+ agentId?: string | undefined;
81
+ orderBy?: {
82
+ field?: "createdAt" | "updatedAt" | undefined;
83
+ direction?: "ASC" | "DESC" | undefined;
84
+ } | undefined;
85
+ }>, undefined>, {
86
+ total: number;
20
87
  page: number;
21
88
  perPage: number | false;
22
- orderBy?: StorageOrderBy;
23
- }): Promise<import("@mastra/core/storage").StorageListThreadsByResourceIdOutput>;
24
- export declare function getThreadByIdHandler({ mastra, agentId, threadId, requestContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'requestContext'>): Promise<import("@mastra/core/memory").StorageThreadType>;
25
- export declare function saveMessagesHandler({ mastra, agentId, body, requestContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'requestContext'> & {
26
- body: {
27
- messages: Parameters<MastraMemory['saveMessages']>[0]['messages'];
28
- };
29
- }): Promise<{
30
- messages: MastraDBMessage[];
31
- }>;
32
- export declare function createThreadHandler({ mastra, agentId, body, requestContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'requestContext'> & {
33
- body?: Omit<Parameters<MastraMemory['createThread']>[0], 'resourceId'> & {
34
- resourceId?: string;
35
- };
36
- }): Promise<import("@mastra/core/memory").StorageThreadType>;
37
- export declare function updateThreadHandler({ mastra, agentId, threadId, body, requestContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'requestContext'> & {
38
- body?: Parameters<MastraMemory['saveThread']>[0]['thread'];
39
- }): Promise<import("@mastra/core/memory").StorageThreadType>;
40
- export declare function deleteThreadHandler({ mastra, agentId, threadId, requestContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'requestContext'>): Promise<{
41
- result: string;
42
- }>;
43
- export declare function listMessagesHandler({ mastra, agentId, threadId, resourceId, perPage, page, orderBy, include, filter, requestContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'requestContext'> & Omit<StorageListMessagesInput, 'threadId'>): Promise<{
44
- messages: MastraDBMessage[];
45
- }>;
46
- /**
47
- * Handler to get the working memory for a thread (optionally resource-scoped).
48
- * @returns workingMemory - the working memory for the thread
49
- * @returns source - thread or resource
50
- */
51
- export declare function getWorkingMemoryHandler({ mastra, agentId, threadId, resourceId, requestContext, memoryConfig, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'requestContext'> & {
52
- resourceId?: Parameters<MastraMemory['getWorkingMemory']>[0]['resourceId'];
53
- memoryConfig?: Parameters<MastraMemory['getWorkingMemory']>[0]['memoryConfig'];
54
- }): Promise<{
55
- workingMemory: string | null;
56
- source: string;
57
- workingMemoryTemplate: import("@mastra/core/memory").WorkingMemoryTemplate | null;
89
+ hasMore: boolean;
90
+ threads: {
91
+ id: string;
92
+ createdAt: Date;
93
+ updatedAt: Date;
94
+ resourceId: string;
95
+ metadata?: Record<string, unknown> | undefined;
96
+ title?: string | undefined;
97
+ }[];
98
+ }, "json">;
99
+ export declare const GET_THREAD_BY_ID_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
100
+ threadId: import("zod").ZodString;
101
+ }, "strip", import("zod").ZodTypeAny, {
102
+ threadId: string;
103
+ }, {
104
+ threadId: string;
105
+ }>, import("zod").ZodObject<{
106
+ agentId: import("zod").ZodOptional<import("zod").ZodString>;
107
+ }, "strip", import("zod").ZodTypeAny, {
108
+ agentId?: string | undefined;
109
+ }, {
110
+ agentId?: string | undefined;
111
+ }>, undefined>, {
112
+ id: string;
113
+ createdAt: Date;
114
+ updatedAt: Date;
115
+ resourceId: string;
116
+ metadata?: Record<string, unknown> | undefined;
117
+ title?: string | undefined;
118
+ }, "json">;
119
+ export declare const LIST_MESSAGES_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
120
+ threadId: import("zod").ZodString;
121
+ }, "strip", import("zod").ZodTypeAny, {
122
+ threadId: string;
123
+ }, {
124
+ threadId: string;
125
+ }>, import("zod").ZodObject<{
126
+ perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
127
+ page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
128
+ } & {
129
+ agentId: import("zod").ZodOptional<import("zod").ZodString>;
130
+ resourceId: import("zod").ZodOptional<import("zod").ZodString>;
131
+ orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
132
+ field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt"]>>;
133
+ direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
134
+ }, "strip", import("zod").ZodTypeAny, {
135
+ field?: "createdAt" | undefined;
136
+ direction?: "ASC" | "DESC" | undefined;
137
+ }, {
138
+ field?: "createdAt" | undefined;
139
+ direction?: "ASC" | "DESC" | undefined;
140
+ }>>;
141
+ include: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
142
+ id: import("zod").ZodString;
143
+ threadId: import("zod").ZodOptional<import("zod").ZodString>;
144
+ withPreviousMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
145
+ withNextMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
146
+ }, "strip", import("zod").ZodTypeAny, {
147
+ id: string;
148
+ threadId?: string | undefined;
149
+ withPreviousMessages?: number | undefined;
150
+ withNextMessages?: number | undefined;
151
+ }, {
152
+ id: string;
153
+ threadId?: string | undefined;
154
+ withPreviousMessages?: number | undefined;
155
+ withNextMessages?: number | undefined;
156
+ }>, "many">>, {
157
+ id: string;
158
+ threadId?: string | undefined;
159
+ withPreviousMessages?: number | undefined;
160
+ withNextMessages?: number | undefined;
161
+ }[] | undefined, unknown>;
162
+ filter: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
163
+ dateRange: import("zod").ZodOptional<import("zod").ZodObject<{
164
+ start: import("zod").ZodOptional<import("zod").ZodDate>;
165
+ end: import("zod").ZodOptional<import("zod").ZodDate>;
166
+ }, "strip", import("zod").ZodTypeAny, {
167
+ start?: Date | undefined;
168
+ end?: Date | undefined;
169
+ }, {
170
+ start?: Date | undefined;
171
+ end?: Date | undefined;
172
+ }>>;
173
+ }, "strip", import("zod").ZodTypeAny, {
174
+ dateRange?: {
175
+ start?: Date | undefined;
176
+ end?: Date | undefined;
177
+ } | undefined;
178
+ }, {
179
+ dateRange?: {
180
+ start?: Date | undefined;
181
+ end?: Date | undefined;
182
+ } | undefined;
183
+ }>>, {
184
+ dateRange?: {
185
+ start?: Date | undefined;
186
+ end?: Date | undefined;
187
+ } | undefined;
188
+ } | undefined, unknown>;
189
+ }, "strip", import("zod").ZodTypeAny, {
190
+ page: number;
191
+ perPage: number;
192
+ filter?: {
193
+ dateRange?: {
194
+ start?: Date | undefined;
195
+ end?: Date | undefined;
196
+ } | undefined;
197
+ } | undefined;
198
+ resourceId?: string | undefined;
199
+ agentId?: string | undefined;
200
+ orderBy?: {
201
+ field?: "createdAt" | undefined;
202
+ direction?: "ASC" | "DESC" | undefined;
203
+ } | undefined;
204
+ include?: {
205
+ id: string;
206
+ threadId?: string | undefined;
207
+ withPreviousMessages?: number | undefined;
208
+ withNextMessages?: number | undefined;
209
+ }[] | undefined;
210
+ }, {
211
+ filter?: unknown;
212
+ page?: number | undefined;
213
+ perPage?: number | undefined;
214
+ resourceId?: string | undefined;
215
+ agentId?: string | undefined;
216
+ orderBy?: {
217
+ field?: "createdAt" | undefined;
218
+ direction?: "ASC" | "DESC" | undefined;
219
+ } | undefined;
220
+ include?: unknown;
221
+ }> | import("zod").ZodObject<{
222
+ perPage: import("zod").ZodOptional<import("zod").ZodNumber>;
223
+ page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
224
+ } & {
225
+ agentId: import("zod").ZodOptional<import("zod").ZodString>;
226
+ resourceId: import("zod").ZodOptional<import("zod").ZodString>;
227
+ orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
228
+ field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt"]>>;
229
+ direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
230
+ }, "strip", import("zod").ZodTypeAny, {
231
+ field?: "createdAt" | undefined;
232
+ direction?: "ASC" | "DESC" | undefined;
233
+ }, {
234
+ field?: "createdAt" | undefined;
235
+ direction?: "ASC" | "DESC" | undefined;
236
+ }>>;
237
+ include: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
238
+ id: import("zod").ZodString;
239
+ threadId: import("zod").ZodOptional<import("zod").ZodString>;
240
+ withPreviousMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
241
+ withNextMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
242
+ }, "strip", import("zod").ZodTypeAny, {
243
+ id: string;
244
+ threadId?: string | undefined;
245
+ withPreviousMessages?: number | undefined;
246
+ withNextMessages?: number | undefined;
247
+ }, {
248
+ id: string;
249
+ threadId?: string | undefined;
250
+ withPreviousMessages?: number | undefined;
251
+ withNextMessages?: number | undefined;
252
+ }>, "many">>, {
253
+ id: string;
254
+ threadId?: string | undefined;
255
+ withPreviousMessages?: number | undefined;
256
+ withNextMessages?: number | undefined;
257
+ }[] | undefined, unknown>;
258
+ filter: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
259
+ dateRange: import("zod").ZodOptional<import("zod").ZodObject<{
260
+ start: import("zod").ZodOptional<import("zod").ZodDate>;
261
+ end: import("zod").ZodOptional<import("zod").ZodDate>;
262
+ }, "strip", import("zod").ZodTypeAny, {
263
+ start?: Date | undefined;
264
+ end?: Date | undefined;
265
+ }, {
266
+ start?: Date | undefined;
267
+ end?: Date | undefined;
268
+ }>>;
269
+ }, "strip", import("zod").ZodTypeAny, {
270
+ dateRange?: {
271
+ start?: Date | undefined;
272
+ end?: Date | undefined;
273
+ } | undefined;
274
+ }, {
275
+ dateRange?: {
276
+ start?: Date | undefined;
277
+ end?: Date | undefined;
278
+ } | undefined;
279
+ }>>, {
280
+ dateRange?: {
281
+ start?: Date | undefined;
282
+ end?: Date | undefined;
283
+ } | undefined;
284
+ } | undefined, unknown>;
285
+ }, "strip", import("zod").ZodTypeAny, {
286
+ page: number;
287
+ filter?: {
288
+ dateRange?: {
289
+ start?: Date | undefined;
290
+ end?: Date | undefined;
291
+ } | undefined;
292
+ } | undefined;
293
+ perPage?: number | undefined;
294
+ resourceId?: string | undefined;
295
+ agentId?: string | undefined;
296
+ orderBy?: {
297
+ field?: "createdAt" | undefined;
298
+ direction?: "ASC" | "DESC" | undefined;
299
+ } | undefined;
300
+ include?: {
301
+ id: string;
302
+ threadId?: string | undefined;
303
+ withPreviousMessages?: number | undefined;
304
+ withNextMessages?: number | undefined;
305
+ }[] | undefined;
306
+ }, {
307
+ filter?: unknown;
308
+ page?: number | undefined;
309
+ perPage?: number | undefined;
310
+ resourceId?: string | undefined;
311
+ agentId?: string | undefined;
312
+ orderBy?: {
313
+ field?: "createdAt" | undefined;
314
+ direction?: "ASC" | "DESC" | undefined;
315
+ } | undefined;
316
+ include?: unknown;
317
+ }>, undefined>, {
318
+ messages: any[];
319
+ uiMessages?: unknown;
320
+ }, "json">;
321
+ export declare const GET_WORKING_MEMORY_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
322
+ threadId: import("zod").ZodString;
323
+ }, "strip", import("zod").ZodTypeAny, {
324
+ threadId: string;
325
+ }, {
326
+ threadId: string;
327
+ }>, import("zod").ZodObject<{
328
+ agentId: import("zod").ZodString;
329
+ resourceId: import("zod").ZodOptional<import("zod").ZodString>;
330
+ memoryConfig: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>, Record<string, unknown> | undefined, unknown>;
331
+ }, "strip", import("zod").ZodTypeAny, {
332
+ agentId: string;
333
+ resourceId?: string | undefined;
334
+ memoryConfig?: Record<string, unknown> | undefined;
335
+ }, {
336
+ agentId: string;
337
+ resourceId?: string | undefined;
338
+ memoryConfig?: unknown;
339
+ }>, undefined>, {
340
+ source: "thread" | "resource";
58
341
  threadExists: boolean;
59
- }>;
60
- /**
61
- * Handler to update the working memory for a thread (optionally resource-scoped).
62
- * @param threadId - the thread id
63
- * @param body - the body containing the working memory to update and the resource id (optional)
64
- */
65
- export declare function updateWorkingMemoryHandler({ mastra, agentId, threadId, body, requestContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'requestContext'> & {
66
- body: Omit<Parameters<MastraMemory['updateWorkingMemory']>[0], 'threadId'>;
67
- }): Promise<{
68
- success: boolean;
69
- }>;
70
- interface SearchResult {
342
+ workingMemory?: unknown;
343
+ workingMemoryTemplate?: unknown;
344
+ }, "json">;
345
+ export declare const SAVE_MESSAGES_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
346
+ agentId: import("zod").ZodString;
347
+ }, "strip", import("zod").ZodTypeAny, {
348
+ agentId: string;
349
+ }, {
350
+ agentId: string;
351
+ }>, import("zod").ZodObject<{
352
+ messages: import("zod").ZodArray<import("zod").ZodAny, "many">;
353
+ }, "strip", import("zod").ZodTypeAny, {
354
+ messages: any[];
355
+ }, {
356
+ messages: any[];
357
+ }>>, {
358
+ messages: any[];
359
+ }, "json">;
360
+ export declare const CREATE_THREAD_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
361
+ agentId: import("zod").ZodString;
362
+ }, "strip", import("zod").ZodTypeAny, {
363
+ agentId: string;
364
+ }, {
365
+ agentId: string;
366
+ }>, import("zod").ZodObject<{
367
+ resourceId: import("zod").ZodString;
368
+ title: import("zod").ZodOptional<import("zod").ZodString>;
369
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
370
+ threadId: import("zod").ZodOptional<import("zod").ZodString>;
371
+ }, "strip", import("zod").ZodTypeAny, {
372
+ resourceId: string;
373
+ metadata?: Record<string, unknown> | undefined;
374
+ threadId?: string | undefined;
375
+ title?: string | undefined;
376
+ }, {
377
+ resourceId: string;
378
+ metadata?: Record<string, unknown> | undefined;
379
+ threadId?: string | undefined;
380
+ title?: string | undefined;
381
+ }>>, {
71
382
  id: string;
72
- role: string;
73
- content: any;
74
383
  createdAt: Date;
75
- threadId?: string;
76
- threadTitle?: string;
77
- score?: number;
78
- context?: {
79
- before?: SearchResult[];
80
- after?: SearchResult[];
384
+ updatedAt: Date;
385
+ resourceId: string;
386
+ metadata?: Record<string, unknown> | undefined;
387
+ title?: string | undefined;
388
+ }, "json">;
389
+ export declare const UPDATE_THREAD_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
390
+ threadId: import("zod").ZodString;
391
+ }, "strip", import("zod").ZodTypeAny, {
392
+ threadId: string;
393
+ }, {
394
+ threadId: string;
395
+ }>, import("zod").ZodObject<{
396
+ agentId: import("zod").ZodString;
397
+ }, "strip", import("zod").ZodTypeAny, {
398
+ agentId: string;
399
+ }, {
400
+ agentId: string;
401
+ }>, import("zod").ZodObject<{
402
+ title: import("zod").ZodOptional<import("zod").ZodString>;
403
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
404
+ resourceId: import("zod").ZodOptional<import("zod").ZodString>;
405
+ }, "strip", import("zod").ZodTypeAny, {
406
+ metadata?: Record<string, unknown> | undefined;
407
+ resourceId?: string | undefined;
408
+ title?: string | undefined;
409
+ }, {
410
+ metadata?: Record<string, unknown> | undefined;
411
+ resourceId?: string | undefined;
412
+ title?: string | undefined;
413
+ }>>, {
414
+ id: string;
415
+ createdAt: Date;
416
+ updatedAt: Date;
417
+ resourceId: string;
418
+ metadata?: Record<string, unknown> | undefined;
419
+ title?: string | undefined;
420
+ }, "json">;
421
+ export declare const DELETE_THREAD_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
422
+ threadId: import("zod").ZodString;
423
+ }, "strip", import("zod").ZodTypeAny, {
424
+ threadId: string;
425
+ }, {
426
+ threadId: string;
427
+ }>, import("zod").ZodObject<{
428
+ agentId: import("zod").ZodString;
429
+ }, "strip", import("zod").ZodTypeAny, {
430
+ agentId: string;
431
+ }, {
432
+ agentId: string;
433
+ }>, undefined>, {
434
+ result: string;
435
+ }, "json">;
436
+ export declare const CLONE_THREAD_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
437
+ threadId: import("zod").ZodString;
438
+ }, "strip", import("zod").ZodTypeAny, {
439
+ threadId: string;
440
+ }, {
441
+ threadId: string;
442
+ }>, import("zod").ZodObject<{
443
+ agentId: import("zod").ZodString;
444
+ }, "strip", import("zod").ZodTypeAny, {
445
+ agentId: string;
446
+ }, {
447
+ agentId: string;
448
+ }>, import("zod").ZodObject<{
449
+ newThreadId: import("zod").ZodOptional<import("zod").ZodString>;
450
+ resourceId: import("zod").ZodOptional<import("zod").ZodString>;
451
+ title: import("zod").ZodOptional<import("zod").ZodString>;
452
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
453
+ options: import("zod").ZodOptional<import("zod").ZodObject<{
454
+ messageLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
455
+ messageFilter: import("zod").ZodOptional<import("zod").ZodObject<{
456
+ startDate: import("zod").ZodOptional<import("zod").ZodDate>;
457
+ endDate: import("zod").ZodOptional<import("zod").ZodDate>;
458
+ messageIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
459
+ }, "strip", import("zod").ZodTypeAny, {
460
+ messageIds?: string[] | undefined;
461
+ startDate?: Date | undefined;
462
+ endDate?: Date | undefined;
463
+ }, {
464
+ messageIds?: string[] | undefined;
465
+ startDate?: Date | undefined;
466
+ endDate?: Date | undefined;
467
+ }>>;
468
+ }, "strip", import("zod").ZodTypeAny, {
469
+ messageLimit?: number | undefined;
470
+ messageFilter?: {
471
+ messageIds?: string[] | undefined;
472
+ startDate?: Date | undefined;
473
+ endDate?: Date | undefined;
474
+ } | undefined;
475
+ }, {
476
+ messageLimit?: number | undefined;
477
+ messageFilter?: {
478
+ messageIds?: string[] | undefined;
479
+ startDate?: Date | undefined;
480
+ endDate?: Date | undefined;
481
+ } | undefined;
482
+ }>>;
483
+ }, "strip", import("zod").ZodTypeAny, {
484
+ options?: {
485
+ messageLimit?: number | undefined;
486
+ messageFilter?: {
487
+ messageIds?: string[] | undefined;
488
+ startDate?: Date | undefined;
489
+ endDate?: Date | undefined;
490
+ } | undefined;
491
+ } | undefined;
492
+ metadata?: Record<string, unknown> | undefined;
493
+ resourceId?: string | undefined;
494
+ title?: string | undefined;
495
+ newThreadId?: string | undefined;
496
+ }, {
497
+ options?: {
498
+ messageLimit?: number | undefined;
499
+ messageFilter?: {
500
+ messageIds?: string[] | undefined;
501
+ startDate?: Date | undefined;
502
+ endDate?: Date | undefined;
503
+ } | undefined;
504
+ } | undefined;
505
+ metadata?: Record<string, unknown> | undefined;
506
+ resourceId?: string | undefined;
507
+ title?: string | undefined;
508
+ newThreadId?: string | undefined;
509
+ }>>, {
510
+ thread: {
511
+ id: string;
512
+ createdAt: Date;
513
+ updatedAt: Date;
514
+ resourceId: string;
515
+ metadata?: Record<string, unknown> | undefined;
516
+ title?: string | undefined;
81
517
  };
82
- }
83
- interface SearchResponse {
84
- results: SearchResult[];
85
- count: number;
86
- query: string;
87
- searchScope?: string;
88
- searchType?: string;
89
- }
90
- /**
91
- * Handler to delete one or more messages.
92
- * @param messageIds - Can be a single ID, array of IDs, or objects with ID property
93
- */
94
- export declare function deleteMessagesHandler({ mastra, agentId, messageIds, requestContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'requestContext'> & {
518
+ clonedMessages: any[];
519
+ }, "json">;
520
+ export declare const UPDATE_WORKING_MEMORY_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
521
+ threadId: import("zod").ZodString;
522
+ }, "strip", import("zod").ZodTypeAny, {
523
+ threadId: string;
524
+ }, {
525
+ threadId: string;
526
+ }>, import("zod").ZodObject<{
527
+ agentId: import("zod").ZodString;
528
+ }, "strip", import("zod").ZodTypeAny, {
529
+ agentId: string;
530
+ }, {
531
+ agentId: string;
532
+ }>, import("zod").ZodObject<{
533
+ workingMemory: import("zod").ZodString;
534
+ resourceId: import("zod").ZodOptional<import("zod").ZodString>;
535
+ memoryConfig: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
536
+ }, "strip", import("zod").ZodTypeAny, {
537
+ workingMemory: string;
538
+ resourceId?: string | undefined;
539
+ memoryConfig?: Record<string, unknown> | undefined;
540
+ }, {
541
+ workingMemory: string;
542
+ resourceId?: string | undefined;
543
+ memoryConfig?: Record<string, unknown> | undefined;
544
+ }>>, {
545
+ success: boolean;
546
+ }, "json">;
547
+ export declare const DELETE_MESSAGES_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
548
+ agentId: import("zod").ZodString;
549
+ }, "strip", import("zod").ZodTypeAny, {
550
+ agentId: string;
551
+ }, {
552
+ agentId: string;
553
+ }>, import("zod").ZodObject<{
554
+ messageIds: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodObject<{
555
+ id: import("zod").ZodString;
556
+ }, "strip", import("zod").ZodTypeAny, {
557
+ id: string;
558
+ }, {
559
+ id: string;
560
+ }>, import("zod").ZodArray<import("zod").ZodObject<{
561
+ id: import("zod").ZodString;
562
+ }, "strip", import("zod").ZodTypeAny, {
563
+ id: string;
564
+ }, {
565
+ id: string;
566
+ }>, "many">]>;
567
+ }, "strip", import("zod").ZodTypeAny, {
95
568
  messageIds: string | string[] | {
96
569
  id: string;
97
570
  } | {
98
571
  id: string;
99
572
  }[];
100
- }): Promise<{
101
- success: boolean;
573
+ }, {
574
+ messageIds: string | string[] | {
575
+ id: string;
576
+ } | {
577
+ id: string;
578
+ }[];
579
+ }>>, {
102
580
  message: string;
103
- }>;
104
- export declare function searchMemoryHandler({ mastra, agentId, searchQuery, resourceId, threadId, limit, requestContext, memoryConfig, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'requestContext'> & {
581
+ success: boolean;
582
+ }, "json">;
583
+ export declare const SEARCH_MEMORY_ROUTE: import("../server-adapter").ServerRoute<{
584
+ limit: number;
585
+ resourceId: string;
586
+ agentId: string;
105
587
  searchQuery: string;
588
+ threadId?: string | undefined;
589
+ memoryConfig?: Record<string, unknown> | undefined;
590
+ }, {
591
+ results: unknown[];
592
+ count: number;
593
+ query: string;
594
+ searchScope?: string | undefined;
595
+ searchType?: string | undefined;
596
+ }, "json">;
597
+ export declare const GET_MEMORY_STATUS_NETWORK_ROUTE: import("../server-adapter").ServerRoute<{
598
+ agentId: string;
599
+ }, {
600
+ result: boolean;
601
+ }, "json">;
602
+ export declare const LIST_THREADS_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
603
+ perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
604
+ page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
605
+ } & {
606
+ agentId: import("zod").ZodOptional<import("zod").ZodString>;
607
+ resourceId: import("zod").ZodString;
608
+ orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
609
+ field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt", "updatedAt"]>>;
610
+ direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
611
+ }, "strip", import("zod").ZodTypeAny, {
612
+ field?: "createdAt" | "updatedAt" | undefined;
613
+ direction?: "ASC" | "DESC" | undefined;
614
+ }, {
615
+ field?: "createdAt" | "updatedAt" | undefined;
616
+ direction?: "ASC" | "DESC" | undefined;
617
+ }>>;
618
+ }, "strip", import("zod").ZodTypeAny, {
619
+ page: number;
620
+ perPage: number;
621
+ resourceId: string;
622
+ agentId?: string | undefined;
623
+ orderBy?: {
624
+ field?: "createdAt" | "updatedAt" | undefined;
625
+ direction?: "ASC" | "DESC" | undefined;
626
+ } | undefined;
627
+ }, {
628
+ resourceId: string;
629
+ page?: number | undefined;
630
+ perPage?: number | undefined;
631
+ agentId?: string | undefined;
632
+ orderBy?: {
633
+ field?: "createdAt" | "updatedAt" | undefined;
634
+ direction?: "ASC" | "DESC" | undefined;
635
+ } | undefined;
636
+ }> | import("zod").ZodObject<{
637
+ perPage: import("zod").ZodOptional<import("zod").ZodNumber>;
638
+ page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
639
+ } & {
640
+ agentId: import("zod").ZodOptional<import("zod").ZodString>;
641
+ resourceId: import("zod").ZodString;
642
+ orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
643
+ field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt", "updatedAt"]>>;
644
+ direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
645
+ }, "strip", import("zod").ZodTypeAny, {
646
+ field?: "createdAt" | "updatedAt" | undefined;
647
+ direction?: "ASC" | "DESC" | undefined;
648
+ }, {
649
+ field?: "createdAt" | "updatedAt" | undefined;
650
+ direction?: "ASC" | "DESC" | undefined;
651
+ }>>;
652
+ }, "strip", import("zod").ZodTypeAny, {
653
+ page: number;
654
+ resourceId: string;
655
+ perPage?: number | undefined;
656
+ agentId?: string | undefined;
657
+ orderBy?: {
658
+ field?: "createdAt" | "updatedAt" | undefined;
659
+ direction?: "ASC" | "DESC" | undefined;
660
+ } | undefined;
661
+ }, {
662
+ resourceId: string;
663
+ page?: number | undefined;
664
+ perPage?: number | undefined;
665
+ agentId?: string | undefined;
666
+ orderBy?: {
667
+ field?: "createdAt" | "updatedAt" | undefined;
668
+ direction?: "ASC" | "DESC" | undefined;
669
+ } | undefined;
670
+ }>, undefined>, {
671
+ total: number;
672
+ page: number;
673
+ perPage: number | false;
674
+ hasMore: boolean;
675
+ threads: {
676
+ id: string;
677
+ createdAt: Date;
678
+ updatedAt: Date;
679
+ resourceId: string;
680
+ metadata?: Record<string, unknown> | undefined;
681
+ title?: string | undefined;
682
+ }[];
683
+ }, "json">;
684
+ export declare const GET_THREAD_BY_ID_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
685
+ threadId: import("zod").ZodString;
686
+ }, "strip", import("zod").ZodTypeAny, {
687
+ threadId: string;
688
+ }, {
689
+ threadId: string;
690
+ }>, import("zod").ZodObject<{
691
+ agentId: import("zod").ZodOptional<import("zod").ZodString>;
692
+ }, "strip", import("zod").ZodTypeAny, {
693
+ agentId?: string | undefined;
694
+ }, {
695
+ agentId?: string | undefined;
696
+ }>, undefined>, {
697
+ id: string;
698
+ createdAt: Date;
699
+ updatedAt: Date;
700
+ resourceId: string;
701
+ metadata?: Record<string, unknown> | undefined;
702
+ title?: string | undefined;
703
+ }, "json">;
704
+ export declare const LIST_MESSAGES_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
705
+ threadId: import("zod").ZodString;
706
+ }, "strip", import("zod").ZodTypeAny, {
707
+ threadId: string;
708
+ }, {
709
+ threadId: string;
710
+ }>, import("zod").ZodObject<{
711
+ perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
712
+ page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
713
+ } & {
714
+ agentId: import("zod").ZodOptional<import("zod").ZodString>;
715
+ resourceId: import("zod").ZodOptional<import("zod").ZodString>;
716
+ orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
717
+ field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt"]>>;
718
+ direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
719
+ }, "strip", import("zod").ZodTypeAny, {
720
+ field?: "createdAt" | undefined;
721
+ direction?: "ASC" | "DESC" | undefined;
722
+ }, {
723
+ field?: "createdAt" | undefined;
724
+ direction?: "ASC" | "DESC" | undefined;
725
+ }>>;
726
+ include: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
727
+ id: import("zod").ZodString;
728
+ threadId: import("zod").ZodOptional<import("zod").ZodString>;
729
+ withPreviousMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
730
+ withNextMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
731
+ }, "strip", import("zod").ZodTypeAny, {
732
+ id: string;
733
+ threadId?: string | undefined;
734
+ withPreviousMessages?: number | undefined;
735
+ withNextMessages?: number | undefined;
736
+ }, {
737
+ id: string;
738
+ threadId?: string | undefined;
739
+ withPreviousMessages?: number | undefined;
740
+ withNextMessages?: number | undefined;
741
+ }>, "many">>, {
742
+ id: string;
743
+ threadId?: string | undefined;
744
+ withPreviousMessages?: number | undefined;
745
+ withNextMessages?: number | undefined;
746
+ }[] | undefined, unknown>;
747
+ filter: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
748
+ dateRange: import("zod").ZodOptional<import("zod").ZodObject<{
749
+ start: import("zod").ZodOptional<import("zod").ZodDate>;
750
+ end: import("zod").ZodOptional<import("zod").ZodDate>;
751
+ }, "strip", import("zod").ZodTypeAny, {
752
+ start?: Date | undefined;
753
+ end?: Date | undefined;
754
+ }, {
755
+ start?: Date | undefined;
756
+ end?: Date | undefined;
757
+ }>>;
758
+ }, "strip", import("zod").ZodTypeAny, {
759
+ dateRange?: {
760
+ start?: Date | undefined;
761
+ end?: Date | undefined;
762
+ } | undefined;
763
+ }, {
764
+ dateRange?: {
765
+ start?: Date | undefined;
766
+ end?: Date | undefined;
767
+ } | undefined;
768
+ }>>, {
769
+ dateRange?: {
770
+ start?: Date | undefined;
771
+ end?: Date | undefined;
772
+ } | undefined;
773
+ } | undefined, unknown>;
774
+ }, "strip", import("zod").ZodTypeAny, {
775
+ page: number;
776
+ perPage: number;
777
+ filter?: {
778
+ dateRange?: {
779
+ start?: Date | undefined;
780
+ end?: Date | undefined;
781
+ } | undefined;
782
+ } | undefined;
783
+ resourceId?: string | undefined;
784
+ agentId?: string | undefined;
785
+ orderBy?: {
786
+ field?: "createdAt" | undefined;
787
+ direction?: "ASC" | "DESC" | undefined;
788
+ } | undefined;
789
+ include?: {
790
+ id: string;
791
+ threadId?: string | undefined;
792
+ withPreviousMessages?: number | undefined;
793
+ withNextMessages?: number | undefined;
794
+ }[] | undefined;
795
+ }, {
796
+ filter?: unknown;
797
+ page?: number | undefined;
798
+ perPage?: number | undefined;
799
+ resourceId?: string | undefined;
800
+ agentId?: string | undefined;
801
+ orderBy?: {
802
+ field?: "createdAt" | undefined;
803
+ direction?: "ASC" | "DESC" | undefined;
804
+ } | undefined;
805
+ include?: unknown;
806
+ }> | import("zod").ZodObject<{
807
+ perPage: import("zod").ZodOptional<import("zod").ZodNumber>;
808
+ page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
809
+ } & {
810
+ agentId: import("zod").ZodOptional<import("zod").ZodString>;
811
+ resourceId: import("zod").ZodOptional<import("zod").ZodString>;
812
+ orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
813
+ field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt"]>>;
814
+ direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
815
+ }, "strip", import("zod").ZodTypeAny, {
816
+ field?: "createdAt" | undefined;
817
+ direction?: "ASC" | "DESC" | undefined;
818
+ }, {
819
+ field?: "createdAt" | undefined;
820
+ direction?: "ASC" | "DESC" | undefined;
821
+ }>>;
822
+ include: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
823
+ id: import("zod").ZodString;
824
+ threadId: import("zod").ZodOptional<import("zod").ZodString>;
825
+ withPreviousMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
826
+ withNextMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
827
+ }, "strip", import("zod").ZodTypeAny, {
828
+ id: string;
829
+ threadId?: string | undefined;
830
+ withPreviousMessages?: number | undefined;
831
+ withNextMessages?: number | undefined;
832
+ }, {
833
+ id: string;
834
+ threadId?: string | undefined;
835
+ withPreviousMessages?: number | undefined;
836
+ withNextMessages?: number | undefined;
837
+ }>, "many">>, {
838
+ id: string;
839
+ threadId?: string | undefined;
840
+ withPreviousMessages?: number | undefined;
841
+ withNextMessages?: number | undefined;
842
+ }[] | undefined, unknown>;
843
+ filter: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
844
+ dateRange: import("zod").ZodOptional<import("zod").ZodObject<{
845
+ start: import("zod").ZodOptional<import("zod").ZodDate>;
846
+ end: import("zod").ZodOptional<import("zod").ZodDate>;
847
+ }, "strip", import("zod").ZodTypeAny, {
848
+ start?: Date | undefined;
849
+ end?: Date | undefined;
850
+ }, {
851
+ start?: Date | undefined;
852
+ end?: Date | undefined;
853
+ }>>;
854
+ }, "strip", import("zod").ZodTypeAny, {
855
+ dateRange?: {
856
+ start?: Date | undefined;
857
+ end?: Date | undefined;
858
+ } | undefined;
859
+ }, {
860
+ dateRange?: {
861
+ start?: Date | undefined;
862
+ end?: Date | undefined;
863
+ } | undefined;
864
+ }>>, {
865
+ dateRange?: {
866
+ start?: Date | undefined;
867
+ end?: Date | undefined;
868
+ } | undefined;
869
+ } | undefined, unknown>;
870
+ }, "strip", import("zod").ZodTypeAny, {
871
+ page: number;
872
+ filter?: {
873
+ dateRange?: {
874
+ start?: Date | undefined;
875
+ end?: Date | undefined;
876
+ } | undefined;
877
+ } | undefined;
878
+ perPage?: number | undefined;
879
+ resourceId?: string | undefined;
880
+ agentId?: string | undefined;
881
+ orderBy?: {
882
+ field?: "createdAt" | undefined;
883
+ direction?: "ASC" | "DESC" | undefined;
884
+ } | undefined;
885
+ include?: {
886
+ id: string;
887
+ threadId?: string | undefined;
888
+ withPreviousMessages?: number | undefined;
889
+ withNextMessages?: number | undefined;
890
+ }[] | undefined;
891
+ }, {
892
+ filter?: unknown;
893
+ page?: number | undefined;
894
+ perPage?: number | undefined;
895
+ resourceId?: string | undefined;
896
+ agentId?: string | undefined;
897
+ orderBy?: {
898
+ field?: "createdAt" | undefined;
899
+ direction?: "ASC" | "DESC" | undefined;
900
+ } | undefined;
901
+ include?: unknown;
902
+ }>, undefined>, {
903
+ messages: any[];
904
+ uiMessages?: unknown;
905
+ }, "json">;
906
+ export declare const SAVE_MESSAGES_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
907
+ agentId: import("zod").ZodString;
908
+ }, "strip", import("zod").ZodTypeAny, {
909
+ agentId: string;
910
+ }, {
911
+ agentId: string;
912
+ }>, import("zod").ZodObject<{
913
+ messages: import("zod").ZodArray<import("zod").ZodAny, "many">;
914
+ }, "strip", import("zod").ZodTypeAny, {
915
+ messages: any[];
916
+ }, {
917
+ messages: any[];
918
+ }>>, {
919
+ messages: any[];
920
+ }, "json">;
921
+ export declare const CREATE_THREAD_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
922
+ agentId: import("zod").ZodString;
923
+ }, "strip", import("zod").ZodTypeAny, {
924
+ agentId: string;
925
+ }, {
926
+ agentId: string;
927
+ }>, import("zod").ZodObject<{
928
+ resourceId: import("zod").ZodString;
929
+ title: import("zod").ZodOptional<import("zod").ZodString>;
930
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
931
+ threadId: import("zod").ZodOptional<import("zod").ZodString>;
932
+ }, "strip", import("zod").ZodTypeAny, {
106
933
  resourceId: string;
107
- threadId?: string;
108
- limit?: number;
109
- memoryConfig?: any;
110
- }): Promise<SearchResponse | ReturnType<typeof handleError>>;
111
- export {};
934
+ metadata?: Record<string, unknown> | undefined;
935
+ threadId?: string | undefined;
936
+ title?: string | undefined;
937
+ }, {
938
+ resourceId: string;
939
+ metadata?: Record<string, unknown> | undefined;
940
+ threadId?: string | undefined;
941
+ title?: string | undefined;
942
+ }>>, {
943
+ id: string;
944
+ createdAt: Date;
945
+ updatedAt: Date;
946
+ resourceId: string;
947
+ metadata?: Record<string, unknown> | undefined;
948
+ title?: string | undefined;
949
+ }, "json">;
950
+ export declare const UPDATE_THREAD_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
951
+ threadId: import("zod").ZodString;
952
+ }, "strip", import("zod").ZodTypeAny, {
953
+ threadId: string;
954
+ }, {
955
+ threadId: string;
956
+ }>, import("zod").ZodObject<{
957
+ agentId: import("zod").ZodString;
958
+ }, "strip", import("zod").ZodTypeAny, {
959
+ agentId: string;
960
+ }, {
961
+ agentId: string;
962
+ }>, import("zod").ZodObject<{
963
+ title: import("zod").ZodOptional<import("zod").ZodString>;
964
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
965
+ resourceId: import("zod").ZodOptional<import("zod").ZodString>;
966
+ }, "strip", import("zod").ZodTypeAny, {
967
+ metadata?: Record<string, unknown> | undefined;
968
+ resourceId?: string | undefined;
969
+ title?: string | undefined;
970
+ }, {
971
+ metadata?: Record<string, unknown> | undefined;
972
+ resourceId?: string | undefined;
973
+ title?: string | undefined;
974
+ }>>, {
975
+ id: string;
976
+ createdAt: Date;
977
+ updatedAt: Date;
978
+ resourceId: string;
979
+ metadata?: Record<string, unknown> | undefined;
980
+ title?: string | undefined;
981
+ }, "json">;
982
+ export declare const DELETE_THREAD_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
983
+ threadId: import("zod").ZodString;
984
+ }, "strip", import("zod").ZodTypeAny, {
985
+ threadId: string;
986
+ }, {
987
+ threadId: string;
988
+ }>, import("zod").ZodObject<{
989
+ agentId: import("zod").ZodString;
990
+ }, "strip", import("zod").ZodTypeAny, {
991
+ agentId: string;
992
+ }, {
993
+ agentId: string;
994
+ }>, undefined>, {
995
+ result: string;
996
+ }, "json">;
997
+ export declare const DELETE_MESSAGES_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
998
+ agentId: import("zod").ZodString;
999
+ }, "strip", import("zod").ZodTypeAny, {
1000
+ agentId: string;
1001
+ }, {
1002
+ agentId: string;
1003
+ }>, import("zod").ZodObject<{
1004
+ messageIds: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodObject<{
1005
+ id: import("zod").ZodString;
1006
+ }, "strip", import("zod").ZodTypeAny, {
1007
+ id: string;
1008
+ }, {
1009
+ id: string;
1010
+ }>, import("zod").ZodArray<import("zod").ZodObject<{
1011
+ id: import("zod").ZodString;
1012
+ }, "strip", import("zod").ZodTypeAny, {
1013
+ id: string;
1014
+ }, {
1015
+ id: string;
1016
+ }>, "many">]>;
1017
+ }, "strip", import("zod").ZodTypeAny, {
1018
+ messageIds: string | string[] | {
1019
+ id: string;
1020
+ } | {
1021
+ id: string;
1022
+ }[];
1023
+ }, {
1024
+ messageIds: string | string[] | {
1025
+ id: string;
1026
+ } | {
1027
+ id: string;
1028
+ }[];
1029
+ }>>, {
1030
+ message: string;
1031
+ success: boolean;
1032
+ }, "json">;
112
1033
  //# sourceMappingURL=memory.d.ts.map