@mastra/server 0.0.0-toolOptionTypes-20250917085558 → 0.0.0-top-level-fix-20251211111608

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 (448) hide show
  1. package/CHANGELOG.md +1684 -3
  2. package/README.md +2 -2
  3. package/dist/{chunk-PPYGWINI.cjs → chunk-2PLXW4ZX.cjs} +74 -74
  4. package/dist/{chunk-PPYGWINI.cjs.map → chunk-2PLXW4ZX.cjs.map} +1 -1
  5. package/dist/chunk-3SFLFUKY.js +116 -0
  6. package/dist/chunk-3SFLFUKY.js.map +1 -0
  7. package/dist/chunk-3XI22UQR.cjs +148 -0
  8. package/dist/chunk-3XI22UQR.cjs.map +1 -0
  9. package/dist/chunk-4W2SM6CG.js +294 -0
  10. package/dist/chunk-4W2SM6CG.js.map +1 -0
  11. package/dist/chunk-5W4RPVTK.cjs +49 -0
  12. package/dist/chunk-5W4RPVTK.cjs.map +1 -0
  13. package/dist/{chunk-7NADHFD2.cjs → chunk-64ITUOXI.cjs} +2 -2
  14. package/dist/chunk-64ITUOXI.cjs.map +1 -0
  15. package/dist/{chunk-MMROOK5J.js → chunk-6QWQZI4Q.js} +2 -2
  16. package/dist/{chunk-7NADHFD2.cjs.map → chunk-6QWQZI4Q.js.map} +1 -1
  17. package/dist/{chunk-3THIIWWW.cjs → chunk-7O3KPUJ4.cjs} +230 -34
  18. package/dist/chunk-7O3KPUJ4.cjs.map +1 -0
  19. package/dist/chunk-C3UIIRAT.cjs +920 -0
  20. package/dist/chunk-C3UIIRAT.cjs.map +1 -0
  21. package/dist/chunk-CDRVS35Y.js +23226 -0
  22. package/dist/chunk-CDRVS35Y.js.map +1 -0
  23. package/dist/chunk-DRUNNM4C.js +328 -0
  24. package/dist/chunk-DRUNNM4C.js.map +1 -0
  25. package/dist/chunk-EBWTF2DH.cjs +810 -0
  26. package/dist/chunk-EBWTF2DH.cjs.map +1 -0
  27. package/dist/chunk-ER3QM7DD.js +46 -0
  28. package/dist/chunk-ER3QM7DD.js.map +1 -0
  29. package/dist/chunk-FPCGLPLJ.cjs +297 -0
  30. package/dist/chunk-FPCGLPLJ.cjs.map +1 -0
  31. package/dist/chunk-FYY54HZC.js +310 -0
  32. package/dist/chunk-FYY54HZC.js.map +1 -0
  33. package/dist/chunk-GFF2I6UD.js +354 -0
  34. package/dist/chunk-GFF2I6UD.js.map +1 -0
  35. package/dist/chunk-GN2LFMET.cjs +23268 -0
  36. package/dist/chunk-GN2LFMET.cjs.map +1 -0
  37. package/dist/chunk-H2RMXG2Q.cjs +167 -0
  38. package/dist/chunk-H2RMXG2Q.cjs.map +1 -0
  39. package/dist/chunk-HAJOEDNB.js +274 -0
  40. package/dist/chunk-HAJOEDNB.js.map +1 -0
  41. package/dist/chunk-HT4LP3BO.js +75 -0
  42. package/dist/chunk-HT4LP3BO.js.map +1 -0
  43. package/dist/chunk-I6LR6CPC.cjs +125 -0
  44. package/dist/chunk-I6LR6CPC.cjs.map +1 -0
  45. package/dist/chunk-IEYXQTUW.cjs +284 -0
  46. package/dist/chunk-IEYXQTUW.cjs.map +1 -0
  47. package/dist/chunk-K3ELPJS3.js +1063 -0
  48. package/dist/chunk-K3ELPJS3.js.map +1 -0
  49. package/dist/{chunk-5QUKZCEF.js → chunk-KEXR53KI.js} +224 -34
  50. package/dist/chunk-KEXR53KI.js.map +1 -0
  51. package/dist/{chunk-SIGXR3JT.cjs → chunk-LPM6BBAX.cjs} +5 -5
  52. package/dist/{chunk-SIGXR3JT.cjs.map → chunk-LPM6BBAX.cjs.map} +1 -1
  53. package/dist/chunk-MCYD5LW7.cjs +90 -0
  54. package/dist/chunk-MCYD5LW7.cjs.map +1 -0
  55. package/dist/chunk-MQLS6Z7A.js +891 -0
  56. package/dist/chunk-MQLS6Z7A.js.map +1 -0
  57. package/dist/{chunk-EMMSS5I5.cjs → chunk-O7I5CWRX.cjs} +10 -3
  58. package/dist/{chunk-EMMSS5I5.cjs.map → chunk-O7I5CWRX.cjs.map} +1 -1
  59. package/dist/{chunk-G3PMV62Z.js → chunk-PR4QN5HX.js} +10 -4
  60. package/dist/{chunk-G3PMV62Z.js.map → chunk-PR4QN5HX.js.map} +1 -1
  61. package/dist/chunk-PUFCKXFW.cjs +312 -0
  62. package/dist/chunk-PUFCKXFW.cjs.map +1 -0
  63. package/dist/{chunk-NG5IVLEZ.js → chunk-RQK4FQUD.js} +3 -3
  64. package/dist/{chunk-NG5IVLEZ.js.map → chunk-RQK4FQUD.js.map} +1 -1
  65. package/dist/chunk-S3TIWWQL.cjs +322 -0
  66. package/dist/chunk-S3TIWWQL.cjs.map +1 -0
  67. package/dist/chunk-SXVANU23.js +164 -0
  68. package/dist/chunk-SXVANU23.js.map +1 -0
  69. package/dist/chunk-TGIVGCBJ.cjs +211 -0
  70. package/dist/chunk-TGIVGCBJ.cjs.map +1 -0
  71. package/dist/chunk-TYZ6ZISQ.cjs +368 -0
  72. package/dist/chunk-TYZ6ZISQ.cjs.map +1 -0
  73. package/dist/{chunk-CY4TP3FK.js → chunk-UXGQZUYZ.js} +3 -3
  74. package/dist/{chunk-CY4TP3FK.js.map → chunk-UXGQZUYZ.js.map} +1 -1
  75. package/dist/chunk-UY2D2LVC.cjs +205 -0
  76. package/dist/chunk-UY2D2LVC.cjs.map +1 -0
  77. package/dist/chunk-V272B7RM.cjs +255 -0
  78. package/dist/chunk-V272B7RM.cjs.map +1 -0
  79. package/dist/{chunk-RE4RPXT2.cjs → chunk-V5WWQN7P.cjs} +4 -4
  80. package/dist/{chunk-RE4RPXT2.cjs.map → chunk-V5WWQN7P.cjs.map} +1 -1
  81. package/dist/chunk-VIDXWHJQ.js +204 -0
  82. package/dist/chunk-VIDXWHJQ.js.map +1 -0
  83. package/dist/chunk-W36USBM5.js +196 -0
  84. package/dist/chunk-W36USBM5.js.map +1 -0
  85. package/dist/chunk-WBLT2HL3.js +144 -0
  86. package/dist/chunk-WBLT2HL3.js.map +1 -0
  87. package/dist/chunk-WE4USCF3.js +226 -0
  88. package/dist/chunk-WE4USCF3.js.map +1 -0
  89. package/dist/chunk-X43DWDXB.cjs +346 -0
  90. package/dist/chunk-X43DWDXB.cjs.map +1 -0
  91. package/dist/chunk-X4QMPCTP.cjs +259 -0
  92. package/dist/chunk-X4QMPCTP.cjs.map +1 -0
  93. package/dist/chunk-XQPJ63ZD.cjs +48 -0
  94. package/dist/chunk-XQPJ63ZD.cjs.map +1 -0
  95. package/dist/chunk-XW2HXQDO.js +302 -0
  96. package/dist/chunk-XW2HXQDO.js.map +1 -0
  97. package/dist/chunk-XWGAT2DA.js +44 -0
  98. package/dist/chunk-XWGAT2DA.js.map +1 -0
  99. package/dist/chunk-YHNJY33C.js +786 -0
  100. package/dist/chunk-YHNJY33C.js.map +1 -0
  101. package/dist/chunk-YP34EWWK.js +253 -0
  102. package/dist/chunk-YP34EWWK.js.map +1 -0
  103. package/dist/chunk-ZN5R6OZB.cjs +1107 -0
  104. package/dist/chunk-ZN5R6OZB.cjs.map +1 -0
  105. package/dist/{chunk-6GMFZ5LK.js → chunk-ZULZ2752.js} +3 -3
  106. package/dist/{chunk-6GMFZ5LK.js.map → chunk-ZULZ2752.js.map} +1 -1
  107. package/dist/{chunk-IGFMAZZ5.cjs → dist-4MVGNSRL.cjs} +20 -20
  108. package/dist/dist-4MVGNSRL.cjs.map +1 -0
  109. package/dist/{chunk-TVSIG4JE.cjs → dist-FZYCV3VB.cjs} +26 -26
  110. package/dist/dist-FZYCV3VB.cjs.map +1 -0
  111. package/dist/{chunk-5DP5XZH6.cjs → dist-G2BYZJOC.cjs} +28 -28
  112. package/dist/dist-G2BYZJOC.cjs.map +1 -0
  113. package/dist/dist-P4MXBQ3U.cjs +16 -0
  114. package/dist/{dist-3A5DXB37.cjs.map → dist-P4MXBQ3U.cjs.map} +1 -1
  115. package/dist/{chunk-FQNT7PI4.js → dist-PQZUVLPC.js} +3 -3
  116. package/dist/dist-PQZUVLPC.js.map +1 -0
  117. package/dist/{chunk-P7CIEIJ3.js → dist-R7WYX6LC.js} +3 -3
  118. package/dist/dist-R7WYX6LC.js.map +1 -0
  119. package/dist/{chunk-HJQKWRKQ.cjs → dist-RFMYFILX.cjs} +30 -30
  120. package/dist/dist-RFMYFILX.cjs.map +1 -0
  121. package/dist/{chunk-LYPU75T6.js → dist-X7XR3M3Z.js} +3 -3
  122. package/dist/dist-X7XR3M3Z.js.map +1 -0
  123. package/dist/{chunk-66YYHFGF.js → dist-XVBSOGFK.js} +3 -3
  124. package/dist/dist-XVBSOGFK.js.map +1 -0
  125. package/dist/dist-YREX2TJT.js +3 -0
  126. package/dist/{dist-26HWEQY6.js.map → dist-YREX2TJT.js.map} +1 -1
  127. package/dist/server/auth/defaults.d.ts +3 -0
  128. package/dist/server/auth/defaults.d.ts.map +1 -0
  129. package/dist/server/auth/helpers.d.ts +14 -0
  130. package/dist/server/auth/helpers.d.ts.map +1 -0
  131. package/dist/server/auth/index.cjs +137 -0
  132. package/dist/server/auth/index.cjs.map +1 -0
  133. package/dist/server/auth/index.d.ts +3 -0
  134. package/dist/server/auth/index.d.ts.map +1 -0
  135. package/dist/server/auth/index.js +127 -0
  136. package/dist/server/auth/index.js.map +1 -0
  137. package/dist/server/handlers/a2a.cjs +15 -7
  138. package/dist/server/handlers/a2a.d.ts +492 -10
  139. package/dist/server/handlers/a2a.d.ts.map +1 -1
  140. package/dist/server/handlers/a2a.js +1 -1
  141. package/dist/server/handlers/agent-builder.cjs +43 -31
  142. package/dist/server/handlers/agent-builder.d.ts +599 -77
  143. package/dist/server/handlers/agent-builder.d.ts.map +1 -1
  144. package/dist/server/handlers/agent-builder.js +1 -1
  145. package/dist/server/handlers/agents.cjs +61 -29
  146. package/dist/server/handlers/agents.d.ts +3329 -129
  147. package/dist/server/handlers/agents.d.ts.map +1 -1
  148. package/dist/server/handlers/agents.js +1 -1
  149. package/dist/server/handlers/error.cjs +2 -2
  150. package/dist/server/handlers/error.js +1 -1
  151. package/dist/server/handlers/logs.cjs +7 -7
  152. package/dist/server/handlers/logs.d.ts +135 -27
  153. package/dist/server/handlers/logs.d.ts.map +1 -1
  154. package/dist/server/handlers/logs.js +1 -1
  155. package/dist/server/handlers/mcp.cjs +40 -0
  156. package/dist/server/handlers/mcp.cjs.map +1 -0
  157. package/dist/server/handlers/mcp.d.ts +110 -0
  158. package/dist/server/handlers/mcp.d.ts.map +1 -0
  159. package/dist/server/handlers/mcp.js +3 -0
  160. package/dist/server/handlers/mcp.js.map +1 -0
  161. package/dist/server/handlers/memory.cjs +63 -31
  162. package/dist/server/handlers/memory.d.ts +934 -103
  163. package/dist/server/handlers/memory.d.ts.map +1 -1
  164. package/dist/server/handlers/memory.js +1 -1
  165. package/dist/server/handlers/observability.cjs +29 -5
  166. package/dist/server/handlers/observability.d.ts +142 -9
  167. package/dist/server/handlers/observability.d.ts.map +1 -1
  168. package/dist/server/handlers/observability.js +1 -1
  169. package/dist/server/handlers/scores.cjs +13 -13
  170. package/dist/server/handlers/scores.d.ts +112 -40
  171. package/dist/server/handlers/scores.d.ts.map +1 -1
  172. package/dist/server/handlers/scores.js +1 -1
  173. package/dist/server/handlers/stored-agents.cjs +28 -0
  174. package/dist/server/handlers/stored-agents.cjs.map +1 -0
  175. package/dist/server/handlers/stored-agents.d.ts +289 -0
  176. package/dist/server/handlers/stored-agents.d.ts.map +1 -0
  177. package/dist/server/handlers/stored-agents.js +3 -0
  178. package/dist/server/handlers/stored-agents.js.map +1 -0
  179. package/dist/server/handlers/test-utils.cjs +15 -0
  180. package/dist/server/handlers/test-utils.cjs.map +1 -0
  181. package/dist/server/handlers/test-utils.d.ts +6 -0
  182. package/dist/server/handlers/test-utils.d.ts.map +1 -0
  183. package/dist/server/handlers/test-utils.js +13 -0
  184. package/dist/server/handlers/test-utils.js.map +1 -0
  185. package/dist/server/handlers/tools.cjs +11 -11
  186. package/dist/server/handlers/tools.d.ts +69 -23
  187. package/dist/server/handlers/tools.d.ts.map +1 -1
  188. package/dist/server/handlers/tools.js +1 -1
  189. package/dist/server/handlers/utils.cjs +11 -3
  190. package/dist/server/handlers/utils.d.ts +5 -0
  191. package/dist/server/handlers/utils.d.ts.map +1 -1
  192. package/dist/server/handlers/utils.js +1 -1
  193. package/dist/server/handlers/vector.cjs +31 -7
  194. package/dist/server/handlers/vector.d.ts +93 -9
  195. package/dist/server/handlers/vector.d.ts.map +1 -1
  196. package/dist/server/handlers/vector.js +1 -1
  197. package/dist/server/handlers/voice.cjs +21 -9
  198. package/dist/server/handlers/voice.d.ts +81 -40
  199. package/dist/server/handlers/voice.d.ts.map +1 -1
  200. package/dist/server/handlers/voice.js +1 -1
  201. package/dist/server/handlers/workflows.cjs +75 -31
  202. package/dist/server/handlers/workflows.d.ts +925 -60
  203. package/dist/server/handlers/workflows.d.ts.map +1 -1
  204. package/dist/server/handlers/workflows.js +1 -1
  205. package/dist/server/handlers.cjs +26 -36
  206. package/dist/server/handlers.d.ts +1 -3
  207. package/dist/server/handlers.d.ts.map +1 -1
  208. package/dist/server/handlers.js +12 -14
  209. package/dist/server/http-exception.d.ts +0 -5
  210. package/dist/server/http-exception.d.ts.map +1 -1
  211. package/dist/server/schemas/a2a.d.ts +786 -0
  212. package/dist/server/schemas/a2a.d.ts.map +1 -0
  213. package/dist/server/schemas/agent-builder.d.ts +204 -0
  214. package/dist/server/schemas/agent-builder.d.ts.map +1 -0
  215. package/dist/server/schemas/agents.d.ts +1375 -0
  216. package/dist/server/schemas/agents.d.ts.map +1 -0
  217. package/dist/server/schemas/common.d.ts +179 -0
  218. package/dist/server/schemas/common.d.ts.map +1 -0
  219. package/dist/server/schemas/logs.d.ts +124 -0
  220. package/dist/server/schemas/logs.d.ts.map +1 -0
  221. package/dist/server/schemas/mcp.d.ts +299 -0
  222. package/dist/server/schemas/mcp.d.ts.map +1 -0
  223. package/dist/server/schemas/memory.d.ts +998 -0
  224. package/dist/server/schemas/memory.d.ts.map +1 -0
  225. package/dist/server/schemas/observability.d.ts +402 -0
  226. package/dist/server/schemas/observability.d.ts.map +1 -0
  227. package/dist/server/schemas/scores.d.ts +259 -0
  228. package/dist/server/schemas/scores.d.ts.map +1 -0
  229. package/dist/server/schemas/stored-agents.d.ts +792 -0
  230. package/dist/server/schemas/stored-agents.d.ts.map +1 -0
  231. package/dist/server/schemas/vectors.d.ts +107 -0
  232. package/dist/server/schemas/vectors.d.ts.map +1 -0
  233. package/dist/server/schemas/workflows.d.ts +608 -0
  234. package/dist/server/schemas/workflows.d.ts.map +1 -0
  235. package/dist/server/server-adapter/index.cjs +481 -0
  236. package/dist/server/server-adapter/index.cjs.map +1 -0
  237. package/dist/server/server-adapter/index.d.ts +91 -0
  238. package/dist/server/server-adapter/index.d.ts.map +1 -0
  239. package/dist/server/server-adapter/index.js +466 -0
  240. package/dist/server/server-adapter/index.js.map +1 -0
  241. package/dist/server/server-adapter/openapi-utils.d.ts +59 -0
  242. package/dist/server/server-adapter/openapi-utils.d.ts.map +1 -0
  243. package/dist/server/server-adapter/redact.d.ts +26 -0
  244. package/dist/server/server-adapter/redact.d.ts.map +1 -0
  245. package/dist/server/server-adapter/routes/a2a.d.ts +3 -0
  246. package/dist/server/server-adapter/routes/a2a.d.ts.map +1 -0
  247. package/dist/server/server-adapter/routes/agent-builder.d.ts +3 -0
  248. package/dist/server/server-adapter/routes/agent-builder.d.ts.map +1 -0
  249. package/dist/server/server-adapter/routes/agents.d.ts +3 -0
  250. package/dist/server/server-adapter/routes/agents.d.ts.map +1 -0
  251. package/dist/server/server-adapter/routes/index.d.ts +50 -0
  252. package/dist/server/server-adapter/routes/index.d.ts.map +1 -0
  253. package/dist/server/server-adapter/routes/legacy.d.ts +7 -0
  254. package/dist/server/server-adapter/routes/legacy.d.ts.map +1 -0
  255. package/dist/server/server-adapter/routes/logs.d.ts +3 -0
  256. package/dist/server/server-adapter/routes/logs.d.ts.map +1 -0
  257. package/dist/server/server-adapter/routes/mcp.d.ts +9 -0
  258. package/dist/server/server-adapter/routes/mcp.d.ts.map +1 -0
  259. package/dist/server/server-adapter/routes/memory.d.ts +3 -0
  260. package/dist/server/server-adapter/routes/memory.d.ts.map +1 -0
  261. package/dist/server/server-adapter/routes/observability.d.ts +3 -0
  262. package/dist/server/server-adapter/routes/observability.d.ts.map +1 -0
  263. package/dist/server/server-adapter/routes/route-builder.d.ts +52 -0
  264. package/dist/server/server-adapter/routes/route-builder.d.ts.map +1 -0
  265. package/dist/server/server-adapter/routes/scorers.d.ts +3 -0
  266. package/dist/server/server-adapter/routes/scorers.d.ts.map +1 -0
  267. package/dist/server/server-adapter/routes/stored-agents.d.ts +8 -0
  268. package/dist/server/server-adapter/routes/stored-agents.d.ts.map +1 -0
  269. package/dist/server/server-adapter/routes/stream-types.d.ts +10 -0
  270. package/dist/server/server-adapter/routes/stream-types.d.ts.map +1 -0
  271. package/dist/server/server-adapter/routes/tools.d.ts +3 -0
  272. package/dist/server/server-adapter/routes/tools.d.ts.map +1 -0
  273. package/dist/server/server-adapter/routes/vectors.d.ts +3 -0
  274. package/dist/server/server-adapter/routes/vectors.d.ts.map +1 -0
  275. package/dist/server/server-adapter/routes/workflows.d.ts +3 -0
  276. package/dist/server/server-adapter/routes/workflows.d.ts.map +1 -0
  277. package/dist/server/utils.d.ts +5 -2
  278. package/dist/server/utils.d.ts.map +1 -1
  279. package/dist/token-GVZ7HRD7.js +62 -0
  280. package/dist/token-GVZ7HRD7.js.map +1 -0
  281. package/dist/token-JGA3ZWAN.js +61 -0
  282. package/dist/token-JGA3ZWAN.js.map +1 -0
  283. package/dist/token-VFONFWVS.cjs +64 -0
  284. package/dist/token-VFONFWVS.cjs.map +1 -0
  285. package/dist/token-ZOD6YIQ3.cjs +63 -0
  286. package/dist/token-ZOD6YIQ3.cjs.map +1 -0
  287. package/dist/token-util-7R2ZFIXO.js +7 -0
  288. package/dist/token-util-7R2ZFIXO.js.map +1 -0
  289. package/dist/token-util-BLJZJDBZ.cjs +9 -0
  290. package/dist/token-util-BLJZJDBZ.cjs.map +1 -0
  291. package/dist/token-util-VGZUWSNR.cjs +9 -0
  292. package/dist/token-util-VGZUWSNR.cjs.map +1 -0
  293. package/dist/token-util-VKTPZLSE.js +7 -0
  294. package/dist/token-util-VKTPZLSE.js.map +1 -0
  295. package/package.json +39 -19
  296. package/dist/chunk-3THIIWWW.cjs.map +0 -1
  297. package/dist/chunk-4QCXUEAT.js +0 -25
  298. package/dist/chunk-4QCXUEAT.js.map +0 -1
  299. package/dist/chunk-4RRMWXQ2.js +0 -3522
  300. package/dist/chunk-4RRMWXQ2.js.map +0 -1
  301. package/dist/chunk-5DP5XZH6.cjs.map +0 -1
  302. package/dist/chunk-5QUKZCEF.js.map +0 -1
  303. package/dist/chunk-5VTTUNVK.cjs +0 -540
  304. package/dist/chunk-5VTTUNVK.cjs.map +0 -1
  305. package/dist/chunk-66YYHFGF.js.map +0 -1
  306. package/dist/chunk-6LUKYSWE.cjs +0 -610
  307. package/dist/chunk-6LUKYSWE.cjs.map +0 -1
  308. package/dist/chunk-743UIDHI.cjs +0 -2013
  309. package/dist/chunk-743UIDHI.cjs.map +0 -1
  310. package/dist/chunk-7QEJ5QG5.js +0 -151
  311. package/dist/chunk-7QEJ5QG5.js.map +0 -1
  312. package/dist/chunk-A3AL7EWJ.js +0 -83
  313. package/dist/chunk-A3AL7EWJ.js.map +0 -1
  314. package/dist/chunk-AK2FXLLB.cjs +0 -849
  315. package/dist/chunk-AK2FXLLB.cjs.map +0 -1
  316. package/dist/chunk-B2V3PUB7.js +0 -591
  317. package/dist/chunk-B2V3PUB7.js.map +0 -1
  318. package/dist/chunk-EMNGA4R4.js +0 -845
  319. package/dist/chunk-EMNGA4R4.js.map +0 -1
  320. package/dist/chunk-FALVL2VV.cjs +0 -3525
  321. package/dist/chunk-FALVL2VV.cjs.map +0 -1
  322. package/dist/chunk-FQNT7PI4.js.map +0 -1
  323. package/dist/chunk-G4PUALCE.cjs +0 -28
  324. package/dist/chunk-G4PUALCE.cjs.map +0 -1
  325. package/dist/chunk-GUI3CROV.cjs +0 -159
  326. package/dist/chunk-GUI3CROV.cjs.map +0 -1
  327. package/dist/chunk-HJQKWRKQ.cjs.map +0 -1
  328. package/dist/chunk-HVBBFCDH.cjs +0 -2321
  329. package/dist/chunk-HVBBFCDH.cjs.map +0 -1
  330. package/dist/chunk-HZJRQ5L3.cjs +0 -1411
  331. package/dist/chunk-HZJRQ5L3.cjs.map +0 -1
  332. package/dist/chunk-IGFMAZZ5.cjs.map +0 -1
  333. package/dist/chunk-IOQGI4ML.js +0 -931
  334. package/dist/chunk-IOQGI4ML.js.map +0 -1
  335. package/dist/chunk-IQ4NTMIJ.cjs +0 -15753
  336. package/dist/chunk-IQ4NTMIJ.cjs.map +0 -1
  337. package/dist/chunk-IY34NOLA.cjs +0 -150
  338. package/dist/chunk-IY34NOLA.cjs.map +0 -1
  339. package/dist/chunk-J7BPKKOG.cjs +0 -163
  340. package/dist/chunk-J7BPKKOG.cjs.map +0 -1
  341. package/dist/chunk-JRDEOHAJ.js +0 -122
  342. package/dist/chunk-JRDEOHAJ.js.map +0 -1
  343. package/dist/chunk-KNGXRN26.cjs +0 -335
  344. package/dist/chunk-KNGXRN26.cjs.map +0 -1
  345. package/dist/chunk-KV6VHX4V.js +0 -160
  346. package/dist/chunk-KV6VHX4V.js.map +0 -1
  347. package/dist/chunk-L265APUD.cjs +0 -69
  348. package/dist/chunk-L265APUD.cjs.map +0 -1
  349. package/dist/chunk-LYPU75T6.js.map +0 -1
  350. package/dist/chunk-MMROOK5J.js.map +0 -1
  351. package/dist/chunk-N7F33WAD.js +0 -2290
  352. package/dist/chunk-N7F33WAD.js.map +0 -1
  353. package/dist/chunk-NLWACBE7.cjs +0 -128
  354. package/dist/chunk-NLWACBE7.cjs.map +0 -1
  355. package/dist/chunk-OGW6HHVI.js +0 -1408
  356. package/dist/chunk-OGW6HHVI.js.map +0 -1
  357. package/dist/chunk-OZLRIVC4.cjs +0 -588
  358. package/dist/chunk-OZLRIVC4.cjs.map +0 -1
  359. package/dist/chunk-P7CIEIJ3.js.map +0 -1
  360. package/dist/chunk-P7RBMCBE.cjs +0 -934
  361. package/dist/chunk-P7RBMCBE.cjs.map +0 -1
  362. package/dist/chunk-PWTXZZTR.cjs +0 -165
  363. package/dist/chunk-PWTXZZTR.cjs.map +0 -1
  364. package/dist/chunk-R7NOGUZG.js +0 -65
  365. package/dist/chunk-R7NOGUZG.js.map +0 -1
  366. package/dist/chunk-RCHEPTZZ.js +0 -2006
  367. package/dist/chunk-RCHEPTZZ.js.map +0 -1
  368. package/dist/chunk-SPLSYTYW.cjs +0 -88
  369. package/dist/chunk-SPLSYTYW.cjs.map +0 -1
  370. package/dist/chunk-SQY4T6EJ.js +0 -571
  371. package/dist/chunk-SQY4T6EJ.js.map +0 -1
  372. package/dist/chunk-SYRRSBGL.js +0 -156
  373. package/dist/chunk-SYRRSBGL.js.map +0 -1
  374. package/dist/chunk-T3TIA3O6.cjs +0 -131
  375. package/dist/chunk-T3TIA3O6.cjs.map +0 -1
  376. package/dist/chunk-TTHEEIZ3.js +0 -323
  377. package/dist/chunk-TTHEEIZ3.js.map +0 -1
  378. package/dist/chunk-TVSIG4JE.cjs.map +0 -1
  379. package/dist/chunk-U46VIX2V.js +0 -144
  380. package/dist/chunk-U46VIX2V.js.map +0 -1
  381. package/dist/chunk-WHN4VX55.js +0 -123
  382. package/dist/chunk-WHN4VX55.js.map +0 -1
  383. package/dist/chunk-YRMJCAH4.js +0 -15717
  384. package/dist/chunk-YRMJCAH4.js.map +0 -1
  385. package/dist/chunk-ZSAOHEZK.js +0 -524
  386. package/dist/chunk-ZSAOHEZK.js.map +0 -1
  387. package/dist/dist-26HWEQY6.js +0 -3
  388. package/dist/dist-3A5DXB37.cjs +0 -20
  389. package/dist/dist-3SJKQJGY.cjs +0 -16
  390. package/dist/dist-3SJKQJGY.cjs.map +0 -1
  391. package/dist/dist-4ZQSPE5K.js +0 -3
  392. package/dist/dist-4ZQSPE5K.js.map +0 -1
  393. package/dist/dist-5W5QNRTD.js +0 -3
  394. package/dist/dist-5W5QNRTD.js.map +0 -1
  395. package/dist/dist-653SRMPL.js +0 -3
  396. package/dist/dist-653SRMPL.js.map +0 -1
  397. package/dist/dist-6U6EFC5C.cjs +0 -16
  398. package/dist/dist-6U6EFC5C.cjs.map +0 -1
  399. package/dist/dist-7IHNNYMF.cjs +0 -16
  400. package/dist/dist-7IHNNYMF.cjs.map +0 -1
  401. package/dist/dist-B5IPRF6W.js +0 -3
  402. package/dist/dist-B5IPRF6W.js.map +0 -1
  403. package/dist/dist-EOMYFT4Y.cjs +0 -16
  404. package/dist/dist-EOMYFT4Y.cjs.map +0 -1
  405. package/dist/dist-EZZMMMNT.cjs +0 -16
  406. package/dist/dist-EZZMMMNT.cjs.map +0 -1
  407. package/dist/dist-F2ET4MNO.cjs +0 -16
  408. package/dist/dist-F2ET4MNO.cjs.map +0 -1
  409. package/dist/dist-H64VX6DE.js +0 -3
  410. package/dist/dist-H64VX6DE.js.map +0 -1
  411. package/dist/dist-HY7RMLJQ.cjs +0 -16
  412. package/dist/dist-HY7RMLJQ.cjs.map +0 -1
  413. package/dist/dist-M6S4P3FJ.js +0 -3
  414. package/dist/dist-M6S4P3FJ.js.map +0 -1
  415. package/dist/dist-NR7QSCQT.js +0 -3
  416. package/dist/dist-NR7QSCQT.js.map +0 -1
  417. package/dist/dist-QLFMCMCX.js +0 -3
  418. package/dist/dist-QLFMCMCX.js.map +0 -1
  419. package/dist/dist-UY46BFRP.js +0 -3
  420. package/dist/dist-UY46BFRP.js.map +0 -1
  421. package/dist/dist-WCQDRTIV.cjs +0 -16
  422. package/dist/dist-WCQDRTIV.cjs.map +0 -1
  423. package/dist/dist-WKYB3LTJ.cjs +0 -16
  424. package/dist/dist-WKYB3LTJ.cjs.map +0 -1
  425. package/dist/server/handlers/legacyWorkflows.cjs +0 -48
  426. package/dist/server/handlers/legacyWorkflows.cjs.map +0 -1
  427. package/dist/server/handlers/legacyWorkflows.d.ts +0 -59
  428. package/dist/server/handlers/legacyWorkflows.d.ts.map +0 -1
  429. package/dist/server/handlers/legacyWorkflows.js +0 -3
  430. package/dist/server/handlers/legacyWorkflows.js.map +0 -1
  431. package/dist/server/handlers/network.cjs +0 -24
  432. package/dist/server/handlers/network.cjs.map +0 -1
  433. package/dist/server/handlers/network.d.ts +0 -50
  434. package/dist/server/handlers/network.d.ts.map +0 -1
  435. package/dist/server/handlers/network.js +0 -3
  436. package/dist/server/handlers/network.js.map +0 -1
  437. package/dist/server/handlers/telemetry.cjs +0 -20
  438. package/dist/server/handlers/telemetry.cjs.map +0 -1
  439. package/dist/server/handlers/telemetry.d.ts +0 -33
  440. package/dist/server/handlers/telemetry.d.ts.map +0 -1
  441. package/dist/server/handlers/telemetry.js +0 -3
  442. package/dist/server/handlers/telemetry.js.map +0 -1
  443. package/dist/server/handlers/vNextNetwork.cjs +0 -220
  444. package/dist/server/handlers/vNextNetwork.cjs.map +0 -1
  445. package/dist/server/handlers/vNextNetwork.d.ts +0 -179
  446. package/dist/server/handlers/vNextNetwork.d.ts.map +0 -1
  447. package/dist/server/handlers/vNextNetwork.js +0 -213
  448. package/dist/server/handlers/vNextNetwork.js.map +0 -1
@@ -1,87 +1,609 @@
1
- import type { WorkflowInfo } from '@mastra/core/workflows';
2
- import type { Context } from '../types.js';
3
- import * as workflows from './workflows.js';
4
- interface AgentBuilderContext extends Context {
5
- actionId?: string;
6
- }
7
- export declare const getAgentBuilderActionsHandler: (builderArgs: AgentBuilderContext) => Promise<Record<string, WorkflowInfo>>;
8
- export declare const getAgentBuilderActionByIdHandler: (builderArgs: workflows.WorkflowContext & AgentBuilderContext) => Promise<WorkflowInfo>;
9
- export declare const getAgentBuilderActionRunByIdHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & AgentBuilderContext) => Promise<Promise<import("@mastra/core").WorkflowRun | null>>;
10
- export declare const getAgentBuilderActionRunExecutionResultHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & AgentBuilderContext) => Promise<{
11
- status: import("@mastra/core").WorkflowRunStatus;
1
+ export declare const LIST_AGENT_BUILDER_ACTIONS_ROUTE: import("../server-adapter").ServerRoute<{}, Record<string, {
12
2
  steps: Record<string, {
13
- status: import("@mastra/core").WorkflowRunStatus;
14
- output?: Record<string, any>;
15
- payload?: Record<string, any>;
16
- resumePayload?: Record<string, any>;
17
- error?: string | Error;
18
- startedAt: number;
19
- endedAt: number;
20
- suspendedAt?: number;
21
- resumedAt?: number;
3
+ id: string;
4
+ description?: string | undefined;
22
5
  }>;
23
- result?: Record<string, any>;
24
- payload?: Record<string, any>;
25
- error?: string | Error;
26
- }>;
27
- export declare const createAgentBuilderActionRunHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & AgentBuilderContext) => Promise<{
28
- runId: string;
29
- }>;
30
- export declare const startAsyncAgentBuilderActionHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & {
6
+ allSteps: Record<string, {
7
+ id: string;
8
+ description?: string | undefined;
9
+ }>;
10
+ stepGraph: {
11
+ type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
12
+ }[];
13
+ options?: {} | undefined;
14
+ name?: string | undefined;
15
+ description?: string | undefined;
16
+ inputSchema?: string | undefined;
17
+ outputSchema?: string | undefined;
18
+ isProcessorWorkflow?: boolean | undefined;
19
+ }>, "json">;
20
+ export declare const GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE: import("../server-adapter").ServerRoute<{
21
+ actionId: string;
22
+ }, {
23
+ steps: Record<string, {
24
+ id: string;
25
+ description?: string | undefined;
26
+ }>;
27
+ allSteps: Record<string, {
28
+ id: string;
29
+ description?: string | undefined;
30
+ }>;
31
+ stepGraph: {
32
+ type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
33
+ }[];
34
+ options?: {} | undefined;
35
+ name?: string | undefined;
36
+ description?: string | undefined;
37
+ inputSchema?: string | undefined;
38
+ outputSchema?: string | undefined;
39
+ isProcessorWorkflow?: boolean | undefined;
40
+ }, "json">;
41
+ export declare const LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
42
+ actionId: import("zod").ZodString;
43
+ }, "strip", import("zod").ZodTypeAny, {
44
+ actionId: string;
45
+ }, {
46
+ actionId: string;
47
+ }>, import("zod").ZodObject<{
48
+ page: import("zod").ZodOptional<import("zod").ZodNumber>;
49
+ perPage: import("zod").ZodOptional<import("zod").ZodNumber>;
50
+ offset: import("zod").ZodOptional<import("zod").ZodNumber>;
51
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
52
+ } & {
53
+ fromDate: import("zod").ZodOptional<import("zod").ZodDate>;
54
+ toDate: import("zod").ZodOptional<import("zod").ZodDate>;
55
+ resourceId: import("zod").ZodOptional<import("zod").ZodString>;
56
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["running", "waiting", "suspended", "success", "failed", "canceled", "pending", "bailed", "tripwire"]>>;
57
+ }, "strip", import("zod").ZodTypeAny, {
58
+ status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | undefined;
59
+ page?: number | undefined;
60
+ perPage?: number | undefined;
61
+ offset?: number | undefined;
62
+ limit?: number | undefined;
63
+ resourceId?: string | undefined;
64
+ fromDate?: Date | undefined;
65
+ toDate?: Date | undefined;
66
+ }, {
67
+ status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | undefined;
68
+ page?: number | undefined;
69
+ perPage?: number | undefined;
70
+ offset?: number | undefined;
71
+ limit?: number | undefined;
72
+ resourceId?: string | undefined;
73
+ fromDate?: Date | undefined;
74
+ toDate?: Date | undefined;
75
+ }>, undefined>, {
76
+ total: number;
77
+ runs: {
78
+ runId: string;
79
+ workflowName: string;
80
+ snapshot: string | {};
81
+ createdAt: Date;
82
+ updatedAt: Date;
83
+ resourceId?: string | undefined;
84
+ }[];
85
+ }, "json">;
86
+ export declare const GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE: import("../server-adapter").ServerRoute<{
87
+ runId: string;
88
+ actionId: string;
89
+ }, {
90
+ runId: string;
91
+ workflowName: string;
92
+ snapshot: string | {};
93
+ createdAt: Date;
94
+ updatedAt: Date;
95
+ resourceId?: string | undefined;
96
+ }, "json">;
97
+ export declare const GET_AGENT_BUILDER_ACTION_RUN_EXECUTION_RESULT_ROUTE: import("../server-adapter").ServerRoute<{
98
+ runId: string;
99
+ actionId: string;
100
+ }, {
101
+ status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire";
102
+ error?: unknown;
103
+ result?: unknown;
104
+ }, "json">;
105
+ export declare const CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
106
+ actionId: import("zod").ZodString;
107
+ }, "strip", import("zod").ZodTypeAny, {
108
+ actionId: string;
109
+ }, {
110
+ actionId: string;
111
+ }>, import("zod").ZodObject<{
112
+ runId: import("zod").ZodOptional<import("zod").ZodString>;
113
+ }, "strip", import("zod").ZodTypeAny, {
114
+ runId?: string | undefined;
115
+ }, {
116
+ runId?: string | undefined;
117
+ }>, undefined>, {
118
+ runId: string;
119
+ }, "json">;
120
+ export declare const STREAM_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
121
+ actionId: import("zod").ZodString;
122
+ }, "strip", import("zod").ZodTypeAny, {
123
+ actionId: string;
124
+ }, {
125
+ actionId: string;
126
+ }>, import("zod").ZodObject<{
127
+ runId: import("zod").ZodString;
128
+ }, "strip", import("zod").ZodTypeAny, {
129
+ runId: string;
130
+ }, {
131
+ runId: string;
132
+ }>, import("zod").ZodObject<{
133
+ inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
134
+ initialState: import("zod").ZodOptional<import("zod").ZodUnknown>;
135
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
136
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
137
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
138
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
139
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
140
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
141
+ }, "strip", import("zod").ZodTypeAny, {
142
+ metadata?: Record<string, unknown> | undefined;
143
+ requestContextKeys?: string[] | undefined;
144
+ traceId?: string | undefined;
145
+ parentSpanId?: string | undefined;
146
+ }, {
147
+ metadata?: Record<string, unknown> | undefined;
148
+ requestContextKeys?: string[] | undefined;
149
+ traceId?: string | undefined;
150
+ parentSpanId?: string | undefined;
151
+ }>>;
152
+ } & {
153
+ closeOnSuspend: import("zod").ZodOptional<import("zod").ZodBoolean>;
154
+ }, "strip", import("zod").ZodTypeAny, {
31
155
  inputData?: unknown;
32
- runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
33
- } & AgentBuilderContext) => Promise<import("@mastra/core").WorkflowResult<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
34
- export declare const startAgentBuilderActionRunHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & {
156
+ initialState?: unknown;
157
+ requestContext?: Record<string, unknown> | undefined;
158
+ tracingOptions?: {
159
+ metadata?: Record<string, unknown> | undefined;
160
+ requestContextKeys?: string[] | undefined;
161
+ traceId?: string | undefined;
162
+ parentSpanId?: string | undefined;
163
+ } | undefined;
164
+ closeOnSuspend?: boolean | undefined;
165
+ }, {
35
166
  inputData?: unknown;
36
- runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
37
- } & AgentBuilderContext) => Promise<{
38
- message: string;
39
- }>;
40
- export declare const watchAgentBuilderActionHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & {
41
- eventType?: "watch" | "watch-v2";
42
- } & AgentBuilderContext) => Promise<import("stream/web").ReadableStream<string>>;
43
- export declare const streamAgentBuilderActionHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & {
167
+ initialState?: unknown;
168
+ requestContext?: Record<string, unknown> | undefined;
169
+ tracingOptions?: {
170
+ metadata?: Record<string, unknown> | undefined;
171
+ requestContextKeys?: string[] | undefined;
172
+ traceId?: string | undefined;
173
+ parentSpanId?: string | undefined;
174
+ } | undefined;
175
+ closeOnSuspend?: boolean | undefined;
176
+ }>>, any, "stream">;
177
+ export declare const STREAM_VNEXT_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
178
+ actionId: import("zod").ZodString;
179
+ }, "strip", import("zod").ZodTypeAny, {
180
+ actionId: string;
181
+ }, {
182
+ actionId: string;
183
+ }>, import("zod").ZodObject<{
184
+ runId: import("zod").ZodString;
185
+ }, "strip", import("zod").ZodTypeAny, {
186
+ runId: string;
187
+ }, {
188
+ runId: string;
189
+ }>, import("zod").ZodObject<{
190
+ inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
191
+ initialState: import("zod").ZodOptional<import("zod").ZodUnknown>;
192
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
193
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
194
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
195
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
196
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
197
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
198
+ }, "strip", import("zod").ZodTypeAny, {
199
+ metadata?: Record<string, unknown> | undefined;
200
+ requestContextKeys?: string[] | undefined;
201
+ traceId?: string | undefined;
202
+ parentSpanId?: string | undefined;
203
+ }, {
204
+ metadata?: Record<string, unknown> | undefined;
205
+ requestContextKeys?: string[] | undefined;
206
+ traceId?: string | undefined;
207
+ parentSpanId?: string | undefined;
208
+ }>>;
209
+ } & {
210
+ closeOnSuspend: import("zod").ZodOptional<import("zod").ZodBoolean>;
211
+ }, "strip", import("zod").ZodTypeAny, {
212
+ inputData?: unknown;
213
+ initialState?: unknown;
214
+ requestContext?: Record<string, unknown> | undefined;
215
+ tracingOptions?: {
216
+ metadata?: Record<string, unknown> | undefined;
217
+ requestContextKeys?: string[] | undefined;
218
+ traceId?: string | undefined;
219
+ parentSpanId?: string | undefined;
220
+ } | undefined;
221
+ closeOnSuspend?: boolean | undefined;
222
+ }, {
223
+ inputData?: unknown;
224
+ initialState?: unknown;
225
+ requestContext?: Record<string, unknown> | undefined;
226
+ tracingOptions?: {
227
+ metadata?: Record<string, unknown> | undefined;
228
+ requestContextKeys?: string[] | undefined;
229
+ traceId?: string | undefined;
230
+ parentSpanId?: string | undefined;
231
+ } | undefined;
232
+ closeOnSuspend?: boolean | undefined;
233
+ }>>, any, "stream">;
234
+ export declare const START_ASYNC_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
235
+ actionId: import("zod").ZodString;
236
+ }, "strip", import("zod").ZodTypeAny, {
237
+ actionId: string;
238
+ }, {
239
+ actionId: string;
240
+ }>, import("zod").ZodObject<{
241
+ runId: import("zod").ZodOptional<import("zod").ZodString>;
242
+ }, "strip", import("zod").ZodTypeAny, {
243
+ runId?: string | undefined;
244
+ }, {
245
+ runId?: string | undefined;
246
+ }>, import("zod").ZodObject<{
247
+ inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
248
+ initialState: import("zod").ZodOptional<import("zod").ZodUnknown>;
249
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
250
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
251
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
252
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
253
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
254
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
255
+ }, "strip", import("zod").ZodTypeAny, {
256
+ metadata?: Record<string, unknown> | undefined;
257
+ requestContextKeys?: string[] | undefined;
258
+ traceId?: string | undefined;
259
+ parentSpanId?: string | undefined;
260
+ }, {
261
+ metadata?: Record<string, unknown> | undefined;
262
+ requestContextKeys?: string[] | undefined;
263
+ traceId?: string | undefined;
264
+ parentSpanId?: string | undefined;
265
+ }>>;
266
+ }, "strip", import("zod").ZodTypeAny, {
267
+ inputData?: unknown;
268
+ initialState?: unknown;
269
+ requestContext?: Record<string, unknown> | undefined;
270
+ tracingOptions?: {
271
+ metadata?: Record<string, unknown> | undefined;
272
+ requestContextKeys?: string[] | undefined;
273
+ traceId?: string | undefined;
274
+ parentSpanId?: string | undefined;
275
+ } | undefined;
276
+ }, {
277
+ inputData?: unknown;
278
+ initialState?: unknown;
279
+ requestContext?: Record<string, unknown> | undefined;
280
+ tracingOptions?: {
281
+ metadata?: Record<string, unknown> | undefined;
282
+ requestContextKeys?: string[] | undefined;
283
+ traceId?: string | undefined;
284
+ parentSpanId?: string | undefined;
285
+ } | undefined;
286
+ }>>, {
287
+ status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire";
288
+ error?: unknown;
289
+ result?: unknown;
290
+ }, "json">;
291
+ export declare const START_AGENT_BUILDER_ACTION_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
292
+ actionId: import("zod").ZodString;
293
+ }, "strip", import("zod").ZodTypeAny, {
294
+ actionId: string;
295
+ }, {
296
+ actionId: string;
297
+ }>, import("zod").ZodObject<{
298
+ runId: import("zod").ZodString;
299
+ }, "strip", import("zod").ZodTypeAny, {
300
+ runId: string;
301
+ }, {
302
+ runId: string;
303
+ }>, import("zod").ZodObject<{
304
+ inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
305
+ initialState: import("zod").ZodOptional<import("zod").ZodUnknown>;
306
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
307
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
308
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
309
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
310
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
311
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
312
+ }, "strip", import("zod").ZodTypeAny, {
313
+ metadata?: Record<string, unknown> | undefined;
314
+ requestContextKeys?: string[] | undefined;
315
+ traceId?: string | undefined;
316
+ parentSpanId?: string | undefined;
317
+ }, {
318
+ metadata?: Record<string, unknown> | undefined;
319
+ requestContextKeys?: string[] | undefined;
320
+ traceId?: string | undefined;
321
+ parentSpanId?: string | undefined;
322
+ }>>;
323
+ }, "strip", import("zod").ZodTypeAny, {
44
324
  inputData?: unknown;
45
- runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
46
- } & AgentBuilderContext) => Promise<{
47
- stream: import("stream/web").ReadableStream<import("@mastra/core").StreamEvent>;
48
- getWorkflowState: () => Promise<import("@mastra/core").WorkflowResult<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
49
- }>;
50
- export declare const streamVNextAgentBuilderActionHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & {
325
+ initialState?: unknown;
326
+ requestContext?: Record<string, unknown> | undefined;
327
+ tracingOptions?: {
328
+ metadata?: Record<string, unknown> | undefined;
329
+ requestContextKeys?: string[] | undefined;
330
+ traceId?: string | undefined;
331
+ parentSpanId?: string | undefined;
332
+ } | undefined;
333
+ }, {
51
334
  inputData?: unknown;
52
- runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
53
- } & AgentBuilderContext) => Promise<import("@mastra/core").MastraWorkflowStream>;
54
- export declare const resumeAsyncAgentBuilderActionHandler: (builderArgs: workflows.WorkflowContext & {
55
- body: {
56
- step: string | string[];
57
- resumeData?: unknown;
58
- };
59
- runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
60
- } & AgentBuilderContext) => Promise<import("@mastra/core").WorkflowResult<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
61
- export declare const resumeAgentBuilderActionHandler: (builderArgs: workflows.WorkflowContext & {
62
- body: {
63
- step: string | string[];
64
- resumeData?: unknown;
65
- };
66
- runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
67
- } & AgentBuilderContext) => Promise<{
335
+ initialState?: unknown;
336
+ requestContext?: Record<string, unknown> | undefined;
337
+ tracingOptions?: {
338
+ metadata?: Record<string, unknown> | undefined;
339
+ requestContextKeys?: string[] | undefined;
340
+ traceId?: string | undefined;
341
+ parentSpanId?: string | undefined;
342
+ } | undefined;
343
+ }>>, {
68
344
  message: string;
69
- }>;
70
- export declare const getAgentBuilderActionRunsHandler: (builderArgs: workflows.WorkflowContext & {
71
- fromDate?: Date;
72
- toDate?: Date;
73
- limit?: number;
74
- offset?: number;
75
- resourceId?: string;
76
- } & AgentBuilderContext) => Promise<import("@mastra/core").WorkflowRuns>;
77
- export declare const cancelAgentBuilderActionRunHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & AgentBuilderContext) => Promise<{
345
+ }, "json">;
346
+ export declare const OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
347
+ actionId: import("zod").ZodString;
348
+ }, "strip", import("zod").ZodTypeAny, {
349
+ actionId: string;
350
+ }, {
351
+ actionId: string;
352
+ }>, import("zod").ZodObject<{
353
+ runId: import("zod").ZodString;
354
+ }, "strip", import("zod").ZodTypeAny, {
355
+ runId: string;
356
+ }, {
357
+ runId: string;
358
+ }>, undefined>, any, "stream">;
359
+ export declare const OBSERVE_STREAM_VNEXT_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
360
+ actionId: import("zod").ZodString;
361
+ }, "strip", import("zod").ZodTypeAny, {
362
+ actionId: string;
363
+ }, {
364
+ actionId: string;
365
+ }>, import("zod").ZodObject<{
366
+ runId: import("zod").ZodString;
367
+ }, "strip", import("zod").ZodTypeAny, {
368
+ runId: string;
369
+ }, {
370
+ runId: string;
371
+ }>, undefined>, any, "stream">;
372
+ export declare const RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
373
+ actionId: import("zod").ZodString;
374
+ }, "strip", import("zod").ZodTypeAny, {
375
+ actionId: string;
376
+ }, {
377
+ actionId: string;
378
+ }>, import("zod").ZodObject<{
379
+ runId: import("zod").ZodString;
380
+ }, "strip", import("zod").ZodTypeAny, {
381
+ runId: string;
382
+ }, {
383
+ runId: string;
384
+ }>, import("zod").ZodObject<{
385
+ step: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
386
+ resumeData: import("zod").ZodOptional<import("zod").ZodUnknown>;
387
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
388
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
389
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
390
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
391
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
392
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
393
+ }, "strip", import("zod").ZodTypeAny, {
394
+ metadata?: Record<string, unknown> | undefined;
395
+ requestContextKeys?: string[] | undefined;
396
+ traceId?: string | undefined;
397
+ parentSpanId?: string | undefined;
398
+ }, {
399
+ metadata?: Record<string, unknown> | undefined;
400
+ requestContextKeys?: string[] | undefined;
401
+ traceId?: string | undefined;
402
+ parentSpanId?: string | undefined;
403
+ }>>;
404
+ }, "strip", import("zod").ZodTypeAny, {
405
+ step?: string | string[] | undefined;
406
+ requestContext?: Record<string, unknown> | undefined;
407
+ tracingOptions?: {
408
+ metadata?: Record<string, unknown> | undefined;
409
+ requestContextKeys?: string[] | undefined;
410
+ traceId?: string | undefined;
411
+ parentSpanId?: string | undefined;
412
+ } | undefined;
413
+ resumeData?: unknown;
414
+ }, {
415
+ step?: string | string[] | undefined;
416
+ requestContext?: Record<string, unknown> | undefined;
417
+ tracingOptions?: {
418
+ metadata?: Record<string, unknown> | undefined;
419
+ requestContextKeys?: string[] | undefined;
420
+ traceId?: string | undefined;
421
+ parentSpanId?: string | undefined;
422
+ } | undefined;
423
+ resumeData?: unknown;
424
+ }>>, {
425
+ status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire";
426
+ error?: unknown;
427
+ result?: unknown;
428
+ }, "json">;
429
+ export declare const RESUME_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
430
+ actionId: import("zod").ZodString;
431
+ }, "strip", import("zod").ZodTypeAny, {
432
+ actionId: string;
433
+ }, {
434
+ actionId: string;
435
+ }>, import("zod").ZodObject<{
436
+ runId: import("zod").ZodString;
437
+ }, "strip", import("zod").ZodTypeAny, {
438
+ runId: string;
439
+ }, {
440
+ runId: string;
441
+ }>, import("zod").ZodObject<{
442
+ step: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
443
+ resumeData: import("zod").ZodOptional<import("zod").ZodUnknown>;
444
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
445
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
446
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
447
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
448
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
449
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
450
+ }, "strip", import("zod").ZodTypeAny, {
451
+ metadata?: Record<string, unknown> | undefined;
452
+ requestContextKeys?: string[] | undefined;
453
+ traceId?: string | undefined;
454
+ parentSpanId?: string | undefined;
455
+ }, {
456
+ metadata?: Record<string, unknown> | undefined;
457
+ requestContextKeys?: string[] | undefined;
458
+ traceId?: string | undefined;
459
+ parentSpanId?: string | undefined;
460
+ }>>;
461
+ }, "strip", import("zod").ZodTypeAny, {
462
+ step?: string | string[] | undefined;
463
+ requestContext?: Record<string, unknown> | undefined;
464
+ tracingOptions?: {
465
+ metadata?: Record<string, unknown> | undefined;
466
+ requestContextKeys?: string[] | undefined;
467
+ traceId?: string | undefined;
468
+ parentSpanId?: string | undefined;
469
+ } | undefined;
470
+ resumeData?: unknown;
471
+ }, {
472
+ step?: string | string[] | undefined;
473
+ requestContext?: Record<string, unknown> | undefined;
474
+ tracingOptions?: {
475
+ metadata?: Record<string, unknown> | undefined;
476
+ requestContextKeys?: string[] | undefined;
477
+ traceId?: string | undefined;
478
+ parentSpanId?: string | undefined;
479
+ } | undefined;
480
+ resumeData?: unknown;
481
+ }>>, {
78
482
  message: string;
79
- }>;
80
- export declare const sendAgentBuilderActionRunEventHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & {
81
- event: string;
82
- data: unknown;
83
- } & AgentBuilderContext) => Promise<{
483
+ }, "json">;
484
+ export declare const RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
485
+ actionId: import("zod").ZodString;
486
+ }, "strip", import("zod").ZodTypeAny, {
487
+ actionId: string;
488
+ }, {
489
+ actionId: string;
490
+ }>, import("zod").ZodObject<{
491
+ runId: import("zod").ZodString;
492
+ }, "strip", import("zod").ZodTypeAny, {
493
+ runId: string;
494
+ }, {
495
+ runId: string;
496
+ }>, import("zod").ZodObject<{
497
+ step: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
498
+ resumeData: import("zod").ZodOptional<import("zod").ZodUnknown>;
499
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
500
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
501
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
502
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
503
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
504
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
505
+ }, "strip", import("zod").ZodTypeAny, {
506
+ metadata?: Record<string, unknown> | undefined;
507
+ requestContextKeys?: string[] | undefined;
508
+ traceId?: string | undefined;
509
+ parentSpanId?: string | undefined;
510
+ }, {
511
+ metadata?: Record<string, unknown> | undefined;
512
+ requestContextKeys?: string[] | undefined;
513
+ traceId?: string | undefined;
514
+ parentSpanId?: string | undefined;
515
+ }>>;
516
+ }, "strip", import("zod").ZodTypeAny, {
517
+ step?: string | string[] | undefined;
518
+ requestContext?: Record<string, unknown> | undefined;
519
+ tracingOptions?: {
520
+ metadata?: Record<string, unknown> | undefined;
521
+ requestContextKeys?: string[] | undefined;
522
+ traceId?: string | undefined;
523
+ parentSpanId?: string | undefined;
524
+ } | undefined;
525
+ resumeData?: unknown;
526
+ }, {
527
+ step?: string | string[] | undefined;
528
+ requestContext?: Record<string, unknown> | undefined;
529
+ tracingOptions?: {
530
+ metadata?: Record<string, unknown> | undefined;
531
+ requestContextKeys?: string[] | undefined;
532
+ traceId?: string | undefined;
533
+ parentSpanId?: string | undefined;
534
+ } | undefined;
535
+ resumeData?: unknown;
536
+ }>>, any, "stream">;
537
+ export declare const CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE: import("../server-adapter").ServerRoute<{
538
+ runId: string;
539
+ actionId: string;
540
+ }, {
84
541
  message: string;
85
- }>;
86
- export {};
542
+ }, "json">;
543
+ export declare const STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
544
+ actionId: import("zod").ZodString;
545
+ }, "strip", import("zod").ZodTypeAny, {
546
+ actionId: string;
547
+ }, {
548
+ actionId: string;
549
+ }>, import("zod").ZodObject<{
550
+ runId: import("zod").ZodString;
551
+ }, "strip", import("zod").ZodTypeAny, {
552
+ runId: string;
553
+ }, {
554
+ runId: string;
555
+ }>, import("zod").ZodObject<{
556
+ inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
557
+ initialState: import("zod").ZodOptional<import("zod").ZodUnknown>;
558
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
559
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
560
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
561
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
562
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
563
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
564
+ }, "strip", import("zod").ZodTypeAny, {
565
+ metadata?: Record<string, unknown> | undefined;
566
+ requestContextKeys?: string[] | undefined;
567
+ traceId?: string | undefined;
568
+ parentSpanId?: string | undefined;
569
+ }, {
570
+ metadata?: Record<string, unknown> | undefined;
571
+ requestContextKeys?: string[] | undefined;
572
+ traceId?: string | undefined;
573
+ parentSpanId?: string | undefined;
574
+ }>>;
575
+ }, "strip", import("zod").ZodTypeAny, {
576
+ inputData?: unknown;
577
+ initialState?: unknown;
578
+ requestContext?: Record<string, unknown> | undefined;
579
+ tracingOptions?: {
580
+ metadata?: Record<string, unknown> | undefined;
581
+ requestContextKeys?: string[] | undefined;
582
+ traceId?: string | undefined;
583
+ parentSpanId?: string | undefined;
584
+ } | undefined;
585
+ }, {
586
+ inputData?: unknown;
587
+ initialState?: unknown;
588
+ requestContext?: Record<string, unknown> | undefined;
589
+ tracingOptions?: {
590
+ metadata?: Record<string, unknown> | undefined;
591
+ requestContextKeys?: string[] | undefined;
592
+ traceId?: string | undefined;
593
+ parentSpanId?: string | undefined;
594
+ } | undefined;
595
+ }>>, any, "stream">;
596
+ export declare const OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
597
+ actionId: import("zod").ZodString;
598
+ }, "strip", import("zod").ZodTypeAny, {
599
+ actionId: string;
600
+ }, {
601
+ actionId: string;
602
+ }>, import("zod").ZodObject<{
603
+ runId: import("zod").ZodString;
604
+ }, "strip", import("zod").ZodTypeAny, {
605
+ runId: string;
606
+ }, {
607
+ runId: string;
608
+ }>, undefined>, any, "stream">;
87
609
  //# sourceMappingURL=agent-builder.d.ts.map