@mastra/server 1.0.0-beta.0 → 1.0.0-beta.10

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 (302) hide show
  1. package/CHANGELOG.md +250 -0
  2. package/dist/chunk-3SFLFUKY.js +116 -0
  3. package/dist/chunk-3SFLFUKY.js.map +1 -0
  4. package/dist/chunk-4W2SM6CG.js +294 -0
  5. package/dist/chunk-4W2SM6CG.js.map +1 -0
  6. package/dist/chunk-5W4RPVTK.cjs +49 -0
  7. package/dist/chunk-5W4RPVTK.cjs.map +1 -0
  8. package/dist/{chunk-D7T74TVR.js → chunk-6YWE7UPT.js} +18 -4
  9. package/dist/chunk-6YWE7UPT.js.map +1 -0
  10. package/dist/chunk-7HX4V5Y6.cjs +23268 -0
  11. package/dist/chunk-7HX4V5Y6.cjs.map +1 -0
  12. package/dist/chunk-7N3PD4SV.js +196 -0
  13. package/dist/chunk-7N3PD4SV.js.map +1 -0
  14. package/dist/chunk-AWBBXA36.js +23226 -0
  15. package/dist/chunk-AWBBXA36.js.map +1 -0
  16. package/dist/{chunk-KJIDZQRA.cjs → chunk-C3D3X2L5.cjs} +219 -24
  17. package/dist/chunk-C3D3X2L5.cjs.map +1 -0
  18. package/dist/{chunk-FPBYKMIS.js → chunk-CT5VG7NT.js} +213 -24
  19. package/dist/chunk-CT5VG7NT.js.map +1 -0
  20. package/dist/chunk-DG3INBBQ.js +1061 -0
  21. package/dist/chunk-DG3INBBQ.js.map +1 -0
  22. package/dist/chunk-DHWPHLGF.cjs +211 -0
  23. package/dist/chunk-DHWPHLGF.cjs.map +1 -0
  24. package/dist/chunk-DRUNNM4C.js +328 -0
  25. package/dist/chunk-DRUNNM4C.js.map +1 -0
  26. package/dist/{chunk-TOCYBDP2.js → chunk-ER3QM7DD.js} +4 -4
  27. package/dist/{chunk-TOCYBDP2.js.map → chunk-ER3QM7DD.js.map} +1 -1
  28. package/dist/chunk-ESZ6V5WB.cjs +916 -0
  29. package/dist/chunk-ESZ6V5WB.cjs.map +1 -0
  30. package/dist/chunk-FPCGLPLJ.cjs +297 -0
  31. package/dist/chunk-FPCGLPLJ.cjs.map +1 -0
  32. package/dist/chunk-FYY54HZC.js +310 -0
  33. package/dist/chunk-FYY54HZC.js.map +1 -0
  34. package/dist/chunk-GFF2I6UD.js +354 -0
  35. package/dist/chunk-GFF2I6UD.js.map +1 -0
  36. package/dist/chunk-H2RMXG2Q.cjs +167 -0
  37. package/dist/chunk-H2RMXG2Q.cjs.map +1 -0
  38. package/dist/chunk-HAJOEDNB.js +274 -0
  39. package/dist/chunk-HAJOEDNB.js.map +1 -0
  40. package/dist/chunk-HT4LP3BO.js +75 -0
  41. package/dist/chunk-HT4LP3BO.js.map +1 -0
  42. package/dist/chunk-I6LR6CPC.cjs +125 -0
  43. package/dist/chunk-I6LR6CPC.cjs.map +1 -0
  44. package/dist/chunk-IEYXQTUW.cjs +284 -0
  45. package/dist/chunk-IEYXQTUW.cjs.map +1 -0
  46. package/dist/chunk-MCYD5LW7.cjs +90 -0
  47. package/dist/chunk-MCYD5LW7.cjs.map +1 -0
  48. package/dist/chunk-PUFCKXFW.cjs +312 -0
  49. package/dist/chunk-PUFCKXFW.cjs.map +1 -0
  50. package/dist/{chunk-W2KMU354.cjs → chunk-PUSD37LD.cjs} +18 -4
  51. package/dist/chunk-PUSD37LD.cjs.map +1 -0
  52. package/dist/chunk-Q6SVIZLX.js +786 -0
  53. package/dist/chunk-Q6SVIZLX.js.map +1 -0
  54. package/dist/chunk-QNVYGEJ4.js +204 -0
  55. package/dist/chunk-QNVYGEJ4.js.map +1 -0
  56. package/dist/chunk-R56K77E2.cjs +810 -0
  57. package/dist/chunk-R56K77E2.cjs.map +1 -0
  58. package/dist/chunk-S3TIWWQL.cjs +322 -0
  59. package/dist/chunk-S3TIWWQL.cjs.map +1 -0
  60. package/dist/chunk-SXVANU23.js +164 -0
  61. package/dist/chunk-SXVANU23.js.map +1 -0
  62. package/dist/chunk-TYZ6ZISQ.cjs +368 -0
  63. package/dist/chunk-TYZ6ZISQ.cjs.map +1 -0
  64. package/dist/chunk-US6Y5RLR.cjs +205 -0
  65. package/dist/chunk-US6Y5RLR.cjs.map +1 -0
  66. package/dist/chunk-UTIOKR5C.js +887 -0
  67. package/dist/chunk-UTIOKR5C.js.map +1 -0
  68. package/dist/{chunk-QU6N55W6.cjs → chunk-V272B7RM.cjs} +11 -12
  69. package/dist/chunk-V272B7RM.cjs.map +1 -0
  70. package/dist/chunk-WE4USCF3.js +226 -0
  71. package/dist/chunk-WE4USCF3.js.map +1 -0
  72. package/dist/chunk-WVAQXM6W.cjs +1105 -0
  73. package/dist/chunk-WVAQXM6W.cjs.map +1 -0
  74. package/dist/chunk-X43DWDXB.cjs +346 -0
  75. package/dist/chunk-X43DWDXB.cjs.map +1 -0
  76. package/dist/chunk-X4QMPCTP.cjs +259 -0
  77. package/dist/chunk-X4QMPCTP.cjs.map +1 -0
  78. package/dist/{chunk-X6C7BUWN.cjs → chunk-XQPJ63ZD.cjs} +4 -4
  79. package/dist/{chunk-X6C7BUWN.cjs.map → chunk-XQPJ63ZD.cjs.map} +1 -1
  80. package/dist/chunk-XW2HXQDO.js +302 -0
  81. package/dist/chunk-XW2HXQDO.js.map +1 -0
  82. package/dist/chunk-XWGAT2DA.js +44 -0
  83. package/dist/chunk-XWGAT2DA.js.map +1 -0
  84. package/dist/{chunk-SHWNNZBL.js → chunk-YP34EWWK.js} +9 -10
  85. package/dist/chunk-YP34EWWK.js.map +1 -0
  86. package/dist/server/auth/defaults.d.ts +3 -0
  87. package/dist/server/auth/defaults.d.ts.map +1 -0
  88. package/dist/server/auth/helpers.d.ts +14 -0
  89. package/dist/server/auth/helpers.d.ts.map +1 -0
  90. package/dist/server/auth/index.cjs +137 -0
  91. package/dist/server/auth/index.cjs.map +1 -0
  92. package/dist/server/auth/index.d.ts +3 -0
  93. package/dist/server/auth/index.d.ts.map +1 -0
  94. package/dist/server/auth/index.js +127 -0
  95. package/dist/server/auth/index.js.map +1 -0
  96. package/dist/server/handlers/a2a.cjs +15 -7
  97. package/dist/server/handlers/a2a.d.ts +482 -0
  98. package/dist/server/handlers/a2a.d.ts.map +1 -1
  99. package/dist/server/handlers/a2a.js +1 -1
  100. package/dist/server/handlers/agent-builder.cjs +37 -37
  101. package/dist/server/handlers/agent-builder.d.ts +599 -77
  102. package/dist/server/handlers/agent-builder.d.ts.map +1 -1
  103. package/dist/server/handlers/agent-builder.js +1 -1
  104. package/dist/server/handlers/agents.cjs +53 -37
  105. package/dist/server/handlers/agents.d.ts +3273 -128
  106. package/dist/server/handlers/agents.d.ts.map +1 -1
  107. package/dist/server/handlers/agents.js +1 -1
  108. package/dist/server/handlers/logs.cjs +7 -7
  109. package/dist/server/handlers/logs.d.ts +135 -27
  110. package/dist/server/handlers/logs.d.ts.map +1 -1
  111. package/dist/server/handlers/logs.js +1 -1
  112. package/dist/server/handlers/mcp.cjs +40 -0
  113. package/dist/server/handlers/mcp.cjs.map +1 -0
  114. package/dist/server/handlers/mcp.d.ts +110 -0
  115. package/dist/server/handlers/mcp.d.ts.map +1 -0
  116. package/dist/server/handlers/mcp.js +3 -0
  117. package/dist/server/handlers/mcp.js.map +1 -0
  118. package/dist/server/handlers/memory.cjs +67 -27
  119. package/dist/server/handlers/memory.d.ts +933 -96
  120. package/dist/server/handlers/memory.d.ts.map +1 -1
  121. package/dist/server/handlers/memory.js +1 -1
  122. package/dist/server/handlers/observability.cjs +21 -5
  123. package/dist/server/handlers/observability.d.ts +119 -12
  124. package/dist/server/handlers/observability.d.ts.map +1 -1
  125. package/dist/server/handlers/observability.js +1 -1
  126. package/dist/server/handlers/scores.cjs +13 -13
  127. package/dist/server/handlers/scores.d.ts +110 -141
  128. package/dist/server/handlers/scores.d.ts.map +1 -1
  129. package/dist/server/handlers/scores.js +1 -1
  130. package/dist/server/handlers/stored-agents.cjs +28 -0
  131. package/dist/server/handlers/stored-agents.cjs.map +1 -0
  132. package/dist/server/handlers/stored-agents.d.ts +289 -0
  133. package/dist/server/handlers/stored-agents.d.ts.map +1 -0
  134. package/dist/server/handlers/stored-agents.js +3 -0
  135. package/dist/server/handlers/stored-agents.js.map +1 -0
  136. package/dist/server/handlers/test-utils.cjs +15 -0
  137. package/dist/server/handlers/test-utils.cjs.map +1 -0
  138. package/dist/server/handlers/test-utils.d.ts +6 -0
  139. package/dist/server/handlers/test-utils.d.ts.map +1 -0
  140. package/dist/server/handlers/test-utils.js +13 -0
  141. package/dist/server/handlers/test-utils.js.map +1 -0
  142. package/dist/server/handlers/tools.cjs +11 -11
  143. package/dist/server/handlers/tools.d.ts +69 -23
  144. package/dist/server/handlers/tools.d.ts.map +1 -1
  145. package/dist/server/handlers/tools.js +1 -1
  146. package/dist/server/handlers/utils.cjs +11 -3
  147. package/dist/server/handlers/utils.d.ts +5 -0
  148. package/dist/server/handlers/utils.d.ts.map +1 -1
  149. package/dist/server/handlers/utils.js +1 -1
  150. package/dist/server/handlers/vector.cjs +31 -7
  151. package/dist/server/handlers/vector.d.ts +93 -9
  152. package/dist/server/handlers/vector.d.ts.map +1 -1
  153. package/dist/server/handlers/vector.js +1 -1
  154. package/dist/server/handlers/voice.cjs +21 -9
  155. package/dist/server/handlers/voice.d.ts +81 -40
  156. package/dist/server/handlers/voice.d.ts.map +1 -1
  157. package/dist/server/handlers/voice.js +1 -1
  158. package/dist/server/handlers/workflows.cjs +69 -37
  159. package/dist/server/handlers/workflows.d.ts +927 -79
  160. package/dist/server/handlers/workflows.d.ts.map +1 -1
  161. package/dist/server/handlers/workflows.js +1 -1
  162. package/dist/server/handlers.cjs +36 -31
  163. package/dist/server/handlers.d.ts +1 -0
  164. package/dist/server/handlers.d.ts.map +1 -1
  165. package/dist/server/handlers.js +12 -11
  166. package/dist/server/schemas/a2a.d.ts +786 -0
  167. package/dist/server/schemas/a2a.d.ts.map +1 -0
  168. package/dist/server/schemas/agent-builder.d.ts +204 -0
  169. package/dist/server/schemas/agent-builder.d.ts.map +1 -0
  170. package/dist/server/schemas/agents.d.ts +1375 -0
  171. package/dist/server/schemas/agents.d.ts.map +1 -0
  172. package/dist/server/schemas/common.d.ts +179 -0
  173. package/dist/server/schemas/common.d.ts.map +1 -0
  174. package/dist/server/schemas/logs.d.ts +124 -0
  175. package/dist/server/schemas/logs.d.ts.map +1 -0
  176. package/dist/server/schemas/mcp.d.ts +299 -0
  177. package/dist/server/schemas/mcp.d.ts.map +1 -0
  178. package/dist/server/schemas/memory.d.ts +998 -0
  179. package/dist/server/schemas/memory.d.ts.map +1 -0
  180. package/dist/server/schemas/observability.d.ts +402 -0
  181. package/dist/server/schemas/observability.d.ts.map +1 -0
  182. package/dist/server/schemas/scores.d.ts +259 -0
  183. package/dist/server/schemas/scores.d.ts.map +1 -0
  184. package/dist/server/schemas/stored-agents.d.ts +792 -0
  185. package/dist/server/schemas/stored-agents.d.ts.map +1 -0
  186. package/dist/server/schemas/vectors.d.ts +107 -0
  187. package/dist/server/schemas/vectors.d.ts.map +1 -0
  188. package/dist/server/schemas/workflows.d.ts +602 -0
  189. package/dist/server/schemas/workflows.d.ts.map +1 -0
  190. package/dist/server/server-adapter/index.cjs +481 -0
  191. package/dist/server/server-adapter/index.cjs.map +1 -0
  192. package/dist/server/server-adapter/index.d.ts +91 -0
  193. package/dist/server/server-adapter/index.d.ts.map +1 -0
  194. package/dist/server/server-adapter/index.js +466 -0
  195. package/dist/server/server-adapter/index.js.map +1 -0
  196. package/dist/server/server-adapter/openapi-utils.d.ts +59 -0
  197. package/dist/server/server-adapter/openapi-utils.d.ts.map +1 -0
  198. package/dist/server/server-adapter/redact.d.ts +26 -0
  199. package/dist/server/server-adapter/redact.d.ts.map +1 -0
  200. package/dist/server/server-adapter/routes/a2a.d.ts +3 -0
  201. package/dist/server/server-adapter/routes/a2a.d.ts.map +1 -0
  202. package/dist/server/server-adapter/routes/agent-builder.d.ts +3 -0
  203. package/dist/server/server-adapter/routes/agent-builder.d.ts.map +1 -0
  204. package/dist/server/server-adapter/routes/agents.d.ts +3 -0
  205. package/dist/server/server-adapter/routes/agents.d.ts.map +1 -0
  206. package/dist/server/server-adapter/routes/index.d.ts +50 -0
  207. package/dist/server/server-adapter/routes/index.d.ts.map +1 -0
  208. package/dist/server/server-adapter/routes/legacy.d.ts +7 -0
  209. package/dist/server/server-adapter/routes/legacy.d.ts.map +1 -0
  210. package/dist/server/server-adapter/routes/logs.d.ts +3 -0
  211. package/dist/server/server-adapter/routes/logs.d.ts.map +1 -0
  212. package/dist/server/server-adapter/routes/mcp.d.ts +9 -0
  213. package/dist/server/server-adapter/routes/mcp.d.ts.map +1 -0
  214. package/dist/server/server-adapter/routes/memory.d.ts +3 -0
  215. package/dist/server/server-adapter/routes/memory.d.ts.map +1 -0
  216. package/dist/server/server-adapter/routes/observability.d.ts +3 -0
  217. package/dist/server/server-adapter/routes/observability.d.ts.map +1 -0
  218. package/dist/server/server-adapter/routes/route-builder.d.ts +52 -0
  219. package/dist/server/server-adapter/routes/route-builder.d.ts.map +1 -0
  220. package/dist/server/server-adapter/routes/scorers.d.ts +3 -0
  221. package/dist/server/server-adapter/routes/scorers.d.ts.map +1 -0
  222. package/dist/server/server-adapter/routes/stored-agents.d.ts +8 -0
  223. package/dist/server/server-adapter/routes/stored-agents.d.ts.map +1 -0
  224. package/dist/server/server-adapter/routes/stream-types.d.ts +10 -0
  225. package/dist/server/server-adapter/routes/stream-types.d.ts.map +1 -0
  226. package/dist/server/server-adapter/routes/tools.d.ts +3 -0
  227. package/dist/server/server-adapter/routes/tools.d.ts.map +1 -0
  228. package/dist/server/server-adapter/routes/vectors.d.ts +3 -0
  229. package/dist/server/server-adapter/routes/vectors.d.ts.map +1 -0
  230. package/dist/server/server-adapter/routes/workflows.d.ts +3 -0
  231. package/dist/server/server-adapter/routes/workflows.d.ts.map +1 -0
  232. package/dist/server/utils.d.ts +1 -1
  233. package/dist/server/utils.d.ts.map +1 -1
  234. package/dist/token-GVZ7HRD7.js +62 -0
  235. package/dist/{token-C3IMNCC4.js.map → token-GVZ7HRD7.js.map} +1 -1
  236. package/dist/{token-C3IMNCC4.js → token-JGA3ZWAN.js} +5 -6
  237. package/dist/token-JGA3ZWAN.js.map +1 -0
  238. package/dist/token-VFONFWVS.cjs +64 -0
  239. package/dist/{token-375W3LEI.cjs.map → token-VFONFWVS.cjs.map} +1 -1
  240. package/dist/{token-375W3LEI.cjs → token-ZOD6YIQ3.cjs} +7 -8
  241. package/dist/token-ZOD6YIQ3.cjs.map +1 -0
  242. package/dist/token-util-7R2ZFIXO.js +7 -0
  243. package/dist/{token-util-E5QO2RCL.js.map → token-util-7R2ZFIXO.js.map} +1 -1
  244. package/dist/token-util-BLJZJDBZ.cjs +9 -0
  245. package/dist/{token-util-CV3RRG6K.cjs.map → token-util-BLJZJDBZ.cjs.map} +1 -1
  246. package/dist/token-util-VGZUWSNR.cjs +9 -0
  247. package/dist/token-util-VGZUWSNR.cjs.map +1 -0
  248. package/dist/token-util-VKTPZLSE.js +7 -0
  249. package/dist/token-util-VKTPZLSE.js.map +1 -0
  250. package/package.json +30 -5
  251. package/dist/chunk-2IS5WICF.js +0 -23036
  252. package/dist/chunk-2IS5WICF.js.map +0 -1
  253. package/dist/chunk-2YZH5PH6.cjs +0 -200
  254. package/dist/chunk-2YZH5PH6.cjs.map +0 -1
  255. package/dist/chunk-3AMNUUZF.js +0 -124
  256. package/dist/chunk-3AMNUUZF.js.map +0 -1
  257. package/dist/chunk-3F52QCI4.js +0 -192
  258. package/dist/chunk-3F52QCI4.js.map +0 -1
  259. package/dist/chunk-4JF5WXPL.js +0 -502
  260. package/dist/chunk-4JF5WXPL.js.map +0 -1
  261. package/dist/chunk-73PAWDM5.js +0 -83
  262. package/dist/chunk-73PAWDM5.js.map +0 -1
  263. package/dist/chunk-A24TSVEZ.cjs +0 -130
  264. package/dist/chunk-A24TSVEZ.cjs.map +0 -1
  265. package/dist/chunk-A2NPD5N6.cjs +0 -517
  266. package/dist/chunk-A2NPD5N6.cjs.map +0 -1
  267. package/dist/chunk-B3Z6J745.js +0 -122
  268. package/dist/chunk-B3Z6J745.js.map +0 -1
  269. package/dist/chunk-BTWIR2B7.cjs +0 -28
  270. package/dist/chunk-BTWIR2B7.cjs.map +0 -1
  271. package/dist/chunk-D7T74TVR.js.map +0 -1
  272. package/dist/chunk-EHACNWDL.cjs +0 -681
  273. package/dist/chunk-EHACNWDL.cjs.map +0 -1
  274. package/dist/chunk-FPBYKMIS.js.map +0 -1
  275. package/dist/chunk-GLAZTMX3.cjs +0 -128
  276. package/dist/chunk-GLAZTMX3.cjs.map +0 -1
  277. package/dist/chunk-ID6JYDNL.cjs +0 -23075
  278. package/dist/chunk-ID6JYDNL.cjs.map +0 -1
  279. package/dist/chunk-KF3RI45U.cjs +0 -172
  280. package/dist/chunk-KF3RI45U.cjs.map +0 -1
  281. package/dist/chunk-KJIDZQRA.cjs.map +0 -1
  282. package/dist/chunk-KWH5QBXP.js +0 -123
  283. package/dist/chunk-KWH5QBXP.js.map +0 -1
  284. package/dist/chunk-ND5OKOMT.js +0 -165
  285. package/dist/chunk-ND5OKOMT.js.map +0 -1
  286. package/dist/chunk-PPMIB3FQ.cjs +0 -88
  287. package/dist/chunk-PPMIB3FQ.cjs.map +0 -1
  288. package/dist/chunk-QU6N55W6.cjs.map +0 -1
  289. package/dist/chunk-S54HNARD.cjs +0 -131
  290. package/dist/chunk-S54HNARD.cjs.map +0 -1
  291. package/dist/chunk-SHWNNZBL.js.map +0 -1
  292. package/dist/chunk-SZIFSF4T.js +0 -25
  293. package/dist/chunk-SZIFSF4T.js.map +0 -1
  294. package/dist/chunk-W2KMU354.cjs.map +0 -1
  295. package/dist/chunk-X3MICMI2.cjs +0 -620
  296. package/dist/chunk-X3MICMI2.cjs.map +0 -1
  297. package/dist/chunk-Z2O5YVHY.js +0 -661
  298. package/dist/chunk-Z2O5YVHY.js.map +0 -1
  299. package/dist/chunk-ZJ6KEY6H.js +0 -600
  300. package/dist/chunk-ZJ6KEY6H.js.map +0 -1
  301. package/dist/token-util-CV3RRG6K.cjs +0 -9
  302. package/dist/token-util-E5QO2RCL.js +0 -7
@@ -0,0 +1,1375 @@
1
+ import z from 'zod';
2
+ export declare const agentIdPathParams: z.ZodObject<{
3
+ agentId: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ agentId: string;
6
+ }, {
7
+ agentId: string;
8
+ }>;
9
+ export declare const toolIdPathParams: z.ZodObject<{
10
+ toolId: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ toolId: string;
13
+ }, {
14
+ toolId: string;
15
+ }>;
16
+ export declare const agentToolPathParams: z.ZodObject<{
17
+ agentId: z.ZodString;
18
+ } & {
19
+ toolId: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ agentId: string;
22
+ toolId: string;
23
+ }, {
24
+ agentId: string;
25
+ toolId: string;
26
+ }>;
27
+ export declare const modelConfigIdPathParams: z.ZodObject<{
28
+ agentId: z.ZodString;
29
+ } & {
30
+ modelConfigId: z.ZodString;
31
+ }, "strip", z.ZodTypeAny, {
32
+ agentId: string;
33
+ modelConfigId: string;
34
+ }, {
35
+ agentId: string;
36
+ modelConfigId: string;
37
+ }>;
38
+ /**
39
+ * Schema for serialized processor metadata
40
+ */
41
+ export declare const serializedProcessorSchema: z.ZodObject<{
42
+ id: z.ZodString;
43
+ 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
+ }>;
51
+ /**
52
+ * Schema for serialized tool with JSON schemas
53
+ * Uses passthrough() to allow additional tool properties beyond core fields
54
+ */
55
+ export declare const serializedToolSchema: z.ZodObject<{
56
+ id: z.ZodString;
57
+ description: z.ZodOptional<z.ZodString>;
58
+ inputSchema: z.ZodOptional<z.ZodString>;
59
+ outputSchema: z.ZodOptional<z.ZodString>;
60
+ 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
+ }>;
74
+ /**
75
+ * Schema for serialized workflow with steps
76
+ */
77
+ export declare const serializedWorkflowSchema: z.ZodObject<{
78
+ name: z.ZodString;
79
+ steps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
80
+ id: z.ZodString;
81
+ 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
+ }>;
102
+ /**
103
+ * Schema for serialized agent definition (referenced by other agents)
104
+ */
105
+ export declare const serializedAgentDefinitionSchema: z.ZodObject<{
106
+ id: z.ZodString;
107
+ name: z.ZodString;
108
+ }, "strip", z.ZodTypeAny, {
109
+ name: string;
110
+ id: string;
111
+ }, {
112
+ name: string;
113
+ id: string;
114
+ }>;
115
+ /**
116
+ * Main schema for serialized agent representation
117
+ */
118
+ export declare const serializedAgentSchema: z.ZodObject<{
119
+ name: z.ZodString;
120
+ 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">]>>;
122
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
123
+ id: z.ZodString;
124
+ description: z.ZodOptional<z.ZodString>;
125
+ inputSchema: z.ZodOptional<z.ZodString>;
126
+ outputSchema: z.ZodOptional<z.ZodString>;
127
+ 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
+ }>>;
141
+ agents: z.ZodRecord<z.ZodString, z.ZodObject<{
142
+ id: z.ZodString;
143
+ name: z.ZodString;
144
+ }, "strip", z.ZodTypeAny, {
145
+ name: string;
146
+ id: string;
147
+ }, {
148
+ name: string;
149
+ id: string;
150
+ }>>;
151
+ workflows: z.ZodRecord<z.ZodString, z.ZodObject<{
152
+ name: z.ZodString;
153
+ steps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
154
+ id: z.ZodString;
155
+ 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
+ }>>;
176
+ inputProcessors: z.ZodArray<z.ZodObject<{
177
+ id: z.ZodString;
178
+ 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">;
186
+ outputProcessors: z.ZodArray<z.ZodObject<{
187
+ id: z.ZodString;
188
+ 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">;
196
+ provider: z.ZodOptional<z.ZodString>;
197
+ modelId: z.ZodOptional<z.ZodString>;
198
+ modelVersion: z.ZodOptional<z.ZodString>;
199
+ modelList: z.ZodOptional<z.ZodArray<z.ZodObject<{
200
+ model: z.ZodObject<{
201
+ modelId: z.ZodString;
202
+ provider: z.ZodString;
203
+ 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">>;
226
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
227
+ defaultGenerateOptionsLegacy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
228
+ 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
+ }>;
316
+ /**
317
+ * Schema for agent with ID
318
+ */
319
+ export declare const serializedAgentWithIdSchema: z.ZodObject<{
320
+ name: z.ZodString;
321
+ 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">]>>;
323
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
324
+ id: z.ZodString;
325
+ description: z.ZodOptional<z.ZodString>;
326
+ inputSchema: z.ZodOptional<z.ZodString>;
327
+ outputSchema: z.ZodOptional<z.ZodString>;
328
+ 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
+ }>>;
342
+ agents: z.ZodRecord<z.ZodString, z.ZodObject<{
343
+ id: z.ZodString;
344
+ name: z.ZodString;
345
+ }, "strip", z.ZodTypeAny, {
346
+ name: string;
347
+ id: string;
348
+ }, {
349
+ name: string;
350
+ id: string;
351
+ }>>;
352
+ workflows: z.ZodRecord<z.ZodString, z.ZodObject<{
353
+ name: z.ZodString;
354
+ steps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
355
+ id: z.ZodString;
356
+ 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
+ }>>;
377
+ inputProcessors: z.ZodArray<z.ZodObject<{
378
+ id: z.ZodString;
379
+ 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">;
387
+ outputProcessors: z.ZodArray<z.ZodObject<{
388
+ id: z.ZodString;
389
+ 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">;
397
+ provider: z.ZodOptional<z.ZodString>;
398
+ modelId: z.ZodOptional<z.ZodString>;
399
+ modelVersion: z.ZodOptional<z.ZodString>;
400
+ modelList: z.ZodOptional<z.ZodArray<z.ZodObject<{
401
+ model: z.ZodObject<{
402
+ modelId: z.ZodString;
403
+ provider: z.ZodString;
404
+ 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">>;
427
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
428
+ defaultGenerateOptionsLegacy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
429
+ defaultStreamOptionsLegacy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
430
+ } & {
431
+ 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
+ }>;
521
+ /**
522
+ * Schema for individual provider information
523
+ */
524
+ export declare const providerSchema: z.ZodObject<{
525
+ id: z.ZodString;
526
+ name: z.ZodString;
527
+ label: z.ZodOptional<z.ZodString>;
528
+ 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
+ }>;
540
+ /**
541
+ * Schema for providers endpoint response
542
+ */
543
+ export declare const providersResponseSchema: z.ZodObject<{
544
+ providers: z.ZodArray<z.ZodObject<{
545
+ id: z.ZodString;
546
+ name: z.ZodString;
547
+ label: z.ZodOptional<z.ZodString>;
548
+ 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
+ }>;
575
+ /**
576
+ * Schema for list agents endpoint response
577
+ * Returns a record of agent ID to serialized agent
578
+ */
579
+ export declare const listAgentsResponseSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
580
+ name: z.ZodString;
581
+ 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">]>>;
583
+ tools: z.ZodRecord<z.ZodString, z.ZodObject<{
584
+ id: z.ZodString;
585
+ description: z.ZodOptional<z.ZodString>;
586
+ inputSchema: z.ZodOptional<z.ZodString>;
587
+ outputSchema: z.ZodOptional<z.ZodString>;
588
+ 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
+ }>>;
602
+ agents: z.ZodRecord<z.ZodString, z.ZodObject<{
603
+ id: z.ZodString;
604
+ name: z.ZodString;
605
+ }, "strip", z.ZodTypeAny, {
606
+ name: string;
607
+ id: string;
608
+ }, {
609
+ name: string;
610
+ id: string;
611
+ }>>;
612
+ workflows: z.ZodRecord<z.ZodString, z.ZodObject<{
613
+ name: z.ZodString;
614
+ steps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
615
+ id: z.ZodString;
616
+ 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
+ }>>;
637
+ inputProcessors: z.ZodArray<z.ZodObject<{
638
+ id: z.ZodString;
639
+ 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">;
647
+ outputProcessors: z.ZodArray<z.ZodObject<{
648
+ id: z.ZodString;
649
+ 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">;
657
+ provider: z.ZodOptional<z.ZodString>;
658
+ modelId: z.ZodOptional<z.ZodString>;
659
+ modelVersion: z.ZodOptional<z.ZodString>;
660
+ modelList: z.ZodOptional<z.ZodArray<z.ZodObject<{
661
+ model: z.ZodObject<{
662
+ modelId: z.ZodString;
663
+ provider: z.ZodString;
664
+ 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">>;
687
+ defaultOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
688
+ defaultGenerateOptionsLegacy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
689
+ 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
+ }>>;
777
+ /**
778
+ * Schema for list tools endpoint response
779
+ * Returns a record of tool ID to serialized tool
780
+ */
781
+ export declare const listToolsResponseSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
782
+ id: z.ZodString;
783
+ description: z.ZodOptional<z.ZodString>;
784
+ inputSchema: z.ZodOptional<z.ZodString>;
785
+ outputSchema: z.ZodOptional<z.ZodString>;
786
+ 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
+ }>>;
800
+ /**
801
+ * Comprehensive body schema for agent generate and stream endpoints
802
+ * Validates common fields while using passthrough for complex nested objects
803
+ *
804
+ * EXCLUDED FIELDS (not serializable):
805
+ * - Callbacks: onStepFinish, onFinish, onChunk, onError, onAbort, prepareStep
806
+ * - Class instances: inputProcessors, outputProcessors
807
+ * - Non-serializable: abortSignal, tracingContext
808
+ */
809
+ 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">>;
814
+ memory: z.ZodOptional<z.ZodObject<{
815
+ thread: z.ZodUnion<[z.ZodString, z.ZodObject<{
816
+ 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">>]>;
822
+ resource: z.ZodString;
823
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
824
+ 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>;
843
+ runId: z.ZodOptional<z.ZodString>;
844
+ savePerStep: z.ZodOptional<z.ZodBoolean>;
845
+ requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
846
+ maxSteps: z.ZodOptional<z.ZodNumber>;
847
+ stopWhen: z.ZodOptional<z.ZodAny>;
848
+ providerOptions: z.ZodOptional<z.ZodObject<{
849
+ anthropic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
850
+ google: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
851
+ openai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
852
+ 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
+ }>>;
864
+ modelSettings: z.ZodOptional<z.ZodAny>;
865
+ activeTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
866
+ toolsets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
867
+ clientTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
868
+ toolChoice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
869
+ type: z.ZodLiteral<"tool">;
870
+ toolName: z.ZodString;
871
+ }, "strip", z.ZodTypeAny, {
872
+ type: "tool";
873
+ toolName: string;
874
+ }, {
875
+ type: "tool";
876
+ toolName: string;
877
+ }>]>>;
878
+ requireToolApproval: z.ZodOptional<z.ZodBoolean>;
879
+ scorers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodRecord<z.ZodString, z.ZodObject<{
880
+ scorer: z.ZodString;
881
+ sampling: z.ZodOptional<z.ZodAny>;
882
+ }, "strip", z.ZodTypeAny, {
883
+ scorer: string;
884
+ sampling?: any;
885
+ }, {
886
+ scorer: string;
887
+ sampling?: any;
888
+ }>>]>>;
889
+ returnScorerData: z.ZodOptional<z.ZodBoolean>;
890
+ tracingOptions: z.ZodOptional<z.ZodObject<{
891
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
892
+ requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
893
+ traceId: z.ZodOptional<z.ZodString>;
894
+ 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
+ }>>;
906
+ output: z.ZodOptional<z.ZodAny>;
907
+ 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]>>;
910
+ instructions: z.ZodOptional<z.ZodString>;
911
+ jsonPromptInjection: z.ZodOptional<z.ZodBoolean>;
912
+ errorStrategy: z.ZodOptional<z.ZodEnum<["strict", "warn", "fallback"]>>;
913
+ 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">>;
938
+ memory: z.ZodOptional<z.ZodObject<{
939
+ thread: z.ZodUnion<[z.ZodString, z.ZodObject<{
940
+ 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">>]>;
946
+ resource: z.ZodString;
947
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
948
+ 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>;
967
+ runId: z.ZodOptional<z.ZodString>;
968
+ savePerStep: z.ZodOptional<z.ZodBoolean>;
969
+ requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
970
+ maxSteps: z.ZodOptional<z.ZodNumber>;
971
+ stopWhen: z.ZodOptional<z.ZodAny>;
972
+ providerOptions: z.ZodOptional<z.ZodObject<{
973
+ anthropic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
974
+ google: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
975
+ openai: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
976
+ 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
+ }>>;
988
+ modelSettings: z.ZodOptional<z.ZodAny>;
989
+ activeTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
990
+ toolsets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
991
+ clientTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
992
+ toolChoice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
993
+ type: z.ZodLiteral<"tool">;
994
+ toolName: z.ZodString;
995
+ }, "strip", z.ZodTypeAny, {
996
+ type: "tool";
997
+ toolName: string;
998
+ }, {
999
+ type: "tool";
1000
+ toolName: string;
1001
+ }>]>>;
1002
+ requireToolApproval: z.ZodOptional<z.ZodBoolean>;
1003
+ scorers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodRecord<z.ZodString, z.ZodObject<{
1004
+ scorer: z.ZodString;
1005
+ sampling: z.ZodOptional<z.ZodAny>;
1006
+ }, "strip", z.ZodTypeAny, {
1007
+ scorer: string;
1008
+ sampling?: any;
1009
+ }, {
1010
+ scorer: string;
1011
+ sampling?: any;
1012
+ }>>]>>;
1013
+ returnScorerData: z.ZodOptional<z.ZodBoolean>;
1014
+ tracingOptions: z.ZodOptional<z.ZodObject<{
1015
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1016
+ requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1017
+ traceId: z.ZodOptional<z.ZodString>;
1018
+ 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
+ }>>;
1030
+ output: z.ZodOptional<z.ZodAny>;
1031
+ 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]>>;
1034
+ instructions: z.ZodOptional<z.ZodString>;
1035
+ jsonPromptInjection: z.ZodOptional<z.ZodBoolean>;
1036
+ errorStrategy: z.ZodOptional<z.ZodEnum<["strict", "warn", "fallback"]>>;
1037
+ 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
+ }>>;
1088
+ resourceId: z.ZodOptional<z.ZodString>;
1089
+ resourceid: z.ZodOptional<z.ZodString>;
1090
+ 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">>;
1182
+ export declare const executeToolBodySchema: z.ZodObject<{
1183
+ data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
1184
+ } & {
1185
+ 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
+ }>;
1193
+ export declare const executeToolContextBodySchema: z.ZodObject<{
1194
+ data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
1195
+ } & {
1196
+ 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
+ }>;
1204
+ /**
1205
+ * Response schema for voice speakers endpoint
1206
+ * Flexible to accommodate provider-specific metadata
1207
+ */
1208
+ export declare const voiceSpeakersResponseSchema: z.ZodArray<z.ZodObject<{
1209
+ 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">;
1215
+ /**
1216
+ * Body schema for approving tool call
1217
+ */
1218
+ export declare const approveToolCallBodySchema: z.ZodObject<{
1219
+ runId: z.ZodString;
1220
+ requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1221
+ toolCallId: z.ZodString;
1222
+ 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
+ }>;
1234
+ /**
1235
+ * Body schema for declining tool call
1236
+ */
1237
+ export declare const declineToolCallBodySchema: z.ZodObject<{
1238
+ runId: z.ZodString;
1239
+ requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1240
+ toolCallId: z.ZodString;
1241
+ 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
+ }>;
1253
+ /**
1254
+ * Response schema for tool approval/decline
1255
+ */
1256
+ export declare const toolCallResponseSchema: z.ZodObject<{
1257
+ fullStream: z.ZodAny;
1258
+ }, "strip", z.ZodTypeAny, {
1259
+ fullStream?: any;
1260
+ }, {
1261
+ fullStream?: any;
1262
+ }>;
1263
+ /**
1264
+ * Body schema for updating agent model
1265
+ */
1266
+ export declare const updateAgentModelBodySchema: z.ZodObject<{
1267
+ modelId: z.ZodString;
1268
+ provider: z.ZodString;
1269
+ }, "strip", z.ZodTypeAny, {
1270
+ modelId: string;
1271
+ provider: string;
1272
+ }, {
1273
+ modelId: string;
1274
+ provider: string;
1275
+ }>;
1276
+ /**
1277
+ * Body schema for reordering agent model list
1278
+ */
1279
+ 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
+ }>;
1286
+ /**
1287
+ * Body schema for updating model in model list
1288
+ */
1289
+ export declare const updateAgentModelInModelListBodySchema: z.ZodObject<{
1290
+ model: z.ZodOptional<z.ZodObject<{
1291
+ modelId: z.ZodString;
1292
+ provider: z.ZodString;
1293
+ }, "strip", z.ZodTypeAny, {
1294
+ modelId: string;
1295
+ provider: string;
1296
+ }, {
1297
+ modelId: string;
1298
+ provider: string;
1299
+ }>>;
1300
+ maxRetries: z.ZodOptional<z.ZodNumber>;
1301
+ 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
+ }>;
1317
+ /**
1318
+ * Response schema for model management operations
1319
+ */
1320
+ export declare const modelManagementResponseSchema: z.ZodObject<{
1321
+ message: z.ZodString;
1322
+ }, "strip", z.ZodTypeAny, {
1323
+ message: string;
1324
+ }, {
1325
+ message: string;
1326
+ }>;
1327
+ /**
1328
+ * Body schema for generating speech
1329
+ */
1330
+ export declare const generateSpeechBodySchema: z.ZodObject<{
1331
+ text: z.ZodString;
1332
+ 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
+ }>;
1340
+ /**
1341
+ * Body schema for transcribing speech
1342
+ */
1343
+ export declare const transcribeSpeechBodySchema: z.ZodObject<{
1344
+ audioData: z.ZodAny;
1345
+ 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
+ }>;
1353
+ /**
1354
+ * Response schema for transcribe speech
1355
+ */
1356
+ export declare const transcribeSpeechResponseSchema: z.ZodObject<{
1357
+ text: z.ZodString;
1358
+ }, "strip", z.ZodTypeAny, {
1359
+ text: string;
1360
+ }, {
1361
+ text: string;
1362
+ }>;
1363
+ /**
1364
+ * Response schema for get listener
1365
+ */
1366
+ export declare const getListenerResponseSchema: z.ZodAny;
1367
+ /**
1368
+ * Response schema for agent generation endpoints
1369
+ * These return AI SDK types which have complex structures
1370
+ */
1371
+ export declare const generateResponseSchema: z.ZodAny;
1372
+ export declare const streamResponseSchema: z.ZodAny;
1373
+ export declare const speakResponseSchema: z.ZodAny;
1374
+ export declare const executeToolResponseSchema: z.ZodAny;
1375
+ //# sourceMappingURL=agents.d.ts.map