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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (445) hide show
  1. package/dist/_types/@internal_core/dist/storage/index.d.ts +3 -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-D99q4Gos.cjs → agent-versions-DisdqzzB.cjs} +2 -2
  68. package/dist/{agent-versions-D99q4Gos.cjs.map → agent-versions-DisdqzzB.cjs.map} +1 -1
  69. package/dist/{agent-versions-NGajm4l5.js → agent-versions-f5zi5A-V.js} +2 -2
  70. package/dist/{agent-versions-NGajm4l5.js.map → agent-versions-f5zi5A-V.js.map} +1 -1
  71. package/dist/{agents-CZE_MSQE.cjs → agents-B9H0fBkm.cjs} +24 -6
  72. package/dist/agents-B9H0fBkm.cjs.map +1 -0
  73. package/dist/{agents-ssoMemNs.js → agents-Bic13NAO.js} +24 -6
  74. package/dist/agents-Bic13NAO.js.map +1 -0
  75. package/dist/{api-schema-manifest-CeREx1dB.js → api-schema-manifest-DDpGD3_2.js} +3 -3
  76. package/dist/{api-schema-manifest-CeREx1dB.js.map → api-schema-manifest-DDpGD3_2.js.map} +1 -1
  77. package/dist/{api-schema-manifest-DzWP4nLu.cjs → api-schema-manifest-Wh8dZzaC.cjs} +3 -3
  78. package/dist/{api-schema-manifest-DzWP4nLu.cjs.map → api-schema-manifest-Wh8dZzaC.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-DI3Ysclf.js → builder-registry-D6MI5ZLX.js} +3 -3
  84. package/dist/{builder-registry-DI3Ysclf.js.map → builder-registry-D6MI5ZLX.js.map} +1 -1
  85. package/dist/{builder-registry-r71f11_E.cjs → builder-registry-DYGJZJTi.cjs} +3 -3
  86. package/dist/{builder-registry-r71f11_E.cjs.map → builder-registry-DYGJZJTi.cjs.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-DstENx2x.cjs → conversations-DHgZXodJ.cjs} +2 -2
  92. package/dist/{conversations-DstENx2x.cjs.map → conversations-DHgZXodJ.cjs.map} +1 -1
  93. package/dist/{conversations-b3vJRHF3.js → conversations-DzzjfNa9.js} +2 -2
  94. package/dist/{conversations-b3vJRHF3.js.map → conversations-DzzjfNa9.js.map} +1 -1
  95. package/dist/{dist-BKxbtiJd.cjs → dist-B4HiqHgK.cjs} +874 -192
  96. package/dist/dist-B4HiqHgK.cjs.map +1 -0
  97. package/dist/{dist-D6F_HzDS.cjs → dist-BAojQuHp.cjs} +4 -4
  98. package/dist/{dist-D6F_HzDS.cjs.map → dist-BAojQuHp.cjs.map} +1 -1
  99. package/dist/{dist-k6UeNFHu.js → dist-BMjWLpRz.js} +3 -3
  100. package/dist/{dist-k6UeNFHu.js.map → dist-BMjWLpRz.js.map} +1 -1
  101. package/dist/{dist-C76EmJsT.cjs → dist-BNvS3nzI.cjs} +3 -3
  102. package/dist/{dist-C76EmJsT.cjs.map → dist-BNvS3nzI.cjs.map} +1 -1
  103. package/dist/{dist-C9yKk16g.cjs → dist-BoTiXJuB.cjs} +3 -3
  104. package/dist/{dist-C9yKk16g.cjs.map → dist-BoTiXJuB.cjs.map} +1 -1
  105. package/dist/{dist-Da8AufS5.js → dist-ByqJiZWY.js} +4 -4
  106. package/dist/{dist-Da8AufS5.js.map → dist-ByqJiZWY.js.map} +1 -1
  107. package/dist/{dist-Wjq6PT76.js → dist-C0MIGUJb.js} +3 -3
  108. package/dist/{dist-Wjq6PT76.js.map → dist-C0MIGUJb.js.map} +1 -1
  109. package/dist/{dist-DOpm-tIl.js → dist-C3lMsO1Z.js} +871 -189
  110. package/dist/dist-C3lMsO1Z.js.map +1 -0
  111. package/dist/{dist-CLQt62Pi.cjs → dist-CAeHwEQg.cjs} +3 -3
  112. package/dist/{dist-CLQt62Pi.cjs.map → dist-CAeHwEQg.cjs.map} +1 -1
  113. package/dist/{dist-DoTDZ7wF.js → dist-Cdj_Yiml.js} +3 -3
  114. package/dist/{dist-DoTDZ7wF.js.map → dist-Cdj_Yiml.js.map} +1 -1
  115. package/dist/{dist-Chgswf37.js → dist-DANO75MK.js} +2 -2
  116. package/dist/{dist-Chgswf37.js.map → dist-DANO75MK.js.map} +1 -1
  117. package/dist/{dist-XnA2Lowr.js → dist-DazAtske.js} +3 -3
  118. package/dist/{dist-XnA2Lowr.js.map → dist-DazAtske.js.map} +1 -1
  119. package/dist/{dist-B6qmZNb0.cjs → dist-Diq8iAfv.cjs} +2 -2
  120. package/dist/{dist-B6qmZNb0.cjs.map → dist-Diq8iAfv.cjs.map} +1 -1
  121. package/dist/{dist-DpM-6UBk.cjs → dist-DrjjAvjG.cjs} +3 -3
  122. package/dist/{dist-DpM-6UBk.cjs.map → dist-DrjjAvjG.cjs.map} +1 -1
  123. package/dist/docs/SKILL.md +2 -2
  124. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  125. package/dist/docs/references/docs-connections-a2a.md +4 -3
  126. package/dist/docs/references/docs-server-custom-adapters.md +43 -0
  127. package/dist/docs/references/reference-observability-tracing-trace-query.md +219 -46
  128. package/dist/{dynamic-workflows-DeUG3lA2.cjs → dynamic-workflows-BiX72mRA.cjs} +2 -2
  129. package/dist/{dynamic-workflows-DeUG3lA2.cjs.map → dynamic-workflows-BiX72mRA.cjs.map} +1 -1
  130. package/dist/{dynamic-workflows-C3DXgmSP.js → dynamic-workflows-CVrxi8y7.js} +2 -2
  131. package/dist/{dynamic-workflows-C3DXgmSP.js.map → dynamic-workflows-CVrxi8y7.js.map} +1 -1
  132. package/dist/{editor-builder-BI5yHrbT.js → editor-builder-BRRYGWMU.js} +3 -3
  133. package/dist/{editor-builder-BI5yHrbT.js.map → editor-builder-BRRYGWMU.js.map} +1 -1
  134. package/dist/{editor-builder-D6P_hq7c.js → editor-builder-D2gMZkny.js} +2 -2
  135. package/dist/{editor-builder-D6P_hq7c.js.map → editor-builder-D2gMZkny.js.map} +1 -1
  136. package/dist/{editor-builder-CKAeON9r.cjs → editor-builder-DZAS7tNU.cjs} +3 -3
  137. package/dist/{editor-builder-CKAeON9r.cjs.map → editor-builder-DZAS7tNU.cjs.map} +1 -1
  138. package/dist/{editor-builder-BHf-g7q9.cjs → editor-builder-ITPZxpzq.cjs} +2 -2
  139. package/dist/{editor-builder-BHf-g7q9.cjs.map → editor-builder-ITPZxpzq.cjs.map} +1 -1
  140. package/dist/{mcp-BPmrXX9r.cjs → mcp-CdZzch5c.cjs} +11 -3
  141. package/dist/mcp-CdZzch5c.cjs.map +1 -0
  142. package/dist/{mcp-B_OMG3Ol.js → mcp-ea7f_n2D.js} +11 -3
  143. package/dist/mcp-ea7f_n2D.js.map +1 -0
  144. package/dist/{memory-CDYtqQnE.cjs → memory-BNvFGYtR.cjs} +4 -2
  145. package/dist/memory-BNvFGYtR.cjs.map +1 -0
  146. package/dist/{memory-BvKPIpyH.js → memory-CxfzZmoW.js} +4 -2
  147. package/dist/memory-CxfzZmoW.js.map +1 -0
  148. package/dist/message-history-CkUYxSaS.cjs +22 -0
  149. package/dist/message-history-CkUYxSaS.cjs.map +1 -0
  150. package/dist/message-history-_kbQlA4r.js +11 -0
  151. package/dist/message-history-_kbQlA4r.js.map +1 -0
  152. package/dist/{observability-new-endpoints-I2OxQzfY.cjs → observability-new-endpoints-BUC8-mAb.cjs} +230 -6
  153. package/dist/observability-new-endpoints-BUC8-mAb.cjs.map +1 -0
  154. package/dist/{observability-new-endpoints-pIq_OWa8.js → observability-new-endpoints-CZyppvEy.js} +214 -8
  155. package/dist/observability-new-endpoints-CZyppvEy.js.map +1 -0
  156. package/dist/{route-builder-DupY8fkI.cjs → route-builder-CbCx1upL.cjs} +5 -5
  157. package/dist/{route-builder-DupY8fkI.cjs.map → route-builder-CbCx1upL.cjs.map} +1 -1
  158. package/dist/{route-builder-BukcT_Kp.js → route-builder-DDOjv0sM.js} +3 -3
  159. package/dist/{route-builder-BukcT_Kp.js.map → route-builder-DDOjv0sM.js.map} +1 -1
  160. package/dist/{routes-PJ3eKHbs.cjs → routes-7alDuT9Q.cjs} +14 -11
  161. package/dist/routes-7alDuT9Q.cjs.map +1 -0
  162. package/dist/{routes-BJZtqLVx.js → routes-gccKFI1D.js} +14 -11
  163. package/dist/routes-gccKFI1D.js.map +1 -0
  164. package/dist/{schedules-DaEv0Usj.cjs → schedules-ByXP9Fgm.cjs} +15 -9
  165. package/dist/schedules-ByXP9Fgm.cjs.map +1 -0
  166. package/dist/{schedules-BzymFGR_.js → schedules-Cy6FhkZX.js} +15 -9
  167. package/dist/schedules-Cy6FhkZX.js.map +1 -0
  168. package/dist/{schema-D_ikovK6-DQrOVw5N.cjs → schema-BwlBcZRB-BLwYP0BY.cjs} +6 -6
  169. package/dist/{schema-D_ikovK6-DQrOVw5N.cjs.map → schema-BwlBcZRB-BLwYP0BY.cjs.map} +1 -1
  170. package/dist/{schema-D_ikovK6-BzTeMhWf.js → schema-BwlBcZRB-DUSSQ9TD.js} +6 -6
  171. package/dist/{schema-D_ikovK6-BzTeMhWf.js.map → schema-BwlBcZRB-DUSSQ9TD.js.map} +1 -1
  172. package/dist/schema-DM4T8wfR.cjs +1 -0
  173. package/dist/schema-Fa9iirVJ.js +2 -0
  174. package/dist/{scorer-versions-B6U7batJ.cjs → scorer-versions-C8xZh_o9.cjs} +2 -2
  175. package/dist/{scorer-versions-B6U7batJ.cjs.map → scorer-versions-C8xZh_o9.cjs.map} +1 -1
  176. package/dist/{scorer-versions-Dh2iaz4Y.js → scorer-versions-hHzTJTa-.js} +2 -2
  177. package/dist/{scorer-versions-Dh2iaz4Y.js.map → scorer-versions-hHzTJTa-.js.map} +1 -1
  178. package/dist/server/a2a/agent-card-signing.d.ts +8 -4
  179. package/dist/server/a2a/agent-card-signing.d.ts.map +1 -1
  180. package/dist/server/a2a/agent-card-v1.d.ts +6 -0
  181. package/dist/server/a2a/agent-card-v1.d.ts.map +1 -0
  182. package/dist/server/handlers/a2a.cjs +1 -1
  183. package/dist/server/handlers/a2a.d.ts +205 -61
  184. package/dist/server/handlers/a2a.d.ts.map +1 -1
  185. package/dist/server/handlers/a2a.js +1 -1
  186. package/dist/server/handlers/agent-builder.cjs +4 -4
  187. package/dist/server/handlers/agent-builder.d.ts +64 -64
  188. package/dist/server/handlers/agent-builder.js +4 -4
  189. package/dist/server/handlers/agent-controller.cjs +2 -2
  190. package/dist/server/handlers/agent-controller.d.ts +145 -145
  191. package/dist/server/handlers/agent-controller.js +2 -2
  192. package/dist/server/handlers/agent-versions.cjs +3 -3
  193. package/dist/server/handlers/agent-versions.d.ts +88 -24
  194. package/dist/server/handlers/agent-versions.d.ts.map +1 -1
  195. package/dist/server/handlers/agent-versions.js +3 -3
  196. package/dist/server/handlers/agents.cjs +7 -7
  197. package/dist/server/handlers/agents.d.ts +224 -148
  198. package/dist/server/handlers/agents.d.ts.map +1 -1
  199. package/dist/server/handlers/agents.js +6 -6
  200. package/dist/server/handlers/auth.cjs +1 -1
  201. package/dist/server/handlers/auth.d.ts +80 -80
  202. package/dist/server/handlers/auth.js +1 -1
  203. package/dist/server/handlers/background-tasks.cjs +1 -1
  204. package/dist/server/handlers/background-tasks.d.ts +12 -12
  205. package/dist/server/handlers/background-tasks.js +1 -1
  206. package/dist/server/handlers/builder-registry.cjs +1 -1
  207. package/dist/server/handlers/builder-registry.d.ts +20 -20
  208. package/dist/server/handlers/builder-registry.js +1 -1
  209. package/dist/server/handlers/channels.cjs +1 -1
  210. package/dist/server/handlers/channels.d.ts +16 -16
  211. package/dist/server/handlers/channels.js +1 -1
  212. package/dist/server/handlers/conversations.cjs +2 -2
  213. package/dist/server/handlers/conversations.d.ts +16 -16
  214. package/dist/server/handlers/conversations.js +2 -2
  215. package/dist/server/handlers/datasets.cjs +3 -3
  216. package/dist/server/handlers/datasets.cjs.map +1 -1
  217. package/dist/server/handlers/datasets.d.ts +142 -142
  218. package/dist/server/handlers/datasets.js +3 -3
  219. package/dist/server/handlers/datasets.js.map +1 -1
  220. package/dist/server/handlers/dynamic-workflows.cjs +1 -1
  221. package/dist/server/handlers/dynamic-workflows.d.ts +76 -76
  222. package/dist/server/handlers/dynamic-workflows.js +1 -1
  223. package/dist/server/handlers/editor-builder.cjs +1 -1
  224. package/dist/server/handlers/editor-builder.d.ts +12 -12
  225. package/dist/server/handlers/editor-builder.js +1 -1
  226. package/dist/server/handlers/favorites-enrichment.cjs +1 -1
  227. package/dist/server/handlers/favorites-enrichment.js +1 -1
  228. package/dist/server/handlers/logs.cjs +1 -1
  229. package/dist/server/handlers/logs.d.ts +12 -12
  230. package/dist/server/handlers/logs.js +1 -1
  231. package/dist/server/handlers/mcp-client-versions.cjs +2 -2
  232. package/dist/server/handlers/mcp-client-versions.d.ts +28 -28
  233. package/dist/server/handlers/mcp-client-versions.js +2 -2
  234. package/dist/server/handlers/mcp.cjs +24 -3
  235. package/dist/server/handlers/mcp.cjs.map +1 -1
  236. package/dist/server/handlers/mcp.d.ts +55 -42
  237. package/dist/server/handlers/mcp.d.ts.map +1 -1
  238. package/dist/server/handlers/mcp.js +24 -3
  239. package/dist/server/handlers/mcp.js.map +1 -1
  240. package/dist/server/handlers/memory.cjs +3 -4
  241. package/dist/server/handlers/memory.cjs.map +1 -1
  242. package/dist/server/handlers/memory.d.ts +160 -152
  243. package/dist/server/handlers/memory.d.ts.map +1 -1
  244. package/dist/server/handlers/memory.js +3 -4
  245. package/dist/server/handlers/memory.js.map +1 -1
  246. package/dist/server/handlers/observability-new-endpoints.cjs +4 -1
  247. package/dist/server/handlers/observability-new-endpoints.d.ts +974 -518
  248. package/dist/server/handlers/observability-new-endpoints.d.ts.map +1 -1
  249. package/dist/server/handlers/observability-new-endpoints.js +2 -2
  250. package/dist/server/handlers/observability-shared.cjs +41 -2
  251. package/dist/server/handlers/observability-shared.cjs.map +1 -1
  252. package/dist/server/handlers/observability-shared.d.ts +24 -0
  253. package/dist/server/handlers/observability-shared.d.ts.map +1 -1
  254. package/dist/server/handlers/observability-shared.js +37 -2
  255. package/dist/server/handlers/observability-shared.js.map +1 -1
  256. package/dist/server/handlers/observability.cjs +8 -2
  257. package/dist/server/handlers/observability.cjs.map +1 -1
  258. package/dist/server/handlers/observability.d.ts +33 -27
  259. package/dist/server/handlers/observability.d.ts.map +1 -1
  260. package/dist/server/handlers/observability.js +6 -3
  261. package/dist/server/handlers/observability.js.map +1 -1
  262. package/dist/server/handlers/plans.cjs +2 -2
  263. package/dist/server/handlers/plans.d.ts +4 -4
  264. package/dist/server/handlers/plans.js +2 -2
  265. package/dist/server/handlers/processor-providers.cjs +1 -1
  266. package/dist/server/handlers/processor-providers.d.ts +8 -8
  267. package/dist/server/handlers/processor-providers.js +1 -1
  268. package/dist/server/handlers/processors.cjs +1 -1
  269. package/dist/server/handlers/processors.d.ts +12 -12
  270. package/dist/server/handlers/processors.js +1 -1
  271. package/dist/server/handlers/prompt-block-versions.cjs +2 -2
  272. package/dist/server/handlers/prompt-block-versions.d.ts +28 -28
  273. package/dist/server/handlers/prompt-block-versions.js +2 -2
  274. package/dist/server/handlers/responses.cjs +1 -1
  275. package/dist/server/handlers/responses.d.ts +12 -12
  276. package/dist/server/handlers/responses.js +1 -1
  277. package/dist/server/handlers/schedules.cjs +1 -1
  278. package/dist/server/handlers/schedules.d.ts +52 -36
  279. package/dist/server/handlers/schedules.d.ts.map +1 -1
  280. package/dist/server/handlers/schedules.js +1 -1
  281. package/dist/server/handlers/scorer-versions.cjs +3 -3
  282. package/dist/server/handlers/scorer-versions.d.ts +28 -28
  283. package/dist/server/handlers/scorer-versions.js +3 -3
  284. package/dist/server/handlers/scores.cjs +1 -1
  285. package/dist/server/handlers/scores.d.ts +24 -24
  286. package/dist/server/handlers/scores.js +1 -1
  287. package/dist/server/handlers/stored-agent-favorites.cjs +4 -4
  288. package/dist/server/handlers/stored-agent-favorites.d.ts +8 -8
  289. package/dist/server/handlers/stored-agent-favorites.js +4 -4
  290. package/dist/server/handlers/stored-agents.cjs +4 -4
  291. package/dist/server/handlers/stored-agents.d.ts +92 -28
  292. package/dist/server/handlers/stored-agents.d.ts.map +1 -1
  293. package/dist/server/handlers/stored-agents.js +4 -4
  294. package/dist/server/handlers/stored-mcp-clients.cjs +2 -2
  295. package/dist/server/handlers/stored-mcp-clients.d.ts +20 -20
  296. package/dist/server/handlers/stored-mcp-clients.js +2 -2
  297. package/dist/server/handlers/stored-prompt-blocks.cjs +2 -2
  298. package/dist/server/handlers/stored-prompt-blocks.d.ts +20 -20
  299. package/dist/server/handlers/stored-prompt-blocks.js +2 -2
  300. package/dist/server/handlers/stored-scorers.cjs +3 -3
  301. package/dist/server/handlers/stored-scorers.d.ts +20 -20
  302. package/dist/server/handlers/stored-scorers.js +3 -3
  303. package/dist/server/handlers/stored-skill-favorites.cjs +3 -3
  304. package/dist/server/handlers/stored-skill-favorites.d.ts +8 -8
  305. package/dist/server/handlers/stored-skill-favorites.js +3 -3
  306. package/dist/server/handlers/stored-skills.cjs +3 -3
  307. package/dist/server/handlers/stored-skills.d.ts +24 -24
  308. package/dist/server/handlers/stored-skills.js +3 -3
  309. package/dist/server/handlers/stored-workspaces.cjs +2 -2
  310. package/dist/server/handlers/stored-workspaces.d.ts +20 -20
  311. package/dist/server/handlers/stored-workspaces.js +2 -2
  312. package/dist/server/handlers/system.cjs +7 -5
  313. package/dist/server/handlers/system.cjs.map +1 -1
  314. package/dist/server/handlers/system.d.ts +10 -8
  315. package/dist/server/handlers/system.d.ts.map +1 -1
  316. package/dist/server/handlers/system.js +7 -5
  317. package/dist/server/handlers/system.js.map +1 -1
  318. package/dist/server/handlers/tool-providers.cjs +1 -1
  319. package/dist/server/handlers/tool-providers.d.ts +52 -52
  320. package/dist/server/handlers/tool-providers.js +1 -1
  321. package/dist/server/handlers/tools.cjs +6 -6
  322. package/dist/server/handlers/tools.d.ts +26 -20
  323. package/dist/server/handlers/tools.d.ts.map +1 -1
  324. package/dist/server/handlers/tools.js +5 -5
  325. package/dist/server/handlers/validate-agent-instructions.cjs +1 -1
  326. package/dist/server/handlers/validate-agent-instructions.js +1 -1
  327. package/dist/server/handlers/vector.cjs +1 -1
  328. package/dist/server/handlers/vector.d.ts +32 -32
  329. package/dist/server/handlers/vector.js +1 -1
  330. package/dist/server/handlers/workflow-builder.cjs +1 -1
  331. package/dist/server/handlers/workflow-builder.d.ts +8 -8
  332. package/dist/server/handlers/workflow-builder.js +1 -1
  333. package/dist/server/handlers/workflows.cjs +3 -3
  334. package/dist/server/handlers/workflows.d.ts +108 -108
  335. package/dist/server/handlers/workflows.js +3 -3
  336. package/dist/server/handlers/workspace.cjs +1 -1
  337. package/dist/server/handlers/workspace.d.ts +160 -160
  338. package/dist/server/handlers/workspace.js +1 -1
  339. package/dist/server/handlers.cjs +2 -2
  340. package/dist/server/handlers.js +2 -2
  341. package/dist/server/schemas/a2a.d.ts +165 -9
  342. package/dist/server/schemas/a2a.d.ts.map +1 -1
  343. package/dist/server/schemas/agent-versions.d.ts +40 -0
  344. package/dist/server/schemas/agent-versions.d.ts.map +1 -1
  345. package/dist/server/schemas/agents.d.ts +48 -1
  346. package/dist/server/schemas/agents.d.ts.map +1 -1
  347. package/dist/server/schemas/datasets.d.ts +4 -4
  348. package/dist/server/schemas/feedback.d.ts +3 -3
  349. package/dist/server/schemas/index.cjs +11 -11
  350. package/dist/server/schemas/index.js +11 -11
  351. package/dist/server/schemas/mcp.d.ts +8 -2
  352. package/dist/server/schemas/mcp.d.ts.map +1 -1
  353. package/dist/server/schemas/memory-config.d.ts +4 -0
  354. package/dist/server/schemas/memory-config.d.ts.map +1 -1
  355. package/dist/server/schemas/memory.d.ts +32 -28
  356. package/dist/server/schemas/memory.d.ts.map +1 -1
  357. package/dist/server/schemas/message-history.d.ts +7 -0
  358. package/dist/server/schemas/message-history.d.ts.map +1 -0
  359. package/dist/server/schemas/schedules.d.ts +9 -3
  360. package/dist/server/schemas/schedules.d.ts.map +1 -1
  361. package/dist/server/schemas/stored-agents.d.ts +80 -0
  362. package/dist/server/schemas/stored-agents.d.ts.map +1 -1
  363. package/dist/server/schemas/system.d.ts +2 -0
  364. package/dist/server/schemas/system.d.ts.map +1 -1
  365. package/dist/server/server-adapter/api-schema-manifest.d.ts +1 -1
  366. package/dist/server/server-adapter/index.cjs +3 -3
  367. package/dist/server/server-adapter/index.js +3 -3
  368. package/dist/server/server-adapter/openapi-utils.d.ts +1 -1
  369. package/dist/server/server-adapter/routes/a2a.d.ts +193 -59
  370. package/dist/server/server-adapter/routes/a2a.d.ts.map +1 -1
  371. package/dist/server/server-adapter/routes/agent-builder.d.ts +64 -64
  372. package/dist/server/server-adapter/routes/channels.d.ts +16 -16
  373. package/dist/server/server-adapter/routes/conversations.d.ts +16 -16
  374. package/dist/server/server-adapter/routes/datasets.d.ts +142 -142
  375. package/dist/server/server-adapter/routes/editor-builder.d.ts +40 -40
  376. package/dist/server/server-adapter/routes/legacy.d.ts +16 -16
  377. package/dist/server/server-adapter/routes/logs.d.ts +12 -12
  378. package/dist/server/server-adapter/routes/mcp.d.ts +54 -42
  379. package/dist/server/server-adapter/routes/mcp.d.ts.map +1 -1
  380. package/dist/server/server-adapter/routes/memory.d.ts +160 -152
  381. package/dist/server/server-adapter/routes/memory.d.ts.map +1 -1
  382. package/dist/server/server-adapter/routes/observability.d.ts +593 -286
  383. package/dist/server/server-adapter/routes/observability.d.ts.map +1 -1
  384. package/dist/server/server-adapter/routes/processor-providers.d.ts +8 -8
  385. package/dist/server/server-adapter/routes/processors.d.ts +12 -12
  386. package/dist/server/server-adapter/routes/responses.d.ts +12 -12
  387. package/dist/server/server-adapter/routes/scorers.d.ts +24 -24
  388. package/dist/server/server-adapter/routes/stored-mcp-clients.d.ts +48 -48
  389. package/dist/server/server-adapter/routes/stored-prompt-blocks.d.ts +48 -48
  390. package/dist/server/server-adapter/routes/stored-scorers.d.ts +48 -48
  391. package/dist/server/server-adapter/routes/stored-skills.d.ts +32 -32
  392. package/dist/server/server-adapter/routes/stored-workspaces.d.ts +20 -20
  393. package/dist/server/server-adapter/routes/system.d.ts +10 -8
  394. package/dist/server/server-adapter/routes/system.d.ts.map +1 -1
  395. package/dist/server/server-adapter/routes/tool-providers.d.ts +52 -52
  396. package/dist/server/server-adapter/routes/tools.d.ts +16 -12
  397. package/dist/server/server-adapter/routes/tools.d.ts.map +1 -1
  398. package/dist/server/server-adapter/routes/vectors.d.ts +32 -32
  399. package/dist/server/server-adapter/routes/workflows.d.ts +100 -100
  400. package/dist/server/server-adapter/routes/workspace.d.ts +84 -84
  401. package/dist/{stored-agents-AC0najKd.js → stored-agents-Bp76o0XY.js} +4 -2
  402. package/dist/stored-agents-Bp76o0XY.js.map +1 -0
  403. package/dist/{stored-agents-BJMM5f9A.cjs → stored-agents-CN9E52bJ.cjs} +4 -2
  404. package/dist/stored-agents-CN9E52bJ.cjs.map +1 -0
  405. package/dist/{stored-scorers-CWxW1_mY.cjs → stored-scorers-DSZRCvM3.cjs} +2 -2
  406. package/dist/{stored-scorers-CWxW1_mY.cjs.map → stored-scorers-DSZRCvM3.cjs.map} +1 -1
  407. package/dist/{stored-scorers-B8QVQCCs.js → stored-scorers-vssJQZiO.js} +2 -2
  408. package/dist/{stored-scorers-B8QVQCCs.js.map → stored-scorers-vssJQZiO.js.map} +1 -1
  409. package/dist/{system-Cfo5a63a.cjs → system-D85p7-oz.cjs} +3 -2
  410. package/dist/system-D85p7-oz.cjs.map +1 -0
  411. package/dist/{system-DT2JfUun.js → system-DMAG21IT.js} +3 -2
  412. package/dist/system-DMAG21IT.js.map +1 -0
  413. package/dist/{utils-WcR0QSUB.cjs → utils-DbHFc3hG.cjs} +5 -5
  414. package/dist/{utils-WcR0QSUB.cjs.map → utils-DbHFc3hG.cjs.map} +1 -1
  415. package/dist/{utils-Duk4hfT_.js → utils-mRt04Bqa.js} +3 -3
  416. package/dist/{utils-Duk4hfT_.js.map → utils-mRt04Bqa.js.map} +1 -1
  417. package/dist/{workflow-builder-D5dPsrog.cjs → workflow-builder-B6FVVlj_.cjs} +4 -4
  418. package/dist/{workflow-builder-D5dPsrog.cjs.map → workflow-builder-B6FVVlj_.cjs.map} +1 -1
  419. package/dist/{workflow-builder-Eape8SyU.js → workflow-builder-Cu0uWpzj.js} +4 -4
  420. package/dist/{workflow-builder-Eape8SyU.js.map → workflow-builder-Cu0uWpzj.js.map} +1 -1
  421. package/package.json +11 -11
  422. package/dist/a2a-8C4O2dVJ.js.map +0 -1
  423. package/dist/a2a-DQ8GeDz4.cjs.map +0 -1
  424. package/dist/a2a-DUBjstWk.js.map +0 -1
  425. package/dist/a2a-MPoM5lzS.cjs.map +0 -1
  426. package/dist/agents-CZE_MSQE.cjs.map +0 -1
  427. package/dist/agents-ssoMemNs.js.map +0 -1
  428. package/dist/dist-BKxbtiJd.cjs.map +0 -1
  429. package/dist/dist-DOpm-tIl.js.map +0 -1
  430. package/dist/mcp-BPmrXX9r.cjs.map +0 -1
  431. package/dist/mcp-B_OMG3Ol.js.map +0 -1
  432. package/dist/memory-BvKPIpyH.js.map +0 -1
  433. package/dist/memory-CDYtqQnE.cjs.map +0 -1
  434. package/dist/observability-new-endpoints-I2OxQzfY.cjs.map +0 -1
  435. package/dist/observability-new-endpoints-pIq_OWa8.js.map +0 -1
  436. package/dist/routes-BJZtqLVx.js.map +0 -1
  437. package/dist/routes-PJ3eKHbs.cjs.map +0 -1
  438. package/dist/schedules-BzymFGR_.js.map +0 -1
  439. package/dist/schedules-DaEv0Usj.cjs.map +0 -1
  440. package/dist/schema-BF_cZG0Y.js +0 -2
  441. package/dist/schema-C7CvwM1d.cjs +0 -1
  442. package/dist/stored-agents-AC0najKd.js.map +0 -1
  443. package/dist/stored-agents-BJMM5f9A.cjs.map +0 -1
  444. package/dist/system-Cfo5a63a.cjs.map +0 -1
  445. package/dist/system-DT2JfUun.js.map +0 -1
@@ -21,14 +21,24 @@ 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;
28
32
  } & ServerContext): Promise<{
29
33
  traces: {
30
34
  traceId: string;
31
35
  rootSpanId: string;
36
+ name: string;
37
+ entityId: string | null;
38
+ parentSpanId: string | null;
39
+ createdAt: string;
40
+ metadata: Record<string, unknown> | null;
41
+ inputPreview: string | null;
32
42
  threadId: string | null;
33
43
  resourceId: string | null;
34
44
  startedAt: string;
@@ -41,6 +51,31 @@ export declare const QUERY_TRACES: Omit<import("@mastra/core/server").ApiRoute,
41
51
  page: {
42
52
  next: string | null;
43
53
  };
54
+ } | {
55
+ traces: {
56
+ traceId: string;
57
+ rootSpanId: string;
58
+ name: string;
59
+ entityId: string | null;
60
+ parentSpanId: string | null;
61
+ createdAt: string;
62
+ metadata: Record<string, unknown> | null;
63
+ inputPreview: string | null;
64
+ threadId: string | null;
65
+ resourceId: string | null;
66
+ startedAt: string;
67
+ endedAt: string;
68
+ entityName: string | null;
69
+ entityType: string | null;
70
+ environment: string | null;
71
+ status: "error" | "success";
72
+ }[];
73
+ pagination: {
74
+ total: number;
75
+ page: number;
76
+ perPage: number | false;
77
+ hasMore: boolean;
78
+ };
44
79
  } | {
45
80
  groups: {
46
81
  threadId: string;
@@ -49,10 +84,10 @@ export declare const QUERY_TRACES: Omit<import("@mastra/core/server").ApiRoute,
49
84
  next: string | null;
50
85
  };
51
86
  }>;
52
- pathParamSchema?: z.ZodType;
53
- queryParamSchema?: z.ZodType;
54
- bodySchema?: z.ZodType;
55
- responseSchema?: z.ZodType;
87
+ pathParamSchema?: z.ZodSchema;
88
+ queryParamSchema?: z.ZodSchema;
89
+ bodySchema?: z.ZodSchema;
90
+ responseSchema?: z.ZodSchema;
56
91
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
57
92
  maxBodySize?: number;
58
93
  deprecated?: boolean;
@@ -78,14 +113,24 @@ export declare const QUERY_TRACES: Omit<import("@mastra/core/server").ApiRoute,
78
113
  desc: "desc";
79
114
  }>;
80
115
  }, z.core.$strict>>>;
81
- page: z.ZodDefault<z.ZodObject<{
116
+ page: z.ZodOptional<z.ZodObject<{
82
117
  limit: z.ZodDefault<z.ZodNumber>;
83
118
  after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
119
  }, z.core.$strict>>;
85
- }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodObject<{
120
+ pagination: z.ZodOptional<z.ZodObject<{
121
+ page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
122
+ perPage: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
123
+ }, z.core.$strip>>;
124
+ }, z.core.$strict>, unknown>, z.ZodUnion<readonly [z.ZodObject<{
86
125
  traces: z.ZodArray<z.ZodObject<{
87
126
  traceId: z.ZodString;
88
127
  rootSpanId: z.ZodString;
128
+ name: z.ZodString;
129
+ entityId: z.ZodNullable<z.ZodString>;
130
+ parentSpanId: z.ZodNullable<z.ZodString>;
131
+ createdAt: z.ZodString;
132
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
133
+ inputPreview: z.ZodNullable<z.ZodString>;
89
134
  threadId: z.ZodNullable<z.ZodString>;
90
135
  resourceId: z.ZodNullable<z.ZodString>;
91
136
  startedAt: z.ZodString;
@@ -101,6 +146,34 @@ export declare const QUERY_TRACES: Omit<import("@mastra/core/server").ApiRoute,
101
146
  page: z.ZodObject<{
102
147
  next: z.ZodNullable<z.ZodString>;
103
148
  }, z.core.$strict>;
149
+ }, z.core.$strict>, z.ZodObject<{
150
+ traces: z.ZodArray<z.ZodObject<{
151
+ traceId: z.ZodString;
152
+ rootSpanId: z.ZodString;
153
+ name: z.ZodString;
154
+ entityId: z.ZodNullable<z.ZodString>;
155
+ parentSpanId: z.ZodNullable<z.ZodString>;
156
+ createdAt: z.ZodString;
157
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
158
+ inputPreview: z.ZodNullable<z.ZodString>;
159
+ threadId: z.ZodNullable<z.ZodString>;
160
+ resourceId: z.ZodNullable<z.ZodString>;
161
+ startedAt: z.ZodString;
162
+ endedAt: z.ZodString;
163
+ entityName: z.ZodNullable<z.ZodString>;
164
+ entityType: z.ZodNullable<z.ZodString>;
165
+ environment: z.ZodNullable<z.ZodString>;
166
+ status: z.ZodEnum<{
167
+ error: "error";
168
+ success: "success";
169
+ }>;
170
+ }, z.core.$strict>>;
171
+ pagination: z.ZodObject<{
172
+ total: z.ZodNumber;
173
+ page: z.ZodNumber;
174
+ perPage: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>;
175
+ hasMore: z.ZodBoolean;
176
+ }, z.core.$strip>;
104
177
  }, z.core.$strict>, z.ZodObject<{
105
178
  groups: z.ZodArray<z.ZodObject<{
106
179
  threadId: z.ZodString;
@@ -112,13 +185,228 @@ export declare const QUERY_TRACES: Omit<import("@mastra/core/server").ApiRoute,
112
185
  } & {
113
186
  readonly _mastraSchemaRoute: true;
114
187
  };
188
+ export declare const GET_TRACE_QUERY_FIELDS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
189
+ method: string;
190
+ path: `/${string}`;
191
+ responseType: "json";
192
+ streamFormat?: 'sse' | 'stream';
193
+ sseFlushOnConnect?: boolean;
194
+ handler(params: {
195
+ timeRange: {
196
+ from: string;
197
+ to: string;
198
+ };
199
+ predicateScope: "feedback" | "scores" | "spans" | "trace";
200
+ search?: string | undefined;
201
+ limit: number;
202
+ } & ServerContext): Promise<{
203
+ canonicalFields: {
204
+ path: string;
205
+ valueKind: "number" | "presence" | "string" | "stringOrNumber" | "timestamp";
206
+ operators: ("eq" | "exists" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "notExists" | "notIn")[];
207
+ valueSuggestions: boolean;
208
+ }[];
209
+ observedFields: {
210
+ path: `metadata.${string}`;
211
+ valueKind: "string";
212
+ operators: ("eq" | "exists" | "in" | "ne" | "notExists" | "notIn")[];
213
+ valueSuggestions: true;
214
+ occurrences: number;
215
+ }[];
216
+ observedFieldsTruncated: boolean;
217
+ }>;
218
+ pathParamSchema?: z.ZodSchema;
219
+ queryParamSchema?: z.ZodSchema;
220
+ bodySchema?: z.ZodSchema;
221
+ responseSchema?: z.ZodSchema;
222
+ openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
223
+ maxBodySize?: number;
224
+ deprecated?: boolean;
225
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
226
+ fga?: import("@mastra/core/auth").FGARouteConfig;
227
+ onValidationError?: ValidationErrorHook;
228
+ readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
229
+ timeRange: z.ZodObject<{
230
+ from: z.ZodString;
231
+ to: z.ZodString;
232
+ }, z.core.$strict>;
233
+ predicateScope: z.ZodEnum<{
234
+ feedback: "feedback";
235
+ scores: "scores";
236
+ spans: "spans";
237
+ trace: "trace";
238
+ }>;
239
+ search: z.ZodOptional<z.ZodString>;
240
+ limit: z.ZodDefault<z.ZodNumber>;
241
+ }, z.core.$strict>, z.ZodObject<{
242
+ canonicalFields: z.ZodArray<z.ZodObject<{
243
+ path: z.ZodString;
244
+ valueKind: z.ZodEnum<{
245
+ number: "number";
246
+ presence: "presence";
247
+ string: "string";
248
+ stringOrNumber: "stringOrNumber";
249
+ timestamp: "timestamp";
250
+ }>;
251
+ operators: z.ZodArray<z.ZodEnum<{
252
+ eq: "eq";
253
+ exists: "exists";
254
+ gt: "gt";
255
+ gte: "gte";
256
+ in: "in";
257
+ lt: "lt";
258
+ lte: "lte";
259
+ ne: "ne";
260
+ notExists: "notExists";
261
+ notIn: "notIn";
262
+ }>>;
263
+ valueSuggestions: z.ZodBoolean;
264
+ }, z.core.$strict>>;
265
+ observedFields: z.ZodArray<z.ZodObject<{
266
+ path: z.ZodString & z.ZodType<`metadata.${string}`, string, z.core.$ZodTypeInternals<`metadata.${string}`, string>>;
267
+ valueKind: z.ZodLiteral<"string">;
268
+ operators: z.ZodArray<z.ZodEnum<{
269
+ eq: "eq";
270
+ exists: "exists";
271
+ in: "in";
272
+ ne: "ne";
273
+ notExists: "notExists";
274
+ notIn: "notIn";
275
+ }>>;
276
+ valueSuggestions: z.ZodLiteral<true>;
277
+ occurrences: z.ZodNumber;
278
+ }, z.core.$strict>>;
279
+ observedFieldsTruncated: z.ZodBoolean;
280
+ }, z.core.$strict>> | undefined;
281
+ } & {
282
+ readonly _mastraSchemaRoute: true;
283
+ };
284
+ export declare const GET_TRACE_QUERY_VALUES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
285
+ method: string;
286
+ path: `/${string}`;
287
+ responseType: "json";
288
+ streamFormat?: 'sse' | 'stream';
289
+ sseFlushOnConnect?: boolean;
290
+ handler(params: {
291
+ timeRange: {
292
+ from: string;
293
+ to: string;
294
+ };
295
+ predicateScope: "feedback" | "scores" | "spans" | "trace";
296
+ path: string;
297
+ search?: string | undefined;
298
+ limit: number;
299
+ } & ServerContext): Promise<{
300
+ values: {
301
+ value: string;
302
+ count: number;
303
+ }[];
304
+ valuesTruncated: boolean;
305
+ }>;
306
+ pathParamSchema?: z.ZodSchema;
307
+ queryParamSchema?: z.ZodSchema;
308
+ bodySchema?: z.ZodSchema;
309
+ responseSchema?: z.ZodSchema;
310
+ openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
311
+ maxBodySize?: number;
312
+ deprecated?: boolean;
313
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
314
+ fga?: import("@mastra/core/auth").FGARouteConfig;
315
+ onValidationError?: ValidationErrorHook;
316
+ readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
317
+ timeRange: z.ZodObject<{
318
+ from: z.ZodString;
319
+ to: z.ZodString;
320
+ }, z.core.$strict>;
321
+ predicateScope: z.ZodEnum<{
322
+ feedback: "feedback";
323
+ scores: "scores";
324
+ spans: "spans";
325
+ trace: "trace";
326
+ }>;
327
+ path: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
328
+ search: z.ZodOptional<z.ZodString>;
329
+ limit: z.ZodDefault<z.ZodNumber>;
330
+ }, z.core.$strict>, z.ZodObject<{
331
+ values: z.ZodArray<z.ZodObject<{
332
+ value: z.ZodString;
333
+ count: z.ZodNumber;
334
+ }, z.core.$strict>>;
335
+ valuesTruncated: z.ZodBoolean;
336
+ }, z.core.$strict>> | undefined;
337
+ } & {
338
+ readonly _mastraSchemaRoute: true;
339
+ };
340
+ export declare const QUERY_THREADS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
341
+ method: string;
342
+ path: `/${string}`;
343
+ responseType: "json";
344
+ streamFormat?: 'sse' | 'stream';
345
+ sseFlushOnConnect?: boolean;
346
+ handler(params: {
347
+ traces: {
348
+ timeRange: {
349
+ from: string;
350
+ to: string;
351
+ };
352
+ where?: coreStorage.TraceQueryPredicate | undefined;
353
+ };
354
+ where?: coreStorage.ThreadPredicate | undefined;
355
+ page: {
356
+ limit: number;
357
+ after?: string | null | undefined;
358
+ };
359
+ } & ServerContext): Promise<{
360
+ threads: {
361
+ threadId: string;
362
+ }[];
363
+ page: {
364
+ next: string | null;
365
+ };
366
+ }>;
367
+ pathParamSchema?: z.ZodSchema;
368
+ queryParamSchema?: z.ZodSchema;
369
+ bodySchema?: z.ZodSchema;
370
+ responseSchema?: z.ZodSchema;
371
+ openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
372
+ maxBodySize?: number;
373
+ deprecated?: boolean;
374
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
375
+ fga?: import("@mastra/core/auth").FGARouteConfig;
376
+ onValidationError?: ValidationErrorHook;
377
+ readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodPreprocess<z.ZodObject<{
378
+ traces: z.ZodObject<{
379
+ timeRange: z.ZodObject<{
380
+ from: z.ZodString;
381
+ to: z.ZodString;
382
+ }, z.core.$strict>;
383
+ where: z.ZodOptional<z.ZodType<coreStorage.TraceQueryPredicate, unknown, z.core.$ZodTypeInternals<coreStorage.TraceQueryPredicate, unknown>>>;
384
+ }, z.core.$strict>;
385
+ where: z.ZodOptional<z.ZodType<coreStorage.ThreadPredicate, unknown, z.core.$ZodTypeInternals<coreStorage.ThreadPredicate, unknown>>>;
386
+ page: z.ZodDefault<z.ZodObject<{
387
+ limit: z.ZodDefault<z.ZodNumber>;
388
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
389
+ }, z.core.$strict>>;
390
+ }, z.core.$strict>, unknown>, z.ZodObject<{
391
+ threads: z.ZodArray<z.ZodObject<{
392
+ threadId: z.ZodString;
393
+ }, z.core.$strict>>;
394
+ page: z.ZodObject<{
395
+ next: z.ZodNullable<z.ZodString>;
396
+ }, z.core.$strict>;
397
+ }, z.core.$strict>> | undefined;
398
+ } & {
399
+ readonly _mastraSchemaRoute: true;
400
+ };
115
401
  export declare const LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
116
402
  method: string;
117
403
  path: `/${string}`;
118
404
  responseType: "json";
119
405
  streamFormat?: 'sse' | 'stream';
120
406
  sseFlushOnConnect?: boolean;
121
- handler(params: Record<string, unknown> & ServerContext): Promise<{
407
+ handler(params: {
408
+ [x: string]: unknown;
409
+ } & ServerContext): Promise<{
122
410
  pagination?: {
123
411
  total: number;
124
412
  page: number;
@@ -131,13 +419,13 @@ export declare const LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "cr
131
419
  } | undefined;
132
420
  deltaCursor?: string | undefined;
133
421
  logs: {
134
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
422
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
135
423
  entityId?: string | null | undefined;
136
424
  entityName?: string | null | undefined;
137
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
425
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
138
426
  parentEntityId?: string | null | undefined;
139
427
  parentEntityName?: string | null | undefined;
140
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
428
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
141
429
  rootEntityId?: string | null | undefined;
142
430
  rootEntityName?: string | null | undefined;
143
431
  userId?: string | null | undefined;
@@ -167,10 +455,10 @@ export declare const LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "cr
167
455
  metadata?: Record<string, unknown> | null | undefined;
168
456
  }[];
169
457
  }>;
170
- pathParamSchema?: z.ZodType;
171
- queryParamSchema?: z.ZodType;
172
- bodySchema?: z.ZodType;
173
- responseSchema?: z.ZodType;
458
+ pathParamSchema?: z.ZodSchema;
459
+ queryParamSchema?: z.ZodSchema;
460
+ bodySchema?: z.ZodSchema;
461
+ responseSchema?: z.ZodSchema;
174
462
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
175
463
  maxBodySize?: number;
176
464
  deprecated?: boolean;
@@ -192,13 +480,13 @@ export declare const LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "cr
192
480
  }, z.core.$strip>>;
193
481
  deltaCursor: z.ZodOptional<z.ZodString>;
194
482
  logs: z.ZodArray<z.ZodObject<{
195
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
483
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
196
484
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
485
  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>>>;
486
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
199
487
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
488
  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>>>;
489
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
202
490
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
491
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
492
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -243,7 +531,9 @@ export declare const LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "
243
531
  responseType: "json";
244
532
  streamFormat?: 'sse' | 'stream';
245
533
  sseFlushOnConnect?: boolean;
246
- handler(params: Record<string, unknown> & ServerContext): Promise<{
534
+ handler(params: {
535
+ [x: string]: unknown;
536
+ } & ServerContext): Promise<{
247
537
  pagination?: {
248
538
  total: number;
249
539
  page: number;
@@ -256,13 +546,13 @@ export declare const LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "
256
546
  } | undefined;
257
547
  deltaCursor?: string | undefined;
258
548
  scores: {
259
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
549
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
260
550
  entityId?: string | null | undefined;
261
551
  entityName?: string | null | undefined;
262
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
552
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
263
553
  parentEntityId?: string | null | undefined;
264
554
  parentEntityName?: string | null | undefined;
265
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
555
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
266
556
  rootEntityId?: string | null | undefined;
267
557
  rootEntityName?: string | null | undefined;
268
558
  userId?: string | null | undefined;
@@ -296,10 +586,10 @@ export declare const LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "
296
586
  metadata?: Record<string, unknown> | null | undefined;
297
587
  }[];
298
588
  }>;
299
- pathParamSchema?: z.ZodType;
300
- queryParamSchema?: z.ZodType;
301
- bodySchema?: z.ZodType;
302
- responseSchema?: z.ZodType;
589
+ pathParamSchema?: z.ZodSchema;
590
+ queryParamSchema?: z.ZodSchema;
591
+ bodySchema?: z.ZodSchema;
592
+ responseSchema?: z.ZodSchema;
303
593
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
304
594
  maxBodySize?: number;
305
595
  deprecated?: boolean;
@@ -321,13 +611,13 @@ export declare const LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "
321
611
  }, z.core.$strip>>;
322
612
  deltaCursor: z.ZodOptional<z.ZodString>;
323
613
  scores: z.ZodArray<z.ZodObject<{
324
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
614
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
325
615
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
616
  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>>>;
617
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
328
618
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
619
  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>>>;
620
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
331
621
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
332
622
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
623
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -372,13 +662,13 @@ export declare const CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute,
372
662
  sseFlushOnConnect?: boolean;
373
663
  handler(params: {
374
664
  score: {
375
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
665
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
376
666
  entityId?: string | null | undefined;
377
667
  entityName?: string | null | undefined;
378
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
668
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
379
669
  parentEntityId?: string | null | undefined;
380
670
  parentEntityName?: string | null | undefined;
381
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
671
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
382
672
  rootEntityId?: string | null | undefined;
383
673
  rootEntityName?: string | null | undefined;
384
674
  userId?: string | null | undefined;
@@ -413,10 +703,10 @@ export declare const CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute,
413
703
  } & ServerContext): Promise<{
414
704
  success: boolean;
415
705
  }>;
416
- pathParamSchema?: z.ZodType;
417
- queryParamSchema?: z.ZodType;
418
- bodySchema?: z.ZodType;
419
- responseSchema?: z.ZodType;
706
+ pathParamSchema?: z.ZodSchema;
707
+ queryParamSchema?: z.ZodSchema;
708
+ bodySchema?: z.ZodSchema;
709
+ responseSchema?: z.ZodSchema;
420
710
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
421
711
  maxBodySize?: number;
422
712
  deprecated?: boolean;
@@ -425,13 +715,13 @@ export declare const CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute,
425
715
  onValidationError?: ValidationErrorHook;
426
716
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
427
717
  score: z.ZodObject<{
428
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
718
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
429
719
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
430
720
  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>>>;
721
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
432
722
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
433
723
  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>>>;
724
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
435
725
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
436
726
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
437
727
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -482,10 +772,10 @@ export declare const DELETE_SCORES: Omit<import("@mastra/core/server").ApiRoute,
482
772
  } & ServerContext): Promise<{
483
773
  success: boolean;
484
774
  }>;
485
- pathParamSchema?: z.ZodType;
486
- queryParamSchema?: z.ZodType;
487
- bodySchema?: z.ZodType;
488
- responseSchema?: z.ZodType;
775
+ pathParamSchema?: z.ZodSchema;
776
+ queryParamSchema?: z.ZodSchema;
777
+ bodySchema?: z.ZodSchema;
778
+ responseSchema?: z.ZodSchema;
489
779
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
490
780
  maxBodySize?: number;
491
781
  deprecated?: boolean;
@@ -512,13 +802,13 @@ export declare const GET_SCORE: Omit<import("@mastra/core/server").ApiRoute, "cr
512
802
  scoreId: string;
513
803
  } & ServerContext): Promise<{
514
804
  score: {
515
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
805
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
516
806
  entityId?: string | null | undefined;
517
807
  entityName?: string | null | undefined;
518
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
808
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
519
809
  parentEntityId?: string | null | undefined;
520
810
  parentEntityName?: string | null | undefined;
521
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
811
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
522
812
  rootEntityId?: string | null | undefined;
523
813
  rootEntityName?: string | null | undefined;
524
814
  userId?: string | null | undefined;
@@ -552,10 +842,10 @@ export declare const GET_SCORE: Omit<import("@mastra/core/server").ApiRoute, "cr
552
842
  metadata?: Record<string, unknown> | null | undefined;
553
843
  } | null;
554
844
  }>;
555
- pathParamSchema?: z.ZodType;
556
- queryParamSchema?: z.ZodType;
557
- bodySchema?: z.ZodType;
558
- responseSchema?: z.ZodType;
845
+ pathParamSchema?: z.ZodSchema;
846
+ queryParamSchema?: z.ZodSchema;
847
+ bodySchema?: z.ZodSchema;
848
+ responseSchema?: z.ZodSchema;
559
849
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
560
850
  maxBodySize?: number;
561
851
  deprecated?: boolean;
@@ -566,13 +856,13 @@ export declare const GET_SCORE: Omit<import("@mastra/core/server").ApiRoute, "cr
566
856
  scoreId: z.ZodString;
567
857
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
568
858
  score: z.ZodNullable<z.ZodObject<{
569
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
859
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
570
860
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
571
861
  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>>>;
862
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
573
863
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
574
864
  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>>>;
865
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
576
866
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
577
867
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
578
868
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -628,7 +918,7 @@ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").Api
628
918
  } | undefined;
629
919
  traceId?: string | undefined;
630
920
  spanId?: string | undefined;
631
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
921
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
632
922
  entityName?: string | undefined;
633
923
  entityVersionId?: string | undefined;
634
924
  parentEntityVersionId?: string | undefined;
@@ -638,9 +928,9 @@ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").Api
638
928
  experimentId?: string | undefined;
639
929
  serviceName?: string | undefined;
640
930
  environment?: string | undefined;
641
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
931
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
642
932
  parentEntityName?: string | undefined;
643
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
933
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
644
934
  rootEntityName?: string | undefined;
645
935
  resourceId?: string | undefined;
646
936
  runId?: string | undefined;
@@ -660,10 +950,10 @@ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").Api
660
950
  previousValue?: number | null | undefined;
661
951
  changePercent?: number | null | undefined;
662
952
  }>;
663
- pathParamSchema?: z.ZodType;
664
- queryParamSchema?: z.ZodType;
665
- bodySchema?: z.ZodType;
666
- responseSchema?: z.ZodType;
953
+ pathParamSchema?: z.ZodSchema;
954
+ queryParamSchema?: z.ZodSchema;
955
+ bodySchema?: z.ZodSchema;
956
+ responseSchema?: z.ZodSchema;
667
957
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
668
958
  maxBodySize?: number;
669
959
  deprecated?: boolean;
@@ -691,7 +981,7 @@ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").Api
691
981
  }, z.core.$strip>>;
692
982
  traceId: z.ZodOptional<z.ZodString>;
693
983
  spanId: z.ZodOptional<z.ZodString>;
694
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
984
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
695
985
  entityName: z.ZodOptional<z.ZodString>;
696
986
  entityVersionId: z.ZodOptional<z.ZodString>;
697
987
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -701,9 +991,9 @@ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").Api
701
991
  experimentId: z.ZodOptional<z.ZodString>;
702
992
  serviceName: z.ZodOptional<z.ZodString>;
703
993
  environment: z.ZodOptional<z.ZodString>;
704
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
994
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
705
995
  parentEntityName: z.ZodOptional<z.ZodString>;
706
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
996
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
707
997
  rootEntityName: z.ZodOptional<z.ZodString>;
708
998
  resourceId: z.ZodOptional<z.ZodString>;
709
999
  runId: z.ZodOptional<z.ZodString>;
@@ -750,7 +1040,7 @@ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").Api
750
1040
  } | undefined;
751
1041
  traceId?: string | undefined;
752
1042
  spanId?: string | undefined;
753
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1043
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
754
1044
  entityName?: string | undefined;
755
1045
  entityVersionId?: string | undefined;
756
1046
  parentEntityVersionId?: string | undefined;
@@ -760,9 +1050,9 @@ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").Api
760
1050
  experimentId?: string | undefined;
761
1051
  serviceName?: string | undefined;
762
1052
  environment?: string | undefined;
763
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1053
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
764
1054
  parentEntityName?: string | undefined;
765
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1055
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
766
1056
  rootEntityName?: string | undefined;
767
1057
  resourceId?: string | undefined;
768
1058
  runId?: string | undefined;
@@ -782,10 +1072,10 @@ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").Api
782
1072
  value: number;
783
1073
  }[];
784
1074
  }>;
785
- pathParamSchema?: z.ZodType;
786
- queryParamSchema?: z.ZodType;
787
- bodySchema?: z.ZodType;
788
- responseSchema?: z.ZodType;
1075
+ pathParamSchema?: z.ZodSchema;
1076
+ queryParamSchema?: z.ZodSchema;
1077
+ bodySchema?: z.ZodSchema;
1078
+ responseSchema?: z.ZodSchema;
789
1079
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
790
1080
  maxBodySize?: number;
791
1081
  deprecated?: boolean;
@@ -814,7 +1104,7 @@ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").Api
814
1104
  }, z.core.$strip>>;
815
1105
  traceId: z.ZodOptional<z.ZodString>;
816
1106
  spanId: z.ZodOptional<z.ZodString>;
817
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1107
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
818
1108
  entityName: z.ZodOptional<z.ZodString>;
819
1109
  entityVersionId: z.ZodOptional<z.ZodString>;
820
1110
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -824,9 +1114,9 @@ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").Api
824
1114
  experimentId: z.ZodOptional<z.ZodString>;
825
1115
  serviceName: z.ZodOptional<z.ZodString>;
826
1116
  environment: z.ZodOptional<z.ZodString>;
827
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1117
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
828
1118
  parentEntityName: z.ZodOptional<z.ZodString>;
829
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1119
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
830
1120
  rootEntityName: z.ZodOptional<z.ZodString>;
831
1121
  resourceId: z.ZodOptional<z.ZodString>;
832
1122
  runId: z.ZodOptional<z.ZodString>;
@@ -869,7 +1159,7 @@ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").A
869
1159
  } | undefined;
870
1160
  traceId?: string | undefined;
871
1161
  spanId?: string | undefined;
872
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1162
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
873
1163
  entityName?: string | undefined;
874
1164
  entityVersionId?: string | undefined;
875
1165
  parentEntityVersionId?: string | undefined;
@@ -879,9 +1169,9 @@ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").A
879
1169
  experimentId?: string | undefined;
880
1170
  serviceName?: string | undefined;
881
1171
  environment?: string | undefined;
882
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1172
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
883
1173
  parentEntityName?: string | undefined;
884
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1174
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
885
1175
  rootEntityName?: string | undefined;
886
1176
  resourceId?: string | undefined;
887
1177
  runId?: string | undefined;
@@ -905,10 +1195,10 @@ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").A
905
1195
  }[];
906
1196
  }[];
907
1197
  }>;
908
- pathParamSchema?: z.ZodType;
909
- queryParamSchema?: z.ZodType;
910
- bodySchema?: z.ZodType;
911
- responseSchema?: z.ZodType;
1198
+ pathParamSchema?: z.ZodSchema;
1199
+ queryParamSchema?: z.ZodSchema;
1200
+ bodySchema?: z.ZodSchema;
1201
+ responseSchema?: z.ZodSchema;
912
1202
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
913
1203
  maxBodySize?: number;
914
1204
  deprecated?: boolean;
@@ -943,7 +1233,7 @@ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").A
943
1233
  }, z.core.$strip>>;
944
1234
  traceId: z.ZodOptional<z.ZodString>;
945
1235
  spanId: z.ZodOptional<z.ZodString>;
946
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1236
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
947
1237
  entityName: z.ZodOptional<z.ZodString>;
948
1238
  entityVersionId: z.ZodOptional<z.ZodString>;
949
1239
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -953,9 +1243,9 @@ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").A
953
1243
  experimentId: z.ZodOptional<z.ZodString>;
954
1244
  serviceName: z.ZodOptional<z.ZodString>;
955
1245
  environment: z.ZodOptional<z.ZodString>;
956
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1246
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
957
1247
  parentEntityName: z.ZodOptional<z.ZodString>;
958
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1248
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
959
1249
  rootEntityName: z.ZodOptional<z.ZodString>;
960
1250
  resourceId: z.ZodOptional<z.ZodString>;
961
1251
  runId: z.ZodOptional<z.ZodString>;
@@ -1002,7 +1292,7 @@ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").A
1002
1292
  } | undefined;
1003
1293
  traceId?: string | undefined;
1004
1294
  spanId?: string | undefined;
1005
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1295
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1006
1296
  entityName?: string | undefined;
1007
1297
  entityVersionId?: string | undefined;
1008
1298
  parentEntityVersionId?: string | undefined;
@@ -1012,9 +1302,9 @@ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").A
1012
1302
  experimentId?: string | undefined;
1013
1303
  serviceName?: string | undefined;
1014
1304
  environment?: string | undefined;
1015
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1305
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1016
1306
  parentEntityName?: string | undefined;
1017
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1307
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1018
1308
  rootEntityName?: string | undefined;
1019
1309
  resourceId?: string | undefined;
1020
1310
  runId?: string | undefined;
@@ -1037,10 +1327,10 @@ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").A
1037
1327
  }[];
1038
1328
  }[];
1039
1329
  }>;
1040
- pathParamSchema?: z.ZodType;
1041
- queryParamSchema?: z.ZodType;
1042
- bodySchema?: z.ZodType;
1043
- responseSchema?: z.ZodType;
1330
+ pathParamSchema?: z.ZodSchema;
1331
+ queryParamSchema?: z.ZodSchema;
1332
+ bodySchema?: z.ZodSchema;
1333
+ responseSchema?: z.ZodSchema;
1044
1334
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1045
1335
  maxBodySize?: number;
1046
1336
  deprecated?: boolean;
@@ -1067,7 +1357,7 @@ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").A
1067
1357
  }, z.core.$strip>>;
1068
1358
  traceId: z.ZodOptional<z.ZodString>;
1069
1359
  spanId: z.ZodOptional<z.ZodString>;
1070
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1360
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1071
1361
  entityName: z.ZodOptional<z.ZodString>;
1072
1362
  entityVersionId: z.ZodOptional<z.ZodString>;
1073
1363
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -1077,9 +1367,9 @@ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").A
1077
1367
  experimentId: z.ZodOptional<z.ZodString>;
1078
1368
  serviceName: z.ZodOptional<z.ZodString>;
1079
1369
  environment: z.ZodOptional<z.ZodString>;
1080
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1370
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1081
1371
  parentEntityName: z.ZodOptional<z.ZodString>;
1082
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1372
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1083
1373
  rootEntityName: z.ZodOptional<z.ZodString>;
1084
1374
  resourceId: z.ZodOptional<z.ZodString>;
1085
1375
  runId: z.ZodOptional<z.ZodString>;
@@ -1111,7 +1401,9 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
1111
1401
  responseType: "json";
1112
1402
  streamFormat?: 'sse' | 'stream';
1113
1403
  sseFlushOnConnect?: boolean;
1114
- handler(params: Record<string, unknown> & ServerContext): Promise<{
1404
+ handler(params: {
1405
+ [x: string]: unknown;
1406
+ } & ServerContext): Promise<{
1115
1407
  pagination?: {
1116
1408
  total: number;
1117
1409
  page: number;
@@ -1124,13 +1416,13 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
1124
1416
  } | undefined;
1125
1417
  deltaCursor?: string | undefined;
1126
1418
  feedback: {
1127
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1419
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1128
1420
  entityId?: string | null | undefined;
1129
1421
  entityName?: string | null | undefined;
1130
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1422
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1131
1423
  parentEntityId?: string | null | undefined;
1132
1424
  parentEntityName?: string | null | undefined;
1133
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1425
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1134
1426
  rootEntityId?: string | null | undefined;
1135
1427
  rootEntityName?: string | null | undefined;
1136
1428
  userId?: string | null | undefined;
@@ -1170,10 +1462,10 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
1170
1462
  } | undefined;
1171
1463
  }[];
1172
1464
  }>;
1173
- pathParamSchema?: z.ZodType;
1174
- queryParamSchema?: z.ZodType;
1175
- bodySchema?: z.ZodType;
1176
- responseSchema?: z.ZodType;
1465
+ pathParamSchema?: z.ZodSchema;
1466
+ queryParamSchema?: z.ZodSchema;
1467
+ bodySchema?: z.ZodSchema;
1468
+ responseSchema?: z.ZodSchema;
1177
1469
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1178
1470
  maxBodySize?: number;
1179
1471
  deprecated?: boolean;
@@ -1195,13 +1487,13 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
1195
1487
  }, z.core.$strip>>;
1196
1488
  deltaCursor: z.ZodOptional<z.ZodString>;
1197
1489
  feedback: z.ZodArray<z.ZodObject<{
1198
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1490
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1199
1491
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1200
1492
  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>>>;
1493
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1202
1494
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1203
1495
  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>>>;
1496
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1205
1497
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1206
1498
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1207
1499
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1255,13 +1547,13 @@ export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1255
1547
  sseFlushOnConnect?: boolean;
1256
1548
  handler(params: {
1257
1549
  feedback: {
1258
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1550
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1259
1551
  entityId?: string | null | undefined;
1260
1552
  entityName?: string | null | undefined;
1261
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1553
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1262
1554
  parentEntityId?: string | null | undefined;
1263
1555
  parentEntityName?: string | null | undefined;
1264
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1556
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1265
1557
  rootEntityId?: string | null | undefined;
1266
1558
  rootEntityName?: string | null | undefined;
1267
1559
  userId?: string | null | undefined;
@@ -1296,10 +1588,10 @@ export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1296
1588
  } & ServerContext): Promise<{
1297
1589
  success: boolean;
1298
1590
  }>;
1299
- pathParamSchema?: z.ZodType;
1300
- queryParamSchema?: z.ZodType;
1301
- bodySchema?: z.ZodType;
1302
- responseSchema?: z.ZodType;
1591
+ pathParamSchema?: z.ZodSchema;
1592
+ queryParamSchema?: z.ZodSchema;
1593
+ bodySchema?: z.ZodSchema;
1594
+ responseSchema?: z.ZodSchema;
1303
1595
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1304
1596
  maxBodySize?: number;
1305
1597
  deprecated?: boolean;
@@ -1308,13 +1600,13 @@ export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1308
1600
  onValidationError?: ValidationErrorHook;
1309
1601
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1310
1602
  feedback: z.ZodObject<{
1311
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1603
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1312
1604
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1313
1605
  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>>>;
1606
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1315
1607
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1316
1608
  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>>>;
1609
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1318
1610
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1319
1611
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1320
1612
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1368,10 +1660,10 @@ export declare const DELETE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1368
1660
  } & ServerContext): Promise<{
1369
1661
  success: boolean;
1370
1662
  }>;
1371
- pathParamSchema?: z.ZodType;
1372
- queryParamSchema?: z.ZodType;
1373
- bodySchema?: z.ZodType;
1374
- responseSchema?: z.ZodType;
1663
+ pathParamSchema?: z.ZodSchema;
1664
+ queryParamSchema?: z.ZodSchema;
1665
+ bodySchema?: z.ZodSchema;
1666
+ responseSchema?: z.ZodSchema;
1375
1667
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1376
1668
  maxBodySize?: number;
1377
1669
  deprecated?: boolean;
@@ -1399,13 +1691,13 @@ export declare const UPDATE_FEEDBACK_REVIEW_STATUS: Omit<import("@mastra/core/se
1399
1691
  } & {
1400
1692
  reviewStatus: "needs-review" | "reviewed";
1401
1693
  } & ServerContext): Promise<{
1402
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1694
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1403
1695
  entityId?: string | null | undefined;
1404
1696
  entityName?: string | null | undefined;
1405
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1697
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1406
1698
  parentEntityId?: string | null | undefined;
1407
1699
  parentEntityName?: string | null | undefined;
1408
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1700
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
1409
1701
  rootEntityId?: string | null | undefined;
1410
1702
  rootEntityName?: string | null | undefined;
1411
1703
  userId?: string | null | undefined;
@@ -1438,10 +1730,10 @@ export declare const UPDATE_FEEDBACK_REVIEW_STATUS: Omit<import("@mastra/core/se
1438
1730
  metadata?: Record<string, unknown> | null | undefined;
1439
1731
  reviewStatus: "needs-review" | "reviewed";
1440
1732
  }>;
1441
- pathParamSchema?: z.ZodType;
1442
- queryParamSchema?: z.ZodType;
1443
- bodySchema?: z.ZodType;
1444
- responseSchema?: z.ZodType;
1733
+ pathParamSchema?: z.ZodSchema;
1734
+ queryParamSchema?: z.ZodSchema;
1735
+ bodySchema?: z.ZodSchema;
1736
+ responseSchema?: z.ZodSchema;
1445
1737
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1446
1738
  maxBodySize?: number;
1447
1739
  deprecated?: boolean;
@@ -1456,13 +1748,13 @@ export declare const UPDATE_FEEDBACK_REVIEW_STATUS: Omit<import("@mastra/core/se
1456
1748
  reviewed: "reviewed";
1457
1749
  }>;
1458
1750
  }, z.core.$strip>, z.ZodObject<{
1459
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1751
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1460
1752
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1461
1753
  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>>>;
1754
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1463
1755
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1464
1756
  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>>>;
1757
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
1466
1758
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1467
1759
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1468
1760
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1520,7 +1812,7 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1520
1812
  } | undefined;
1521
1813
  traceId?: string | undefined;
1522
1814
  spanId?: string | undefined;
1523
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1815
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1524
1816
  entityName?: string | undefined;
1525
1817
  entityVersionId?: string | undefined;
1526
1818
  parentEntityVersionId?: string | undefined;
@@ -1530,9 +1822,9 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1530
1822
  experimentId?: string | undefined;
1531
1823
  serviceName?: string | undefined;
1532
1824
  environment?: string | undefined;
1533
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1825
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1534
1826
  parentEntityName?: string | undefined;
1535
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1827
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1536
1828
  rootEntityName?: string | undefined;
1537
1829
  resourceId?: string | undefined;
1538
1830
  runId?: string | undefined;
@@ -1553,10 +1845,10 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1553
1845
  previousValue?: number | null | undefined;
1554
1846
  changePercent?: number | null | undefined;
1555
1847
  }>;
1556
- pathParamSchema?: z.ZodType;
1557
- queryParamSchema?: z.ZodType;
1558
- bodySchema?: z.ZodType;
1559
- responseSchema?: z.ZodType;
1848
+ pathParamSchema?: z.ZodSchema;
1849
+ queryParamSchema?: z.ZodSchema;
1850
+ bodySchema?: z.ZodSchema;
1851
+ responseSchema?: z.ZodSchema;
1560
1852
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1561
1853
  maxBodySize?: number;
1562
1854
  deprecated?: boolean;
@@ -1584,7 +1876,7 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1584
1876
  }, z.core.$strip>>;
1585
1877
  traceId: z.ZodOptional<z.ZodString>;
1586
1878
  spanId: z.ZodOptional<z.ZodString>;
1587
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1879
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1588
1880
  entityName: z.ZodOptional<z.ZodString>;
1589
1881
  entityVersionId: z.ZodOptional<z.ZodString>;
1590
1882
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -1594,9 +1886,9 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1594
1886
  experimentId: z.ZodOptional<z.ZodString>;
1595
1887
  serviceName: z.ZodOptional<z.ZodString>;
1596
1888
  environment: z.ZodOptional<z.ZodString>;
1597
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1889
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1598
1890
  parentEntityName: z.ZodOptional<z.ZodString>;
1599
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
1891
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1600
1892
  rootEntityName: z.ZodOptional<z.ZodString>;
1601
1893
  resourceId: z.ZodOptional<z.ZodString>;
1602
1894
  runId: z.ZodOptional<z.ZodString>;
@@ -1647,7 +1939,7 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1647
1939
  } | undefined;
1648
1940
  traceId?: string | undefined;
1649
1941
  spanId?: string | undefined;
1650
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1942
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1651
1943
  entityName?: string | undefined;
1652
1944
  entityVersionId?: string | undefined;
1653
1945
  parentEntityVersionId?: string | undefined;
@@ -1657,9 +1949,9 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1657
1949
  experimentId?: string | undefined;
1658
1950
  serviceName?: string | undefined;
1659
1951
  environment?: string | undefined;
1660
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1952
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1661
1953
  parentEntityName?: string | undefined;
1662
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
1954
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1663
1955
  rootEntityName?: string | undefined;
1664
1956
  resourceId?: string | undefined;
1665
1957
  runId?: string | undefined;
@@ -1680,10 +1972,10 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1680
1972
  value: number;
1681
1973
  }[];
1682
1974
  }>;
1683
- pathParamSchema?: z.ZodType;
1684
- queryParamSchema?: z.ZodType;
1685
- bodySchema?: z.ZodType;
1686
- responseSchema?: z.ZodType;
1975
+ pathParamSchema?: z.ZodSchema;
1976
+ queryParamSchema?: z.ZodSchema;
1977
+ bodySchema?: z.ZodSchema;
1978
+ responseSchema?: z.ZodSchema;
1687
1979
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1688
1980
  maxBodySize?: number;
1689
1981
  deprecated?: boolean;
@@ -1712,7 +2004,7 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1712
2004
  }, z.core.$strip>>;
1713
2005
  traceId: z.ZodOptional<z.ZodString>;
1714
2006
  spanId: z.ZodOptional<z.ZodString>;
1715
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2007
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1716
2008
  entityName: z.ZodOptional<z.ZodString>;
1717
2009
  entityVersionId: z.ZodOptional<z.ZodString>;
1718
2010
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -1722,9 +2014,9 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1722
2014
  experimentId: z.ZodOptional<z.ZodString>;
1723
2015
  serviceName: z.ZodOptional<z.ZodString>;
1724
2016
  environment: z.ZodOptional<z.ZodString>;
1725
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2017
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1726
2018
  parentEntityName: z.ZodOptional<z.ZodString>;
1727
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2019
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1728
2020
  rootEntityName: z.ZodOptional<z.ZodString>;
1729
2021
  resourceId: z.ZodOptional<z.ZodString>;
1730
2022
  runId: z.ZodOptional<z.ZodString>;
@@ -1771,7 +2063,7 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1771
2063
  } | undefined;
1772
2064
  traceId?: string | undefined;
1773
2065
  spanId?: string | undefined;
1774
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2066
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1775
2067
  entityName?: string | undefined;
1776
2068
  entityVersionId?: string | undefined;
1777
2069
  parentEntityVersionId?: string | undefined;
@@ -1781,9 +2073,9 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1781
2073
  experimentId?: string | undefined;
1782
2074
  serviceName?: string | undefined;
1783
2075
  environment?: string | undefined;
1784
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2076
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1785
2077
  parentEntityName?: string | undefined;
1786
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2078
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1787
2079
  rootEntityName?: string | undefined;
1788
2080
  resourceId?: string | undefined;
1789
2081
  runId?: string | undefined;
@@ -1808,10 +2100,10 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1808
2100
  }[];
1809
2101
  }[];
1810
2102
  }>;
1811
- pathParamSchema?: z.ZodType;
1812
- queryParamSchema?: z.ZodType;
1813
- bodySchema?: z.ZodType;
1814
- responseSchema?: z.ZodType;
2103
+ pathParamSchema?: z.ZodSchema;
2104
+ queryParamSchema?: z.ZodSchema;
2105
+ bodySchema?: z.ZodSchema;
2106
+ responseSchema?: z.ZodSchema;
1815
2107
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1816
2108
  maxBodySize?: number;
1817
2109
  deprecated?: boolean;
@@ -1846,7 +2138,7 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1846
2138
  }, z.core.$strip>>;
1847
2139
  traceId: z.ZodOptional<z.ZodString>;
1848
2140
  spanId: z.ZodOptional<z.ZodString>;
1849
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2141
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1850
2142
  entityName: z.ZodOptional<z.ZodString>;
1851
2143
  entityVersionId: z.ZodOptional<z.ZodString>;
1852
2144
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -1856,9 +2148,9 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1856
2148
  experimentId: z.ZodOptional<z.ZodString>;
1857
2149
  serviceName: z.ZodOptional<z.ZodString>;
1858
2150
  environment: z.ZodOptional<z.ZodString>;
1859
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2151
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1860
2152
  parentEntityName: z.ZodOptional<z.ZodString>;
1861
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2153
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1862
2154
  rootEntityName: z.ZodOptional<z.ZodString>;
1863
2155
  resourceId: z.ZodOptional<z.ZodString>;
1864
2156
  runId: z.ZodOptional<z.ZodString>;
@@ -1909,7 +2201,7 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1909
2201
  } | undefined;
1910
2202
  traceId?: string | undefined;
1911
2203
  spanId?: string | undefined;
1912
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2204
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1913
2205
  entityName?: string | undefined;
1914
2206
  entityVersionId?: string | undefined;
1915
2207
  parentEntityVersionId?: string | undefined;
@@ -1919,9 +2211,9 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1919
2211
  experimentId?: string | undefined;
1920
2212
  serviceName?: string | undefined;
1921
2213
  environment?: string | undefined;
1922
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2214
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1923
2215
  parentEntityName?: string | undefined;
1924
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2216
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
1925
2217
  rootEntityName?: string | undefined;
1926
2218
  resourceId?: string | undefined;
1927
2219
  runId?: string | undefined;
@@ -1945,10 +2237,10 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1945
2237
  }[];
1946
2238
  }[];
1947
2239
  }>;
1948
- pathParamSchema?: z.ZodType;
1949
- queryParamSchema?: z.ZodType;
1950
- bodySchema?: z.ZodType;
1951
- responseSchema?: z.ZodType;
2240
+ pathParamSchema?: z.ZodSchema;
2241
+ queryParamSchema?: z.ZodSchema;
2242
+ bodySchema?: z.ZodSchema;
2243
+ responseSchema?: z.ZodSchema;
1952
2244
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
1953
2245
  maxBodySize?: number;
1954
2246
  deprecated?: boolean;
@@ -1975,7 +2267,7 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1975
2267
  }, z.core.$strip>>;
1976
2268
  traceId: z.ZodOptional<z.ZodString>;
1977
2269
  spanId: z.ZodOptional<z.ZodString>;
1978
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2270
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1979
2271
  entityName: z.ZodOptional<z.ZodString>;
1980
2272
  entityVersionId: z.ZodOptional<z.ZodString>;
1981
2273
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -1985,9 +2277,9 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1985
2277
  experimentId: z.ZodOptional<z.ZodString>;
1986
2278
  serviceName: z.ZodOptional<z.ZodString>;
1987
2279
  environment: z.ZodOptional<z.ZodString>;
1988
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2280
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1989
2281
  parentEntityName: z.ZodOptional<z.ZodString>;
1990
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2282
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
1991
2283
  rootEntityName: z.ZodOptional<z.ZodString>;
1992
2284
  resourceId: z.ZodOptional<z.ZodString>;
1993
2285
  runId: z.ZodOptional<z.ZodString>;
@@ -2023,7 +2315,9 @@ export declare const LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute,
2023
2315
  responseType: "json";
2024
2316
  streamFormat?: 'sse' | 'stream';
2025
2317
  sseFlushOnConnect?: boolean;
2026
- handler(params: Record<string, unknown> & ServerContext): Promise<{
2318
+ handler(params: {
2319
+ [x: string]: unknown;
2320
+ } & ServerContext): Promise<{
2027
2321
  pagination?: {
2028
2322
  total: number;
2029
2323
  page: number;
@@ -2036,13 +2330,13 @@ export declare const LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute,
2036
2330
  } | undefined;
2037
2331
  deltaCursor?: string | undefined;
2038
2332
  metrics: {
2039
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
2333
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
2040
2334
  entityId?: string | null | undefined;
2041
2335
  entityName?: string | null | undefined;
2042
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
2336
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
2043
2337
  parentEntityId?: string | null | undefined;
2044
2338
  parentEntityName?: string | null | undefined;
2045
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
2339
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
2046
2340
  rootEntityId?: string | null | undefined;
2047
2341
  rootEntityName?: string | null | undefined;
2048
2342
  userId?: string | null | undefined;
@@ -2077,10 +2371,10 @@ export declare const LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute,
2077
2371
  metadata?: Record<string, unknown> | null | undefined;
2078
2372
  }[];
2079
2373
  }>;
2080
- pathParamSchema?: z.ZodType;
2081
- queryParamSchema?: z.ZodType;
2082
- bodySchema?: z.ZodType;
2083
- responseSchema?: z.ZodType;
2374
+ pathParamSchema?: z.ZodSchema;
2375
+ queryParamSchema?: z.ZodSchema;
2376
+ bodySchema?: z.ZodSchema;
2377
+ responseSchema?: z.ZodSchema;
2084
2378
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2085
2379
  maxBodySize?: number;
2086
2380
  deprecated?: boolean;
@@ -2102,13 +2396,13 @@ export declare const LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute,
2102
2396
  }, z.core.$strip>>;
2103
2397
  deltaCursor: z.ZodOptional<z.ZodString>;
2104
2398
  metrics: z.ZodArray<z.ZodObject<{
2105
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
2399
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
2106
2400
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2107
2401
  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>>>;
2402
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
2109
2403
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2110
2404
  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>>>;
2405
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
2112
2406
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2113
2407
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2114
2408
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2165,7 +2459,7 @@ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").Ap
2165
2459
  } | undefined;
2166
2460
  traceId?: string | undefined;
2167
2461
  spanId?: string | undefined;
2168
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2462
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2169
2463
  entityName?: string | undefined;
2170
2464
  entityVersionId?: string | undefined;
2171
2465
  parentEntityVersionId?: string | undefined;
@@ -2175,9 +2469,9 @@ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").Ap
2175
2469
  experimentId?: string | undefined;
2176
2470
  serviceName?: string | undefined;
2177
2471
  environment?: string | undefined;
2178
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2472
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2179
2473
  parentEntityName?: string | undefined;
2180
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2474
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2181
2475
  rootEntityName?: string | undefined;
2182
2476
  resourceId?: string | undefined;
2183
2477
  runId?: string | undefined;
@@ -2204,10 +2498,10 @@ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").Ap
2204
2498
  previousEstimatedCost?: number | null | undefined;
2205
2499
  costChangePercent?: number | null | undefined;
2206
2500
  }>;
2207
- pathParamSchema?: z.ZodType;
2208
- queryParamSchema?: z.ZodType;
2209
- bodySchema?: z.ZodType;
2210
- responseSchema?: z.ZodType;
2501
+ pathParamSchema?: z.ZodSchema;
2502
+ queryParamSchema?: z.ZodSchema;
2503
+ bodySchema?: z.ZodSchema;
2504
+ responseSchema?: z.ZodSchema;
2211
2505
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2212
2506
  maxBodySize?: number;
2213
2507
  deprecated?: boolean;
@@ -2250,7 +2544,7 @@ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").Ap
2250
2544
  }, z.core.$strip>>;
2251
2545
  traceId: z.ZodOptional<z.ZodString>;
2252
2546
  spanId: z.ZodOptional<z.ZodString>;
2253
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2547
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2254
2548
  entityName: z.ZodOptional<z.ZodString>;
2255
2549
  entityVersionId: z.ZodOptional<z.ZodString>;
2256
2550
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -2260,9 +2554,9 @@ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").Ap
2260
2554
  experimentId: z.ZodOptional<z.ZodString>;
2261
2555
  serviceName: z.ZodOptional<z.ZodString>;
2262
2556
  environment: z.ZodOptional<z.ZodString>;
2263
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2557
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2264
2558
  parentEntityName: z.ZodOptional<z.ZodString>;
2265
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2559
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2266
2560
  rootEntityName: z.ZodOptional<z.ZodString>;
2267
2561
  resourceId: z.ZodOptional<z.ZodString>;
2268
2562
  runId: z.ZodOptional<z.ZodString>;
@@ -2316,7 +2610,7 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2316
2610
  } | undefined;
2317
2611
  traceId?: string | undefined;
2318
2612
  spanId?: string | undefined;
2319
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2613
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2320
2614
  entityName?: string | undefined;
2321
2615
  entityVersionId?: string | undefined;
2322
2616
  parentEntityVersionId?: string | undefined;
@@ -2326,9 +2620,9 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2326
2620
  experimentId?: string | undefined;
2327
2621
  serviceName?: string | undefined;
2328
2622
  environment?: string | undefined;
2329
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2623
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2330
2624
  parentEntityName?: string | undefined;
2331
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2625
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2332
2626
  rootEntityName?: string | undefined;
2333
2627
  resourceId?: string | undefined;
2334
2628
  runId?: string | undefined;
@@ -2355,10 +2649,10 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2355
2649
  costUnit?: string | null | undefined;
2356
2650
  }[];
2357
2651
  }>;
2358
- pathParamSchema?: z.ZodType;
2359
- queryParamSchema?: z.ZodType;
2360
- bodySchema?: z.ZodType;
2361
- responseSchema?: z.ZodType;
2652
+ pathParamSchema?: z.ZodSchema;
2653
+ queryParamSchema?: z.ZodSchema;
2654
+ bodySchema?: z.ZodSchema;
2655
+ responseSchema?: z.ZodSchema;
2362
2656
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2363
2657
  maxBodySize?: number;
2364
2658
  deprecated?: boolean;
@@ -2402,7 +2696,7 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2402
2696
  }, z.core.$strip>>;
2403
2697
  traceId: z.ZodOptional<z.ZodString>;
2404
2698
  spanId: z.ZodOptional<z.ZodString>;
2405
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2699
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2406
2700
  entityName: z.ZodOptional<z.ZodString>;
2407
2701
  entityVersionId: z.ZodOptional<z.ZodString>;
2408
2702
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -2412,9 +2706,9 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2412
2706
  experimentId: z.ZodOptional<z.ZodString>;
2413
2707
  serviceName: z.ZodOptional<z.ZodString>;
2414
2708
  environment: z.ZodOptional<z.ZodString>;
2415
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2709
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2416
2710
  parentEntityName: z.ZodOptional<z.ZodString>;
2417
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2711
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2418
2712
  rootEntityName: z.ZodOptional<z.ZodString>;
2419
2713
  resourceId: z.ZodOptional<z.ZodString>;
2420
2714
  runId: z.ZodOptional<z.ZodString>;
@@ -2467,7 +2761,7 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2467
2761
  } | undefined;
2468
2762
  traceId?: string | undefined;
2469
2763
  spanId?: string | undefined;
2470
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2764
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2471
2765
  entityName?: string | undefined;
2472
2766
  entityVersionId?: string | undefined;
2473
2767
  parentEntityVersionId?: string | undefined;
@@ -2477,9 +2771,9 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2477
2771
  experimentId?: string | undefined;
2478
2772
  serviceName?: string | undefined;
2479
2773
  environment?: string | undefined;
2480
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2774
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2481
2775
  parentEntityName?: string | undefined;
2482
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2776
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2483
2777
  rootEntityName?: string | undefined;
2484
2778
  resourceId?: string | undefined;
2485
2779
  runId?: string | undefined;
@@ -2508,10 +2802,10 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2508
2802
  }[];
2509
2803
  }[];
2510
2804
  }>;
2511
- pathParamSchema?: z.ZodType;
2512
- queryParamSchema?: z.ZodType;
2513
- bodySchema?: z.ZodType;
2514
- responseSchema?: z.ZodType;
2805
+ pathParamSchema?: z.ZodSchema;
2806
+ queryParamSchema?: z.ZodSchema;
2807
+ bodySchema?: z.ZodSchema;
2808
+ responseSchema?: z.ZodSchema;
2515
2809
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2516
2810
  maxBodySize?: number;
2517
2811
  deprecated?: boolean;
@@ -2561,7 +2855,7 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2561
2855
  }, z.core.$strip>>;
2562
2856
  traceId: z.ZodOptional<z.ZodString>;
2563
2857
  spanId: z.ZodOptional<z.ZodString>;
2564
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2858
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2565
2859
  entityName: z.ZodOptional<z.ZodString>;
2566
2860
  entityVersionId: z.ZodOptional<z.ZodString>;
2567
2861
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -2571,9 +2865,9 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2571
2865
  experimentId: z.ZodOptional<z.ZodString>;
2572
2866
  serviceName: z.ZodOptional<z.ZodString>;
2573
2867
  environment: z.ZodOptional<z.ZodString>;
2574
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2868
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2575
2869
  parentEntityName: z.ZodOptional<z.ZodString>;
2576
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2870
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2577
2871
  rootEntityName: z.ZodOptional<z.ZodString>;
2578
2872
  resourceId: z.ZodOptional<z.ZodString>;
2579
2873
  runId: z.ZodOptional<z.ZodString>;
@@ -2624,7 +2918,7 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2624
2918
  } | undefined;
2625
2919
  traceId?: string | undefined;
2626
2920
  spanId?: string | undefined;
2627
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2921
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2628
2922
  entityName?: string | undefined;
2629
2923
  entityVersionId?: string | undefined;
2630
2924
  parentEntityVersionId?: string | undefined;
@@ -2634,9 +2928,9 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2634
2928
  experimentId?: string | undefined;
2635
2929
  serviceName?: string | undefined;
2636
2930
  environment?: string | undefined;
2637
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2931
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2638
2932
  parentEntityName?: string | undefined;
2639
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
2933
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
2640
2934
  rootEntityName?: string | undefined;
2641
2935
  resourceId?: string | undefined;
2642
2936
  runId?: string | undefined;
@@ -2662,10 +2956,10 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2662
2956
  }[];
2663
2957
  }[];
2664
2958
  }>;
2665
- pathParamSchema?: z.ZodType;
2666
- queryParamSchema?: z.ZodType;
2667
- bodySchema?: z.ZodType;
2668
- responseSchema?: z.ZodType;
2959
+ pathParamSchema?: z.ZodSchema;
2960
+ queryParamSchema?: z.ZodSchema;
2961
+ bodySchema?: z.ZodSchema;
2962
+ responseSchema?: z.ZodSchema;
2669
2963
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2670
2964
  maxBodySize?: number;
2671
2965
  deprecated?: boolean;
@@ -2691,7 +2985,7 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2691
2985
  }, z.core.$strip>>;
2692
2986
  traceId: z.ZodOptional<z.ZodString>;
2693
2987
  spanId: z.ZodOptional<z.ZodString>;
2694
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2988
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2695
2989
  entityName: z.ZodOptional<z.ZodString>;
2696
2990
  entityVersionId: z.ZodOptional<z.ZodString>;
2697
2991
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -2701,9 +2995,9 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2701
2995
  experimentId: z.ZodOptional<z.ZodString>;
2702
2996
  serviceName: z.ZodOptional<z.ZodString>;
2703
2997
  environment: z.ZodOptional<z.ZodString>;
2704
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2998
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2705
2999
  parentEntityName: z.ZodOptional<z.ZodString>;
2706
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
3000
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2707
3001
  rootEntityName: z.ZodOptional<z.ZodString>;
2708
3002
  resourceId: z.ZodOptional<z.ZodString>;
2709
3003
  runId: z.ZodOptional<z.ZodString>;
@@ -2738,13 +3032,15 @@ export declare const GET_METRIC_NAMES: Omit<import("@mastra/core/server").ApiRou
2738
3032
  responseType: "json";
2739
3033
  streamFormat?: 'sse' | 'stream';
2740
3034
  sseFlushOnConnect?: boolean;
2741
- handler(params: Record<string, unknown> & ServerContext): Promise<{
3035
+ handler(params: {
3036
+ [x: string]: unknown;
3037
+ } & ServerContext): Promise<{
2742
3038
  names: string[];
2743
3039
  }>;
2744
- pathParamSchema?: z.ZodType;
2745
- queryParamSchema?: z.ZodType;
2746
- bodySchema?: z.ZodType;
2747
- responseSchema?: z.ZodType;
3040
+ pathParamSchema?: z.ZodSchema;
3041
+ queryParamSchema?: z.ZodSchema;
3042
+ bodySchema?: z.ZodSchema;
3043
+ responseSchema?: z.ZodSchema;
2748
3044
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2749
3045
  maxBodySize?: number;
2750
3046
  deprecated?: boolean;
@@ -2765,13 +3061,15 @@ export declare const GET_METRIC_LABEL_KEYS: Omit<import("@mastra/core/server").A
2765
3061
  responseType: "json";
2766
3062
  streamFormat?: 'sse' | 'stream';
2767
3063
  sseFlushOnConnect?: boolean;
2768
- handler(params: Record<string, unknown> & ServerContext): Promise<{
3064
+ handler(params: {
3065
+ [x: string]: unknown;
3066
+ } & ServerContext): Promise<{
2769
3067
  keys: string[];
2770
3068
  }>;
2771
- pathParamSchema?: z.ZodType;
2772
- queryParamSchema?: z.ZodType;
2773
- bodySchema?: z.ZodType;
2774
- responseSchema?: z.ZodType;
3069
+ pathParamSchema?: z.ZodSchema;
3070
+ queryParamSchema?: z.ZodSchema;
3071
+ bodySchema?: z.ZodSchema;
3072
+ responseSchema?: z.ZodSchema;
2775
3073
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2776
3074
  maxBodySize?: number;
2777
3075
  deprecated?: boolean;
@@ -2792,13 +3090,15 @@ export declare const GET_METRIC_LABEL_VALUES: Omit<import("@mastra/core/server")
2792
3090
  responseType: "json";
2793
3091
  streamFormat?: 'sse' | 'stream';
2794
3092
  sseFlushOnConnect?: boolean;
2795
- handler(params: Record<string, unknown> & ServerContext): Promise<{
3093
+ handler(params: {
3094
+ [x: string]: unknown;
3095
+ } & ServerContext): Promise<{
2796
3096
  values: string[];
2797
3097
  }>;
2798
- pathParamSchema?: z.ZodType;
2799
- queryParamSchema?: z.ZodType;
2800
- bodySchema?: z.ZodType;
2801
- responseSchema?: z.ZodType;
3098
+ pathParamSchema?: z.ZodSchema;
3099
+ queryParamSchema?: z.ZodSchema;
3100
+ bodySchema?: z.ZodSchema;
3101
+ responseSchema?: z.ZodSchema;
2802
3102
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2803
3103
  maxBodySize?: number;
2804
3104
  deprecated?: boolean;
@@ -2820,12 +3120,12 @@ export declare const GET_ENTITY_TYPES: Omit<import("@mastra/core/server").ApiRou
2820
3120
  streamFormat?: 'sse' | 'stream';
2821
3121
  sseFlushOnConnect?: boolean;
2822
3122
  handler(params: ServerContext): Promise<{
2823
- entityTypes: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType[];
3123
+ entityTypes: import("../../_types/@internal_core/dist/storage/index.js").EntityType[];
2824
3124
  }>;
2825
- pathParamSchema?: z.ZodType;
2826
- queryParamSchema?: z.ZodType;
2827
- bodySchema?: z.ZodType;
2828
- responseSchema?: z.ZodType;
3125
+ pathParamSchema?: z.ZodSchema;
3126
+ queryParamSchema?: z.ZodSchema;
3127
+ bodySchema?: z.ZodSchema;
3128
+ responseSchema?: z.ZodSchema;
2829
3129
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2830
3130
  maxBodySize?: number;
2831
3131
  deprecated?: boolean;
@@ -2833,7 +3133,7 @@ export declare const GET_ENTITY_TYPES: Omit<import("@mastra/core/server").ApiRou
2833
3133
  fga?: import("@mastra/core/auth").FGARouteConfig;
2834
3134
  onValidationError?: ValidationErrorHook;
2835
3135
  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>>;
3136
+ entityTypes: z.ZodArray<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
2837
3137
  }, z.core.$strip>> | undefined;
2838
3138
  } & {
2839
3139
  readonly _mastraSchemaRoute: true;
@@ -2844,13 +3144,15 @@ export declare const GET_ENTITY_NAMES: Omit<import("@mastra/core/server").ApiRou
2844
3144
  responseType: "json";
2845
3145
  streamFormat?: 'sse' | 'stream';
2846
3146
  sseFlushOnConnect?: boolean;
2847
- handler(params: Record<string, unknown> & ServerContext): Promise<{
3147
+ handler(params: {
3148
+ [x: string]: unknown;
3149
+ } & ServerContext): Promise<{
2848
3150
  names: string[];
2849
3151
  }>;
2850
- pathParamSchema?: z.ZodType;
2851
- queryParamSchema?: z.ZodType;
2852
- bodySchema?: z.ZodType;
2853
- responseSchema?: z.ZodType;
3152
+ pathParamSchema?: z.ZodSchema;
3153
+ queryParamSchema?: z.ZodSchema;
3154
+ bodySchema?: z.ZodSchema;
3155
+ responseSchema?: z.ZodSchema;
2854
3156
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2855
3157
  maxBodySize?: number;
2856
3158
  deprecated?: boolean;
@@ -2874,10 +3176,10 @@ export declare const GET_SERVICE_NAMES: Omit<import("@mastra/core/server").ApiRo
2874
3176
  handler(params: ServerContext): Promise<{
2875
3177
  serviceNames: string[];
2876
3178
  }>;
2877
- pathParamSchema?: z.ZodType;
2878
- queryParamSchema?: z.ZodType;
2879
- bodySchema?: z.ZodType;
2880
- responseSchema?: z.ZodType;
3179
+ pathParamSchema?: z.ZodSchema;
3180
+ queryParamSchema?: z.ZodSchema;
3181
+ bodySchema?: z.ZodSchema;
3182
+ responseSchema?: z.ZodSchema;
2881
3183
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2882
3184
  maxBodySize?: number;
2883
3185
  deprecated?: boolean;
@@ -2899,10 +3201,10 @@ export declare const GET_ENVIRONMENTS: Omit<import("@mastra/core/server").ApiRou
2899
3201
  handler(params: ServerContext): Promise<{
2900
3202
  environments: string[];
2901
3203
  }>;
2902
- pathParamSchema?: z.ZodType;
2903
- queryParamSchema?: z.ZodType;
2904
- bodySchema?: z.ZodType;
2905
- responseSchema?: z.ZodType;
3204
+ pathParamSchema?: z.ZodSchema;
3205
+ queryParamSchema?: z.ZodSchema;
3206
+ bodySchema?: z.ZodSchema;
3207
+ responseSchema?: z.ZodSchema;
2906
3208
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2907
3209
  maxBodySize?: number;
2908
3210
  deprecated?: boolean;
@@ -2921,13 +3223,15 @@ export declare const GET_TAGS: Omit<import("@mastra/core/server").ApiRoute, "cre
2921
3223
  responseType: "json";
2922
3224
  streamFormat?: 'sse' | 'stream';
2923
3225
  sseFlushOnConnect?: boolean;
2924
- handler(params: Record<string, unknown> & ServerContext): Promise<{
3226
+ handler(params: {
3227
+ [x: string]: unknown;
3228
+ } & ServerContext): Promise<{
2925
3229
  tags: string[];
2926
3230
  }>;
2927
- pathParamSchema?: z.ZodType;
2928
- queryParamSchema?: z.ZodType;
2929
- bodySchema?: z.ZodType;
2930
- responseSchema?: z.ZodType;
3231
+ pathParamSchema?: z.ZodSchema;
3232
+ queryParamSchema?: z.ZodSchema;
3233
+ bodySchema?: z.ZodSchema;
3234
+ responseSchema?: z.ZodSchema;
2931
3235
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2932
3236
  maxBodySize?: number;
2933
3237
  deprecated?: boolean;
@@ -2962,14 +3266,24 @@ export declare const NEW_ROUTES: {
2962
3266
  field: "endedAt" | "startedAt";
2963
3267
  direction: "asc" | "desc";
2964
3268
  }[] | undefined;
2965
- page: {
3269
+ page?: {
2966
3270
  limit: number;
2967
3271
  after?: string | null | undefined;
2968
- };
3272
+ } | undefined;
3273
+ pagination?: {
3274
+ page: number;
3275
+ perPage: number;
3276
+ } | undefined;
2969
3277
  } & ServerContext): Promise<{
2970
3278
  traces: {
2971
3279
  traceId: string;
2972
3280
  rootSpanId: string;
3281
+ name: string;
3282
+ entityId: string | null;
3283
+ parentSpanId: string | null;
3284
+ createdAt: string;
3285
+ metadata: Record<string, unknown> | null;
3286
+ inputPreview: string | null;
2973
3287
  threadId: string | null;
2974
3288
  resourceId: string | null;
2975
3289
  startedAt: string;
@@ -2982,6 +3296,31 @@ export declare const NEW_ROUTES: {
2982
3296
  page: {
2983
3297
  next: string | null;
2984
3298
  };
3299
+ } | {
3300
+ traces: {
3301
+ traceId: string;
3302
+ rootSpanId: string;
3303
+ name: string;
3304
+ entityId: string | null;
3305
+ parentSpanId: string | null;
3306
+ createdAt: string;
3307
+ metadata: Record<string, unknown> | null;
3308
+ inputPreview: string | null;
3309
+ threadId: string | null;
3310
+ resourceId: string | null;
3311
+ startedAt: string;
3312
+ endedAt: string;
3313
+ entityName: string | null;
3314
+ entityType: string | null;
3315
+ environment: string | null;
3316
+ status: "error" | "success";
3317
+ }[];
3318
+ pagination: {
3319
+ total: number;
3320
+ page: number;
3321
+ perPage: number | false;
3322
+ hasMore: boolean;
3323
+ };
2985
3324
  } | {
2986
3325
  groups: {
2987
3326
  threadId: string;
@@ -2990,10 +3329,10 @@ export declare const NEW_ROUTES: {
2990
3329
  next: string | null;
2991
3330
  };
2992
3331
  }>;
2993
- pathParamSchema?: z.ZodType;
2994
- queryParamSchema?: z.ZodType;
2995
- bodySchema?: z.ZodType;
2996
- responseSchema?: z.ZodType;
3332
+ pathParamSchema?: z.ZodSchema;
3333
+ queryParamSchema?: z.ZodSchema;
3334
+ bodySchema?: z.ZodSchema;
3335
+ responseSchema?: z.ZodSchema;
2997
3336
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2998
3337
  maxBodySize?: number;
2999
3338
  deprecated?: boolean;
@@ -3019,14 +3358,24 @@ export declare const NEW_ROUTES: {
3019
3358
  desc: "desc";
3020
3359
  }>;
3021
3360
  }, z.core.$strict>>>;
3022
- page: z.ZodDefault<z.ZodObject<{
3361
+ page: z.ZodOptional<z.ZodObject<{
3023
3362
  limit: z.ZodDefault<z.ZodNumber>;
3024
3363
  after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3025
3364
  }, z.core.$strict>>;
3026
- }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodObject<{
3365
+ pagination: z.ZodOptional<z.ZodObject<{
3366
+ page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
3367
+ perPage: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
3368
+ }, z.core.$strip>>;
3369
+ }, z.core.$strict>, unknown>, z.ZodUnion<readonly [z.ZodObject<{
3027
3370
  traces: z.ZodArray<z.ZodObject<{
3028
3371
  traceId: z.ZodString;
3029
3372
  rootSpanId: z.ZodString;
3373
+ name: z.ZodString;
3374
+ entityId: z.ZodNullable<z.ZodString>;
3375
+ parentSpanId: z.ZodNullable<z.ZodString>;
3376
+ createdAt: z.ZodString;
3377
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3378
+ inputPreview: z.ZodNullable<z.ZodString>;
3030
3379
  threadId: z.ZodNullable<z.ZodString>;
3031
3380
  resourceId: z.ZodNullable<z.ZodString>;
3032
3381
  startedAt: z.ZodString;
@@ -3042,6 +3391,34 @@ export declare const NEW_ROUTES: {
3042
3391
  page: z.ZodObject<{
3043
3392
  next: z.ZodNullable<z.ZodString>;
3044
3393
  }, z.core.$strict>;
3394
+ }, z.core.$strict>, z.ZodObject<{
3395
+ traces: z.ZodArray<z.ZodObject<{
3396
+ traceId: z.ZodString;
3397
+ rootSpanId: z.ZodString;
3398
+ name: z.ZodString;
3399
+ entityId: z.ZodNullable<z.ZodString>;
3400
+ parentSpanId: z.ZodNullable<z.ZodString>;
3401
+ createdAt: z.ZodString;
3402
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3403
+ inputPreview: z.ZodNullable<z.ZodString>;
3404
+ threadId: z.ZodNullable<z.ZodString>;
3405
+ resourceId: z.ZodNullable<z.ZodString>;
3406
+ startedAt: z.ZodString;
3407
+ endedAt: z.ZodString;
3408
+ entityName: z.ZodNullable<z.ZodString>;
3409
+ entityType: z.ZodNullable<z.ZodString>;
3410
+ environment: z.ZodNullable<z.ZodString>;
3411
+ status: z.ZodEnum<{
3412
+ error: "error";
3413
+ success: "success";
3414
+ }>;
3415
+ }, z.core.$strict>>;
3416
+ pagination: z.ZodObject<{
3417
+ total: z.ZodNumber;
3418
+ page: z.ZodNumber;
3419
+ perPage: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>;
3420
+ hasMore: z.ZodBoolean;
3421
+ }, z.core.$strip>;
3045
3422
  }, z.core.$strict>, z.ZodObject<{
3046
3423
  groups: z.ZodArray<z.ZodObject<{
3047
3424
  threadId: z.ZodString;
@@ -3053,13 +3430,76 @@ export declare const NEW_ROUTES: {
3053
3430
  } & {
3054
3431
  readonly _mastraSchemaRoute: true;
3055
3432
  };
3433
+ QUERY_THREADS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
3434
+ method: string;
3435
+ path: `/${string}`;
3436
+ responseType: "json";
3437
+ streamFormat?: 'sse' | 'stream';
3438
+ sseFlushOnConnect?: boolean;
3439
+ handler(params: {
3440
+ traces: {
3441
+ timeRange: {
3442
+ from: string;
3443
+ to: string;
3444
+ };
3445
+ where?: coreStorage.TraceQueryPredicate | undefined;
3446
+ };
3447
+ where?: coreStorage.ThreadPredicate | undefined;
3448
+ page: {
3449
+ limit: number;
3450
+ after?: string | null | undefined;
3451
+ };
3452
+ } & ServerContext): Promise<{
3453
+ threads: {
3454
+ threadId: string;
3455
+ }[];
3456
+ page: {
3457
+ next: string | null;
3458
+ };
3459
+ }>;
3460
+ pathParamSchema?: z.ZodSchema;
3461
+ queryParamSchema?: z.ZodSchema;
3462
+ bodySchema?: z.ZodSchema;
3463
+ responseSchema?: z.ZodSchema;
3464
+ openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3465
+ maxBodySize?: number;
3466
+ deprecated?: boolean;
3467
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3468
+ fga?: import("@mastra/core/auth").FGARouteConfig;
3469
+ onValidationError?: ValidationErrorHook;
3470
+ readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodPreprocess<z.ZodObject<{
3471
+ traces: z.ZodObject<{
3472
+ timeRange: z.ZodObject<{
3473
+ from: z.ZodString;
3474
+ to: z.ZodString;
3475
+ }, z.core.$strict>;
3476
+ where: z.ZodOptional<z.ZodType<coreStorage.TraceQueryPredicate, unknown, z.core.$ZodTypeInternals<coreStorage.TraceQueryPredicate, unknown>>>;
3477
+ }, z.core.$strict>;
3478
+ where: z.ZodOptional<z.ZodType<coreStorage.ThreadPredicate, unknown, z.core.$ZodTypeInternals<coreStorage.ThreadPredicate, unknown>>>;
3479
+ page: z.ZodDefault<z.ZodObject<{
3480
+ limit: z.ZodDefault<z.ZodNumber>;
3481
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3482
+ }, z.core.$strict>>;
3483
+ }, z.core.$strict>, unknown>, z.ZodObject<{
3484
+ threads: z.ZodArray<z.ZodObject<{
3485
+ threadId: z.ZodString;
3486
+ }, z.core.$strict>>;
3487
+ page: z.ZodObject<{
3488
+ next: z.ZodNullable<z.ZodString>;
3489
+ }, z.core.$strict>;
3490
+ }, z.core.$strict>> | undefined;
3491
+ } & {
3492
+ readonly _mastraSchemaRoute: true;
3493
+ };
3056
3494
  LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
3057
3495
  method: string;
3058
3496
  path: `/${string}`;
3059
3497
  responseType: "json";
3060
3498
  streamFormat?: 'sse' | 'stream';
3061
3499
  sseFlushOnConnect?: boolean;
3062
- handler(params: Record<string, unknown> & ServerContext): Promise<{
3500
+ handler(params: {
3501
+ [x: string]: unknown;
3502
+ } & ServerContext): Promise<{
3063
3503
  pagination?: {
3064
3504
  total: number;
3065
3505
  page: number;
@@ -3072,13 +3512,13 @@ export declare const NEW_ROUTES: {
3072
3512
  } | undefined;
3073
3513
  deltaCursor?: string | undefined;
3074
3514
  logs: {
3075
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3515
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3076
3516
  entityId?: string | null | undefined;
3077
3517
  entityName?: string | null | undefined;
3078
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3518
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3079
3519
  parentEntityId?: string | null | undefined;
3080
3520
  parentEntityName?: string | null | undefined;
3081
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3521
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3082
3522
  rootEntityId?: string | null | undefined;
3083
3523
  rootEntityName?: string | null | undefined;
3084
3524
  userId?: string | null | undefined;
@@ -3108,10 +3548,10 @@ export declare const NEW_ROUTES: {
3108
3548
  metadata?: Record<string, unknown> | null | undefined;
3109
3549
  }[];
3110
3550
  }>;
3111
- pathParamSchema?: z.ZodType;
3112
- queryParamSchema?: z.ZodType;
3113
- bodySchema?: z.ZodType;
3114
- responseSchema?: z.ZodType;
3551
+ pathParamSchema?: z.ZodSchema;
3552
+ queryParamSchema?: z.ZodSchema;
3553
+ bodySchema?: z.ZodSchema;
3554
+ responseSchema?: z.ZodSchema;
3115
3555
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3116
3556
  maxBodySize?: number;
3117
3557
  deprecated?: boolean;
@@ -3133,13 +3573,13 @@ export declare const NEW_ROUTES: {
3133
3573
  }, z.core.$strip>>;
3134
3574
  deltaCursor: z.ZodOptional<z.ZodString>;
3135
3575
  logs: z.ZodArray<z.ZodObject<{
3136
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3576
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3137
3577
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3138
3578
  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>>>;
3579
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3140
3580
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3141
3581
  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>>>;
3582
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3143
3583
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3144
3584
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3145
3585
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3184,7 +3624,9 @@ export declare const NEW_ROUTES: {
3184
3624
  responseType: "json";
3185
3625
  streamFormat?: 'sse' | 'stream';
3186
3626
  sseFlushOnConnect?: boolean;
3187
- handler(params: Record<string, unknown> & ServerContext): Promise<{
3627
+ handler(params: {
3628
+ [x: string]: unknown;
3629
+ } & ServerContext): Promise<{
3188
3630
  pagination?: {
3189
3631
  total: number;
3190
3632
  page: number;
@@ -3197,13 +3639,13 @@ export declare const NEW_ROUTES: {
3197
3639
  } | undefined;
3198
3640
  deltaCursor?: string | undefined;
3199
3641
  scores: {
3200
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3642
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3201
3643
  entityId?: string | null | undefined;
3202
3644
  entityName?: string | null | undefined;
3203
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3645
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3204
3646
  parentEntityId?: string | null | undefined;
3205
3647
  parentEntityName?: string | null | undefined;
3206
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3648
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3207
3649
  rootEntityId?: string | null | undefined;
3208
3650
  rootEntityName?: string | null | undefined;
3209
3651
  userId?: string | null | undefined;
@@ -3237,10 +3679,10 @@ export declare const NEW_ROUTES: {
3237
3679
  metadata?: Record<string, unknown> | null | undefined;
3238
3680
  }[];
3239
3681
  }>;
3240
- pathParamSchema?: z.ZodType;
3241
- queryParamSchema?: z.ZodType;
3242
- bodySchema?: z.ZodType;
3243
- responseSchema?: z.ZodType;
3682
+ pathParamSchema?: z.ZodSchema;
3683
+ queryParamSchema?: z.ZodSchema;
3684
+ bodySchema?: z.ZodSchema;
3685
+ responseSchema?: z.ZodSchema;
3244
3686
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3245
3687
  maxBodySize?: number;
3246
3688
  deprecated?: boolean;
@@ -3262,13 +3704,13 @@ export declare const NEW_ROUTES: {
3262
3704
  }, z.core.$strip>>;
3263
3705
  deltaCursor: z.ZodOptional<z.ZodString>;
3264
3706
  scores: z.ZodArray<z.ZodObject<{
3265
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3707
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3266
3708
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3267
3709
  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>>>;
3710
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3269
3711
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3270
3712
  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>>>;
3713
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3272
3714
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3273
3715
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3274
3716
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3313,13 +3755,13 @@ export declare const NEW_ROUTES: {
3313
3755
  sseFlushOnConnect?: boolean;
3314
3756
  handler(params: {
3315
3757
  score: {
3316
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3758
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3317
3759
  entityId?: string | null | undefined;
3318
3760
  entityName?: string | null | undefined;
3319
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3761
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3320
3762
  parentEntityId?: string | null | undefined;
3321
3763
  parentEntityName?: string | null | undefined;
3322
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3764
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3323
3765
  rootEntityId?: string | null | undefined;
3324
3766
  rootEntityName?: string | null | undefined;
3325
3767
  userId?: string | null | undefined;
@@ -3354,10 +3796,10 @@ export declare const NEW_ROUTES: {
3354
3796
  } & ServerContext): Promise<{
3355
3797
  success: boolean;
3356
3798
  }>;
3357
- pathParamSchema?: z.ZodType;
3358
- queryParamSchema?: z.ZodType;
3359
- bodySchema?: z.ZodType;
3360
- responseSchema?: z.ZodType;
3799
+ pathParamSchema?: z.ZodSchema;
3800
+ queryParamSchema?: z.ZodSchema;
3801
+ bodySchema?: z.ZodSchema;
3802
+ responseSchema?: z.ZodSchema;
3361
3803
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3362
3804
  maxBodySize?: number;
3363
3805
  deprecated?: boolean;
@@ -3366,13 +3808,13 @@ export declare const NEW_ROUTES: {
3366
3808
  onValidationError?: ValidationErrorHook;
3367
3809
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
3368
3810
  score: z.ZodObject<{
3369
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3811
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3370
3812
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3371
3813
  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>>>;
3814
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3373
3815
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3374
3816
  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>>>;
3817
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3376
3818
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3377
3819
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3378
3820
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3423,10 +3865,10 @@ export declare const NEW_ROUTES: {
3423
3865
  } & ServerContext): Promise<{
3424
3866
  success: boolean;
3425
3867
  }>;
3426
- pathParamSchema?: z.ZodType;
3427
- queryParamSchema?: z.ZodType;
3428
- bodySchema?: z.ZodType;
3429
- responseSchema?: z.ZodType;
3868
+ pathParamSchema?: z.ZodSchema;
3869
+ queryParamSchema?: z.ZodSchema;
3870
+ bodySchema?: z.ZodSchema;
3871
+ responseSchema?: z.ZodSchema;
3430
3872
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3431
3873
  maxBodySize?: number;
3432
3874
  deprecated?: boolean;
@@ -3453,13 +3895,13 @@ export declare const NEW_ROUTES: {
3453
3895
  scoreId: string;
3454
3896
  } & ServerContext): Promise<{
3455
3897
  score: {
3456
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3898
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3457
3899
  entityId?: string | null | undefined;
3458
3900
  entityName?: string | null | undefined;
3459
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3901
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3460
3902
  parentEntityId?: string | null | undefined;
3461
3903
  parentEntityName?: string | null | undefined;
3462
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3904
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
3463
3905
  rootEntityId?: string | null | undefined;
3464
3906
  rootEntityName?: string | null | undefined;
3465
3907
  userId?: string | null | undefined;
@@ -3493,10 +3935,10 @@ export declare const NEW_ROUTES: {
3493
3935
  metadata?: Record<string, unknown> | null | undefined;
3494
3936
  } | null;
3495
3937
  }>;
3496
- pathParamSchema?: z.ZodType;
3497
- queryParamSchema?: z.ZodType;
3498
- bodySchema?: z.ZodType;
3499
- responseSchema?: z.ZodType;
3938
+ pathParamSchema?: z.ZodSchema;
3939
+ queryParamSchema?: z.ZodSchema;
3940
+ bodySchema?: z.ZodSchema;
3941
+ responseSchema?: z.ZodSchema;
3500
3942
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3501
3943
  maxBodySize?: number;
3502
3944
  deprecated?: boolean;
@@ -3507,13 +3949,13 @@ export declare const NEW_ROUTES: {
3507
3949
  scoreId: z.ZodString;
3508
3950
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
3509
3951
  score: z.ZodNullable<z.ZodObject<{
3510
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3952
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3511
3953
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3512
3954
  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>>>;
3955
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3514
3956
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3515
3957
  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>>>;
3958
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
3517
3959
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3518
3960
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3519
3961
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3569,7 +4011,7 @@ export declare const NEW_ROUTES: {
3569
4011
  } | undefined;
3570
4012
  traceId?: string | undefined;
3571
4013
  spanId?: string | undefined;
3572
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4014
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3573
4015
  entityName?: string | undefined;
3574
4016
  entityVersionId?: string | undefined;
3575
4017
  parentEntityVersionId?: string | undefined;
@@ -3579,9 +4021,9 @@ export declare const NEW_ROUTES: {
3579
4021
  experimentId?: string | undefined;
3580
4022
  serviceName?: string | undefined;
3581
4023
  environment?: string | undefined;
3582
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4024
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3583
4025
  parentEntityName?: string | undefined;
3584
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4026
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3585
4027
  rootEntityName?: string | undefined;
3586
4028
  resourceId?: string | undefined;
3587
4029
  runId?: string | undefined;
@@ -3601,10 +4043,10 @@ export declare const NEW_ROUTES: {
3601
4043
  previousValue?: number | null | undefined;
3602
4044
  changePercent?: number | null | undefined;
3603
4045
  }>;
3604
- pathParamSchema?: z.ZodType;
3605
- queryParamSchema?: z.ZodType;
3606
- bodySchema?: z.ZodType;
3607
- responseSchema?: z.ZodType;
4046
+ pathParamSchema?: z.ZodSchema;
4047
+ queryParamSchema?: z.ZodSchema;
4048
+ bodySchema?: z.ZodSchema;
4049
+ responseSchema?: z.ZodSchema;
3608
4050
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3609
4051
  maxBodySize?: number;
3610
4052
  deprecated?: boolean;
@@ -3632,7 +4074,7 @@ export declare const NEW_ROUTES: {
3632
4074
  }, z.core.$strip>>;
3633
4075
  traceId: z.ZodOptional<z.ZodString>;
3634
4076
  spanId: z.ZodOptional<z.ZodString>;
3635
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4077
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3636
4078
  entityName: z.ZodOptional<z.ZodString>;
3637
4079
  entityVersionId: z.ZodOptional<z.ZodString>;
3638
4080
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -3642,9 +4084,9 @@ export declare const NEW_ROUTES: {
3642
4084
  experimentId: z.ZodOptional<z.ZodString>;
3643
4085
  serviceName: z.ZodOptional<z.ZodString>;
3644
4086
  environment: z.ZodOptional<z.ZodString>;
3645
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4087
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3646
4088
  parentEntityName: z.ZodOptional<z.ZodString>;
3647
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4089
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3648
4090
  rootEntityName: z.ZodOptional<z.ZodString>;
3649
4091
  resourceId: z.ZodOptional<z.ZodString>;
3650
4092
  runId: z.ZodOptional<z.ZodString>;
@@ -3691,7 +4133,7 @@ export declare const NEW_ROUTES: {
3691
4133
  } | undefined;
3692
4134
  traceId?: string | undefined;
3693
4135
  spanId?: string | undefined;
3694
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4136
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3695
4137
  entityName?: string | undefined;
3696
4138
  entityVersionId?: string | undefined;
3697
4139
  parentEntityVersionId?: string | undefined;
@@ -3701,9 +4143,9 @@ export declare const NEW_ROUTES: {
3701
4143
  experimentId?: string | undefined;
3702
4144
  serviceName?: string | undefined;
3703
4145
  environment?: string | undefined;
3704
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4146
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3705
4147
  parentEntityName?: string | undefined;
3706
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4148
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3707
4149
  rootEntityName?: string | undefined;
3708
4150
  resourceId?: string | undefined;
3709
4151
  runId?: string | undefined;
@@ -3723,10 +4165,10 @@ export declare const NEW_ROUTES: {
3723
4165
  value: number;
3724
4166
  }[];
3725
4167
  }>;
3726
- pathParamSchema?: z.ZodType;
3727
- queryParamSchema?: z.ZodType;
3728
- bodySchema?: z.ZodType;
3729
- responseSchema?: z.ZodType;
4168
+ pathParamSchema?: z.ZodSchema;
4169
+ queryParamSchema?: z.ZodSchema;
4170
+ bodySchema?: z.ZodSchema;
4171
+ responseSchema?: z.ZodSchema;
3730
4172
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3731
4173
  maxBodySize?: number;
3732
4174
  deprecated?: boolean;
@@ -3755,7 +4197,7 @@ export declare const NEW_ROUTES: {
3755
4197
  }, z.core.$strip>>;
3756
4198
  traceId: z.ZodOptional<z.ZodString>;
3757
4199
  spanId: z.ZodOptional<z.ZodString>;
3758
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4200
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3759
4201
  entityName: z.ZodOptional<z.ZodString>;
3760
4202
  entityVersionId: z.ZodOptional<z.ZodString>;
3761
4203
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -3765,9 +4207,9 @@ export declare const NEW_ROUTES: {
3765
4207
  experimentId: z.ZodOptional<z.ZodString>;
3766
4208
  serviceName: z.ZodOptional<z.ZodString>;
3767
4209
  environment: z.ZodOptional<z.ZodString>;
3768
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4210
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3769
4211
  parentEntityName: z.ZodOptional<z.ZodString>;
3770
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4212
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3771
4213
  rootEntityName: z.ZodOptional<z.ZodString>;
3772
4214
  resourceId: z.ZodOptional<z.ZodString>;
3773
4215
  runId: z.ZodOptional<z.ZodString>;
@@ -3810,7 +4252,7 @@ export declare const NEW_ROUTES: {
3810
4252
  } | undefined;
3811
4253
  traceId?: string | undefined;
3812
4254
  spanId?: string | undefined;
3813
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4255
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3814
4256
  entityName?: string | undefined;
3815
4257
  entityVersionId?: string | undefined;
3816
4258
  parentEntityVersionId?: string | undefined;
@@ -3820,9 +4262,9 @@ export declare const NEW_ROUTES: {
3820
4262
  experimentId?: string | undefined;
3821
4263
  serviceName?: string | undefined;
3822
4264
  environment?: string | undefined;
3823
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4265
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3824
4266
  parentEntityName?: string | undefined;
3825
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4267
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3826
4268
  rootEntityName?: string | undefined;
3827
4269
  resourceId?: string | undefined;
3828
4270
  runId?: string | undefined;
@@ -3846,10 +4288,10 @@ export declare const NEW_ROUTES: {
3846
4288
  }[];
3847
4289
  }[];
3848
4290
  }>;
3849
- pathParamSchema?: z.ZodType;
3850
- queryParamSchema?: z.ZodType;
3851
- bodySchema?: z.ZodType;
3852
- responseSchema?: z.ZodType;
4291
+ pathParamSchema?: z.ZodSchema;
4292
+ queryParamSchema?: z.ZodSchema;
4293
+ bodySchema?: z.ZodSchema;
4294
+ responseSchema?: z.ZodSchema;
3853
4295
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3854
4296
  maxBodySize?: number;
3855
4297
  deprecated?: boolean;
@@ -3884,7 +4326,7 @@ export declare const NEW_ROUTES: {
3884
4326
  }, z.core.$strip>>;
3885
4327
  traceId: z.ZodOptional<z.ZodString>;
3886
4328
  spanId: z.ZodOptional<z.ZodString>;
3887
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4329
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3888
4330
  entityName: z.ZodOptional<z.ZodString>;
3889
4331
  entityVersionId: z.ZodOptional<z.ZodString>;
3890
4332
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -3894,9 +4336,9 @@ export declare const NEW_ROUTES: {
3894
4336
  experimentId: z.ZodOptional<z.ZodString>;
3895
4337
  serviceName: z.ZodOptional<z.ZodString>;
3896
4338
  environment: z.ZodOptional<z.ZodString>;
3897
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4339
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3898
4340
  parentEntityName: z.ZodOptional<z.ZodString>;
3899
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4341
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
3900
4342
  rootEntityName: z.ZodOptional<z.ZodString>;
3901
4343
  resourceId: z.ZodOptional<z.ZodString>;
3902
4344
  runId: z.ZodOptional<z.ZodString>;
@@ -3943,7 +4385,7 @@ export declare const NEW_ROUTES: {
3943
4385
  } | undefined;
3944
4386
  traceId?: string | undefined;
3945
4387
  spanId?: string | undefined;
3946
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4388
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3947
4389
  entityName?: string | undefined;
3948
4390
  entityVersionId?: string | undefined;
3949
4391
  parentEntityVersionId?: string | undefined;
@@ -3953,9 +4395,9 @@ export declare const NEW_ROUTES: {
3953
4395
  experimentId?: string | undefined;
3954
4396
  serviceName?: string | undefined;
3955
4397
  environment?: string | undefined;
3956
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4398
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3957
4399
  parentEntityName?: string | undefined;
3958
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4400
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
3959
4401
  rootEntityName?: string | undefined;
3960
4402
  resourceId?: string | undefined;
3961
4403
  runId?: string | undefined;
@@ -3978,10 +4420,10 @@ export declare const NEW_ROUTES: {
3978
4420
  }[];
3979
4421
  }[];
3980
4422
  }>;
3981
- pathParamSchema?: z.ZodType;
3982
- queryParamSchema?: z.ZodType;
3983
- bodySchema?: z.ZodType;
3984
- responseSchema?: z.ZodType;
4423
+ pathParamSchema?: z.ZodSchema;
4424
+ queryParamSchema?: z.ZodSchema;
4425
+ bodySchema?: z.ZodSchema;
4426
+ responseSchema?: z.ZodSchema;
3985
4427
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
3986
4428
  maxBodySize?: number;
3987
4429
  deprecated?: boolean;
@@ -4008,7 +4450,7 @@ export declare const NEW_ROUTES: {
4008
4450
  }, z.core.$strip>>;
4009
4451
  traceId: z.ZodOptional<z.ZodString>;
4010
4452
  spanId: z.ZodOptional<z.ZodString>;
4011
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4453
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4012
4454
  entityName: z.ZodOptional<z.ZodString>;
4013
4455
  entityVersionId: z.ZodOptional<z.ZodString>;
4014
4456
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -4018,9 +4460,9 @@ export declare const NEW_ROUTES: {
4018
4460
  experimentId: z.ZodOptional<z.ZodString>;
4019
4461
  serviceName: z.ZodOptional<z.ZodString>;
4020
4462
  environment: z.ZodOptional<z.ZodString>;
4021
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4463
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4022
4464
  parentEntityName: z.ZodOptional<z.ZodString>;
4023
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4465
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4024
4466
  rootEntityName: z.ZodOptional<z.ZodString>;
4025
4467
  resourceId: z.ZodOptional<z.ZodString>;
4026
4468
  runId: z.ZodOptional<z.ZodString>;
@@ -4052,7 +4494,9 @@ export declare const NEW_ROUTES: {
4052
4494
  responseType: "json";
4053
4495
  streamFormat?: 'sse' | 'stream';
4054
4496
  sseFlushOnConnect?: boolean;
4055
- handler(params: Record<string, unknown> & ServerContext): Promise<{
4497
+ handler(params: {
4498
+ [x: string]: unknown;
4499
+ } & ServerContext): Promise<{
4056
4500
  pagination?: {
4057
4501
  total: number;
4058
4502
  page: number;
@@ -4065,13 +4509,13 @@ export declare const NEW_ROUTES: {
4065
4509
  } | undefined;
4066
4510
  deltaCursor?: string | undefined;
4067
4511
  feedback: {
4068
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4512
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4069
4513
  entityId?: string | null | undefined;
4070
4514
  entityName?: string | null | undefined;
4071
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4515
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4072
4516
  parentEntityId?: string | null | undefined;
4073
4517
  parentEntityName?: string | null | undefined;
4074
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4518
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4075
4519
  rootEntityId?: string | null | undefined;
4076
4520
  rootEntityName?: string | null | undefined;
4077
4521
  userId?: string | null | undefined;
@@ -4111,10 +4555,10 @@ export declare const NEW_ROUTES: {
4111
4555
  } | undefined;
4112
4556
  }[];
4113
4557
  }>;
4114
- pathParamSchema?: z.ZodType;
4115
- queryParamSchema?: z.ZodType;
4116
- bodySchema?: z.ZodType;
4117
- responseSchema?: z.ZodType;
4558
+ pathParamSchema?: z.ZodSchema;
4559
+ queryParamSchema?: z.ZodSchema;
4560
+ bodySchema?: z.ZodSchema;
4561
+ responseSchema?: z.ZodSchema;
4118
4562
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4119
4563
  maxBodySize?: number;
4120
4564
  deprecated?: boolean;
@@ -4136,13 +4580,13 @@ export declare const NEW_ROUTES: {
4136
4580
  }, z.core.$strip>>;
4137
4581
  deltaCursor: z.ZodOptional<z.ZodString>;
4138
4582
  feedback: z.ZodArray<z.ZodObject<{
4139
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4583
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4140
4584
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4141
4585
  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>>>;
4586
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4143
4587
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4144
4588
  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>>>;
4589
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4146
4590
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4147
4591
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4148
4592
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4196,13 +4640,13 @@ export declare const NEW_ROUTES: {
4196
4640
  sseFlushOnConnect?: boolean;
4197
4641
  handler(params: {
4198
4642
  feedback: {
4199
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4643
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4200
4644
  entityId?: string | null | undefined;
4201
4645
  entityName?: string | null | undefined;
4202
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4646
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4203
4647
  parentEntityId?: string | null | undefined;
4204
4648
  parentEntityName?: string | null | undefined;
4205
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4649
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4206
4650
  rootEntityId?: string | null | undefined;
4207
4651
  rootEntityName?: string | null | undefined;
4208
4652
  userId?: string | null | undefined;
@@ -4237,10 +4681,10 @@ export declare const NEW_ROUTES: {
4237
4681
  } & ServerContext): Promise<{
4238
4682
  success: boolean;
4239
4683
  }>;
4240
- pathParamSchema?: z.ZodType;
4241
- queryParamSchema?: z.ZodType;
4242
- bodySchema?: z.ZodType;
4243
- responseSchema?: z.ZodType;
4684
+ pathParamSchema?: z.ZodSchema;
4685
+ queryParamSchema?: z.ZodSchema;
4686
+ bodySchema?: z.ZodSchema;
4687
+ responseSchema?: z.ZodSchema;
4244
4688
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4245
4689
  maxBodySize?: number;
4246
4690
  deprecated?: boolean;
@@ -4249,13 +4693,13 @@ export declare const NEW_ROUTES: {
4249
4693
  onValidationError?: ValidationErrorHook;
4250
4694
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4251
4695
  feedback: z.ZodObject<{
4252
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4696
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4253
4697
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4254
4698
  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>>>;
4699
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4256
4700
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4257
4701
  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>>>;
4702
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4259
4703
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4260
4704
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4261
4705
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4309,10 +4753,10 @@ export declare const NEW_ROUTES: {
4309
4753
  } & ServerContext): Promise<{
4310
4754
  success: boolean;
4311
4755
  }>;
4312
- pathParamSchema?: z.ZodType;
4313
- queryParamSchema?: z.ZodType;
4314
- bodySchema?: z.ZodType;
4315
- responseSchema?: z.ZodType;
4756
+ pathParamSchema?: z.ZodSchema;
4757
+ queryParamSchema?: z.ZodSchema;
4758
+ bodySchema?: z.ZodSchema;
4759
+ responseSchema?: z.ZodSchema;
4316
4760
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4317
4761
  maxBodySize?: number;
4318
4762
  deprecated?: boolean;
@@ -4340,13 +4784,13 @@ export declare const NEW_ROUTES: {
4340
4784
  } & {
4341
4785
  reviewStatus: "needs-review" | "reviewed";
4342
4786
  } & ServerContext): Promise<{
4343
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4787
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4344
4788
  entityId?: string | null | undefined;
4345
4789
  entityName?: string | null | undefined;
4346
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4790
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4347
4791
  parentEntityId?: string | null | undefined;
4348
4792
  parentEntityName?: string | null | undefined;
4349
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4793
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4350
4794
  rootEntityId?: string | null | undefined;
4351
4795
  rootEntityName?: string | null | undefined;
4352
4796
  userId?: string | null | undefined;
@@ -4379,10 +4823,10 @@ export declare const NEW_ROUTES: {
4379
4823
  metadata?: Record<string, unknown> | null | undefined;
4380
4824
  reviewStatus: "needs-review" | "reviewed";
4381
4825
  }>;
4382
- pathParamSchema?: z.ZodType;
4383
- queryParamSchema?: z.ZodType;
4384
- bodySchema?: z.ZodType;
4385
- responseSchema?: z.ZodType;
4826
+ pathParamSchema?: z.ZodSchema;
4827
+ queryParamSchema?: z.ZodSchema;
4828
+ bodySchema?: z.ZodSchema;
4829
+ responseSchema?: z.ZodSchema;
4386
4830
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4387
4831
  maxBodySize?: number;
4388
4832
  deprecated?: boolean;
@@ -4397,13 +4841,13 @@ export declare const NEW_ROUTES: {
4397
4841
  reviewed: "reviewed";
4398
4842
  }>;
4399
4843
  }, z.core.$strip>, z.ZodObject<{
4400
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4844
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4401
4845
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4402
4846
  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>>>;
4847
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4404
4848
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4405
4849
  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>>>;
4850
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
4407
4851
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4408
4852
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4409
4853
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4461,7 +4905,7 @@ export declare const NEW_ROUTES: {
4461
4905
  } | undefined;
4462
4906
  traceId?: string | undefined;
4463
4907
  spanId?: string | undefined;
4464
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4908
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4465
4909
  entityName?: string | undefined;
4466
4910
  entityVersionId?: string | undefined;
4467
4911
  parentEntityVersionId?: string | undefined;
@@ -4471,9 +4915,9 @@ export declare const NEW_ROUTES: {
4471
4915
  experimentId?: string | undefined;
4472
4916
  serviceName?: string | undefined;
4473
4917
  environment?: string | undefined;
4474
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4918
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4475
4919
  parentEntityName?: string | undefined;
4476
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
4920
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4477
4921
  rootEntityName?: string | undefined;
4478
4922
  resourceId?: string | undefined;
4479
4923
  runId?: string | undefined;
@@ -4494,10 +4938,10 @@ export declare const NEW_ROUTES: {
4494
4938
  previousValue?: number | null | undefined;
4495
4939
  changePercent?: number | null | undefined;
4496
4940
  }>;
4497
- pathParamSchema?: z.ZodType;
4498
- queryParamSchema?: z.ZodType;
4499
- bodySchema?: z.ZodType;
4500
- responseSchema?: z.ZodType;
4941
+ pathParamSchema?: z.ZodSchema;
4942
+ queryParamSchema?: z.ZodSchema;
4943
+ bodySchema?: z.ZodSchema;
4944
+ responseSchema?: z.ZodSchema;
4501
4945
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4502
4946
  maxBodySize?: number;
4503
4947
  deprecated?: boolean;
@@ -4525,7 +4969,7 @@ export declare const NEW_ROUTES: {
4525
4969
  }, z.core.$strip>>;
4526
4970
  traceId: z.ZodOptional<z.ZodString>;
4527
4971
  spanId: z.ZodOptional<z.ZodString>;
4528
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4972
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4529
4973
  entityName: z.ZodOptional<z.ZodString>;
4530
4974
  entityVersionId: z.ZodOptional<z.ZodString>;
4531
4975
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -4535,9 +4979,9 @@ export declare const NEW_ROUTES: {
4535
4979
  experimentId: z.ZodOptional<z.ZodString>;
4536
4980
  serviceName: z.ZodOptional<z.ZodString>;
4537
4981
  environment: z.ZodOptional<z.ZodString>;
4538
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4982
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4539
4983
  parentEntityName: z.ZodOptional<z.ZodString>;
4540
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
4984
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4541
4985
  rootEntityName: z.ZodOptional<z.ZodString>;
4542
4986
  resourceId: z.ZodOptional<z.ZodString>;
4543
4987
  runId: z.ZodOptional<z.ZodString>;
@@ -4588,7 +5032,7 @@ export declare const NEW_ROUTES: {
4588
5032
  } | undefined;
4589
5033
  traceId?: string | undefined;
4590
5034
  spanId?: string | undefined;
4591
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5035
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4592
5036
  entityName?: string | undefined;
4593
5037
  entityVersionId?: string | undefined;
4594
5038
  parentEntityVersionId?: string | undefined;
@@ -4598,9 +5042,9 @@ export declare const NEW_ROUTES: {
4598
5042
  experimentId?: string | undefined;
4599
5043
  serviceName?: string | undefined;
4600
5044
  environment?: string | undefined;
4601
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5045
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4602
5046
  parentEntityName?: string | undefined;
4603
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5047
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4604
5048
  rootEntityName?: string | undefined;
4605
5049
  resourceId?: string | undefined;
4606
5050
  runId?: string | undefined;
@@ -4621,10 +5065,10 @@ export declare const NEW_ROUTES: {
4621
5065
  value: number;
4622
5066
  }[];
4623
5067
  }>;
4624
- pathParamSchema?: z.ZodType;
4625
- queryParamSchema?: z.ZodType;
4626
- bodySchema?: z.ZodType;
4627
- responseSchema?: z.ZodType;
5068
+ pathParamSchema?: z.ZodSchema;
5069
+ queryParamSchema?: z.ZodSchema;
5070
+ bodySchema?: z.ZodSchema;
5071
+ responseSchema?: z.ZodSchema;
4628
5072
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4629
5073
  maxBodySize?: number;
4630
5074
  deprecated?: boolean;
@@ -4653,7 +5097,7 @@ export declare const NEW_ROUTES: {
4653
5097
  }, z.core.$strip>>;
4654
5098
  traceId: z.ZodOptional<z.ZodString>;
4655
5099
  spanId: z.ZodOptional<z.ZodString>;
4656
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5100
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4657
5101
  entityName: z.ZodOptional<z.ZodString>;
4658
5102
  entityVersionId: z.ZodOptional<z.ZodString>;
4659
5103
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -4663,9 +5107,9 @@ export declare const NEW_ROUTES: {
4663
5107
  experimentId: z.ZodOptional<z.ZodString>;
4664
5108
  serviceName: z.ZodOptional<z.ZodString>;
4665
5109
  environment: z.ZodOptional<z.ZodString>;
4666
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5110
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4667
5111
  parentEntityName: z.ZodOptional<z.ZodString>;
4668
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5112
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4669
5113
  rootEntityName: z.ZodOptional<z.ZodString>;
4670
5114
  resourceId: z.ZodOptional<z.ZodString>;
4671
5115
  runId: z.ZodOptional<z.ZodString>;
@@ -4712,7 +5156,7 @@ export declare const NEW_ROUTES: {
4712
5156
  } | undefined;
4713
5157
  traceId?: string | undefined;
4714
5158
  spanId?: string | undefined;
4715
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5159
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4716
5160
  entityName?: string | undefined;
4717
5161
  entityVersionId?: string | undefined;
4718
5162
  parentEntityVersionId?: string | undefined;
@@ -4722,9 +5166,9 @@ export declare const NEW_ROUTES: {
4722
5166
  experimentId?: string | undefined;
4723
5167
  serviceName?: string | undefined;
4724
5168
  environment?: string | undefined;
4725
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5169
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4726
5170
  parentEntityName?: string | undefined;
4727
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5171
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4728
5172
  rootEntityName?: string | undefined;
4729
5173
  resourceId?: string | undefined;
4730
5174
  runId?: string | undefined;
@@ -4749,10 +5193,10 @@ export declare const NEW_ROUTES: {
4749
5193
  }[];
4750
5194
  }[];
4751
5195
  }>;
4752
- pathParamSchema?: z.ZodType;
4753
- queryParamSchema?: z.ZodType;
4754
- bodySchema?: z.ZodType;
4755
- responseSchema?: z.ZodType;
5196
+ pathParamSchema?: z.ZodSchema;
5197
+ queryParamSchema?: z.ZodSchema;
5198
+ bodySchema?: z.ZodSchema;
5199
+ responseSchema?: z.ZodSchema;
4756
5200
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4757
5201
  maxBodySize?: number;
4758
5202
  deprecated?: boolean;
@@ -4787,7 +5231,7 @@ export declare const NEW_ROUTES: {
4787
5231
  }, z.core.$strip>>;
4788
5232
  traceId: z.ZodOptional<z.ZodString>;
4789
5233
  spanId: z.ZodOptional<z.ZodString>;
4790
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5234
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4791
5235
  entityName: z.ZodOptional<z.ZodString>;
4792
5236
  entityVersionId: z.ZodOptional<z.ZodString>;
4793
5237
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -4797,9 +5241,9 @@ export declare const NEW_ROUTES: {
4797
5241
  experimentId: z.ZodOptional<z.ZodString>;
4798
5242
  serviceName: z.ZodOptional<z.ZodString>;
4799
5243
  environment: z.ZodOptional<z.ZodString>;
4800
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5244
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4801
5245
  parentEntityName: z.ZodOptional<z.ZodString>;
4802
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5246
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4803
5247
  rootEntityName: z.ZodOptional<z.ZodString>;
4804
5248
  resourceId: z.ZodOptional<z.ZodString>;
4805
5249
  runId: z.ZodOptional<z.ZodString>;
@@ -4850,7 +5294,7 @@ export declare const NEW_ROUTES: {
4850
5294
  } | undefined;
4851
5295
  traceId?: string | undefined;
4852
5296
  spanId?: string | undefined;
4853
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5297
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4854
5298
  entityName?: string | undefined;
4855
5299
  entityVersionId?: string | undefined;
4856
5300
  parentEntityVersionId?: string | undefined;
@@ -4860,9 +5304,9 @@ export declare const NEW_ROUTES: {
4860
5304
  experimentId?: string | undefined;
4861
5305
  serviceName?: string | undefined;
4862
5306
  environment?: string | undefined;
4863
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5307
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4864
5308
  parentEntityName?: string | undefined;
4865
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5309
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
4866
5310
  rootEntityName?: string | undefined;
4867
5311
  resourceId?: string | undefined;
4868
5312
  runId?: string | undefined;
@@ -4886,10 +5330,10 @@ export declare const NEW_ROUTES: {
4886
5330
  }[];
4887
5331
  }[];
4888
5332
  }>;
4889
- pathParamSchema?: z.ZodType;
4890
- queryParamSchema?: z.ZodType;
4891
- bodySchema?: z.ZodType;
4892
- responseSchema?: z.ZodType;
5333
+ pathParamSchema?: z.ZodSchema;
5334
+ queryParamSchema?: z.ZodSchema;
5335
+ bodySchema?: z.ZodSchema;
5336
+ responseSchema?: z.ZodSchema;
4893
5337
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
4894
5338
  maxBodySize?: number;
4895
5339
  deprecated?: boolean;
@@ -4916,7 +5360,7 @@ export declare const NEW_ROUTES: {
4916
5360
  }, z.core.$strip>>;
4917
5361
  traceId: z.ZodOptional<z.ZodString>;
4918
5362
  spanId: z.ZodOptional<z.ZodString>;
4919
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5363
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4920
5364
  entityName: z.ZodOptional<z.ZodString>;
4921
5365
  entityVersionId: z.ZodOptional<z.ZodString>;
4922
5366
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -4926,9 +5370,9 @@ export declare const NEW_ROUTES: {
4926
5370
  experimentId: z.ZodOptional<z.ZodString>;
4927
5371
  serviceName: z.ZodOptional<z.ZodString>;
4928
5372
  environment: z.ZodOptional<z.ZodString>;
4929
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5373
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4930
5374
  parentEntityName: z.ZodOptional<z.ZodString>;
4931
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5375
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
4932
5376
  rootEntityName: z.ZodOptional<z.ZodString>;
4933
5377
  resourceId: z.ZodOptional<z.ZodString>;
4934
5378
  runId: z.ZodOptional<z.ZodString>;
@@ -4964,7 +5408,9 @@ export declare const NEW_ROUTES: {
4964
5408
  responseType: "json";
4965
5409
  streamFormat?: 'sse' | 'stream';
4966
5410
  sseFlushOnConnect?: boolean;
4967
- handler(params: Record<string, unknown> & ServerContext): Promise<{
5411
+ handler(params: {
5412
+ [x: string]: unknown;
5413
+ } & ServerContext): Promise<{
4968
5414
  pagination?: {
4969
5415
  total: number;
4970
5416
  page: number;
@@ -4977,13 +5423,13 @@ export declare const NEW_ROUTES: {
4977
5423
  } | undefined;
4978
5424
  deltaCursor?: string | undefined;
4979
5425
  metrics: {
4980
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
5426
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4981
5427
  entityId?: string | null | undefined;
4982
5428
  entityName?: string | null | undefined;
4983
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
5429
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4984
5430
  parentEntityId?: string | null | undefined;
4985
5431
  parentEntityName?: string | null | undefined;
4986
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
5432
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | null | undefined;
4987
5433
  rootEntityId?: string | null | undefined;
4988
5434
  rootEntityName?: string | null | undefined;
4989
5435
  userId?: string | null | undefined;
@@ -5018,10 +5464,10 @@ export declare const NEW_ROUTES: {
5018
5464
  metadata?: Record<string, unknown> | null | undefined;
5019
5465
  }[];
5020
5466
  }>;
5021
- pathParamSchema?: z.ZodType;
5022
- queryParamSchema?: z.ZodType;
5023
- bodySchema?: z.ZodType;
5024
- responseSchema?: z.ZodType;
5467
+ pathParamSchema?: z.ZodSchema;
5468
+ queryParamSchema?: z.ZodSchema;
5469
+ bodySchema?: z.ZodSchema;
5470
+ responseSchema?: z.ZodSchema;
5025
5471
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5026
5472
  maxBodySize?: number;
5027
5473
  deprecated?: boolean;
@@ -5043,13 +5489,13 @@ export declare const NEW_ROUTES: {
5043
5489
  }, z.core.$strip>>;
5044
5490
  deltaCursor: z.ZodOptional<z.ZodString>;
5045
5491
  metrics: z.ZodArray<z.ZodObject<{
5046
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
5492
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
5047
5493
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5048
5494
  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>>>;
5495
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
5050
5496
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5051
5497
  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>>>;
5498
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>>;
5053
5499
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5054
5500
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5055
5501
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5106,7 +5552,7 @@ export declare const NEW_ROUTES: {
5106
5552
  } | undefined;
5107
5553
  traceId?: string | undefined;
5108
5554
  spanId?: string | undefined;
5109
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5555
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5110
5556
  entityName?: string | undefined;
5111
5557
  entityVersionId?: string | undefined;
5112
5558
  parentEntityVersionId?: string | undefined;
@@ -5116,9 +5562,9 @@ export declare const NEW_ROUTES: {
5116
5562
  experimentId?: string | undefined;
5117
5563
  serviceName?: string | undefined;
5118
5564
  environment?: string | undefined;
5119
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5565
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5120
5566
  parentEntityName?: string | undefined;
5121
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5567
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5122
5568
  rootEntityName?: string | undefined;
5123
5569
  resourceId?: string | undefined;
5124
5570
  runId?: string | undefined;
@@ -5145,10 +5591,10 @@ export declare const NEW_ROUTES: {
5145
5591
  previousEstimatedCost?: number | null | undefined;
5146
5592
  costChangePercent?: number | null | undefined;
5147
5593
  }>;
5148
- pathParamSchema?: z.ZodType;
5149
- queryParamSchema?: z.ZodType;
5150
- bodySchema?: z.ZodType;
5151
- responseSchema?: z.ZodType;
5594
+ pathParamSchema?: z.ZodSchema;
5595
+ queryParamSchema?: z.ZodSchema;
5596
+ bodySchema?: z.ZodSchema;
5597
+ responseSchema?: z.ZodSchema;
5152
5598
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5153
5599
  maxBodySize?: number;
5154
5600
  deprecated?: boolean;
@@ -5191,7 +5637,7 @@ export declare const NEW_ROUTES: {
5191
5637
  }, z.core.$strip>>;
5192
5638
  traceId: z.ZodOptional<z.ZodString>;
5193
5639
  spanId: z.ZodOptional<z.ZodString>;
5194
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5640
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5195
5641
  entityName: z.ZodOptional<z.ZodString>;
5196
5642
  entityVersionId: z.ZodOptional<z.ZodString>;
5197
5643
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -5201,9 +5647,9 @@ export declare const NEW_ROUTES: {
5201
5647
  experimentId: z.ZodOptional<z.ZodString>;
5202
5648
  serviceName: z.ZodOptional<z.ZodString>;
5203
5649
  environment: z.ZodOptional<z.ZodString>;
5204
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5650
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5205
5651
  parentEntityName: z.ZodOptional<z.ZodString>;
5206
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5652
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5207
5653
  rootEntityName: z.ZodOptional<z.ZodString>;
5208
5654
  resourceId: z.ZodOptional<z.ZodString>;
5209
5655
  runId: z.ZodOptional<z.ZodString>;
@@ -5257,7 +5703,7 @@ export declare const NEW_ROUTES: {
5257
5703
  } | undefined;
5258
5704
  traceId?: string | undefined;
5259
5705
  spanId?: string | undefined;
5260
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5706
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5261
5707
  entityName?: string | undefined;
5262
5708
  entityVersionId?: string | undefined;
5263
5709
  parentEntityVersionId?: string | undefined;
@@ -5267,9 +5713,9 @@ export declare const NEW_ROUTES: {
5267
5713
  experimentId?: string | undefined;
5268
5714
  serviceName?: string | undefined;
5269
5715
  environment?: string | undefined;
5270
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5716
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5271
5717
  parentEntityName?: string | undefined;
5272
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5718
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5273
5719
  rootEntityName?: string | undefined;
5274
5720
  resourceId?: string | undefined;
5275
5721
  runId?: string | undefined;
@@ -5296,10 +5742,10 @@ export declare const NEW_ROUTES: {
5296
5742
  costUnit?: string | null | undefined;
5297
5743
  }[];
5298
5744
  }>;
5299
- pathParamSchema?: z.ZodType;
5300
- queryParamSchema?: z.ZodType;
5301
- bodySchema?: z.ZodType;
5302
- responseSchema?: z.ZodType;
5745
+ pathParamSchema?: z.ZodSchema;
5746
+ queryParamSchema?: z.ZodSchema;
5747
+ bodySchema?: z.ZodSchema;
5748
+ responseSchema?: z.ZodSchema;
5303
5749
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5304
5750
  maxBodySize?: number;
5305
5751
  deprecated?: boolean;
@@ -5343,7 +5789,7 @@ export declare const NEW_ROUTES: {
5343
5789
  }, z.core.$strip>>;
5344
5790
  traceId: z.ZodOptional<z.ZodString>;
5345
5791
  spanId: z.ZodOptional<z.ZodString>;
5346
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5792
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5347
5793
  entityName: z.ZodOptional<z.ZodString>;
5348
5794
  entityVersionId: z.ZodOptional<z.ZodString>;
5349
5795
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -5353,9 +5799,9 @@ export declare const NEW_ROUTES: {
5353
5799
  experimentId: z.ZodOptional<z.ZodString>;
5354
5800
  serviceName: z.ZodOptional<z.ZodString>;
5355
5801
  environment: z.ZodOptional<z.ZodString>;
5356
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5802
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5357
5803
  parentEntityName: z.ZodOptional<z.ZodString>;
5358
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5804
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5359
5805
  rootEntityName: z.ZodOptional<z.ZodString>;
5360
5806
  resourceId: z.ZodOptional<z.ZodString>;
5361
5807
  runId: z.ZodOptional<z.ZodString>;
@@ -5408,7 +5854,7 @@ export declare const NEW_ROUTES: {
5408
5854
  } | undefined;
5409
5855
  traceId?: string | undefined;
5410
5856
  spanId?: string | undefined;
5411
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5857
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5412
5858
  entityName?: string | undefined;
5413
5859
  entityVersionId?: string | undefined;
5414
5860
  parentEntityVersionId?: string | undefined;
@@ -5418,9 +5864,9 @@ export declare const NEW_ROUTES: {
5418
5864
  experimentId?: string | undefined;
5419
5865
  serviceName?: string | undefined;
5420
5866
  environment?: string | undefined;
5421
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5867
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5422
5868
  parentEntityName?: string | undefined;
5423
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
5869
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5424
5870
  rootEntityName?: string | undefined;
5425
5871
  resourceId?: string | undefined;
5426
5872
  runId?: string | undefined;
@@ -5449,10 +5895,10 @@ export declare const NEW_ROUTES: {
5449
5895
  }[];
5450
5896
  }[];
5451
5897
  }>;
5452
- pathParamSchema?: z.ZodType;
5453
- queryParamSchema?: z.ZodType;
5454
- bodySchema?: z.ZodType;
5455
- responseSchema?: z.ZodType;
5898
+ pathParamSchema?: z.ZodSchema;
5899
+ queryParamSchema?: z.ZodSchema;
5900
+ bodySchema?: z.ZodSchema;
5901
+ responseSchema?: z.ZodSchema;
5456
5902
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5457
5903
  maxBodySize?: number;
5458
5904
  deprecated?: boolean;
@@ -5502,7 +5948,7 @@ export declare const NEW_ROUTES: {
5502
5948
  }, z.core.$strip>>;
5503
5949
  traceId: z.ZodOptional<z.ZodString>;
5504
5950
  spanId: z.ZodOptional<z.ZodString>;
5505
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5951
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5506
5952
  entityName: z.ZodOptional<z.ZodString>;
5507
5953
  entityVersionId: z.ZodOptional<z.ZodString>;
5508
5954
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -5512,9 +5958,9 @@ export declare const NEW_ROUTES: {
5512
5958
  experimentId: z.ZodOptional<z.ZodString>;
5513
5959
  serviceName: z.ZodOptional<z.ZodString>;
5514
5960
  environment: z.ZodOptional<z.ZodString>;
5515
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5961
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5516
5962
  parentEntityName: z.ZodOptional<z.ZodString>;
5517
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5963
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5518
5964
  rootEntityName: z.ZodOptional<z.ZodString>;
5519
5965
  resourceId: z.ZodOptional<z.ZodString>;
5520
5966
  runId: z.ZodOptional<z.ZodString>;
@@ -5565,7 +6011,7 @@ export declare const NEW_ROUTES: {
5565
6011
  } | undefined;
5566
6012
  traceId?: string | undefined;
5567
6013
  spanId?: string | undefined;
5568
- entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
6014
+ entityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5569
6015
  entityName?: string | undefined;
5570
6016
  entityVersionId?: string | undefined;
5571
6017
  parentEntityVersionId?: string | undefined;
@@ -5575,9 +6021,9 @@ export declare const NEW_ROUTES: {
5575
6021
  experimentId?: string | undefined;
5576
6022
  serviceName?: string | undefined;
5577
6023
  environment?: string | undefined;
5578
- parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
6024
+ parentEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5579
6025
  parentEntityName?: string | undefined;
5580
- rootEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | undefined;
6026
+ rootEntityType?: import("../../_types/@internal_core/dist/storage/index.js").EntityType | undefined;
5581
6027
  rootEntityName?: string | undefined;
5582
6028
  resourceId?: string | undefined;
5583
6029
  runId?: string | undefined;
@@ -5603,10 +6049,10 @@ export declare const NEW_ROUTES: {
5603
6049
  }[];
5604
6050
  }[];
5605
6051
  }>;
5606
- pathParamSchema?: z.ZodType;
5607
- queryParamSchema?: z.ZodType;
5608
- bodySchema?: z.ZodType;
5609
- responseSchema?: z.ZodType;
6052
+ pathParamSchema?: z.ZodSchema;
6053
+ queryParamSchema?: z.ZodSchema;
6054
+ bodySchema?: z.ZodSchema;
6055
+ responseSchema?: z.ZodSchema;
5610
6056
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5611
6057
  maxBodySize?: number;
5612
6058
  deprecated?: boolean;
@@ -5632,7 +6078,7 @@ export declare const NEW_ROUTES: {
5632
6078
  }, z.core.$strip>>;
5633
6079
  traceId: z.ZodOptional<z.ZodString>;
5634
6080
  spanId: z.ZodOptional<z.ZodString>;
5635
- entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
6081
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5636
6082
  entityName: z.ZodOptional<z.ZodString>;
5637
6083
  entityVersionId: z.ZodOptional<z.ZodString>;
5638
6084
  parentEntityVersionId: z.ZodOptional<z.ZodString>;
@@ -5642,9 +6088,9 @@ export declare const NEW_ROUTES: {
5642
6088
  experimentId: z.ZodOptional<z.ZodString>;
5643
6089
  serviceName: z.ZodOptional<z.ZodString>;
5644
6090
  environment: z.ZodOptional<z.ZodString>;
5645
- parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
6091
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5646
6092
  parentEntityName: z.ZodOptional<z.ZodString>;
5647
- rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
6093
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5648
6094
  rootEntityName: z.ZodOptional<z.ZodString>;
5649
6095
  resourceId: z.ZodOptional<z.ZodString>;
5650
6096
  runId: z.ZodOptional<z.ZodString>;
@@ -5679,13 +6125,15 @@ export declare const NEW_ROUTES: {
5679
6125
  responseType: "json";
5680
6126
  streamFormat?: 'sse' | 'stream';
5681
6127
  sseFlushOnConnect?: boolean;
5682
- handler(params: Record<string, unknown> & ServerContext): Promise<{
6128
+ handler(params: {
6129
+ [x: string]: unknown;
6130
+ } & ServerContext): Promise<{
5683
6131
  names: string[];
5684
6132
  }>;
5685
- pathParamSchema?: z.ZodType;
5686
- queryParamSchema?: z.ZodType;
5687
- bodySchema?: z.ZodType;
5688
- responseSchema?: z.ZodType;
6133
+ pathParamSchema?: z.ZodSchema;
6134
+ queryParamSchema?: z.ZodSchema;
6135
+ bodySchema?: z.ZodSchema;
6136
+ responseSchema?: z.ZodSchema;
5689
6137
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5690
6138
  maxBodySize?: number;
5691
6139
  deprecated?: boolean;
@@ -5706,13 +6154,15 @@ export declare const NEW_ROUTES: {
5706
6154
  responseType: "json";
5707
6155
  streamFormat?: 'sse' | 'stream';
5708
6156
  sseFlushOnConnect?: boolean;
5709
- handler(params: Record<string, unknown> & ServerContext): Promise<{
6157
+ handler(params: {
6158
+ [x: string]: unknown;
6159
+ } & ServerContext): Promise<{
5710
6160
  keys: string[];
5711
6161
  }>;
5712
- pathParamSchema?: z.ZodType;
5713
- queryParamSchema?: z.ZodType;
5714
- bodySchema?: z.ZodType;
5715
- responseSchema?: z.ZodType;
6162
+ pathParamSchema?: z.ZodSchema;
6163
+ queryParamSchema?: z.ZodSchema;
6164
+ bodySchema?: z.ZodSchema;
6165
+ responseSchema?: z.ZodSchema;
5716
6166
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5717
6167
  maxBodySize?: number;
5718
6168
  deprecated?: boolean;
@@ -5733,13 +6183,15 @@ export declare const NEW_ROUTES: {
5733
6183
  responseType: "json";
5734
6184
  streamFormat?: 'sse' | 'stream';
5735
6185
  sseFlushOnConnect?: boolean;
5736
- handler(params: Record<string, unknown> & ServerContext): Promise<{
6186
+ handler(params: {
6187
+ [x: string]: unknown;
6188
+ } & ServerContext): Promise<{
5737
6189
  values: string[];
5738
6190
  }>;
5739
- pathParamSchema?: z.ZodType;
5740
- queryParamSchema?: z.ZodType;
5741
- bodySchema?: z.ZodType;
5742
- responseSchema?: z.ZodType;
6191
+ pathParamSchema?: z.ZodSchema;
6192
+ queryParamSchema?: z.ZodSchema;
6193
+ bodySchema?: z.ZodSchema;
6194
+ responseSchema?: z.ZodSchema;
5743
6195
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5744
6196
  maxBodySize?: number;
5745
6197
  deprecated?: boolean;
@@ -5761,12 +6213,12 @@ export declare const NEW_ROUTES: {
5761
6213
  streamFormat?: 'sse' | 'stream';
5762
6214
  sseFlushOnConnect?: boolean;
5763
6215
  handler(params: ServerContext): Promise<{
5764
- entityTypes: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType[];
6216
+ entityTypes: import("../../_types/@internal_core/dist/storage/index.js").EntityType[];
5765
6217
  }>;
5766
- pathParamSchema?: z.ZodType;
5767
- queryParamSchema?: z.ZodType;
5768
- bodySchema?: z.ZodType;
5769
- responseSchema?: z.ZodType;
6218
+ pathParamSchema?: z.ZodSchema;
6219
+ queryParamSchema?: z.ZodSchema;
6220
+ bodySchema?: z.ZodSchema;
6221
+ responseSchema?: z.ZodSchema;
5770
6222
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5771
6223
  maxBodySize?: number;
5772
6224
  deprecated?: boolean;
@@ -5774,7 +6226,7 @@ export declare const NEW_ROUTES: {
5774
6226
  fga?: import("@mastra/core/auth").FGARouteConfig;
5775
6227
  onValidationError?: ValidationErrorHook;
5776
6228
  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>>;
6229
+ entityTypes: z.ZodArray<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.js").EntityType>>;
5778
6230
  }, z.core.$strip>> | undefined;
5779
6231
  } & {
5780
6232
  readonly _mastraSchemaRoute: true;
@@ -5785,13 +6237,15 @@ export declare const NEW_ROUTES: {
5785
6237
  responseType: "json";
5786
6238
  streamFormat?: 'sse' | 'stream';
5787
6239
  sseFlushOnConnect?: boolean;
5788
- handler(params: Record<string, unknown> & ServerContext): Promise<{
6240
+ handler(params: {
6241
+ [x: string]: unknown;
6242
+ } & ServerContext): Promise<{
5789
6243
  names: string[];
5790
6244
  }>;
5791
- pathParamSchema?: z.ZodType;
5792
- queryParamSchema?: z.ZodType;
5793
- bodySchema?: z.ZodType;
5794
- responseSchema?: z.ZodType;
6245
+ pathParamSchema?: z.ZodSchema;
6246
+ queryParamSchema?: z.ZodSchema;
6247
+ bodySchema?: z.ZodSchema;
6248
+ responseSchema?: z.ZodSchema;
5795
6249
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5796
6250
  maxBodySize?: number;
5797
6251
  deprecated?: boolean;
@@ -5815,10 +6269,10 @@ export declare const NEW_ROUTES: {
5815
6269
  handler(params: ServerContext): Promise<{
5816
6270
  serviceNames: string[];
5817
6271
  }>;
5818
- pathParamSchema?: z.ZodType;
5819
- queryParamSchema?: z.ZodType;
5820
- bodySchema?: z.ZodType;
5821
- responseSchema?: z.ZodType;
6272
+ pathParamSchema?: z.ZodSchema;
6273
+ queryParamSchema?: z.ZodSchema;
6274
+ bodySchema?: z.ZodSchema;
6275
+ responseSchema?: z.ZodSchema;
5822
6276
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5823
6277
  maxBodySize?: number;
5824
6278
  deprecated?: boolean;
@@ -5840,10 +6294,10 @@ export declare const NEW_ROUTES: {
5840
6294
  handler(params: ServerContext): Promise<{
5841
6295
  environments: string[];
5842
6296
  }>;
5843
- pathParamSchema?: z.ZodType;
5844
- queryParamSchema?: z.ZodType;
5845
- bodySchema?: z.ZodType;
5846
- responseSchema?: z.ZodType;
6297
+ pathParamSchema?: z.ZodSchema;
6298
+ queryParamSchema?: z.ZodSchema;
6299
+ bodySchema?: z.ZodSchema;
6300
+ responseSchema?: z.ZodSchema;
5847
6301
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5848
6302
  maxBodySize?: number;
5849
6303
  deprecated?: boolean;
@@ -5862,13 +6316,15 @@ export declare const NEW_ROUTES: {
5862
6316
  responseType: "json";
5863
6317
  streamFormat?: 'sse' | 'stream';
5864
6318
  sseFlushOnConnect?: boolean;
5865
- handler(params: Record<string, unknown> & ServerContext): Promise<{
6319
+ handler(params: {
6320
+ [x: string]: unknown;
6321
+ } & ServerContext): Promise<{
5866
6322
  tags: string[];
5867
6323
  }>;
5868
- pathParamSchema?: z.ZodType;
5869
- queryParamSchema?: z.ZodType;
5870
- bodySchema?: z.ZodType;
5871
- responseSchema?: z.ZodType;
6324
+ pathParamSchema?: z.ZodSchema;
6325
+ queryParamSchema?: z.ZodSchema;
6326
+ bodySchema?: z.ZodSchema;
6327
+ responseSchema?: z.ZodSchema;
5872
6328
  openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
5873
6329
  maxBodySize?: number;
5874
6330
  deprecated?: boolean;