@mastra/server 0.0.0-span-scorring-test-20251124132129 → 0.0.0-standard-schema-20260123120255

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 (399) hide show
  1. package/CHANGELOG.md +1811 -32
  2. package/README.md +2 -2
  3. package/a2a/store.d.ts +1 -0
  4. package/auth.d.ts +1 -0
  5. package/dist/{chunk-SHWNNZBL.js → chunk-24SISJRB.js} +13 -17
  6. package/dist/chunk-24SISJRB.js.map +1 -0
  7. package/dist/{chunk-G7BPNX2V.js → chunk-2JNW2CLE.js} +64 -14
  8. package/dist/chunk-2JNW2CLE.js.map +1 -0
  9. package/dist/chunk-2UHOWYFV.js +184 -0
  10. package/dist/chunk-2UHOWYFV.js.map +1 -0
  11. package/dist/chunk-3W67K7YE.js +13 -0
  12. package/dist/chunk-3W67K7YE.js.map +1 -0
  13. package/dist/chunk-4HFYR562.cjs +82 -0
  14. package/dist/chunk-4HFYR562.cjs.map +1 -0
  15. package/dist/chunk-55TH4ME5.js +170 -0
  16. package/dist/chunk-55TH4ME5.js.map +1 -0
  17. package/dist/{chunk-Z36N2OQA.cjs → chunk-55XIQCGI.cjs} +358 -137
  18. package/dist/chunk-55XIQCGI.cjs.map +1 -0
  19. package/dist/{chunk-QGWCNTG6.cjs → chunk-5NQ3GWUJ.cjs} +493 -172
  20. package/dist/chunk-5NQ3GWUJ.cjs.map +1 -0
  21. package/dist/{chunk-QU6N55W6.cjs → chunk-6G2RQWKA.cjs} +17 -21
  22. package/dist/chunk-6G2RQWKA.cjs.map +1 -0
  23. package/dist/{chunk-KB5NSROG.cjs → chunk-6NLJ5YC3.cjs} +47 -42
  24. package/dist/chunk-6NLJ5YC3.cjs.map +1 -0
  25. package/dist/chunk-6OFKRQQL.js +45 -0
  26. package/dist/chunk-6OFKRQQL.js.map +1 -0
  27. package/dist/{chunk-UXGQZUYZ.js → chunk-7AINN3FK.js} +13 -3
  28. package/dist/chunk-7AINN3FK.js.map +1 -0
  29. package/dist/chunk-7D3UAMQM.cjs +82 -0
  30. package/dist/chunk-7D3UAMQM.cjs.map +1 -0
  31. package/dist/{chunk-I5VZ5SKG.js → chunk-7ERB6H6K.js} +17 -11
  32. package/dist/chunk-7ERB6H6K.js.map +1 -0
  33. package/dist/{chunk-NDFAQBQD.cjs → chunk-AEMLCRS5.cjs} +514 -166
  34. package/dist/chunk-AEMLCRS5.cjs.map +1 -0
  35. package/dist/chunk-BLCHLNBT.js +442 -0
  36. package/dist/chunk-BLCHLNBT.js.map +1 -0
  37. package/dist/{chunk-ZLRTFRL4.js → chunk-BSOLG32W.js} +407 -91
  38. package/dist/chunk-BSOLG32W.js.map +1 -0
  39. package/dist/{chunk-ASZUOBKV.js → chunk-CQUWREB2.js} +42 -20
  40. package/dist/chunk-CQUWREB2.js.map +1 -0
  41. package/dist/chunk-CRCXQW5R.cjs +47 -0
  42. package/dist/chunk-CRCXQW5R.cjs.map +1 -0
  43. package/dist/{chunk-3R5EV3HV.js → chunk-CT7S7VRG.js} +36 -29
  44. package/dist/chunk-CT7S7VRG.js.map +1 -0
  45. package/dist/{chunk-FAQICBMH.js → chunk-D23WBCJ6.js} +70 -7
  46. package/dist/chunk-D23WBCJ6.js.map +1 -0
  47. package/dist/{chunk-R4M3BSUG.js → chunk-DOU5IGJB.js} +26 -10
  48. package/dist/chunk-DOU5IGJB.js.map +1 -0
  49. package/dist/chunk-DUTGH2DM.js +31748 -0
  50. package/dist/chunk-DUTGH2DM.js.map +1 -0
  51. package/dist/{chunk-5PONYNYP.cjs → chunk-E2SZSFGZ.cjs} +20 -17
  52. package/dist/chunk-E2SZSFGZ.cjs.map +1 -0
  53. package/dist/chunk-EH45MGLR.cjs +322 -0
  54. package/dist/chunk-EH45MGLR.cjs.map +1 -0
  55. package/dist/chunk-FRRHYZR6.cjs +88 -0
  56. package/dist/chunk-FRRHYZR6.cjs.map +1 -0
  57. package/dist/{chunk-ZULZ2752.js → chunk-FXW7MD4U.js} +3 -3
  58. package/dist/chunk-FXW7MD4U.js.map +1 -0
  59. package/dist/{chunk-YJ3VDL3Z.cjs → chunk-GGAV65A7.cjs} +37 -31
  60. package/dist/chunk-GGAV65A7.cjs.map +1 -0
  61. package/dist/{chunk-PKRHEXX7.js → chunk-HT4LP3BO.js} +19 -18
  62. package/dist/chunk-HT4LP3BO.js.map +1 -0
  63. package/dist/chunk-HZINLMHL.cjs +252 -0
  64. package/dist/chunk-HZINLMHL.cjs.map +1 -0
  65. package/dist/{chunk-RQK4FQUD.js → chunk-IGXRQWNN.js} +6 -48
  66. package/dist/chunk-IGXRQWNN.js.map +1 -0
  67. package/dist/chunk-IROUDQSO.js +246 -0
  68. package/dist/chunk-IROUDQSO.js.map +1 -0
  69. package/dist/chunk-IS3HHGL4.js +250 -0
  70. package/dist/chunk-IS3HHGL4.js.map +1 -0
  71. package/dist/chunk-JJLEVKG7.js +576 -0
  72. package/dist/chunk-JJLEVKG7.js.map +1 -0
  73. package/dist/{chunk-UJNHKFBR.cjs → chunk-K34R4R2T.cjs} +72 -6
  74. package/dist/chunk-K34R4R2T.cjs.map +1 -0
  75. package/dist/chunk-K4HSW5ZF.js +77 -0
  76. package/dist/chunk-K4HSW5ZF.js.map +1 -0
  77. package/dist/{chunk-ZODCSH2W.cjs → chunk-L2U75ERO.cjs} +54 -32
  78. package/dist/chunk-L2U75ERO.cjs.map +1 -0
  79. package/dist/chunk-L2VZFGWH.cjs +31787 -0
  80. package/dist/chunk-L2VZFGWH.cjs.map +1 -0
  81. package/dist/chunk-L7LB66KK.cjs +450 -0
  82. package/dist/chunk-L7LB66KK.cjs.map +1 -0
  83. package/dist/chunk-LJ6YRVDI.cjs +15 -0
  84. package/dist/chunk-LJ6YRVDI.cjs.map +1 -0
  85. package/dist/{chunk-2NW6POYK.cjs → chunk-MCYD5LW7.cjs} +19 -18
  86. package/dist/chunk-MCYD5LW7.cjs.map +1 -0
  87. package/dist/{chunk-6DTV6NEW.js → chunk-MF4PZE2D.js} +11 -8
  88. package/dist/chunk-MF4PZE2D.js.map +1 -0
  89. package/dist/{chunk-35NT4TMQ.cjs → chunk-MP6TNZXA.cjs} +66 -55
  90. package/dist/chunk-MP6TNZXA.cjs.map +1 -0
  91. package/dist/chunk-MPM2W4IS.js +312 -0
  92. package/dist/chunk-MPM2W4IS.js.map +1 -0
  93. package/dist/chunk-NE4CLM6P.cjs +190 -0
  94. package/dist/chunk-NE4CLM6P.cjs.map +1 -0
  95. package/dist/chunk-NL6ELCFS.cjs +603 -0
  96. package/dist/chunk-NL6ELCFS.cjs.map +1 -0
  97. package/dist/{chunk-MWQQRVQC.cjs → chunk-OD6Y7FEM.cjs} +34 -13
  98. package/dist/chunk-OD6Y7FEM.cjs.map +1 -0
  99. package/dist/chunk-OS7SAIRA.js +250 -0
  100. package/dist/chunk-OS7SAIRA.js.map +1 -0
  101. package/dist/chunk-PWXUI3OG.cjs +252 -0
  102. package/dist/chunk-PWXUI3OG.cjs.map +1 -0
  103. package/dist/{chunk-UOFV2ZCI.js → chunk-QAXO2LQT.js} +316 -96
  104. package/dist/chunk-QAXO2LQT.js.map +1 -0
  105. package/dist/chunk-RIX6WEJ2.js +83 -0
  106. package/dist/chunk-RIX6WEJ2.js.map +1 -0
  107. package/dist/{chunk-FXDZLX2Y.js → chunk-RRVA4RVW.js} +37 -26
  108. package/dist/chunk-RRVA4RVW.js.map +1 -0
  109. package/dist/{chunk-LPM6BBAX.cjs → chunk-SLDAFSKJ.cjs} +5 -56
  110. package/dist/chunk-SLDAFSKJ.cjs.map +1 -0
  111. package/dist/{chunk-2PLXW4ZX.cjs → chunk-T6YYVQHJ.cjs} +74 -74
  112. package/dist/chunk-T6YYVQHJ.cjs.map +1 -0
  113. package/dist/chunk-TF4LSD27.cjs +180 -0
  114. package/dist/chunk-TF4LSD27.cjs.map +1 -0
  115. package/dist/chunk-TM6IOINJ.cjs +252 -0
  116. package/dist/chunk-TM6IOINJ.cjs.map +1 -0
  117. package/dist/{chunk-ICANWSEW.js → chunk-UVE6SV6I.js} +25 -20
  118. package/dist/chunk-UVE6SV6I.js.map +1 -0
  119. package/dist/{chunk-V5WWQN7P.cjs → chunk-UWYAL2Z3.cjs} +13 -2
  120. package/dist/chunk-UWYAL2Z3.cjs.map +1 -0
  121. package/dist/{chunk-UZ6CYAOG.cjs → chunk-VES6QKOW.cjs} +64 -14
  122. package/dist/chunk-VES6QKOW.cjs.map +1 -0
  123. package/dist/{chunk-VQAT5HX6.js → chunk-W7HAZD2A.js} +458 -116
  124. package/dist/chunk-W7HAZD2A.js.map +1 -0
  125. package/dist/{chunk-4ECGVOJZ.cjs → chunk-WNQUNLRT.cjs} +40 -33
  126. package/dist/chunk-WNQUNLRT.cjs.map +1 -0
  127. package/dist/chunk-XKLJYRAA.js +77 -0
  128. package/dist/chunk-XKLJYRAA.js.map +1 -0
  129. package/dist/{dist-G2BYZJOC.cjs → dist-2GQKYJ34.cjs} +28 -28
  130. package/dist/dist-2GQKYJ34.cjs.map +1 -0
  131. package/dist/{dist-X7XR3M3Z.js → dist-C6BUHOEE.js} +3 -3
  132. package/dist/dist-C6BUHOEE.js.map +1 -0
  133. package/dist/dist-DGOEFPQD.cjs +16 -0
  134. package/dist/{dist-P4MXBQ3U.cjs.map → dist-DGOEFPQD.cjs.map} +1 -1
  135. package/dist/dist-FT2OR7OS.js +3 -0
  136. package/dist/{dist-YREX2TJT.js.map → dist-FT2OR7OS.js.map} +1 -1
  137. package/dist/{dist-XVBSOGFK.js → dist-G4CR4WYY.js} +3 -3
  138. package/dist/dist-G4CR4WYY.js.map +1 -0
  139. package/dist/{dist-PQZUVLPC.js → dist-G5QFRYLQ.js} +3 -3
  140. package/dist/dist-G5QFRYLQ.js.map +1 -0
  141. package/dist/{dist-4MVGNSRL.cjs → dist-JPQK5S4K.cjs} +20 -20
  142. package/dist/dist-JPQK5S4K.cjs.map +1 -0
  143. package/dist/{dist-R7WYX6LC.js → dist-MIDN25GT.js} +3 -3
  144. package/dist/dist-MIDN25GT.js.map +1 -0
  145. package/dist/{dist-RFMYFILX.cjs → dist-SNKH6NS2.cjs} +30 -30
  146. package/dist/dist-SNKH6NS2.cjs.map +1 -0
  147. package/dist/{dist-FZYCV3VB.cjs → dist-XBQPKAO4.cjs} +26 -26
  148. package/dist/dist-XBQPKAO4.cjs.map +1 -0
  149. package/dist/docs/README.md +31 -0
  150. package/dist/docs/SKILL.md +32 -0
  151. package/dist/docs/SOURCE_MAP.json +6 -0
  152. package/dist/docs/server/01-custom-adapters.md +380 -0
  153. package/dist/docs/server/02-reference.md +819 -0
  154. package/dist/server/auth/defaults.d.ts +3 -0
  155. package/dist/server/auth/defaults.d.ts.map +1 -0
  156. package/dist/server/auth/helpers.d.ts +14 -0
  157. package/dist/server/auth/helpers.d.ts.map +1 -0
  158. package/dist/server/auth/index.cjs +44 -0
  159. package/dist/server/auth/index.cjs.map +1 -0
  160. package/dist/server/auth/index.d.ts +3 -0
  161. package/dist/server/auth/index.d.ts.map +1 -0
  162. package/dist/server/auth/index.js +3 -0
  163. package/dist/server/auth/index.js.map +1 -0
  164. package/dist/server/auth/path-pattern.d.ts +43 -0
  165. package/dist/server/auth/path-pattern.d.ts.map +1 -0
  166. package/dist/server/handlers/a2a.cjs +9 -9
  167. package/dist/server/handlers/a2a.d.ts +34 -420
  168. package/dist/server/handlers/a2a.d.ts.map +1 -1
  169. package/dist/server/handlers/a2a.js +1 -1
  170. package/dist/server/handlers/agent-builder.cjs +16 -28
  171. package/dist/server/handlers/agent-builder.d.ts +154 -460
  172. package/dist/server/handlers/agent-builder.d.ts.map +1 -1
  173. package/dist/server/handlers/agent-builder.js +1 -1
  174. package/dist/server/handlers/agent-versions.cjs +60 -0
  175. package/dist/server/handlers/agent-versions.cjs.map +1 -0
  176. package/dist/server/handlers/agent-versions.d.ts +425 -0
  177. package/dist/server/handlers/agent-versions.d.ts.map +1 -0
  178. package/dist/server/handlers/agent-versions.js +3 -0
  179. package/dist/server/handlers/agent-versions.js.map +1 -0
  180. package/dist/server/handlers/agents.cjs +43 -23
  181. package/dist/server/handlers/agents.d.ts +362 -2912
  182. package/dist/server/handlers/agents.d.ts.map +1 -1
  183. package/dist/server/handlers/agents.js +1 -1
  184. package/dist/server/handlers/error.cjs +6 -2
  185. package/dist/server/handlers/error.d.ts +22 -0
  186. package/dist/server/handlers/error.d.ts.map +1 -1
  187. package/dist/server/handlers/error.js +1 -1
  188. package/dist/server/handlers/logs.cjs +4 -4
  189. package/dist/server/handlers/logs.d.ts +63 -111
  190. package/dist/server/handlers/logs.d.ts.map +1 -1
  191. package/dist/server/handlers/logs.js +1 -1
  192. package/dist/server/handlers/mcp.cjs +40 -0
  193. package/dist/server/handlers/mcp.cjs.map +1 -0
  194. package/dist/server/handlers/mcp.d.ts +92 -0
  195. package/dist/server/handlers/mcp.d.ts.map +1 -0
  196. package/dist/server/handlers/mcp.js +3 -0
  197. package/dist/server/handlers/mcp.js.map +1 -0
  198. package/dist/server/handlers/memory.cjs +28 -24
  199. package/dist/server/handlers/memory.d.ts +244 -756
  200. package/dist/server/handlers/memory.d.ts.map +1 -1
  201. package/dist/server/handlers/memory.js +1 -1
  202. package/dist/server/handlers/observability.cjs +7 -23
  203. package/dist/server/handlers/observability.d.ts +97 -114
  204. package/dist/server/handlers/observability.d.ts.map +1 -1
  205. package/dist/server/handlers/observability.js +1 -1
  206. package/dist/server/handlers/processors.cjs +20 -0
  207. package/dist/server/handlers/processors.cjs.map +1 -0
  208. package/dist/server/handlers/processors.d.ts +90 -0
  209. package/dist/server/handlers/processors.d.ts.map +1 -0
  210. package/dist/server/handlers/processors.js +3 -0
  211. package/dist/server/handlers/processors.js.map +1 -0
  212. package/dist/server/handlers/scores.cjs +7 -7
  213. package/dist/server/handlers/scores.d.ts +18 -54
  214. package/dist/server/handlers/scores.d.ts.map +1 -1
  215. package/dist/server/handlers/scores.js +1 -1
  216. package/dist/server/handlers/stored-agents.cjs +28 -0
  217. package/dist/server/handlers/stored-agents.cjs.map +1 -0
  218. package/dist/server/handlers/stored-agents.d.ts +214 -0
  219. package/dist/server/handlers/stored-agents.d.ts.map +1 -0
  220. package/dist/server/handlers/stored-agents.js +3 -0
  221. package/dist/server/handlers/stored-agents.js.map +1 -0
  222. package/dist/server/handlers/system.cjs +12 -0
  223. package/dist/server/handlers/system.cjs.map +1 -0
  224. package/dist/server/handlers/system.d.ts +7 -0
  225. package/dist/server/handlers/system.d.ts.map +1 -0
  226. package/dist/server/handlers/system.js +3 -0
  227. package/dist/server/handlers/system.js.map +1 -0
  228. package/dist/server/handlers/test-utils.cjs +2 -2
  229. package/dist/server/handlers/test-utils.cjs.map +1 -1
  230. package/dist/server/handlers/test-utils.d.ts +3 -3
  231. package/dist/server/handlers/test-utils.d.ts.map +1 -1
  232. package/dist/server/handlers/test-utils.js +2 -2
  233. package/dist/server/handlers/test-utils.js.map +1 -1
  234. package/dist/server/handlers/tools.cjs +6 -6
  235. package/dist/server/handlers/tools.d.ts +7 -36
  236. package/dist/server/handlers/tools.d.ts.map +1 -1
  237. package/dist/server/handlers/tools.js +1 -1
  238. package/dist/server/handlers/vector.cjs +13 -13
  239. package/dist/server/handlers/vector.d.ts +16 -57
  240. package/dist/server/handlers/vector.d.ts.map +1 -1
  241. package/dist/server/handlers/vector.js +1 -1
  242. package/dist/server/handlers/voice.cjs +8 -8
  243. package/dist/server/handlers/voice.d.ts +18 -56
  244. package/dist/server/handlers/voice.d.ts.map +1 -1
  245. package/dist/server/handlers/voice.js +1 -1
  246. package/dist/server/handlers/workflows.cjs +46 -26
  247. package/dist/server/handlers/workflows.d.ts +358 -533
  248. package/dist/server/handlers/workflows.d.ts.map +1 -1
  249. package/dist/server/handlers/workflows.js +1 -1
  250. package/dist/server/handlers.cjs +36 -31
  251. package/dist/server/handlers.d.ts +1 -0
  252. package/dist/server/handlers.d.ts.map +1 -1
  253. package/dist/server/handlers.js +12 -11
  254. package/dist/server/schemas/a2a.d.ts +56 -700
  255. package/dist/server/schemas/a2a.d.ts.map +1 -1
  256. package/dist/server/schemas/agent-builder.d.ts +26 -143
  257. package/dist/server/schemas/agent-builder.d.ts.map +1 -1
  258. package/dist/server/schemas/agent-versions.d.ts +379 -0
  259. package/dist/server/schemas/agent-versions.d.ts.map +1 -0
  260. package/dist/server/schemas/agents.d.ts +152 -1031
  261. package/dist/server/schemas/agents.d.ts.map +1 -1
  262. package/dist/server/schemas/common.d.ts +37 -103
  263. package/dist/server/schemas/common.d.ts.map +1 -1
  264. package/dist/server/schemas/logs.d.ts +38 -106
  265. package/dist/server/schemas/logs.d.ts.map +1 -1
  266. package/dist/server/schemas/mcp.d.ts +91 -0
  267. package/dist/server/schemas/mcp.d.ts.map +1 -0
  268. package/dist/server/schemas/memory.d.ts +288 -831
  269. package/dist/server/schemas/memory.d.ts.map +1 -1
  270. package/dist/server/schemas/processors.d.ts +162 -0
  271. package/dist/server/schemas/processors.d.ts.map +1 -0
  272. package/dist/server/schemas/scores.d.ts +31 -213
  273. package/dist/server/schemas/scores.d.ts.map +1 -1
  274. package/dist/server/schemas/stored-agents.d.ts +274 -0
  275. package/dist/server/schemas/stored-agents.d.ts.map +1 -0
  276. package/dist/server/schemas/system.d.ts +14 -0
  277. package/dist/server/schemas/system.d.ts.map +1 -0
  278. package/dist/server/schemas/vectors.d.ts +21 -81
  279. package/dist/server/schemas/vectors.d.ts.map +1 -1
  280. package/dist/server/schemas/workflows.d.ts +248 -382
  281. package/dist/server/schemas/workflows.d.ts.map +1 -1
  282. package/dist/server/server-adapter/index.cjs +441 -137
  283. package/dist/server/server-adapter/index.cjs.map +1 -1
  284. package/dist/server/server-adapter/index.d.ts +94 -16
  285. package/dist/server/server-adapter/index.d.ts.map +1 -1
  286. package/dist/server/server-adapter/index.js +325 -35
  287. package/dist/server/server-adapter/index.js.map +1 -1
  288. package/dist/server/server-adapter/redact.d.ts +26 -0
  289. package/dist/server/server-adapter/redact.d.ts.map +1 -0
  290. package/dist/server/server-adapter/routes/agent-builder.d.ts.map +1 -1
  291. package/dist/server/server-adapter/routes/agents.d.ts.map +1 -1
  292. package/dist/server/server-adapter/routes/index.d.ts +18 -7
  293. package/dist/server/server-adapter/routes/index.d.ts.map +1 -1
  294. package/dist/server/server-adapter/routes/mcp.d.ts +9 -0
  295. package/dist/server/server-adapter/routes/mcp.d.ts.map +1 -0
  296. package/dist/server/server-adapter/routes/memory.d.ts.map +1 -1
  297. package/dist/server/server-adapter/routes/processors.d.ts +3 -0
  298. package/dist/server/server-adapter/routes/processors.d.ts.map +1 -0
  299. package/dist/server/server-adapter/routes/route-builder.d.ts +66 -6
  300. package/dist/server/server-adapter/routes/route-builder.d.ts.map +1 -1
  301. package/dist/server/server-adapter/routes/stored-agents.d.ts +8 -0
  302. package/dist/server/server-adapter/routes/stored-agents.d.ts.map +1 -0
  303. package/dist/server/server-adapter/routes/system.d.ts +12 -0
  304. package/dist/server/server-adapter/routes/system.d.ts.map +1 -0
  305. package/dist/server/server-adapter/routes/workflows.d.ts.map +1 -1
  306. package/dist/server/utils.d.ts +1 -1
  307. package/dist/server/utils.d.ts.map +1 -1
  308. package/dist/{token-375W3LEI.cjs → token-6GSAFR2W-ABXTQD64-MC4IMVOB.cjs} +11 -12
  309. package/dist/token-6GSAFR2W-ABXTQD64-MC4IMVOB.cjs.map +1 -0
  310. package/dist/{token-C3IMNCC4.js → token-6GSAFR2W-ABXTQD64-Z6U2TA2C.js} +8 -9
  311. package/dist/token-6GSAFR2W-ABXTQD64-Z6U2TA2C.js.map +1 -0
  312. package/dist/token-6GSAFR2W-F2L44NEJ-B3QIV63M.cjs +63 -0
  313. package/dist/token-6GSAFR2W-F2L44NEJ-B3QIV63M.cjs.map +1 -0
  314. package/dist/token-6GSAFR2W-F2L44NEJ-GFZ37A2V.js +61 -0
  315. package/dist/token-6GSAFR2W-F2L44NEJ-GFZ37A2V.js.map +1 -0
  316. package/dist/token-6GSAFR2W-WGTMOPEU-6HSZQUFZ.cjs +63 -0
  317. package/dist/token-6GSAFR2W-WGTMOPEU-6HSZQUFZ.cjs.map +1 -0
  318. package/dist/token-6GSAFR2W-WGTMOPEU-JKP67ZX4.js +61 -0
  319. package/dist/token-6GSAFR2W-WGTMOPEU-JKP67ZX4.js.map +1 -0
  320. package/dist/token-util-NEHG7TUY-4YJ4EPCL-MBTAVIJ3.js +8 -0
  321. package/dist/token-util-NEHG7TUY-4YJ4EPCL-MBTAVIJ3.js.map +1 -0
  322. package/dist/token-util-NEHG7TUY-4YJ4EPCL-SQ4NADRW.cjs +10 -0
  323. package/dist/token-util-NEHG7TUY-4YJ4EPCL-SQ4NADRW.cjs.map +1 -0
  324. package/dist/token-util-NEHG7TUY-TV2H7N56-GGCGMPDG.js +8 -0
  325. package/dist/token-util-NEHG7TUY-TV2H7N56-GGCGMPDG.js.map +1 -0
  326. package/dist/token-util-NEHG7TUY-TV2H7N56-R7OENTCJ.cjs +10 -0
  327. package/dist/token-util-NEHG7TUY-TV2H7N56-R7OENTCJ.cjs.map +1 -0
  328. package/dist/token-util-NEHG7TUY-XQP3QSPX-BL5O5N7R.cjs +10 -0
  329. package/dist/token-util-NEHG7TUY-XQP3QSPX-BL5O5N7R.cjs.map +1 -0
  330. package/dist/token-util-NEHG7TUY-XQP3QSPX-YCJRRNXO.js +8 -0
  331. package/dist/token-util-NEHG7TUY-XQP3QSPX-YCJRRNXO.js.map +1 -0
  332. package/handlers/server/handlers.d.ts +1 -0
  333. package/handlers.d.ts +1 -0
  334. package/package.json +29 -17
  335. package/server-adapter.d.ts +1 -0
  336. package/dist/chunk-2NW6POYK.cjs.map +0 -1
  337. package/dist/chunk-2PLXW4ZX.cjs.map +0 -1
  338. package/dist/chunk-35NT4TMQ.cjs.map +0 -1
  339. package/dist/chunk-3R5EV3HV.js.map +0 -1
  340. package/dist/chunk-4ECGVOJZ.cjs.map +0 -1
  341. package/dist/chunk-5PONYNYP.cjs.map +0 -1
  342. package/dist/chunk-6BISSAIF.js +0 -23494
  343. package/dist/chunk-6BISSAIF.js.map +0 -1
  344. package/dist/chunk-6DTV6NEW.js.map +0 -1
  345. package/dist/chunk-AEO6IHLK.cjs +0 -368
  346. package/dist/chunk-AEO6IHLK.cjs.map +0 -1
  347. package/dist/chunk-ASZUOBKV.js.map +0 -1
  348. package/dist/chunk-ECIVTQ4E.js +0 -354
  349. package/dist/chunk-ECIVTQ4E.js.map +0 -1
  350. package/dist/chunk-FAQICBMH.js.map +0 -1
  351. package/dist/chunk-FXDZLX2Y.js.map +0 -1
  352. package/dist/chunk-G7BPNX2V.js.map +0 -1
  353. package/dist/chunk-I5VZ5SKG.js.map +0 -1
  354. package/dist/chunk-ICANWSEW.js.map +0 -1
  355. package/dist/chunk-KB5NSROG.cjs.map +0 -1
  356. package/dist/chunk-LPM6BBAX.cjs.map +0 -1
  357. package/dist/chunk-MWQQRVQC.cjs.map +0 -1
  358. package/dist/chunk-NDFAQBQD.cjs.map +0 -1
  359. package/dist/chunk-PKRHEXX7.js.map +0 -1
  360. package/dist/chunk-QGWCNTG6.cjs.map +0 -1
  361. package/dist/chunk-QU6N55W6.cjs.map +0 -1
  362. package/dist/chunk-R4M3BSUG.js.map +0 -1
  363. package/dist/chunk-RQK4FQUD.js.map +0 -1
  364. package/dist/chunk-SHWNNZBL.js.map +0 -1
  365. package/dist/chunk-TBVUN4XN.cjs +0 -23536
  366. package/dist/chunk-TBVUN4XN.cjs.map +0 -1
  367. package/dist/chunk-TOCYBDP2.js +0 -46
  368. package/dist/chunk-TOCYBDP2.js.map +0 -1
  369. package/dist/chunk-UJNHKFBR.cjs.map +0 -1
  370. package/dist/chunk-UOFV2ZCI.js.map +0 -1
  371. package/dist/chunk-UXGQZUYZ.js.map +0 -1
  372. package/dist/chunk-UZ6CYAOG.cjs.map +0 -1
  373. package/dist/chunk-V5WWQN7P.cjs.map +0 -1
  374. package/dist/chunk-VQAT5HX6.js.map +0 -1
  375. package/dist/chunk-X6C7BUWN.cjs +0 -48
  376. package/dist/chunk-X6C7BUWN.cjs.map +0 -1
  377. package/dist/chunk-YJ3VDL3Z.cjs.map +0 -1
  378. package/dist/chunk-Z36N2OQA.cjs.map +0 -1
  379. package/dist/chunk-ZLRTFRL4.js.map +0 -1
  380. package/dist/chunk-ZODCSH2W.cjs.map +0 -1
  381. package/dist/chunk-ZULZ2752.js.map +0 -1
  382. package/dist/dist-4MVGNSRL.cjs.map +0 -1
  383. package/dist/dist-FZYCV3VB.cjs.map +0 -1
  384. package/dist/dist-G2BYZJOC.cjs.map +0 -1
  385. package/dist/dist-P4MXBQ3U.cjs +0 -16
  386. package/dist/dist-PQZUVLPC.js.map +0 -1
  387. package/dist/dist-R7WYX6LC.js.map +0 -1
  388. package/dist/dist-RFMYFILX.cjs.map +0 -1
  389. package/dist/dist-X7XR3M3Z.js.map +0 -1
  390. package/dist/dist-XVBSOGFK.js.map +0 -1
  391. package/dist/dist-YREX2TJT.js +0 -3
  392. package/dist/server/schemas/observability.d.ts +0 -402
  393. package/dist/server/schemas/observability.d.ts.map +0 -1
  394. package/dist/token-375W3LEI.cjs.map +0 -1
  395. package/dist/token-C3IMNCC4.js.map +0 -1
  396. package/dist/token-util-CV3RRG6K.cjs +0 -9
  397. package/dist/token-util-CV3RRG6K.cjs.map +0 -1
  398. package/dist/token-util-E5QO2RCL.js +0 -7
  399. package/dist/token-util-E5QO2RCL.js.map +0 -1
@@ -1,53 +1,25 @@
1
1
  import z from 'zod';
2
2
  export declare const agentIdPathParams: z.ZodObject<{
3
3
  agentId: z.ZodString;
4
- }, "strip", z.ZodTypeAny, {
5
- agentId: string;
6
- }, {
7
- agentId: string;
8
- }>;
4
+ }, z.core.$strip>;
9
5
  export declare const toolIdPathParams: z.ZodObject<{
10
6
  toolId: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- toolId: string;
13
- }, {
14
- toolId: string;
15
- }>;
7
+ }, z.core.$strip>;
16
8
  export declare const agentToolPathParams: z.ZodObject<{
17
9
  agentId: z.ZodString;
18
- } & {
19
10
  toolId: z.ZodString;
20
- }, "strip", z.ZodTypeAny, {
21
- agentId: string;
22
- toolId: string;
23
- }, {
24
- agentId: string;
25
- toolId: string;
26
- }>;
11
+ }, z.core.$strip>;
27
12
  export declare const modelConfigIdPathParams: z.ZodObject<{
28
13
  agentId: z.ZodString;
29
- } & {
30
14
  modelConfigId: z.ZodString;
31
- }, "strip", z.ZodTypeAny, {
32
- agentId: string;
33
- modelConfigId: string;
34
- }, {
35
- agentId: string;
36
- modelConfigId: string;
37
- }>;
15
+ }, z.core.$strip>;
38
16
  /**
39
17
  * Schema for serialized processor metadata
40
18
  */
41
19
  export declare const serializedProcessorSchema: z.ZodObject<{
42
20
  id: z.ZodString;
43
21
  name: z.ZodOptional<z.ZodString>;
44
- }, "strip", z.ZodTypeAny, {
45
- id: string;
46
- name?: string | undefined;
47
- }, {
48
- id: string;
49
- name?: string | undefined;
50
- }>;
22
+ }, z.core.$strip>;
51
23
  /**
52
24
  * Schema for serialized tool with JSON schemas
53
25
  * Uses passthrough() to allow additional tool properties beyond core fields
@@ -58,19 +30,7 @@ export declare const serializedToolSchema: z.ZodObject<{
58
30
  inputSchema: z.ZodOptional<z.ZodString>;
59
31
  outputSchema: z.ZodOptional<z.ZodString>;
60
32
  requireApproval: z.ZodOptional<z.ZodBoolean>;
61
- }, "strip", z.ZodTypeAny, {
62
- id: string;
63
- description?: string | undefined;
64
- inputSchema?: string | undefined;
65
- outputSchema?: string | undefined;
66
- requireApproval?: boolean | undefined;
67
- }, {
68
- id: string;
69
- description?: string | undefined;
70
- inputSchema?: string | undefined;
71
- outputSchema?: string | undefined;
72
- requireApproval?: boolean | undefined;
73
- }>;
33
+ }, z.core.$strip>;
74
34
  /**
75
35
  * Schema for serialized workflow with steps
76
36
  */
@@ -79,120 +39,48 @@ export declare const serializedWorkflowSchema: z.ZodObject<{
79
39
  steps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
80
40
  id: z.ZodString;
81
41
  description: z.ZodOptional<z.ZodString>;
82
- }, "strip", z.ZodTypeAny, {
83
- id: string;
84
- description?: string | undefined;
85
- }, {
86
- id: string;
87
- description?: string | undefined;
88
- }>>>;
89
- }, "strip", z.ZodTypeAny, {
90
- name: string;
91
- steps?: Record<string, {
92
- id: string;
93
- description?: string | undefined;
94
- }> | undefined;
95
- }, {
96
- name: string;
97
- steps?: Record<string, {
98
- id: string;
99
- description?: string | undefined;
100
- }> | undefined;
101
- }>;
42
+ }, z.core.$strip>>>;
43
+ }, z.core.$strip>;
102
44
  /**
103
45
  * Schema for serialized agent definition (referenced by other agents)
104
46
  */
105
47
  export declare const serializedAgentDefinitionSchema: z.ZodObject<{
106
48
  id: z.ZodString;
107
49
  name: z.ZodString;
108
- }, "strip", z.ZodTypeAny, {
109
- name: string;
110
- id: string;
111
- }, {
112
- name: string;
113
- id: string;
114
- }>;
50
+ }, z.core.$strip>;
115
51
  /**
116
52
  * Main schema for serialized agent representation
117
53
  */
118
54
  export declare const serializedAgentSchema: z.ZodObject<{
119
55
  name: z.ZodString;
120
56
  description: z.ZodOptional<z.ZodString>;
121
- instructions: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodAny, z.ZodArray<z.ZodAny, "many">]>>;
57
+ instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodAny, z.ZodArray<z.ZodAny>]>>;
122
58
  tools: z.ZodRecord<z.ZodString, z.ZodObject<{
123
59
  id: z.ZodString;
124
60
  description: z.ZodOptional<z.ZodString>;
125
61
  inputSchema: z.ZodOptional<z.ZodString>;
126
62
  outputSchema: z.ZodOptional<z.ZodString>;
127
63
  requireApproval: z.ZodOptional<z.ZodBoolean>;
128
- }, "strip", z.ZodTypeAny, {
129
- id: string;
130
- description?: string | undefined;
131
- inputSchema?: string | undefined;
132
- outputSchema?: string | undefined;
133
- requireApproval?: boolean | undefined;
134
- }, {
135
- id: string;
136
- description?: string | undefined;
137
- inputSchema?: string | undefined;
138
- outputSchema?: string | undefined;
139
- requireApproval?: boolean | undefined;
140
- }>>;
64
+ }, z.core.$strip>>;
141
65
  agents: z.ZodRecord<z.ZodString, z.ZodObject<{
142
66
  id: z.ZodString;
143
67
  name: z.ZodString;
144
- }, "strip", z.ZodTypeAny, {
145
- name: string;
146
- id: string;
147
- }, {
148
- name: string;
149
- id: string;
150
- }>>;
68
+ }, z.core.$strip>>;
151
69
  workflows: z.ZodRecord<z.ZodString, z.ZodObject<{
152
70
  name: z.ZodString;
153
71
  steps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
154
72
  id: z.ZodString;
155
73
  description: z.ZodOptional<z.ZodString>;
156
- }, "strip", z.ZodTypeAny, {
157
- id: string;
158
- description?: string | undefined;
159
- }, {
160
- id: string;
161
- description?: string | undefined;
162
- }>>>;
163
- }, "strip", z.ZodTypeAny, {
164
- name: string;
165
- steps?: Record<string, {
166
- id: string;
167
- description?: string | undefined;
168
- }> | undefined;
169
- }, {
170
- name: string;
171
- steps?: Record<string, {
172
- id: string;
173
- description?: string | undefined;
174
- }> | undefined;
175
- }>>;
74
+ }, z.core.$strip>>>;
75
+ }, z.core.$strip>>;
176
76
  inputProcessors: z.ZodArray<z.ZodObject<{
177
77
  id: z.ZodString;
178
78
  name: z.ZodOptional<z.ZodString>;
179
- }, "strip", z.ZodTypeAny, {
180
- id: string;
181
- name?: string | undefined;
182
- }, {
183
- id: string;
184
- name?: string | undefined;
185
- }>, "many">;
79
+ }, z.core.$strip>>;
186
80
  outputProcessors: z.ZodArray<z.ZodObject<{
187
81
  id: z.ZodString;
188
82
  name: z.ZodOptional<z.ZodString>;
189
- }, "strip", z.ZodTypeAny, {
190
- id: string;
191
- name?: string | undefined;
192
- }, {
193
- id: string;
194
- name?: string | undefined;
195
- }>, "many">;
83
+ }, z.core.$strip>>;
196
84
  provider: z.ZodOptional<z.ZodString>;
197
85
  modelId: z.ZodOptional<z.ZodString>;
198
86
  modelVersion: z.ZodOptional<z.ZodString>;
@@ -201,199 +89,45 @@ export declare const serializedAgentSchema: z.ZodObject<{
201
89
  modelId: z.ZodString;
202
90
  provider: z.ZodString;
203
91
  modelVersion: z.ZodString;
204
- }, "strip", z.ZodTypeAny, {
205
- modelId: string;
206
- provider: string;
207
- modelVersion: string;
208
- }, {
209
- modelId: string;
210
- provider: string;
211
- modelVersion: string;
212
- }>;
213
- }, "strip", z.ZodTypeAny, {
214
- model: {
215
- modelId: string;
216
- provider: string;
217
- modelVersion: string;
218
- };
219
- }, {
220
- model: {
221
- modelId: string;
222
- provider: string;
223
- modelVersion: string;
224
- };
225
- }>, "many">>;
92
+ }, z.core.$strip>;
93
+ }, z.core.$strip>>>;
226
94
  defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
227
95
  defaultGenerateOptionsLegacy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
228
96
  defaultStreamOptionsLegacy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
229
- }, "strip", z.ZodTypeAny, {
230
- name: string;
231
- tools: Record<string, {
232
- id: string;
233
- description?: string | undefined;
234
- inputSchema?: string | undefined;
235
- outputSchema?: string | undefined;
236
- requireApproval?: boolean | undefined;
237
- }>;
238
- agents: Record<string, {
239
- name: string;
240
- id: string;
241
- }>;
242
- workflows: Record<string, {
243
- name: string;
244
- steps?: Record<string, {
245
- id: string;
246
- description?: string | undefined;
247
- }> | undefined;
248
- }>;
249
- inputProcessors: {
250
- id: string;
251
- name?: string | undefined;
252
- }[];
253
- outputProcessors: {
254
- id: string;
255
- name?: string | undefined;
256
- }[];
257
- description?: string | undefined;
258
- modelId?: string | undefined;
259
- provider?: string | undefined;
260
- modelVersion?: string | undefined;
261
- instructions?: any;
262
- modelList?: {
263
- model: {
264
- modelId: string;
265
- provider: string;
266
- modelVersion: string;
267
- };
268
- }[] | undefined;
269
- defaultOptions?: Record<string, any> | undefined;
270
- defaultGenerateOptionsLegacy?: Record<string, any> | undefined;
271
- defaultStreamOptionsLegacy?: Record<string, any> | undefined;
272
- }, {
273
- name: string;
274
- tools: Record<string, {
275
- id: string;
276
- description?: string | undefined;
277
- inputSchema?: string | undefined;
278
- outputSchema?: string | undefined;
279
- requireApproval?: boolean | undefined;
280
- }>;
281
- agents: Record<string, {
282
- name: string;
283
- id: string;
284
- }>;
285
- workflows: Record<string, {
286
- name: string;
287
- steps?: Record<string, {
288
- id: string;
289
- description?: string | undefined;
290
- }> | undefined;
291
- }>;
292
- inputProcessors: {
293
- id: string;
294
- name?: string | undefined;
295
- }[];
296
- outputProcessors: {
297
- id: string;
298
- name?: string | undefined;
299
- }[];
300
- description?: string | undefined;
301
- modelId?: string | undefined;
302
- provider?: string | undefined;
303
- modelVersion?: string | undefined;
304
- instructions?: any;
305
- modelList?: {
306
- model: {
307
- modelId: string;
308
- provider: string;
309
- modelVersion: string;
310
- };
311
- }[] | undefined;
312
- defaultOptions?: Record<string, any> | undefined;
313
- defaultGenerateOptionsLegacy?: Record<string, any> | undefined;
314
- defaultStreamOptionsLegacy?: Record<string, any> | undefined;
315
- }>;
97
+ }, z.core.$strip>;
316
98
  /**
317
99
  * Schema for agent with ID
318
100
  */
319
101
  export declare const serializedAgentWithIdSchema: z.ZodObject<{
320
102
  name: z.ZodString;
321
103
  description: z.ZodOptional<z.ZodString>;
322
- instructions: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodAny, z.ZodArray<z.ZodAny, "many">]>>;
104
+ instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodAny, z.ZodArray<z.ZodAny>]>>;
323
105
  tools: z.ZodRecord<z.ZodString, z.ZodObject<{
324
106
  id: z.ZodString;
325
107
  description: z.ZodOptional<z.ZodString>;
326
108
  inputSchema: z.ZodOptional<z.ZodString>;
327
109
  outputSchema: z.ZodOptional<z.ZodString>;
328
110
  requireApproval: z.ZodOptional<z.ZodBoolean>;
329
- }, "strip", z.ZodTypeAny, {
330
- id: string;
331
- description?: string | undefined;
332
- inputSchema?: string | undefined;
333
- outputSchema?: string | undefined;
334
- requireApproval?: boolean | undefined;
335
- }, {
336
- id: string;
337
- description?: string | undefined;
338
- inputSchema?: string | undefined;
339
- outputSchema?: string | undefined;
340
- requireApproval?: boolean | undefined;
341
- }>>;
111
+ }, z.core.$strip>>;
342
112
  agents: z.ZodRecord<z.ZodString, z.ZodObject<{
343
113
  id: z.ZodString;
344
114
  name: z.ZodString;
345
- }, "strip", z.ZodTypeAny, {
346
- name: string;
347
- id: string;
348
- }, {
349
- name: string;
350
- id: string;
351
- }>>;
115
+ }, z.core.$strip>>;
352
116
  workflows: z.ZodRecord<z.ZodString, z.ZodObject<{
353
117
  name: z.ZodString;
354
118
  steps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
355
119
  id: z.ZodString;
356
120
  description: z.ZodOptional<z.ZodString>;
357
- }, "strip", z.ZodTypeAny, {
358
- id: string;
359
- description?: string | undefined;
360
- }, {
361
- id: string;
362
- description?: string | undefined;
363
- }>>>;
364
- }, "strip", z.ZodTypeAny, {
365
- name: string;
366
- steps?: Record<string, {
367
- id: string;
368
- description?: string | undefined;
369
- }> | undefined;
370
- }, {
371
- name: string;
372
- steps?: Record<string, {
373
- id: string;
374
- description?: string | undefined;
375
- }> | undefined;
376
- }>>;
121
+ }, z.core.$strip>>>;
122
+ }, z.core.$strip>>;
377
123
  inputProcessors: z.ZodArray<z.ZodObject<{
378
124
  id: z.ZodString;
379
125
  name: z.ZodOptional<z.ZodString>;
380
- }, "strip", z.ZodTypeAny, {
381
- id: string;
382
- name?: string | undefined;
383
- }, {
384
- id: string;
385
- name?: string | undefined;
386
- }>, "many">;
126
+ }, z.core.$strip>>;
387
127
  outputProcessors: z.ZodArray<z.ZodObject<{
388
128
  id: z.ZodString;
389
129
  name: z.ZodOptional<z.ZodString>;
390
- }, "strip", z.ZodTypeAny, {
391
- id: string;
392
- name?: string | undefined;
393
- }, {
394
- id: string;
395
- name?: string | undefined;
396
- }>, "many">;
130
+ }, z.core.$strip>>;
397
131
  provider: z.ZodOptional<z.ZodString>;
398
132
  modelId: z.ZodOptional<z.ZodString>;
399
133
  modelVersion: z.ZodOptional<z.ZodString>;
@@ -402,122 +136,13 @@ export declare const serializedAgentWithIdSchema: z.ZodObject<{
402
136
  modelId: z.ZodString;
403
137
  provider: z.ZodString;
404
138
  modelVersion: z.ZodString;
405
- }, "strip", z.ZodTypeAny, {
406
- modelId: string;
407
- provider: string;
408
- modelVersion: string;
409
- }, {
410
- modelId: string;
411
- provider: string;
412
- modelVersion: string;
413
- }>;
414
- }, "strip", z.ZodTypeAny, {
415
- model: {
416
- modelId: string;
417
- provider: string;
418
- modelVersion: string;
419
- };
420
- }, {
421
- model: {
422
- modelId: string;
423
- provider: string;
424
- modelVersion: string;
425
- };
426
- }>, "many">>;
139
+ }, z.core.$strip>;
140
+ }, z.core.$strip>>>;
427
141
  defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
428
142
  defaultGenerateOptionsLegacy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
429
143
  defaultStreamOptionsLegacy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
430
- } & {
431
144
  id: z.ZodString;
432
- }, "strip", z.ZodTypeAny, {
433
- name: string;
434
- id: string;
435
- tools: Record<string, {
436
- id: string;
437
- description?: string | undefined;
438
- inputSchema?: string | undefined;
439
- outputSchema?: string | undefined;
440
- requireApproval?: boolean | undefined;
441
- }>;
442
- agents: Record<string, {
443
- name: string;
444
- id: string;
445
- }>;
446
- workflows: Record<string, {
447
- name: string;
448
- steps?: Record<string, {
449
- id: string;
450
- description?: string | undefined;
451
- }> | undefined;
452
- }>;
453
- inputProcessors: {
454
- id: string;
455
- name?: string | undefined;
456
- }[];
457
- outputProcessors: {
458
- id: string;
459
- name?: string | undefined;
460
- }[];
461
- description?: string | undefined;
462
- modelId?: string | undefined;
463
- provider?: string | undefined;
464
- modelVersion?: string | undefined;
465
- instructions?: any;
466
- modelList?: {
467
- model: {
468
- modelId: string;
469
- provider: string;
470
- modelVersion: string;
471
- };
472
- }[] | undefined;
473
- defaultOptions?: Record<string, any> | undefined;
474
- defaultGenerateOptionsLegacy?: Record<string, any> | undefined;
475
- defaultStreamOptionsLegacy?: Record<string, any> | undefined;
476
- }, {
477
- name: string;
478
- id: string;
479
- tools: Record<string, {
480
- id: string;
481
- description?: string | undefined;
482
- inputSchema?: string | undefined;
483
- outputSchema?: string | undefined;
484
- requireApproval?: boolean | undefined;
485
- }>;
486
- agents: Record<string, {
487
- name: string;
488
- id: string;
489
- }>;
490
- workflows: Record<string, {
491
- name: string;
492
- steps?: Record<string, {
493
- id: string;
494
- description?: string | undefined;
495
- }> | undefined;
496
- }>;
497
- inputProcessors: {
498
- id: string;
499
- name?: string | undefined;
500
- }[];
501
- outputProcessors: {
502
- id: string;
503
- name?: string | undefined;
504
- }[];
505
- description?: string | undefined;
506
- modelId?: string | undefined;
507
- provider?: string | undefined;
508
- modelVersion?: string | undefined;
509
- instructions?: any;
510
- modelList?: {
511
- model: {
512
- modelId: string;
513
- provider: string;
514
- modelVersion: string;
515
- };
516
- }[] | undefined;
517
- defaultOptions?: Record<string, any> | undefined;
518
- defaultGenerateOptionsLegacy?: Record<string, any> | undefined;
519
- defaultStreamOptionsLegacy?: Record<string, any> | undefined;
520
- }>;
145
+ }, z.core.$strip>;
521
146
  /**
522
147
  * Schema for individual provider information
523
148
  */
@@ -526,17 +151,7 @@ export declare const providerSchema: z.ZodObject<{
526
151
  name: z.ZodString;
527
152
  label: z.ZodOptional<z.ZodString>;
528
153
  description: z.ZodOptional<z.ZodString>;
529
- }, "strip", z.ZodTypeAny, {
530
- name: string;
531
- id: string;
532
- description?: string | undefined;
533
- label?: string | undefined;
534
- }, {
535
- name: string;
536
- id: string;
537
- description?: string | undefined;
538
- label?: string | undefined;
539
- }>;
154
+ }, z.core.$strip>;
540
155
  /**
541
156
  * Schema for providers endpoint response
542
157
  */
@@ -546,32 +161,8 @@ export declare const providersResponseSchema: z.ZodObject<{
546
161
  name: z.ZodString;
547
162
  label: z.ZodOptional<z.ZodString>;
548
163
  description: z.ZodOptional<z.ZodString>;
549
- }, "strip", z.ZodTypeAny, {
550
- name: string;
551
- id: string;
552
- description?: string | undefined;
553
- label?: string | undefined;
554
- }, {
555
- name: string;
556
- id: string;
557
- description?: string | undefined;
558
- label?: string | undefined;
559
- }>, "many">;
560
- }, "strip", z.ZodTypeAny, {
561
- providers: {
562
- name: string;
563
- id: string;
564
- description?: string | undefined;
565
- label?: string | undefined;
566
- }[];
567
- }, {
568
- providers: {
569
- name: string;
570
- id: string;
571
- description?: string | undefined;
572
- label?: string | undefined;
573
- }[];
574
- }>;
164
+ }, z.core.$strip>>;
165
+ }, z.core.$strip>;
575
166
  /**
576
167
  * Schema for list agents endpoint response
577
168
  * Returns a record of agent ID to serialized agent
@@ -579,81 +170,33 @@ export declare const providersResponseSchema: z.ZodObject<{
579
170
  export declare const listAgentsResponseSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
580
171
  name: z.ZodString;
581
172
  description: z.ZodOptional<z.ZodString>;
582
- instructions: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodAny, z.ZodArray<z.ZodAny, "many">]>>;
173
+ instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodAny, z.ZodArray<z.ZodAny>]>>;
583
174
  tools: z.ZodRecord<z.ZodString, z.ZodObject<{
584
175
  id: z.ZodString;
585
176
  description: z.ZodOptional<z.ZodString>;
586
177
  inputSchema: z.ZodOptional<z.ZodString>;
587
178
  outputSchema: z.ZodOptional<z.ZodString>;
588
179
  requireApproval: z.ZodOptional<z.ZodBoolean>;
589
- }, "strip", z.ZodTypeAny, {
590
- id: string;
591
- description?: string | undefined;
592
- inputSchema?: string | undefined;
593
- outputSchema?: string | undefined;
594
- requireApproval?: boolean | undefined;
595
- }, {
596
- id: string;
597
- description?: string | undefined;
598
- inputSchema?: string | undefined;
599
- outputSchema?: string | undefined;
600
- requireApproval?: boolean | undefined;
601
- }>>;
180
+ }, z.core.$strip>>;
602
181
  agents: z.ZodRecord<z.ZodString, z.ZodObject<{
603
182
  id: z.ZodString;
604
183
  name: z.ZodString;
605
- }, "strip", z.ZodTypeAny, {
606
- name: string;
607
- id: string;
608
- }, {
609
- name: string;
610
- id: string;
611
- }>>;
184
+ }, z.core.$strip>>;
612
185
  workflows: z.ZodRecord<z.ZodString, z.ZodObject<{
613
186
  name: z.ZodString;
614
187
  steps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
615
188
  id: z.ZodString;
616
189
  description: z.ZodOptional<z.ZodString>;
617
- }, "strip", z.ZodTypeAny, {
618
- id: string;
619
- description?: string | undefined;
620
- }, {
621
- id: string;
622
- description?: string | undefined;
623
- }>>>;
624
- }, "strip", z.ZodTypeAny, {
625
- name: string;
626
- steps?: Record<string, {
627
- id: string;
628
- description?: string | undefined;
629
- }> | undefined;
630
- }, {
631
- name: string;
632
- steps?: Record<string, {
633
- id: string;
634
- description?: string | undefined;
635
- }> | undefined;
636
- }>>;
190
+ }, z.core.$strip>>>;
191
+ }, z.core.$strip>>;
637
192
  inputProcessors: z.ZodArray<z.ZodObject<{
638
193
  id: z.ZodString;
639
194
  name: z.ZodOptional<z.ZodString>;
640
- }, "strip", z.ZodTypeAny, {
641
- id: string;
642
- name?: string | undefined;
643
- }, {
644
- id: string;
645
- name?: string | undefined;
646
- }>, "many">;
195
+ }, z.core.$strip>>;
647
196
  outputProcessors: z.ZodArray<z.ZodObject<{
648
197
  id: z.ZodString;
649
198
  name: z.ZodOptional<z.ZodString>;
650
- }, "strip", z.ZodTypeAny, {
651
- id: string;
652
- name?: string | undefined;
653
- }, {
654
- id: string;
655
- name?: string | undefined;
656
- }>, "many">;
199
+ }, z.core.$strip>>;
657
200
  provider: z.ZodOptional<z.ZodString>;
658
201
  modelId: z.ZodOptional<z.ZodString>;
659
202
  modelVersion: z.ZodOptional<z.ZodString>;
@@ -662,118 +205,12 @@ export declare const listAgentsResponseSchema: z.ZodRecord<z.ZodString, z.ZodObj
662
205
  modelId: z.ZodString;
663
206
  provider: z.ZodString;
664
207
  modelVersion: z.ZodString;
665
- }, "strip", z.ZodTypeAny, {
666
- modelId: string;
667
- provider: string;
668
- modelVersion: string;
669
- }, {
670
- modelId: string;
671
- provider: string;
672
- modelVersion: string;
673
- }>;
674
- }, "strip", z.ZodTypeAny, {
675
- model: {
676
- modelId: string;
677
- provider: string;
678
- modelVersion: string;
679
- };
680
- }, {
681
- model: {
682
- modelId: string;
683
- provider: string;
684
- modelVersion: string;
685
- };
686
- }>, "many">>;
208
+ }, z.core.$strip>;
209
+ }, z.core.$strip>>>;
687
210
  defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
688
211
  defaultGenerateOptionsLegacy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
689
212
  defaultStreamOptionsLegacy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
690
- }, "strip", z.ZodTypeAny, {
691
- name: string;
692
- tools: Record<string, {
693
- id: string;
694
- description?: string | undefined;
695
- inputSchema?: string | undefined;
696
- outputSchema?: string | undefined;
697
- requireApproval?: boolean | undefined;
698
- }>;
699
- agents: Record<string, {
700
- name: string;
701
- id: string;
702
- }>;
703
- workflows: Record<string, {
704
- name: string;
705
- steps?: Record<string, {
706
- id: string;
707
- description?: string | undefined;
708
- }> | undefined;
709
- }>;
710
- inputProcessors: {
711
- id: string;
712
- name?: string | undefined;
713
- }[];
714
- outputProcessors: {
715
- id: string;
716
- name?: string | undefined;
717
- }[];
718
- description?: string | undefined;
719
- modelId?: string | undefined;
720
- provider?: string | undefined;
721
- modelVersion?: string | undefined;
722
- instructions?: any;
723
- modelList?: {
724
- model: {
725
- modelId: string;
726
- provider: string;
727
- modelVersion: string;
728
- };
729
- }[] | undefined;
730
- defaultOptions?: Record<string, any> | undefined;
731
- defaultGenerateOptionsLegacy?: Record<string, any> | undefined;
732
- defaultStreamOptionsLegacy?: Record<string, any> | undefined;
733
- }, {
734
- name: string;
735
- tools: Record<string, {
736
- id: string;
737
- description?: string | undefined;
738
- inputSchema?: string | undefined;
739
- outputSchema?: string | undefined;
740
- requireApproval?: boolean | undefined;
741
- }>;
742
- agents: Record<string, {
743
- name: string;
744
- id: string;
745
- }>;
746
- workflows: Record<string, {
747
- name: string;
748
- steps?: Record<string, {
749
- id: string;
750
- description?: string | undefined;
751
- }> | undefined;
752
- }>;
753
- inputProcessors: {
754
- id: string;
755
- name?: string | undefined;
756
- }[];
757
- outputProcessors: {
758
- id: string;
759
- name?: string | undefined;
760
- }[];
761
- description?: string | undefined;
762
- modelId?: string | undefined;
763
- provider?: string | undefined;
764
- modelVersion?: string | undefined;
765
- instructions?: any;
766
- modelList?: {
767
- model: {
768
- modelId: string;
769
- provider: string;
770
- modelVersion: string;
771
- };
772
- }[] | undefined;
773
- defaultOptions?: Record<string, any> | undefined;
774
- defaultGenerateOptionsLegacy?: Record<string, any> | undefined;
775
- defaultStreamOptionsLegacy?: Record<string, any> | undefined;
776
- }>>;
213
+ }, z.core.$strip>>;
777
214
  /**
778
215
  * Schema for list tools endpoint response
779
216
  * Returns a record of tool ID to serialized tool
@@ -784,19 +221,7 @@ export declare const listToolsResponseSchema: z.ZodRecord<z.ZodString, z.ZodObje
784
221
  inputSchema: z.ZodOptional<z.ZodString>;
785
222
  outputSchema: z.ZodOptional<z.ZodString>;
786
223
  requireApproval: z.ZodOptional<z.ZodBoolean>;
787
- }, "strip", z.ZodTypeAny, {
788
- id: string;
789
- description?: string | undefined;
790
- inputSchema?: string | undefined;
791
- outputSchema?: string | undefined;
792
- requireApproval?: boolean | undefined;
793
- }, {
794
- id: string;
795
- description?: string | undefined;
796
- inputSchema?: string | undefined;
797
- outputSchema?: string | undefined;
798
- requireApproval?: boolean | undefined;
799
- }>>;
224
+ }, z.core.$strip>>;
800
225
  /**
801
226
  * Comprehensive body schema for agent generate and stream endpoints
802
227
  * Validates common fields while using passthrough for complex nested objects
@@ -807,39 +232,18 @@ export declare const listToolsResponseSchema: z.ZodRecord<z.ZodString, z.ZodObje
807
232
  * - Non-serializable: abortSignal, tracingContext
808
233
  */
809
234
  export declare const agentExecutionBodySchema: z.ZodObject<{
810
- messages: z.ZodUnion<[z.ZodArray<z.ZodAny, "many">, z.ZodString]>;
811
- instructions: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodAny, z.ZodArray<z.ZodAny, "many">]>>;
812
- system: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodAny, z.ZodArray<z.ZodAny, "many">]>>;
813
- context: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
235
+ messages: z.ZodUnion<readonly [z.ZodArray<z.ZodAny>, z.ZodString]>;
236
+ instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodAny, z.ZodArray<z.ZodAny>]>>;
237
+ system: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodAny, z.ZodArray<z.ZodAny>]>>;
238
+ context: z.ZodOptional<z.ZodArray<z.ZodAny>>;
814
239
  memory: z.ZodOptional<z.ZodObject<{
815
- thread: z.ZodUnion<[z.ZodString, z.ZodObject<{
240
+ thread: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
816
241
  id: z.ZodString;
817
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
818
- id: z.ZodString;
819
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
820
- id: z.ZodString;
821
- }, z.ZodTypeAny, "passthrough">>]>;
242
+ }, z.core.$loose>]>;
822
243
  resource: z.ZodString;
823
244
  options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
824
245
  readOnly: z.ZodOptional<z.ZodBoolean>;
825
- }, "strip", z.ZodTypeAny, {
826
- thread: string | z.objectOutputType<{
827
- id: z.ZodString;
828
- }, z.ZodTypeAny, "passthrough">;
829
- resource: string;
830
- options?: Record<string, any> | undefined;
831
- readOnly?: boolean | undefined;
832
- }, {
833
- thread: string | z.objectInputType<{
834
- id: z.ZodString;
835
- }, z.ZodTypeAny, "passthrough">;
836
- resource: string;
837
- options?: Record<string, any> | undefined;
838
- readOnly?: boolean | undefined;
839
- }>>;
840
- resourceId: z.ZodOptional<z.ZodString>;
841
- resourceid: z.ZodOptional<z.ZodString>;
842
- threadId: z.ZodOptional<z.ZodString>;
246
+ }, z.core.$strip>>;
843
247
  runId: z.ZodOptional<z.ZodString>;
844
248
  savePerStep: z.ZodOptional<z.ZodBoolean>;
845
249
  requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -850,120 +254,62 @@ export declare const agentExecutionBodySchema: z.ZodObject<{
850
254
  google: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
851
255
  openai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
852
256
  xai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
853
- }, "strip", z.ZodTypeAny, {
854
- anthropic?: Record<string, any> | undefined;
855
- google?: Record<string, any> | undefined;
856
- openai?: Record<string, any> | undefined;
857
- xai?: Record<string, any> | undefined;
858
- }, {
859
- anthropic?: Record<string, any> | undefined;
860
- google?: Record<string, any> | undefined;
861
- openai?: Record<string, any> | undefined;
862
- xai?: Record<string, any> | undefined;
863
- }>>;
257
+ }, z.core.$strip>>;
864
258
  modelSettings: z.ZodOptional<z.ZodAny>;
865
- activeTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
259
+ activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
866
260
  toolsets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
867
261
  clientTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
868
- toolChoice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
262
+ toolChoice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
263
+ auto: "auto";
264
+ none: "none";
265
+ required: "required";
266
+ }>, z.ZodObject<{
869
267
  type: z.ZodLiteral<"tool">;
870
268
  toolName: z.ZodString;
871
- }, "strip", z.ZodTypeAny, {
872
- type: "tool";
873
- toolName: string;
874
- }, {
875
- type: "tool";
876
- toolName: string;
877
- }>]>>;
269
+ }, z.core.$strip>]>>;
878
270
  requireToolApproval: z.ZodOptional<z.ZodBoolean>;
879
- scorers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodRecord<z.ZodString, z.ZodObject<{
271
+ scorers: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodRecord<z.ZodString, z.ZodObject<{
880
272
  scorer: z.ZodString;
881
273
  sampling: z.ZodOptional<z.ZodAny>;
882
- }, "strip", z.ZodTypeAny, {
883
- scorer: string;
884
- sampling?: any;
885
- }, {
886
- scorer: string;
887
- sampling?: any;
888
- }>>]>>;
274
+ }, z.core.$strip>>]>>;
889
275
  returnScorerData: z.ZodOptional<z.ZodBoolean>;
890
276
  tracingOptions: z.ZodOptional<z.ZodObject<{
891
277
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
892
- requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
278
+ requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
893
279
  traceId: z.ZodOptional<z.ZodString>;
894
280
  parentSpanId: z.ZodOptional<z.ZodString>;
895
- }, "strip", z.ZodTypeAny, {
896
- metadata?: Record<string, unknown> | undefined;
897
- requestContextKeys?: string[] | undefined;
898
- traceId?: string | undefined;
899
- parentSpanId?: string | undefined;
900
- }, {
901
- metadata?: Record<string, unknown> | undefined;
902
- requestContextKeys?: string[] | undefined;
903
- traceId?: string | undefined;
904
- parentSpanId?: string | undefined;
905
- }>>;
281
+ }, z.core.$strip>>;
906
282
  output: z.ZodOptional<z.ZodAny>;
907
283
  structuredOutput: z.ZodOptional<z.ZodObject<{
908
- schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
909
- model: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodAny]>>;
284
+ schema: z.ZodObject<{}, z.core.$loose>;
285
+ model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodAny]>>;
910
286
  instructions: z.ZodOptional<z.ZodString>;
911
287
  jsonPromptInjection: z.ZodOptional<z.ZodBoolean>;
912
- errorStrategy: z.ZodOptional<z.ZodEnum<["strict", "warn", "fallback"]>>;
288
+ errorStrategy: z.ZodOptional<z.ZodEnum<{
289
+ warn: "warn";
290
+ strict: "strict";
291
+ fallback: "fallback";
292
+ }>>;
913
293
  fallbackValue: z.ZodOptional<z.ZodAny>;
914
- }, "strip", z.ZodTypeAny, {
915
- schema: {} & {
916
- [k: string]: unknown;
917
- };
918
- model?: any;
919
- instructions?: string | undefined;
920
- jsonPromptInjection?: boolean | undefined;
921
- errorStrategy?: "warn" | "strict" | "fallback" | undefined;
922
- fallbackValue?: any;
923
- }, {
924
- schema: {} & {
925
- [k: string]: unknown;
926
- };
927
- model?: any;
928
- instructions?: string | undefined;
929
- jsonPromptInjection?: boolean | undefined;
930
- errorStrategy?: "warn" | "strict" | "fallback" | undefined;
931
- fallbackValue?: any;
932
- }>>;
933
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
934
- messages: z.ZodUnion<[z.ZodArray<z.ZodAny, "many">, z.ZodString]>;
935
- instructions: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodAny, z.ZodArray<z.ZodAny, "many">]>>;
936
- system: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodAny, z.ZodArray<z.ZodAny, "many">]>>;
937
- context: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
294
+ }, z.core.$strip>>;
295
+ }, z.core.$loose>;
296
+ /**
297
+ * Legacy body schema for deprecated endpoints that still use threadId/resourceId
298
+ * Used by /agents/:agentId/generate-legacy and /agents/:agentId/stream-legacy
299
+ */
300
+ export declare const agentExecutionLegacyBodySchema: z.ZodObject<{
301
+ messages: z.ZodUnion<readonly [z.ZodArray<z.ZodAny>, z.ZodString]>;
302
+ instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodAny, z.ZodArray<z.ZodAny>]>>;
303
+ system: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodAny, z.ZodArray<z.ZodAny>]>>;
304
+ context: z.ZodOptional<z.ZodArray<z.ZodAny>>;
938
305
  memory: z.ZodOptional<z.ZodObject<{
939
- thread: z.ZodUnion<[z.ZodString, z.ZodObject<{
306
+ thread: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
940
307
  id: z.ZodString;
941
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
942
- id: z.ZodString;
943
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
944
- id: z.ZodString;
945
- }, z.ZodTypeAny, "passthrough">>]>;
308
+ }, z.core.$loose>]>;
946
309
  resource: z.ZodString;
947
310
  options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
948
311
  readOnly: z.ZodOptional<z.ZodBoolean>;
949
- }, "strip", z.ZodTypeAny, {
950
- thread: string | z.objectOutputType<{
951
- id: z.ZodString;
952
- }, z.ZodTypeAny, "passthrough">;
953
- resource: string;
954
- options?: Record<string, any> | undefined;
955
- readOnly?: boolean | undefined;
956
- }, {
957
- thread: string | z.objectInputType<{
958
- id: z.ZodString;
959
- }, z.ZodTypeAny, "passthrough">;
960
- resource: string;
961
- options?: Record<string, any> | undefined;
962
- readOnly?: boolean | undefined;
963
- }>>;
964
- resourceId: z.ZodOptional<z.ZodString>;
965
- resourceid: z.ZodOptional<z.ZodString>;
966
- threadId: z.ZodOptional<z.ZodString>;
312
+ }, z.core.$strip>>;
967
313
  runId: z.ZodOptional<z.ZodString>;
968
314
  savePerStep: z.ZodOptional<z.ZodBoolean>;
969
315
  requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -974,244 +320,63 @@ export declare const agentExecutionBodySchema: z.ZodObject<{
974
320
  google: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
975
321
  openai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
976
322
  xai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
977
- }, "strip", z.ZodTypeAny, {
978
- anthropic?: Record<string, any> | undefined;
979
- google?: Record<string, any> | undefined;
980
- openai?: Record<string, any> | undefined;
981
- xai?: Record<string, any> | undefined;
982
- }, {
983
- anthropic?: Record<string, any> | undefined;
984
- google?: Record<string, any> | undefined;
985
- openai?: Record<string, any> | undefined;
986
- xai?: Record<string, any> | undefined;
987
- }>>;
323
+ }, z.core.$strip>>;
988
324
  modelSettings: z.ZodOptional<z.ZodAny>;
989
- activeTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
325
+ activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
990
326
  toolsets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
991
327
  clientTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
992
- toolChoice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
328
+ toolChoice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
329
+ auto: "auto";
330
+ none: "none";
331
+ required: "required";
332
+ }>, z.ZodObject<{
993
333
  type: z.ZodLiteral<"tool">;
994
334
  toolName: z.ZodString;
995
- }, "strip", z.ZodTypeAny, {
996
- type: "tool";
997
- toolName: string;
998
- }, {
999
- type: "tool";
1000
- toolName: string;
1001
- }>]>>;
335
+ }, z.core.$strip>]>>;
1002
336
  requireToolApproval: z.ZodOptional<z.ZodBoolean>;
1003
- scorers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodRecord<z.ZodString, z.ZodObject<{
337
+ scorers: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodRecord<z.ZodString, z.ZodObject<{
1004
338
  scorer: z.ZodString;
1005
339
  sampling: z.ZodOptional<z.ZodAny>;
1006
- }, "strip", z.ZodTypeAny, {
1007
- scorer: string;
1008
- sampling?: any;
1009
- }, {
1010
- scorer: string;
1011
- sampling?: any;
1012
- }>>]>>;
340
+ }, z.core.$strip>>]>>;
1013
341
  returnScorerData: z.ZodOptional<z.ZodBoolean>;
1014
342
  tracingOptions: z.ZodOptional<z.ZodObject<{
1015
343
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1016
- requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
344
+ requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
1017
345
  traceId: z.ZodOptional<z.ZodString>;
1018
346
  parentSpanId: z.ZodOptional<z.ZodString>;
1019
- }, "strip", z.ZodTypeAny, {
1020
- metadata?: Record<string, unknown> | undefined;
1021
- requestContextKeys?: string[] | undefined;
1022
- traceId?: string | undefined;
1023
- parentSpanId?: string | undefined;
1024
- }, {
1025
- metadata?: Record<string, unknown> | undefined;
1026
- requestContextKeys?: string[] | undefined;
1027
- traceId?: string | undefined;
1028
- parentSpanId?: string | undefined;
1029
- }>>;
347
+ }, z.core.$strip>>;
1030
348
  output: z.ZodOptional<z.ZodAny>;
1031
349
  structuredOutput: z.ZodOptional<z.ZodObject<{
1032
- schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1033
- model: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodAny]>>;
350
+ schema: z.ZodObject<{}, z.core.$loose>;
351
+ model: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodAny]>>;
1034
352
  instructions: z.ZodOptional<z.ZodString>;
1035
353
  jsonPromptInjection: z.ZodOptional<z.ZodBoolean>;
1036
- errorStrategy: z.ZodOptional<z.ZodEnum<["strict", "warn", "fallback"]>>;
354
+ errorStrategy: z.ZodOptional<z.ZodEnum<{
355
+ warn: "warn";
356
+ strict: "strict";
357
+ fallback: "fallback";
358
+ }>>;
1037
359
  fallbackValue: z.ZodOptional<z.ZodAny>;
1038
- }, "strip", z.ZodTypeAny, {
1039
- schema: {} & {
1040
- [k: string]: unknown;
1041
- };
1042
- model?: any;
1043
- instructions?: string | undefined;
1044
- jsonPromptInjection?: boolean | undefined;
1045
- errorStrategy?: "warn" | "strict" | "fallback" | undefined;
1046
- fallbackValue?: any;
1047
- }, {
1048
- schema: {} & {
1049
- [k: string]: unknown;
1050
- };
1051
- model?: any;
1052
- instructions?: string | undefined;
1053
- jsonPromptInjection?: boolean | undefined;
1054
- errorStrategy?: "warn" | "strict" | "fallback" | undefined;
1055
- fallbackValue?: any;
1056
- }>>;
1057
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1058
- messages: z.ZodUnion<[z.ZodArray<z.ZodAny, "many">, z.ZodString]>;
1059
- instructions: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodAny, z.ZodArray<z.ZodAny, "many">]>>;
1060
- system: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodAny, z.ZodArray<z.ZodAny, "many">]>>;
1061
- context: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1062
- memory: z.ZodOptional<z.ZodObject<{
1063
- thread: z.ZodUnion<[z.ZodString, z.ZodObject<{
1064
- id: z.ZodString;
1065
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1066
- id: z.ZodString;
1067
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1068
- id: z.ZodString;
1069
- }, z.ZodTypeAny, "passthrough">>]>;
1070
- resource: z.ZodString;
1071
- options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1072
- readOnly: z.ZodOptional<z.ZodBoolean>;
1073
- }, "strip", z.ZodTypeAny, {
1074
- thread: string | z.objectOutputType<{
1075
- id: z.ZodString;
1076
- }, z.ZodTypeAny, "passthrough">;
1077
- resource: string;
1078
- options?: Record<string, any> | undefined;
1079
- readOnly?: boolean | undefined;
1080
- }, {
1081
- thread: string | z.objectInputType<{
1082
- id: z.ZodString;
1083
- }, z.ZodTypeAny, "passthrough">;
1084
- resource: string;
1085
- options?: Record<string, any> | undefined;
1086
- readOnly?: boolean | undefined;
1087
- }>>;
360
+ }, z.core.$strip>>;
1088
361
  resourceId: z.ZodOptional<z.ZodString>;
1089
362
  resourceid: z.ZodOptional<z.ZodString>;
1090
363
  threadId: z.ZodOptional<z.ZodString>;
1091
- runId: z.ZodOptional<z.ZodString>;
1092
- savePerStep: z.ZodOptional<z.ZodBoolean>;
1093
- requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1094
- maxSteps: z.ZodOptional<z.ZodNumber>;
1095
- stopWhen: z.ZodOptional<z.ZodAny>;
1096
- providerOptions: z.ZodOptional<z.ZodObject<{
1097
- anthropic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1098
- google: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1099
- openai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1100
- xai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1101
- }, "strip", z.ZodTypeAny, {
1102
- anthropic?: Record<string, any> | undefined;
1103
- google?: Record<string, any> | undefined;
1104
- openai?: Record<string, any> | undefined;
1105
- xai?: Record<string, any> | undefined;
1106
- }, {
1107
- anthropic?: Record<string, any> | undefined;
1108
- google?: Record<string, any> | undefined;
1109
- openai?: Record<string, any> | undefined;
1110
- xai?: Record<string, any> | undefined;
1111
- }>>;
1112
- modelSettings: z.ZodOptional<z.ZodAny>;
1113
- activeTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1114
- toolsets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1115
- clientTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1116
- toolChoice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
1117
- type: z.ZodLiteral<"tool">;
1118
- toolName: z.ZodString;
1119
- }, "strip", z.ZodTypeAny, {
1120
- type: "tool";
1121
- toolName: string;
1122
- }, {
1123
- type: "tool";
1124
- toolName: string;
1125
- }>]>>;
1126
- requireToolApproval: z.ZodOptional<z.ZodBoolean>;
1127
- scorers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodRecord<z.ZodString, z.ZodObject<{
1128
- scorer: z.ZodString;
1129
- sampling: z.ZodOptional<z.ZodAny>;
1130
- }, "strip", z.ZodTypeAny, {
1131
- scorer: string;
1132
- sampling?: any;
1133
- }, {
1134
- scorer: string;
1135
- sampling?: any;
1136
- }>>]>>;
1137
- returnScorerData: z.ZodOptional<z.ZodBoolean>;
1138
- tracingOptions: z.ZodOptional<z.ZodObject<{
1139
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1140
- requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1141
- traceId: z.ZodOptional<z.ZodString>;
1142
- parentSpanId: z.ZodOptional<z.ZodString>;
1143
- }, "strip", z.ZodTypeAny, {
1144
- metadata?: Record<string, unknown> | undefined;
1145
- requestContextKeys?: string[] | undefined;
1146
- traceId?: string | undefined;
1147
- parentSpanId?: string | undefined;
1148
- }, {
1149
- metadata?: Record<string, unknown> | undefined;
1150
- requestContextKeys?: string[] | undefined;
1151
- traceId?: string | undefined;
1152
- parentSpanId?: string | undefined;
1153
- }>>;
1154
- output: z.ZodOptional<z.ZodAny>;
1155
- structuredOutput: z.ZodOptional<z.ZodObject<{
1156
- schema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1157
- model: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodAny]>>;
1158
- instructions: z.ZodOptional<z.ZodString>;
1159
- jsonPromptInjection: z.ZodOptional<z.ZodBoolean>;
1160
- errorStrategy: z.ZodOptional<z.ZodEnum<["strict", "warn", "fallback"]>>;
1161
- fallbackValue: z.ZodOptional<z.ZodAny>;
1162
- }, "strip", z.ZodTypeAny, {
1163
- schema: {} & {
1164
- [k: string]: unknown;
1165
- };
1166
- model?: any;
1167
- instructions?: string | undefined;
1168
- jsonPromptInjection?: boolean | undefined;
1169
- errorStrategy?: "warn" | "strict" | "fallback" | undefined;
1170
- fallbackValue?: any;
1171
- }, {
1172
- schema: {} & {
1173
- [k: string]: unknown;
1174
- };
1175
- model?: any;
1176
- instructions?: string | undefined;
1177
- jsonPromptInjection?: boolean | undefined;
1178
- errorStrategy?: "warn" | "strict" | "fallback" | undefined;
1179
- fallbackValue?: any;
1180
- }>>;
1181
- }, z.ZodTypeAny, "passthrough">>;
364
+ }, z.core.$loose>;
1182
365
  export declare const executeToolBodySchema: z.ZodObject<{
1183
- data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
1184
- } & {
366
+ data: z.ZodCustom<unknown, unknown>;
1185
367
  requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1186
- }, "strip", z.ZodTypeAny, {
1187
- requestContext?: Record<string, any> | undefined;
1188
- data?: unknown;
1189
- }, {
1190
- requestContext?: Record<string, any> | undefined;
1191
- data?: unknown;
1192
- }>;
368
+ }, z.core.$strip>;
1193
369
  export declare const executeToolContextBodySchema: z.ZodObject<{
1194
- data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
1195
- } & {
370
+ data: z.ZodCustom<unknown, unknown>;
1196
371
  requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1197
- }, "strip", z.ZodTypeAny, {
1198
- requestContext?: Record<string, any> | undefined;
1199
- data?: unknown;
1200
- }, {
1201
- requestContext?: Record<string, any> | undefined;
1202
- data?: unknown;
1203
- }>;
372
+ }, z.core.$strip>;
1204
373
  /**
1205
374
  * Response schema for voice speakers endpoint
1206
375
  * Flexible to accommodate provider-specific metadata
1207
376
  */
1208
377
  export declare const voiceSpeakersResponseSchema: z.ZodArray<z.ZodObject<{
1209
378
  voiceId: z.ZodString;
1210
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1211
- voiceId: z.ZodString;
1212
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1213
- voiceId: z.ZodString;
1214
- }, z.ZodTypeAny, "passthrough">>, "many">;
379
+ }, z.core.$loose>>;
1215
380
  /**
1216
381
  * Body schema for approving tool call
1217
382
  */
@@ -1220,17 +385,7 @@ export declare const approveToolCallBodySchema: z.ZodObject<{
1220
385
  requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1221
386
  toolCallId: z.ZodString;
1222
387
  format: z.ZodOptional<z.ZodString>;
1223
- }, "strip", z.ZodTypeAny, {
1224
- runId: string;
1225
- toolCallId: string;
1226
- requestContext?: Record<string, any> | undefined;
1227
- format?: string | undefined;
1228
- }, {
1229
- runId: string;
1230
- toolCallId: string;
1231
- requestContext?: Record<string, any> | undefined;
1232
- format?: string | undefined;
1233
- }>;
388
+ }, z.core.$strip>;
1234
389
  /**
1235
390
  * Body schema for declining tool call
1236
391
  */
@@ -1239,50 +394,42 @@ export declare const declineToolCallBodySchema: z.ZodObject<{
1239
394
  requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1240
395
  toolCallId: z.ZodString;
1241
396
  format: z.ZodOptional<z.ZodString>;
1242
- }, "strip", z.ZodTypeAny, {
1243
- runId: string;
1244
- toolCallId: string;
1245
- requestContext?: Record<string, any> | undefined;
1246
- format?: string | undefined;
1247
- }, {
1248
- runId: string;
1249
- toolCallId: string;
1250
- requestContext?: Record<string, any> | undefined;
1251
- format?: string | undefined;
1252
- }>;
397
+ }, z.core.$strip>;
398
+ /**
399
+ * Body schema for approving network tool call
400
+ */
401
+ export declare const approveNetworkToolCallBodySchema: z.ZodObject<{
402
+ runId: z.ZodString;
403
+ requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
404
+ format: z.ZodOptional<z.ZodString>;
405
+ }, z.core.$strip>;
406
+ /**
407
+ * Body schema for declining network tool call
408
+ */
409
+ export declare const declineNetworkToolCallBodySchema: z.ZodObject<{
410
+ runId: z.ZodString;
411
+ requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
412
+ format: z.ZodOptional<z.ZodString>;
413
+ }, z.core.$strip>;
1253
414
  /**
1254
415
  * Response schema for tool approval/decline
1255
416
  */
1256
417
  export declare const toolCallResponseSchema: z.ZodObject<{
1257
418
  fullStream: z.ZodAny;
1258
- }, "strip", z.ZodTypeAny, {
1259
- fullStream?: any;
1260
- }, {
1261
- fullStream?: any;
1262
- }>;
419
+ }, z.core.$strip>;
1263
420
  /**
1264
421
  * Body schema for updating agent model
1265
422
  */
1266
423
  export declare const updateAgentModelBodySchema: z.ZodObject<{
1267
424
  modelId: z.ZodString;
1268
425
  provider: z.ZodString;
1269
- }, "strip", z.ZodTypeAny, {
1270
- modelId: string;
1271
- provider: string;
1272
- }, {
1273
- modelId: string;
1274
- provider: string;
1275
- }>;
426
+ }, z.core.$strip>;
1276
427
  /**
1277
428
  * Body schema for reordering agent model list
1278
429
  */
1279
430
  export declare const reorderAgentModelListBodySchema: z.ZodObject<{
1280
- reorderedModelIds: z.ZodArray<z.ZodString, "many">;
1281
- }, "strip", z.ZodTypeAny, {
1282
- reorderedModelIds: string[];
1283
- }, {
1284
- reorderedModelIds: string[];
1285
- }>;
431
+ reorderedModelIds: z.ZodArray<z.ZodString>;
432
+ }, z.core.$strip>;
1286
433
  /**
1287
434
  * Body schema for updating model in model list
1288
435
  */
@@ -1290,76 +437,36 @@ export declare const updateAgentModelInModelListBodySchema: z.ZodObject<{
1290
437
  model: z.ZodOptional<z.ZodObject<{
1291
438
  modelId: z.ZodString;
1292
439
  provider: z.ZodString;
1293
- }, "strip", z.ZodTypeAny, {
1294
- modelId: string;
1295
- provider: string;
1296
- }, {
1297
- modelId: string;
1298
- provider: string;
1299
- }>>;
440
+ }, z.core.$strip>>;
1300
441
  maxRetries: z.ZodOptional<z.ZodNumber>;
1301
442
  enabled: z.ZodOptional<z.ZodBoolean>;
1302
- }, "strip", z.ZodTypeAny, {
1303
- model?: {
1304
- modelId: string;
1305
- provider: string;
1306
- } | undefined;
1307
- maxRetries?: number | undefined;
1308
- enabled?: boolean | undefined;
1309
- }, {
1310
- model?: {
1311
- modelId: string;
1312
- provider: string;
1313
- } | undefined;
1314
- maxRetries?: number | undefined;
1315
- enabled?: boolean | undefined;
1316
- }>;
443
+ }, z.core.$strip>;
1317
444
  /**
1318
445
  * Response schema for model management operations
1319
446
  */
1320
447
  export declare const modelManagementResponseSchema: z.ZodObject<{
1321
448
  message: z.ZodString;
1322
- }, "strip", z.ZodTypeAny, {
1323
- message: string;
1324
- }, {
1325
- message: string;
1326
- }>;
449
+ }, z.core.$strip>;
1327
450
  /**
1328
451
  * Body schema for generating speech
1329
452
  */
1330
453
  export declare const generateSpeechBodySchema: z.ZodObject<{
1331
454
  text: z.ZodString;
1332
455
  speakerId: z.ZodOptional<z.ZodString>;
1333
- }, "strip", z.ZodTypeAny, {
1334
- text: string;
1335
- speakerId?: string | undefined;
1336
- }, {
1337
- text: string;
1338
- speakerId?: string | undefined;
1339
- }>;
456
+ }, z.core.$strip>;
1340
457
  /**
1341
458
  * Body schema for transcribing speech
1342
459
  */
1343
460
  export declare const transcribeSpeechBodySchema: z.ZodObject<{
1344
- audioData: z.ZodAny;
461
+ audio: z.ZodAny;
1345
462
  options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1346
- }, "strip", z.ZodTypeAny, {
1347
- options?: Record<string, any> | undefined;
1348
- audioData?: any;
1349
- }, {
1350
- options?: Record<string, any> | undefined;
1351
- audioData?: any;
1352
- }>;
463
+ }, z.core.$strip>;
1353
464
  /**
1354
465
  * Response schema for transcribe speech
1355
466
  */
1356
467
  export declare const transcribeSpeechResponseSchema: z.ZodObject<{
1357
468
  text: z.ZodString;
1358
- }, "strip", z.ZodTypeAny, {
1359
- text: string;
1360
- }, {
1361
- text: string;
1362
- }>;
469
+ }, z.core.$strip>;
1363
470
  /**
1364
471
  * Response schema for get listener
1365
472
  */
@@ -1372,4 +479,18 @@ export declare const generateResponseSchema: z.ZodAny;
1372
479
  export declare const streamResponseSchema: z.ZodAny;
1373
480
  export declare const speakResponseSchema: z.ZodAny;
1374
481
  export declare const executeToolResponseSchema: z.ZodAny;
482
+ /**
483
+ * Body schema for enhancing agent instructions
484
+ */
485
+ export declare const enhanceInstructionsBodySchema: z.ZodObject<{
486
+ instructions: z.ZodString;
487
+ comment: z.ZodString;
488
+ }, z.core.$strip>;
489
+ /**
490
+ * Response schema for enhanced instructions
491
+ */
492
+ export declare const enhanceInstructionsResponseSchema: z.ZodObject<{
493
+ explanation: z.ZodString;
494
+ new_prompt: z.ZodString;
495
+ }, z.core.$strip>;
1375
496
  //# sourceMappingURL=agents.d.ts.map