@mastra/server 1.67.0-alpha.1 → 1.67.0-alpha.3

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 (191) hide show
  1. package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts +21 -0
  2. package/dist/{a2a-CW4FVjHx.cjs → a2a-DQ8GeDz4.cjs} +3 -3
  3. package/dist/{a2a-CW4FVjHx.cjs.map → a2a-DQ8GeDz4.cjs.map} +1 -1
  4. package/dist/{a2a-Di7S6YaM.js → a2a-DUBjstWk.js} +3 -3
  5. package/dist/{a2a-Di7S6YaM.js.map → a2a-DUBjstWk.js.map} +1 -1
  6. package/dist/{api-schema-manifest-Cpw4nIVv.cjs → api-schema-manifest-1LriOYQM.cjs} +3 -3
  7. package/dist/{api-schema-manifest-Cpw4nIVv.cjs.map → api-schema-manifest-1LriOYQM.cjs.map} +1 -1
  8. package/dist/{api-schema-manifest-BkKHbFJi.js → api-schema-manifest-DNk8B4kw.js} +3 -3
  9. package/dist/{api-schema-manifest-BkKHbFJi.js.map → api-schema-manifest-DNk8B4kw.js.map} +1 -1
  10. package/dist/{background-tasks-Bl7Hn8h9.js → background-tasks-B4yoNDY_.js} +2 -2
  11. package/dist/{background-tasks-Bl7Hn8h9.js.map → background-tasks-B4yoNDY_.js.map} +1 -1
  12. package/dist/{background-tasks-BJhziawt.cjs → background-tasks-BarPeyNJ.cjs} +2 -2
  13. package/dist/{background-tasks-BJhziawt.cjs.map → background-tasks-BarPeyNJ.cjs.map} +1 -1
  14. package/dist/{builder-registry-Bcpr74BB.js → builder-registry-DI3Ysclf.js} +3 -3
  15. package/dist/{builder-registry-Bcpr74BB.js.map → builder-registry-DI3Ysclf.js.map} +1 -1
  16. package/dist/{builder-registry-BINitddV.cjs → builder-registry-r71f11_E.cjs} +3 -3
  17. package/dist/{builder-registry-BINitddV.cjs.map → builder-registry-r71f11_E.cjs.map} +1 -1
  18. package/dist/{channels-CnEljW9e.js → channels-B_K1oJ7S.js} +2 -2
  19. package/dist/{channels-CnEljW9e.js.map → channels-B_K1oJ7S.js.map} +1 -1
  20. package/dist/{channels-D8e5YDTn.cjs → channels-CGDo0Prv.cjs} +2 -2
  21. package/dist/{channels-D8e5YDTn.cjs.map → channels-CGDo0Prv.cjs.map} +1 -1
  22. package/dist/{conversations-D89Io31L.js → conversations-Bs-k9f9N.js} +2 -2
  23. package/dist/{conversations-D89Io31L.js.map → conversations-Bs-k9f9N.js.map} +1 -1
  24. package/dist/{conversations-DJybpnE5.cjs → conversations-o3AEJjRo.cjs} +2 -2
  25. package/dist/{conversations-DJybpnE5.cjs.map → conversations-o3AEJjRo.cjs.map} +1 -1
  26. package/dist/{dist-B8gYiHIX.js → dist-Bw-Zrv4_.js} +173 -27
  27. package/dist/{dist-B8gYiHIX.js.map → dist-Bw-Zrv4_.js.map} +1 -1
  28. package/dist/{dist-CaVro31X.cjs → dist-Du9y2ur5.cjs} +177 -31
  29. package/dist/{dist-CaVro31X.cjs.map → dist-Du9y2ur5.cjs.map} +1 -1
  30. package/dist/docs/SKILL.md +1 -1
  31. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  32. package/dist/{dynamic-workflows-Cn9MXevC.js → dynamic-workflows-C3DXgmSP.js} +2 -2
  33. package/dist/{dynamic-workflows-Cn9MXevC.js.map → dynamic-workflows-C3DXgmSP.js.map} +1 -1
  34. package/dist/{dynamic-workflows-DSg9_yec.cjs → dynamic-workflows-DeUG3lA2.cjs} +2 -2
  35. package/dist/{dynamic-workflows-DSg9_yec.cjs.map → dynamic-workflows-DeUG3lA2.cjs.map} +1 -1
  36. package/dist/{editor-builder-DeFo8Kl5.cjs → editor-builder-DFh_-7Id.cjs} +2 -2
  37. package/dist/{editor-builder-DeFo8Kl5.cjs.map → editor-builder-DFh_-7Id.cjs.map} +1 -1
  38. package/dist/{editor-builder-DzpPA6dp.js → editor-builder-QRcP8-SQ.js} +2 -2
  39. package/dist/{editor-builder-DzpPA6dp.js.map → editor-builder-QRcP8-SQ.js.map} +1 -1
  40. package/dist/{memory-CVODqy7m.cjs → memory-CE6rUGmo.cjs} +22 -1
  41. package/dist/memory-CE6rUGmo.cjs.map +1 -0
  42. package/dist/{memory-CjWJYFVI.js → memory-Cp3Yo-OX.js} +11 -2
  43. package/dist/{memory-CjWJYFVI.js.map → memory-Cp3Yo-OX.js.map} +1 -1
  44. package/dist/{observability-new-endpoints-BNPjbEXf.cjs → observability-new-endpoints-I2OxQzfY.cjs} +2 -2
  45. package/dist/{observability-new-endpoints-BNPjbEXf.cjs.map → observability-new-endpoints-I2OxQzfY.cjs.map} +1 -1
  46. package/dist/{observability-new-endpoints-CSiMF_Kf.js → observability-new-endpoints-pIq_OWa8.js} +2 -2
  47. package/dist/{observability-new-endpoints-CSiMF_Kf.js.map → observability-new-endpoints-pIq_OWa8.js.map} +1 -1
  48. package/dist/{route-builder-BveLN9LU.js → route-builder-BukcT_Kp.js} +2 -2
  49. package/dist/{route-builder-BveLN9LU.js.map → route-builder-BukcT_Kp.js.map} +1 -1
  50. package/dist/{route-builder-C8n4ugUf.cjs → route-builder-DupY8fkI.cjs} +4 -4
  51. package/dist/{route-builder-C8n4ugUf.cjs.map → route-builder-DupY8fkI.cjs.map} +1 -1
  52. package/dist/{routes-Dgd2S9av.cjs → routes-9i4gAixo.cjs} +11 -10
  53. package/dist/routes-9i4gAixo.cjs.map +1 -0
  54. package/dist/{routes-DCwOOz84.js → routes-DXUcYEc6.js} +12 -11
  55. package/dist/routes-DXUcYEc6.js.map +1 -0
  56. package/dist/{schedules-BcEUUuX_.js → schedules-BzymFGR_.js} +2 -2
  57. package/dist/{schedules-BcEUUuX_.js.map → schedules-BzymFGR_.js.map} +1 -1
  58. package/dist/{schedules-fj9U0_tA.cjs → schedules-DaEv0Usj.cjs} +2 -2
  59. package/dist/{schedules-fj9U0_tA.cjs.map → schedules-DaEv0Usj.cjs.map} +1 -1
  60. package/dist/schema-BF_cZG0Y.js +2 -0
  61. package/dist/schema-C7CvwM1d.cjs +1 -0
  62. package/dist/{schema-Bv9OdW1f-DLSJSqQv.js → schema-D_ikovK6-BzTeMhWf.js} +467 -131
  63. package/dist/schema-D_ikovK6-BzTeMhWf.js.map +1 -0
  64. package/dist/{schema-Bv9OdW1f-CxTiW8RD.cjs → schema-D_ikovK6-DQrOVw5N.cjs} +467 -131
  65. package/dist/schema-D_ikovK6-DQrOVw5N.cjs.map +1 -0
  66. package/dist/server/handlers/a2a.cjs +1 -1
  67. package/dist/server/handlers/a2a.js +1 -1
  68. package/dist/server/handlers/agent-builder.cjs +3 -3
  69. package/dist/server/handlers/agent-builder.js +3 -3
  70. package/dist/server/handlers/agent-controller.cjs +3 -3
  71. package/dist/server/handlers/agent-controller.js +3 -3
  72. package/dist/server/handlers/agent-versions.cjs +2 -2
  73. package/dist/server/handlers/agent-versions.js +2 -2
  74. package/dist/server/handlers/agents.cjs +6 -6
  75. package/dist/server/handlers/agents.js +5 -5
  76. package/dist/server/handlers/auth.cjs +1 -1
  77. package/dist/server/handlers/auth.js +1 -1
  78. package/dist/server/handlers/background-tasks.cjs +1 -1
  79. package/dist/server/handlers/background-tasks.js +1 -1
  80. package/dist/server/handlers/builder-registry.cjs +1 -1
  81. package/dist/server/handlers/builder-registry.js +1 -1
  82. package/dist/server/handlers/channels.cjs +1 -1
  83. package/dist/server/handlers/channels.js +1 -1
  84. package/dist/server/handlers/conversations.cjs +3 -3
  85. package/dist/server/handlers/conversations.js +3 -3
  86. package/dist/server/handlers/datasets.cjs +1 -1
  87. package/dist/server/handlers/datasets.js +1 -1
  88. package/dist/server/handlers/dynamic-workflows.cjs +1 -1
  89. package/dist/server/handlers/dynamic-workflows.js +1 -1
  90. package/dist/server/handlers/editor-builder.cjs +1 -1
  91. package/dist/server/handlers/editor-builder.js +1 -1
  92. package/dist/server/handlers/favorites-enrichment.cjs +1 -1
  93. package/dist/server/handlers/favorites-enrichment.js +1 -1
  94. package/dist/server/handlers/logs.cjs +2 -2
  95. package/dist/server/handlers/logs.js +2 -2
  96. package/dist/server/handlers/mcp-client-versions.cjs +2 -2
  97. package/dist/server/handlers/mcp-client-versions.js +2 -2
  98. package/dist/server/handlers/mcp.cjs +1 -1
  99. package/dist/server/handlers/mcp.js +1 -1
  100. package/dist/server/handlers/memory.cjs +64 -3
  101. package/dist/server/handlers/memory.cjs.map +1 -1
  102. package/dist/server/handlers/memory.d.ts +47 -0
  103. package/dist/server/handlers/memory.d.ts.map +1 -1
  104. package/dist/server/handlers/memory.js +64 -4
  105. package/dist/server/handlers/memory.js.map +1 -1
  106. package/dist/server/handlers/observability-new-endpoints.cjs +1 -1
  107. package/dist/server/handlers/observability-new-endpoints.js +1 -1
  108. package/dist/server/handlers/observability-shared.cjs +1 -1
  109. package/dist/server/handlers/observability-shared.js +1 -1
  110. package/dist/server/handlers/observability.cjs +2 -2
  111. package/dist/server/handlers/observability.js +2 -2
  112. package/dist/server/handlers/plans.cjs +2 -2
  113. package/dist/server/handlers/plans.js +2 -2
  114. package/dist/server/handlers/processor-providers.cjs +1 -1
  115. package/dist/server/handlers/processor-providers.js +1 -1
  116. package/dist/server/handlers/processors.cjs +1 -1
  117. package/dist/server/handlers/processors.js +1 -1
  118. package/dist/server/handlers/prompt-block-versions.cjs +2 -2
  119. package/dist/server/handlers/prompt-block-versions.js +2 -2
  120. package/dist/server/handlers/responses.cjs +2 -2
  121. package/dist/server/handlers/responses.js +2 -2
  122. package/dist/server/handlers/responses.storage.cjs +1 -1
  123. package/dist/server/handlers/responses.storage.js +1 -1
  124. package/dist/server/handlers/schedules.cjs +1 -1
  125. package/dist/server/handlers/schedules.js +1 -1
  126. package/dist/server/handlers/scorer-versions.cjs +2 -2
  127. package/dist/server/handlers/scorer-versions.js +2 -2
  128. package/dist/server/handlers/scores.cjs +1 -1
  129. package/dist/server/handlers/scores.js +1 -1
  130. package/dist/server/handlers/stored-agent-favorites.cjs +3 -3
  131. package/dist/server/handlers/stored-agent-favorites.js +3 -3
  132. package/dist/server/handlers/stored-agents.cjs +3 -3
  133. package/dist/server/handlers/stored-agents.js +3 -3
  134. package/dist/server/handlers/stored-mcp-clients.cjs +2 -2
  135. package/dist/server/handlers/stored-mcp-clients.js +2 -2
  136. package/dist/server/handlers/stored-prompt-blocks.cjs +2 -2
  137. package/dist/server/handlers/stored-prompt-blocks.js +2 -2
  138. package/dist/server/handlers/stored-scorers.cjs +2 -2
  139. package/dist/server/handlers/stored-scorers.js +2 -2
  140. package/dist/server/handlers/stored-skill-favorites.cjs +3 -3
  141. package/dist/server/handlers/stored-skill-favorites.js +3 -3
  142. package/dist/server/handlers/stored-skills.cjs +3 -3
  143. package/dist/server/handlers/stored-skills.js +3 -3
  144. package/dist/server/handlers/stored-workspaces.cjs +2 -2
  145. package/dist/server/handlers/stored-workspaces.js +2 -2
  146. package/dist/server/handlers/system.cjs +2 -2
  147. package/dist/server/handlers/system.js +2 -2
  148. package/dist/server/handlers/tool-providers.cjs +1 -1
  149. package/dist/server/handlers/tool-providers.js +1 -1
  150. package/dist/server/handlers/tools.cjs +6 -6
  151. package/dist/server/handlers/tools.js +5 -5
  152. package/dist/server/handlers/utils.cjs +2 -1
  153. package/dist/server/handlers/utils.d.ts +7 -0
  154. package/dist/server/handlers/utils.d.ts.map +1 -1
  155. package/dist/server/handlers/utils.js +2 -2
  156. package/dist/server/handlers/validate-agent-instructions.cjs +1 -1
  157. package/dist/server/handlers/validate-agent-instructions.js +1 -1
  158. package/dist/server/handlers/vector.cjs +1 -1
  159. package/dist/server/handlers/vector.js +1 -1
  160. package/dist/server/handlers/workflows.cjs +3 -3
  161. package/dist/server/handlers/workflows.js +3 -3
  162. package/dist/server/handlers/workspace.cjs +1 -1
  163. package/dist/server/handlers/workspace.js +1 -1
  164. package/dist/server/handlers.cjs +2 -2
  165. package/dist/server/handlers.js +2 -2
  166. package/dist/server/schemas/index.cjs +4 -2
  167. package/dist/server/schemas/index.js +3 -3
  168. package/dist/server/schemas/memory.d.ts +18 -0
  169. package/dist/server/schemas/memory.d.ts.map +1 -1
  170. package/dist/server/server-adapter/index.cjs +3 -3
  171. package/dist/server/server-adapter/index.js +3 -3
  172. package/dist/server/server-adapter/routes/memory.d.ts +46 -0
  173. package/dist/server/server-adapter/routes/memory.d.ts.map +1 -1
  174. package/dist/{utils-DJMUhfvY.cjs → utils-BtkczLrA.cjs} +17 -2
  175. package/dist/utils-BtkczLrA.cjs.map +1 -0
  176. package/dist/{utils-Hz8Hc2cd.js → utils-CMWGBd0O.js} +12 -3
  177. package/dist/utils-CMWGBd0O.js.map +1 -0
  178. package/dist/{utils-B2vd77Fi.js → utils-Duk4hfT_.js} +3 -3
  179. package/dist/{utils-B2vd77Fi.js.map → utils-Duk4hfT_.js.map} +1 -1
  180. package/dist/{utils-CmYnjLcY.cjs → utils-WcR0QSUB.cjs} +5 -5
  181. package/dist/{utils-CmYnjLcY.cjs.map → utils-WcR0QSUB.cjs.map} +1 -1
  182. package/package.json +7 -7
  183. package/dist/memory-CVODqy7m.cjs.map +0 -1
  184. package/dist/routes-DCwOOz84.js.map +0 -1
  185. package/dist/routes-Dgd2S9av.cjs.map +0 -1
  186. package/dist/schema-Bv9OdW1f-CxTiW8RD.cjs.map +0 -1
  187. package/dist/schema-Bv9OdW1f-DLSJSqQv.js.map +0 -1
  188. package/dist/schema-CGeYTFwm.js +0 -2
  189. package/dist/schema-CNKnRmv1.cjs +0 -1
  190. package/dist/utils-DJMUhfvY.cjs.map +0 -1
  191. package/dist/utils-Hz8Hc2cd.js.map +0 -1
@@ -17,6 +17,13 @@ export declare function parseFilters(filters: string | string[] | undefined): Re
17
17
  * over client-provided values for security.
18
18
  */
19
19
  export declare function getEffectiveResourceId(requestContext: RequestContext | undefined, clientResourceId: string | undefined): string | undefined;
20
+ /**
21
+ * Returns the resource id resolved from the request context alone (set via
22
+ * `mapUserToResourceId` or the `x-resource-id` header), ignoring any
23
+ * client-provided value. Its presence indicates a resource-scoped caller;
24
+ * its absence indicates a privileged/service context.
25
+ */
26
+ export declare function getContextResourceId(requestContext: RequestContext | undefined): string | undefined;
20
27
  /**
21
28
  * Ensures a memory request has a resolvable resource ID. The body's
22
29
  * `memory.resource` is optional so authenticated setups can rely on the
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAOtD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAWzD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,QAMnF;AAED,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,YAAY,GAAE,MAAY,EAC1B,GAAG,GAAE,MAAa,GACjB,MAAM,GAAG,KAAK,CAShB;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAUvG;AAMD;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,cAAc,GAAG,SAAS,EAC1C,gBAAgB,EAAE,MAAM,GAAG,SAAS,GACnC,MAAM,GAAG,SAAS,CAGpB;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,mBAAmB,EAAE,MAAM,GAAG,SAAS,GACtC,OAAO,CAAC,mBAAmB,IAAI,MAAM,CAOvC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,cAAc,EAAE,cAAc,GAAG,SAAS,EAC1C,cAAc,EAAE,MAAM,GAAG,SAAS,GACjC,MAAM,GAAG,SAAS,CAGpB;AAED;;;;GAIG;AACH,wBA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B,MAAM,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;IAC/C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,wBAAwB,CAAC;CACvC,GAAG,OAAO,CAAC,IAAI,CAAC,CAqBhB;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,GAAG,EAAE;IAAE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,EACtD,mBAAmB,EAAE,MAAM,GAAG,SAAS,GACtC,OAAO,CAAC,IAAI,CAAC,CAIf"}
@@ -1,2 +1,2 @@
1
- import { a as parsePerPage, c as validateBody, i as parseFilters, l as validateRunOwnership, n as getEffectiveResourceId, o as requireEffectiveResourceId, r as getEffectiveThreadId, s as sanitizeBody, t as enforceThreadAccess, u as validateThreadOwnership } from "../../utils-Hz8Hc2cd.js";
2
- export { enforceThreadAccess, getEffectiveResourceId, getEffectiveThreadId, parseFilters, parsePerPage, requireEffectiveResourceId, sanitizeBody, validateBody, validateRunOwnership, validateThreadOwnership };
1
+ import { a as parseFilters, c as sanitizeBody, d as validateThreadOwnership, i as getEffectiveThreadId, l as validateBody, n as getContextResourceId, o as parsePerPage, r as getEffectiveResourceId, s as requireEffectiveResourceId, t as enforceThreadAccess, u as validateRunOwnership } from "../../utils-CMWGBd0O.js";
2
+ export { enforceThreadAccess, getContextResourceId, getEffectiveResourceId, getEffectiveThreadId, parseFilters, parsePerPage, requireEffectiveResourceId, sanitizeBody, validateBody, validateRunOwnership, validateThreadOwnership };
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../rolldown-runtime-Bd6kNlEP.cjs");
3
3
  const require_http_exception = require("../../http-exception-CKDHupKw.cjs");
4
- const require_utils = require("../../utils-CmYnjLcY.cjs");
4
+ const require_utils = require("../../utils-WcR0QSUB.cjs");
5
5
  //#region src/server/handlers/validate-agent-instructions.ts
6
6
  const UNPUBLISHED_REFERENCES_MESSAGE = "Unable to use unpublished referenced prompt blocks: {ids}. Publish these prompt blocks and try again.";
7
7
  /**
@@ -1,5 +1,5 @@
1
1
  import { t as HTTPException } from "../../http-exception-CyfxZB6W.js";
2
- import { i as getStoredResourceScope, n as assertStoredResourceScope } from "../../utils-B2vd77Fi.js";
2
+ import { i as getStoredResourceScope, n as assertStoredResourceScope } from "../../utils-Duk4hfT_.js";
3
3
  //#region src/server/handlers/validate-agent-instructions.ts
4
4
  const UNPUBLISHED_REFERENCES_MESSAGE = "Unable to use unpublished referenced prompt blocks: {ids}. Publish these prompt blocks and try again.";
5
5
  /**
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("../../rolldown-runtime-Bd6kNlEP.cjs");
3
3
  const require_http_exception = require("../../http-exception-CKDHupKw.cjs");
4
- const require_route_builder = require("../../route-builder-C8n4ugUf.cjs");
4
+ const require_route_builder = require("../../route-builder-DupY8fkI.cjs");
5
5
  const require_server_handlers_error = require("./error.cjs");
6
6
  const require_vectors = require("../../vectors-D6uZn2f1.cjs");
7
7
  let _mastra_core_llm = require("@mastra/core/llm");
@@ -1,6 +1,6 @@
1
1
  import { r as __exportAll } from "../../rolldown-runtime-maW3aOIk.js";
2
2
  import { t as HTTPException } from "../../http-exception-CyfxZB6W.js";
3
- import { n as createRoute } from "../../route-builder-BveLN9LU.js";
3
+ import { n as createRoute } from "../../route-builder-BukcT_Kp.js";
4
4
  import { handleError } from "./error.js";
5
5
  import { a as listEmbeddersResponseSchema, c as queryVectorsBodySchema, d as upsertVectorsResponseSchema, f as vectorIndexPathParams, i as describeIndexResponseSchema, l as queryVectorsResponseSchema, n as createIndexResponseSchema, o as listIndexesResponseSchema, p as vectorNamePathParams, r as deleteIndexResponseSchema, s as listVectorsResponseSchema, t as createIndexBodySchema, u as upsertVectorsBodySchema } from "../../vectors-Ck7Qu6yz.js";
6
6
  import { EMBEDDING_MODELS } from "@mastra/core/llm";
@@ -4,10 +4,10 @@ const require_http_exception = require("../../http-exception-CKDHupKw.cjs");
4
4
  const require_common = require("../../common-DQn8jX5T.cjs");
5
5
  const require_workflows = require("../../workflows-BNnfyZhn.cjs");
6
6
  const require_agents = require("../../agents-C3k-sZBO.cjs");
7
- const require_route_builder = require("../../route-builder-C8n4ugUf.cjs");
8
- const require_utils = require("../../utils-CmYnjLcY.cjs");
7
+ const require_route_builder = require("../../route-builder-DupY8fkI.cjs");
8
+ const require_utils = require("../../utils-WcR0QSUB.cjs");
9
9
  const require_server_handlers_error = require("./error.cjs");
10
- const require_utils$1 = require("../../utils-DJMUhfvY.cjs");
10
+ const require_utils$1 = require("../../utils-BtkczLrA.cjs");
11
11
  let zod_v4 = require("zod/v4");
12
12
  let _mastra_core_stream = require("@mastra/core/stream");
13
13
  //#region src/server/handlers/workflows.ts
@@ -3,10 +3,10 @@ import { t as HTTPException } from "../../http-exception-CyfxZB6W.js";
3
3
  import { l as runIdSchema, o as optionalRunIdSchema } from "../../common-5ZZuR6wj.js";
4
4
  import { _ as workflowRunCountsResponseSchema, a as observeWorkflowQuerySchema, b as workflowRunResultSchema, d as streamWorkflowBodySchema, f as timeTravelBodySchema, g as workflowInfoSchema, h as workflowIdPathParams, i as listWorkflowsResponseSchema, l as startAsyncWorkflowBodySchema, m as workflowExecutionResultSchema, n as createWorkflowRunResponseSchema, o as restartBodySchema, p as workflowControlResponseSchema, r as listWorkflowRunsQuerySchema, s as resumeBodySchema, t as createWorkflowRunBodySchema, v as workflowRunPathParams, x as workflowRunsResponseSchema, y as workflowRunResultQuerySchema } from "../../workflows-CUgR3bTL.js";
5
5
  import { K as streamResponseSchema } from "../../agents-AMeMJBI1.js";
6
- import { n as createRoute } from "../../route-builder-BveLN9LU.js";
7
- import { a as getWorkflowInfo, t as WorkflowRegistry } from "../../utils-B2vd77Fi.js";
6
+ import { n as createRoute } from "../../route-builder-BukcT_Kp.js";
7
+ import { a as getWorkflowInfo, t as WorkflowRegistry } from "../../utils-Duk4hfT_.js";
8
8
  import { handleError } from "./error.js";
9
- import { d as MastraFGAPermissions, l as validateRunOwnership, n as getEffectiveResourceId } from "../../utils-Hz8Hc2cd.js";
9
+ import { f as MastraFGAPermissions, r as getEffectiveResourceId, u as validateRunOwnership } from "../../utils-CMWGBd0O.js";
10
10
  import { z } from "zod/v4";
11
11
  import { createReplayStream } from "@mastra/core/stream";
12
12
  //#region src/server/handlers/workflows.ts
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("../../rolldown-runtime-Bd6kNlEP.cjs");
3
3
  const require_http_exception = require("../../http-exception-CKDHupKw.cjs");
4
- const require_route_builder = require("../../route-builder-C8n4ugUf.cjs");
4
+ const require_route_builder = require("../../route-builder-DupY8fkI.cjs");
5
5
  const require_server_handlers_error = require("./error.cjs");
6
6
  const require_workspace = require("../../workspace-Cz9hE2ei.cjs");
7
7
  let _mastra_core_features = require("@mastra/core/features");
@@ -1,6 +1,6 @@
1
1
  import { r as __exportAll } from "../../rolldown-runtime-maW3aOIk.js";
2
2
  import { t as HTTPException } from "../../http-exception-CyfxZB6W.js";
3
- import { n as createRoute } from "../../route-builder-BveLN9LU.js";
3
+ import { n as createRoute } from "../../route-builder-BukcT_Kp.js";
4
4
  import { handleError } from "./error.js";
5
5
  import { B as skillsShPopularQuerySchema, C as searchQuerySchema, D as searchSkillsResponseSchema, E as searchSkillsQuerySchema, G as skillsShSearchQuerySchema, H as skillsShPreviewResponseSchema, K as skillsShSearchResponseSchema, L as skillsShInstallBodySchema, M as skillReferencePathParams, N as skillReferenceResponseSchema, O as skillDisambiguationQuerySchema, Q as workspaceInfoResponseSchema, R as skillsShInstallResponseSchema, U as skillsShRemoveBodySchema, V as skillsShPreviewQuerySchema, W as skillsShRemoveResponseSchema, X as skillsShUpdateResponseSchema, Y as skillsShUpdateBodySchema, Z as workspaceIdPathParams, _ as indexBodySchema, a as fsListResponseSchema, b as listSkillsResponseSchema, d as fsStatQuerySchema, f as fsStatResponseSchema, g as getSkillResponseSchema, i as fsListQuerySchema, j as skillNamePathParams, l as fsReadQuerySchema, m as fsWriteResponseSchema, n as fsDeleteQuerySchema, o as fsMkdirBodySchema, p as fsWriteBodySchema, r as fsDeleteResponseSchema, s as fsMkdirResponseSchema, u as fsReadResponseSchema, v as indexResponseSchema, w as searchResponseSchema, x as listWorkspacesResponseSchema, y as listReferencesResponseSchema, z as skillsShListResponseSchema } from "../../workspace-S5GiJ3Nx.js";
6
6
  import { coreFeatures } from "@mastra/core/features";
@@ -5,7 +5,7 @@ const require_server_handlers_workflows = require("./handlers/workflows.cjs");
5
5
  const require_server_handlers_agent_builder = require("./handlers/agent-builder.cjs");
6
6
  const require_server_handlers_agents = require("./handlers/agents.cjs");
7
7
  const require_server_handlers_plans = require("./handlers/plans.cjs");
8
- const require_a2a = require("../a2a-CW4FVjHx.cjs");
8
+ const require_a2a = require("../a2a-DQ8GeDz4.cjs");
9
9
  const require_server_handlers_conversations = require("./handlers/conversations.cjs");
10
10
  const require_server_handlers_logs = require("./handlers/logs.cjs");
11
11
  const require_server_handlers_mcp = require("./handlers/mcp.cjs");
@@ -17,7 +17,7 @@ const require_server_handlers_tools = require("./handlers/tools.cjs");
17
17
  const require_server_handlers_workspace = require("./handlers/workspace.cjs");
18
18
  const require_server_handlers_vector = require("./handlers/vector.cjs");
19
19
  const require_server_handlers_voice = require("./handlers/voice.cjs");
20
- const require_dynamic_workflows = require("../dynamic-workflows-DSg9_yec.cjs");
20
+ const require_dynamic_workflows = require("../dynamic-workflows-DeUG3lA2.cjs");
21
21
  Object.defineProperty(exports, "a2a", {
22
22
  enumerable: true,
23
23
  get: function() {
@@ -3,7 +3,7 @@ import { t as workflows_exports } from "./handlers/workflows.js";
3
3
  import { t as agent_builder_exports } from "./handlers/agent-builder.js";
4
4
  import { t as agents_exports } from "./handlers/agents.js";
5
5
  import { t as plans_exports } from "./handlers/plans.js";
6
- import { r as a2a_exports } from "../a2a-Di7S6YaM.js";
6
+ import { r as a2a_exports } from "../a2a-DUBjstWk.js";
7
7
  import { t as conversations_exports } from "./handlers/conversations.js";
8
8
  import { t as logs_exports } from "./handlers/logs.js";
9
9
  import { t as mcp_exports } from "./handlers/mcp.js";
@@ -15,5 +15,5 @@ import { t as tools_exports } from "./handlers/tools.js";
15
15
  import { t as workspace_exports } from "./handlers/workspace.js";
16
16
  import { t as vector_exports } from "./handlers/vector.js";
17
17
  import { t as voice_exports } from "./handlers/voice.js";
18
- import { a as dynamic_workflows_exports } from "../dynamic-workflows-Cn9MXevC.js";
18
+ import { a as dynamic_workflows_exports } from "../dynamic-workflows-C3DXgmSP.js";
19
19
  export { a2a_exports as a2a, agent_builder_exports as agentBuilder, agents_exports as agents, conversations_exports as conversations, dynamic_workflows_exports as dynamicWorkflows, formatZodError, isZodError, logs_exports as logs, mcp_exports as mcp, memory_exports as memory, observability_exports as observability, plans_exports as plans, responses_exports as responses, scores_exports as scores, tools_exports as tools, vector_exports as vector, voice_exports as voice, workflows_exports as workflows, workspace_exports as workspace };
@@ -13,9 +13,9 @@ const require_tool_providers = require("../../tool-providers-DFQkhO4R.cjs");
13
13
  const require_workspace = require("../../workspace-Cz9hE2ei.cjs");
14
14
  const require_a2a = require("../../a2a-MPoM5lzS.cjs");
15
15
  const require_auth = require("../../auth-B8fQdEg-.cjs");
16
- const require_memory = require("../../memory-CVODqy7m.cjs");
16
+ const require_memory = require("../../memory-CE6rUGmo.cjs");
17
17
  const require_responses = require("../../responses-CKNdSRkS.cjs");
18
- const require_conversations = require("../../conversations-DJybpnE5.cjs");
18
+ const require_conversations = require("../../conversations-o3AEJjRo.cjs");
19
19
  const require_logs = require("../../logs-BDuGFqxu.cjs");
20
20
  const require_mcp = require("../../mcp-Buvksst5.cjs");
21
21
  const require_scores = require("../../scores-C_Au9jSw.cjs");
@@ -524,6 +524,8 @@ exports.toolsConfigSchema = require_stored_agents.toolsConfigSchema;
524
524
  exports.tracingOptionsSchema = require_common.tracingOptionsSchema;
525
525
  exports.transcribeSpeechBodySchema = require_routes.transcribeSpeechBodySchema;
526
526
  exports.transcribeSpeechResponseSchema = require_routes.transcribeSpeechResponseSchema;
527
+ exports.transferThreadBodySchema = require_memory.transferThreadBodySchema;
528
+ exports.transferThreadResponseSchema = require_memory.transferThreadResponseSchema;
527
529
  exports.triggerExperimentBodySchema = require_datasets.triggerExperimentBodySchema;
528
530
  exports.typedPermissive = require_common.typedPermissive;
529
531
  exports.updateAgentModelBodySchema = require_agents.updateAgentModelBodySchema;
@@ -11,9 +11,9 @@ import { C as toolProviderConnectionPathParams, D as toolSlugPathParams, E as to
11
11
  import { A as skillMetadataWithPathSchema, B as skillsShPopularQuerySchema, C as searchQuerySchema, D as searchSkillsResponseSchema, E as searchSkillsQuerySchema, F as skillSearchResultSchema, G as skillsShSearchQuerySchema, H as skillsShPreviewResponseSchema, I as skillSourceSchema, J as skillsShSourceSchema, K as skillsShSearchResponseSchema, L as skillsShInstallBodySchema, M as skillReferencePathParams, N as skillReferenceResponseSchema, O as skillDisambiguationQuerySchema, P as skillSchema, Q as workspaceInfoResponseSchema, R as skillsShInstallResponseSchema, S as mountInfoSchema, T as searchResultSchema, U as skillsShRemoveBodySchema, V as skillsShPreviewQuerySchema, W as skillsShRemoveResponseSchema, X as skillsShUpdateResponseSchema, Y as skillsShUpdateBodySchema, Z as workspaceIdPathParams, _ as indexBodySchema, a as fsListResponseSchema, b as listSkillsResponseSchema, c as fsPathParams, d as fsStatQuerySchema, f as fsStatResponseSchema, g as getSkillResponseSchema, h as getAgentSkillResponseSchema, i as fsListQuerySchema, j as skillNamePathParams, k as skillMetadataSchema, l as fsReadQuerySchema, m as fsWriteResponseSchema, n as fsDeleteQuerySchema, o as fsMkdirBodySchema, p as fsWriteBodySchema, q as skillsShSkillSchema, r as fsDeleteResponseSchema, s as fsMkdirResponseSchema, t as fileEntrySchema, u as fsReadResponseSchema, v as indexResponseSchema, w as searchResponseSchema, x as listWorkspacesResponseSchema, y as listReferencesResponseSchema, z as skillsShListResponseSchema } from "../../workspace-S5GiJ3Nx.js";
12
12
  import { a as agentExecutionResponseSchema, c as taskResponseSchema, i as agentExecutionBodySchema, n as a2aTaskPathParams, o as messageSendBodySchema, r as agentCardResponseSchema, s as taskQueryBodySchema, t as a2aAgentIdPathParams } from "../../a2a-8C4O2dVJ.js";
13
13
  import { _ as ssoLoginQuerySchema, a as credentialsResponseSchema, c as currentUserResponseSchema, d as permissionPatternsResponseSchema, f as publicCapabilitiesSchema, g as ssoConfigSchema, h as ssoCallbackResponseSchema, i as capabilityFlagsSchema, l as loginConfigSchema, m as ssoCallbackQuerySchema, n as authenticatedUserSchema, o as credentialsSignInBodySchema, p as refreshResponseSchema, r as capabilitiesResponseSchema, s as credentialsSignUpBodySchema, t as authenticatedCapabilitiesSchema, u as logoutResponseSchema, v as ssoLoginResponseSchema, y as userAccessSchema } from "../../auth-CZFXpwba.js";
14
- import { A as listThreadsNetworkQuerySchema, B as searchMemoryQuerySchema, C as getThreadByIdResponseSchema, D as listMessagesNetworkQuerySchema, E as includeSchema, F as messageOrderBySchema, G as updateWorkingMemoryBodySchema, H as threadIdPathParams, I as optionalAgentIdQuerySchema, K as updateWorkingMemoryResponseSchema, L as saveMessagesBodySchema, M as listThreadsResponseSchema, N as memoryConfigResponseSchema, O as listMessagesQuerySchema, P as memoryStatusResponseSchema, R as saveMessagesNetworkQuerySchema, S as getThreadByIdQuerySchema, T as getWorkingMemoryResponseSchema, U as updateThreadBodySchema, V as searchMemoryResponseSchema, W as updateThreadNetworkQuerySchema, _ as getMemoryStatusNetworkQuerySchema, a as cloneThreadResponseSchema, b as getObservationalMemoryResponseSchema, c as deleteMessagesBodySchema, d as deleteMessagesResponseSchema, f as deleteThreadNetworkQuerySchema, g as getMemoryConfigQuerySchema, h as filterSchema, i as cloneThreadBodySchema, j as listThreadsQuerySchema, k as listMessagesResponseSchema, l as deleteMessagesNetworkQuerySchema, m as deleteThreadResponseSchema, n as awaitBufferStatusBodySchema, o as createThreadBodySchema, p as deleteThreadQuerySchema, r as awaitBufferStatusResponseSchema, s as createThreadNetworkQuerySchema, t as agentIdQuerySchema, u as deleteMessagesQuerySchema, v as getMemoryStatusQuerySchema, w as getWorkingMemoryQuerySchema, x as getThreadByIdNetworkQuerySchema, y as getObservationalMemoryQuerySchema, z as saveMessagesResponseSchema } from "../../memory-CjWJYFVI.js";
14
+ import { A as listThreadsNetworkQuerySchema, B as searchMemoryQuerySchema, C as getThreadByIdResponseSchema, D as listMessagesNetworkQuerySchema, E as includeSchema, F as messageOrderBySchema, G as updateThreadBodySchema, H as threadIdPathParams, I as optionalAgentIdQuerySchema, J as updateWorkingMemoryResponseSchema, K as updateThreadNetworkQuerySchema, L as saveMessagesBodySchema, M as listThreadsResponseSchema, N as memoryConfigResponseSchema, O as listMessagesQuerySchema, P as memoryStatusResponseSchema, R as saveMessagesNetworkQuerySchema, S as getThreadByIdQuerySchema, T as getWorkingMemoryResponseSchema, U as transferThreadBodySchema, V as searchMemoryResponseSchema, W as transferThreadResponseSchema, _ as getMemoryStatusNetworkQuerySchema, a as cloneThreadResponseSchema, b as getObservationalMemoryResponseSchema, c as deleteMessagesBodySchema, d as deleteMessagesResponseSchema, f as deleteThreadNetworkQuerySchema, g as getMemoryConfigQuerySchema, h as filterSchema, i as cloneThreadBodySchema, j as listThreadsQuerySchema, k as listMessagesResponseSchema, l as deleteMessagesNetworkQuerySchema, m as deleteThreadResponseSchema, n as awaitBufferStatusBodySchema, o as createThreadBodySchema, p as deleteThreadQuerySchema, q as updateWorkingMemoryBodySchema, r as awaitBufferStatusResponseSchema, s as createThreadNetworkQuerySchema, t as agentIdQuerySchema, u as deleteMessagesQuerySchema, v as getMemoryStatusQuerySchema, w as getWorkingMemoryQuerySchema, x as getThreadByIdNetworkQuerySchema, y as getObservationalMemoryQuerySchema, z as saveMessagesResponseSchema } from "../../memory-Cp3Yo-OX.js";
15
15
  import { _ as responseToolSchema, a as deleteResponseSchema, c as responseInputTextContentSchema, d as responseOutputFunctionCallOutputSchema, f as responseOutputFunctionCallSchema, g as responseTextFormatSchema, h as responseOutputTextSchema, i as createResponseBodySchema, l as responseInputTextPartSchema, m as responseOutputMessageSchema, n as conversationItemSchema, o as responseIdPathParams, p as responseOutputItemSchema, r as conversationMessageContentSchema, s as responseInputMessageSchema, t as conversationItemMessageSchema, u as responseObjectSchema, v as responseUsageSchema } from "../../responses-DJNJgCTg.js";
16
- import { a as createConversationBodySchema, i as conversationObjectSchema, n as conversationIdPathParams, r as conversationItemsListSchema, t as conversationDeletedSchema } from "../../conversations-D89Io31L.js";
16
+ import { a as createConversationBodySchema, i as conversationObjectSchema, n as conversationIdPathParams, r as conversationItemsListSchema, t as conversationDeletedSchema } from "../../conversations-Bs-k9f9N.js";
17
17
  import { n as listLogsQuerySchema, r as listLogsResponseSchema, t as listLogTransportsResponseSchema } from "../../logs-Cz5NiwGP.js";
18
18
  import { _ as serverInfoSchema, a as listMcpServerToolsResponseSchema, f as mcpServerToolPathParams, g as serverDetailSchema, i as jsonRpcErrorSchema, l as mcpServerDetailPathParams, n as executeToolResponseSchema$1, o as listMcpServersQuerySchema, p as mcpToolInfoSchema, r as getMcpServerDetailQuerySchema, s as listMcpServersResponseSchema, t as executeToolBodySchema$1, u as mcpServerIdPathParams, v as versionDetailSchema } from "../../mcp-oOFVSK8L.js";
19
19
  import { a as listScoresByScorerIdQuerySchema, c as scorerEntrySchema, i as listScoresByRunIdQuerySchema, l as scorerIdPathParams, n as listScorersResponseSchema, o as saveScoreBodySchema, r as listScoresByEntityIdQuerySchema, s as saveScoreResponseSchema, t as entityPathParams, u as scoresWithPaginationResponseSchema } from "../../scores-B1IdMcDj.js";
@@ -32,4 +32,4 @@ import { a as listStoredPromptBlocksQuerySchema, c as storedPromptBlockSchema, i
32
32
  import { a as listStoredScorersQuerySchema, c as storedScorerSchema, i as getStoredScorerResponseSchema, l as updateStoredScorerBodySchema, n as createStoredScorerResponseSchema, o as listStoredScorersResponseSchema, r as deleteStoredScorerResponseSchema, s as storedScorerIdPathParams, t as createStoredScorerBodySchema, u as updateStoredScorerResponseSchema } from "../../stored-scorers-BA4suzgn.js";
33
33
  import { a as deleteStoredSkillResponseSchema, c as listStoredSkillsResponseSchema, d as readSkillOrigin, f as skillOriginSchema, g as updateStoredSkillResponseSchema, h as updateStoredSkillBodySchema, i as createStoredSkillResponseSchema, l as publishStoredSkillBodySchema, m as storedSkillSchema, n as buildOriginMetadata, o as getStoredSkillResponseSchema, p as storedSkillIdPathParams, r as createStoredSkillBodySchema, s as listStoredSkillsQuerySchema, t as SKILL_ORIGIN_METADATA_KEY, u as publishStoredSkillResponseSchema } from "../../stored-skills-JTWbMybs.js";
34
34
  import { a as editorSourceSchema, c as observabilityStorageCapabilitiesSchema, i as editorSourceCapabilitiesSchema, l as systemPackagesResponseSchema, n as apiSchemaManifestRouteSchema, o as mastraPackageSchema, r as apiSchemaResponseShapeSchema, s as observabilityRuntimeStrategySchema, t as apiSchemaManifestResponseSchema } from "../../system-DT2JfUun.js";
35
- export { SKILL_ORIGIN_METADATA_KEY, agentExecutionBodySchema as a2aAgentExecutionBodySchema, a2aAgentIdPathParams, a2aTaskPathParams, abortAgentThreadBodySchema, abortAgentThreadResponseSchema, actionIdPathParams, actionRunPathParams, activateMCPClientVersionResponseSchema, activatePromptBlockVersionResponseSchema, activateScorerVersionResponseSchema, activateVersionResponseSchema, addItemBodySchema, agentCardResponseSchema, agentConfigurationSchema, agentExecutionBodySchema$1 as agentExecutionBodySchema, agentExecutionLegacyBodySchema, agentExecutionResponseSchema, agentFeaturesSchema, agentIdPathParams, agentIdQuerySchema, agentModelsSchema, agentPlanQuerySchema, agentPlanResponseSchema, agentSkillPathParams, agentToolPathParams, agentVersionPathParams, agentVersionQuerySchema, agentVersionSchema, apiSchemaManifestResponseSchema, apiSchemaManifestRouteSchema, apiSchemaResponseShapeSchema, approveNetworkToolCallBodySchema, approveToolCallBodySchema, authStatusToolProviderResponseSchema, authenticatedCapabilitiesSchema, authenticatedUserSchema, authorizeToolProviderBodySchema, authorizeToolProviderResponseSchema, awaitBufferStatusBodySchema, awaitBufferStatusResponseSchema, baseLogMessageSchema, batchDeleteItemsBodySchema, batchDeleteItemsResponseSchema, batchInsertItemsBodySchema, batchInsertItemsResponseSchema, buildOriginMetadata, builderAvailableModelsResponseSchema, builderModelPolicySchema, builderPickerSchema, builderSettingsResponseSchema, capabilitiesResponseSchema, capabilityFlagsSchema, cloneThreadBodySchema, cloneThreadResponseSchema, clusterFailuresBodySchema, clusterFailuresResponseSchema, compareExperimentsBodySchema, compareMCPClientVersionsQuerySchema, compareMCPClientVersionsResponseSchema, comparePromptBlockVersionsQuerySchema, comparePromptBlockVersionsResponseSchema, compareScorerVersionsQuerySchema, compareScorerVersionsResponseSchema, compareVersionsQuerySchema, compareVersionsResponseSchema, comparisonResponseSchema, conditionalFieldSchema, connectionSchema, connectionScopeSchema, connectionStatusToolProviderBodySchema, connectionStatusToolProviderResponseSchema, connectionUsageQuerySchema, connectionUsageResponseSchema, conversationDeletedSchema, conversationIdPathParams, conversationItemMessageSchema, conversationItemSchema, conversationItemsListSchema, conversationMessageContentSchema, conversationObjectSchema, coreMessageSchema, createCombinedPaginationSchema, createCompareVersionsResponseSchema, createConversationBodySchema, createDatasetBodySchema, createIndexBodySchema, createIndexResponseSchema, createListVersionsResponseSchema, createMCPClientVersionBodySchema, createMCPClientVersionResponseSchema, createPagePaginationSchema, createPromptBlockVersionBodySchema, createPromptBlockVersionResponseSchema, createResponseBodySchema, createScorerVersionBodySchema, createScorerVersionResponseSchema, createStoredAgentBodySchema, createStoredAgentResponseSchema, createStoredMCPClientBodySchema, createStoredMCPClientResponseSchema, createStoredPromptBlockBodySchema, createStoredPromptBlockResponseSchema, createStoredScorerBodySchema, createStoredScorerResponseSchema, createStoredSkillBodySchema, createStoredSkillResponseSchema, createStoredWorkspaceBodySchema, createStoredWorkspaceResponseSchema, createThreadBodySchema, createThreadNetworkQuerySchema, createVersionBodySchema, createVersionResponseSchema, createWorkflowRunResponseSchema, credentialsResponseSchema, credentialsSignInBodySchema, credentialsSignUpBodySchema, currentUserResponseSchema, datasetAndExperimentIdPathParams, datasetAndItemIdPathParams, datasetExperimentAndItemIdPathParams, datasetIdPathParams, datasetItemResponseSchema, datasetItemVersionPathParams, datasetResponseSchema, datasetVersionResponseSchema, declineNetworkToolCallBodySchema, declineToolCallBodySchema, defaultModelEntrySchema, defaultOptionsSchema, deleteIndexResponseSchema, deleteMCPClientVersionResponseSchema, deleteMessagesBodySchema, deleteMessagesNetworkQuerySchema, deleteMessagesQuerySchema, deleteMessagesResponseSchema, deletePromptBlockVersionResponseSchema, deleteResponseSchema, deleteScorerVersionResponseSchema, deleteStoredAgentResponseSchema, deleteStoredMCPClientResponseSchema, deleteStoredPromptBlockResponseSchema, deleteStoredScorerResponseSchema, deleteStoredSkillResponseSchema, deleteStoredWorkspaceResponseSchema, deleteThreadNetworkQuerySchema, deleteThreadQuerySchema, deleteThreadResponseSchema, deleteVersionResponseSchema, describeIndexResponseSchema, disconnectConnectionQuerySchema, disconnectConnectionResponseSchema, editorSourceCapabilitiesSchema, editorSourceSchema, enhanceInstructionsBodySchema, enhanceInstructionsResponseSchema, entityPathParams, executeProcessorBodySchema, executeProcessorResponseSchema, executeToolBodySchema, executeToolContextBodySchema, executeToolResponseSchema, experimentIdPathParams, experimentResponseSchema, experimentResultIdPathParams, experimentResultResponseSchema, experimentReviewCountsSchema, experimentSummaryResponseSchema, exportStoredAgentBodySchema, exportStoredAgentResponseSchema, fileEntrySchema, filterSchema, fsDeleteQuerySchema, fsDeleteResponseSchema, fsListQuerySchema, fsListResponseSchema, fsMkdirBodySchema, fsMkdirResponseSchema, fsPathParams, fsReadQuerySchema, fsReadResponseSchema, fsStatQuerySchema, fsStatResponseSchema, fsWriteBodySchema, fsWriteResponseSchema, generateItemsBodySchema, generateItemsResponseSchema, generateResponseSchema, generateSpeechBodySchema, getAgentSkillResponseSchema, getListenerResponseSchema, getMCPClientVersionResponseSchema, getMcpServerDetailQuerySchema, getMemoryConfigQuerySchema, getMemoryStatusNetworkQuerySchema, getMemoryStatusQuerySchema, getObservationalMemoryQuerySchema, getObservationalMemoryResponseSchema, getProcessorProviderResponseSchema, getProcessorProvidersResponseSchema, getPromptBlockVersionResponseSchema, getScorerVersionResponseSchema, getSkillResponseSchema, getStoredAgentDependentsResponseSchema, getStoredAgentResponseSchema, getStoredMCPClientResponseSchema, getStoredPromptBlockResponseSchema, getStoredScorerResponseSchema, getStoredSkillResponseSchema, getStoredWorkspaceResponseSchema, getThreadByIdNetworkQuerySchema, getThreadByIdQuerySchema, getThreadByIdResponseSchema, getToolProviderToolSchemaResponseSchema, getVersionResponseSchema, getWorkingMemoryQuerySchema, getWorkingMemoryResponseSchema, includeSchema, indexBodySchema, indexResponseSchema, infrastructureStatusResponseSchema, instructionsSchema, itemIdPathParams, itemVersionResponseSchema, jsonRpcErrorSchema, listAgentsResponseSchema, listConnectionFieldsQuerySchema, listConnectionFieldsResponseSchema, listConnectionsQuerySchema, listConnectionsResponseSchema, listDatasetVersionsResponseSchema, listDatasetsResponseSchema, listEmbeddersResponseSchema, listExperimentResultsQuerySchema, listExperimentResultsResponseSchema, listExperimentsQuerySchema, listExperimentsResponseSchema, listIndexesResponseSchema, listItemVersionsResponseSchema, listItemsQuerySchema, listItemsResponseSchema, listLogTransportsResponseSchema, listLogsQuerySchema, listLogsResponseSchema, listMCPClientVersionsQuerySchema, listMCPClientVersionsResponseSchema, listMcpServerToolsResponseSchema, listMcpServersQuerySchema, listMcpServersResponseSchema, listMessagesNetworkQuerySchema, listMessagesQuerySchema, listMessagesResponseSchema, listProcessorsResponseSchema, listPromptBlockVersionsQuerySchema, listPromptBlockVersionsResponseSchema, listReferencesResponseSchema, listScorerVersionsQuerySchema, listScorerVersionsResponseSchema, listScorersResponseSchema, listScoresByEntityIdQuerySchema, listScoresByRunIdQuerySchema, listScoresByScorerIdQuerySchema, listSkillsResponseSchema, listStoredAgentsQuerySchema, listStoredAgentsResponseSchema, listStoredMCPClientsQuerySchema, listStoredMCPClientsResponseSchema, listStoredPromptBlocksQuerySchema, listStoredPromptBlocksResponseSchema, listStoredScorersQuerySchema, listStoredScorersResponseSchema, listStoredSkillsQuerySchema, listStoredSkillsResponseSchema, listStoredWorkspacesQuerySchema, listStoredWorkspacesResponseSchema, listSuspendedRunsQuerySchema, listSuspendedRunsResponseSchema, listThreadsNetworkQuerySchema, listThreadsQuerySchema, listThreadsResponseSchema, listToolProviderToolkitsResponseSchema, listToolProviderToolsQuerySchema, listToolProviderToolsResponseSchema, listToolProvidersResponseSchema, listToolsResponseSchema, listVectorsResponseSchema, listVersionsQuerySchema, listVersionsResponseSchema, listWorkflowRunsQuerySchema, listWorkflowsResponseSchema, listWorkspacesResponseSchema, loginConfigSchema, logoutResponseSchema, mastraPackageSchema, mcpClientVersionIdPathParams, mcpClientVersionPathParams, mcpClientVersionSchema, executeToolBodySchema$1 as mcpExecuteToolBodySchema, executeToolResponseSchema$1 as mcpExecuteToolResponseSchema, mcpServerDetailPathParams, mcpServerIdPathParams, mcpServerToolPathParams, mcpToolInfoSchema, memoryConfigResponseSchema, memoryStatusResponseSchema, messageOrderBySchema, messageResponseSchema, messageSendBodySchema, modelConfigIdPathParams, modelConfigSchema, modelManagementResponseSchema, mountInfoSchema, observabilityRuntimeStrategySchema, observabilityStorageCapabilitiesSchema, observeAgentBodySchema, observeAgentResponseSchema, openStoredAgentChangeRequestBodySchema, openStoredAgentChangeRequestResponseSchema, optionalAgentIdQuerySchema, optionalRunIdSchema, paginationInfoSchema, paginationQuerySchema, partialQuerySchema, permissionPatternsResponseSchema, pickerAllowlistSchema, previewInstructionsBodySchema, previewInstructionsResponseSchema, processorConfigurationSchema, processorGraphEntrySchema, processorGraphStepSchema, processorIdPathParams, processorPhaseSchema, processorProviderIdPathParams, serializedProcessorSchema as processorSerializedSchema, promptBlockVersionIdPathParams, promptBlockVersionPathParams, promptBlockVersionSchema, providerModelEntrySchema, providerSchema, providersResponseSchema, publicCapabilitiesSchema, publishStoredSkillBodySchema, publishStoredSkillResponseSchema, queryVectorsBodySchema, queryVectorsResponseSchema, queueAgentMessageBodySchema, readSkillOrigin, recoverBodySchema, refreshResponseSchema, reorderAgentModelListBodySchema, resolvedAuthorSchema, responseIdPathParams, responseInputMessageSchema, responseInputTextContentSchema, responseInputTextPartSchema, responseObjectSchema, responseOutputFunctionCallOutputSchema, responseOutputFunctionCallSchema, responseOutputItemSchema, responseOutputMessageSchema, responseOutputTextSchema, responseTextFormatSchema, responseToolSchema, responseUsageSchema, restoreMCPClientVersionResponseSchema, restorePromptBlockVersionResponseSchema, restoreScorerVersionResponseSchema, restoreVersionResponseSchema, resumeAgentBuilderBodySchema, resumeStreamBodySchema, resumeStreamUntilIdleBodySchema, reviewSummaryResponseSchema, ruleGroupSchema, ruleSchema, runExperimentItemBodySchema, runExperimentItemResponseSchema, runIdSchema, saveMessagesBodySchema, saveMessagesNetworkQuerySchema, saveMessagesResponseSchema, saveScoreBodySchema, saveScoreResponseSchema, scorerConfigSchema, scorerEntrySchema, scorerIdPathParams, scorerResultSchema, scorerVersionIdPathParams, scorerVersionPathParams, scorerVersionSchema, scoresWithPaginationResponseSchema, searchMemoryQuerySchema, searchMemoryResponseSchema, searchQuerySchema, searchResponseSchema, searchResultSchema, searchSkillsQuerySchema, searchSkillsResponseSchema, semanticRecallSchema, sendAgentMessageBodySchema, sendAgentSignalBodySchema, sendToolApprovalBodySchema, sendToolApprovalResponseSchema, sendWorkflowRunEventBodySchema, serializedAgentDefinitionSchema, serializedAgentSchema, serializedAgentWithIdSchema, serializedMemoryConfigSchema, serializedObservationConfigSchema, serializedObservationalMemoryConfigObjectSchema, serializedObservationalMemoryConfigSchema, serializedProcessorDetailSchema, serializedProcessorSchema$1 as serializedProcessorSchema, serializedReflectionConfigSchema, serializedToolSchema, serializedWorkflowSchema, serverDetailSchema, serverInfoSchema, skillDisambiguationQuerySchema, skillMetadataSchema, skillMetadataWithPathSchema, skillNamePathParams, skillOriginSchema, skillReferencePathParams, skillReferenceResponseSchema, skillSchema, skillSearchResultSchema, skillSourceSchema, skillsShInstallBodySchema, skillsShInstallResponseSchema, skillsShListResponseSchema, skillsShPopularQuerySchema, skillsShPreviewQuerySchema, skillsShPreviewResponseSchema, skillsShRemoveBodySchema, skillsShRemoveResponseSchema, skillsShSearchQuerySchema, skillsShSearchResponseSchema, skillsShSkillSchema, skillsShSourceSchema, skillsShUpdateBodySchema, skillsShUpdateResponseSchema, snapshotConfigSchema, speakResponseSchema, ssoCallbackQuerySchema, ssoCallbackResponseSchema, ssoConfigSchema, ssoLoginQuerySchema, ssoLoginResponseSchema, startAsyncAgentBuilderBodySchema, statusQuerySchema, storedAgentIdPathParams, storedAgentSchema, storedMCPClientIdPathParams, storedMCPClientSchema, storedProcessorGraphSchema, storedPromptBlockIdPathParams, storedPromptBlockSchema, storedScorerIdPathParams, storedScorerSchema, storedSkillIdPathParams, storedSkillSchema, storedWorkspaceIdPathParams, storedWorkspaceSchema, streamAgentBuilderBodySchema, streamLegacyAgentBuilderBodySchema, streamResponseSchema, streamUntilIdleBodySchema, submitExperimentResultBodySchema, subscribeAgentThreadBodySchema, successResponseSchema, systemPackagesResponseSchema, taskQueryBodySchema, taskResponseSchema, tenancyQuerySchema, threadIdPathParams, titleGenerationSchema, toolCallResponseSchema, toolConfigSchema, toolIdPathParams, toolProviderAuthStatusPathParams, toolProviderConfigSchema, toolProviderConnectionPathParams, toolProviderHealthResponseSchema, toolProviderIdPathParams, toolProvidersSchema, toolSlugPathParams, toolsConfigSchema, tracingOptionsSchema, transcribeSpeechBodySchema, transcribeSpeechResponseSchema, triggerExperimentBodySchema, typedPermissive, updateAgentModelBodySchema, updateAgentModelInModelListBodySchema, updateConnectionBodySchema, updateConnectionResponseSchema, updateDatasetBodySchema, updateExperimentBodySchema, updateExperimentResultBodySchema, updateItemBodySchema, updateStoredAgentBodySchema, updateStoredAgentResponseSchema, updateStoredMCPClientBodySchema, updateStoredMCPClientResponseSchema, updateStoredPromptBlockBodySchema, updateStoredPromptBlockResponseSchema, updateStoredScorerBodySchema, updateStoredScorerResponseSchema, updateStoredSkillBodySchema, updateStoredSkillResponseSchema, updateStoredWorkspaceBodySchema, updateStoredWorkspaceResponseSchema, updateThreadBodySchema, updateThreadNetworkQuerySchema, updateWorkingMemoryBodySchema, updateWorkingMemoryResponseSchema, upsertVectorsBodySchema, upsertVectorsResponseSchema, userAccessSchema, vectorIndexPathParams, vectorNamePathParams, versionDetailSchema, versionDiffEntrySchema, versionIdPathParams, versionOrderBySchema, voiceSpeakersResponseSchema, workflowControlResponseSchema, workflowExecutionResultSchema, workflowInfoSchema, workflowRunResultQuerySchema, workflowRunResultSchema, workflowRunsResponseSchema, workspaceIdPathParams, workspaceInfoResponseSchema, snapshotConfigSchema$1 as workspaceSnapshotConfigSchema };
35
+ export { SKILL_ORIGIN_METADATA_KEY, agentExecutionBodySchema as a2aAgentExecutionBodySchema, a2aAgentIdPathParams, a2aTaskPathParams, abortAgentThreadBodySchema, abortAgentThreadResponseSchema, actionIdPathParams, actionRunPathParams, activateMCPClientVersionResponseSchema, activatePromptBlockVersionResponseSchema, activateScorerVersionResponseSchema, activateVersionResponseSchema, addItemBodySchema, agentCardResponseSchema, agentConfigurationSchema, agentExecutionBodySchema$1 as agentExecutionBodySchema, agentExecutionLegacyBodySchema, agentExecutionResponseSchema, agentFeaturesSchema, agentIdPathParams, agentIdQuerySchema, agentModelsSchema, agentPlanQuerySchema, agentPlanResponseSchema, agentSkillPathParams, agentToolPathParams, agentVersionPathParams, agentVersionQuerySchema, agentVersionSchema, apiSchemaManifestResponseSchema, apiSchemaManifestRouteSchema, apiSchemaResponseShapeSchema, approveNetworkToolCallBodySchema, approveToolCallBodySchema, authStatusToolProviderResponseSchema, authenticatedCapabilitiesSchema, authenticatedUserSchema, authorizeToolProviderBodySchema, authorizeToolProviderResponseSchema, awaitBufferStatusBodySchema, awaitBufferStatusResponseSchema, baseLogMessageSchema, batchDeleteItemsBodySchema, batchDeleteItemsResponseSchema, batchInsertItemsBodySchema, batchInsertItemsResponseSchema, buildOriginMetadata, builderAvailableModelsResponseSchema, builderModelPolicySchema, builderPickerSchema, builderSettingsResponseSchema, capabilitiesResponseSchema, capabilityFlagsSchema, cloneThreadBodySchema, cloneThreadResponseSchema, clusterFailuresBodySchema, clusterFailuresResponseSchema, compareExperimentsBodySchema, compareMCPClientVersionsQuerySchema, compareMCPClientVersionsResponseSchema, comparePromptBlockVersionsQuerySchema, comparePromptBlockVersionsResponseSchema, compareScorerVersionsQuerySchema, compareScorerVersionsResponseSchema, compareVersionsQuerySchema, compareVersionsResponseSchema, comparisonResponseSchema, conditionalFieldSchema, connectionSchema, connectionScopeSchema, connectionStatusToolProviderBodySchema, connectionStatusToolProviderResponseSchema, connectionUsageQuerySchema, connectionUsageResponseSchema, conversationDeletedSchema, conversationIdPathParams, conversationItemMessageSchema, conversationItemSchema, conversationItemsListSchema, conversationMessageContentSchema, conversationObjectSchema, coreMessageSchema, createCombinedPaginationSchema, createCompareVersionsResponseSchema, createConversationBodySchema, createDatasetBodySchema, createIndexBodySchema, createIndexResponseSchema, createListVersionsResponseSchema, createMCPClientVersionBodySchema, createMCPClientVersionResponseSchema, createPagePaginationSchema, createPromptBlockVersionBodySchema, createPromptBlockVersionResponseSchema, createResponseBodySchema, createScorerVersionBodySchema, createScorerVersionResponseSchema, createStoredAgentBodySchema, createStoredAgentResponseSchema, createStoredMCPClientBodySchema, createStoredMCPClientResponseSchema, createStoredPromptBlockBodySchema, createStoredPromptBlockResponseSchema, createStoredScorerBodySchema, createStoredScorerResponseSchema, createStoredSkillBodySchema, createStoredSkillResponseSchema, createStoredWorkspaceBodySchema, createStoredWorkspaceResponseSchema, createThreadBodySchema, createThreadNetworkQuerySchema, createVersionBodySchema, createVersionResponseSchema, createWorkflowRunResponseSchema, credentialsResponseSchema, credentialsSignInBodySchema, credentialsSignUpBodySchema, currentUserResponseSchema, datasetAndExperimentIdPathParams, datasetAndItemIdPathParams, datasetExperimentAndItemIdPathParams, datasetIdPathParams, datasetItemResponseSchema, datasetItemVersionPathParams, datasetResponseSchema, datasetVersionResponseSchema, declineNetworkToolCallBodySchema, declineToolCallBodySchema, defaultModelEntrySchema, defaultOptionsSchema, deleteIndexResponseSchema, deleteMCPClientVersionResponseSchema, deleteMessagesBodySchema, deleteMessagesNetworkQuerySchema, deleteMessagesQuerySchema, deleteMessagesResponseSchema, deletePromptBlockVersionResponseSchema, deleteResponseSchema, deleteScorerVersionResponseSchema, deleteStoredAgentResponseSchema, deleteStoredMCPClientResponseSchema, deleteStoredPromptBlockResponseSchema, deleteStoredScorerResponseSchema, deleteStoredSkillResponseSchema, deleteStoredWorkspaceResponseSchema, deleteThreadNetworkQuerySchema, deleteThreadQuerySchema, deleteThreadResponseSchema, deleteVersionResponseSchema, describeIndexResponseSchema, disconnectConnectionQuerySchema, disconnectConnectionResponseSchema, editorSourceCapabilitiesSchema, editorSourceSchema, enhanceInstructionsBodySchema, enhanceInstructionsResponseSchema, entityPathParams, executeProcessorBodySchema, executeProcessorResponseSchema, executeToolBodySchema, executeToolContextBodySchema, executeToolResponseSchema, experimentIdPathParams, experimentResponseSchema, experimentResultIdPathParams, experimentResultResponseSchema, experimentReviewCountsSchema, experimentSummaryResponseSchema, exportStoredAgentBodySchema, exportStoredAgentResponseSchema, fileEntrySchema, filterSchema, fsDeleteQuerySchema, fsDeleteResponseSchema, fsListQuerySchema, fsListResponseSchema, fsMkdirBodySchema, fsMkdirResponseSchema, fsPathParams, fsReadQuerySchema, fsReadResponseSchema, fsStatQuerySchema, fsStatResponseSchema, fsWriteBodySchema, fsWriteResponseSchema, generateItemsBodySchema, generateItemsResponseSchema, generateResponseSchema, generateSpeechBodySchema, getAgentSkillResponseSchema, getListenerResponseSchema, getMCPClientVersionResponseSchema, getMcpServerDetailQuerySchema, getMemoryConfigQuerySchema, getMemoryStatusNetworkQuerySchema, getMemoryStatusQuerySchema, getObservationalMemoryQuerySchema, getObservationalMemoryResponseSchema, getProcessorProviderResponseSchema, getProcessorProvidersResponseSchema, getPromptBlockVersionResponseSchema, getScorerVersionResponseSchema, getSkillResponseSchema, getStoredAgentDependentsResponseSchema, getStoredAgentResponseSchema, getStoredMCPClientResponseSchema, getStoredPromptBlockResponseSchema, getStoredScorerResponseSchema, getStoredSkillResponseSchema, getStoredWorkspaceResponseSchema, getThreadByIdNetworkQuerySchema, getThreadByIdQuerySchema, getThreadByIdResponseSchema, getToolProviderToolSchemaResponseSchema, getVersionResponseSchema, getWorkingMemoryQuerySchema, getWorkingMemoryResponseSchema, includeSchema, indexBodySchema, indexResponseSchema, infrastructureStatusResponseSchema, instructionsSchema, itemIdPathParams, itemVersionResponseSchema, jsonRpcErrorSchema, listAgentsResponseSchema, listConnectionFieldsQuerySchema, listConnectionFieldsResponseSchema, listConnectionsQuerySchema, listConnectionsResponseSchema, listDatasetVersionsResponseSchema, listDatasetsResponseSchema, listEmbeddersResponseSchema, listExperimentResultsQuerySchema, listExperimentResultsResponseSchema, listExperimentsQuerySchema, listExperimentsResponseSchema, listIndexesResponseSchema, listItemVersionsResponseSchema, listItemsQuerySchema, listItemsResponseSchema, listLogTransportsResponseSchema, listLogsQuerySchema, listLogsResponseSchema, listMCPClientVersionsQuerySchema, listMCPClientVersionsResponseSchema, listMcpServerToolsResponseSchema, listMcpServersQuerySchema, listMcpServersResponseSchema, listMessagesNetworkQuerySchema, listMessagesQuerySchema, listMessagesResponseSchema, listProcessorsResponseSchema, listPromptBlockVersionsQuerySchema, listPromptBlockVersionsResponseSchema, listReferencesResponseSchema, listScorerVersionsQuerySchema, listScorerVersionsResponseSchema, listScorersResponseSchema, listScoresByEntityIdQuerySchema, listScoresByRunIdQuerySchema, listScoresByScorerIdQuerySchema, listSkillsResponseSchema, listStoredAgentsQuerySchema, listStoredAgentsResponseSchema, listStoredMCPClientsQuerySchema, listStoredMCPClientsResponseSchema, listStoredPromptBlocksQuerySchema, listStoredPromptBlocksResponseSchema, listStoredScorersQuerySchema, listStoredScorersResponseSchema, listStoredSkillsQuerySchema, listStoredSkillsResponseSchema, listStoredWorkspacesQuerySchema, listStoredWorkspacesResponseSchema, listSuspendedRunsQuerySchema, listSuspendedRunsResponseSchema, listThreadsNetworkQuerySchema, listThreadsQuerySchema, listThreadsResponseSchema, listToolProviderToolkitsResponseSchema, listToolProviderToolsQuerySchema, listToolProviderToolsResponseSchema, listToolProvidersResponseSchema, listToolsResponseSchema, listVectorsResponseSchema, listVersionsQuerySchema, listVersionsResponseSchema, listWorkflowRunsQuerySchema, listWorkflowsResponseSchema, listWorkspacesResponseSchema, loginConfigSchema, logoutResponseSchema, mastraPackageSchema, mcpClientVersionIdPathParams, mcpClientVersionPathParams, mcpClientVersionSchema, executeToolBodySchema$1 as mcpExecuteToolBodySchema, executeToolResponseSchema$1 as mcpExecuteToolResponseSchema, mcpServerDetailPathParams, mcpServerIdPathParams, mcpServerToolPathParams, mcpToolInfoSchema, memoryConfigResponseSchema, memoryStatusResponseSchema, messageOrderBySchema, messageResponseSchema, messageSendBodySchema, modelConfigIdPathParams, modelConfigSchema, modelManagementResponseSchema, mountInfoSchema, observabilityRuntimeStrategySchema, observabilityStorageCapabilitiesSchema, observeAgentBodySchema, observeAgentResponseSchema, openStoredAgentChangeRequestBodySchema, openStoredAgentChangeRequestResponseSchema, optionalAgentIdQuerySchema, optionalRunIdSchema, paginationInfoSchema, paginationQuerySchema, partialQuerySchema, permissionPatternsResponseSchema, pickerAllowlistSchema, previewInstructionsBodySchema, previewInstructionsResponseSchema, processorConfigurationSchema, processorGraphEntrySchema, processorGraphStepSchema, processorIdPathParams, processorPhaseSchema, processorProviderIdPathParams, serializedProcessorSchema as processorSerializedSchema, promptBlockVersionIdPathParams, promptBlockVersionPathParams, promptBlockVersionSchema, providerModelEntrySchema, providerSchema, providersResponseSchema, publicCapabilitiesSchema, publishStoredSkillBodySchema, publishStoredSkillResponseSchema, queryVectorsBodySchema, queryVectorsResponseSchema, queueAgentMessageBodySchema, readSkillOrigin, recoverBodySchema, refreshResponseSchema, reorderAgentModelListBodySchema, resolvedAuthorSchema, responseIdPathParams, responseInputMessageSchema, responseInputTextContentSchema, responseInputTextPartSchema, responseObjectSchema, responseOutputFunctionCallOutputSchema, responseOutputFunctionCallSchema, responseOutputItemSchema, responseOutputMessageSchema, responseOutputTextSchema, responseTextFormatSchema, responseToolSchema, responseUsageSchema, restoreMCPClientVersionResponseSchema, restorePromptBlockVersionResponseSchema, restoreScorerVersionResponseSchema, restoreVersionResponseSchema, resumeAgentBuilderBodySchema, resumeStreamBodySchema, resumeStreamUntilIdleBodySchema, reviewSummaryResponseSchema, ruleGroupSchema, ruleSchema, runExperimentItemBodySchema, runExperimentItemResponseSchema, runIdSchema, saveMessagesBodySchema, saveMessagesNetworkQuerySchema, saveMessagesResponseSchema, saveScoreBodySchema, saveScoreResponseSchema, scorerConfigSchema, scorerEntrySchema, scorerIdPathParams, scorerResultSchema, scorerVersionIdPathParams, scorerVersionPathParams, scorerVersionSchema, scoresWithPaginationResponseSchema, searchMemoryQuerySchema, searchMemoryResponseSchema, searchQuerySchema, searchResponseSchema, searchResultSchema, searchSkillsQuerySchema, searchSkillsResponseSchema, semanticRecallSchema, sendAgentMessageBodySchema, sendAgentSignalBodySchema, sendToolApprovalBodySchema, sendToolApprovalResponseSchema, sendWorkflowRunEventBodySchema, serializedAgentDefinitionSchema, serializedAgentSchema, serializedAgentWithIdSchema, serializedMemoryConfigSchema, serializedObservationConfigSchema, serializedObservationalMemoryConfigObjectSchema, serializedObservationalMemoryConfigSchema, serializedProcessorDetailSchema, serializedProcessorSchema$1 as serializedProcessorSchema, serializedReflectionConfigSchema, serializedToolSchema, serializedWorkflowSchema, serverDetailSchema, serverInfoSchema, skillDisambiguationQuerySchema, skillMetadataSchema, skillMetadataWithPathSchema, skillNamePathParams, skillOriginSchema, skillReferencePathParams, skillReferenceResponseSchema, skillSchema, skillSearchResultSchema, skillSourceSchema, skillsShInstallBodySchema, skillsShInstallResponseSchema, skillsShListResponseSchema, skillsShPopularQuerySchema, skillsShPreviewQuerySchema, skillsShPreviewResponseSchema, skillsShRemoveBodySchema, skillsShRemoveResponseSchema, skillsShSearchQuerySchema, skillsShSearchResponseSchema, skillsShSkillSchema, skillsShSourceSchema, skillsShUpdateBodySchema, skillsShUpdateResponseSchema, snapshotConfigSchema, speakResponseSchema, ssoCallbackQuerySchema, ssoCallbackResponseSchema, ssoConfigSchema, ssoLoginQuerySchema, ssoLoginResponseSchema, startAsyncAgentBuilderBodySchema, statusQuerySchema, storedAgentIdPathParams, storedAgentSchema, storedMCPClientIdPathParams, storedMCPClientSchema, storedProcessorGraphSchema, storedPromptBlockIdPathParams, storedPromptBlockSchema, storedScorerIdPathParams, storedScorerSchema, storedSkillIdPathParams, storedSkillSchema, storedWorkspaceIdPathParams, storedWorkspaceSchema, streamAgentBuilderBodySchema, streamLegacyAgentBuilderBodySchema, streamResponseSchema, streamUntilIdleBodySchema, submitExperimentResultBodySchema, subscribeAgentThreadBodySchema, successResponseSchema, systemPackagesResponseSchema, taskQueryBodySchema, taskResponseSchema, tenancyQuerySchema, threadIdPathParams, titleGenerationSchema, toolCallResponseSchema, toolConfigSchema, toolIdPathParams, toolProviderAuthStatusPathParams, toolProviderConfigSchema, toolProviderConnectionPathParams, toolProviderHealthResponseSchema, toolProviderIdPathParams, toolProvidersSchema, toolSlugPathParams, toolsConfigSchema, tracingOptionsSchema, transcribeSpeechBodySchema, transcribeSpeechResponseSchema, transferThreadBodySchema, transferThreadResponseSchema, triggerExperimentBodySchema, typedPermissive, updateAgentModelBodySchema, updateAgentModelInModelListBodySchema, updateConnectionBodySchema, updateConnectionResponseSchema, updateDatasetBodySchema, updateExperimentBodySchema, updateExperimentResultBodySchema, updateItemBodySchema, updateStoredAgentBodySchema, updateStoredAgentResponseSchema, updateStoredMCPClientBodySchema, updateStoredMCPClientResponseSchema, updateStoredPromptBlockBodySchema, updateStoredPromptBlockResponseSchema, updateStoredScorerBodySchema, updateStoredScorerResponseSchema, updateStoredSkillBodySchema, updateStoredSkillResponseSchema, updateStoredWorkspaceBodySchema, updateStoredWorkspaceResponseSchema, updateThreadBodySchema, updateThreadNetworkQuerySchema, updateWorkingMemoryBodySchema, updateWorkingMemoryResponseSchema, upsertVectorsBodySchema, upsertVectorsResponseSchema, userAccessSchema, vectorIndexPathParams, vectorNamePathParams, versionDetailSchema, versionDiffEntrySchema, versionIdPathParams, versionOrderBySchema, voiceSpeakersResponseSchema, workflowControlResponseSchema, workflowExecutionResultSchema, workflowInfoSchema, workflowRunResultQuerySchema, workflowRunResultSchema, workflowRunsResponseSchema, workspaceIdPathParams, workspaceInfoResponseSchema, snapshotConfigSchema$1 as workspaceSnapshotConfigSchema };
@@ -509,6 +509,24 @@ export declare const updateThreadBodySchema: z.ZodObject<{
509
509
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
510
510
  resourceId: z.ZodOptional<z.ZodString>;
511
511
  }, z.core.$strip>;
512
+ /**
513
+ * Body schema for POST /memory/threads/:threadId/transfer
514
+ * Reassigns the thread (and its messages) to a different resource.
515
+ */
516
+ export declare const transferThreadBodySchema: z.ZodObject<{
517
+ resourceId: z.ZodString;
518
+ }, z.core.$strip>;
519
+ /**
520
+ * Response schema for POST /memory/threads/:threadId/transfer
521
+ */
522
+ export declare const transferThreadResponseSchema: z.ZodObject<{
523
+ id: z.ZodString;
524
+ title: z.ZodOptional<z.ZodString>;
525
+ resourceId: z.ZodString;
526
+ createdAt: z.ZodDate;
527
+ updatedAt: z.ZodDate;
528
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
529
+ }, z.core.$strip>;
512
530
  /**
513
531
  * Body schema for PUT /memory/threads/:threadId/working-memory
514
532
  */
@@ -1 +1 @@
1
- {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/server/schemas/memory.ts"],"names":[],"mappings":"A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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG/C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;iBAItC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE1C,CAAC"}
@@ -1,12 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../rolldown-runtime-Bd6kNlEP.cjs");
3
3
  const require_http_exception = require("../../http-exception-CKDHupKw.cjs");
4
- const require_route_builder = require("../../route-builder-C8n4ugUf.cjs");
5
- const require_utils = require("../../utils-CmYnjLcY.cjs");
4
+ const require_route_builder = require("../../route-builder-DupY8fkI.cjs");
5
+ const require_utils = require("../../utils-WcR0QSUB.cjs");
6
6
  const require_constants = require("../../constants-4IJp_uzj.cjs");
7
7
  const require_server_handlers_error = require("../handlers/error.cjs");
8
8
  const require_helpers = require("../../helpers-8jl_xtug.cjs");
9
- const require_routes = require("../../routes-Dgd2S9av.cjs");
9
+ const require_routes = require("../../routes-9i4gAixo.cjs");
10
10
  let zod_v4 = require("zod/v4");
11
11
  let stream = require("stream");
12
12
  let _mastra_core_request_context = require("@mastra/core/request-context");
@@ -1,10 +1,10 @@
1
1
  import { t as HTTPException } from "../../http-exception-CyfxZB6W.js";
2
- import { a as wrapSchemaForQueryParams, i as pickParams, n as createRoute, o as convertCustomRoutesToOpenAPIPaths, r as jsonQueryParam, s as generateOpenAPIDocument, t as createPublicRoute } from "../../route-builder-BveLN9LU.js";
3
- import { o as normalizeRoutePath, t as WorkflowRegistry } from "../../utils-B2vd77Fi.js";
2
+ import { a as wrapSchemaForQueryParams, i as pickParams, n as createRoute, o as convertCustomRoutesToOpenAPIPaths, r as jsonQueryParam, s as generateOpenAPIDocument, t as createPublicRoute } from "../../route-builder-BukcT_Kp.js";
3
+ import { o as normalizeRoutePath, t as WorkflowRegistry } from "../../utils-Duk4hfT_.js";
4
4
  import { i as MASTRA_IS_STUDIO_KEY, l as MASTRA_USER_KEY, m as isStudioClientTypeHeader, n as MASTRA_AUTH_TOKEN_KEY, o as MASTRA_RESOURCE_ID_KEY$1, p as isReservedRequestContextKey, r as MASTRA_CLIENT_TYPE_HEADER, s as MASTRA_STUDIO_CLIENT_TYPE, t as MASTRA_AUTH_MODE_KEY } from "../../constants-0jFCWoex.js";
5
5
  import { formatZodError, isZodError } from "../handlers/error.js";
6
6
  import { d as pathMatchesPattern, i as findMatchingCustomRoute, o as isCustomRoutePublic, r as coreAuthMiddleware } from "../../helpers-610L0lwQ.js";
7
- import { t as SERVER_ROUTES } from "../../routes-DCwOOz84.js";
7
+ import { t as SERVER_ROUTES } from "../../routes-DXUcYEc6.js";
8
8
  import { z } from "zod/v4";
9
9
  import { Readable } from "stream";
10
10
  import { RequestContext } from "@mastra/core/request-context";
@@ -1078,6 +1078,52 @@ export declare const MEMORY_ROUTES: readonly [Omit<import("@mastra/core/server")
1078
1078
  }, import("zod/v4/core").$strip>> | undefined;
1079
1079
  } & {
1080
1080
  readonly _mastraSchemaRoute: true;
1081
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1082
+ method: "POST";
1083
+ path: "/memory/threads/:threadId/transfer";
1084
+ responseType: "json";
1085
+ streamFormat?: 'sse' | 'stream';
1086
+ sseFlushOnConnect?: boolean;
1087
+ handler(params: {
1088
+ threadId: string;
1089
+ } & {
1090
+ agentId?: string | undefined;
1091
+ } & {
1092
+ resourceId: string;
1093
+ } & import(".").ServerContext): Promise<{
1094
+ id: string;
1095
+ title?: string | undefined;
1096
+ resourceId: string;
1097
+ createdAt: Date;
1098
+ updatedAt: Date;
1099
+ metadata?: Record<string, unknown> | undefined;
1100
+ }>;
1101
+ pathParamSchema?: import("zod").ZodType;
1102
+ queryParamSchema?: import("zod").ZodType;
1103
+ bodySchema?: import("zod").ZodType;
1104
+ responseSchema?: import("zod").ZodType;
1105
+ openapi?: import("../openapi-utils").OpenAPIRoute;
1106
+ maxBodySize?: number;
1107
+ deprecated?: boolean;
1108
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1109
+ fga?: import("@mastra/core/auth").FGARouteConfig;
1110
+ onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1111
+ readonly __schemas?: import(".").RouteSchemas<import("zod").ZodObject<{
1112
+ threadId: import("zod").ZodString;
1113
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1114
+ agentId: import("zod").ZodOptional<import("zod").ZodString>;
1115
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1116
+ resourceId: import("zod").ZodString;
1117
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1118
+ id: import("zod").ZodString;
1119
+ title: import("zod").ZodOptional<import("zod").ZodString>;
1120
+ resourceId: import("zod").ZodString;
1121
+ createdAt: import("zod").ZodDate;
1122
+ updatedAt: import("zod").ZodDate;
1123
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
1124
+ }, import("zod/v4/core").$strip>> | undefined;
1125
+ } & {
1126
+ readonly _mastraSchemaRoute: true;
1081
1127
  }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1082
1128
  method: "POST";
1083
1129
  path: "/memory/threads/:threadId/working-memory";
@@ -1 +1 @@
1
- {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../../src/server/server-adapter/routes/memory.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BhB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-Bd6kNlEP.cjs");
2
2
  const require_http_exception = require("./http-exception-CKDHupKw.cjs");
3
- require("./constants-4IJp_uzj.cjs");
3
+ const require_constants = require("./constants-4IJp_uzj.cjs");
4
4
  let _mastra_core_auth_ee = require("@mastra/core/auth/ee");
5
5
  _mastra_core_auth_ee = require_rolldown_runtime.__toESM(_mastra_core_auth_ee, 1);
6
6
  let _mastra_core_memory = require("@mastra/core/memory");
@@ -92,6 +92,15 @@ function getEffectiveResourceId(requestContext, clientResourceId) {
92
92
  return requestContext?.get("mastra__resourceId") || clientResourceId;
93
93
  }
94
94
  /**
95
+ * Returns the resource id resolved from the request context alone (set via
96
+ * `mapUserToResourceId` or the `x-resource-id` header), ignoring any
97
+ * client-provided value. Its presence indicates a resource-scoped caller;
98
+ * its absence indicates a privileged/service context.
99
+ */
100
+ function getContextResourceId(requestContext) {
101
+ return requestContext?.get(require_constants.MASTRA_RESOURCE_ID_KEY);
102
+ }
103
+ /**
95
104
  * Ensures a memory request has a resolvable resource ID. The body's
96
105
  * `memory.resource` is optional so authenticated setups can rely on the
97
106
  * server-derived resource ID (MASTRA_RESOURCE_ID_KEY set via mapUserToResourceId).
@@ -154,6 +163,12 @@ Object.defineProperty(exports, "enforceThreadAccess", {
154
163
  return enforceThreadAccess;
155
164
  }
156
165
  });
166
+ Object.defineProperty(exports, "getContextResourceId", {
167
+ enumerable: true,
168
+ get: function() {
169
+ return getContextResourceId;
170
+ }
171
+ });
157
172
  Object.defineProperty(exports, "getEffectiveResourceId", {
158
173
  enumerable: true,
159
174
  get: function() {
@@ -209,4 +224,4 @@ Object.defineProperty(exports, "validateThreadOwnership", {
209
224
  }
210
225
  });
211
226
 
212
- //# sourceMappingURL=utils-DJMUhfvY.cjs.map
227
+ //# sourceMappingURL=utils-BtkczLrA.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils-BtkczLrA.cjs","names":["authEE","HTTPException","MASTRA_RESOURCE_ID_KEY","MastraMemory"],"sources":["../src/server/fga-permissions.ts","../src/server/handlers/utils.ts"],"sourcesContent":["/**\n * Safe re-export of `MastraFGAPermissions` from `@mastra/core/auth/ee`.\n *\n * Why this shim exists:\n * `MastraFGAPermissions` was introduced in `@mastra/core@1.32.0`. Earlier\n * versions of `@mastra/core` ship `@mastra/core/auth/ee` but do not export\n * this constant. A direct named import (`import { MastraFGAPermissions }\n * from '@mastra/core/auth/ee'`) fails at ESM link time when this version\n * of `@mastra/server` is paired with `@mastra/core < 1.32.0`, taking the\n * entire user bundle down before any code runs.\n *\n * A namespace import tolerates missing names — `ns.MissingExport` is just\n * `undefined`, no link-time error. We then expose the permission map.\n *\n * Fallback values:\n * If the consuming `@mastra/core` does not export `MastraFGAPermissions`,\n * we substitute a hardcoded map of the canonical permission strings used\n * by routes in `@mastra/server`. This preserves the explicit RBAC\n * permission overrides those routes already had as string literals in\n * `@mastra/server@1.31.0` (e.g. `requiresPermission: \"agents:execute\"`\n * on `/v1/responses`). Without this fallback, `requiresPermission` would\n * be `undefined` on old core and the auth layer would derive the wrong\n * permission from the route path (e.g. `v1:write` instead of\n * `agents:execute`), breaking RBAC users who upgrade `@mastra/server`\n * but stay on `@mastra/core@1.31.0`.\n *\n * Once the consuming `@mastra/core` is on `1.32.0+` the values are real\n * and behaviour is identical to a direct named import.\n */\n\nimport * as authEE from '@mastra/core/auth/ee';\n\n// Canonical strings for the FGA permission keys actually referenced by\n// `@mastra/server` source. Mirrors `MastraFGAPermissions` in\n// `@mastra/core@1.32.0+` for these specific keys, and matches the string\n// literals previously hardcoded on the same routes in `@mastra/server@1.31.0`.\nconst FALLBACK_PERMISSIONS = {\n AGENTS_CREATE: 'agents:create',\n AGENTS_DELETE: 'agents:delete',\n AGENTS_EXECUTE: 'agents:execute',\n AGENTS_READ: 'agents:read',\n MEMORY_DELETE: 'memory:delete',\n MEMORY_READ: 'memory:read',\n MEMORY_WRITE: 'memory:write',\n TOOLS_EXECUTE: 'tools:execute',\n TOOLS_READ: 'tools:read',\n STORED_WORKFLOWS_READ: 'stored-workflows:read',\n STORED_WORKFLOWS_WRITE: 'stored-workflows:write',\n WORKFLOWS_EXECUTE: 'workflows:execute',\n WORKFLOWS_READ: 'workflows:read',\n} as const;\n\nconst realPermissions = (authEE as any).MastraFGAPermissions;\n\n// Typed as `any` on purpose: consumers of `@mastra/server` may run their\n// typecheck against a `@mastra/core` that doesn't export `MastraFGAPermissions`\n// (anything < 1.32.0). Pinning to the real type would push that name into the\n// emitted `.d.ts` and break downstream typecheck. `any` lets the property\n// accesses (`MastraFGAPermissions.AGENTS_READ`) flow through cleanly on every\n// supported core.\nexport const MastraFGAPermissions: any =\n realPermissions && Object.keys(realPermissions).length > 0 ? realPermissions : FALLBACK_PERMISSIONS;\n","import type { MastraFGAPermissionInput } from '@mastra/core/auth/ee';\nimport type { RequestContext } from '@mastra/core/di';\nimport { MastraMemory } from '@mastra/core/memory';\nimport { MASTRA_RESOURCE_ID_KEY, MASTRA_THREAD_ID_KEY } from '../constants';\nimport { MastraFGAPermissions } from '../fga-permissions';\nimport { HTTPException } from '../http-exception';\n\n// Validation helper\nexport function validateBody(body: Record<string, unknown>) {\n const errorResponse = Object.entries(body).reduce<Record<string, string>>((acc, [key, value]) => {\n if (!value) {\n acc[key] = `Argument \"${key}\" is required`;\n }\n return acc;\n }, {});\n\n if (Object.keys(errorResponse).length > 0) {\n throw new HTTPException(400, { message: Object.values(errorResponse)[0] });\n }\n}\n\n/**\n * sanitizes the body by removing disallowed keys.\n * @param body body to sanitize\n * @param disallowedKeys keys to remove from the body\n */\nexport function sanitizeBody(body: Record<string, unknown>, disallowedKeys: string[]) {\n for (const key of disallowedKeys) {\n if (key in body) {\n delete body[key];\n }\n }\n}\n\nexport function parsePerPage(\n value: string | undefined,\n defaultValue: number = 100,\n max: number = 1000,\n): number | false {\n const normalized = (value || '').trim().toLowerCase();\n // Handle explicit false to bypass pagination\n if (normalized === 'false') {\n return false;\n }\n const parsed = parseInt(value || String(defaultValue), 10);\n if (isNaN(parsed)) return defaultValue;\n return Math.min(max, Math.max(1, parsed));\n}\n\n/**\n * Parses filter query parameters into a key-value object.\n */\nexport function parseFilters(filters: string | string[] | undefined): Record<string, string> | undefined {\n if (!filters) return undefined;\n\n return Object.fromEntries(\n (Array.isArray(filters) ? filters : [filters]).map((attr: string) => {\n const [key, ...valueParts] = attr.split(':');\n const value = valueParts.join(':'); // ✅ Handles colons in values\n return [key, value];\n }),\n );\n}\n\n// ============================================================================\n// Authorization Utilities\n// ============================================================================\n\n/**\n * Gets the effective resourceId, preferring the reserved key from requestContext\n * over client-provided values for security.\n */\nexport function getEffectiveResourceId(\n requestContext: RequestContext | undefined,\n clientResourceId: string | undefined,\n): string | undefined {\n const contextResourceId = requestContext?.get(MASTRA_RESOURCE_ID_KEY) as string | undefined;\n return contextResourceId || clientResourceId;\n}\n\n/**\n * Returns the resource id resolved from the request context alone (set via\n * `mapUserToResourceId` or the `x-resource-id` header), ignoring any\n * client-provided value. Its presence indicates a resource-scoped caller;\n * its absence indicates a privileged/service context.\n */\nexport function getContextResourceId(requestContext: RequestContext | undefined): string | undefined {\n return requestContext?.get(MASTRA_RESOURCE_ID_KEY) as string | undefined;\n}\n\n/**\n * Ensures a memory request has a resolvable resource ID. The body's\n * `memory.resource` is optional so authenticated setups can rely on the\n * server-derived resource ID (MASTRA_RESOURCE_ID_KEY set via mapUserToResourceId).\n * When neither the body nor the request context provides one, reject with a\n * clear 400 instead of failing deep inside agent execution.\n */\nexport function requireEffectiveResourceId(\n effectiveResourceId: string | undefined,\n): asserts effectiveResourceId is string {\n if (!effectiveResourceId) {\n throw new HTTPException(400, {\n message:\n 'A resource ID is required when using memory. Provide memory.resource in the request body, or configure server auth with mapUserToResourceId to derive it from the authenticated user.',\n });\n }\n}\n\n/**\n * Gets the effective threadId, preferring the reserved key from requestContext\n * over client-provided values for security.\n */\nexport function getEffectiveThreadId(\n requestContext: RequestContext | undefined,\n clientThreadId: string | undefined,\n): string | undefined {\n const contextThreadId = requestContext?.get(MASTRA_THREAD_ID_KEY) as string | undefined;\n return contextThreadId || clientThreadId;\n}\n\n/**\n * Validates that a thread belongs to the specified resourceId.\n * Throws 403 if the thread exists but belongs to a different resource.\n * Threads with no resourceId are accessible to all (shared threads).\n */\nexport async function validateThreadOwnership(\n thread: { resourceId?: string | null } | null | undefined,\n effectiveResourceId: string | undefined,\n): Promise<void> {\n if (thread && effectiveResourceId && thread.resourceId && thread.resourceId !== effectiveResourceId) {\n throw new HTTPException(403, { message: 'Access denied: thread belongs to a different resource' });\n }\n}\n\n/**\n * Validates both coarse resource ownership and fine-grained thread access.\n * FGA enforcement is a no-op when no FGA provider is configured.\n */\nexport async function enforceThreadAccess({\n mastra,\n requestContext,\n threadId,\n thread,\n effectiveResourceId,\n permission = MastraFGAPermissions.MEMORY_READ,\n}: {\n mastra: any;\n requestContext?: RequestContext;\n threadId: string;\n thread?: { resourceId?: string | null } | null;\n effectiveResourceId?: string;\n permission?: MastraFGAPermissionInput;\n}): Promise<void> {\n await validateThreadOwnership(thread, effectiveResourceId);\n\n const fgaProvider = mastra?.getServer?.()?.fga;\n if (!fgaProvider) {\n return;\n }\n\n const user = requestContext?.get('user');\n if (!user || typeof user !== 'object') {\n throw new HTTPException(403, { message: 'FGA authorization denied: authenticated user is required' });\n }\n\n await MastraMemory.checkThreadFGA({\n mastra,\n user: user as { id: string; [key: string]: unknown },\n threadId,\n resourceId: thread?.resourceId ?? effectiveResourceId,\n requestContext,\n permission,\n });\n}\n\n/**\n * Validates that a workflow run belongs to the specified resourceId.\n * Throws 403 if the run exists but belongs to a different resource.\n */\nexport async function validateRunOwnership(\n run: { resourceId?: string | null } | null | undefined,\n effectiveResourceId: string | undefined,\n): Promise<void> {\n if (run && effectiveResourceId && run.resourceId && run.resourceId !== effectiveResourceId) {\n throw new HTTPException(403, { message: 'Access denied: workflow run belongs to a different resource' });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,MAAM,uBAAuB;CAC3B,eAAe;CACf,eAAe;CACf,gBAAgB;CAChB,aAAa;CACb,eAAe;CACf,aAAa;CACb,cAAc;CACd,eAAe;CACf,YAAY;CACZ,uBAAuB;CACvB,wBAAwB;CACxB,mBAAmB;CACnB,gBAAgB;AAClB;AAEA,MAAM,kBAAmBA,qBAAe;AAQxC,MAAa,uBACX,mBAAmB,OAAO,KAAK,eAAe,CAAC,CAAC,SAAS,IAAI,kBAAkB;;;ACrDjF,SAAgB,aAAa,MAA+B;CAC1D,MAAM,gBAAgB,OAAO,QAAQ,IAAI,CAAC,CAAC,QAAgC,KAAK,CAAC,KAAK,WAAW;EAC/F,IAAI,CAAC,OACH,IAAI,OAAO,aAAa,IAAI;EAE9B,OAAO;CACT,GAAG,CAAC,CAAC;CAEL,IAAI,OAAO,KAAK,aAAa,CAAC,CAAC,SAAS,GACtC,MAAM,IAAIC,uBAAAA,cAAc,KAAK,EAAE,SAAS,OAAO,OAAO,aAAa,CAAC,CAAC,GAAG,CAAC;AAE7E;;;;;;AAOA,SA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QACA,gBACA,UACA,QACA,qBACA,aAAa,qBAAqB,eAQlB;CAChB,MAAM,wBAAwB,QAAQ,mBAAmB;CAGzD,IAAI,CADgB,QAAQ,YAAY,CAAC,EAAE,KAEzC;CAGF,MAAM,OAAO,gBAAgB,IAAI,MAAM;CACvC,IAAI,CAAC,QAAQ,OAAO,SAAS,UAC3B,MAAM,IAAIA,uBAAAA,cAAc,KAAK,EAAE,SAAS,2DAA2D,CAAC;CAGtG,MAAME,oBAAAA,aAAa,eAAe;EAChC;EACM;EACN;EACA,YAAY,QAAQ,cAAc;EAClC;EACA;CACF,CAAC;AACH;;;;;AAMA,eAAsB,qBACpB,KACA,qBACe;CACf,IAAI,OAAO,uBAAuB,IAAI,cAAc,IAAI,eAAe,qBACrE,MAAM,IAAIF,uBAAAA,cAAc,KAAK,EAAE,SAAS,8DAA8D,CAAC;AAE3G"}
@@ -1,5 +1,5 @@
1
1
  import { t as HTTPException } from "./http-exception-CyfxZB6W.js";
2
- import "./constants-0jFCWoex.js";
2
+ import { o as MASTRA_RESOURCE_ID_KEY } from "./constants-0jFCWoex.js";
3
3
  import * as authEE from "@mastra/core/auth/ee";
4
4
  import { MastraMemory } from "@mastra/core/memory";
5
5
  //#region src/server/fga-permissions.ts
@@ -90,6 +90,15 @@ function getEffectiveResourceId(requestContext, clientResourceId) {
90
90
  return requestContext?.get("mastra__resourceId") || clientResourceId;
91
91
  }
92
92
  /**
93
+ * Returns the resource id resolved from the request context alone (set via
94
+ * `mapUserToResourceId` or the `x-resource-id` header), ignoring any
95
+ * client-provided value. Its presence indicates a resource-scoped caller;
96
+ * its absence indicates a privileged/service context.
97
+ */
98
+ function getContextResourceId(requestContext) {
99
+ return requestContext?.get(MASTRA_RESOURCE_ID_KEY);
100
+ }
101
+ /**
93
102
  * Ensures a memory request has a resolvable resource ID. The body's
94
103
  * `memory.resource` is optional so authenticated setups can rely on the
95
104
  * server-derived resource ID (MASTRA_RESOURCE_ID_KEY set via mapUserToResourceId).
@@ -140,6 +149,6 @@ async function validateRunOwnership(run, effectiveResourceId) {
140
149
  if (run && effectiveResourceId && run.resourceId && run.resourceId !== effectiveResourceId) throw new HTTPException(403, { message: "Access denied: workflow run belongs to a different resource" });
141
150
  }
142
151
  //#endregion
143
- export { parsePerPage as a, validateBody as c, MastraFGAPermissions as d, parseFilters as i, validateRunOwnership as l, getEffectiveResourceId as n, requireEffectiveResourceId as o, getEffectiveThreadId as r, sanitizeBody as s, enforceThreadAccess as t, validateThreadOwnership as u };
152
+ export { parseFilters as a, sanitizeBody as c, validateThreadOwnership as d, MastraFGAPermissions as f, getEffectiveThreadId as i, validateBody as l, getContextResourceId as n, parsePerPage as o, getEffectiveResourceId as r, requireEffectiveResourceId as s, enforceThreadAccess as t, validateRunOwnership as u };
144
153
 
145
- //# sourceMappingURL=utils-Hz8Hc2cd.js.map
154
+ //# sourceMappingURL=utils-CMWGBd0O.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils-CMWGBd0O.js","names":[],"sources":["../src/server/fga-permissions.ts","../src/server/handlers/utils.ts"],"sourcesContent":["/**\n * Safe re-export of `MastraFGAPermissions` from `@mastra/core/auth/ee`.\n *\n * Why this shim exists:\n * `MastraFGAPermissions` was introduced in `@mastra/core@1.32.0`. Earlier\n * versions of `@mastra/core` ship `@mastra/core/auth/ee` but do not export\n * this constant. A direct named import (`import { MastraFGAPermissions }\n * from '@mastra/core/auth/ee'`) fails at ESM link time when this version\n * of `@mastra/server` is paired with `@mastra/core < 1.32.0`, taking the\n * entire user bundle down before any code runs.\n *\n * A namespace import tolerates missing names — `ns.MissingExport` is just\n * `undefined`, no link-time error. We then expose the permission map.\n *\n * Fallback values:\n * If the consuming `@mastra/core` does not export `MastraFGAPermissions`,\n * we substitute a hardcoded map of the canonical permission strings used\n * by routes in `@mastra/server`. This preserves the explicit RBAC\n * permission overrides those routes already had as string literals in\n * `@mastra/server@1.31.0` (e.g. `requiresPermission: \"agents:execute\"`\n * on `/v1/responses`). Without this fallback, `requiresPermission` would\n * be `undefined` on old core and the auth layer would derive the wrong\n * permission from the route path (e.g. `v1:write` instead of\n * `agents:execute`), breaking RBAC users who upgrade `@mastra/server`\n * but stay on `@mastra/core@1.31.0`.\n *\n * Once the consuming `@mastra/core` is on `1.32.0+` the values are real\n * and behaviour is identical to a direct named import.\n */\n\nimport * as authEE from '@mastra/core/auth/ee';\n\n// Canonical strings for the FGA permission keys actually referenced by\n// `@mastra/server` source. Mirrors `MastraFGAPermissions` in\n// `@mastra/core@1.32.0+` for these specific keys, and matches the string\n// literals previously hardcoded on the same routes in `@mastra/server@1.31.0`.\nconst FALLBACK_PERMISSIONS = {\n AGENTS_CREATE: 'agents:create',\n AGENTS_DELETE: 'agents:delete',\n AGENTS_EXECUTE: 'agents:execute',\n AGENTS_READ: 'agents:read',\n MEMORY_DELETE: 'memory:delete',\n MEMORY_READ: 'memory:read',\n MEMORY_WRITE: 'memory:write',\n TOOLS_EXECUTE: 'tools:execute',\n TOOLS_READ: 'tools:read',\n STORED_WORKFLOWS_READ: 'stored-workflows:read',\n STORED_WORKFLOWS_WRITE: 'stored-workflows:write',\n WORKFLOWS_EXECUTE: 'workflows:execute',\n WORKFLOWS_READ: 'workflows:read',\n} as const;\n\nconst realPermissions = (authEE as any).MastraFGAPermissions;\n\n// Typed as `any` on purpose: consumers of `@mastra/server` may run their\n// typecheck against a `@mastra/core` that doesn't export `MastraFGAPermissions`\n// (anything < 1.32.0). Pinning to the real type would push that name into the\n// emitted `.d.ts` and break downstream typecheck. `any` lets the property\n// accesses (`MastraFGAPermissions.AGENTS_READ`) flow through cleanly on every\n// supported core.\nexport const MastraFGAPermissions: any =\n realPermissions && Object.keys(realPermissions).length > 0 ? realPermissions : FALLBACK_PERMISSIONS;\n","import type { MastraFGAPermissionInput } from '@mastra/core/auth/ee';\nimport type { RequestContext } from '@mastra/core/di';\nimport { MastraMemory } from '@mastra/core/memory';\nimport { MASTRA_RESOURCE_ID_KEY, MASTRA_THREAD_ID_KEY } from '../constants';\nimport { MastraFGAPermissions } from '../fga-permissions';\nimport { HTTPException } from '../http-exception';\n\n// Validation helper\nexport function validateBody(body: Record<string, unknown>) {\n const errorResponse = Object.entries(body).reduce<Record<string, string>>((acc, [key, value]) => {\n if (!value) {\n acc[key] = `Argument \"${key}\" is required`;\n }\n return acc;\n }, {});\n\n if (Object.keys(errorResponse).length > 0) {\n throw new HTTPException(400, { message: Object.values(errorResponse)[0] });\n }\n}\n\n/**\n * sanitizes the body by removing disallowed keys.\n * @param body body to sanitize\n * @param disallowedKeys keys to remove from the body\n */\nexport function sanitizeBody(body: Record<string, unknown>, disallowedKeys: string[]) {\n for (const key of disallowedKeys) {\n if (key in body) {\n delete body[key];\n }\n }\n}\n\nexport function parsePerPage(\n value: string | undefined,\n defaultValue: number = 100,\n max: number = 1000,\n): number | false {\n const normalized = (value || '').trim().toLowerCase();\n // Handle explicit false to bypass pagination\n if (normalized === 'false') {\n return false;\n }\n const parsed = parseInt(value || String(defaultValue), 10);\n if (isNaN(parsed)) return defaultValue;\n return Math.min(max, Math.max(1, parsed));\n}\n\n/**\n * Parses filter query parameters into a key-value object.\n */\nexport function parseFilters(filters: string | string[] | undefined): Record<string, string> | undefined {\n if (!filters) return undefined;\n\n return Object.fromEntries(\n (Array.isArray(filters) ? filters : [filters]).map((attr: string) => {\n const [key, ...valueParts] = attr.split(':');\n const value = valueParts.join(':'); // ✅ Handles colons in values\n return [key, value];\n }),\n );\n}\n\n// ============================================================================\n// Authorization Utilities\n// ============================================================================\n\n/**\n * Gets the effective resourceId, preferring the reserved key from requestContext\n * over client-provided values for security.\n */\nexport function getEffectiveResourceId(\n requestContext: RequestContext | undefined,\n clientResourceId: string | undefined,\n): string | undefined {\n const contextResourceId = requestContext?.get(MASTRA_RESOURCE_ID_KEY) as string | undefined;\n return contextResourceId || clientResourceId;\n}\n\n/**\n * Returns the resource id resolved from the request context alone (set via\n * `mapUserToResourceId` or the `x-resource-id` header), ignoring any\n * client-provided value. Its presence indicates a resource-scoped caller;\n * its absence indicates a privileged/service context.\n */\nexport function getContextResourceId(requestContext: RequestContext | undefined): string | undefined {\n return requestContext?.get(MASTRA_RESOURCE_ID_KEY) as string | undefined;\n}\n\n/**\n * Ensures a memory request has a resolvable resource ID. The body's\n * `memory.resource` is optional so authenticated setups can rely on the\n * server-derived resource ID (MASTRA_RESOURCE_ID_KEY set via mapUserToResourceId).\n * When neither the body nor the request context provides one, reject with a\n * clear 400 instead of failing deep inside agent execution.\n */\nexport function requireEffectiveResourceId(\n effectiveResourceId: string | undefined,\n): asserts effectiveResourceId is string {\n if (!effectiveResourceId) {\n throw new HTTPException(400, {\n message:\n 'A resource ID is required when using memory. Provide memory.resource in the request body, or configure server auth with mapUserToResourceId to derive it from the authenticated user.',\n });\n }\n}\n\n/**\n * Gets the effective threadId, preferring the reserved key from requestContext\n * over client-provided values for security.\n */\nexport function getEffectiveThreadId(\n requestContext: RequestContext | undefined,\n clientThreadId: string | undefined,\n): string | undefined {\n const contextThreadId = requestContext?.get(MASTRA_THREAD_ID_KEY) as string | undefined;\n return contextThreadId || clientThreadId;\n}\n\n/**\n * Validates that a thread belongs to the specified resourceId.\n * Throws 403 if the thread exists but belongs to a different resource.\n * Threads with no resourceId are accessible to all (shared threads).\n */\nexport async function validateThreadOwnership(\n thread: { resourceId?: string | null } | null | undefined,\n effectiveResourceId: string | undefined,\n): Promise<void> {\n if (thread && effectiveResourceId && thread.resourceId && thread.resourceId !== effectiveResourceId) {\n throw new HTTPException(403, { message: 'Access denied: thread belongs to a different resource' });\n }\n}\n\n/**\n * Validates both coarse resource ownership and fine-grained thread access.\n * FGA enforcement is a no-op when no FGA provider is configured.\n */\nexport async function enforceThreadAccess({\n mastra,\n requestContext,\n threadId,\n thread,\n effectiveResourceId,\n permission = MastraFGAPermissions.MEMORY_READ,\n}: {\n mastra: any;\n requestContext?: RequestContext;\n threadId: string;\n thread?: { resourceId?: string | null } | null;\n effectiveResourceId?: string;\n permission?: MastraFGAPermissionInput;\n}): Promise<void> {\n await validateThreadOwnership(thread, effectiveResourceId);\n\n const fgaProvider = mastra?.getServer?.()?.fga;\n if (!fgaProvider) {\n return;\n }\n\n const user = requestContext?.get('user');\n if (!user || typeof user !== 'object') {\n throw new HTTPException(403, { message: 'FGA authorization denied: authenticated user is required' });\n }\n\n await MastraMemory.checkThreadFGA({\n mastra,\n user: user as { id: string; [key: string]: unknown },\n threadId,\n resourceId: thread?.resourceId ?? effectiveResourceId,\n requestContext,\n permission,\n });\n}\n\n/**\n * Validates that a workflow run belongs to the specified resourceId.\n * Throws 403 if the run exists but belongs to a different resource.\n */\nexport async function validateRunOwnership(\n run: { resourceId?: string | null } | null | undefined,\n effectiveResourceId: string | undefined,\n): Promise<void> {\n if (run && effectiveResourceId && run.resourceId && run.resourceId !== effectiveResourceId) {\n throw new HTTPException(403, { message: 'Access denied: workflow run belongs to a different resource' });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,MAAM,uBAAuB;CAC3B,eAAe;CACf,eAAe;CACf,gBAAgB;CAChB,aAAa;CACb,eAAe;CACf,aAAa;CACb,cAAc;CACd,eAAe;CACf,YAAY;CACZ,uBAAuB;CACvB,wBAAwB;CACxB,mBAAmB;CACnB,gBAAgB;AAClB;AAEA,MAAM,kBAAmB,OAAe;AAQxC,MAAa,uBACX,mBAAmB,OAAO,KAAK,eAAe,CAAC,CAAC,SAAS,IAAI,kBAAkB;;;ACrDjF,SAAgB,aAAa,MAA+B;CAC1D,MAAM,gBAAgB,OAAO,QAAQ,IAAI,CAAC,CAAC,QAAgC,KAAK,CAAC,KAAK,WAAW;EAC/F,IAAI,CAAC,OACH,IAAI,OAAO,aAAa,IAAI;EAE9B,OAAO;CACT,GAAG,CAAC,CAAC;CAEL,IAAI,OAAO,KAAK,aAAa,CAAC,CAAC,SAAS,GACtC,MAAM,IAAI,cAAc,KAAK,EAAE,SAAS,OAAO,OAAO,aAAa,CAAC,CAAC,GAAG,CAAC;AAE7E;;;;;;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,qBACA,aAAa,qBAAqB,eAQlB;CAChB,MAAM,wBAAwB,QAAQ,mBAAmB;CAGzD,IAAI,CADgB,QAAQ,YAAY,CAAC,EAAE,KAEzC;CAGF,MAAM,OAAO,gBAAgB,IAAI,MAAM;CACvC,IAAI,CAAC,QAAQ,OAAO,SAAS,UAC3B,MAAM,IAAI,cAAc,KAAK,EAAE,SAAS,2DAA2D,CAAC;CAGtG,MAAM,aAAa,eAAe;EAChC;EACM;EACN;EACA,YAAY,QAAQ,cAAc;EAClC;EACA;CACF,CAAC;AACH;;;;;AAMA,eAAsB,qBACpB,KACA,qBACe;CACf,IAAI,OAAO,uBAAuB,IAAI,cAAc,IAAI,eAAe,qBACrE,MAAM,IAAI,cAAc,KAAK,EAAE,SAAS,8DAA8D,CAAC;AAE3G"}
@@ -1,6 +1,6 @@
1
1
  import { t as HTTPException } from "./http-exception-CyfxZB6W.js";
2
- import { n as standardSchemaToJSONSchema, r as toStandardSchema } from "./schema-Bv9OdW1f-DLSJSqQv.js";
3
- import "./schema-CGeYTFwm.js";
2
+ import { n as standardSchemaToJSONSchema, r as toStandardSchema } from "./schema-D_ikovK6-BzTeMhWf.js";
3
+ import "./schema-BF_cZG0Y.js";
4
4
  import { o as MASTRA_RESOURCE_ID_KEY } from "./constants-0jFCWoex.js";
5
5
  //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/superjson/2.2.6/b5fefaeae5105e92d752f15cd158913d848e5075a9f80278488919f0941a70dd/node_modules/superjson/dist/double-indexed-kv.js
6
6
  var DoubleIndexedKV = class {
@@ -907,4 +907,4 @@ function convertInstructionsToString(message) {
907
907
  //#endregion
908
908
  export { getWorkflowInfo as a, toSlug as c, getStoredResourceScope as i, stringify as l, assertStoredResourceScope as n, normalizeRoutePath as o, convertInstructionsToString as r, scopeStoredResourceMetadata as s, WorkflowRegistry as t };
909
909
 
910
- //# sourceMappingURL=utils-B2vd77Fi.js.map
910
+ //# sourceMappingURL=utils-Duk4hfT_.js.map