@mastra/server 1.68.0-alpha.0 → 1.68.0-alpha.11

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 (471) hide show
  1. package/dist/_types/@internal_core/dist/storage/index.d.ts +5 -3
  2. package/dist/_types/@internal_core/package.json +1 -0
  3. package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/routes/index.d.ts +1 -1
  4. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/checks.d.ts +1 -1
  5. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/compat.d.ts +9 -11
  6. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/deep-partial.d.ts +14 -0
  7. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/errors.d.ts +3 -4
  8. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/external.d.ts +5 -2
  9. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/in-out.d.ts +8 -0
  10. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/index.d.ts +1 -2
  11. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/iso.d.ts +2 -17
  12. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/parse.d.ts +17 -4
  13. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/schemas.d.ts +68 -19
  14. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/api.d.ts +22 -12
  15. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/checks.d.ts +29 -13
  16. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/compile.d.ts +65 -0
  17. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/core.d.ts +16 -4
  18. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/doc.d.ts +3 -1
  19. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/errors.d.ts +4 -0
  20. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/index.d.ts +3 -0
  21. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/json-schema-generator.d.ts +2 -2
  22. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/json-schema-processors.d.ts +16 -0
  23. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/json-schema.d.ts +2 -1
  24. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/memoizer.d.ts +15 -0
  25. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/parse.d.ts +14 -11
  26. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/regexes.d.ts +5 -0
  27. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/schemas.d.ts +123 -34
  28. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/to-json-schema.d.ts +45 -5
  29. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/util.d.ts +79 -1
  30. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/versions.d.ts +1 -1
  31. package/dist/_types/@internal_voice/dist/_types/zod/v4/index.d.cts +2 -2
  32. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/bn.d.ts +4 -0
  33. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ckb.d.ts +4 -0
  34. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/gu.d.ts +4 -0
  35. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/hi.d.ts +4 -0
  36. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/index.d.ts +11 -0
  37. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/kn.d.ts +4 -0
  38. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ne.d.ts +4 -0
  39. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/nn.d.ts +4 -0
  40. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/pt-BR.d.ts +4 -0
  41. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/sk.d.ts +4 -0
  42. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/tg.d.ts +4 -0
  43. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/tk.d.ts +4 -0
  44. package/dist/_types/@internal_voice/dist/routes/index.d.ts +15 -15
  45. package/dist/_types/@internal_voice/package.json +1 -0
  46. package/dist/_types/@mastra_schema-compat/dist/_types/@internal_ai-sdk-v4/dist/index.d.ts +1 -1
  47. package/dist/_types/@mastra_schema-compat/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +1 -1
  48. package/dist/_types/@mastra_schema-compat/dist/_types/@internal_ai-v6/dist/index.d.ts +1 -1
  49. package/dist/_types/@mastra_schema-compat/dist/provider-compats/anthropic.d.ts +2 -2
  50. package/dist/_types/@mastra_schema-compat/dist/provider-compats/deepseek.d.ts +2 -2
  51. package/dist/_types/@mastra_schema-compat/dist/provider-compats/google.d.ts +1 -1
  52. package/dist/_types/@mastra_schema-compat/dist/provider-compats/meta.d.ts +2 -2
  53. package/dist/_types/@mastra_schema-compat/dist/provider-compats/openai.d.ts +1 -1
  54. package/dist/_types/@mastra_schema-compat/dist/schema.types.d.ts +4 -4
  55. package/dist/_types/@mastra_schema-compat/dist/standard-schema/standard-schema.d.ts +2 -2
  56. package/dist/_types/@mastra_schema-compat/dist/standard-schema/standard-schema.types.d.ts +1 -1
  57. package/dist/_types/@mastra_schema-compat/dist/zod-to-json.d.ts +1 -1
  58. package/dist/_types/@mastra_schema-compat/package.json +1 -0
  59. package/dist/{a2a-8C4O2dVJ.js → a2a-BS0gTQk3.js} +94 -14
  60. package/dist/a2a-BS0gTQk3.js.map +1 -0
  61. package/dist/{a2a-MPoM5lzS.cjs → a2a-CBl-c-lm.cjs} +105 -13
  62. package/dist/a2a-CBl-c-lm.cjs.map +1 -0
  63. package/dist/{a2a-DQ8GeDz4.cjs → a2a-Cr-pxMJm.cjs} +151 -47
  64. package/dist/a2a-Cr-pxMJm.cjs.map +1 -0
  65. package/dist/{a2a-DUBjstWk.js → a2a-D2AP2MGB.js} +151 -47
  66. package/dist/a2a-D2AP2MGB.js.map +1 -0
  67. package/dist/{agent-versions-NGajm4l5.js → agent-versions-CiV6tT74.js} +2 -2
  68. package/dist/{agent-versions-NGajm4l5.js.map → agent-versions-CiV6tT74.js.map} +1 -1
  69. package/dist/{agent-versions-D99q4Gos.cjs → agent-versions-D2QdSbFn.cjs} +2 -2
  70. package/dist/{agent-versions-D99q4Gos.cjs.map → agent-versions-D2QdSbFn.cjs.map} +1 -1
  71. package/dist/{agents-CZE_MSQE.cjs → agents-BN8QmLxk.cjs} +25 -7
  72. package/dist/agents-BN8QmLxk.cjs.map +1 -0
  73. package/dist/{agents-ssoMemNs.js → agents-DCYUhwHn.js} +25 -7
  74. package/dist/agents-DCYUhwHn.js.map +1 -0
  75. package/dist/{api-schema-manifest-CeREx1dB.js → api-schema-manifest-DRBrp4e0.js} +3 -3
  76. package/dist/{api-schema-manifest-CeREx1dB.js.map → api-schema-manifest-DRBrp4e0.js.map} +1 -1
  77. package/dist/{api-schema-manifest-DzWP4nLu.cjs → api-schema-manifest-hEcC_Jev.cjs} +3 -3
  78. package/dist/{api-schema-manifest-DzWP4nLu.cjs.map → api-schema-manifest-hEcC_Jev.cjs.map} +1 -1
  79. package/dist/{background-tasks-kXPoCvgG.js → background-tasks-D7X7M0TU.js} +2 -2
  80. package/dist/{background-tasks-kXPoCvgG.js.map → background-tasks-D7X7M0TU.js.map} +1 -1
  81. package/dist/{background-tasks-CFJ0vNgp.cjs → background-tasks-NjqWJcUw.cjs} +2 -2
  82. package/dist/{background-tasks-CFJ0vNgp.cjs.map → background-tasks-NjqWJcUw.cjs.map} +1 -1
  83. package/dist/{builder-registry-r71f11_E.cjs → builder-registry-BtwztV7s.cjs} +4 -4
  84. package/dist/{builder-registry-r71f11_E.cjs.map → builder-registry-BtwztV7s.cjs.map} +1 -1
  85. package/dist/{builder-registry-DI3Ysclf.js → builder-registry-CZW_Z4DV.js} +4 -4
  86. package/dist/{builder-registry-DI3Ysclf.js.map → builder-registry-CZW_Z4DV.js.map} +1 -1
  87. package/dist/{channels-CGDo0Prv.cjs → channels-pCkdvG0z.cjs} +2 -2
  88. package/dist/{channels-CGDo0Prv.cjs.map → channels-pCkdvG0z.cjs.map} +1 -1
  89. package/dist/{channels-B_K1oJ7S.js → channels-uSO1ySnT.js} +2 -2
  90. package/dist/{channels-B_K1oJ7S.js.map → channels-uSO1ySnT.js.map} +1 -1
  91. package/dist/{conversations-b3vJRHF3.js → conversations-BQSekCFg.js} +2 -2
  92. package/dist/{conversations-b3vJRHF3.js.map → conversations-BQSekCFg.js.map} +1 -1
  93. package/dist/{conversations-DstENx2x.cjs → conversations-X5vg7ZxV.cjs} +2 -2
  94. package/dist/{conversations-DstENx2x.cjs.map → conversations-X5vg7ZxV.cjs.map} +1 -1
  95. package/dist/{datasets-zlaJQ9D0.cjs → datasets-DNNuDeQ2.cjs} +40 -10
  96. package/dist/datasets-DNNuDeQ2.cjs.map +1 -0
  97. package/dist/{datasets-CCC2huR0.js → datasets-L8o0f3nY.js} +40 -10
  98. package/dist/datasets-L8o0f3nY.js.map +1 -0
  99. package/dist/{dist-D6F_HzDS.cjs → dist-B0uCWZUF.cjs} +4 -4
  100. package/dist/{dist-D6F_HzDS.cjs.map → dist-B0uCWZUF.cjs.map} +1 -1
  101. package/dist/{dist-C9yKk16g.cjs → dist-BQ0VOLA9.cjs} +3 -3
  102. package/dist/{dist-C9yKk16g.cjs.map → dist-BQ0VOLA9.cjs.map} +1 -1
  103. package/dist/{dist-k6UeNFHu.js → dist-Bl3UrwJs.js} +3 -3
  104. package/dist/{dist-k6UeNFHu.js.map → dist-Bl3UrwJs.js.map} +1 -1
  105. package/dist/{dist-B6qmZNb0.cjs → dist-C2u5Kqxy.cjs} +3 -3
  106. package/dist/{dist-B6qmZNb0.cjs.map → dist-C2u5Kqxy.cjs.map} +1 -1
  107. package/dist/{dist-BKxbtiJd.cjs → dist-CF1rK7oZ.cjs} +874 -192
  108. package/dist/dist-CF1rK7oZ.cjs.map +1 -0
  109. package/dist/{dist-C76EmJsT.cjs → dist-CkFmsB2E.cjs} +3 -3
  110. package/dist/{dist-C76EmJsT.cjs.map → dist-CkFmsB2E.cjs.map} +1 -1
  111. package/dist/{dist-Da8AufS5.js → dist-D1rb-p2Y.js} +4 -4
  112. package/dist/{dist-Da8AufS5.js.map → dist-D1rb-p2Y.js.map} +1 -1
  113. package/dist/{dist-Chgswf37.js → dist-DD1mFVAc.js} +3 -3
  114. package/dist/{dist-Chgswf37.js.map → dist-DD1mFVAc.js.map} +1 -1
  115. package/dist/{dist-Wjq6PT76.js → dist-DJ7t3yBx.js} +3 -3
  116. package/dist/{dist-Wjq6PT76.js.map → dist-DJ7t3yBx.js.map} +1 -1
  117. package/dist/{dist-CLQt62Pi.cjs → dist-DO5NHh-t.cjs} +3 -3
  118. package/dist/{dist-CLQt62Pi.cjs.map → dist-DO5NHh-t.cjs.map} +1 -1
  119. package/dist/{dist-XnA2Lowr.js → dist-DiEECrlS.js} +3 -3
  120. package/dist/{dist-XnA2Lowr.js.map → dist-DiEECrlS.js.map} +1 -1
  121. package/dist/{dist-DoTDZ7wF.js → dist-Dx2Qp8Rj.js} +3 -3
  122. package/dist/{dist-DoTDZ7wF.js.map → dist-Dx2Qp8Rj.js.map} +1 -1
  123. package/dist/{dist-DOpm-tIl.js → dist-dfcZRhcQ.js} +871 -189
  124. package/dist/dist-dfcZRhcQ.js.map +1 -0
  125. package/dist/{dist-DpM-6UBk.cjs → dist-vM0zJcP5.cjs} +3 -3
  126. package/dist/{dist-DpM-6UBk.cjs.map → dist-vM0zJcP5.cjs.map} +1 -1
  127. package/dist/docs/SKILL.md +2 -2
  128. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  129. package/dist/docs/references/docs-connections-a2a.md +4 -3
  130. package/dist/docs/references/docs-server-custom-adapters.md +43 -0
  131. package/dist/docs/references/reference-observability-tracing-trace-query.md +289 -46
  132. package/dist/{dynamic-workflows-DeUG3lA2.cjs → dynamic-workflows-BiX72mRA.cjs} +2 -2
  133. package/dist/{dynamic-workflows-DeUG3lA2.cjs.map → dynamic-workflows-BiX72mRA.cjs.map} +1 -1
  134. package/dist/{dynamic-workflows-C3DXgmSP.js → dynamic-workflows-CVrxi8y7.js} +2 -2
  135. package/dist/{dynamic-workflows-C3DXgmSP.js.map → dynamic-workflows-CVrxi8y7.js.map} +1 -1
  136. package/dist/{editor-builder-D6P_hq7c.js → editor-builder-Blheim55.js} +2 -2
  137. package/dist/{editor-builder-D6P_hq7c.js.map → editor-builder-Blheim55.js.map} +1 -1
  138. package/dist/{editor-builder-BI5yHrbT.js → editor-builder-D287Qf1k.js} +3 -3
  139. package/dist/{editor-builder-BI5yHrbT.js.map → editor-builder-D287Qf1k.js.map} +1 -1
  140. package/dist/{editor-builder-CKAeON9r.cjs → editor-builder-D85orYra.cjs} +3 -3
  141. package/dist/{editor-builder-CKAeON9r.cjs.map → editor-builder-D85orYra.cjs.map} +1 -1
  142. package/dist/{editor-builder-BHf-g7q9.cjs → editor-builder-DhUUVbQ-.cjs} +2 -2
  143. package/dist/{editor-builder-BHf-g7q9.cjs.map → editor-builder-DhUUVbQ-.cjs.map} +1 -1
  144. package/dist/{mcp-BPmrXX9r.cjs → mcp-CdZzch5c.cjs} +11 -3
  145. package/dist/mcp-CdZzch5c.cjs.map +1 -0
  146. package/dist/{mcp-B_OMG3Ol.js → mcp-ea7f_n2D.js} +11 -3
  147. package/dist/mcp-ea7f_n2D.js.map +1 -0
  148. package/dist/{memory-BvKPIpyH.js → memory-CZT-ptes.js} +9 -3
  149. package/dist/memory-CZT-ptes.js.map +1 -0
  150. package/dist/{memory-CDYtqQnE.cjs → memory-D2TG_RVj.cjs} +9 -3
  151. package/dist/memory-D2TG_RVj.cjs.map +1 -0
  152. package/dist/message-history-CkUYxSaS.cjs +22 -0
  153. package/dist/message-history-CkUYxSaS.cjs.map +1 -0
  154. package/dist/message-history-_kbQlA4r.js +11 -0
  155. package/dist/message-history-_kbQlA4r.js.map +1 -0
  156. package/dist/{observability-new-endpoints-I2OxQzfY.cjs → observability-new-endpoints-CDrOjmJw.cjs} +253 -7
  157. package/dist/observability-new-endpoints-CDrOjmJw.cjs.map +1 -0
  158. package/dist/{observability-new-endpoints-pIq_OWa8.js → observability-new-endpoints-CWfdrnzJ.js} +238 -10
  159. package/dist/observability-new-endpoints-CWfdrnzJ.js.map +1 -0
  160. package/dist/{route-builder-DupY8fkI.cjs → route-builder-CbCx1upL.cjs} +5 -5
  161. package/dist/{route-builder-DupY8fkI.cjs.map → route-builder-CbCx1upL.cjs.map} +1 -1
  162. package/dist/{route-builder-BukcT_Kp.js → route-builder-DDOjv0sM.js} +3 -3
  163. package/dist/{route-builder-BukcT_Kp.js.map → route-builder-DDOjv0sM.js.map} +1 -1
  164. package/dist/{routes-PJ3eKHbs.cjs → routes-C_j75KdR.cjs} +14 -11
  165. package/dist/routes-C_j75KdR.cjs.map +1 -0
  166. package/dist/{routes-BJZtqLVx.js → routes-DOL9nlPr.js} +14 -11
  167. package/dist/routes-DOL9nlPr.js.map +1 -0
  168. package/dist/{schedules-DaEv0Usj.cjs → schedules-ByXP9Fgm.cjs} +15 -9
  169. package/dist/schedules-ByXP9Fgm.cjs.map +1 -0
  170. package/dist/{schedules-BzymFGR_.js → schedules-Cy6FhkZX.js} +15 -9
  171. package/dist/schedules-Cy6FhkZX.js.map +1 -0
  172. package/dist/{schema-D_ikovK6-DQrOVw5N.cjs → schema-BwlBcZRB-BLwYP0BY.cjs} +6 -6
  173. package/dist/{schema-D_ikovK6-DQrOVw5N.cjs.map → schema-BwlBcZRB-BLwYP0BY.cjs.map} +1 -1
  174. package/dist/{schema-D_ikovK6-BzTeMhWf.js → schema-BwlBcZRB-DUSSQ9TD.js} +6 -6
  175. package/dist/{schema-D_ikovK6-BzTeMhWf.js.map → schema-BwlBcZRB-DUSSQ9TD.js.map} +1 -1
  176. package/dist/schema-DM4T8wfR.cjs +1 -0
  177. package/dist/schema-Fa9iirVJ.js +2 -0
  178. package/dist/{scorer-versions-B6U7batJ.cjs → scorer-versions-DAsYq5b3.cjs} +2 -2
  179. package/dist/{scorer-versions-B6U7batJ.cjs.map → scorer-versions-DAsYq5b3.cjs.map} +1 -1
  180. package/dist/{scorer-versions-Dh2iaz4Y.js → scorer-versions-VpbcaDi8.js} +2 -2
  181. package/dist/{scorer-versions-Dh2iaz4Y.js.map → scorer-versions-VpbcaDi8.js.map} +1 -1
  182. package/dist/server/a2a/agent-card-signing.d.ts +8 -4
  183. package/dist/server/a2a/agent-card-signing.d.ts.map +1 -1
  184. package/dist/server/a2a/agent-card-v1.d.ts +6 -0
  185. package/dist/server/a2a/agent-card-v1.d.ts.map +1 -0
  186. package/dist/server/handlers/a2a.cjs +1 -1
  187. package/dist/server/handlers/a2a.d.ts +205 -61
  188. package/dist/server/handlers/a2a.d.ts.map +1 -1
  189. package/dist/server/handlers/a2a.js +1 -1
  190. package/dist/server/handlers/agent-builder.cjs +4 -4
  191. package/dist/server/handlers/agent-builder.d.ts +64 -64
  192. package/dist/server/handlers/agent-builder.js +4 -4
  193. package/dist/server/handlers/agent-controller.cjs +2 -2
  194. package/dist/server/handlers/agent-controller.d.ts +145 -145
  195. package/dist/server/handlers/agent-controller.js +2 -2
  196. package/dist/server/handlers/agent-versions.cjs +3 -3
  197. package/dist/server/handlers/agent-versions.d.ts +136 -40
  198. package/dist/server/handlers/agent-versions.d.ts.map +1 -1
  199. package/dist/server/handlers/agent-versions.js +3 -3
  200. package/dist/server/handlers/agents.cjs +11 -10
  201. package/dist/server/handlers/agents.cjs.map +1 -1
  202. package/dist/server/handlers/agents.d.ts +238 -152
  203. package/dist/server/handlers/agents.d.ts.map +1 -1
  204. package/dist/server/handlers/agents.js +10 -9
  205. package/dist/server/handlers/agents.js.map +1 -1
  206. package/dist/server/handlers/auth.cjs +2 -5
  207. package/dist/server/handlers/auth.cjs.map +1 -1
  208. package/dist/server/handlers/auth.d.ts +80 -80
  209. package/dist/server/handlers/auth.d.ts.map +1 -1
  210. package/dist/server/handlers/auth.js +2 -5
  211. package/dist/server/handlers/auth.js.map +1 -1
  212. package/dist/server/handlers/background-tasks.cjs +1 -1
  213. package/dist/server/handlers/background-tasks.d.ts +12 -12
  214. package/dist/server/handlers/background-tasks.js +1 -1
  215. package/dist/server/handlers/builder-registry.cjs +1 -1
  216. package/dist/server/handlers/builder-registry.d.ts +20 -20
  217. package/dist/server/handlers/builder-registry.js +1 -1
  218. package/dist/server/handlers/channels.cjs +1 -1
  219. package/dist/server/handlers/channels.d.ts +16 -16
  220. package/dist/server/handlers/channels.js +1 -1
  221. package/dist/server/handlers/conversations.cjs +2 -2
  222. package/dist/server/handlers/conversations.d.ts +16 -16
  223. package/dist/server/handlers/conversations.js +2 -2
  224. package/dist/server/handlers/datasets.cjs +18 -13
  225. package/dist/server/handlers/datasets.cjs.map +1 -1
  226. package/dist/server/handlers/datasets.d.ts +354 -142
  227. package/dist/server/handlers/datasets.d.ts.map +1 -1
  228. package/dist/server/handlers/datasets.js +18 -13
  229. package/dist/server/handlers/datasets.js.map +1 -1
  230. package/dist/server/handlers/dynamic-workflows.cjs +1 -1
  231. package/dist/server/handlers/dynamic-workflows.d.ts +76 -76
  232. package/dist/server/handlers/dynamic-workflows.js +1 -1
  233. package/dist/server/handlers/editor-builder.cjs +1 -1
  234. package/dist/server/handlers/editor-builder.d.ts +12 -12
  235. package/dist/server/handlers/editor-builder.js +1 -1
  236. package/dist/server/handlers/favorites-enrichment.cjs +1 -1
  237. package/dist/server/handlers/favorites-enrichment.js +1 -1
  238. package/dist/server/handlers/logs.cjs +1 -1
  239. package/dist/server/handlers/logs.d.ts +12 -12
  240. package/dist/server/handlers/logs.js +1 -1
  241. package/dist/server/handlers/mcp-client-versions.cjs +3 -3
  242. package/dist/server/handlers/mcp-client-versions.d.ts +28 -28
  243. package/dist/server/handlers/mcp-client-versions.js +3 -3
  244. package/dist/server/handlers/mcp.cjs +34 -3
  245. package/dist/server/handlers/mcp.cjs.map +1 -1
  246. package/dist/server/handlers/mcp.d.ts +55 -42
  247. package/dist/server/handlers/mcp.d.ts.map +1 -1
  248. package/dist/server/handlers/mcp.js +34 -3
  249. package/dist/server/handlers/mcp.js.map +1 -1
  250. package/dist/server/handlers/memory.cjs +3 -4
  251. package/dist/server/handlers/memory.cjs.map +1 -1
  252. package/dist/server/handlers/memory.d.ts +176 -152
  253. package/dist/server/handlers/memory.d.ts.map +1 -1
  254. package/dist/server/handlers/memory.js +3 -4
  255. package/dist/server/handlers/memory.js.map +1 -1
  256. package/dist/server/handlers/observability-new-endpoints.cjs +4 -1
  257. package/dist/server/handlers/observability-new-endpoints.d.ts +1092 -518
  258. package/dist/server/handlers/observability-new-endpoints.d.ts.map +1 -1
  259. package/dist/server/handlers/observability-new-endpoints.js +2 -2
  260. package/dist/server/handlers/observability-shared.cjs +41 -2
  261. package/dist/server/handlers/observability-shared.cjs.map +1 -1
  262. package/dist/server/handlers/observability-shared.d.ts +24 -0
  263. package/dist/server/handlers/observability-shared.d.ts.map +1 -1
  264. package/dist/server/handlers/observability-shared.js +37 -2
  265. package/dist/server/handlers/observability-shared.js.map +1 -1
  266. package/dist/server/handlers/observability.cjs +8 -2
  267. package/dist/server/handlers/observability.cjs.map +1 -1
  268. package/dist/server/handlers/observability.d.ts +33 -27
  269. package/dist/server/handlers/observability.d.ts.map +1 -1
  270. package/dist/server/handlers/observability.js +6 -3
  271. package/dist/server/handlers/observability.js.map +1 -1
  272. package/dist/server/handlers/plans.cjs +2 -2
  273. package/dist/server/handlers/plans.d.ts +4 -4
  274. package/dist/server/handlers/plans.js +2 -2
  275. package/dist/server/handlers/processor-providers.cjs +1 -1
  276. package/dist/server/handlers/processor-providers.d.ts +8 -8
  277. package/dist/server/handlers/processor-providers.js +1 -1
  278. package/dist/server/handlers/processors.cjs +1 -1
  279. package/dist/server/handlers/processors.d.ts +12 -12
  280. package/dist/server/handlers/processors.js +1 -1
  281. package/dist/server/handlers/prompt-block-versions.cjs +3 -3
  282. package/dist/server/handlers/prompt-block-versions.d.ts +28 -28
  283. package/dist/server/handlers/prompt-block-versions.js +3 -3
  284. package/dist/server/handlers/responses.cjs +1 -1
  285. package/dist/server/handlers/responses.d.ts +12 -12
  286. package/dist/server/handlers/responses.js +1 -1
  287. package/dist/server/handlers/schedules.cjs +1 -1
  288. package/dist/server/handlers/schedules.d.ts +52 -36
  289. package/dist/server/handlers/schedules.d.ts.map +1 -1
  290. package/dist/server/handlers/schedules.js +1 -1
  291. package/dist/server/handlers/scorer-versions.cjs +3 -3
  292. package/dist/server/handlers/scorer-versions.d.ts +28 -28
  293. package/dist/server/handlers/scorer-versions.js +3 -3
  294. package/dist/server/handlers/scores.cjs +1 -1
  295. package/dist/server/handlers/scores.d.ts +24 -24
  296. package/dist/server/handlers/scores.js +1 -1
  297. package/dist/server/handlers/stored-agent-favorites.cjs +4 -4
  298. package/dist/server/handlers/stored-agent-favorites.d.ts +8 -8
  299. package/dist/server/handlers/stored-agent-favorites.js +4 -4
  300. package/dist/server/handlers/stored-agents.cjs +5 -5
  301. package/dist/server/handlers/stored-agents.d.ts +140 -44
  302. package/dist/server/handlers/stored-agents.d.ts.map +1 -1
  303. package/dist/server/handlers/stored-agents.js +5 -5
  304. package/dist/server/handlers/stored-mcp-clients.cjs +3 -3
  305. package/dist/server/handlers/stored-mcp-clients.d.ts +20 -20
  306. package/dist/server/handlers/stored-mcp-clients.js +3 -3
  307. package/dist/server/handlers/stored-prompt-blocks.cjs +3 -3
  308. package/dist/server/handlers/stored-prompt-blocks.d.ts +20 -20
  309. package/dist/server/handlers/stored-prompt-blocks.js +3 -3
  310. package/dist/server/handlers/stored-scorers.cjs +3 -3
  311. package/dist/server/handlers/stored-scorers.d.ts +20 -20
  312. package/dist/server/handlers/stored-scorers.js +3 -3
  313. package/dist/server/handlers/stored-skill-favorites.cjs +4 -4
  314. package/dist/server/handlers/stored-skill-favorites.d.ts +8 -8
  315. package/dist/server/handlers/stored-skill-favorites.js +4 -4
  316. package/dist/server/handlers/stored-skills.cjs +4 -4
  317. package/dist/server/handlers/stored-skills.d.ts +24 -24
  318. package/dist/server/handlers/stored-skills.js +4 -4
  319. package/dist/server/handlers/stored-workspaces.cjs +2 -2
  320. package/dist/server/handlers/stored-workspaces.d.ts +20 -20
  321. package/dist/server/handlers/stored-workspaces.js +2 -2
  322. package/dist/server/handlers/system.cjs +7 -5
  323. package/dist/server/handlers/system.cjs.map +1 -1
  324. package/dist/server/handlers/system.d.ts +10 -8
  325. package/dist/server/handlers/system.d.ts.map +1 -1
  326. package/dist/server/handlers/system.js +7 -5
  327. package/dist/server/handlers/system.js.map +1 -1
  328. package/dist/server/handlers/tool-providers.cjs +1 -1
  329. package/dist/server/handlers/tool-providers.d.ts +52 -52
  330. package/dist/server/handlers/tool-providers.js +1 -1
  331. package/dist/server/handlers/tools.cjs +6 -6
  332. package/dist/server/handlers/tools.d.ts +26 -20
  333. package/dist/server/handlers/tools.d.ts.map +1 -1
  334. package/dist/server/handlers/tools.js +5 -5
  335. package/dist/server/handlers/validate-agent-instructions.cjs +1 -1
  336. package/dist/server/handlers/validate-agent-instructions.js +1 -1
  337. package/dist/server/handlers/vector.cjs +1 -1
  338. package/dist/server/handlers/vector.d.ts +32 -32
  339. package/dist/server/handlers/vector.js +1 -1
  340. package/dist/server/handlers/workflow-builder.cjs +1 -1
  341. package/dist/server/handlers/workflow-builder.d.ts +8 -8
  342. package/dist/server/handlers/workflow-builder.js +1 -1
  343. package/dist/server/handlers/workflows.cjs +3 -3
  344. package/dist/server/handlers/workflows.d.ts +108 -108
  345. package/dist/server/handlers/workflows.js +3 -3
  346. package/dist/server/handlers/workspace.cjs +2 -2
  347. package/dist/server/handlers/workspace.d.ts +172 -172
  348. package/dist/server/handlers/workspace.js +2 -2
  349. package/dist/server/handlers.cjs +2 -2
  350. package/dist/server/handlers.js +2 -2
  351. package/dist/server/schemas/a2a.d.ts +165 -9
  352. package/dist/server/schemas/a2a.d.ts.map +1 -1
  353. package/dist/server/schemas/agent-versions.d.ts +70 -10
  354. package/dist/server/schemas/agent-versions.d.ts.map +1 -1
  355. package/dist/server/schemas/agents.d.ts +49 -1
  356. package/dist/server/schemas/agents.d.ts.map +1 -1
  357. package/dist/server/schemas/datasets.d.ts +90 -4
  358. package/dist/server/schemas/datasets.d.ts.map +1 -1
  359. package/dist/server/schemas/feedback.d.ts +3 -3
  360. package/dist/server/schemas/index.cjs +14 -14
  361. package/dist/server/schemas/index.js +14 -14
  362. package/dist/server/schemas/mcp.d.ts +8 -2
  363. package/dist/server/schemas/mcp.d.ts.map +1 -1
  364. package/dist/server/schemas/memory-config.d.ts +10 -2
  365. package/dist/server/schemas/memory-config.d.ts.map +1 -1
  366. package/dist/server/schemas/memory.d.ts +36 -28
  367. package/dist/server/schemas/memory.d.ts.map +1 -1
  368. package/dist/server/schemas/message-history.d.ts +7 -0
  369. package/dist/server/schemas/message-history.d.ts.map +1 -0
  370. package/dist/server/schemas/schedules.d.ts +9 -3
  371. package/dist/server/schemas/schedules.d.ts.map +1 -1
  372. package/dist/server/schemas/stored-agents.d.ts +140 -20
  373. package/dist/server/schemas/stored-agents.d.ts.map +1 -1
  374. package/dist/server/schemas/system.d.ts +2 -0
  375. package/dist/server/schemas/system.d.ts.map +1 -1
  376. package/dist/server/schemas/workspace.d.ts +6 -6
  377. package/dist/server/schemas/workspace.d.ts.map +1 -1
  378. package/dist/server/server-adapter/api-schema-manifest.d.ts +1 -1
  379. package/dist/server/server-adapter/index.cjs +4 -3
  380. package/dist/server/server-adapter/index.cjs.map +1 -1
  381. package/dist/server/server-adapter/index.d.ts +1 -0
  382. package/dist/server/server-adapter/index.d.ts.map +1 -1
  383. package/dist/server/server-adapter/index.js +4 -4
  384. package/dist/server/server-adapter/index.js.map +1 -1
  385. package/dist/server/server-adapter/openapi-utils.d.ts +1 -1
  386. package/dist/server/server-adapter/routes/a2a.d.ts +193 -59
  387. package/dist/server/server-adapter/routes/a2a.d.ts.map +1 -1
  388. package/dist/server/server-adapter/routes/agent-builder.d.ts +64 -64
  389. package/dist/server/server-adapter/routes/channels.d.ts +16 -16
  390. package/dist/server/server-adapter/routes/conversations.d.ts +16 -16
  391. package/dist/server/server-adapter/routes/datasets.d.ts +354 -142
  392. package/dist/server/server-adapter/routes/datasets.d.ts.map +1 -1
  393. package/dist/server/server-adapter/routes/editor-builder.d.ts +40 -40
  394. package/dist/server/server-adapter/routes/legacy.d.ts +16 -16
  395. package/dist/server/server-adapter/routes/logs.d.ts +12 -12
  396. package/dist/server/server-adapter/routes/mcp.d.ts +54 -42
  397. package/dist/server/server-adapter/routes/mcp.d.ts.map +1 -1
  398. package/dist/server/server-adapter/routes/memory.d.ts +176 -152
  399. package/dist/server/server-adapter/routes/memory.d.ts.map +1 -1
  400. package/dist/server/server-adapter/routes/observability.d.ts +652 -286
  401. package/dist/server/server-adapter/routes/observability.d.ts.map +1 -1
  402. package/dist/server/server-adapter/routes/processor-providers.d.ts +8 -8
  403. package/dist/server/server-adapter/routes/processors.d.ts +12 -12
  404. package/dist/server/server-adapter/routes/responses.d.ts +12 -12
  405. package/dist/server/server-adapter/routes/scorers.d.ts +24 -24
  406. package/dist/server/server-adapter/routes/stored-mcp-clients.d.ts +48 -48
  407. package/dist/server/server-adapter/routes/stored-prompt-blocks.d.ts +48 -48
  408. package/dist/server/server-adapter/routes/stored-scorers.d.ts +48 -48
  409. package/dist/server/server-adapter/routes/stored-skills.d.ts +32 -32
  410. package/dist/server/server-adapter/routes/stored-workspaces.d.ts +20 -20
  411. package/dist/server/server-adapter/routes/system.d.ts +10 -8
  412. package/dist/server/server-adapter/routes/system.d.ts.map +1 -1
  413. package/dist/server/server-adapter/routes/tool-providers.d.ts +52 -52
  414. package/dist/server/server-adapter/routes/tools.d.ts +16 -12
  415. package/dist/server/server-adapter/routes/tools.d.ts.map +1 -1
  416. package/dist/server/server-adapter/routes/vectors.d.ts +32 -32
  417. package/dist/server/server-adapter/routes/workflows.d.ts +100 -100
  418. package/dist/server/server-adapter/routes/workspace.d.ts +90 -90
  419. package/dist/{stored-agents-BJMM5f9A.cjs → stored-agents-61cRlWax.cjs} +8 -4
  420. package/dist/stored-agents-61cRlWax.cjs.map +1 -0
  421. package/dist/{stored-agents-AC0najKd.js → stored-agents-CuEn_6cd.js} +8 -4
  422. package/dist/stored-agents-CuEn_6cd.js.map +1 -0
  423. package/dist/{stored-scorers-CWxW1_mY.cjs → stored-scorers-BLj27wz5.cjs} +2 -2
  424. package/dist/{stored-scorers-CWxW1_mY.cjs.map → stored-scorers-BLj27wz5.cjs.map} +1 -1
  425. package/dist/{stored-scorers-B8QVQCCs.js → stored-scorers-D7dAXnFk.js} +2 -2
  426. package/dist/{stored-scorers-B8QVQCCs.js.map → stored-scorers-D7dAXnFk.js.map} +1 -1
  427. package/dist/{system-Cfo5a63a.cjs → system-D85p7-oz.cjs} +3 -2
  428. package/dist/system-D85p7-oz.cjs.map +1 -0
  429. package/dist/{system-DT2JfUun.js → system-DMAG21IT.js} +3 -2
  430. package/dist/system-DMAG21IT.js.map +1 -0
  431. package/dist/{utils-WcR0QSUB.cjs → utils-DbHFc3hG.cjs} +5 -5
  432. package/dist/{utils-WcR0QSUB.cjs.map → utils-DbHFc3hG.cjs.map} +1 -1
  433. package/dist/{utils-Duk4hfT_.js → utils-mRt04Bqa.js} +3 -3
  434. package/dist/{utils-Duk4hfT_.js.map → utils-mRt04Bqa.js.map} +1 -1
  435. package/dist/{workflow-builder-D5dPsrog.cjs → workflow-builder-ZEU0Rafo.cjs} +4 -4
  436. package/dist/{workflow-builder-D5dPsrog.cjs.map → workflow-builder-ZEU0Rafo.cjs.map} +1 -1
  437. package/dist/{workflow-builder-Eape8SyU.js → workflow-builder-fkwRyZUG.js} +4 -4
  438. package/dist/{workflow-builder-Eape8SyU.js.map → workflow-builder-fkwRyZUG.js.map} +1 -1
  439. package/dist/{workspace-Cz9hE2ei.cjs → workspace-BE_j73fm.cjs} +21 -7
  440. package/dist/workspace-BE_j73fm.cjs.map +1 -0
  441. package/dist/{workspace-S5GiJ3Nx.js → workspace-SmQR_sZ4.js} +21 -7
  442. package/dist/workspace-SmQR_sZ4.js.map +1 -0
  443. package/package.json +11 -11
  444. package/dist/a2a-8C4O2dVJ.js.map +0 -1
  445. package/dist/a2a-DQ8GeDz4.cjs.map +0 -1
  446. package/dist/a2a-DUBjstWk.js.map +0 -1
  447. package/dist/a2a-MPoM5lzS.cjs.map +0 -1
  448. package/dist/agents-CZE_MSQE.cjs.map +0 -1
  449. package/dist/agents-ssoMemNs.js.map +0 -1
  450. package/dist/datasets-CCC2huR0.js.map +0 -1
  451. package/dist/datasets-zlaJQ9D0.cjs.map +0 -1
  452. package/dist/dist-BKxbtiJd.cjs.map +0 -1
  453. package/dist/dist-DOpm-tIl.js.map +0 -1
  454. package/dist/mcp-BPmrXX9r.cjs.map +0 -1
  455. package/dist/mcp-B_OMG3Ol.js.map +0 -1
  456. package/dist/memory-BvKPIpyH.js.map +0 -1
  457. package/dist/memory-CDYtqQnE.cjs.map +0 -1
  458. package/dist/observability-new-endpoints-I2OxQzfY.cjs.map +0 -1
  459. package/dist/observability-new-endpoints-pIq_OWa8.js.map +0 -1
  460. package/dist/routes-BJZtqLVx.js.map +0 -1
  461. package/dist/routes-PJ3eKHbs.cjs.map +0 -1
  462. package/dist/schedules-BzymFGR_.js.map +0 -1
  463. package/dist/schedules-DaEv0Usj.cjs.map +0 -1
  464. package/dist/schema-BF_cZG0Y.js +0 -2
  465. package/dist/schema-C7CvwM1d.cjs +0 -1
  466. package/dist/stored-agents-AC0najKd.js.map +0 -1
  467. package/dist/stored-agents-BJMM5f9A.cjs.map +0 -1
  468. package/dist/system-Cfo5a63a.cjs.map +0 -1
  469. package/dist/system-DT2JfUun.js.map +0 -1
  470. package/dist/workspace-Cz9hE2ei.cjs.map +0 -1
  471. package/dist/workspace-S5GiJ3Nx.js.map +0 -1
@@ -21,14 +21,27 @@ export declare const QUERY_TRACES: Omit<import("@mastra/core/server").ApiRoute,
21
21
  field: "endedAt" | "startedAt";
22
22
  direction: "asc" | "desc";
23
23
  }[] | undefined;
24
- page: {
24
+ page?: {
25
25
  limit: number;
26
26
  after?: string | null | undefined;
27
- };
27
+ } | undefined;
28
+ pagination?: {
29
+ page: number;
30
+ perPage: number;
31
+ } | undefined;
32
+ mode?: "delta" | undefined;
33
+ after?: string | undefined;
34
+ limit?: number | undefined;
28
35
  } & ServerContext): Promise<{
29
36
  traces: {
30
37
  traceId: string;
31
38
  rootSpanId: string;
39
+ name: string;
40
+ entityId: string | null;
41
+ parentSpanId: string | null;
42
+ createdAt: string;
43
+ metadata: Record<string, unknown> | null;
44
+ inputPreview: string | null;
32
45
  threadId: string | null;
33
46
  resourceId: string | null;
34
47
  startedAt: string;
@@ -41,6 +54,56 @@ export declare const QUERY_TRACES: Omit<import("@mastra/core/server").ApiRoute,
41
54
  page: {
42
55
  next: string | null;
43
56
  };
57
+ } | {
58
+ traces: {
59
+ traceId: string;
60
+ rootSpanId: string;
61
+ name: string;
62
+ entityId: string | null;
63
+ parentSpanId: string | null;
64
+ createdAt: string;
65
+ metadata: Record<string, unknown> | null;
66
+ inputPreview: string | null;
67
+ threadId: string | null;
68
+ resourceId: string | null;
69
+ startedAt: string;
70
+ endedAt: string;
71
+ entityName: string | null;
72
+ entityType: string | null;
73
+ environment: string | null;
74
+ status: "error" | "success";
75
+ }[];
76
+ pagination: {
77
+ total: number;
78
+ page: number;
79
+ perPage: number | false;
80
+ hasMore: boolean;
81
+ };
82
+ deltaCursor?: string | undefined;
83
+ } | {
84
+ traces: {
85
+ traceId: string;
86
+ rootSpanId: string;
87
+ name: string;
88
+ entityId: string | null;
89
+ parentSpanId: string | null;
90
+ createdAt: string;
91
+ metadata: Record<string, unknown> | null;
92
+ inputPreview: string | null;
93
+ threadId: string | null;
94
+ resourceId: string | null;
95
+ startedAt: string;
96
+ endedAt: string;
97
+ entityName: string | null;
98
+ entityType: string | null;
99
+ environment: string | null;
100
+ status: "error" | "success";
101
+ }[];
102
+ delta: {
103
+ limit: number;
104
+ hasMore: boolean;
105
+ };
106
+ deltaCursor: string;
44
107
  } | {
45
108
  groups: {
46
109
  threadId: string;
@@ -49,10 +112,10 @@ export declare const QUERY_TRACES: Omit<import("@mastra/core/server").ApiRoute,
49
112
  next: string | null;
50
113
  };
51
114
  }>;
52
- pathParamSchema?: z.ZodType;
53
- queryParamSchema?: z.ZodType;
54
- bodySchema?: z.ZodType;
55
- responseSchema?: z.ZodType;
115
+ pathParamSchema?: z.ZodSchema;
116
+ queryParamSchema?: z.ZodSchema;
117
+ bodySchema?: z.ZodSchema;
118
+ responseSchema?: z.ZodSchema;
56
119
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
57
120
  maxBodySize?: number;
58
121
  deprecated?: boolean;
@@ -78,14 +141,27 @@ export declare const QUERY_TRACES: Omit<import("@mastra/core/server").ApiRoute,
78
141
  desc: "desc";
79
142
  }>;
80
143
  }, z.core.$strict>>>;
81
- page: z.ZodDefault<z.ZodObject<{
144
+ page: z.ZodOptional<z.ZodObject<{
82
145
  limit: z.ZodDefault<z.ZodNumber>;
83
146
  after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
147
  }, z.core.$strict>>;
85
- }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodObject<{
148
+ pagination: z.ZodOptional<z.ZodObject<{
149
+ page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
150
+ perPage: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
151
+ }, z.core.$strip>>;
152
+ mode: z.ZodOptional<z.ZodLiteral<"delta">>;
153
+ after: z.ZodOptional<z.ZodString>;
154
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
155
+ }, z.core.$strict>, unknown>, z.ZodUnion<readonly [z.ZodObject<{
86
156
  traces: z.ZodArray<z.ZodObject<{
87
157
  traceId: z.ZodString;
88
158
  rootSpanId: z.ZodString;
159
+ name: z.ZodString;
160
+ entityId: z.ZodNullable<z.ZodString>;
161
+ parentSpanId: z.ZodNullable<z.ZodString>;
162
+ createdAt: z.ZodString;
163
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
164
+ inputPreview: z.ZodNullable<z.ZodString>;
89
165
  threadId: z.ZodNullable<z.ZodString>;
90
166
  resourceId: z.ZodNullable<z.ZodString>;
91
167
  startedAt: z.ZodString;
@@ -101,6 +177,62 @@ export declare const QUERY_TRACES: Omit<import("@mastra/core/server").ApiRoute,
101
177
  page: z.ZodObject<{
102
178
  next: z.ZodNullable<z.ZodString>;
103
179
  }, z.core.$strict>;
180
+ }, z.core.$strict>, z.ZodObject<{
181
+ traces: z.ZodArray<z.ZodObject<{
182
+ traceId: z.ZodString;
183
+ rootSpanId: z.ZodString;
184
+ name: z.ZodString;
185
+ entityId: z.ZodNullable<z.ZodString>;
186
+ parentSpanId: z.ZodNullable<z.ZodString>;
187
+ createdAt: z.ZodString;
188
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
189
+ inputPreview: z.ZodNullable<z.ZodString>;
190
+ threadId: z.ZodNullable<z.ZodString>;
191
+ resourceId: z.ZodNullable<z.ZodString>;
192
+ startedAt: z.ZodString;
193
+ endedAt: z.ZodString;
194
+ entityName: z.ZodNullable<z.ZodString>;
195
+ entityType: z.ZodNullable<z.ZodString>;
196
+ environment: z.ZodNullable<z.ZodString>;
197
+ status: z.ZodEnum<{
198
+ error: "error";
199
+ success: "success";
200
+ }>;
201
+ }, z.core.$strict>>;
202
+ pagination: z.ZodObject<{
203
+ total: z.ZodNumber;
204
+ page: z.ZodNumber;
205
+ perPage: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>;
206
+ hasMore: z.ZodBoolean;
207
+ }, z.core.$strip>;
208
+ deltaCursor: z.ZodOptional<z.ZodString>;
209
+ }, z.core.$strict>, z.ZodObject<{
210
+ traces: z.ZodArray<z.ZodObject<{
211
+ traceId: z.ZodString;
212
+ rootSpanId: z.ZodString;
213
+ name: z.ZodString;
214
+ entityId: z.ZodNullable<z.ZodString>;
215
+ parentSpanId: z.ZodNullable<z.ZodString>;
216
+ createdAt: z.ZodString;
217
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
218
+ inputPreview: z.ZodNullable<z.ZodString>;
219
+ threadId: z.ZodNullable<z.ZodString>;
220
+ resourceId: z.ZodNullable<z.ZodString>;
221
+ startedAt: z.ZodString;
222
+ endedAt: z.ZodString;
223
+ entityName: z.ZodNullable<z.ZodString>;
224
+ entityType: z.ZodNullable<z.ZodString>;
225
+ environment: z.ZodNullable<z.ZodString>;
226
+ status: z.ZodEnum<{
227
+ error: "error";
228
+ success: "success";
229
+ }>;
230
+ }, z.core.$strict>>;
231
+ delta: z.ZodObject<{
232
+ limit: z.ZodNumber;
233
+ hasMore: z.ZodBoolean;
234
+ }, z.core.$strip>;
235
+ deltaCursor: z.ZodString;
104
236
  }, z.core.$strict>, z.ZodObject<{
105
237
  groups: z.ZodArray<z.ZodObject<{
106
238
  threadId: z.ZodString;
@@ -112,13 +244,228 @@ export declare const QUERY_TRACES: Omit<import("@mastra/core/server").ApiRoute,
112
244
  } & {
113
245
  readonly _mastraSchemaRoute: true;
114
246
  };
247
+ export declare const GET_TRACE_QUERY_FIELDS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
248
+ method: string;
249
+ path: `/${string}`;
250
+ responseType: "json";
251
+ streamFormat?: 'sse' | 'stream';
252
+ sseFlushOnConnect?: boolean;
253
+ handler(params: {
254
+ timeRange: {
255
+ from: string;
256
+ to: string;
257
+ };
258
+ predicateScope: "feedback" | "scores" | "spans" | "trace";
259
+ search?: string | undefined;
260
+ limit: number;
261
+ } & ServerContext): Promise<{
262
+ canonicalFields: {
263
+ path: string;
264
+ valueKind: "number" | "presence" | "string" | "stringOrNumber" | "timestamp";
265
+ operators: ("eq" | "exists" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "notExists" | "notIn")[];
266
+ valueSuggestions: boolean;
267
+ }[];
268
+ observedFields: {
269
+ path: `metadata.${string}`;
270
+ valueKind: "string";
271
+ operators: ("eq" | "exists" | "in" | "ne" | "notExists" | "notIn")[];
272
+ valueSuggestions: true;
273
+ occurrences: number;
274
+ }[];
275
+ observedFieldsTruncated: boolean;
276
+ }>;
277
+ pathParamSchema?: z.ZodSchema;
278
+ queryParamSchema?: z.ZodSchema;
279
+ bodySchema?: z.ZodSchema;
280
+ responseSchema?: z.ZodSchema;
281
+ openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
282
+ maxBodySize?: number;
283
+ deprecated?: boolean;
284
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
285
+ fga?: import("@mastra/core/auth").FGARouteConfig;
286
+ onValidationError?: ValidationErrorHook;
287
+ readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
288
+ timeRange: z.ZodObject<{
289
+ from: z.ZodString;
290
+ to: z.ZodString;
291
+ }, z.core.$strict>;
292
+ predicateScope: z.ZodEnum<{
293
+ feedback: "feedback";
294
+ scores: "scores";
295
+ spans: "spans";
296
+ trace: "trace";
297
+ }>;
298
+ search: z.ZodOptional<z.ZodString>;
299
+ limit: z.ZodDefault<z.ZodNumber>;
300
+ }, z.core.$strict>, z.ZodObject<{
301
+ canonicalFields: z.ZodArray<z.ZodObject<{
302
+ path: z.ZodString;
303
+ valueKind: z.ZodEnum<{
304
+ number: "number";
305
+ presence: "presence";
306
+ string: "string";
307
+ stringOrNumber: "stringOrNumber";
308
+ timestamp: "timestamp";
309
+ }>;
310
+ operators: z.ZodArray<z.ZodEnum<{
311
+ eq: "eq";
312
+ exists: "exists";
313
+ gt: "gt";
314
+ gte: "gte";
315
+ in: "in";
316
+ lt: "lt";
317
+ lte: "lte";
318
+ ne: "ne";
319
+ notExists: "notExists";
320
+ notIn: "notIn";
321
+ }>>;
322
+ valueSuggestions: z.ZodBoolean;
323
+ }, z.core.$strict>>;
324
+ observedFields: z.ZodArray<z.ZodObject<{
325
+ path: z.ZodString & z.ZodType<`metadata.${string}`, string, z.core.$ZodTypeInternals<`metadata.${string}`, string>>;
326
+ valueKind: z.ZodLiteral<"string">;
327
+ operators: z.ZodArray<z.ZodEnum<{
328
+ eq: "eq";
329
+ exists: "exists";
330
+ in: "in";
331
+ ne: "ne";
332
+ notExists: "notExists";
333
+ notIn: "notIn";
334
+ }>>;
335
+ valueSuggestions: z.ZodLiteral<true>;
336
+ occurrences: z.ZodNumber;
337
+ }, z.core.$strict>>;
338
+ observedFieldsTruncated: z.ZodBoolean;
339
+ }, z.core.$strict>> | undefined;
340
+ } & {
341
+ readonly _mastraSchemaRoute: true;
342
+ };
343
+ export declare const GET_TRACE_QUERY_VALUES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
344
+ method: string;
345
+ path: `/${string}`;
346
+ responseType: "json";
347
+ streamFormat?: 'sse' | 'stream';
348
+ sseFlushOnConnect?: boolean;
349
+ handler(params: {
350
+ timeRange: {
351
+ from: string;
352
+ to: string;
353
+ };
354
+ predicateScope: "feedback" | "scores" | "spans" | "trace";
355
+ path: string;
356
+ search?: string | undefined;
357
+ limit: number;
358
+ } & ServerContext): Promise<{
359
+ values: {
360
+ value: string;
361
+ count: number;
362
+ }[];
363
+ valuesTruncated: boolean;
364
+ }>;
365
+ pathParamSchema?: z.ZodSchema;
366
+ queryParamSchema?: z.ZodSchema;
367
+ bodySchema?: z.ZodSchema;
368
+ responseSchema?: z.ZodSchema;
369
+ openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
370
+ maxBodySize?: number;
371
+ deprecated?: boolean;
372
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
373
+ fga?: import("@mastra/core/auth").FGARouteConfig;
374
+ onValidationError?: ValidationErrorHook;
375
+ readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
376
+ timeRange: z.ZodObject<{
377
+ from: z.ZodString;
378
+ to: z.ZodString;
379
+ }, z.core.$strict>;
380
+ predicateScope: z.ZodEnum<{
381
+ feedback: "feedback";
382
+ scores: "scores";
383
+ spans: "spans";
384
+ trace: "trace";
385
+ }>;
386
+ path: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
387
+ search: z.ZodOptional<z.ZodString>;
388
+ limit: z.ZodDefault<z.ZodNumber>;
389
+ }, z.core.$strict>, z.ZodObject<{
390
+ values: z.ZodArray<z.ZodObject<{
391
+ value: z.ZodString;
392
+ count: z.ZodNumber;
393
+ }, z.core.$strict>>;
394
+ valuesTruncated: z.ZodBoolean;
395
+ }, z.core.$strict>> | undefined;
396
+ } & {
397
+ readonly _mastraSchemaRoute: true;
398
+ };
399
+ export declare const QUERY_THREADS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
400
+ method: string;
401
+ path: `/${string}`;
402
+ responseType: "json";
403
+ streamFormat?: 'sse' | 'stream';
404
+ sseFlushOnConnect?: boolean;
405
+ handler(params: {
406
+ traces: {
407
+ timeRange: {
408
+ from: string;
409
+ to: string;
410
+ };
411
+ where?: coreStorage.TraceQueryPredicate | undefined;
412
+ };
413
+ where?: coreStorage.ThreadPredicate | undefined;
414
+ page: {
415
+ limit: number;
416
+ after?: string | null | undefined;
417
+ };
418
+ } & ServerContext): Promise<{
419
+ threads: {
420
+ threadId: string;
421
+ }[];
422
+ page: {
423
+ next: string | null;
424
+ };
425
+ }>;
426
+ pathParamSchema?: z.ZodSchema;
427
+ queryParamSchema?: z.ZodSchema;
428
+ bodySchema?: z.ZodSchema;
429
+ responseSchema?: z.ZodSchema;
430
+ openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
431
+ maxBodySize?: number;
432
+ deprecated?: boolean;
433
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
434
+ fga?: import("@mastra/core/auth").FGARouteConfig;
435
+ onValidationError?: ValidationErrorHook;
436
+ readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodPreprocess<z.ZodObject<{
437
+ traces: z.ZodObject<{
438
+ timeRange: z.ZodObject<{
439
+ from: z.ZodString;
440
+ to: z.ZodString;
441
+ }, z.core.$strict>;
442
+ where: z.ZodOptional<z.ZodType<coreStorage.TraceQueryPredicate, unknown, z.core.$ZodTypeInternals<coreStorage.TraceQueryPredicate, unknown>>>;
443
+ }, z.core.$strict>;
444
+ where: z.ZodOptional<z.ZodType<coreStorage.ThreadPredicate, unknown, z.core.$ZodTypeInternals<coreStorage.ThreadPredicate, unknown>>>;
445
+ page: z.ZodDefault<z.ZodObject<{
446
+ limit: z.ZodDefault<z.ZodNumber>;
447
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
448
+ }, z.core.$strict>>;
449
+ }, z.core.$strict>, unknown>, z.ZodObject<{
450
+ threads: z.ZodArray<z.ZodObject<{
451
+ threadId: z.ZodString;
452
+ }, z.core.$strict>>;
453
+ page: z.ZodObject<{
454
+ next: z.ZodNullable<z.ZodString>;
455
+ }, z.core.$strict>;
456
+ }, z.core.$strict>> | undefined;
457
+ } & {
458
+ readonly _mastraSchemaRoute: true;
459
+ };
115
460
  export declare const LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
116
461
  method: string;
117
462
  path: `/${string}`;
118
463
  responseType: "json";
119
464
  streamFormat?: 'sse' | 'stream';
120
465
  sseFlushOnConnect?: boolean;
121
- handler(params: Record<string, unknown> & ServerContext): Promise<{
466
+ handler(params: {
467
+ [x: string]: unknown;
468
+ } & ServerContext): Promise<{
122
469
  pagination?: {
123
470
  total: number;
124
471
  page: number;
@@ -131,13 +478,13 @@ export declare const LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "cr
131
478
  } | undefined;
132
479
  deltaCursor?: string | undefined;
133
480
  logs: {
134
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
481
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
135
482
  entityId?: string | null | undefined;
136
483
  entityName?: string | null | undefined;
137
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
484
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
138
485
  parentEntityId?: string | null | undefined;
139
486
  parentEntityName?: string | null | undefined;
140
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
487
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
141
488
  rootEntityId?: string | null | undefined;
142
489
  rootEntityName?: string | null | undefined;
143
490
  userId?: string | null | undefined;
@@ -167,10 +514,10 @@ export declare const LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "cr
167
514
  metadata?: Record<string, unknown> | null | undefined;
168
515
  }[];
169
516
  }>;
170
- pathParamSchema?: z.ZodType;
171
- queryParamSchema?: z.ZodType;
172
- bodySchema?: z.ZodType;
173
- responseSchema?: z.ZodType;
517
+ pathParamSchema?: z.ZodSchema;
518
+ queryParamSchema?: z.ZodSchema;
519
+ bodySchema?: z.ZodSchema;
520
+ responseSchema?: z.ZodSchema;
174
521
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
175
522
  maxBodySize?: number;
176
523
  deprecated?: boolean;
@@ -192,13 +539,13 @@ export declare const LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "cr
192
539
  }, z.core.$strip>>;
193
540
  deltaCursor: z.ZodOptional<z.ZodString>;
194
541
  logs: z.ZodArray<z.ZodObject<{
195
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
542
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
196
543
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
544
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
198
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
545
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
199
546
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
547
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
201
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
548
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
202
549
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
550
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
551
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -243,7 +590,9 @@ export declare const LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "
243
590
  responseType: "json";
244
591
  streamFormat?: 'sse' | 'stream';
245
592
  sseFlushOnConnect?: boolean;
246
- handler(params: Record<string, unknown> & ServerContext): Promise<{
593
+ handler(params: {
594
+ [x: string]: unknown;
595
+ } & ServerContext): Promise<{
247
596
  pagination?: {
248
597
  total: number;
249
598
  page: number;
@@ -256,13 +605,13 @@ export declare const LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "
256
605
  } | undefined;
257
606
  deltaCursor?: string | undefined;
258
607
  scores: {
259
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
608
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
260
609
  entityId?: string | null | undefined;
261
610
  entityName?: string | null | undefined;
262
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
611
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
263
612
  parentEntityId?: string | null | undefined;
264
613
  parentEntityName?: string | null | undefined;
265
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
614
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
266
615
  rootEntityId?: string | null | undefined;
267
616
  rootEntityName?: string | null | undefined;
268
617
  userId?: string | null | undefined;
@@ -296,10 +645,10 @@ export declare const LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "
296
645
  metadata?: Record<string, unknown> | null | undefined;
297
646
  }[];
298
647
  }>;
299
- pathParamSchema?: z.ZodType;
300
- queryParamSchema?: z.ZodType;
301
- bodySchema?: z.ZodType;
302
- responseSchema?: z.ZodType;
648
+ pathParamSchema?: z.ZodSchema;
649
+ queryParamSchema?: z.ZodSchema;
650
+ bodySchema?: z.ZodSchema;
651
+ responseSchema?: z.ZodSchema;
303
652
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
304
653
  maxBodySize?: number;
305
654
  deprecated?: boolean;
@@ -321,13 +670,13 @@ export declare const LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "
321
670
  }, z.core.$strip>>;
322
671
  deltaCursor: z.ZodOptional<z.ZodString>;
323
672
  scores: z.ZodArray<z.ZodObject<{
324
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
673
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
325
674
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
675
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
327
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
676
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
328
677
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
678
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
679
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
331
680
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
332
681
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
682
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -372,13 +721,13 @@ export declare const CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute,
372
721
  sseFlushOnConnect?: boolean;
373
722
  handler(params: {
374
723
  score: {
375
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
724
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
376
725
  entityId?: string | null | undefined;
377
726
  entityName?: string | null | undefined;
378
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
727
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
379
728
  parentEntityId?: string | null | undefined;
380
729
  parentEntityName?: string | null | undefined;
381
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
730
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
382
731
  rootEntityId?: string | null | undefined;
383
732
  rootEntityName?: string | null | undefined;
384
733
  userId?: string | null | undefined;
@@ -413,10 +762,10 @@ export declare const CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute,
413
762
  } & ServerContext): Promise<{
414
763
  success: boolean;
415
764
  }>;
416
- pathParamSchema?: z.ZodType;
417
- queryParamSchema?: z.ZodType;
418
- bodySchema?: z.ZodType;
419
- responseSchema?: z.ZodType;
765
+ pathParamSchema?: z.ZodSchema;
766
+ queryParamSchema?: z.ZodSchema;
767
+ bodySchema?: z.ZodSchema;
768
+ responseSchema?: z.ZodSchema;
420
769
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
421
770
  maxBodySize?: number;
422
771
  deprecated?: boolean;
@@ -425,13 +774,13 @@ export declare const CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute,
425
774
  onValidationError?: ValidationErrorHook;
426
775
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
427
776
  score: z.ZodObject<{
428
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
777
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
429
778
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
430
779
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
431
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
780
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
432
781
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
433
782
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
783
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
435
784
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
436
785
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
437
786
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -482,10 +831,10 @@ export declare const DELETE_SCORES: Omit<import("@mastra/core/server").ApiRoute,
482
831
  } & ServerContext): Promise<{
483
832
  success: boolean;
484
833
  }>;
485
- pathParamSchema?: z.ZodType;
486
- queryParamSchema?: z.ZodType;
487
- bodySchema?: z.ZodType;
488
- responseSchema?: z.ZodType;
834
+ pathParamSchema?: z.ZodSchema;
835
+ queryParamSchema?: z.ZodSchema;
836
+ bodySchema?: z.ZodSchema;
837
+ responseSchema?: z.ZodSchema;
489
838
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
490
839
  maxBodySize?: number;
491
840
  deprecated?: boolean;
@@ -512,13 +861,13 @@ export declare const GET_SCORE: Omit<import("@mastra/core/server").ApiRoute, "cr
512
861
  scoreId: string;
513
862
  } & ServerContext): Promise<{
514
863
  score: {
515
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
864
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
516
865
  entityId?: string | null | undefined;
517
866
  entityName?: string | null | undefined;
518
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
867
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
519
868
  parentEntityId?: string | null | undefined;
520
869
  parentEntityName?: string | null | undefined;
521
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
870
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
522
871
  rootEntityId?: string | null | undefined;
523
872
  rootEntityName?: string | null | undefined;
524
873
  userId?: string | null | undefined;
@@ -552,10 +901,10 @@ export declare const GET_SCORE: Omit<import("@mastra/core/server").ApiRoute, "cr
552
901
  metadata?: Record<string, unknown> | null | undefined;
553
902
  } | null;
554
903
  }>;
555
- pathParamSchema?: z.ZodType;
556
- queryParamSchema?: z.ZodType;
557
- bodySchema?: z.ZodType;
558
- responseSchema?: z.ZodType;
904
+ pathParamSchema?: z.ZodSchema;
905
+ queryParamSchema?: z.ZodSchema;
906
+ bodySchema?: z.ZodSchema;
907
+ responseSchema?: z.ZodSchema;
559
908
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
560
909
  maxBodySize?: number;
561
910
  deprecated?: boolean;
@@ -566,13 +915,13 @@ export declare const GET_SCORE: Omit<import("@mastra/core/server").ApiRoute, "cr
566
915
  scoreId: z.ZodString;
567
916
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
568
917
  score: z.ZodNullable<z.ZodObject<{
569
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
918
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
570
919
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
571
920
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
572
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
921
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
573
922
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
574
923
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
575
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
924
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
576
925
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
577
926
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
578
927
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -628,7 +977,7 @@ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").Api
628
977
  } | undefined;
629
978
  traceId?: string | undefined;
630
979
  spanId?: string | undefined;
631
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
980
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
632
981
  entityName?: string | undefined;
633
982
  entityVersionId?: string | undefined;
634
983
  parentEntityVersionId?: string | undefined;
@@ -638,9 +987,9 @@ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").Api
638
987
  experimentId?: string | undefined;
639
988
  serviceName?: string | undefined;
640
989
  environment?: string | undefined;
641
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
990
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
642
991
  parentEntityName?: string | undefined;
643
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
992
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
644
993
  rootEntityName?: string | undefined;
645
994
  resourceId?: string | undefined;
646
995
  runId?: string | undefined;
@@ -660,10 +1009,10 @@ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").Api
660
1009
  previousValue?: number | null | undefined;
661
1010
  changePercent?: number | null | undefined;
662
1011
  }>;
663
- pathParamSchema?: z.ZodType;
664
- queryParamSchema?: z.ZodType;
665
- bodySchema?: z.ZodType;
666
- responseSchema?: z.ZodType;
1012
+ pathParamSchema?: z.ZodSchema;
1013
+ queryParamSchema?: z.ZodSchema;
1014
+ bodySchema?: z.ZodSchema;
1015
+ responseSchema?: z.ZodSchema;
667
1016
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
668
1017
  maxBodySize?: number;
669
1018
  deprecated?: boolean;
@@ -691,7 +1040,7 @@ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").Api
691
1040
  }, z.core.$strip>>;
692
1041
  traceId: z.ZodOptional<z.ZodString>;
693
1042
  spanId: z.ZodOptional<z.ZodString>;
694
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1043
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
695
1044
  entityName: z.ZodOptional<z.ZodString>;
696
1045
  entityVersionId: z.ZodOptional<z.ZodString>;
697
1046
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -701,9 +1050,9 @@ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").Api
701
1050
  experimentId: z.ZodOptional<z.ZodString>;
702
1051
  serviceName: z.ZodOptional<z.ZodString>;
703
1052
  environment: z.ZodOptional<z.ZodString>;
704
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1053
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
705
1054
  parentEntityName: z.ZodOptional<z.ZodString>;
706
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1055
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
707
1056
  rootEntityName: z.ZodOptional<z.ZodString>;
708
1057
  resourceId: z.ZodOptional<z.ZodString>;
709
1058
  runId: z.ZodOptional<z.ZodString>;
@@ -750,7 +1099,7 @@ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").Api
750
1099
  } | undefined;
751
1100
  traceId?: string | undefined;
752
1101
  spanId?: string | undefined;
753
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1102
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
754
1103
  entityName?: string | undefined;
755
1104
  entityVersionId?: string | undefined;
756
1105
  parentEntityVersionId?: string | undefined;
@@ -760,9 +1109,9 @@ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").Api
760
1109
  experimentId?: string | undefined;
761
1110
  serviceName?: string | undefined;
762
1111
  environment?: string | undefined;
763
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1112
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
764
1113
  parentEntityName?: string | undefined;
765
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1114
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
766
1115
  rootEntityName?: string | undefined;
767
1116
  resourceId?: string | undefined;
768
1117
  runId?: string | undefined;
@@ -782,10 +1131,10 @@ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").Api
782
1131
  value: number;
783
1132
  }[];
784
1133
  }>;
785
- pathParamSchema?: z.ZodType;
786
- queryParamSchema?: z.ZodType;
787
- bodySchema?: z.ZodType;
788
- responseSchema?: z.ZodType;
1134
+ pathParamSchema?: z.ZodSchema;
1135
+ queryParamSchema?: z.ZodSchema;
1136
+ bodySchema?: z.ZodSchema;
1137
+ responseSchema?: z.ZodSchema;
789
1138
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
790
1139
  maxBodySize?: number;
791
1140
  deprecated?: boolean;
@@ -814,7 +1163,7 @@ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").Api
814
1163
  }, z.core.$strip>>;
815
1164
  traceId: z.ZodOptional<z.ZodString>;
816
1165
  spanId: z.ZodOptional<z.ZodString>;
817
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1166
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
818
1167
  entityName: z.ZodOptional<z.ZodString>;
819
1168
  entityVersionId: z.ZodOptional<z.ZodString>;
820
1169
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -824,9 +1173,9 @@ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").Api
824
1173
  experimentId: z.ZodOptional<z.ZodString>;
825
1174
  serviceName: z.ZodOptional<z.ZodString>;
826
1175
  environment: z.ZodOptional<z.ZodString>;
827
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1176
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
828
1177
  parentEntityName: z.ZodOptional<z.ZodString>;
829
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1178
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
830
1179
  rootEntityName: z.ZodOptional<z.ZodString>;
831
1180
  resourceId: z.ZodOptional<z.ZodString>;
832
1181
  runId: z.ZodOptional<z.ZodString>;
@@ -869,7 +1218,7 @@ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").A
869
1218
  } | undefined;
870
1219
  traceId?: string | undefined;
871
1220
  spanId?: string | undefined;
872
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1221
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
873
1222
  entityName?: string | undefined;
874
1223
  entityVersionId?: string | undefined;
875
1224
  parentEntityVersionId?: string | undefined;
@@ -879,9 +1228,9 @@ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").A
879
1228
  experimentId?: string | undefined;
880
1229
  serviceName?: string | undefined;
881
1230
  environment?: string | undefined;
882
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1231
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
883
1232
  parentEntityName?: string | undefined;
884
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1233
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
885
1234
  rootEntityName?: string | undefined;
886
1235
  resourceId?: string | undefined;
887
1236
  runId?: string | undefined;
@@ -905,10 +1254,10 @@ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").A
905
1254
  }[];
906
1255
  }[];
907
1256
  }>;
908
- pathParamSchema?: z.ZodType;
909
- queryParamSchema?: z.ZodType;
910
- bodySchema?: z.ZodType;
911
- responseSchema?: z.ZodType;
1257
+ pathParamSchema?: z.ZodSchema;
1258
+ queryParamSchema?: z.ZodSchema;
1259
+ bodySchema?: z.ZodSchema;
1260
+ responseSchema?: z.ZodSchema;
912
1261
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
913
1262
  maxBodySize?: number;
914
1263
  deprecated?: boolean;
@@ -943,7 +1292,7 @@ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").A
943
1292
  }, z.core.$strip>>;
944
1293
  traceId: z.ZodOptional<z.ZodString>;
945
1294
  spanId: z.ZodOptional<z.ZodString>;
946
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1295
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
947
1296
  entityName: z.ZodOptional<z.ZodString>;
948
1297
  entityVersionId: z.ZodOptional<z.ZodString>;
949
1298
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -953,9 +1302,9 @@ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").A
953
1302
  experimentId: z.ZodOptional<z.ZodString>;
954
1303
  serviceName: z.ZodOptional<z.ZodString>;
955
1304
  environment: z.ZodOptional<z.ZodString>;
956
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1305
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
957
1306
  parentEntityName: z.ZodOptional<z.ZodString>;
958
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1307
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
959
1308
  rootEntityName: z.ZodOptional<z.ZodString>;
960
1309
  resourceId: z.ZodOptional<z.ZodString>;
961
1310
  runId: z.ZodOptional<z.ZodString>;
@@ -1002,7 +1351,7 @@ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").A
1002
1351
  } | undefined;
1003
1352
  traceId?: string | undefined;
1004
1353
  spanId?: string | undefined;
1005
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1354
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1006
1355
  entityName?: string | undefined;
1007
1356
  entityVersionId?: string | undefined;
1008
1357
  parentEntityVersionId?: string | undefined;
@@ -1012,9 +1361,9 @@ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").A
1012
1361
  experimentId?: string | undefined;
1013
1362
  serviceName?: string | undefined;
1014
1363
  environment?: string | undefined;
1015
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1364
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1016
1365
  parentEntityName?: string | undefined;
1017
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1366
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1018
1367
  rootEntityName?: string | undefined;
1019
1368
  resourceId?: string | undefined;
1020
1369
  runId?: string | undefined;
@@ -1037,10 +1386,10 @@ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").A
1037
1386
  }[];
1038
1387
  }[];
1039
1388
  }>;
1040
- pathParamSchema?: z.ZodType;
1041
- queryParamSchema?: z.ZodType;
1042
- bodySchema?: z.ZodType;
1043
- responseSchema?: z.ZodType;
1389
+ pathParamSchema?: z.ZodSchema;
1390
+ queryParamSchema?: z.ZodSchema;
1391
+ bodySchema?: z.ZodSchema;
1392
+ responseSchema?: z.ZodSchema;
1044
1393
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1045
1394
  maxBodySize?: number;
1046
1395
  deprecated?: boolean;
@@ -1067,7 +1416,7 @@ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").A
1067
1416
  }, z.core.$strip>>;
1068
1417
  traceId: z.ZodOptional<z.ZodString>;
1069
1418
  spanId: z.ZodOptional<z.ZodString>;
1070
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1419
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1071
1420
  entityName: z.ZodOptional<z.ZodString>;
1072
1421
  entityVersionId: z.ZodOptional<z.ZodString>;
1073
1422
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -1077,9 +1426,9 @@ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").A
1077
1426
  experimentId: z.ZodOptional<z.ZodString>;
1078
1427
  serviceName: z.ZodOptional<z.ZodString>;
1079
1428
  environment: z.ZodOptional<z.ZodString>;
1080
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1429
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1081
1430
  parentEntityName: z.ZodOptional<z.ZodString>;
1082
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1431
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1083
1432
  rootEntityName: z.ZodOptional<z.ZodString>;
1084
1433
  resourceId: z.ZodOptional<z.ZodString>;
1085
1434
  runId: z.ZodOptional<z.ZodString>;
@@ -1111,7 +1460,9 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
1111
1460
  responseType: "json";
1112
1461
  streamFormat?: 'sse' | 'stream';
1113
1462
  sseFlushOnConnect?: boolean;
1114
- handler(params: Record<string, unknown> & ServerContext): Promise<{
1463
+ handler(params: {
1464
+ [x: string]: unknown;
1465
+ } & ServerContext): Promise<{
1115
1466
  pagination?: {
1116
1467
  total: number;
1117
1468
  page: number;
@@ -1124,13 +1475,13 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
1124
1475
  } | undefined;
1125
1476
  deltaCursor?: string | undefined;
1126
1477
  feedback: {
1127
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1478
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1128
1479
  entityId?: string | null | undefined;
1129
1480
  entityName?: string | null | undefined;
1130
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1481
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1131
1482
  parentEntityId?: string | null | undefined;
1132
1483
  parentEntityName?: string | null | undefined;
1133
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1484
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1134
1485
  rootEntityId?: string | null | undefined;
1135
1486
  rootEntityName?: string | null | undefined;
1136
1487
  userId?: string | null | undefined;
@@ -1170,10 +1521,10 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
1170
1521
  } | undefined;
1171
1522
  }[];
1172
1523
  }>;
1173
- pathParamSchema?: z.ZodType;
1174
- queryParamSchema?: z.ZodType;
1175
- bodySchema?: z.ZodType;
1176
- responseSchema?: z.ZodType;
1524
+ pathParamSchema?: z.ZodSchema;
1525
+ queryParamSchema?: z.ZodSchema;
1526
+ bodySchema?: z.ZodSchema;
1527
+ responseSchema?: z.ZodSchema;
1177
1528
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1178
1529
  maxBodySize?: number;
1179
1530
  deprecated?: boolean;
@@ -1195,13 +1546,13 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
1195
1546
  }, z.core.$strip>>;
1196
1547
  deltaCursor: z.ZodOptional<z.ZodString>;
1197
1548
  feedback: z.ZodArray<z.ZodObject<{
1198
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1549
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1199
1550
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1200
1551
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1201
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1552
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1202
1553
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1203
1554
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1204
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1555
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1205
1556
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1206
1557
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1207
1558
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1255,13 +1606,13 @@ export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1255
1606
  sseFlushOnConnect?: boolean;
1256
1607
  handler(params: {
1257
1608
  feedback: {
1258
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1609
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1259
1610
  entityId?: string | null | undefined;
1260
1611
  entityName?: string | null | undefined;
1261
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1612
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1262
1613
  parentEntityId?: string | null | undefined;
1263
1614
  parentEntityName?: string | null | undefined;
1264
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1615
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1265
1616
  rootEntityId?: string | null | undefined;
1266
1617
  rootEntityName?: string | null | undefined;
1267
1618
  userId?: string | null | undefined;
@@ -1296,10 +1647,10 @@ export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1296
1647
  } & ServerContext): Promise<{
1297
1648
  success: boolean;
1298
1649
  }>;
1299
- pathParamSchema?: z.ZodType;
1300
- queryParamSchema?: z.ZodType;
1301
- bodySchema?: z.ZodType;
1302
- responseSchema?: z.ZodType;
1650
+ pathParamSchema?: z.ZodSchema;
1651
+ queryParamSchema?: z.ZodSchema;
1652
+ bodySchema?: z.ZodSchema;
1653
+ responseSchema?: z.ZodSchema;
1303
1654
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1304
1655
  maxBodySize?: number;
1305
1656
  deprecated?: boolean;
@@ -1308,13 +1659,13 @@ export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1308
1659
  onValidationError?: ValidationErrorHook;
1309
1660
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1310
1661
  feedback: z.ZodObject<{
1311
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1662
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1312
1663
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1313
1664
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1314
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1665
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1315
1666
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1316
1667
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1317
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1668
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1318
1669
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1319
1670
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1320
1671
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1368,10 +1719,10 @@ export declare const DELETE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1368
1719
  } & ServerContext): Promise<{
1369
1720
  success: boolean;
1370
1721
  }>;
1371
- pathParamSchema?: z.ZodType;
1372
- queryParamSchema?: z.ZodType;
1373
- bodySchema?: z.ZodType;
1374
- responseSchema?: z.ZodType;
1722
+ pathParamSchema?: z.ZodSchema;
1723
+ queryParamSchema?: z.ZodSchema;
1724
+ bodySchema?: z.ZodSchema;
1725
+ responseSchema?: z.ZodSchema;
1375
1726
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1376
1727
  maxBodySize?: number;
1377
1728
  deprecated?: boolean;
@@ -1399,13 +1750,13 @@ export declare const UPDATE_FEEDBACK_REVIEW_STATUS: Omit<import("@mastra/core/se
1399
1750
  } & {
1400
1751
  reviewStatus: "needs-review" | "reviewed";
1401
1752
  } & ServerContext): Promise<{
1402
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1753
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1403
1754
  entityId?: string | null | undefined;
1404
1755
  entityName?: string | null | undefined;
1405
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1756
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1406
1757
  parentEntityId?: string | null | undefined;
1407
1758
  parentEntityName?: string | null | undefined;
1408
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1759
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1409
1760
  rootEntityId?: string | null | undefined;
1410
1761
  rootEntityName?: string | null | undefined;
1411
1762
  userId?: string | null | undefined;
@@ -1438,10 +1789,10 @@ export declare const UPDATE_FEEDBACK_REVIEW_STATUS: Omit<import("@mastra/core/se
1438
1789
  metadata?: Record<string, unknown> | null | undefined;
1439
1790
  reviewStatus: "needs-review" | "reviewed";
1440
1791
  }>;
1441
- pathParamSchema?: z.ZodType;
1442
- queryParamSchema?: z.ZodType;
1443
- bodySchema?: z.ZodType;
1444
- responseSchema?: z.ZodType;
1792
+ pathParamSchema?: z.ZodSchema;
1793
+ queryParamSchema?: z.ZodSchema;
1794
+ bodySchema?: z.ZodSchema;
1795
+ responseSchema?: z.ZodSchema;
1445
1796
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1446
1797
  maxBodySize?: number;
1447
1798
  deprecated?: boolean;
@@ -1456,13 +1807,13 @@ export declare const UPDATE_FEEDBACK_REVIEW_STATUS: Omit<import("@mastra/core/se
1456
1807
  reviewed: "reviewed";
1457
1808
  }>;
1458
1809
  }, z.core.$strip>, z.ZodObject<{
1459
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1810
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1460
1811
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1461
1812
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1462
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1813
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1463
1814
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1464
1815
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1465
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1816
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1466
1817
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1467
1818
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1468
1819
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1520,7 +1871,7 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1520
1871
  } | undefined;
1521
1872
  traceId?: string | undefined;
1522
1873
  spanId?: string | undefined;
1523
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1874
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1524
1875
  entityName?: string | undefined;
1525
1876
  entityVersionId?: string | undefined;
1526
1877
  parentEntityVersionId?: string | undefined;
@@ -1530,9 +1881,9 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1530
1881
  experimentId?: string | undefined;
1531
1882
  serviceName?: string | undefined;
1532
1883
  environment?: string | undefined;
1533
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1884
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1534
1885
  parentEntityName?: string | undefined;
1535
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1886
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1536
1887
  rootEntityName?: string | undefined;
1537
1888
  resourceId?: string | undefined;
1538
1889
  runId?: string | undefined;
@@ -1553,10 +1904,10 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1553
1904
  previousValue?: number | null | undefined;
1554
1905
  changePercent?: number | null | undefined;
1555
1906
  }>;
1556
- pathParamSchema?: z.ZodType;
1557
- queryParamSchema?: z.ZodType;
1558
- bodySchema?: z.ZodType;
1559
- responseSchema?: z.ZodType;
1907
+ pathParamSchema?: z.ZodSchema;
1908
+ queryParamSchema?: z.ZodSchema;
1909
+ bodySchema?: z.ZodSchema;
1910
+ responseSchema?: z.ZodSchema;
1560
1911
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1561
1912
  maxBodySize?: number;
1562
1913
  deprecated?: boolean;
@@ -1584,7 +1935,7 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1584
1935
  }, z.core.$strip>>;
1585
1936
  traceId: z.ZodOptional<z.ZodString>;
1586
1937
  spanId: z.ZodOptional<z.ZodString>;
1587
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1938
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1588
1939
  entityName: z.ZodOptional<z.ZodString>;
1589
1940
  entityVersionId: z.ZodOptional<z.ZodString>;
1590
1941
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -1594,9 +1945,9 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1594
1945
  experimentId: z.ZodOptional<z.ZodString>;
1595
1946
  serviceName: z.ZodOptional<z.ZodString>;
1596
1947
  environment: z.ZodOptional<z.ZodString>;
1597
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1948
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1598
1949
  parentEntityName: z.ZodOptional<z.ZodString>;
1599
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1950
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1600
1951
  rootEntityName: z.ZodOptional<z.ZodString>;
1601
1952
  resourceId: z.ZodOptional<z.ZodString>;
1602
1953
  runId: z.ZodOptional<z.ZodString>;
@@ -1647,7 +1998,7 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1647
1998
  } | undefined;
1648
1999
  traceId?: string | undefined;
1649
2000
  spanId?: string | undefined;
1650
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2001
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1651
2002
  entityName?: string | undefined;
1652
2003
  entityVersionId?: string | undefined;
1653
2004
  parentEntityVersionId?: string | undefined;
@@ -1657,9 +2008,9 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1657
2008
  experimentId?: string | undefined;
1658
2009
  serviceName?: string | undefined;
1659
2010
  environment?: string | undefined;
1660
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2011
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1661
2012
  parentEntityName?: string | undefined;
1662
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2013
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1663
2014
  rootEntityName?: string | undefined;
1664
2015
  resourceId?: string | undefined;
1665
2016
  runId?: string | undefined;
@@ -1680,10 +2031,10 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1680
2031
  value: number;
1681
2032
  }[];
1682
2033
  }>;
1683
- pathParamSchema?: z.ZodType;
1684
- queryParamSchema?: z.ZodType;
1685
- bodySchema?: z.ZodType;
1686
- responseSchema?: z.ZodType;
2034
+ pathParamSchema?: z.ZodSchema;
2035
+ queryParamSchema?: z.ZodSchema;
2036
+ bodySchema?: z.ZodSchema;
2037
+ responseSchema?: z.ZodSchema;
1687
2038
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1688
2039
  maxBodySize?: number;
1689
2040
  deprecated?: boolean;
@@ -1712,7 +2063,7 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1712
2063
  }, z.core.$strip>>;
1713
2064
  traceId: z.ZodOptional<z.ZodString>;
1714
2065
  spanId: z.ZodOptional<z.ZodString>;
1715
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2066
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1716
2067
  entityName: z.ZodOptional<z.ZodString>;
1717
2068
  entityVersionId: z.ZodOptional<z.ZodString>;
1718
2069
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -1722,9 +2073,9 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1722
2073
  experimentId: z.ZodOptional<z.ZodString>;
1723
2074
  serviceName: z.ZodOptional<z.ZodString>;
1724
2075
  environment: z.ZodOptional<z.ZodString>;
1725
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2076
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1726
2077
  parentEntityName: z.ZodOptional<z.ZodString>;
1727
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2078
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1728
2079
  rootEntityName: z.ZodOptional<z.ZodString>;
1729
2080
  resourceId: z.ZodOptional<z.ZodString>;
1730
2081
  runId: z.ZodOptional<z.ZodString>;
@@ -1771,7 +2122,7 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1771
2122
  } | undefined;
1772
2123
  traceId?: string | undefined;
1773
2124
  spanId?: string | undefined;
1774
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2125
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1775
2126
  entityName?: string | undefined;
1776
2127
  entityVersionId?: string | undefined;
1777
2128
  parentEntityVersionId?: string | undefined;
@@ -1781,9 +2132,9 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1781
2132
  experimentId?: string | undefined;
1782
2133
  serviceName?: string | undefined;
1783
2134
  environment?: string | undefined;
1784
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2135
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1785
2136
  parentEntityName?: string | undefined;
1786
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2137
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1787
2138
  rootEntityName?: string | undefined;
1788
2139
  resourceId?: string | undefined;
1789
2140
  runId?: string | undefined;
@@ -1808,10 +2159,10 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1808
2159
  }[];
1809
2160
  }[];
1810
2161
  }>;
1811
- pathParamSchema?: z.ZodType;
1812
- queryParamSchema?: z.ZodType;
1813
- bodySchema?: z.ZodType;
1814
- responseSchema?: z.ZodType;
2162
+ pathParamSchema?: z.ZodSchema;
2163
+ queryParamSchema?: z.ZodSchema;
2164
+ bodySchema?: z.ZodSchema;
2165
+ responseSchema?: z.ZodSchema;
1815
2166
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1816
2167
  maxBodySize?: number;
1817
2168
  deprecated?: boolean;
@@ -1846,7 +2197,7 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1846
2197
  }, z.core.$strip>>;
1847
2198
  traceId: z.ZodOptional<z.ZodString>;
1848
2199
  spanId: z.ZodOptional<z.ZodString>;
1849
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2200
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1850
2201
  entityName: z.ZodOptional<z.ZodString>;
1851
2202
  entityVersionId: z.ZodOptional<z.ZodString>;
1852
2203
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -1856,9 +2207,9 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1856
2207
  experimentId: z.ZodOptional<z.ZodString>;
1857
2208
  serviceName: z.ZodOptional<z.ZodString>;
1858
2209
  environment: z.ZodOptional<z.ZodString>;
1859
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2210
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1860
2211
  parentEntityName: z.ZodOptional<z.ZodString>;
1861
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2212
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1862
2213
  rootEntityName: z.ZodOptional<z.ZodString>;
1863
2214
  resourceId: z.ZodOptional<z.ZodString>;
1864
2215
  runId: z.ZodOptional<z.ZodString>;
@@ -1909,7 +2260,7 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1909
2260
  } | undefined;
1910
2261
  traceId?: string | undefined;
1911
2262
  spanId?: string | undefined;
1912
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2263
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1913
2264
  entityName?: string | undefined;
1914
2265
  entityVersionId?: string | undefined;
1915
2266
  parentEntityVersionId?: string | undefined;
@@ -1919,9 +2270,9 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1919
2270
  experimentId?: string | undefined;
1920
2271
  serviceName?: string | undefined;
1921
2272
  environment?: string | undefined;
1922
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2273
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1923
2274
  parentEntityName?: string | undefined;
1924
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2275
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1925
2276
  rootEntityName?: string | undefined;
1926
2277
  resourceId?: string | undefined;
1927
2278
  runId?: string | undefined;
@@ -1945,10 +2296,10 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1945
2296
  }[];
1946
2297
  }[];
1947
2298
  }>;
1948
- pathParamSchema?: z.ZodType;
1949
- queryParamSchema?: z.ZodType;
1950
- bodySchema?: z.ZodType;
1951
- responseSchema?: z.ZodType;
2299
+ pathParamSchema?: z.ZodSchema;
2300
+ queryParamSchema?: z.ZodSchema;
2301
+ bodySchema?: z.ZodSchema;
2302
+ responseSchema?: z.ZodSchema;
1952
2303
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1953
2304
  maxBodySize?: number;
1954
2305
  deprecated?: boolean;
@@ -1975,7 +2326,7 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1975
2326
  }, z.core.$strip>>;
1976
2327
  traceId: z.ZodOptional<z.ZodString>;
1977
2328
  spanId: z.ZodOptional<z.ZodString>;
1978
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2329
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1979
2330
  entityName: z.ZodOptional<z.ZodString>;
1980
2331
  entityVersionId: z.ZodOptional<z.ZodString>;
1981
2332
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -1985,9 +2336,9 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1985
2336
  experimentId: z.ZodOptional<z.ZodString>;
1986
2337
  serviceName: z.ZodOptional<z.ZodString>;
1987
2338
  environment: z.ZodOptional<z.ZodString>;
1988
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2339
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1989
2340
  parentEntityName: z.ZodOptional<z.ZodString>;
1990
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2341
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1991
2342
  rootEntityName: z.ZodOptional<z.ZodString>;
1992
2343
  resourceId: z.ZodOptional<z.ZodString>;
1993
2344
  runId: z.ZodOptional<z.ZodString>;
@@ -2023,7 +2374,9 @@ export declare const LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute,
2023
2374
  responseType: "json";
2024
2375
  streamFormat?: 'sse' | 'stream';
2025
2376
  sseFlushOnConnect?: boolean;
2026
- handler(params: Record<string, unknown> & ServerContext): Promise<{
2377
+ handler(params: {
2378
+ [x: string]: unknown;
2379
+ } & ServerContext): Promise<{
2027
2380
  pagination?: {
2028
2381
  total: number;
2029
2382
  page: number;
@@ -2036,13 +2389,13 @@ export declare const LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute,
2036
2389
  } | undefined;
2037
2390
  deltaCursor?: string | undefined;
2038
2391
  metrics: {
2039
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
2392
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
2040
2393
  entityId?: string | null | undefined;
2041
2394
  entityName?: string | null | undefined;
2042
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
2395
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
2043
2396
  parentEntityId?: string | null | undefined;
2044
2397
  parentEntityName?: string | null | undefined;
2045
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
2398
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
2046
2399
  rootEntityId?: string | null | undefined;
2047
2400
  rootEntityName?: string | null | undefined;
2048
2401
  userId?: string | null | undefined;
@@ -2077,10 +2430,10 @@ export declare const LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute,
2077
2430
  metadata?: Record<string, unknown> | null | undefined;
2078
2431
  }[];
2079
2432
  }>;
2080
- pathParamSchema?: z.ZodType;
2081
- queryParamSchema?: z.ZodType;
2082
- bodySchema?: z.ZodType;
2083
- responseSchema?: z.ZodType;
2433
+ pathParamSchema?: z.ZodSchema;
2434
+ queryParamSchema?: z.ZodSchema;
2435
+ bodySchema?: z.ZodSchema;
2436
+ responseSchema?: z.ZodSchema;
2084
2437
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2085
2438
  maxBodySize?: number;
2086
2439
  deprecated?: boolean;
@@ -2102,13 +2455,13 @@ export declare const LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute,
2102
2455
  }, z.core.$strip>>;
2103
2456
  deltaCursor: z.ZodOptional<z.ZodString>;
2104
2457
  metrics: z.ZodArray<z.ZodObject<{
2105
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
2458
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
2106
2459
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2107
2460
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2108
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
2461
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
2109
2462
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2110
2463
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2111
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
2464
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
2112
2465
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2113
2466
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2114
2467
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2165,7 +2518,7 @@ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").Ap
2165
2518
  } | undefined;
2166
2519
  traceId?: string | undefined;
2167
2520
  spanId?: string | undefined;
2168
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2521
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2169
2522
  entityName?: string | undefined;
2170
2523
  entityVersionId?: string | undefined;
2171
2524
  parentEntityVersionId?: string | undefined;
@@ -2175,9 +2528,9 @@ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").Ap
2175
2528
  experimentId?: string | undefined;
2176
2529
  serviceName?: string | undefined;
2177
2530
  environment?: string | undefined;
2178
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2531
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2179
2532
  parentEntityName?: string | undefined;
2180
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2533
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2181
2534
  rootEntityName?: string | undefined;
2182
2535
  resourceId?: string | undefined;
2183
2536
  runId?: string | undefined;
@@ -2204,10 +2557,10 @@ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").Ap
2204
2557
  previousEstimatedCost?: number | null | undefined;
2205
2558
  costChangePercent?: number | null | undefined;
2206
2559
  }>;
2207
- pathParamSchema?: z.ZodType;
2208
- queryParamSchema?: z.ZodType;
2209
- bodySchema?: z.ZodType;
2210
- responseSchema?: z.ZodType;
2560
+ pathParamSchema?: z.ZodSchema;
2561
+ queryParamSchema?: z.ZodSchema;
2562
+ bodySchema?: z.ZodSchema;
2563
+ responseSchema?: z.ZodSchema;
2211
2564
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2212
2565
  maxBodySize?: number;
2213
2566
  deprecated?: boolean;
@@ -2250,7 +2603,7 @@ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").Ap
2250
2603
  }, z.core.$strip>>;
2251
2604
  traceId: z.ZodOptional<z.ZodString>;
2252
2605
  spanId: z.ZodOptional<z.ZodString>;
2253
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2606
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2254
2607
  entityName: z.ZodOptional<z.ZodString>;
2255
2608
  entityVersionId: z.ZodOptional<z.ZodString>;
2256
2609
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -2260,9 +2613,9 @@ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").Ap
2260
2613
  experimentId: z.ZodOptional<z.ZodString>;
2261
2614
  serviceName: z.ZodOptional<z.ZodString>;
2262
2615
  environment: z.ZodOptional<z.ZodString>;
2263
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2616
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2264
2617
  parentEntityName: z.ZodOptional<z.ZodString>;
2265
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2618
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2266
2619
  rootEntityName: z.ZodOptional<z.ZodString>;
2267
2620
  resourceId: z.ZodOptional<z.ZodString>;
2268
2621
  runId: z.ZodOptional<z.ZodString>;
@@ -2316,7 +2669,7 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2316
2669
  } | undefined;
2317
2670
  traceId?: string | undefined;
2318
2671
  spanId?: string | undefined;
2319
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2672
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2320
2673
  entityName?: string | undefined;
2321
2674
  entityVersionId?: string | undefined;
2322
2675
  parentEntityVersionId?: string | undefined;
@@ -2326,9 +2679,9 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2326
2679
  experimentId?: string | undefined;
2327
2680
  serviceName?: string | undefined;
2328
2681
  environment?: string | undefined;
2329
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2682
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2330
2683
  parentEntityName?: string | undefined;
2331
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2684
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2332
2685
  rootEntityName?: string | undefined;
2333
2686
  resourceId?: string | undefined;
2334
2687
  runId?: string | undefined;
@@ -2355,10 +2708,10 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2355
2708
  costUnit?: string | null | undefined;
2356
2709
  }[];
2357
2710
  }>;
2358
- pathParamSchema?: z.ZodType;
2359
- queryParamSchema?: z.ZodType;
2360
- bodySchema?: z.ZodType;
2361
- responseSchema?: z.ZodType;
2711
+ pathParamSchema?: z.ZodSchema;
2712
+ queryParamSchema?: z.ZodSchema;
2713
+ bodySchema?: z.ZodSchema;
2714
+ responseSchema?: z.ZodSchema;
2362
2715
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2363
2716
  maxBodySize?: number;
2364
2717
  deprecated?: boolean;
@@ -2402,7 +2755,7 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2402
2755
  }, z.core.$strip>>;
2403
2756
  traceId: z.ZodOptional<z.ZodString>;
2404
2757
  spanId: z.ZodOptional<z.ZodString>;
2405
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2758
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2406
2759
  entityName: z.ZodOptional<z.ZodString>;
2407
2760
  entityVersionId: z.ZodOptional<z.ZodString>;
2408
2761
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -2412,9 +2765,9 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2412
2765
  experimentId: z.ZodOptional<z.ZodString>;
2413
2766
  serviceName: z.ZodOptional<z.ZodString>;
2414
2767
  environment: z.ZodOptional<z.ZodString>;
2415
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2768
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2416
2769
  parentEntityName: z.ZodOptional<z.ZodString>;
2417
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2770
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2418
2771
  rootEntityName: z.ZodOptional<z.ZodString>;
2419
2772
  resourceId: z.ZodOptional<z.ZodString>;
2420
2773
  runId: z.ZodOptional<z.ZodString>;
@@ -2467,7 +2820,7 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2467
2820
  } | undefined;
2468
2821
  traceId?: string | undefined;
2469
2822
  spanId?: string | undefined;
2470
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2823
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2471
2824
  entityName?: string | undefined;
2472
2825
  entityVersionId?: string | undefined;
2473
2826
  parentEntityVersionId?: string | undefined;
@@ -2477,9 +2830,9 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2477
2830
  experimentId?: string | undefined;
2478
2831
  serviceName?: string | undefined;
2479
2832
  environment?: string | undefined;
2480
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2833
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2481
2834
  parentEntityName?: string | undefined;
2482
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2835
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2483
2836
  rootEntityName?: string | undefined;
2484
2837
  resourceId?: string | undefined;
2485
2838
  runId?: string | undefined;
@@ -2508,10 +2861,10 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2508
2861
  }[];
2509
2862
  }[];
2510
2863
  }>;
2511
- pathParamSchema?: z.ZodType;
2512
- queryParamSchema?: z.ZodType;
2513
- bodySchema?: z.ZodType;
2514
- responseSchema?: z.ZodType;
2864
+ pathParamSchema?: z.ZodSchema;
2865
+ queryParamSchema?: z.ZodSchema;
2866
+ bodySchema?: z.ZodSchema;
2867
+ responseSchema?: z.ZodSchema;
2515
2868
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2516
2869
  maxBodySize?: number;
2517
2870
  deprecated?: boolean;
@@ -2561,7 +2914,7 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2561
2914
  }, z.core.$strip>>;
2562
2915
  traceId: z.ZodOptional<z.ZodString>;
2563
2916
  spanId: z.ZodOptional<z.ZodString>;
2564
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2917
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2565
2918
  entityName: z.ZodOptional<z.ZodString>;
2566
2919
  entityVersionId: z.ZodOptional<z.ZodString>;
2567
2920
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -2571,9 +2924,9 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2571
2924
  experimentId: z.ZodOptional<z.ZodString>;
2572
2925
  serviceName: z.ZodOptional<z.ZodString>;
2573
2926
  environment: z.ZodOptional<z.ZodString>;
2574
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2927
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2575
2928
  parentEntityName: z.ZodOptional<z.ZodString>;
2576
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2929
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2577
2930
  rootEntityName: z.ZodOptional<z.ZodString>;
2578
2931
  resourceId: z.ZodOptional<z.ZodString>;
2579
2932
  runId: z.ZodOptional<z.ZodString>;
@@ -2624,7 +2977,7 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2624
2977
  } | undefined;
2625
2978
  traceId?: string | undefined;
2626
2979
  spanId?: string | undefined;
2627
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2980
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2628
2981
  entityName?: string | undefined;
2629
2982
  entityVersionId?: string | undefined;
2630
2983
  parentEntityVersionId?: string | undefined;
@@ -2634,9 +2987,9 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2634
2987
  experimentId?: string | undefined;
2635
2988
  serviceName?: string | undefined;
2636
2989
  environment?: string | undefined;
2637
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2990
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2638
2991
  parentEntityName?: string | undefined;
2639
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2992
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2640
2993
  rootEntityName?: string | undefined;
2641
2994
  resourceId?: string | undefined;
2642
2995
  runId?: string | undefined;
@@ -2662,10 +3015,10 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2662
3015
  }[];
2663
3016
  }[];
2664
3017
  }>;
2665
- pathParamSchema?: z.ZodType;
2666
- queryParamSchema?: z.ZodType;
2667
- bodySchema?: z.ZodType;
2668
- responseSchema?: z.ZodType;
3018
+ pathParamSchema?: z.ZodSchema;
3019
+ queryParamSchema?: z.ZodSchema;
3020
+ bodySchema?: z.ZodSchema;
3021
+ responseSchema?: z.ZodSchema;
2669
3022
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2670
3023
  maxBodySize?: number;
2671
3024
  deprecated?: boolean;
@@ -2691,7 +3044,7 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2691
3044
  }, z.core.$strip>>;
2692
3045
  traceId: z.ZodOptional<z.ZodString>;
2693
3046
  spanId: z.ZodOptional<z.ZodString>;
2694
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
3047
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2695
3048
  entityName: z.ZodOptional<z.ZodString>;
2696
3049
  entityVersionId: z.ZodOptional<z.ZodString>;
2697
3050
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -2701,9 +3054,9 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2701
3054
  experimentId: z.ZodOptional<z.ZodString>;
2702
3055
  serviceName: z.ZodOptional<z.ZodString>;
2703
3056
  environment: z.ZodOptional<z.ZodString>;
2704
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
3057
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2705
3058
  parentEntityName: z.ZodOptional<z.ZodString>;
2706
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
3059
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2707
3060
  rootEntityName: z.ZodOptional<z.ZodString>;
2708
3061
  resourceId: z.ZodOptional<z.ZodString>;
2709
3062
  runId: z.ZodOptional<z.ZodString>;
@@ -2738,13 +3091,15 @@ export declare const GET_METRIC_NAMES: Omit<import("@mastra/core/server").ApiRou
2738
3091
  responseType: "json";
2739
3092
  streamFormat?: 'sse' | 'stream';
2740
3093
  sseFlushOnConnect?: boolean;
2741
- handler(params: Record<string, unknown> & ServerContext): Promise<{
3094
+ handler(params: {
3095
+ [x: string]: unknown;
3096
+ } & ServerContext): Promise<{
2742
3097
  names: string[];
2743
3098
  }>;
2744
- pathParamSchema?: z.ZodType;
2745
- queryParamSchema?: z.ZodType;
2746
- bodySchema?: z.ZodType;
2747
- responseSchema?: z.ZodType;
3099
+ pathParamSchema?: z.ZodSchema;
3100
+ queryParamSchema?: z.ZodSchema;
3101
+ bodySchema?: z.ZodSchema;
3102
+ responseSchema?: z.ZodSchema;
2748
3103
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2749
3104
  maxBodySize?: number;
2750
3105
  deprecated?: boolean;
@@ -2765,13 +3120,15 @@ export declare const GET_METRIC_LABEL_KEYS: Omit<import("@mastra/core/server").A
2765
3120
  responseType: "json";
2766
3121
  streamFormat?: 'sse' | 'stream';
2767
3122
  sseFlushOnConnect?: boolean;
2768
- handler(params: Record<string, unknown> & ServerContext): Promise<{
3123
+ handler(params: {
3124
+ [x: string]: unknown;
3125
+ } & ServerContext): Promise<{
2769
3126
  keys: string[];
2770
3127
  }>;
2771
- pathParamSchema?: z.ZodType;
2772
- queryParamSchema?: z.ZodType;
2773
- bodySchema?: z.ZodType;
2774
- responseSchema?: z.ZodType;
3128
+ pathParamSchema?: z.ZodSchema;
3129
+ queryParamSchema?: z.ZodSchema;
3130
+ bodySchema?: z.ZodSchema;
3131
+ responseSchema?: z.ZodSchema;
2775
3132
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2776
3133
  maxBodySize?: number;
2777
3134
  deprecated?: boolean;
@@ -2792,13 +3149,15 @@ export declare const GET_METRIC_LABEL_VALUES: Omit<import("@mastra/core/server")
2792
3149
  responseType: "json";
2793
3150
  streamFormat?: 'sse' | 'stream';
2794
3151
  sseFlushOnConnect?: boolean;
2795
- handler(params: Record<string, unknown> & ServerContext): Promise<{
3152
+ handler(params: {
3153
+ [x: string]: unknown;
3154
+ } & ServerContext): Promise<{
2796
3155
  values: string[];
2797
3156
  }>;
2798
- pathParamSchema?: z.ZodType;
2799
- queryParamSchema?: z.ZodType;
2800
- bodySchema?: z.ZodType;
2801
- responseSchema?: z.ZodType;
3157
+ pathParamSchema?: z.ZodSchema;
3158
+ queryParamSchema?: z.ZodSchema;
3159
+ bodySchema?: z.ZodSchema;
3160
+ responseSchema?: z.ZodSchema;
2802
3161
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2803
3162
  maxBodySize?: number;
2804
3163
  deprecated?: boolean;
@@ -2820,12 +3179,12 @@ export declare const GET_ENTITY_TYPES: Omit<import("@mastra/core/server").ApiRou
2820
3179
  streamFormat?: 'sse' | 'stream';
2821
3180
  sseFlushOnConnect?: boolean;
2822
3181
  handler(params: ServerContext): Promise<{
2823
- entityTypes: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType[];
3182
+ entityTypes: import("../../_types/@internal_core/dist/storage/index.js").EntityType[];
2824
3183
  }>;
2825
- pathParamSchema?: z.ZodType;
2826
- queryParamSchema?: z.ZodType;
2827
- bodySchema?: z.ZodType;
2828
- responseSchema?: z.ZodType;
3184
+ pathParamSchema?: z.ZodSchema;
3185
+ queryParamSchema?: z.ZodSchema;
3186
+ bodySchema?: z.ZodSchema;
3187
+ responseSchema?: z.ZodSchema;
2829
3188
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2830
3189
  maxBodySize?: number;
2831
3190
  deprecated?: boolean;
@@ -2833,7 +3192,7 @@ export declare const GET_ENTITY_TYPES: Omit<import("@mastra/core/server").ApiRou
2833
3192
  fga?: import("@mastra/core/auth").FGARouteConfig;
2834
3193
  onValidationError?: ValidationErrorHook;
2835
3194
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
2836
- entityTypes: z.ZodArray<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
3195
+ entityTypes: z.ZodArray<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2837
3196
  }, z.core.$strip>> | undefined;
2838
3197
  } & {
2839
3198
  readonly _mastraSchemaRoute: true;
@@ -2844,13 +3203,15 @@ export declare const GET_ENTITY_NAMES: Omit<import("@mastra/core/server").ApiRou
2844
3203
  responseType: "json";
2845
3204
  streamFormat?: 'sse' | 'stream';
2846
3205
  sseFlushOnConnect?: boolean;
2847
- handler(params: Record<string, unknown> & ServerContext): Promise<{
3206
+ handler(params: {
3207
+ [x: string]: unknown;
3208
+ } & ServerContext): Promise<{
2848
3209
  names: string[];
2849
3210
  }>;
2850
- pathParamSchema?: z.ZodType;
2851
- queryParamSchema?: z.ZodType;
2852
- bodySchema?: z.ZodType;
2853
- responseSchema?: z.ZodType;
3211
+ pathParamSchema?: z.ZodSchema;
3212
+ queryParamSchema?: z.ZodSchema;
3213
+ bodySchema?: z.ZodSchema;
3214
+ responseSchema?: z.ZodSchema;
2854
3215
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2855
3216
  maxBodySize?: number;
2856
3217
  deprecated?: boolean;
@@ -2874,10 +3235,10 @@ export declare const GET_SERVICE_NAMES: Omit<import("@mastra/core/server").ApiRo
2874
3235
  handler(params: ServerContext): Promise<{
2875
3236
  serviceNames: string[];
2876
3237
  }>;
2877
- pathParamSchema?: z.ZodType;
2878
- queryParamSchema?: z.ZodType;
2879
- bodySchema?: z.ZodType;
2880
- responseSchema?: z.ZodType;
3238
+ pathParamSchema?: z.ZodSchema;
3239
+ queryParamSchema?: z.ZodSchema;
3240
+ bodySchema?: z.ZodSchema;
3241
+ responseSchema?: z.ZodSchema;
2881
3242
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2882
3243
  maxBodySize?: number;
2883
3244
  deprecated?: boolean;
@@ -2899,10 +3260,10 @@ export declare const GET_ENVIRONMENTS: Omit<import("@mastra/core/server").ApiRou
2899
3260
  handler(params: ServerContext): Promise<{
2900
3261
  environments: string[];
2901
3262
  }>;
2902
- pathParamSchema?: z.ZodType;
2903
- queryParamSchema?: z.ZodType;
2904
- bodySchema?: z.ZodType;
2905
- responseSchema?: z.ZodType;
3263
+ pathParamSchema?: z.ZodSchema;
3264
+ queryParamSchema?: z.ZodSchema;
3265
+ bodySchema?: z.ZodSchema;
3266
+ responseSchema?: z.ZodSchema;
2906
3267
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2907
3268
  maxBodySize?: number;
2908
3269
  deprecated?: boolean;
@@ -2921,13 +3282,15 @@ export declare const GET_TAGS: Omit<import("@mastra/core/server").ApiRoute, "cre
2921
3282
  responseType: "json";
2922
3283
  streamFormat?: 'sse' | 'stream';
2923
3284
  sseFlushOnConnect?: boolean;
2924
- handler(params: Record<string, unknown> & ServerContext): Promise<{
3285
+ handler(params: {
3286
+ [x: string]: unknown;
3287
+ } & ServerContext): Promise<{
2925
3288
  tags: string[];
2926
3289
  }>;
2927
- pathParamSchema?: z.ZodType;
2928
- queryParamSchema?: z.ZodType;
2929
- bodySchema?: z.ZodType;
2930
- responseSchema?: z.ZodType;
3290
+ pathParamSchema?: z.ZodSchema;
3291
+ queryParamSchema?: z.ZodSchema;
3292
+ bodySchema?: z.ZodSchema;
3293
+ responseSchema?: z.ZodSchema;
2931
3294
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2932
3295
  maxBodySize?: number;
2933
3296
  deprecated?: boolean;
@@ -2962,14 +3325,27 @@ export declare const NEW_ROUTES: {
2962
3325
  field: "endedAt" | "startedAt";
2963
3326
  direction: "asc" | "desc";
2964
3327
  }[] | undefined;
2965
- page: {
3328
+ page?: {
2966
3329
  limit: number;
2967
3330
  after?: string | null | undefined;
2968
- };
3331
+ } | undefined;
3332
+ pagination?: {
3333
+ page: number;
3334
+ perPage: number;
3335
+ } | undefined;
3336
+ mode?: "delta" | undefined;
3337
+ after?: string | undefined;
3338
+ limit?: number | undefined;
2969
3339
  } & ServerContext): Promise<{
2970
3340
  traces: {
2971
3341
  traceId: string;
2972
3342
  rootSpanId: string;
3343
+ name: string;
3344
+ entityId: string | null;
3345
+ parentSpanId: string | null;
3346
+ createdAt: string;
3347
+ metadata: Record<string, unknown> | null;
3348
+ inputPreview: string | null;
2973
3349
  threadId: string | null;
2974
3350
  resourceId: string | null;
2975
3351
  startedAt: string;
@@ -2982,6 +3358,56 @@ export declare const NEW_ROUTES: {
2982
3358
  page: {
2983
3359
  next: string | null;
2984
3360
  };
3361
+ } | {
3362
+ traces: {
3363
+ traceId: string;
3364
+ rootSpanId: string;
3365
+ name: string;
3366
+ entityId: string | null;
3367
+ parentSpanId: string | null;
3368
+ createdAt: string;
3369
+ metadata: Record<string, unknown> | null;
3370
+ inputPreview: string | null;
3371
+ threadId: string | null;
3372
+ resourceId: string | null;
3373
+ startedAt: string;
3374
+ endedAt: string;
3375
+ entityName: string | null;
3376
+ entityType: string | null;
3377
+ environment: string | null;
3378
+ status: "error" | "success";
3379
+ }[];
3380
+ pagination: {
3381
+ total: number;
3382
+ page: number;
3383
+ perPage: number | false;
3384
+ hasMore: boolean;
3385
+ };
3386
+ deltaCursor?: string | undefined;
3387
+ } | {
3388
+ traces: {
3389
+ traceId: string;
3390
+ rootSpanId: string;
3391
+ name: string;
3392
+ entityId: string | null;
3393
+ parentSpanId: string | null;
3394
+ createdAt: string;
3395
+ metadata: Record<string, unknown> | null;
3396
+ inputPreview: string | null;
3397
+ threadId: string | null;
3398
+ resourceId: string | null;
3399
+ startedAt: string;
3400
+ endedAt: string;
3401
+ entityName: string | null;
3402
+ entityType: string | null;
3403
+ environment: string | null;
3404
+ status: "error" | "success";
3405
+ }[];
3406
+ delta: {
3407
+ limit: number;
3408
+ hasMore: boolean;
3409
+ };
3410
+ deltaCursor: string;
2985
3411
  } | {
2986
3412
  groups: {
2987
3413
  threadId: string;
@@ -2990,10 +3416,10 @@ export declare const NEW_ROUTES: {
2990
3416
  next: string | null;
2991
3417
  };
2992
3418
  }>;
2993
- pathParamSchema?: z.ZodType;
2994
- queryParamSchema?: z.ZodType;
2995
- bodySchema?: z.ZodType;
2996
- responseSchema?: z.ZodType;
3419
+ pathParamSchema?: z.ZodSchema;
3420
+ queryParamSchema?: z.ZodSchema;
3421
+ bodySchema?: z.ZodSchema;
3422
+ responseSchema?: z.ZodSchema;
2997
3423
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2998
3424
  maxBodySize?: number;
2999
3425
  deprecated?: boolean;
@@ -3019,14 +3445,27 @@ export declare const NEW_ROUTES: {
3019
3445
  desc: "desc";
3020
3446
  }>;
3021
3447
  }, z.core.$strict>>>;
3022
- page: z.ZodDefault<z.ZodObject<{
3448
+ page: z.ZodOptional<z.ZodObject<{
3023
3449
  limit: z.ZodDefault<z.ZodNumber>;
3024
3450
  after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3025
3451
  }, z.core.$strict>>;
3026
- }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodObject<{
3452
+ pagination: z.ZodOptional<z.ZodObject<{
3453
+ page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
3454
+ perPage: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
3455
+ }, z.core.$strip>>;
3456
+ mode: z.ZodOptional<z.ZodLiteral<"delta">>;
3457
+ after: z.ZodOptional<z.ZodString>;
3458
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
3459
+ }, z.core.$strict>, unknown>, z.ZodUnion<readonly [z.ZodObject<{
3027
3460
  traces: z.ZodArray<z.ZodObject<{
3028
3461
  traceId: z.ZodString;
3029
3462
  rootSpanId: z.ZodString;
3463
+ name: z.ZodString;
3464
+ entityId: z.ZodNullable<z.ZodString>;
3465
+ parentSpanId: z.ZodNullable<z.ZodString>;
3466
+ createdAt: z.ZodString;
3467
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3468
+ inputPreview: z.ZodNullable<z.ZodString>;
3030
3469
  threadId: z.ZodNullable<z.ZodString>;
3031
3470
  resourceId: z.ZodNullable<z.ZodString>;
3032
3471
  startedAt: z.ZodString;
@@ -3042,6 +3481,62 @@ export declare const NEW_ROUTES: {
3042
3481
  page: z.ZodObject<{
3043
3482
  next: z.ZodNullable<z.ZodString>;
3044
3483
  }, z.core.$strict>;
3484
+ }, z.core.$strict>, z.ZodObject<{
3485
+ traces: z.ZodArray<z.ZodObject<{
3486
+ traceId: z.ZodString;
3487
+ rootSpanId: z.ZodString;
3488
+ name: z.ZodString;
3489
+ entityId: z.ZodNullable<z.ZodString>;
3490
+ parentSpanId: z.ZodNullable<z.ZodString>;
3491
+ createdAt: z.ZodString;
3492
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3493
+ inputPreview: z.ZodNullable<z.ZodString>;
3494
+ threadId: z.ZodNullable<z.ZodString>;
3495
+ resourceId: z.ZodNullable<z.ZodString>;
3496
+ startedAt: z.ZodString;
3497
+ endedAt: z.ZodString;
3498
+ entityName: z.ZodNullable<z.ZodString>;
3499
+ entityType: z.ZodNullable<z.ZodString>;
3500
+ environment: z.ZodNullable<z.ZodString>;
3501
+ status: z.ZodEnum<{
3502
+ error: "error";
3503
+ success: "success";
3504
+ }>;
3505
+ }, z.core.$strict>>;
3506
+ pagination: z.ZodObject<{
3507
+ total: z.ZodNumber;
3508
+ page: z.ZodNumber;
3509
+ perPage: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>;
3510
+ hasMore: z.ZodBoolean;
3511
+ }, z.core.$strip>;
3512
+ deltaCursor: z.ZodOptional<z.ZodString>;
3513
+ }, z.core.$strict>, z.ZodObject<{
3514
+ traces: z.ZodArray<z.ZodObject<{
3515
+ traceId: z.ZodString;
3516
+ rootSpanId: z.ZodString;
3517
+ name: z.ZodString;
3518
+ entityId: z.ZodNullable<z.ZodString>;
3519
+ parentSpanId: z.ZodNullable<z.ZodString>;
3520
+ createdAt: z.ZodString;
3521
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3522
+ inputPreview: z.ZodNullable<z.ZodString>;
3523
+ threadId: z.ZodNullable<z.ZodString>;
3524
+ resourceId: z.ZodNullable<z.ZodString>;
3525
+ startedAt: z.ZodString;
3526
+ endedAt: z.ZodString;
3527
+ entityName: z.ZodNullable<z.ZodString>;
3528
+ entityType: z.ZodNullable<z.ZodString>;
3529
+ environment: z.ZodNullable<z.ZodString>;
3530
+ status: z.ZodEnum<{
3531
+ error: "error";
3532
+ success: "success";
3533
+ }>;
3534
+ }, z.core.$strict>>;
3535
+ delta: z.ZodObject<{
3536
+ limit: z.ZodNumber;
3537
+ hasMore: z.ZodBoolean;
3538
+ }, z.core.$strip>;
3539
+ deltaCursor: z.ZodString;
3045
3540
  }, z.core.$strict>, z.ZodObject<{
3046
3541
  groups: z.ZodArray<z.ZodObject<{
3047
3542
  threadId: z.ZodString;
@@ -3053,13 +3548,76 @@ export declare const NEW_ROUTES: {
3053
3548
  } & {
3054
3549
  readonly _mastraSchemaRoute: true;
3055
3550
  };
3551
+ QUERY_THREADS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
3552
+ method: string;
3553
+ path: `/${string}`;
3554
+ responseType: "json";
3555
+ streamFormat?: 'sse' | 'stream';
3556
+ sseFlushOnConnect?: boolean;
3557
+ handler(params: {
3558
+ traces: {
3559
+ timeRange: {
3560
+ from: string;
3561
+ to: string;
3562
+ };
3563
+ where?: coreStorage.TraceQueryPredicate | undefined;
3564
+ };
3565
+ where?: coreStorage.ThreadPredicate | undefined;
3566
+ page: {
3567
+ limit: number;
3568
+ after?: string | null | undefined;
3569
+ };
3570
+ } & ServerContext): Promise<{
3571
+ threads: {
3572
+ threadId: string;
3573
+ }[];
3574
+ page: {
3575
+ next: string | null;
3576
+ };
3577
+ }>;
3578
+ pathParamSchema?: z.ZodSchema;
3579
+ queryParamSchema?: z.ZodSchema;
3580
+ bodySchema?: z.ZodSchema;
3581
+ responseSchema?: z.ZodSchema;
3582
+ openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3583
+ maxBodySize?: number;
3584
+ deprecated?: boolean;
3585
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3586
+ fga?: import("@mastra/core/auth").FGARouteConfig;
3587
+ onValidationError?: ValidationErrorHook;
3588
+ readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodPreprocess<z.ZodObject<{
3589
+ traces: z.ZodObject<{
3590
+ timeRange: z.ZodObject<{
3591
+ from: z.ZodString;
3592
+ to: z.ZodString;
3593
+ }, z.core.$strict>;
3594
+ where: z.ZodOptional<z.ZodType<coreStorage.TraceQueryPredicate, unknown, z.core.$ZodTypeInternals<coreStorage.TraceQueryPredicate, unknown>>>;
3595
+ }, z.core.$strict>;
3596
+ where: z.ZodOptional<z.ZodType<coreStorage.ThreadPredicate, unknown, z.core.$ZodTypeInternals<coreStorage.ThreadPredicate, unknown>>>;
3597
+ page: z.ZodDefault<z.ZodObject<{
3598
+ limit: z.ZodDefault<z.ZodNumber>;
3599
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3600
+ }, z.core.$strict>>;
3601
+ }, z.core.$strict>, unknown>, z.ZodObject<{
3602
+ threads: z.ZodArray<z.ZodObject<{
3603
+ threadId: z.ZodString;
3604
+ }, z.core.$strict>>;
3605
+ page: z.ZodObject<{
3606
+ next: z.ZodNullable<z.ZodString>;
3607
+ }, z.core.$strict>;
3608
+ }, z.core.$strict>> | undefined;
3609
+ } & {
3610
+ readonly _mastraSchemaRoute: true;
3611
+ };
3056
3612
  LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
3057
3613
  method: string;
3058
3614
  path: `/${string}`;
3059
3615
  responseType: "json";
3060
3616
  streamFormat?: 'sse' | 'stream';
3061
3617
  sseFlushOnConnect?: boolean;
3062
- handler(params: Record<string, unknown> & ServerContext): Promise<{
3618
+ handler(params: {
3619
+ [x: string]: unknown;
3620
+ } & ServerContext): Promise<{
3063
3621
  pagination?: {
3064
3622
  total: number;
3065
3623
  page: number;
@@ -3072,13 +3630,13 @@ export declare const NEW_ROUTES: {
3072
3630
  } | undefined;
3073
3631
  deltaCursor?: string | undefined;
3074
3632
  logs: {
3075
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3633
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3076
3634
  entityId?: string | null | undefined;
3077
3635
  entityName?: string | null | undefined;
3078
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3636
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3079
3637
  parentEntityId?: string | null | undefined;
3080
3638
  parentEntityName?: string | null | undefined;
3081
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3639
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3082
3640
  rootEntityId?: string | null | undefined;
3083
3641
  rootEntityName?: string | null | undefined;
3084
3642
  userId?: string | null | undefined;
@@ -3108,10 +3666,10 @@ export declare const NEW_ROUTES: {
3108
3666
  metadata?: Record<string, unknown> | null | undefined;
3109
3667
  }[];
3110
3668
  }>;
3111
- pathParamSchema?: z.ZodType;
3112
- queryParamSchema?: z.ZodType;
3113
- bodySchema?: z.ZodType;
3114
- responseSchema?: z.ZodType;
3669
+ pathParamSchema?: z.ZodSchema;
3670
+ queryParamSchema?: z.ZodSchema;
3671
+ bodySchema?: z.ZodSchema;
3672
+ responseSchema?: z.ZodSchema;
3115
3673
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3116
3674
  maxBodySize?: number;
3117
3675
  deprecated?: boolean;
@@ -3133,13 +3691,13 @@ export declare const NEW_ROUTES: {
3133
3691
  }, z.core.$strip>>;
3134
3692
  deltaCursor: z.ZodOptional<z.ZodString>;
3135
3693
  logs: z.ZodArray<z.ZodObject<{
3136
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3694
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3137
3695
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3138
3696
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3139
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3697
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3140
3698
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3141
3699
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3142
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3700
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3143
3701
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3144
3702
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3145
3703
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3184,7 +3742,9 @@ export declare const NEW_ROUTES: {
3184
3742
  responseType: "json";
3185
3743
  streamFormat?: 'sse' | 'stream';
3186
3744
  sseFlushOnConnect?: boolean;
3187
- handler(params: Record<string, unknown> & ServerContext): Promise<{
3745
+ handler(params: {
3746
+ [x: string]: unknown;
3747
+ } & ServerContext): Promise<{
3188
3748
  pagination?: {
3189
3749
  total: number;
3190
3750
  page: number;
@@ -3197,13 +3757,13 @@ export declare const NEW_ROUTES: {
3197
3757
  } | undefined;
3198
3758
  deltaCursor?: string | undefined;
3199
3759
  scores: {
3200
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3760
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3201
3761
  entityId?: string | null | undefined;
3202
3762
  entityName?: string | null | undefined;
3203
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3763
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3204
3764
  parentEntityId?: string | null | undefined;
3205
3765
  parentEntityName?: string | null | undefined;
3206
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3766
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3207
3767
  rootEntityId?: string | null | undefined;
3208
3768
  rootEntityName?: string | null | undefined;
3209
3769
  userId?: string | null | undefined;
@@ -3237,10 +3797,10 @@ export declare const NEW_ROUTES: {
3237
3797
  metadata?: Record<string, unknown> | null | undefined;
3238
3798
  }[];
3239
3799
  }>;
3240
- pathParamSchema?: z.ZodType;
3241
- queryParamSchema?: z.ZodType;
3242
- bodySchema?: z.ZodType;
3243
- responseSchema?: z.ZodType;
3800
+ pathParamSchema?: z.ZodSchema;
3801
+ queryParamSchema?: z.ZodSchema;
3802
+ bodySchema?: z.ZodSchema;
3803
+ responseSchema?: z.ZodSchema;
3244
3804
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3245
3805
  maxBodySize?: number;
3246
3806
  deprecated?: boolean;
@@ -3262,13 +3822,13 @@ export declare const NEW_ROUTES: {
3262
3822
  }, z.core.$strip>>;
3263
3823
  deltaCursor: z.ZodOptional<z.ZodString>;
3264
3824
  scores: z.ZodArray<z.ZodObject<{
3265
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3825
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3266
3826
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3267
3827
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3268
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3828
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3269
3829
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3270
3830
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3271
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3831
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3272
3832
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3273
3833
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3274
3834
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3313,13 +3873,13 @@ export declare const NEW_ROUTES: {
3313
3873
  sseFlushOnConnect?: boolean;
3314
3874
  handler(params: {
3315
3875
  score: {
3316
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3876
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3317
3877
  entityId?: string | null | undefined;
3318
3878
  entityName?: string | null | undefined;
3319
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3879
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3320
3880
  parentEntityId?: string | null | undefined;
3321
3881
  parentEntityName?: string | null | undefined;
3322
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3882
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3323
3883
  rootEntityId?: string | null | undefined;
3324
3884
  rootEntityName?: string | null | undefined;
3325
3885
  userId?: string | null | undefined;
@@ -3354,10 +3914,10 @@ export declare const NEW_ROUTES: {
3354
3914
  } & ServerContext): Promise<{
3355
3915
  success: boolean;
3356
3916
  }>;
3357
- pathParamSchema?: z.ZodType;
3358
- queryParamSchema?: z.ZodType;
3359
- bodySchema?: z.ZodType;
3360
- responseSchema?: z.ZodType;
3917
+ pathParamSchema?: z.ZodSchema;
3918
+ queryParamSchema?: z.ZodSchema;
3919
+ bodySchema?: z.ZodSchema;
3920
+ responseSchema?: z.ZodSchema;
3361
3921
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3362
3922
  maxBodySize?: number;
3363
3923
  deprecated?: boolean;
@@ -3366,13 +3926,13 @@ export declare const NEW_ROUTES: {
3366
3926
  onValidationError?: ValidationErrorHook;
3367
3927
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
3368
3928
  score: z.ZodObject<{
3369
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3929
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3370
3930
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3371
3931
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3372
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3932
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3373
3933
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3374
3934
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3375
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3935
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3376
3936
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3377
3937
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3378
3938
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3423,10 +3983,10 @@ export declare const NEW_ROUTES: {
3423
3983
  } & ServerContext): Promise<{
3424
3984
  success: boolean;
3425
3985
  }>;
3426
- pathParamSchema?: z.ZodType;
3427
- queryParamSchema?: z.ZodType;
3428
- bodySchema?: z.ZodType;
3429
- responseSchema?: z.ZodType;
3986
+ pathParamSchema?: z.ZodSchema;
3987
+ queryParamSchema?: z.ZodSchema;
3988
+ bodySchema?: z.ZodSchema;
3989
+ responseSchema?: z.ZodSchema;
3430
3990
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3431
3991
  maxBodySize?: number;
3432
3992
  deprecated?: boolean;
@@ -3453,13 +4013,13 @@ export declare const NEW_ROUTES: {
3453
4013
  scoreId: string;
3454
4014
  } & ServerContext): Promise<{
3455
4015
  score: {
3456
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4016
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3457
4017
  entityId?: string | null | undefined;
3458
4018
  entityName?: string | null | undefined;
3459
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4019
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3460
4020
  parentEntityId?: string | null | undefined;
3461
4021
  parentEntityName?: string | null | undefined;
3462
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4022
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3463
4023
  rootEntityId?: string | null | undefined;
3464
4024
  rootEntityName?: string | null | undefined;
3465
4025
  userId?: string | null | undefined;
@@ -3493,10 +4053,10 @@ export declare const NEW_ROUTES: {
3493
4053
  metadata?: Record<string, unknown> | null | undefined;
3494
4054
  } | null;
3495
4055
  }>;
3496
- pathParamSchema?: z.ZodType;
3497
- queryParamSchema?: z.ZodType;
3498
- bodySchema?: z.ZodType;
3499
- responseSchema?: z.ZodType;
4056
+ pathParamSchema?: z.ZodSchema;
4057
+ queryParamSchema?: z.ZodSchema;
4058
+ bodySchema?: z.ZodSchema;
4059
+ responseSchema?: z.ZodSchema;
3500
4060
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3501
4061
  maxBodySize?: number;
3502
4062
  deprecated?: boolean;
@@ -3507,13 +4067,13 @@ export declare const NEW_ROUTES: {
3507
4067
  scoreId: z.ZodString;
3508
4068
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
3509
4069
  score: z.ZodNullable<z.ZodObject<{
3510
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4070
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3511
4071
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3512
4072
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3513
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4073
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3514
4074
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3515
4075
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3516
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4076
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3517
4077
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3518
4078
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3519
4079
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3569,7 +4129,7 @@ export declare const NEW_ROUTES: {
3569
4129
  } | undefined;
3570
4130
  traceId?: string | undefined;
3571
4131
  spanId?: string | undefined;
3572
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4132
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3573
4133
  entityName?: string | undefined;
3574
4134
  entityVersionId?: string | undefined;
3575
4135
  parentEntityVersionId?: string | undefined;
@@ -3579,9 +4139,9 @@ export declare const NEW_ROUTES: {
3579
4139
  experimentId?: string | undefined;
3580
4140
  serviceName?: string | undefined;
3581
4141
  environment?: string | undefined;
3582
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4142
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3583
4143
  parentEntityName?: string | undefined;
3584
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4144
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3585
4145
  rootEntityName?: string | undefined;
3586
4146
  resourceId?: string | undefined;
3587
4147
  runId?: string | undefined;
@@ -3601,10 +4161,10 @@ export declare const NEW_ROUTES: {
3601
4161
  previousValue?: number | null | undefined;
3602
4162
  changePercent?: number | null | undefined;
3603
4163
  }>;
3604
- pathParamSchema?: z.ZodType;
3605
- queryParamSchema?: z.ZodType;
3606
- bodySchema?: z.ZodType;
3607
- responseSchema?: z.ZodType;
4164
+ pathParamSchema?: z.ZodSchema;
4165
+ queryParamSchema?: z.ZodSchema;
4166
+ bodySchema?: z.ZodSchema;
4167
+ responseSchema?: z.ZodSchema;
3608
4168
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3609
4169
  maxBodySize?: number;
3610
4170
  deprecated?: boolean;
@@ -3632,7 +4192,7 @@ export declare const NEW_ROUTES: {
3632
4192
  }, z.core.$strip>>;
3633
4193
  traceId: z.ZodOptional<z.ZodString>;
3634
4194
  spanId: z.ZodOptional<z.ZodString>;
3635
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4195
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3636
4196
  entityName: z.ZodOptional<z.ZodString>;
3637
4197
  entityVersionId: z.ZodOptional<z.ZodString>;
3638
4198
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -3642,9 +4202,9 @@ export declare const NEW_ROUTES: {
3642
4202
  experimentId: z.ZodOptional<z.ZodString>;
3643
4203
  serviceName: z.ZodOptional<z.ZodString>;
3644
4204
  environment: z.ZodOptional<z.ZodString>;
3645
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4205
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3646
4206
  parentEntityName: z.ZodOptional<z.ZodString>;
3647
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4207
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3648
4208
  rootEntityName: z.ZodOptional<z.ZodString>;
3649
4209
  resourceId: z.ZodOptional<z.ZodString>;
3650
4210
  runId: z.ZodOptional<z.ZodString>;
@@ -3691,7 +4251,7 @@ export declare const NEW_ROUTES: {
3691
4251
  } | undefined;
3692
4252
  traceId?: string | undefined;
3693
4253
  spanId?: string | undefined;
3694
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4254
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3695
4255
  entityName?: string | undefined;
3696
4256
  entityVersionId?: string | undefined;
3697
4257
  parentEntityVersionId?: string | undefined;
@@ -3701,9 +4261,9 @@ export declare const NEW_ROUTES: {
3701
4261
  experimentId?: string | undefined;
3702
4262
  serviceName?: string | undefined;
3703
4263
  environment?: string | undefined;
3704
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4264
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3705
4265
  parentEntityName?: string | undefined;
3706
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4266
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3707
4267
  rootEntityName?: string | undefined;
3708
4268
  resourceId?: string | undefined;
3709
4269
  runId?: string | undefined;
@@ -3723,10 +4283,10 @@ export declare const NEW_ROUTES: {
3723
4283
  value: number;
3724
4284
  }[];
3725
4285
  }>;
3726
- pathParamSchema?: z.ZodType;
3727
- queryParamSchema?: z.ZodType;
3728
- bodySchema?: z.ZodType;
3729
- responseSchema?: z.ZodType;
4286
+ pathParamSchema?: z.ZodSchema;
4287
+ queryParamSchema?: z.ZodSchema;
4288
+ bodySchema?: z.ZodSchema;
4289
+ responseSchema?: z.ZodSchema;
3730
4290
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3731
4291
  maxBodySize?: number;
3732
4292
  deprecated?: boolean;
@@ -3755,7 +4315,7 @@ export declare const NEW_ROUTES: {
3755
4315
  }, z.core.$strip>>;
3756
4316
  traceId: z.ZodOptional<z.ZodString>;
3757
4317
  spanId: z.ZodOptional<z.ZodString>;
3758
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4318
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3759
4319
  entityName: z.ZodOptional<z.ZodString>;
3760
4320
  entityVersionId: z.ZodOptional<z.ZodString>;
3761
4321
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -3765,9 +4325,9 @@ export declare const NEW_ROUTES: {
3765
4325
  experimentId: z.ZodOptional<z.ZodString>;
3766
4326
  serviceName: z.ZodOptional<z.ZodString>;
3767
4327
  environment: z.ZodOptional<z.ZodString>;
3768
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4328
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3769
4329
  parentEntityName: z.ZodOptional<z.ZodString>;
3770
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4330
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3771
4331
  rootEntityName: z.ZodOptional<z.ZodString>;
3772
4332
  resourceId: z.ZodOptional<z.ZodString>;
3773
4333
  runId: z.ZodOptional<z.ZodString>;
@@ -3810,7 +4370,7 @@ export declare const NEW_ROUTES: {
3810
4370
  } | undefined;
3811
4371
  traceId?: string | undefined;
3812
4372
  spanId?: string | undefined;
3813
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4373
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3814
4374
  entityName?: string | undefined;
3815
4375
  entityVersionId?: string | undefined;
3816
4376
  parentEntityVersionId?: string | undefined;
@@ -3820,9 +4380,9 @@ export declare const NEW_ROUTES: {
3820
4380
  experimentId?: string | undefined;
3821
4381
  serviceName?: string | undefined;
3822
4382
  environment?: string | undefined;
3823
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4383
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3824
4384
  parentEntityName?: string | undefined;
3825
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4385
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3826
4386
  rootEntityName?: string | undefined;
3827
4387
  resourceId?: string | undefined;
3828
4388
  runId?: string | undefined;
@@ -3846,10 +4406,10 @@ export declare const NEW_ROUTES: {
3846
4406
  }[];
3847
4407
  }[];
3848
4408
  }>;
3849
- pathParamSchema?: z.ZodType;
3850
- queryParamSchema?: z.ZodType;
3851
- bodySchema?: z.ZodType;
3852
- responseSchema?: z.ZodType;
4409
+ pathParamSchema?: z.ZodSchema;
4410
+ queryParamSchema?: z.ZodSchema;
4411
+ bodySchema?: z.ZodSchema;
4412
+ responseSchema?: z.ZodSchema;
3853
4413
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3854
4414
  maxBodySize?: number;
3855
4415
  deprecated?: boolean;
@@ -3884,7 +4444,7 @@ export declare const NEW_ROUTES: {
3884
4444
  }, z.core.$strip>>;
3885
4445
  traceId: z.ZodOptional<z.ZodString>;
3886
4446
  spanId: z.ZodOptional<z.ZodString>;
3887
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4447
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3888
4448
  entityName: z.ZodOptional<z.ZodString>;
3889
4449
  entityVersionId: z.ZodOptional<z.ZodString>;
3890
4450
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -3894,9 +4454,9 @@ export declare const NEW_ROUTES: {
3894
4454
  experimentId: z.ZodOptional<z.ZodString>;
3895
4455
  serviceName: z.ZodOptional<z.ZodString>;
3896
4456
  environment: z.ZodOptional<z.ZodString>;
3897
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4457
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3898
4458
  parentEntityName: z.ZodOptional<z.ZodString>;
3899
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4459
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3900
4460
  rootEntityName: z.ZodOptional<z.ZodString>;
3901
4461
  resourceId: z.ZodOptional<z.ZodString>;
3902
4462
  runId: z.ZodOptional<z.ZodString>;
@@ -3943,7 +4503,7 @@ export declare const NEW_ROUTES: {
3943
4503
  } | undefined;
3944
4504
  traceId?: string | undefined;
3945
4505
  spanId?: string | undefined;
3946
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4506
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3947
4507
  entityName?: string | undefined;
3948
4508
  entityVersionId?: string | undefined;
3949
4509
  parentEntityVersionId?: string | undefined;
@@ -3953,9 +4513,9 @@ export declare const NEW_ROUTES: {
3953
4513
  experimentId?: string | undefined;
3954
4514
  serviceName?: string | undefined;
3955
4515
  environment?: string | undefined;
3956
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4516
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3957
4517
  parentEntityName?: string | undefined;
3958
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4518
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3959
4519
  rootEntityName?: string | undefined;
3960
4520
  resourceId?: string | undefined;
3961
4521
  runId?: string | undefined;
@@ -3978,10 +4538,10 @@ export declare const NEW_ROUTES: {
3978
4538
  }[];
3979
4539
  }[];
3980
4540
  }>;
3981
- pathParamSchema?: z.ZodType;
3982
- queryParamSchema?: z.ZodType;
3983
- bodySchema?: z.ZodType;
3984
- responseSchema?: z.ZodType;
4541
+ pathParamSchema?: z.ZodSchema;
4542
+ queryParamSchema?: z.ZodSchema;
4543
+ bodySchema?: z.ZodSchema;
4544
+ responseSchema?: z.ZodSchema;
3985
4545
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3986
4546
  maxBodySize?: number;
3987
4547
  deprecated?: boolean;
@@ -4008,7 +4568,7 @@ export declare const NEW_ROUTES: {
4008
4568
  }, z.core.$strip>>;
4009
4569
  traceId: z.ZodOptional<z.ZodString>;
4010
4570
  spanId: z.ZodOptional<z.ZodString>;
4011
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4571
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4012
4572
  entityName: z.ZodOptional<z.ZodString>;
4013
4573
  entityVersionId: z.ZodOptional<z.ZodString>;
4014
4574
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -4018,9 +4578,9 @@ export declare const NEW_ROUTES: {
4018
4578
  experimentId: z.ZodOptional<z.ZodString>;
4019
4579
  serviceName: z.ZodOptional<z.ZodString>;
4020
4580
  environment: z.ZodOptional<z.ZodString>;
4021
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4581
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4022
4582
  parentEntityName: z.ZodOptional<z.ZodString>;
4023
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4583
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4024
4584
  rootEntityName: z.ZodOptional<z.ZodString>;
4025
4585
  resourceId: z.ZodOptional<z.ZodString>;
4026
4586
  runId: z.ZodOptional<z.ZodString>;
@@ -4052,7 +4612,9 @@ export declare const NEW_ROUTES: {
4052
4612
  responseType: "json";
4053
4613
  streamFormat?: 'sse' | 'stream';
4054
4614
  sseFlushOnConnect?: boolean;
4055
- handler(params: Record<string, unknown> & ServerContext): Promise<{
4615
+ handler(params: {
4616
+ [x: string]: unknown;
4617
+ } & ServerContext): Promise<{
4056
4618
  pagination?: {
4057
4619
  total: number;
4058
4620
  page: number;
@@ -4065,13 +4627,13 @@ export declare const NEW_ROUTES: {
4065
4627
  } | undefined;
4066
4628
  deltaCursor?: string | undefined;
4067
4629
  feedback: {
4068
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4630
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4069
4631
  entityId?: string | null | undefined;
4070
4632
  entityName?: string | null | undefined;
4071
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4633
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4072
4634
  parentEntityId?: string | null | undefined;
4073
4635
  parentEntityName?: string | null | undefined;
4074
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4636
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4075
4637
  rootEntityId?: string | null | undefined;
4076
4638
  rootEntityName?: string | null | undefined;
4077
4639
  userId?: string | null | undefined;
@@ -4111,10 +4673,10 @@ export declare const NEW_ROUTES: {
4111
4673
  } | undefined;
4112
4674
  }[];
4113
4675
  }>;
4114
- pathParamSchema?: z.ZodType;
4115
- queryParamSchema?: z.ZodType;
4116
- bodySchema?: z.ZodType;
4117
- responseSchema?: z.ZodType;
4676
+ pathParamSchema?: z.ZodSchema;
4677
+ queryParamSchema?: z.ZodSchema;
4678
+ bodySchema?: z.ZodSchema;
4679
+ responseSchema?: z.ZodSchema;
4118
4680
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4119
4681
  maxBodySize?: number;
4120
4682
  deprecated?: boolean;
@@ -4136,13 +4698,13 @@ export declare const NEW_ROUTES: {
4136
4698
  }, z.core.$strip>>;
4137
4699
  deltaCursor: z.ZodOptional<z.ZodString>;
4138
4700
  feedback: z.ZodArray<z.ZodObject<{
4139
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4701
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4140
4702
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4141
4703
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4142
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4704
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4143
4705
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4144
4706
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4145
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4707
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4146
4708
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4147
4709
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4148
4710
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4196,13 +4758,13 @@ export declare const NEW_ROUTES: {
4196
4758
  sseFlushOnConnect?: boolean;
4197
4759
  handler(params: {
4198
4760
  feedback: {
4199
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4761
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4200
4762
  entityId?: string | null | undefined;
4201
4763
  entityName?: string | null | undefined;
4202
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4764
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4203
4765
  parentEntityId?: string | null | undefined;
4204
4766
  parentEntityName?: string | null | undefined;
4205
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4767
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4206
4768
  rootEntityId?: string | null | undefined;
4207
4769
  rootEntityName?: string | null | undefined;
4208
4770
  userId?: string | null | undefined;
@@ -4237,10 +4799,10 @@ export declare const NEW_ROUTES: {
4237
4799
  } & ServerContext): Promise<{
4238
4800
  success: boolean;
4239
4801
  }>;
4240
- pathParamSchema?: z.ZodType;
4241
- queryParamSchema?: z.ZodType;
4242
- bodySchema?: z.ZodType;
4243
- responseSchema?: z.ZodType;
4802
+ pathParamSchema?: z.ZodSchema;
4803
+ queryParamSchema?: z.ZodSchema;
4804
+ bodySchema?: z.ZodSchema;
4805
+ responseSchema?: z.ZodSchema;
4244
4806
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4245
4807
  maxBodySize?: number;
4246
4808
  deprecated?: boolean;
@@ -4249,13 +4811,13 @@ export declare const NEW_ROUTES: {
4249
4811
  onValidationError?: ValidationErrorHook;
4250
4812
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4251
4813
  feedback: z.ZodObject<{
4252
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4814
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4253
4815
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4254
4816
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4255
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4817
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4256
4818
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4257
4819
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4258
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4820
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4259
4821
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4260
4822
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4261
4823
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4309,10 +4871,10 @@ export declare const NEW_ROUTES: {
4309
4871
  } & ServerContext): Promise<{
4310
4872
  success: boolean;
4311
4873
  }>;
4312
- pathParamSchema?: z.ZodType;
4313
- queryParamSchema?: z.ZodType;
4314
- bodySchema?: z.ZodType;
4315
- responseSchema?: z.ZodType;
4874
+ pathParamSchema?: z.ZodSchema;
4875
+ queryParamSchema?: z.ZodSchema;
4876
+ bodySchema?: z.ZodSchema;
4877
+ responseSchema?: z.ZodSchema;
4316
4878
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4317
4879
  maxBodySize?: number;
4318
4880
  deprecated?: boolean;
@@ -4340,13 +4902,13 @@ export declare const NEW_ROUTES: {
4340
4902
  } & {
4341
4903
  reviewStatus: "needs-review" | "reviewed";
4342
4904
  } & ServerContext): Promise<{
4343
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4905
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4344
4906
  entityId?: string | null | undefined;
4345
4907
  entityName?: string | null | undefined;
4346
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4908
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4347
4909
  parentEntityId?: string | null | undefined;
4348
4910
  parentEntityName?: string | null | undefined;
4349
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4911
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4350
4912
  rootEntityId?: string | null | undefined;
4351
4913
  rootEntityName?: string | null | undefined;
4352
4914
  userId?: string | null | undefined;
@@ -4379,10 +4941,10 @@ export declare const NEW_ROUTES: {
4379
4941
  metadata?: Record<string, unknown> | null | undefined;
4380
4942
  reviewStatus: "needs-review" | "reviewed";
4381
4943
  }>;
4382
- pathParamSchema?: z.ZodType;
4383
- queryParamSchema?: z.ZodType;
4384
- bodySchema?: z.ZodType;
4385
- responseSchema?: z.ZodType;
4944
+ pathParamSchema?: z.ZodSchema;
4945
+ queryParamSchema?: z.ZodSchema;
4946
+ bodySchema?: z.ZodSchema;
4947
+ responseSchema?: z.ZodSchema;
4386
4948
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4387
4949
  maxBodySize?: number;
4388
4950
  deprecated?: boolean;
@@ -4397,13 +4959,13 @@ export declare const NEW_ROUTES: {
4397
4959
  reviewed: "reviewed";
4398
4960
  }>;
4399
4961
  }, z.core.$strip>, z.ZodObject<{
4400
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4962
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4401
4963
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4402
4964
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4403
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4965
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4404
4966
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4405
4967
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4406
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4968
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4407
4969
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4408
4970
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4409
4971
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4461,7 +5023,7 @@ export declare const NEW_ROUTES: {
4461
5023
  } | undefined;
4462
5024
  traceId?: string | undefined;
4463
5025
  spanId?: string | undefined;
4464
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5026
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4465
5027
  entityName?: string | undefined;
4466
5028
  entityVersionId?: string | undefined;
4467
5029
  parentEntityVersionId?: string | undefined;
@@ -4471,9 +5033,9 @@ export declare const NEW_ROUTES: {
4471
5033
  experimentId?: string | undefined;
4472
5034
  serviceName?: string | undefined;
4473
5035
  environment?: string | undefined;
4474
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5036
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4475
5037
  parentEntityName?: string | undefined;
4476
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5038
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4477
5039
  rootEntityName?: string | undefined;
4478
5040
  resourceId?: string | undefined;
4479
5041
  runId?: string | undefined;
@@ -4494,10 +5056,10 @@ export declare const NEW_ROUTES: {
4494
5056
  previousValue?: number | null | undefined;
4495
5057
  changePercent?: number | null | undefined;
4496
5058
  }>;
4497
- pathParamSchema?: z.ZodType;
4498
- queryParamSchema?: z.ZodType;
4499
- bodySchema?: z.ZodType;
4500
- responseSchema?: z.ZodType;
5059
+ pathParamSchema?: z.ZodSchema;
5060
+ queryParamSchema?: z.ZodSchema;
5061
+ bodySchema?: z.ZodSchema;
5062
+ responseSchema?: z.ZodSchema;
4501
5063
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4502
5064
  maxBodySize?: number;
4503
5065
  deprecated?: boolean;
@@ -4525,7 +5087,7 @@ export declare const NEW_ROUTES: {
4525
5087
  }, z.core.$strip>>;
4526
5088
  traceId: z.ZodOptional<z.ZodString>;
4527
5089
  spanId: z.ZodOptional<z.ZodString>;
4528
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5090
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4529
5091
  entityName: z.ZodOptional<z.ZodString>;
4530
5092
  entityVersionId: z.ZodOptional<z.ZodString>;
4531
5093
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -4535,9 +5097,9 @@ export declare const NEW_ROUTES: {
4535
5097
  experimentId: z.ZodOptional<z.ZodString>;
4536
5098
  serviceName: z.ZodOptional<z.ZodString>;
4537
5099
  environment: z.ZodOptional<z.ZodString>;
4538
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5100
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4539
5101
  parentEntityName: z.ZodOptional<z.ZodString>;
4540
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5102
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4541
5103
  rootEntityName: z.ZodOptional<z.ZodString>;
4542
5104
  resourceId: z.ZodOptional<z.ZodString>;
4543
5105
  runId: z.ZodOptional<z.ZodString>;
@@ -4588,7 +5150,7 @@ export declare const NEW_ROUTES: {
4588
5150
  } | undefined;
4589
5151
  traceId?: string | undefined;
4590
5152
  spanId?: string | undefined;
4591
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5153
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4592
5154
  entityName?: string | undefined;
4593
5155
  entityVersionId?: string | undefined;
4594
5156
  parentEntityVersionId?: string | undefined;
@@ -4598,9 +5160,9 @@ export declare const NEW_ROUTES: {
4598
5160
  experimentId?: string | undefined;
4599
5161
  serviceName?: string | undefined;
4600
5162
  environment?: string | undefined;
4601
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5163
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4602
5164
  parentEntityName?: string | undefined;
4603
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5165
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4604
5166
  rootEntityName?: string | undefined;
4605
5167
  resourceId?: string | undefined;
4606
5168
  runId?: string | undefined;
@@ -4621,10 +5183,10 @@ export declare const NEW_ROUTES: {
4621
5183
  value: number;
4622
5184
  }[];
4623
5185
  }>;
4624
- pathParamSchema?: z.ZodType;
4625
- queryParamSchema?: z.ZodType;
4626
- bodySchema?: z.ZodType;
4627
- responseSchema?: z.ZodType;
5186
+ pathParamSchema?: z.ZodSchema;
5187
+ queryParamSchema?: z.ZodSchema;
5188
+ bodySchema?: z.ZodSchema;
5189
+ responseSchema?: z.ZodSchema;
4628
5190
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4629
5191
  maxBodySize?: number;
4630
5192
  deprecated?: boolean;
@@ -4653,7 +5215,7 @@ export declare const NEW_ROUTES: {
4653
5215
  }, z.core.$strip>>;
4654
5216
  traceId: z.ZodOptional<z.ZodString>;
4655
5217
  spanId: z.ZodOptional<z.ZodString>;
4656
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5218
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4657
5219
  entityName: z.ZodOptional<z.ZodString>;
4658
5220
  entityVersionId: z.ZodOptional<z.ZodString>;
4659
5221
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -4663,9 +5225,9 @@ export declare const NEW_ROUTES: {
4663
5225
  experimentId: z.ZodOptional<z.ZodString>;
4664
5226
  serviceName: z.ZodOptional<z.ZodString>;
4665
5227
  environment: z.ZodOptional<z.ZodString>;
4666
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5228
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4667
5229
  parentEntityName: z.ZodOptional<z.ZodString>;
4668
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5230
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4669
5231
  rootEntityName: z.ZodOptional<z.ZodString>;
4670
5232
  resourceId: z.ZodOptional<z.ZodString>;
4671
5233
  runId: z.ZodOptional<z.ZodString>;
@@ -4712,7 +5274,7 @@ export declare const NEW_ROUTES: {
4712
5274
  } | undefined;
4713
5275
  traceId?: string | undefined;
4714
5276
  spanId?: string | undefined;
4715
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5277
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4716
5278
  entityName?: string | undefined;
4717
5279
  entityVersionId?: string | undefined;
4718
5280
  parentEntityVersionId?: string | undefined;
@@ -4722,9 +5284,9 @@ export declare const NEW_ROUTES: {
4722
5284
  experimentId?: string | undefined;
4723
5285
  serviceName?: string | undefined;
4724
5286
  environment?: string | undefined;
4725
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5287
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4726
5288
  parentEntityName?: string | undefined;
4727
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5289
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4728
5290
  rootEntityName?: string | undefined;
4729
5291
  resourceId?: string | undefined;
4730
5292
  runId?: string | undefined;
@@ -4749,10 +5311,10 @@ export declare const NEW_ROUTES: {
4749
5311
  }[];
4750
5312
  }[];
4751
5313
  }>;
4752
- pathParamSchema?: z.ZodType;
4753
- queryParamSchema?: z.ZodType;
4754
- bodySchema?: z.ZodType;
4755
- responseSchema?: z.ZodType;
5314
+ pathParamSchema?: z.ZodSchema;
5315
+ queryParamSchema?: z.ZodSchema;
5316
+ bodySchema?: z.ZodSchema;
5317
+ responseSchema?: z.ZodSchema;
4756
5318
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4757
5319
  maxBodySize?: number;
4758
5320
  deprecated?: boolean;
@@ -4787,7 +5349,7 @@ export declare const NEW_ROUTES: {
4787
5349
  }, z.core.$strip>>;
4788
5350
  traceId: z.ZodOptional<z.ZodString>;
4789
5351
  spanId: z.ZodOptional<z.ZodString>;
4790
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5352
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4791
5353
  entityName: z.ZodOptional<z.ZodString>;
4792
5354
  entityVersionId: z.ZodOptional<z.ZodString>;
4793
5355
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -4797,9 +5359,9 @@ export declare const NEW_ROUTES: {
4797
5359
  experimentId: z.ZodOptional<z.ZodString>;
4798
5360
  serviceName: z.ZodOptional<z.ZodString>;
4799
5361
  environment: z.ZodOptional<z.ZodString>;
4800
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5362
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4801
5363
  parentEntityName: z.ZodOptional<z.ZodString>;
4802
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5364
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4803
5365
  rootEntityName: z.ZodOptional<z.ZodString>;
4804
5366
  resourceId: z.ZodOptional<z.ZodString>;
4805
5367
  runId: z.ZodOptional<z.ZodString>;
@@ -4850,7 +5412,7 @@ export declare const NEW_ROUTES: {
4850
5412
  } | undefined;
4851
5413
  traceId?: string | undefined;
4852
5414
  spanId?: string | undefined;
4853
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5415
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4854
5416
  entityName?: string | undefined;
4855
5417
  entityVersionId?: string | undefined;
4856
5418
  parentEntityVersionId?: string | undefined;
@@ -4860,9 +5422,9 @@ export declare const NEW_ROUTES: {
4860
5422
  experimentId?: string | undefined;
4861
5423
  serviceName?: string | undefined;
4862
5424
  environment?: string | undefined;
4863
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5425
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4864
5426
  parentEntityName?: string | undefined;
4865
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5427
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4866
5428
  rootEntityName?: string | undefined;
4867
5429
  resourceId?: string | undefined;
4868
5430
  runId?: string | undefined;
@@ -4886,10 +5448,10 @@ export declare const NEW_ROUTES: {
4886
5448
  }[];
4887
5449
  }[];
4888
5450
  }>;
4889
- pathParamSchema?: z.ZodType;
4890
- queryParamSchema?: z.ZodType;
4891
- bodySchema?: z.ZodType;
4892
- responseSchema?: z.ZodType;
5451
+ pathParamSchema?: z.ZodSchema;
5452
+ queryParamSchema?: z.ZodSchema;
5453
+ bodySchema?: z.ZodSchema;
5454
+ responseSchema?: z.ZodSchema;
4893
5455
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4894
5456
  maxBodySize?: number;
4895
5457
  deprecated?: boolean;
@@ -4916,7 +5478,7 @@ export declare const NEW_ROUTES: {
4916
5478
  }, z.core.$strip>>;
4917
5479
  traceId: z.ZodOptional<z.ZodString>;
4918
5480
  spanId: z.ZodOptional<z.ZodString>;
4919
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5481
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4920
5482
  entityName: z.ZodOptional<z.ZodString>;
4921
5483
  entityVersionId: z.ZodOptional<z.ZodString>;
4922
5484
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -4926,9 +5488,9 @@ export declare const NEW_ROUTES: {
4926
5488
  experimentId: z.ZodOptional<z.ZodString>;
4927
5489
  serviceName: z.ZodOptional<z.ZodString>;
4928
5490
  environment: z.ZodOptional<z.ZodString>;
4929
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5491
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4930
5492
  parentEntityName: z.ZodOptional<z.ZodString>;
4931
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5493
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4932
5494
  rootEntityName: z.ZodOptional<z.ZodString>;
4933
5495
  resourceId: z.ZodOptional<z.ZodString>;
4934
5496
  runId: z.ZodOptional<z.ZodString>;
@@ -4964,7 +5526,9 @@ export declare const NEW_ROUTES: {
4964
5526
  responseType: "json";
4965
5527
  streamFormat?: 'sse' | 'stream';
4966
5528
  sseFlushOnConnect?: boolean;
4967
- handler(params: Record<string, unknown> & ServerContext): Promise<{
5529
+ handler(params: {
5530
+ [x: string]: unknown;
5531
+ } & ServerContext): Promise<{
4968
5532
  pagination?: {
4969
5533
  total: number;
4970
5534
  page: number;
@@ -4977,13 +5541,13 @@ export declare const NEW_ROUTES: {
4977
5541
  } | undefined;
4978
5542
  deltaCursor?: string | undefined;
4979
5543
  metrics: {
4980
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
5544
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4981
5545
  entityId?: string | null | undefined;
4982
5546
  entityName?: string | null | undefined;
4983
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
5547
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4984
5548
  parentEntityId?: string | null | undefined;
4985
5549
  parentEntityName?: string | null | undefined;
4986
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
5550
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4987
5551
  rootEntityId?: string | null | undefined;
4988
5552
  rootEntityName?: string | null | undefined;
4989
5553
  userId?: string | null | undefined;
@@ -5018,10 +5582,10 @@ export declare const NEW_ROUTES: {
5018
5582
  metadata?: Record<string, unknown> | null | undefined;
5019
5583
  }[];
5020
5584
  }>;
5021
- pathParamSchema?: z.ZodType;
5022
- queryParamSchema?: z.ZodType;
5023
- bodySchema?: z.ZodType;
5024
- responseSchema?: z.ZodType;
5585
+ pathParamSchema?: z.ZodSchema;
5586
+ queryParamSchema?: z.ZodSchema;
5587
+ bodySchema?: z.ZodSchema;
5588
+ responseSchema?: z.ZodSchema;
5025
5589
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5026
5590
  maxBodySize?: number;
5027
5591
  deprecated?: boolean;
@@ -5043,13 +5607,13 @@ export declare const NEW_ROUTES: {
5043
5607
  }, z.core.$strip>>;
5044
5608
  deltaCursor: z.ZodOptional<z.ZodString>;
5045
5609
  metrics: z.ZodArray<z.ZodObject<{
5046
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
5610
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
5047
5611
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5048
5612
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5049
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
5613
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
5050
5614
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5051
5615
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5052
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
5616
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
5053
5617
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5054
5618
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5055
5619
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5106,7 +5670,7 @@ export declare const NEW_ROUTES: {
5106
5670
  } | undefined;
5107
5671
  traceId?: string | undefined;
5108
5672
  spanId?: string | undefined;
5109
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5673
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5110
5674
  entityName?: string | undefined;
5111
5675
  entityVersionId?: string | undefined;
5112
5676
  parentEntityVersionId?: string | undefined;
@@ -5116,9 +5680,9 @@ export declare const NEW_ROUTES: {
5116
5680
  experimentId?: string | undefined;
5117
5681
  serviceName?: string | undefined;
5118
5682
  environment?: string | undefined;
5119
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5683
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5120
5684
  parentEntityName?: string | undefined;
5121
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5685
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5122
5686
  rootEntityName?: string | undefined;
5123
5687
  resourceId?: string | undefined;
5124
5688
  runId?: string | undefined;
@@ -5145,10 +5709,10 @@ export declare const NEW_ROUTES: {
5145
5709
  previousEstimatedCost?: number | null | undefined;
5146
5710
  costChangePercent?: number | null | undefined;
5147
5711
  }>;
5148
- pathParamSchema?: z.ZodType;
5149
- queryParamSchema?: z.ZodType;
5150
- bodySchema?: z.ZodType;
5151
- responseSchema?: z.ZodType;
5712
+ pathParamSchema?: z.ZodSchema;
5713
+ queryParamSchema?: z.ZodSchema;
5714
+ bodySchema?: z.ZodSchema;
5715
+ responseSchema?: z.ZodSchema;
5152
5716
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5153
5717
  maxBodySize?: number;
5154
5718
  deprecated?: boolean;
@@ -5191,7 +5755,7 @@ export declare const NEW_ROUTES: {
5191
5755
  }, z.core.$strip>>;
5192
5756
  traceId: z.ZodOptional<z.ZodString>;
5193
5757
  spanId: z.ZodOptional<z.ZodString>;
5194
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5758
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5195
5759
  entityName: z.ZodOptional<z.ZodString>;
5196
5760
  entityVersionId: z.ZodOptional<z.ZodString>;
5197
5761
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -5201,9 +5765,9 @@ export declare const NEW_ROUTES: {
5201
5765
  experimentId: z.ZodOptional<z.ZodString>;
5202
5766
  serviceName: z.ZodOptional<z.ZodString>;
5203
5767
  environment: z.ZodOptional<z.ZodString>;
5204
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5768
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5205
5769
  parentEntityName: z.ZodOptional<z.ZodString>;
5206
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5770
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5207
5771
  rootEntityName: z.ZodOptional<z.ZodString>;
5208
5772
  resourceId: z.ZodOptional<z.ZodString>;
5209
5773
  runId: z.ZodOptional<z.ZodString>;
@@ -5257,7 +5821,7 @@ export declare const NEW_ROUTES: {
5257
5821
  } | undefined;
5258
5822
  traceId?: string | undefined;
5259
5823
  spanId?: string | undefined;
5260
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5824
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5261
5825
  entityName?: string | undefined;
5262
5826
  entityVersionId?: string | undefined;
5263
5827
  parentEntityVersionId?: string | undefined;
@@ -5267,9 +5831,9 @@ export declare const NEW_ROUTES: {
5267
5831
  experimentId?: string | undefined;
5268
5832
  serviceName?: string | undefined;
5269
5833
  environment?: string | undefined;
5270
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5834
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5271
5835
  parentEntityName?: string | undefined;
5272
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5836
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5273
5837
  rootEntityName?: string | undefined;
5274
5838
  resourceId?: string | undefined;
5275
5839
  runId?: string | undefined;
@@ -5296,10 +5860,10 @@ export declare const NEW_ROUTES: {
5296
5860
  costUnit?: string | null | undefined;
5297
5861
  }[];
5298
5862
  }>;
5299
- pathParamSchema?: z.ZodType;
5300
- queryParamSchema?: z.ZodType;
5301
- bodySchema?: z.ZodType;
5302
- responseSchema?: z.ZodType;
5863
+ pathParamSchema?: z.ZodSchema;
5864
+ queryParamSchema?: z.ZodSchema;
5865
+ bodySchema?: z.ZodSchema;
5866
+ responseSchema?: z.ZodSchema;
5303
5867
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5304
5868
  maxBodySize?: number;
5305
5869
  deprecated?: boolean;
@@ -5343,7 +5907,7 @@ export declare const NEW_ROUTES: {
5343
5907
  }, z.core.$strip>>;
5344
5908
  traceId: z.ZodOptional<z.ZodString>;
5345
5909
  spanId: z.ZodOptional<z.ZodString>;
5346
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5910
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5347
5911
  entityName: z.ZodOptional<z.ZodString>;
5348
5912
  entityVersionId: z.ZodOptional<z.ZodString>;
5349
5913
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -5353,9 +5917,9 @@ export declare const NEW_ROUTES: {
5353
5917
  experimentId: z.ZodOptional<z.ZodString>;
5354
5918
  serviceName: z.ZodOptional<z.ZodString>;
5355
5919
  environment: z.ZodOptional<z.ZodString>;
5356
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5920
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5357
5921
  parentEntityName: z.ZodOptional<z.ZodString>;
5358
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5922
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5359
5923
  rootEntityName: z.ZodOptional<z.ZodString>;
5360
5924
  resourceId: z.ZodOptional<z.ZodString>;
5361
5925
  runId: z.ZodOptional<z.ZodString>;
@@ -5408,7 +5972,7 @@ export declare const NEW_ROUTES: {
5408
5972
  } | undefined;
5409
5973
  traceId?: string | undefined;
5410
5974
  spanId?: string | undefined;
5411
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5975
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5412
5976
  entityName?: string | undefined;
5413
5977
  entityVersionId?: string | undefined;
5414
5978
  parentEntityVersionId?: string | undefined;
@@ -5418,9 +5982,9 @@ export declare const NEW_ROUTES: {
5418
5982
  experimentId?: string | undefined;
5419
5983
  serviceName?: string | undefined;
5420
5984
  environment?: string | undefined;
5421
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5985
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5422
5986
  parentEntityName?: string | undefined;
5423
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5987
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5424
5988
  rootEntityName?: string | undefined;
5425
5989
  resourceId?: string | undefined;
5426
5990
  runId?: string | undefined;
@@ -5449,10 +6013,10 @@ export declare const NEW_ROUTES: {
5449
6013
  }[];
5450
6014
  }[];
5451
6015
  }>;
5452
- pathParamSchema?: z.ZodType;
5453
- queryParamSchema?: z.ZodType;
5454
- bodySchema?: z.ZodType;
5455
- responseSchema?: z.ZodType;
6016
+ pathParamSchema?: z.ZodSchema;
6017
+ queryParamSchema?: z.ZodSchema;
6018
+ bodySchema?: z.ZodSchema;
6019
+ responseSchema?: z.ZodSchema;
5456
6020
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5457
6021
  maxBodySize?: number;
5458
6022
  deprecated?: boolean;
@@ -5502,7 +6066,7 @@ export declare const NEW_ROUTES: {
5502
6066
  }, z.core.$strip>>;
5503
6067
  traceId: z.ZodOptional<z.ZodString>;
5504
6068
  spanId: z.ZodOptional<z.ZodString>;
5505
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
6069
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5506
6070
  entityName: z.ZodOptional<z.ZodString>;
5507
6071
  entityVersionId: z.ZodOptional<z.ZodString>;
5508
6072
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -5512,9 +6076,9 @@ export declare const NEW_ROUTES: {
5512
6076
  experimentId: z.ZodOptional<z.ZodString>;
5513
6077
  serviceName: z.ZodOptional<z.ZodString>;
5514
6078
  environment: z.ZodOptional<z.ZodString>;
5515
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
6079
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5516
6080
  parentEntityName: z.ZodOptional<z.ZodString>;
5517
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
6081
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5518
6082
  rootEntityName: z.ZodOptional<z.ZodString>;
5519
6083
  resourceId: z.ZodOptional<z.ZodString>;
5520
6084
  runId: z.ZodOptional<z.ZodString>;
@@ -5565,7 +6129,7 @@ export declare const NEW_ROUTES: {
5565
6129
  } | undefined;
5566
6130
  traceId?: string | undefined;
5567
6131
  spanId?: string | undefined;
5568
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
6132
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5569
6133
  entityName?: string | undefined;
5570
6134
  entityVersionId?: string | undefined;
5571
6135
  parentEntityVersionId?: string | undefined;
@@ -5575,9 +6139,9 @@ export declare const NEW_ROUTES: {
5575
6139
  experimentId?: string | undefined;
5576
6140
  serviceName?: string | undefined;
5577
6141
  environment?: string | undefined;
5578
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
6142
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5579
6143
  parentEntityName?: string | undefined;
5580
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
6144
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5581
6145
  rootEntityName?: string | undefined;
5582
6146
  resourceId?: string | undefined;
5583
6147
  runId?: string | undefined;
@@ -5603,10 +6167,10 @@ export declare const NEW_ROUTES: {
5603
6167
  }[];
5604
6168
  }[];
5605
6169
  }>;
5606
- pathParamSchema?: z.ZodType;
5607
- queryParamSchema?: z.ZodType;
5608
- bodySchema?: z.ZodType;
5609
- responseSchema?: z.ZodType;
6170
+ pathParamSchema?: z.ZodSchema;
6171
+ queryParamSchema?: z.ZodSchema;
6172
+ bodySchema?: z.ZodSchema;
6173
+ responseSchema?: z.ZodSchema;
5610
6174
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5611
6175
  maxBodySize?: number;
5612
6176
  deprecated?: boolean;
@@ -5632,7 +6196,7 @@ export declare const NEW_ROUTES: {
5632
6196
  }, z.core.$strip>>;
5633
6197
  traceId: z.ZodOptional<z.ZodString>;
5634
6198
  spanId: z.ZodOptional<z.ZodString>;
5635
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
6199
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5636
6200
  entityName: z.ZodOptional<z.ZodString>;
5637
6201
  entityVersionId: z.ZodOptional<z.ZodString>;
5638
6202
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -5642,9 +6206,9 @@ export declare const NEW_ROUTES: {
5642
6206
  experimentId: z.ZodOptional<z.ZodString>;
5643
6207
  serviceName: z.ZodOptional<z.ZodString>;
5644
6208
  environment: z.ZodOptional<z.ZodString>;
5645
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
6209
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5646
6210
  parentEntityName: z.ZodOptional<z.ZodString>;
5647
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
6211
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5648
6212
  rootEntityName: z.ZodOptional<z.ZodString>;
5649
6213
  resourceId: z.ZodOptional<z.ZodString>;
5650
6214
  runId: z.ZodOptional<z.ZodString>;
@@ -5679,13 +6243,15 @@ export declare const NEW_ROUTES: {
5679
6243
  responseType: "json";
5680
6244
  streamFormat?: 'sse' | 'stream';
5681
6245
  sseFlushOnConnect?: boolean;
5682
- handler(params: Record<string, unknown> & ServerContext): Promise<{
6246
+ handler(params: {
6247
+ [x: string]: unknown;
6248
+ } & ServerContext): Promise<{
5683
6249
  names: string[];
5684
6250
  }>;
5685
- pathParamSchema?: z.ZodType;
5686
- queryParamSchema?: z.ZodType;
5687
- bodySchema?: z.ZodType;
5688
- responseSchema?: z.ZodType;
6251
+ pathParamSchema?: z.ZodSchema;
6252
+ queryParamSchema?: z.ZodSchema;
6253
+ bodySchema?: z.ZodSchema;
6254
+ responseSchema?: z.ZodSchema;
5689
6255
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5690
6256
  maxBodySize?: number;
5691
6257
  deprecated?: boolean;
@@ -5706,13 +6272,15 @@ export declare const NEW_ROUTES: {
5706
6272
  responseType: "json";
5707
6273
  streamFormat?: 'sse' | 'stream';
5708
6274
  sseFlushOnConnect?: boolean;
5709
- handler(params: Record<string, unknown> & ServerContext): Promise<{
6275
+ handler(params: {
6276
+ [x: string]: unknown;
6277
+ } & ServerContext): Promise<{
5710
6278
  keys: string[];
5711
6279
  }>;
5712
- pathParamSchema?: z.ZodType;
5713
- queryParamSchema?: z.ZodType;
5714
- bodySchema?: z.ZodType;
5715
- responseSchema?: z.ZodType;
6280
+ pathParamSchema?: z.ZodSchema;
6281
+ queryParamSchema?: z.ZodSchema;
6282
+ bodySchema?: z.ZodSchema;
6283
+ responseSchema?: z.ZodSchema;
5716
6284
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5717
6285
  maxBodySize?: number;
5718
6286
  deprecated?: boolean;
@@ -5733,13 +6301,15 @@ export declare const NEW_ROUTES: {
5733
6301
  responseType: "json";
5734
6302
  streamFormat?: 'sse' | 'stream';
5735
6303
  sseFlushOnConnect?: boolean;
5736
- handler(params: Record<string, unknown> & ServerContext): Promise<{
6304
+ handler(params: {
6305
+ [x: string]: unknown;
6306
+ } & ServerContext): Promise<{
5737
6307
  values: string[];
5738
6308
  }>;
5739
- pathParamSchema?: z.ZodType;
5740
- queryParamSchema?: z.ZodType;
5741
- bodySchema?: z.ZodType;
5742
- responseSchema?: z.ZodType;
6309
+ pathParamSchema?: z.ZodSchema;
6310
+ queryParamSchema?: z.ZodSchema;
6311
+ bodySchema?: z.ZodSchema;
6312
+ responseSchema?: z.ZodSchema;
5743
6313
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5744
6314
  maxBodySize?: number;
5745
6315
  deprecated?: boolean;
@@ -5761,12 +6331,12 @@ export declare const NEW_ROUTES: {
5761
6331
  streamFormat?: 'sse' | 'stream';
5762
6332
  sseFlushOnConnect?: boolean;
5763
6333
  handler(params: ServerContext): Promise<{
5764
- entityTypes: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType[];
6334
+ entityTypes: import("../../_types/@internal_core/dist/storage/index.js").EntityType[];
5765
6335
  }>;
5766
- pathParamSchema?: z.ZodType;
5767
- queryParamSchema?: z.ZodType;
5768
- bodySchema?: z.ZodType;
5769
- responseSchema?: z.ZodType;
6336
+ pathParamSchema?: z.ZodSchema;
6337
+ queryParamSchema?: z.ZodSchema;
6338
+ bodySchema?: z.ZodSchema;
6339
+ responseSchema?: z.ZodSchema;
5770
6340
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5771
6341
  maxBodySize?: number;
5772
6342
  deprecated?: boolean;
@@ -5774,7 +6344,7 @@ export declare const NEW_ROUTES: {
5774
6344
  fga?: import("@mastra/core/auth").FGARouteConfig;
5775
6345
  onValidationError?: ValidationErrorHook;
5776
6346
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
5777
- entityTypes: z.ZodArray<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
6347
+ entityTypes: z.ZodArray<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5778
6348
  }, z.core.$strip>> | undefined;
5779
6349
  } & {
5780
6350
  readonly _mastraSchemaRoute: true;
@@ -5785,13 +6355,15 @@ export declare const NEW_ROUTES: {
5785
6355
  responseType: "json";
5786
6356
  streamFormat?: 'sse' | 'stream';
5787
6357
  sseFlushOnConnect?: boolean;
5788
- handler(params: Record<string, unknown> & ServerContext): Promise<{
6358
+ handler(params: {
6359
+ [x: string]: unknown;
6360
+ } & ServerContext): Promise<{
5789
6361
  names: string[];
5790
6362
  }>;
5791
- pathParamSchema?: z.ZodType;
5792
- queryParamSchema?: z.ZodType;
5793
- bodySchema?: z.ZodType;
5794
- responseSchema?: z.ZodType;
6363
+ pathParamSchema?: z.ZodSchema;
6364
+ queryParamSchema?: z.ZodSchema;
6365
+ bodySchema?: z.ZodSchema;
6366
+ responseSchema?: z.ZodSchema;
5795
6367
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5796
6368
  maxBodySize?: number;
5797
6369
  deprecated?: boolean;
@@ -5815,10 +6387,10 @@ export declare const NEW_ROUTES: {
5815
6387
  handler(params: ServerContext): Promise<{
5816
6388
  serviceNames: string[];
5817
6389
  }>;
5818
- pathParamSchema?: z.ZodType;
5819
- queryParamSchema?: z.ZodType;
5820
- bodySchema?: z.ZodType;
5821
- responseSchema?: z.ZodType;
6390
+ pathParamSchema?: z.ZodSchema;
6391
+ queryParamSchema?: z.ZodSchema;
6392
+ bodySchema?: z.ZodSchema;
6393
+ responseSchema?: z.ZodSchema;
5822
6394
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5823
6395
  maxBodySize?: number;
5824
6396
  deprecated?: boolean;
@@ -5840,10 +6412,10 @@ export declare const NEW_ROUTES: {
5840
6412
  handler(params: ServerContext): Promise<{
5841
6413
  environments: string[];
5842
6414
  }>;
5843
- pathParamSchema?: z.ZodType;
5844
- queryParamSchema?: z.ZodType;
5845
- bodySchema?: z.ZodType;
5846
- responseSchema?: z.ZodType;
6415
+ pathParamSchema?: z.ZodSchema;
6416
+ queryParamSchema?: z.ZodSchema;
6417
+ bodySchema?: z.ZodSchema;
6418
+ responseSchema?: z.ZodSchema;
5847
6419
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5848
6420
  maxBodySize?: number;
5849
6421
  deprecated?: boolean;
@@ -5862,13 +6434,15 @@ export declare const NEW_ROUTES: {
5862
6434
  responseType: "json";
5863
6435
  streamFormat?: 'sse' | 'stream';
5864
6436
  sseFlushOnConnect?: boolean;
5865
- handler(params: Record<string, unknown> & ServerContext): Promise<{
6437
+ handler(params: {
6438
+ [x: string]: unknown;
6439
+ } & ServerContext): Promise<{
5866
6440
  tags: string[];
5867
6441
  }>;
5868
- pathParamSchema?: z.ZodType;
5869
- queryParamSchema?: z.ZodType;
5870
- bodySchema?: z.ZodType;
5871
- responseSchema?: z.ZodType;
6442
+ pathParamSchema?: z.ZodSchema;
6443
+ queryParamSchema?: z.ZodSchema;
6444
+ bodySchema?: z.ZodSchema;
6445
+ responseSchema?: z.ZodSchema;
5872
6446
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5873
6447
  maxBodySize?: number;
5874
6448
  deprecated?: boolean;