@mastra/server 0.0.0-taofeeq-fix-tool-call-showing-after-message-20250806184630 → 0.0.0-testing-cloud-studios-20260114234039

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 (445) hide show
  1. package/CHANGELOG.md +6110 -0
  2. package/README.md +2 -7
  3. package/dist/chunk-3MN73W4B.cjs +326 -0
  4. package/dist/chunk-3MN73W4B.cjs.map +1 -0
  5. package/dist/chunk-3OUPQHSX.js +314 -0
  6. package/dist/chunk-3OUPQHSX.js.map +1 -0
  7. package/dist/chunk-3PZVR6W3.cjs +1117 -0
  8. package/dist/chunk-3PZVR6W3.cjs.map +1 -0
  9. package/dist/chunk-3REGEJEN.js +250 -0
  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-4EYONQIW.cjs +82 -0
  14. package/dist/chunk-4EYONQIW.cjs.map +1 -0
  15. package/dist/chunk-5NFRDYFN.js +77 -0
  16. package/dist/chunk-5NFRDYFN.js.map +1 -0
  17. package/dist/chunk-5NXQ6QXL.js +116 -0
  18. package/dist/chunk-5NXQ6QXL.js.map +1 -0
  19. package/dist/chunk-5W4RPVTK.cjs +49 -0
  20. package/dist/chunk-5W4RPVTK.cjs.map +1 -0
  21. package/dist/{chunk-7NADHFD2.cjs → chunk-64ITUOXI.cjs} +2 -2
  22. package/dist/chunk-64ITUOXI.cjs.map +1 -0
  23. package/dist/chunk-6HKMJXTF.js +234 -0
  24. package/dist/chunk-6HKMJXTF.js.map +1 -0
  25. package/dist/{chunk-MMROOK5J.js → chunk-6QWQZI4Q.js} +2 -2
  26. package/dist/{chunk-7NADHFD2.cjs.map → chunk-6QWQZI4Q.js.map} +1 -1
  27. package/dist/chunk-AQI6GLTN.cjs +2777 -0
  28. package/dist/chunk-AQI6GLTN.cjs.map +1 -0
  29. package/dist/chunk-AVOFMAUS.cjs +125 -0
  30. package/dist/chunk-AVOFMAUS.cjs.map +1 -0
  31. package/dist/chunk-B35F4QEM.cjs +346 -0
  32. package/dist/chunk-B35F4QEM.cjs.map +1 -0
  33. package/dist/chunk-DUZRZLVR.js +302 -0
  34. package/dist/chunk-DUZRZLVR.js.map +1 -0
  35. package/dist/chunk-DVSCJECS.js +250 -0
  36. package/dist/chunk-DVSCJECS.js.map +1 -0
  37. package/dist/chunk-EUBTCHQC.js +83 -0
  38. package/dist/chunk-EUBTCHQC.js.map +1 -0
  39. package/dist/chunk-FEEM6QFN.js +219 -0
  40. package/dist/chunk-FEEM6QFN.js.map +1 -0
  41. package/dist/chunk-FWSKVWS7.cjs +88 -0
  42. package/dist/chunk-FWSKVWS7.cjs.map +1 -0
  43. package/dist/chunk-G2AMUTU4.js +250 -0
  44. package/dist/chunk-G2AMUTU4.js.map +1 -0
  45. package/dist/chunk-G3KUL3RL.cjs +211 -0
  46. package/dist/chunk-G3KUL3RL.cjs.map +1 -0
  47. package/dist/chunk-GU4EWMZB.cjs +769 -0
  48. package/dist/chunk-GU4EWMZB.cjs.map +1 -0
  49. package/dist/chunk-GWLR6K3H.cjs +152 -0
  50. package/dist/chunk-GWLR6K3H.cjs.map +1 -0
  51. package/dist/chunk-H66LLFDL.js +970 -0
  52. package/dist/chunk-H66LLFDL.js.map +1 -0
  53. package/dist/chunk-HT4LP3BO.js +75 -0
  54. package/dist/chunk-HT4LP3BO.js.map +1 -0
  55. package/dist/chunk-IMPZBQ5U.cjs +33025 -0
  56. package/dist/chunk-IMPZBQ5U.cjs.map +1 -0
  57. package/dist/chunk-IQEVRCM6.cjs +205 -0
  58. package/dist/chunk-IQEVRCM6.cjs.map +1 -0
  59. package/dist/chunk-J6DCK7KG.js +669 -0
  60. package/dist/chunk-J6DCK7KG.js.map +1 -0
  61. package/dist/chunk-JQPDZZLI.js +1018 -0
  62. package/dist/chunk-JQPDZZLI.js.map +1 -0
  63. package/dist/chunk-JXPRNYUC.js +279 -0
  64. package/dist/chunk-JXPRNYUC.js.map +1 -0
  65. package/dist/chunk-K3LMK4KU.js +180 -0
  66. package/dist/chunk-K3LMK4KU.js.map +1 -0
  67. package/dist/chunk-KEW7MXUS.cjs +312 -0
  68. package/dist/chunk-KEW7MXUS.cjs.map +1 -0
  69. package/dist/chunk-KXYDJIKD.cjs +1048 -0
  70. package/dist/chunk-KXYDJIKD.cjs.map +1 -0
  71. package/dist/chunk-L2E5RUVT.cjs +252 -0
  72. package/dist/chunk-L2E5RUVT.cjs.map +1 -0
  73. package/dist/chunk-L7ZFPOGS.js +44 -0
  74. package/dist/chunk-L7ZFPOGS.js.map +1 -0
  75. package/dist/chunk-LF2ZLOFP.js +767 -0
  76. package/dist/chunk-LF2ZLOFP.js.map +1 -0
  77. package/dist/chunk-LJ6YRVDI.cjs +15 -0
  78. package/dist/chunk-LJ6YRVDI.cjs.map +1 -0
  79. package/dist/chunk-LOA7RQYO.js +2774 -0
  80. package/dist/chunk-LOA7RQYO.js.map +1 -0
  81. package/dist/chunk-MCYD5LW7.cjs +90 -0
  82. package/dist/chunk-MCYD5LW7.cjs.map +1 -0
  83. package/dist/chunk-O7I5CWRX.cjs +44 -0
  84. package/dist/{chunk-Q7SFCCGT.cjs.map → chunk-O7I5CWRX.cjs.map} +1 -1
  85. package/dist/chunk-OKURLPIJ.js +32986 -0
  86. package/dist/chunk-OKURLPIJ.js.map +1 -0
  87. package/dist/chunk-ONN5EA7E.js +26 -0
  88. package/dist/chunk-ONN5EA7E.js.map +1 -0
  89. package/dist/chunk-P3H4AZKI.cjs +252 -0
  90. package/dist/chunk-P3H4AZKI.cjs.map +1 -0
  91. package/dist/chunk-PNZQCQY4.cjs +252 -0
  92. package/dist/chunk-PNZQCQY4.cjs.map +1 -0
  93. package/dist/chunk-PR4QN5HX.js +39 -0
  94. package/dist/{chunk-PZ5AY32C.js.map → chunk-PR4QN5HX.js.map} +1 -1
  95. package/dist/chunk-Q4BOUQ2O.js +1075 -0
  96. package/dist/chunk-Q4BOUQ2O.js.map +1 -0
  97. package/dist/chunk-QKXZF7YS.js +148 -0
  98. package/dist/chunk-QKXZF7YS.js.map +1 -0
  99. package/dist/chunk-R25YJP3Y.cjs +269 -0
  100. package/dist/chunk-R25YJP3Y.cjs.map +1 -0
  101. package/dist/chunk-SEP5QUTR.js +196 -0
  102. package/dist/chunk-SEP5QUTR.js.map +1 -0
  103. package/dist/chunk-SUKFO7UM.cjs +29 -0
  104. package/dist/chunk-SUKFO7UM.cjs.map +1 -0
  105. package/dist/chunk-T3ZHTCEI.cjs +928 -0
  106. package/dist/chunk-T3ZHTCEI.cjs.map +1 -0
  107. package/dist/chunk-T4SPG2GP.cjs +82 -0
  108. package/dist/chunk-T4SPG2GP.cjs.map +1 -0
  109. package/dist/chunk-TOGG5Q45.js +328 -0
  110. package/dist/chunk-TOGG5Q45.js.map +1 -0
  111. package/dist/chunk-UKRDDBXY.cjs +225 -0
  112. package/dist/chunk-UKRDDBXY.cjs.map +1 -0
  113. package/dist/chunk-V3RILBZM.cjs +186 -0
  114. package/dist/chunk-V3RILBZM.cjs.map +1 -0
  115. package/dist/chunk-VJNZJAIO.cjs +289 -0
  116. package/dist/chunk-VJNZJAIO.cjs.map +1 -0
  117. package/dist/chunk-VX3VN7FN.cjs +992 -0
  118. package/dist/chunk-VX3VN7FN.cjs.map +1 -0
  119. package/dist/chunk-X5KAQFOV.js +204 -0
  120. package/dist/chunk-X5KAQFOV.js.map +1 -0
  121. package/dist/chunk-XAVPSRSG.cjs +46 -0
  122. package/dist/chunk-XAVPSRSG.cjs.map +1 -0
  123. package/dist/chunk-XOUK3IYU.js +77 -0
  124. package/dist/chunk-XOUK3IYU.js.map +1 -0
  125. package/dist/chunk-XWGAT2DA.js +44 -0
  126. package/dist/chunk-XWGAT2DA.js.map +1 -0
  127. package/dist/chunk-Y3VSCOCE.cjs +683 -0
  128. package/dist/chunk-Y3VSCOCE.cjs.map +1 -0
  129. package/dist/chunk-ZRBZESWG.js +903 -0
  130. package/dist/chunk-ZRBZESWG.js.map +1 -0
  131. package/dist/dist-7NTDEVLP.cjs +928 -0
  132. package/dist/dist-7NTDEVLP.cjs.map +1 -0
  133. package/dist/dist-B5GMANA6.js +1147 -0
  134. package/dist/dist-B5GMANA6.js.map +1 -0
  135. package/dist/dist-EDO7GEGI.js +3 -0
  136. package/dist/dist-EDO7GEGI.js.map +1 -0
  137. package/dist/dist-OF24ZMHH.cjs +764 -0
  138. package/dist/dist-OF24ZMHH.cjs.map +1 -0
  139. package/dist/dist-P6YSNLL3.cjs +1150 -0
  140. package/dist/dist-P6YSNLL3.cjs.map +1 -0
  141. package/dist/dist-SMBO5KVB.js +937 -0
  142. package/dist/dist-SMBO5KVB.js.map +1 -0
  143. package/dist/dist-THPMW5QR.js +761 -0
  144. package/dist/dist-THPMW5QR.js.map +1 -0
  145. package/dist/dist-VZTG56X2.cjs +940 -0
  146. package/dist/dist-VZTG56X2.cjs.map +1 -0
  147. package/dist/dist-ZLC23RVC.cjs +16 -0
  148. package/dist/dist-ZLC23RVC.cjs.map +1 -0
  149. package/dist/dist-ZOZ6MHJH.js +925 -0
  150. package/dist/dist-ZOZ6MHJH.js.map +1 -0
  151. package/dist/docs/README.md +31 -0
  152. package/dist/docs/SKILL.md +32 -0
  153. package/dist/docs/SOURCE_MAP.json +6 -0
  154. package/dist/docs/server/01-custom-adapters.md +377 -0
  155. package/dist/docs/server/02-reference.md +828 -0
  156. package/dist/index.cjs +4 -0
  157. package/dist/index.cjs.map +1 -1
  158. package/dist/index.js +3 -0
  159. package/dist/index.js.map +1 -1
  160. package/dist/server/a2a/store.cjs +25 -0
  161. package/dist/server/a2a/store.cjs.map +1 -0
  162. package/dist/server/a2a/store.d.ts +3 -3
  163. package/dist/server/a2a/store.d.ts.map +1 -1
  164. package/dist/server/a2a/store.js +23 -0
  165. package/dist/server/a2a/store.js.map +1 -0
  166. package/dist/server/a2a/tasks.d.ts +6 -6
  167. package/dist/server/a2a/tasks.d.ts.map +1 -1
  168. package/dist/server/auth/defaults.d.ts +3 -0
  169. package/dist/server/auth/defaults.d.ts.map +1 -0
  170. package/dist/server/auth/helpers.d.ts +14 -0
  171. package/dist/server/auth/helpers.d.ts.map +1 -0
  172. package/dist/server/auth/index.cjs +137 -0
  173. package/dist/server/auth/index.cjs.map +1 -0
  174. package/dist/server/auth/index.d.ts +3 -0
  175. package/dist/server/auth/index.d.ts.map +1 -0
  176. package/dist/server/auth/index.js +127 -0
  177. package/dist/server/auth/index.js.map +1 -0
  178. package/dist/server/handlers/a2a.cjs +19 -11
  179. package/dist/server/handlers/a2a.d.ts +506 -22
  180. package/dist/server/handlers/a2a.d.ts.map +1 -1
  181. package/dist/server/handlers/a2a.js +1 -1
  182. package/dist/server/handlers/agent-builder.cjs +68 -0
  183. package/dist/server/handlers/agent-builder.cjs.map +1 -0
  184. package/dist/server/handlers/agent-builder.d.ts +632 -0
  185. package/dist/server/handlers/agent-builder.d.ts.map +1 -0
  186. package/dist/server/handlers/agent-builder.js +3 -0
  187. package/dist/server/handlers/agent-builder.js.map +1 -0
  188. package/dist/server/handlers/agents.cjs +79 -15
  189. package/dist/server/handlers/agents.d.ts +3349 -71
  190. package/dist/server/handlers/agents.d.ts.map +1 -1
  191. package/dist/server/handlers/agents.js +1 -1
  192. package/dist/server/handlers/error.cjs +6 -2
  193. package/dist/server/handlers/error.d.ts +12 -0
  194. package/dist/server/handlers/error.d.ts.map +1 -1
  195. package/dist/server/handlers/error.js +1 -1
  196. package/dist/server/handlers/logs.cjs +7 -7
  197. package/dist/server/handlers/logs.d.ts +135 -27
  198. package/dist/server/handlers/logs.d.ts.map +1 -1
  199. package/dist/server/handlers/logs.js +1 -1
  200. package/dist/server/handlers/mcp.cjs +40 -0
  201. package/dist/server/handlers/mcp.cjs.map +1 -0
  202. package/dist/server/handlers/mcp.d.ts +110 -0
  203. package/dist/server/handlers/mcp.d.ts.map +1 -0
  204. package/dist/server/handlers/mcp.js +3 -0
  205. package/dist/server/handlers/mcp.js.map +1 -0
  206. package/dist/server/handlers/memory.cjs +67 -31
  207. package/dist/server/handlers/memory.d.ts +1017 -103
  208. package/dist/server/handlers/memory.d.ts.map +1 -1
  209. package/dist/server/handlers/memory.js +1 -1
  210. package/dist/server/handlers/observability.cjs +24 -0
  211. package/dist/server/handlers/observability.cjs.map +1 -0
  212. package/dist/server/handlers/observability.d.ts +153 -0
  213. package/dist/server/handlers/observability.d.ts.map +1 -0
  214. package/dist/server/handlers/observability.js +3 -0
  215. package/dist/server/handlers/observability.js.map +1 -0
  216. package/dist/server/handlers/scores.cjs +13 -13
  217. package/dist/server/handlers/scores.d.ts +112 -40
  218. package/dist/server/handlers/scores.d.ts.map +1 -1
  219. package/dist/server/handlers/scores.js +1 -1
  220. package/dist/server/handlers/stored-agents.cjs +28 -0
  221. package/dist/server/handlers/stored-agents.cjs.map +1 -0
  222. package/dist/server/handlers/stored-agents.d.ts +289 -0
  223. package/dist/server/handlers/stored-agents.d.ts.map +1 -0
  224. package/dist/server/handlers/stored-agents.js +3 -0
  225. package/dist/server/handlers/stored-agents.js.map +1 -0
  226. package/dist/server/handlers/system.cjs +12 -0
  227. package/dist/server/handlers/system.cjs.map +1 -0
  228. package/dist/server/handlers/system.d.ts +7 -0
  229. package/dist/server/handlers/system.d.ts.map +1 -0
  230. package/dist/server/handlers/system.js +3 -0
  231. package/dist/server/handlers/system.js.map +1 -0
  232. package/dist/server/handlers/test-utils.cjs +15 -0
  233. package/dist/server/handlers/test-utils.cjs.map +1 -0
  234. package/dist/server/handlers/test-utils.d.ts +6 -0
  235. package/dist/server/handlers/test-utils.d.ts.map +1 -0
  236. package/dist/server/handlers/test-utils.js +13 -0
  237. package/dist/server/handlers/test-utils.js.map +1 -0
  238. package/dist/server/handlers/tools.cjs +13 -9
  239. package/dist/server/handlers/tools.d.ts +69 -19
  240. package/dist/server/handlers/tools.d.ts.map +1 -1
  241. package/dist/server/handlers/tools.js +1 -1
  242. package/dist/server/handlers/utils.cjs +14 -2
  243. package/dist/server/handlers/utils.d.ts +11 -0
  244. package/dist/server/handlers/utils.d.ts.map +1 -1
  245. package/dist/server/handlers/utils.js +1 -1
  246. package/dist/server/handlers/vector.cjs +31 -7
  247. package/dist/server/handlers/vector.d.ts +93 -9
  248. package/dist/server/handlers/vector.d.ts.map +1 -1
  249. package/dist/server/handlers/vector.js +1 -1
  250. package/dist/server/handlers/voice.cjs +21 -9
  251. package/dist/server/handlers/voice.d.ts +81 -38
  252. package/dist/server/handlers/voice.d.ts.map +1 -1
  253. package/dist/server/handlers/voice.js +1 -1
  254. package/dist/server/handlers/workflows.cjs +63 -31
  255. package/dist/server/handlers/workflows.d.ts +982 -76
  256. package/dist/server/handlers/workflows.d.ts.map +1 -1
  257. package/dist/server/handlers/workflows.js +1 -1
  258. package/dist/server/handlers.cjs +36 -36
  259. package/dist/server/handlers.d.ts +3 -3
  260. package/dist/server/handlers.d.ts.map +1 -1
  261. package/dist/server/handlers.js +12 -12
  262. package/dist/server/http-exception.d.ts +0 -5
  263. package/dist/server/http-exception.d.ts.map +1 -1
  264. package/dist/server/schemas/a2a.d.ts +786 -0
  265. package/dist/server/schemas/a2a.d.ts.map +1 -0
  266. package/dist/server/schemas/agent-builder.d.ts +225 -0
  267. package/dist/server/schemas/agent-builder.d.ts.map +1 -0
  268. package/dist/server/schemas/agents.d.ts +1401 -0
  269. package/dist/server/schemas/agents.d.ts.map +1 -0
  270. package/dist/server/schemas/common.d.ts +179 -0
  271. package/dist/server/schemas/common.d.ts.map +1 -0
  272. package/dist/server/schemas/logs.d.ts +124 -0
  273. package/dist/server/schemas/logs.d.ts.map +1 -0
  274. package/dist/server/schemas/mcp.d.ts +299 -0
  275. package/dist/server/schemas/mcp.d.ts.map +1 -0
  276. package/dist/server/schemas/memory.d.ts +1128 -0
  277. package/dist/server/schemas/memory.d.ts.map +1 -0
  278. package/dist/server/schemas/scores.d.ts +259 -0
  279. package/dist/server/schemas/scores.d.ts.map +1 -0
  280. package/dist/server/schemas/stored-agents.d.ts +792 -0
  281. package/dist/server/schemas/stored-agents.d.ts.map +1 -0
  282. package/dist/server/schemas/system.d.ts +36 -0
  283. package/dist/server/schemas/system.d.ts.map +1 -0
  284. package/dist/server/schemas/vectors.d.ts +107 -0
  285. package/dist/server/schemas/vectors.d.ts.map +1 -0
  286. package/dist/server/schemas/workflows.d.ts +863 -0
  287. package/dist/server/schemas/workflows.d.ts.map +1 -0
  288. package/dist/server/server-adapter/index.cjs +510 -0
  289. package/dist/server/server-adapter/index.cjs.map +1 -0
  290. package/dist/server/server-adapter/index.d.ts +109 -0
  291. package/dist/server/server-adapter/index.d.ts.map +1 -0
  292. package/dist/server/server-adapter/index.js +482 -0
  293. package/dist/server/server-adapter/index.js.map +1 -0
  294. package/dist/server/server-adapter/openapi-utils.d.ts +59 -0
  295. package/dist/server/server-adapter/openapi-utils.d.ts.map +1 -0
  296. package/dist/server/server-adapter/redact.d.ts +26 -0
  297. package/dist/server/server-adapter/redact.d.ts.map +1 -0
  298. package/dist/server/server-adapter/routes/a2a.d.ts +3 -0
  299. package/dist/server/server-adapter/routes/a2a.d.ts.map +1 -0
  300. package/dist/server/server-adapter/routes/agent-builder.d.ts +3 -0
  301. package/dist/server/server-adapter/routes/agent-builder.d.ts.map +1 -0
  302. package/dist/server/server-adapter/routes/agents.d.ts +3 -0
  303. package/dist/server/server-adapter/routes/agents.d.ts.map +1 -0
  304. package/dist/server/server-adapter/routes/index.d.ts +50 -0
  305. package/dist/server/server-adapter/routes/index.d.ts.map +1 -0
  306. package/dist/server/server-adapter/routes/legacy.d.ts +7 -0
  307. package/dist/server/server-adapter/routes/legacy.d.ts.map +1 -0
  308. package/dist/server/server-adapter/routes/logs.d.ts +3 -0
  309. package/dist/server/server-adapter/routes/logs.d.ts.map +1 -0
  310. package/dist/server/server-adapter/routes/mcp.d.ts +9 -0
  311. package/dist/server/server-adapter/routes/mcp.d.ts.map +1 -0
  312. package/dist/server/server-adapter/routes/memory.d.ts +3 -0
  313. package/dist/server/server-adapter/routes/memory.d.ts.map +1 -0
  314. package/dist/server/server-adapter/routes/observability.d.ts +3 -0
  315. package/dist/server/server-adapter/routes/observability.d.ts.map +1 -0
  316. package/dist/server/server-adapter/routes/route-builder.d.ts +111 -0
  317. package/dist/server/server-adapter/routes/route-builder.d.ts.map +1 -0
  318. package/dist/server/server-adapter/routes/scorers.d.ts +3 -0
  319. package/dist/server/server-adapter/routes/scorers.d.ts.map +1 -0
  320. package/dist/server/server-adapter/routes/stored-agents.d.ts +8 -0
  321. package/dist/server/server-adapter/routes/stored-agents.d.ts.map +1 -0
  322. package/dist/server/server-adapter/routes/stream-types.d.ts +10 -0
  323. package/dist/server/server-adapter/routes/stream-types.d.ts.map +1 -0
  324. package/dist/server/server-adapter/routes/system.d.ts +12 -0
  325. package/dist/server/server-adapter/routes/system.d.ts.map +1 -0
  326. package/dist/server/server-adapter/routes/tools.d.ts +3 -0
  327. package/dist/server/server-adapter/routes/tools.d.ts.map +1 -0
  328. package/dist/server/server-adapter/routes/vectors.d.ts +3 -0
  329. package/dist/server/server-adapter/routes/vectors.d.ts.map +1 -0
  330. package/dist/server/server-adapter/routes/workflows.d.ts +3 -0
  331. package/dist/server/server-adapter/routes/workflows.d.ts.map +1 -0
  332. package/dist/server/utils.d.ts +45 -0
  333. package/dist/server/utils.d.ts.map +1 -0
  334. package/dist/token-6GSAFR2W-K2BTU23I-5WBYUIGY.cjs +63 -0
  335. package/dist/token-6GSAFR2W-K2BTU23I-5WBYUIGY.cjs.map +1 -0
  336. package/dist/token-6GSAFR2W-K2BTU23I-NW33N3NU.js +61 -0
  337. package/dist/token-6GSAFR2W-K2BTU23I-NW33N3NU.js.map +1 -0
  338. package/dist/token-6GSAFR2W-KVDFAJ2M-EPLMGMHT.cjs +63 -0
  339. package/dist/token-6GSAFR2W-KVDFAJ2M-EPLMGMHT.cjs.map +1 -0
  340. package/dist/token-6GSAFR2W-KVDFAJ2M-VW443KIA.js +61 -0
  341. package/dist/token-6GSAFR2W-KVDFAJ2M-VW443KIA.js.map +1 -0
  342. package/dist/token-6GSAFR2W-VLY2XUPA-NCSASMWN.js +61 -0
  343. package/dist/token-6GSAFR2W-VLY2XUPA-NCSASMWN.js.map +1 -0
  344. package/dist/token-6GSAFR2W-VLY2XUPA-RKITWXKR.cjs +63 -0
  345. package/dist/token-6GSAFR2W-VLY2XUPA-RKITWXKR.cjs.map +1 -0
  346. package/dist/token-util-NEHG7TUY-DJYRKLRD-6TH3ODCN.cjs +10 -0
  347. package/dist/token-util-NEHG7TUY-DJYRKLRD-6TH3ODCN.cjs.map +1 -0
  348. package/dist/token-util-NEHG7TUY-DJYRKLRD-EACKYD4V.js +8 -0
  349. package/dist/token-util-NEHG7TUY-DJYRKLRD-EACKYD4V.js.map +1 -0
  350. package/dist/token-util-NEHG7TUY-KSXDO2NO-J6DEINGO.cjs +10 -0
  351. package/dist/token-util-NEHG7TUY-KSXDO2NO-J6DEINGO.cjs.map +1 -0
  352. package/dist/token-util-NEHG7TUY-KSXDO2NO-WH6I3PH3.js +8 -0
  353. package/dist/token-util-NEHG7TUY-KSXDO2NO-WH6I3PH3.js.map +1 -0
  354. package/dist/token-util-NEHG7TUY-TIJ3LMSH-ANFISSXX.cjs +10 -0
  355. package/dist/token-util-NEHG7TUY-TIJ3LMSH-ANFISSXX.cjs.map +1 -0
  356. package/dist/token-util-NEHG7TUY-TIJ3LMSH-SGVKOKXF.js +8 -0
  357. package/dist/token-util-NEHG7TUY-TIJ3LMSH-SGVKOKXF.js.map +1 -0
  358. package/package.json +67 -18
  359. package/dist/chunk-2XIJW7SV.cjs +0 -310
  360. package/dist/chunk-2XIJW7SV.cjs.map +0 -1
  361. package/dist/chunk-4CEZIJWJ.cjs +0 -150
  362. package/dist/chunk-4CEZIJWJ.cjs.map +0 -1
  363. package/dist/chunk-4MQU6AJN.js +0 -83
  364. package/dist/chunk-4MQU6AJN.js.map +0 -1
  365. package/dist/chunk-4QSNRCOT.cjs +0 -20
  366. package/dist/chunk-4QSNRCOT.cjs.map +0 -1
  367. package/dist/chunk-4US5W7PH.cjs +0 -120
  368. package/dist/chunk-4US5W7PH.cjs.map +0 -1
  369. package/dist/chunk-7FHF55WA.js +0 -2041
  370. package/dist/chunk-7FHF55WA.js.map +0 -1
  371. package/dist/chunk-BED2O446.cjs +0 -88
  372. package/dist/chunk-BED2O446.cjs.map +0 -1
  373. package/dist/chunk-BUOJL3MN.js +0 -529
  374. package/dist/chunk-BUOJL3MN.js.map +0 -1
  375. package/dist/chunk-CY4TP3FK.js +0 -16
  376. package/dist/chunk-CY4TP3FK.js.map +0 -1
  377. package/dist/chunk-G7NVCO5M.js +0 -123
  378. package/dist/chunk-G7NVCO5M.js.map +0 -1
  379. package/dist/chunk-GASWM5HJ.cjs +0 -514
  380. package/dist/chunk-GASWM5HJ.cjs.map +0 -1
  381. package/dist/chunk-GX25CWC7.cjs +0 -588
  382. package/dist/chunk-GX25CWC7.cjs.map +0 -1
  383. package/dist/chunk-HWHKM67I.js +0 -114
  384. package/dist/chunk-HWHKM67I.js.map +0 -1
  385. package/dist/chunk-ILCWPBYQ.cjs +0 -147
  386. package/dist/chunk-ILCWPBYQ.cjs.map +0 -1
  387. package/dist/chunk-JGVY3KWV.cjs +0 -334
  388. package/dist/chunk-JGVY3KWV.cjs.map +0 -1
  389. package/dist/chunk-LRUH33B4.cjs +0 -2044
  390. package/dist/chunk-LRUH33B4.cjs.map +0 -1
  391. package/dist/chunk-MMROOK5J.js.map +0 -1
  392. package/dist/chunk-NCS2OXX6.cjs +0 -131
  393. package/dist/chunk-NCS2OXX6.cjs.map +0 -1
  394. package/dist/chunk-O4I563YW.cjs +0 -130
  395. package/dist/chunk-O4I563YW.cjs.map +0 -1
  396. package/dist/chunk-OW4FX5TS.js +0 -18
  397. package/dist/chunk-OW4FX5TS.js.map +0 -1
  398. package/dist/chunk-PZ5AY32C.js +0 -9
  399. package/dist/chunk-Q7SFCCGT.cjs +0 -11
  400. package/dist/chunk-RE4RPXT2.cjs +0 -18
  401. package/dist/chunk-RE4RPXT2.cjs.map +0 -1
  402. package/dist/chunk-S37KCGOR.cjs +0 -546
  403. package/dist/chunk-S37KCGOR.cjs.map +0 -1
  404. package/dist/chunk-SQ7KKIH3.js +0 -143
  405. package/dist/chunk-SQ7KKIH3.js.map +0 -1
  406. package/dist/chunk-TRWPUPGD.js +0 -506
  407. package/dist/chunk-TRWPUPGD.js.map +0 -1
  408. package/dist/chunk-TXAQU2XN.js +0 -151
  409. package/dist/chunk-TXAQU2XN.js.map +0 -1
  410. package/dist/chunk-UVOSITKU.js +0 -322
  411. package/dist/chunk-UVOSITKU.js.map +0 -1
  412. package/dist/chunk-VIGPWTDA.cjs +0 -159
  413. package/dist/chunk-VIGPWTDA.cjs.map +0 -1
  414. package/dist/chunk-VOY6MGKA.js +0 -301
  415. package/dist/chunk-VOY6MGKA.js.map +0 -1
  416. package/dist/chunk-Y3J45CVZ.js +0 -144
  417. package/dist/chunk-Y3J45CVZ.js.map +0 -1
  418. package/dist/chunk-YS66MFDY.js +0 -124
  419. package/dist/chunk-YS66MFDY.js.map +0 -1
  420. package/dist/chunk-ZKJZQN24.js +0 -571
  421. package/dist/chunk-ZKJZQN24.js.map +0 -1
  422. package/dist/server/handlers/legacyWorkflows.cjs +0 -48
  423. package/dist/server/handlers/legacyWorkflows.cjs.map +0 -1
  424. package/dist/server/handlers/legacyWorkflows.d.ts +0 -59
  425. package/dist/server/handlers/legacyWorkflows.d.ts.map +0 -1
  426. package/dist/server/handlers/legacyWorkflows.js +0 -3
  427. package/dist/server/handlers/legacyWorkflows.js.map +0 -1
  428. package/dist/server/handlers/network.cjs +0 -24
  429. package/dist/server/handlers/network.cjs.map +0 -1
  430. package/dist/server/handlers/network.d.ts +0 -50
  431. package/dist/server/handlers/network.d.ts.map +0 -1
  432. package/dist/server/handlers/network.js +0 -3
  433. package/dist/server/handlers/network.js.map +0 -1
  434. package/dist/server/handlers/telemetry.cjs +0 -16
  435. package/dist/server/handlers/telemetry.cjs.map +0 -1
  436. package/dist/server/handlers/telemetry.d.ts +0 -32
  437. package/dist/server/handlers/telemetry.d.ts.map +0 -1
  438. package/dist/server/handlers/telemetry.js +0 -3
  439. package/dist/server/handlers/telemetry.js.map +0 -1
  440. package/dist/server/handlers/vNextNetwork.cjs +0 -220
  441. package/dist/server/handlers/vNextNetwork.cjs.map +0 -1
  442. package/dist/server/handlers/vNextNetwork.d.ts +0 -179
  443. package/dist/server/handlers/vNextNetwork.d.ts.map +0 -1
  444. package/dist/server/handlers/vNextNetwork.js +0 -213
  445. package/dist/server/handlers/vNextNetwork.js.map +0 -1
@@ -1,119 +1,1033 @@
1
- import type { StorageGetMessagesArg } from '@mastra/core';
2
- import type { RuntimeContext } from '@mastra/core/di';
3
- import type { MastraMemory } from '@mastra/core/memory';
4
- import type { ThreadSortOptions } 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
- networkId?: string;
12
- runtimeContext?: RuntimeContext;
13
- }
14
- export declare function getMemoryStatusHandler({ mastra, agentId, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'>): Promise<{
1
+ import type { MastraDBMessage } from '@mastra/core/agent';
2
+ export declare function getTextContent(message: MastraDBMessage): string;
3
+ export declare const GET_MEMORY_STATUS_ROUTE: import("../server-adapter").ServerRoute<{
4
+ agentId: string;
5
+ }, {
15
6
  result: boolean;
16
- }>;
17
- export declare function getMemoryConfigHandler({ mastra, agentId, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'>): Promise<{
18
- config: import("@mastra/core").MemoryConfig;
19
- }>;
20
- export declare function getThreadsHandler({ mastra, agentId, resourceId, networkId, runtimeContext, orderBy, sortDirection, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'resourceId' | 'networkId' | 'runtimeContext'> & ThreadSortOptions): Promise<import("@mastra/core").StorageThreadType[]>;
21
- export declare function getThreadsPaginatedHandler({ mastra, agentId, resourceId, networkId, runtimeContext, page, perPage, orderBy, sortDirection, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'resourceId' | 'networkId' | 'runtimeContext'> & {
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, {
22
34
  page: number;
23
35
  perPage: number;
24
- } & ThreadSortOptions): Promise<import("@mastra/core").PaginationInfo & {
25
- threads: import("@mastra/core").StorageThreadType[];
26
- }>;
27
- export declare function getThreadByIdHandler({ mastra, agentId, threadId, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'>): Promise<import("@mastra/core").StorageThreadType>;
28
- export declare function saveMessagesHandler({ mastra, agentId, body, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'> & {
29
- body: {
30
- messages: Parameters<MastraMemory['saveMessages']>[0]['messages'];
31
- };
32
- }): Promise<import("@mastra/core").MastraMessageV1[]>;
33
- export declare function createThreadHandler({ mastra, agentId, body, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'> & {
34
- body?: Omit<Parameters<MastraMemory['createThread']>[0], 'resourceId'> & {
35
- resourceId?: string;
36
- };
37
- }): Promise<import("@mastra/core").StorageThreadType>;
38
- export declare function updateThreadHandler({ mastra, agentId, threadId, body, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'> & {
39
- body?: Parameters<MastraMemory['saveThread']>[0]['thread'];
40
- }): Promise<import("@mastra/core").StorageThreadType>;
41
- export declare function deleteThreadHandler({ mastra, agentId, threadId, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'>): Promise<{
42
- result: string;
43
- }>;
44
- export declare function getMessagesPaginatedHandler({ mastra, threadId, resourceId, selectBy, format, }: StorageGetMessagesArg & Pick<MemoryContext, 'mastra'>): Promise<import("@mastra/core").PaginationInfo & {
45
- messages: import("@mastra/core").MastraMessageV1[] | import("@mastra/core").MastraMessageV2[];
46
- }>;
47
- export declare function getMessagesHandler({ mastra, agentId, threadId, limit, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'> & {
48
- limit?: number;
49
- }): Promise<{
50
- messages: import("ai").CoreMessage[];
51
- uiMessages: import("@mastra/core/agent").UIMessageWithMetadata[];
52
- }>;
53
- /**
54
- * Handler to get the working memory for a thread (optionally resource-scoped).
55
- * @returns workingMemory - the working memory for the thread
56
- * @returns source - thread or resource
57
- */
58
- export declare function getWorkingMemoryHandler({ mastra, agentId, threadId, resourceId, networkId, runtimeContext, memoryConfig, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'> & {
59
- resourceId?: Parameters<MastraMemory['getWorkingMemory']>[0]['resourceId'];
60
- memoryConfig?: Parameters<MastraMemory['getWorkingMemory']>[0]['memoryConfig'];
61
- }): Promise<{
62
- workingMemory: string | null;
63
- source: string;
64
- workingMemoryTemplate: import("@mastra/core").WorkingMemoryTemplate | null;
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;
87
+ page: number;
88
+ perPage: number | false;
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";
65
341
  threadExists: boolean;
66
- }>;
67
- /**
68
- * Handler to update the working memory for a thread (optionally resource-scoped).
69
- * @param threadId - the thread id
70
- * @param body - the body containing the working memory to update and the resource id (optional)
71
- */
72
- export declare function updateWorkingMemoryHandler({ mastra, agentId, threadId, body, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId' | 'networkId' | 'runtimeContext'> & {
73
- body: Omit<Parameters<MastraMemory['updateWorkingMemory']>[0], 'threadId'>;
74
- }): Promise<{
75
- success: boolean;
76
- }>;
77
- 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
+ }>>, {
78
382
  id: string;
79
- role: string;
80
- content: any;
81
383
  createdAt: Date;
82
- threadId?: string;
83
- threadTitle?: string;
84
- score?: number;
85
- context?: {
86
- before?: SearchResult[];
87
- 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;
88
517
  };
89
- }
90
- interface SearchResponse {
91
- results: SearchResult[];
92
- count: number;
93
- query: string;
94
- searchScope?: string;
95
- searchType?: string;
96
- }
97
- /**
98
- * Handler to delete one or more messages.
99
- * @param messageIds - Can be a single ID, array of IDs, or objects with ID property
100
- */
101
- export declare function deleteMessagesHandler({ mastra, agentId, messageIds, networkId, runtimeContext, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'> & {
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, {
102
568
  messageIds: string | string[] | {
103
569
  id: string;
104
570
  } | {
105
571
  id: string;
106
572
  }[];
107
- }): Promise<{
108
- success: boolean;
573
+ }, {
574
+ messageIds: string | string[] | {
575
+ id: string;
576
+ } | {
577
+ id: string;
578
+ }[];
579
+ }>>, {
109
580
  message: string;
110
- }>;
111
- export declare function searchMemoryHandler({ mastra, agentId, searchQuery, resourceId, threadId, limit, networkId, runtimeContext, memoryConfig, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'networkId' | 'runtimeContext'> & {
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;
112
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, {
933
+ resourceId: string;
934
+ metadata?: Record<string, unknown> | undefined;
935
+ threadId?: string | undefined;
936
+ title?: string | undefined;
937
+ }, {
113
938
  resourceId: string;
114
- threadId?: string;
115
- limit?: number;
116
- memoryConfig?: any;
117
- }): Promise<SearchResponse | ReturnType<typeof handleError>>;
118
- export {};
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">;
119
1033
  //# sourceMappingURL=memory.d.ts.map