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

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 (402) 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-2VUOF2MV.cjs +190 -0
  8. package/dist/chunk-2VUOF2MV.cjs.map +1 -0
  9. package/dist/chunk-3JOHBO6Z.cjs +603 -0
  10. package/dist/chunk-3JOHBO6Z.cjs.map +1 -0
  11. package/dist/chunk-3W67K7YE.js +13 -0
  12. package/dist/chunk-3W67K7YE.js.map +1 -0
  13. package/dist/{chunk-ASZUOBKV.js → chunk-47MMB22J.js} +42 -20
  14. package/dist/chunk-47MMB22J.js.map +1 -0
  15. package/dist/chunk-4HFYR562.cjs +82 -0
  16. package/dist/chunk-4HFYR562.cjs.map +1 -0
  17. package/dist/chunk-55TH4ME5.js +170 -0
  18. package/dist/chunk-55TH4ME5.js.map +1 -0
  19. package/dist/chunk-5WFQ4ZBQ.cjs +31787 -0
  20. package/dist/chunk-5WFQ4ZBQ.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-ZLRTFRL4.js → chunk-6GFG23PC.js} +407 -91
  24. package/dist/chunk-6GFG23PC.js.map +1 -0
  25. package/dist/{chunk-UXGQZUYZ.js → chunk-7AINN3FK.js} +13 -3
  26. package/dist/chunk-7AINN3FK.js.map +1 -0
  27. package/dist/chunk-7D3UAMQM.cjs +82 -0
  28. package/dist/chunk-7D3UAMQM.cjs.map +1 -0
  29. package/dist/chunk-ASLDC3OZ.cjs +450 -0
  30. package/dist/chunk-ASLDC3OZ.cjs.map +1 -0
  31. package/dist/{chunk-QGWCNTG6.cjs → chunk-C3FFJPAW.cjs} +493 -172
  32. package/dist/chunk-C3FFJPAW.cjs.map +1 -0
  33. package/dist/{chunk-3R5EV3HV.js → chunk-C7GSYEQP.js} +36 -29
  34. package/dist/chunk-C7GSYEQP.js.map +1 -0
  35. package/dist/chunk-CK632IRI.cjs +47 -0
  36. package/dist/chunk-CK632IRI.cjs.map +1 -0
  37. package/dist/{chunk-R4M3BSUG.js → chunk-DOU5IGJB.js} +26 -10
  38. package/dist/chunk-DOU5IGJB.js.map +1 -0
  39. package/dist/{chunk-6DTV6NEW.js → chunk-DP474KY4.js} +11 -8
  40. package/dist/chunk-DP474KY4.js.map +1 -0
  41. package/dist/{chunk-FXDZLX2Y.js → chunk-DUVMVT64.js} +37 -26
  42. package/dist/chunk-DUVMVT64.js.map +1 -0
  43. package/dist/chunk-F2IYPGYA.cjs +322 -0
  44. package/dist/chunk-F2IYPGYA.cjs.map +1 -0
  45. package/dist/{chunk-VQAT5HX6.js → chunk-FDSHHJRG.js} +458 -116
  46. package/dist/chunk-FDSHHJRG.js.map +1 -0
  47. package/dist/chunk-FRRHYZR6.cjs +88 -0
  48. package/dist/chunk-FRRHYZR6.cjs.map +1 -0
  49. package/dist/{chunk-ZULZ2752.js → chunk-FXW7MD4U.js} +3 -3
  50. package/dist/chunk-FXW7MD4U.js.map +1 -0
  51. package/dist/chunk-G2F73L4P.js +45 -0
  52. package/dist/chunk-G2F73L4P.js.map +1 -0
  53. package/dist/{chunk-UOFV2ZCI.js → chunk-G3C3UIEK.js} +316 -96
  54. package/dist/chunk-G3C3UIEK.js.map +1 -0
  55. package/dist/chunk-GIMXFF2O.js +31748 -0
  56. package/dist/chunk-GIMXFF2O.js.map +1 -0
  57. package/dist/{chunk-YJ3VDL3Z.cjs → chunk-GZFULNC5.cjs} +37 -31
  58. package/dist/chunk-GZFULNC5.cjs.map +1 -0
  59. package/dist/{chunk-4ECGVOJZ.cjs → chunk-HAZKO3MH.cjs} +40 -33
  60. package/dist/chunk-HAZKO3MH.cjs.map +1 -0
  61. package/dist/{chunk-KB5NSROG.cjs → chunk-HKK5WZO5.cjs} +47 -42
  62. package/dist/chunk-HKK5WZO5.cjs.map +1 -0
  63. package/dist/{chunk-UZ6CYAOG.cjs → chunk-HQHCI62G.cjs} +62 -15
  64. package/dist/chunk-HQHCI62G.cjs.map +1 -0
  65. package/dist/{chunk-PKRHEXX7.js → chunk-HT4LP3BO.js} +19 -18
  66. package/dist/chunk-HT4LP3BO.js.map +1 -0
  67. package/dist/chunk-HZINLMHL.cjs +252 -0
  68. package/dist/chunk-HZINLMHL.cjs.map +1 -0
  69. package/dist/{chunk-RQK4FQUD.js → chunk-IGXRQWNN.js} +6 -48
  70. package/dist/chunk-IGXRQWNN.js.map +1 -0
  71. package/dist/chunk-IS3HHGL4.js +250 -0
  72. package/dist/chunk-IS3HHGL4.js.map +1 -0
  73. package/dist/chunk-JW2MKBAS.js +246 -0
  74. package/dist/chunk-JW2MKBAS.js.map +1 -0
  75. package/dist/chunk-K4HSW5ZF.js +77 -0
  76. package/dist/chunk-K4HSW5ZF.js.map +1 -0
  77. package/dist/chunk-LJ6YRVDI.cjs +15 -0
  78. package/dist/chunk-LJ6YRVDI.cjs.map +1 -0
  79. package/dist/{chunk-I5VZ5SKG.js → chunk-LNWEFD7L.js} +17 -11
  80. package/dist/chunk-LNWEFD7L.js.map +1 -0
  81. package/dist/{chunk-2NW6POYK.cjs → chunk-MCYD5LW7.cjs} +19 -18
  82. package/dist/chunk-MCYD5LW7.cjs.map +1 -0
  83. package/dist/{chunk-UJNHKFBR.cjs → chunk-N2HDS7BY.cjs} +83 -13
  84. package/dist/chunk-N2HDS7BY.cjs.map +1 -0
  85. package/dist/{chunk-FAQICBMH.js → chunk-N5RGHD5P.js} +81 -14
  86. package/dist/chunk-N5RGHD5P.js.map +1 -0
  87. package/dist/{chunk-MWQQRVQC.cjs → chunk-OD6Y7FEM.cjs} +34 -13
  88. package/dist/chunk-OD6Y7FEM.cjs.map +1 -0
  89. package/dist/chunk-OEF6DYI4.js +177 -0
  90. package/dist/chunk-OEF6DYI4.js.map +1 -0
  91. package/dist/chunk-OGFXTALR.js +312 -0
  92. package/dist/chunk-OGFXTALR.js.map +1 -0
  93. package/dist/{chunk-ICANWSEW.js → chunk-OJWVANX3.js} +25 -20
  94. package/dist/chunk-OJWVANX3.js.map +1 -0
  95. package/dist/chunk-OS7SAIRA.js +250 -0
  96. package/dist/chunk-OS7SAIRA.js.map +1 -0
  97. package/dist/chunk-OSJ3HUP2.js +184 -0
  98. package/dist/chunk-OSJ3HUP2.js.map +1 -0
  99. package/dist/chunk-PWXUI3OG.cjs +252 -0
  100. package/dist/chunk-PWXUI3OG.cjs.map +1 -0
  101. package/dist/{chunk-Z36N2OQA.cjs → chunk-PXQDIUYD.cjs} +358 -137
  102. package/dist/chunk-PXQDIUYD.cjs.map +1 -0
  103. package/dist/{chunk-NDFAQBQD.cjs → chunk-PXTREZVA.cjs} +514 -166
  104. package/dist/chunk-PXTREZVA.cjs.map +1 -0
  105. package/dist/chunk-Q3SOCUG3.js +576 -0
  106. package/dist/chunk-Q3SOCUG3.js.map +1 -0
  107. package/dist/chunk-QHJ75L3U.cjs +252 -0
  108. package/dist/chunk-QHJ75L3U.cjs.map +1 -0
  109. package/dist/chunk-RIX6WEJ2.js +83 -0
  110. package/dist/chunk-RIX6WEJ2.js.map +1 -0
  111. package/dist/{chunk-ZODCSH2W.cjs → chunk-RYU5JLTE.cjs} +54 -32
  112. package/dist/chunk-RYU5JLTE.cjs.map +1 -0
  113. package/dist/{chunk-35NT4TMQ.cjs → chunk-SI45XQYH.cjs} +66 -55
  114. package/dist/chunk-SI45XQYH.cjs.map +1 -0
  115. package/dist/{chunk-LPM6BBAX.cjs → chunk-SLDAFSKJ.cjs} +5 -56
  116. package/dist/chunk-SLDAFSKJ.cjs.map +1 -0
  117. package/dist/{chunk-2PLXW4ZX.cjs → chunk-T6YYVQHJ.cjs} +74 -74
  118. package/dist/chunk-T6YYVQHJ.cjs.map +1 -0
  119. package/dist/chunk-TF4LSD27.cjs +180 -0
  120. package/dist/chunk-TF4LSD27.cjs.map +1 -0
  121. package/dist/{chunk-V5WWQN7P.cjs → chunk-UWYAL2Z3.cjs} +13 -2
  122. package/dist/chunk-UWYAL2Z3.cjs.map +1 -0
  123. package/dist/chunk-WNI2WZML.js +442 -0
  124. package/dist/chunk-WNI2WZML.js.map +1 -0
  125. package/dist/{chunk-5PONYNYP.cjs → chunk-WTF4ECYJ.cjs} +20 -17
  126. package/dist/chunk-WTF4ECYJ.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/openapi-utils.d.ts +9 -9
  289. package/dist/server/server-adapter/openapi-utils.d.ts.map +1 -1
  290. package/dist/server/server-adapter/redact.d.ts +26 -0
  291. package/dist/server/server-adapter/redact.d.ts.map +1 -0
  292. package/dist/server/server-adapter/routes/agent-builder.d.ts.map +1 -1
  293. package/dist/server/server-adapter/routes/agents.d.ts.map +1 -1
  294. package/dist/server/server-adapter/routes/index.d.ts +18 -7
  295. package/dist/server/server-adapter/routes/index.d.ts.map +1 -1
  296. package/dist/server/server-adapter/routes/mcp.d.ts +9 -0
  297. package/dist/server/server-adapter/routes/mcp.d.ts.map +1 -0
  298. package/dist/server/server-adapter/routes/memory.d.ts.map +1 -1
  299. package/dist/server/server-adapter/routes/processors.d.ts +3 -0
  300. package/dist/server/server-adapter/routes/processors.d.ts.map +1 -0
  301. package/dist/server/server-adapter/routes/route-builder.d.ts +66 -6
  302. package/dist/server/server-adapter/routes/route-builder.d.ts.map +1 -1
  303. package/dist/server/server-adapter/routes/stored-agents.d.ts +8 -0
  304. package/dist/server/server-adapter/routes/stored-agents.d.ts.map +1 -0
  305. package/dist/server/server-adapter/routes/system.d.ts +12 -0
  306. package/dist/server/server-adapter/routes/system.d.ts.map +1 -0
  307. package/dist/server/server-adapter/routes/workflows.d.ts.map +1 -1
  308. package/dist/server/utils.d.ts +1 -1
  309. package/dist/server/utils.d.ts.map +1 -1
  310. package/dist/{token-375W3LEI.cjs → token-6GSAFR2W-ABXTQD64-MC4IMVOB.cjs} +11 -12
  311. package/dist/token-6GSAFR2W-ABXTQD64-MC4IMVOB.cjs.map +1 -0
  312. package/dist/{token-C3IMNCC4.js → token-6GSAFR2W-ABXTQD64-Z6U2TA2C.js} +8 -9
  313. package/dist/token-6GSAFR2W-ABXTQD64-Z6U2TA2C.js.map +1 -0
  314. package/dist/token-6GSAFR2W-F2L44NEJ-B3QIV63M.cjs +63 -0
  315. package/dist/token-6GSAFR2W-F2L44NEJ-B3QIV63M.cjs.map +1 -0
  316. package/dist/token-6GSAFR2W-F2L44NEJ-GFZ37A2V.js +61 -0
  317. package/dist/token-6GSAFR2W-F2L44NEJ-GFZ37A2V.js.map +1 -0
  318. package/dist/token-6GSAFR2W-WGTMOPEU-6HSZQUFZ.cjs +63 -0
  319. package/dist/token-6GSAFR2W-WGTMOPEU-6HSZQUFZ.cjs.map +1 -0
  320. package/dist/token-6GSAFR2W-WGTMOPEU-JKP67ZX4.js +61 -0
  321. package/dist/token-6GSAFR2W-WGTMOPEU-JKP67ZX4.js.map +1 -0
  322. package/dist/token-util-NEHG7TUY-4YJ4EPCL-MBTAVIJ3.js +8 -0
  323. package/dist/token-util-NEHG7TUY-4YJ4EPCL-MBTAVIJ3.js.map +1 -0
  324. package/dist/token-util-NEHG7TUY-4YJ4EPCL-SQ4NADRW.cjs +10 -0
  325. package/dist/token-util-NEHG7TUY-4YJ4EPCL-SQ4NADRW.cjs.map +1 -0
  326. package/dist/token-util-NEHG7TUY-TV2H7N56-GGCGMPDG.js +8 -0
  327. package/dist/token-util-NEHG7TUY-TV2H7N56-GGCGMPDG.js.map +1 -0
  328. package/dist/token-util-NEHG7TUY-TV2H7N56-R7OENTCJ.cjs +10 -0
  329. package/dist/token-util-NEHG7TUY-TV2H7N56-R7OENTCJ.cjs.map +1 -0
  330. package/dist/token-util-NEHG7TUY-XQP3QSPX-BL5O5N7R.cjs +10 -0
  331. package/dist/token-util-NEHG7TUY-XQP3QSPX-BL5O5N7R.cjs.map +1 -0
  332. package/dist/token-util-NEHG7TUY-XQP3QSPX-YCJRRNXO.js +8 -0
  333. package/dist/token-util-NEHG7TUY-XQP3QSPX-YCJRRNXO.js.map +1 -0
  334. package/handlers/server/handlers.d.ts +1 -0
  335. package/handlers.d.ts +1 -0
  336. package/package.json +29 -17
  337. package/server-adapter.d.ts +1 -0
  338. package/dist/chunk-2NW6POYK.cjs.map +0 -1
  339. package/dist/chunk-2PLXW4ZX.cjs.map +0 -1
  340. package/dist/chunk-35NT4TMQ.cjs.map +0 -1
  341. package/dist/chunk-3R5EV3HV.js.map +0 -1
  342. package/dist/chunk-4ECGVOJZ.cjs.map +0 -1
  343. package/dist/chunk-5PONYNYP.cjs.map +0 -1
  344. package/dist/chunk-6BISSAIF.js +0 -23494
  345. package/dist/chunk-6BISSAIF.js.map +0 -1
  346. package/dist/chunk-6DTV6NEW.js.map +0 -1
  347. package/dist/chunk-AEO6IHLK.cjs +0 -368
  348. package/dist/chunk-AEO6IHLK.cjs.map +0 -1
  349. package/dist/chunk-ASZUOBKV.js.map +0 -1
  350. package/dist/chunk-ECIVTQ4E.js +0 -354
  351. package/dist/chunk-ECIVTQ4E.js.map +0 -1
  352. package/dist/chunk-FAQICBMH.js.map +0 -1
  353. package/dist/chunk-FXDZLX2Y.js.map +0 -1
  354. package/dist/chunk-G7BPNX2V.js +0 -130
  355. package/dist/chunk-G7BPNX2V.js.map +0 -1
  356. package/dist/chunk-I5VZ5SKG.js.map +0 -1
  357. package/dist/chunk-ICANWSEW.js.map +0 -1
  358. package/dist/chunk-KB5NSROG.cjs.map +0 -1
  359. package/dist/chunk-LPM6BBAX.cjs.map +0 -1
  360. package/dist/chunk-MWQQRVQC.cjs.map +0 -1
  361. package/dist/chunk-NDFAQBQD.cjs.map +0 -1
  362. package/dist/chunk-PKRHEXX7.js.map +0 -1
  363. package/dist/chunk-QGWCNTG6.cjs.map +0 -1
  364. package/dist/chunk-QU6N55W6.cjs.map +0 -1
  365. package/dist/chunk-R4M3BSUG.js.map +0 -1
  366. package/dist/chunk-RQK4FQUD.js.map +0 -1
  367. package/dist/chunk-SHWNNZBL.js.map +0 -1
  368. package/dist/chunk-TBVUN4XN.cjs +0 -23536
  369. package/dist/chunk-TBVUN4XN.cjs.map +0 -1
  370. package/dist/chunk-TOCYBDP2.js +0 -46
  371. package/dist/chunk-TOCYBDP2.js.map +0 -1
  372. package/dist/chunk-UJNHKFBR.cjs.map +0 -1
  373. package/dist/chunk-UOFV2ZCI.js.map +0 -1
  374. package/dist/chunk-UXGQZUYZ.js.map +0 -1
  375. package/dist/chunk-UZ6CYAOG.cjs.map +0 -1
  376. package/dist/chunk-V5WWQN7P.cjs.map +0 -1
  377. package/dist/chunk-VQAT5HX6.js.map +0 -1
  378. package/dist/chunk-X6C7BUWN.cjs +0 -48
  379. package/dist/chunk-X6C7BUWN.cjs.map +0 -1
  380. package/dist/chunk-YJ3VDL3Z.cjs.map +0 -1
  381. package/dist/chunk-Z36N2OQA.cjs.map +0 -1
  382. package/dist/chunk-ZLRTFRL4.js.map +0 -1
  383. package/dist/chunk-ZODCSH2W.cjs.map +0 -1
  384. package/dist/chunk-ZULZ2752.js.map +0 -1
  385. package/dist/dist-4MVGNSRL.cjs.map +0 -1
  386. package/dist/dist-FZYCV3VB.cjs.map +0 -1
  387. package/dist/dist-G2BYZJOC.cjs.map +0 -1
  388. package/dist/dist-P4MXBQ3U.cjs +0 -16
  389. package/dist/dist-PQZUVLPC.js.map +0 -1
  390. package/dist/dist-R7WYX6LC.js.map +0 -1
  391. package/dist/dist-RFMYFILX.cjs.map +0 -1
  392. package/dist/dist-X7XR3M3Z.js.map +0 -1
  393. package/dist/dist-XVBSOGFK.js.map +0 -1
  394. package/dist/dist-YREX2TJT.js +0 -3
  395. package/dist/server/schemas/observability.d.ts +0 -402
  396. package/dist/server/schemas/observability.d.ts.map +0 -1
  397. package/dist/token-375W3LEI.cjs.map +0 -1
  398. package/dist/token-C3IMNCC4.js.map +0 -1
  399. package/dist/token-util-CV3RRG6K.cjs +0 -9
  400. package/dist/token-util-CV3RRG6K.cjs.map +0 -1
  401. package/dist/token-util-E5QO2RCL.js +0 -7
  402. package/dist/token-util-E5QO2RCL.js.map +0 -1
@@ -1,22 +1,23 @@
1
1
  import z from 'zod';
2
+ export declare const workflowRunStatusSchema: z.ZodEnum<{
3
+ success: "success";
4
+ running: "running";
5
+ waiting: "waiting";
6
+ suspended: "suspended";
7
+ failed: "failed";
8
+ canceled: "canceled";
9
+ pending: "pending";
10
+ bailed: "bailed";
11
+ tripwire: "tripwire";
12
+ paused: "paused";
13
+ }>;
2
14
  export declare const workflowIdPathParams: z.ZodObject<{
3
15
  workflowId: z.ZodString;
4
- }, "strip", z.ZodTypeAny, {
5
- workflowId: string;
6
- }, {
7
- workflowId: string;
8
- }>;
16
+ }, z.core.$strip>;
9
17
  export declare const workflowRunPathParams: z.ZodObject<{
10
18
  workflowId: z.ZodString;
11
- } & {
12
19
  runId: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- runId: string;
15
- workflowId: string;
16
- }, {
17
- runId: string;
18
- workflowId: string;
19
- }>;
20
+ }, z.core.$strip>;
20
21
  /**
21
22
  * Schema for workflow information
22
23
  * Returned by getWorkflowByIdHandler and listWorkflowsHandler
@@ -25,70 +26,45 @@ export declare const workflowInfoSchema: z.ZodObject<{
25
26
  steps: z.ZodRecord<z.ZodString, z.ZodObject<{
26
27
  id: z.ZodString;
27
28
  description: z.ZodOptional<z.ZodString>;
28
- }, "strip", z.ZodTypeAny, {
29
- id: string;
30
- description?: string | undefined;
31
- }, {
32
- id: string;
33
- description?: string | undefined;
34
- }>>;
29
+ stateSchema: z.ZodOptional<z.ZodString>;
30
+ inputSchema: z.ZodOptional<z.ZodString>;
31
+ outputSchema: z.ZodOptional<z.ZodString>;
32
+ resumeSchema: z.ZodOptional<z.ZodString>;
33
+ suspendSchema: z.ZodOptional<z.ZodString>;
34
+ component: z.ZodOptional<z.ZodString>;
35
+ isWorkflow: z.ZodOptional<z.ZodBoolean>;
36
+ }, z.core.$strip>>;
35
37
  allSteps: z.ZodRecord<z.ZodString, z.ZodObject<{
36
38
  id: z.ZodString;
37
39
  description: z.ZodOptional<z.ZodString>;
38
- }, "strip", z.ZodTypeAny, {
39
- id: string;
40
- description?: string | undefined;
41
- }, {
42
- id: string;
43
- description?: string | undefined;
44
- }>>;
40
+ stateSchema: z.ZodOptional<z.ZodString>;
41
+ inputSchema: z.ZodOptional<z.ZodString>;
42
+ outputSchema: z.ZodOptional<z.ZodString>;
43
+ resumeSchema: z.ZodOptional<z.ZodString>;
44
+ suspendSchema: z.ZodOptional<z.ZodString>;
45
+ component: z.ZodOptional<z.ZodString>;
46
+ isWorkflow: z.ZodOptional<z.ZodBoolean>;
47
+ }, z.core.$strip>>;
45
48
  name: z.ZodOptional<z.ZodString>;
46
49
  description: z.ZodOptional<z.ZodString>;
47
50
  stepGraph: z.ZodArray<z.ZodObject<{
48
- type: z.ZodEnum<["step", "sleep", "sleepUntil", "waitForEvent", "parallel", "conditional", "loop", "foreach"]>;
49
- }, "strip", z.ZodTypeAny, {
50
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
51
- }, {
52
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
53
- }>, "many">;
51
+ type: z.ZodEnum<{
52
+ step: "step";
53
+ sleep: "sleep";
54
+ sleepUntil: "sleepUntil";
55
+ waitForEvent: "waitForEvent";
56
+ parallel: "parallel";
57
+ conditional: "conditional";
58
+ loop: "loop";
59
+ foreach: "foreach";
60
+ }>;
61
+ }, z.core.$strip>>;
54
62
  inputSchema: z.ZodOptional<z.ZodString>;
55
63
  outputSchema: z.ZodOptional<z.ZodString>;
56
- options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
57
- }, "strip", z.ZodTypeAny, {
58
- steps: Record<string, {
59
- id: string;
60
- description?: string | undefined;
61
- }>;
62
- allSteps: Record<string, {
63
- id: string;
64
- description?: string | undefined;
65
- }>;
66
- stepGraph: {
67
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
68
- }[];
69
- options?: {} | undefined;
70
- name?: string | undefined;
71
- description?: string | undefined;
72
- inputSchema?: string | undefined;
73
- outputSchema?: string | undefined;
74
- }, {
75
- steps: Record<string, {
76
- id: string;
77
- description?: string | undefined;
78
- }>;
79
- allSteps: Record<string, {
80
- id: string;
81
- description?: string | undefined;
82
- }>;
83
- stepGraph: {
84
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
85
- }[];
86
- options?: {} | undefined;
87
- name?: string | undefined;
88
- description?: string | undefined;
89
- inputSchema?: string | undefined;
90
- outputSchema?: string | undefined;
91
- }>;
64
+ stateSchema: z.ZodOptional<z.ZodString>;
65
+ options: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
66
+ isProcessorWorkflow: z.ZodOptional<z.ZodBoolean>;
67
+ }, z.core.$strip>;
92
68
  /**
93
69
  * Schema for list workflows endpoint response
94
70
  * Returns a record of workflow ID to workflow info
@@ -97,70 +73,45 @@ export declare const listWorkflowsResponseSchema: z.ZodRecord<z.ZodString, z.Zod
97
73
  steps: z.ZodRecord<z.ZodString, z.ZodObject<{
98
74
  id: z.ZodString;
99
75
  description: z.ZodOptional<z.ZodString>;
100
- }, "strip", z.ZodTypeAny, {
101
- id: string;
102
- description?: string | undefined;
103
- }, {
104
- id: string;
105
- description?: string | undefined;
106
- }>>;
76
+ stateSchema: z.ZodOptional<z.ZodString>;
77
+ inputSchema: z.ZodOptional<z.ZodString>;
78
+ outputSchema: z.ZodOptional<z.ZodString>;
79
+ resumeSchema: z.ZodOptional<z.ZodString>;
80
+ suspendSchema: z.ZodOptional<z.ZodString>;
81
+ component: z.ZodOptional<z.ZodString>;
82
+ isWorkflow: z.ZodOptional<z.ZodBoolean>;
83
+ }, z.core.$strip>>;
107
84
  allSteps: z.ZodRecord<z.ZodString, z.ZodObject<{
108
85
  id: z.ZodString;
109
86
  description: z.ZodOptional<z.ZodString>;
110
- }, "strip", z.ZodTypeAny, {
111
- id: string;
112
- description?: string | undefined;
113
- }, {
114
- id: string;
115
- description?: string | undefined;
116
- }>>;
87
+ stateSchema: z.ZodOptional<z.ZodString>;
88
+ inputSchema: z.ZodOptional<z.ZodString>;
89
+ outputSchema: z.ZodOptional<z.ZodString>;
90
+ resumeSchema: z.ZodOptional<z.ZodString>;
91
+ suspendSchema: z.ZodOptional<z.ZodString>;
92
+ component: z.ZodOptional<z.ZodString>;
93
+ isWorkflow: z.ZodOptional<z.ZodBoolean>;
94
+ }, z.core.$strip>>;
117
95
  name: z.ZodOptional<z.ZodString>;
118
96
  description: z.ZodOptional<z.ZodString>;
119
97
  stepGraph: z.ZodArray<z.ZodObject<{
120
- type: z.ZodEnum<["step", "sleep", "sleepUntil", "waitForEvent", "parallel", "conditional", "loop", "foreach"]>;
121
- }, "strip", z.ZodTypeAny, {
122
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
123
- }, {
124
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
125
- }>, "many">;
98
+ type: z.ZodEnum<{
99
+ step: "step";
100
+ sleep: "sleep";
101
+ sleepUntil: "sleepUntil";
102
+ waitForEvent: "waitForEvent";
103
+ parallel: "parallel";
104
+ conditional: "conditional";
105
+ loop: "loop";
106
+ foreach: "foreach";
107
+ }>;
108
+ }, z.core.$strip>>;
126
109
  inputSchema: z.ZodOptional<z.ZodString>;
127
110
  outputSchema: z.ZodOptional<z.ZodString>;
128
- options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
129
- }, "strip", z.ZodTypeAny, {
130
- steps: Record<string, {
131
- id: string;
132
- description?: string | undefined;
133
- }>;
134
- allSteps: Record<string, {
135
- id: string;
136
- description?: string | undefined;
137
- }>;
138
- stepGraph: {
139
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
140
- }[];
141
- options?: {} | undefined;
142
- name?: string | undefined;
143
- description?: string | undefined;
144
- inputSchema?: string | undefined;
145
- outputSchema?: string | undefined;
146
- }, {
147
- steps: Record<string, {
148
- id: string;
149
- description?: string | undefined;
150
- }>;
151
- allSteps: Record<string, {
152
- id: string;
153
- description?: string | undefined;
154
- }>;
155
- stepGraph: {
156
- type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
157
- }[];
158
- options?: {} | undefined;
159
- name?: string | undefined;
160
- description?: string | undefined;
161
- inputSchema?: string | undefined;
162
- outputSchema?: string | undefined;
163
- }>>;
111
+ stateSchema: z.ZodOptional<z.ZodString>;
112
+ options: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
113
+ isProcessorWorkflow: z.ZodOptional<z.ZodBoolean>;
114
+ }, z.core.$strip>>;
164
115
  /**
165
116
  * Schema for workflow runs response (paginated)
166
117
  * Includes runs array and total count
@@ -169,337 +120,252 @@ export declare const workflowRunsResponseSchema: z.ZodObject<{
169
120
  runs: z.ZodArray<z.ZodObject<{
170
121
  workflowName: z.ZodString;
171
122
  runId: z.ZodString;
172
- snapshot: z.ZodUnion<[z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodString]>;
123
+ snapshot: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$strip>, z.ZodString]>;
173
124
  createdAt: z.ZodDate;
174
125
  updatedAt: z.ZodDate;
175
126
  resourceId: z.ZodOptional<z.ZodString>;
176
- }, "strip", z.ZodTypeAny, {
177
- runId: string;
178
- workflowName: string;
179
- snapshot: string | {};
180
- createdAt: Date;
181
- updatedAt: Date;
182
- resourceId?: string | undefined;
183
- }, {
184
- runId: string;
185
- workflowName: string;
186
- snapshot: string | {};
187
- createdAt: Date;
188
- updatedAt: Date;
189
- resourceId?: string | undefined;
190
- }>, "many">;
127
+ }, z.core.$strip>>;
191
128
  total: z.ZodNumber;
192
- }, "strip", z.ZodTypeAny, {
193
- total: number;
194
- runs: {
195
- runId: string;
196
- workflowName: string;
197
- snapshot: string | {};
198
- createdAt: Date;
199
- updatedAt: Date;
200
- resourceId?: string | undefined;
201
- }[];
202
- }, {
203
- total: number;
204
- runs: {
205
- runId: string;
206
- workflowName: string;
207
- snapshot: string | {};
208
- createdAt: Date;
209
- updatedAt: Date;
210
- resourceId?: string | undefined;
211
- }[];
212
- }>;
213
- /**
214
- * Schema for single workflow run response
215
- */
216
- export declare const workflowRunResponseSchema: z.ZodObject<{
217
- workflowName: z.ZodString;
218
- runId: z.ZodString;
219
- snapshot: z.ZodUnion<[z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodString]>;
220
- createdAt: z.ZodDate;
221
- updatedAt: z.ZodDate;
222
- resourceId: z.ZodOptional<z.ZodString>;
223
- }, "strip", z.ZodTypeAny, {
224
- runId: string;
225
- workflowName: string;
226
- snapshot: string | {};
227
- createdAt: Date;
228
- updatedAt: Date;
229
- resourceId?: string | undefined;
230
- }, {
231
- runId: string;
232
- workflowName: string;
233
- snapshot: string | {};
234
- createdAt: Date;
235
- updatedAt: Date;
236
- resourceId?: string | undefined;
237
- }>;
129
+ }, z.core.$strip>;
238
130
  /**
239
131
  * Schema for query parameters when listing workflow runs
240
- * All query params come as strings from URL
132
+ * Supports both page/perPage and limit/offset for backwards compatibility
133
+ * If page/perPage provided, use directly; otherwise convert from limit/offset
241
134
  */
242
135
  export declare const listWorkflowRunsQuerySchema: z.ZodObject<{
243
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
244
- offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
245
- } & {
246
- fromDate: z.ZodOptional<z.ZodDate>;
247
- toDate: z.ZodOptional<z.ZodDate>;
248
- resourceId: z.ZodOptional<z.ZodString>;
249
- }, "strip", z.ZodTypeAny, {
250
- limit: number;
251
- offset: number;
252
- resourceId?: string | undefined;
253
- fromDate?: Date | undefined;
254
- toDate?: Date | undefined;
255
- }, {
256
- limit?: number | undefined;
257
- offset?: number | undefined;
258
- resourceId?: string | undefined;
259
- fromDate?: Date | undefined;
260
- toDate?: Date | undefined;
261
- }> | z.ZodObject<{
262
- limit: z.ZodOptional<z.ZodNumber>;
263
- offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
264
- } & {
265
- fromDate: z.ZodOptional<z.ZodDate>;
266
- toDate: z.ZodOptional<z.ZodDate>;
136
+ page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
137
+ perPage: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
138
+ offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
139
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
140
+ fromDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
141
+ toDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
267
142
  resourceId: z.ZodOptional<z.ZodString>;
268
- }, "strip", z.ZodTypeAny, {
269
- offset: number;
270
- limit?: number | undefined;
271
- resourceId?: string | undefined;
272
- fromDate?: Date | undefined;
273
- toDate?: Date | undefined;
274
- }, {
275
- limit?: number | undefined;
276
- offset?: number | undefined;
277
- resourceId?: string | undefined;
278
- fromDate?: Date | undefined;
279
- toDate?: Date | undefined;
280
- }>;
143
+ status: z.ZodOptional<z.ZodEnum<{
144
+ success: "success";
145
+ running: "running";
146
+ waiting: "waiting";
147
+ suspended: "suspended";
148
+ failed: "failed";
149
+ canceled: "canceled";
150
+ pending: "pending";
151
+ bailed: "bailed";
152
+ tripwire: "tripwire";
153
+ paused: "paused";
154
+ }>>;
155
+ }, z.core.$strip>;
281
156
  /**
282
157
  * Schema for legacy stream workflow body (no closeOnSuspend support)
283
158
  * Used by /stream-legacy endpoints
284
159
  */
285
160
  export declare const streamLegacyWorkflowBodySchema: z.ZodObject<{
161
+ resourceId: z.ZodOptional<z.ZodString>;
286
162
  inputData: z.ZodOptional<z.ZodUnknown>;
163
+ initialState: z.ZodOptional<z.ZodUnknown>;
287
164
  requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
288
165
  tracingOptions: z.ZodOptional<z.ZodObject<{
289
166
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
290
- requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
167
+ requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
291
168
  traceId: z.ZodOptional<z.ZodString>;
292
169
  parentSpanId: z.ZodOptional<z.ZodString>;
293
- }, "strip", z.ZodTypeAny, {
294
- metadata?: Record<string, unknown> | undefined;
295
- requestContextKeys?: string[] | undefined;
296
- traceId?: string | undefined;
297
- parentSpanId?: string | undefined;
298
- }, {
299
- metadata?: Record<string, unknown> | undefined;
300
- requestContextKeys?: string[] | undefined;
301
- traceId?: string | undefined;
302
- parentSpanId?: string | undefined;
303
- }>>;
304
- }, "strip", z.ZodTypeAny, {
305
- inputData?: unknown;
306
- requestContext?: Record<string, unknown> | undefined;
307
- tracingOptions?: {
308
- metadata?: Record<string, unknown> | undefined;
309
- requestContextKeys?: string[] | undefined;
310
- traceId?: string | undefined;
311
- parentSpanId?: string | undefined;
312
- } | undefined;
313
- }, {
314
- inputData?: unknown;
315
- requestContext?: Record<string, unknown> | undefined;
316
- tracingOptions?: {
317
- metadata?: Record<string, unknown> | undefined;
318
- requestContextKeys?: string[] | undefined;
319
- traceId?: string | undefined;
320
- parentSpanId?: string | undefined;
321
- } | undefined;
322
- }>;
170
+ }, z.core.$strip>>;
171
+ perStep: z.ZodOptional<z.ZodBoolean>;
172
+ }, z.core.$strip>;
323
173
  /**
324
174
  * Schema for stream workflow body
325
175
  * Used by both /stream and /streamVNext endpoints
326
176
  */
327
177
  export declare const streamWorkflowBodySchema: z.ZodObject<{
178
+ resourceId: z.ZodOptional<z.ZodString>;
328
179
  inputData: z.ZodOptional<z.ZodUnknown>;
180
+ initialState: z.ZodOptional<z.ZodUnknown>;
329
181
  requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
330
182
  tracingOptions: z.ZodOptional<z.ZodObject<{
331
183
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
332
- requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
184
+ requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
333
185
  traceId: z.ZodOptional<z.ZodString>;
334
186
  parentSpanId: z.ZodOptional<z.ZodString>;
335
- }, "strip", z.ZodTypeAny, {
336
- metadata?: Record<string, unknown> | undefined;
337
- requestContextKeys?: string[] | undefined;
338
- traceId?: string | undefined;
339
- parentSpanId?: string | undefined;
340
- }, {
341
- metadata?: Record<string, unknown> | undefined;
342
- requestContextKeys?: string[] | undefined;
343
- traceId?: string | undefined;
344
- parentSpanId?: string | undefined;
345
- }>>;
346
- } & {
187
+ }, z.core.$strip>>;
188
+ perStep: z.ZodOptional<z.ZodBoolean>;
347
189
  closeOnSuspend: z.ZodOptional<z.ZodBoolean>;
348
- }, "strip", z.ZodTypeAny, {
349
- inputData?: unknown;
350
- requestContext?: Record<string, unknown> | undefined;
351
- tracingOptions?: {
352
- metadata?: Record<string, unknown> | undefined;
353
- requestContextKeys?: string[] | undefined;
354
- traceId?: string | undefined;
355
- parentSpanId?: string | undefined;
356
- } | undefined;
357
- closeOnSuspend?: boolean | undefined;
358
- }, {
359
- inputData?: unknown;
360
- requestContext?: Record<string, unknown> | undefined;
361
- tracingOptions?: {
362
- metadata?: Record<string, unknown> | undefined;
363
- requestContextKeys?: string[] | undefined;
364
- traceId?: string | undefined;
365
- parentSpanId?: string | undefined;
366
- } | undefined;
367
- closeOnSuspend?: boolean | undefined;
368
- }>;
190
+ }, z.core.$strip>;
369
191
  /**
370
192
  * Schema for resume workflow body
371
193
  * Used by resume-stream, resume-async and resume endpoints
372
194
  */
373
195
  export declare const resumeBodySchema: z.ZodObject<{
374
- step: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
196
+ step: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
375
197
  resumeData: z.ZodOptional<z.ZodUnknown>;
376
198
  requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
377
199
  tracingOptions: z.ZodOptional<z.ZodObject<{
378
200
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
379
- requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
201
+ requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
380
202
  traceId: z.ZodOptional<z.ZodString>;
381
203
  parentSpanId: z.ZodOptional<z.ZodString>;
382
- }, "strip", z.ZodTypeAny, {
383
- metadata?: Record<string, unknown> | undefined;
384
- requestContextKeys?: string[] | undefined;
385
- traceId?: string | undefined;
386
- parentSpanId?: string | undefined;
387
- }, {
388
- metadata?: Record<string, unknown> | undefined;
389
- requestContextKeys?: string[] | undefined;
390
- traceId?: string | undefined;
391
- parentSpanId?: string | undefined;
392
- }>>;
393
- }, "strip", z.ZodTypeAny, {
394
- step?: string | string[] | undefined;
395
- requestContext?: Record<string, unknown> | undefined;
396
- tracingOptions?: {
397
- metadata?: Record<string, unknown> | undefined;
398
- requestContextKeys?: string[] | undefined;
399
- traceId?: string | undefined;
400
- parentSpanId?: string | undefined;
401
- } | undefined;
402
- resumeData?: unknown;
403
- }, {
404
- step?: string | string[] | undefined;
405
- requestContext?: Record<string, unknown> | undefined;
406
- tracingOptions?: {
407
- metadata?: Record<string, unknown> | undefined;
408
- requestContextKeys?: string[] | undefined;
409
- traceId?: string | undefined;
410
- parentSpanId?: string | undefined;
411
- } | undefined;
412
- resumeData?: unknown;
413
- }>;
204
+ }, z.core.$strip>>;
205
+ perStep: z.ZodOptional<z.ZodBoolean>;
206
+ }, z.core.$strip>;
207
+ /**
208
+ * Schema for restart workflow body
209
+ * Used by restart-async and restart endpoints
210
+ */
211
+ export declare const restartBodySchema: z.ZodObject<{
212
+ requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
213
+ tracingOptions: z.ZodOptional<z.ZodObject<{
214
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
215
+ requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
216
+ traceId: z.ZodOptional<z.ZodString>;
217
+ parentSpanId: z.ZodOptional<z.ZodString>;
218
+ }, z.core.$strip>>;
219
+ }, z.core.$strip>;
220
+ /**
221
+ * Schema for time travel workflow body
222
+ * Used by time-travel-stream, time-travel-async and time-travel endpoints
223
+ */
224
+ export declare const timeTravelBodySchema: z.ZodObject<{
225
+ inputData: z.ZodOptional<z.ZodUnknown>;
226
+ resumeData: z.ZodOptional<z.ZodUnknown>;
227
+ initialState: z.ZodOptional<z.ZodUnknown>;
228
+ step: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
229
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
230
+ nestedStepsContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
231
+ requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
232
+ tracingOptions: z.ZodOptional<z.ZodObject<{
233
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
234
+ requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
235
+ traceId: z.ZodOptional<z.ZodString>;
236
+ parentSpanId: z.ZodOptional<z.ZodString>;
237
+ }, z.core.$strip>>;
238
+ perStep: z.ZodOptional<z.ZodBoolean>;
239
+ }, z.core.$strip>;
414
240
  /**
415
241
  * Schema for start async workflow body
416
242
  */
417
243
  export declare const startAsyncWorkflowBodySchema: z.ZodObject<{
244
+ resourceId: z.ZodOptional<z.ZodString>;
418
245
  inputData: z.ZodOptional<z.ZodUnknown>;
246
+ initialState: z.ZodOptional<z.ZodUnknown>;
419
247
  requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
420
248
  tracingOptions: z.ZodOptional<z.ZodObject<{
421
249
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
422
- requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
250
+ requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
423
251
  traceId: z.ZodOptional<z.ZodString>;
424
252
  parentSpanId: z.ZodOptional<z.ZodString>;
425
- }, "strip", z.ZodTypeAny, {
426
- metadata?: Record<string, unknown> | undefined;
427
- requestContextKeys?: string[] | undefined;
428
- traceId?: string | undefined;
429
- parentSpanId?: string | undefined;
430
- }, {
431
- metadata?: Record<string, unknown> | undefined;
432
- requestContextKeys?: string[] | undefined;
433
- traceId?: string | undefined;
434
- parentSpanId?: string | undefined;
435
- }>>;
436
- }, "strip", z.ZodTypeAny, {
437
- inputData?: unknown;
438
- requestContext?: Record<string, unknown> | undefined;
439
- tracingOptions?: {
440
- metadata?: Record<string, unknown> | undefined;
441
- requestContextKeys?: string[] | undefined;
442
- traceId?: string | undefined;
443
- parentSpanId?: string | undefined;
444
- } | undefined;
445
- }, {
446
- inputData?: unknown;
447
- requestContext?: Record<string, unknown> | undefined;
448
- tracingOptions?: {
449
- metadata?: Record<string, unknown> | undefined;
450
- requestContextKeys?: string[] | undefined;
451
- traceId?: string | undefined;
452
- parentSpanId?: string | undefined;
453
- } | undefined;
454
- }>;
253
+ }, z.core.$strip>>;
254
+ perStep: z.ZodOptional<z.ZodBoolean>;
255
+ }, z.core.$strip>;
455
256
  /**
456
257
  * Schema for send workflow run event body
457
258
  */
458
259
  export declare const sendWorkflowRunEventBodySchema: z.ZodObject<{
459
260
  event: z.ZodString;
460
261
  data: z.ZodUnknown;
461
- }, "strip", z.ZodTypeAny, {
462
- event: string;
463
- data?: unknown;
464
- }, {
465
- event: string;
466
- data?: unknown;
467
- }>;
262
+ }, z.core.$strip>;
468
263
  /**
469
264
  * Schema for workflow execution result
265
+ * All fields are optional since field filtering allows requesting specific fields only
470
266
  */
471
267
  export declare const workflowExecutionResultSchema: z.ZodObject<{
472
- status: z.ZodString;
268
+ status: z.ZodOptional<z.ZodEnum<{
269
+ success: "success";
270
+ running: "running";
271
+ waiting: "waiting";
272
+ suspended: "suspended";
273
+ failed: "failed";
274
+ canceled: "canceled";
275
+ pending: "pending";
276
+ bailed: "bailed";
277
+ tripwire: "tripwire";
278
+ paused: "paused";
279
+ }>>;
473
280
  result: z.ZodOptional<z.ZodUnknown>;
474
281
  error: z.ZodOptional<z.ZodUnknown>;
475
- }, "strip", z.ZodTypeAny, {
476
- status: string;
477
- error?: unknown;
478
- result?: unknown;
479
- }, {
480
- status: string;
481
- error?: unknown;
482
- result?: unknown;
483
- }>;
282
+ payload: z.ZodOptional<z.ZodUnknown>;
283
+ initialState: z.ZodOptional<z.ZodUnknown>;
284
+ steps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
285
+ activeStepsPath: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>;
286
+ serializedStepGraph: z.ZodOptional<z.ZodArray<z.ZodObject<{
287
+ type: z.ZodEnum<{
288
+ step: "step";
289
+ sleep: "sleep";
290
+ sleepUntil: "sleepUntil";
291
+ waitForEvent: "waitForEvent";
292
+ parallel: "parallel";
293
+ conditional: "conditional";
294
+ loop: "loop";
295
+ foreach: "foreach";
296
+ }>;
297
+ }, z.core.$strip>>>;
298
+ }, z.core.$strip>;
299
+ /**
300
+ * Schema for query parameters when getting a unified workflow run result
301
+ */
302
+ export declare const workflowRunResultQuerySchema: z.ZodObject<{
303
+ fields: z.ZodOptional<z.ZodString>;
304
+ withNestedWorkflows: z.ZodOptional<z.ZodEnum<{
305
+ true: "true";
306
+ false: "false";
307
+ }>>;
308
+ }, z.core.$strip>;
309
+ /**
310
+ * Schema for unified workflow run result response
311
+ * Combines metadata and processed execution state
312
+ */
313
+ export declare const workflowRunResultSchema: z.ZodObject<{
314
+ runId: z.ZodString;
315
+ workflowName: z.ZodString;
316
+ resourceId: z.ZodOptional<z.ZodString>;
317
+ createdAt: z.ZodDate;
318
+ updatedAt: z.ZodDate;
319
+ status: z.ZodEnum<{
320
+ success: "success";
321
+ running: "running";
322
+ waiting: "waiting";
323
+ suspended: "suspended";
324
+ failed: "failed";
325
+ canceled: "canceled";
326
+ pending: "pending";
327
+ bailed: "bailed";
328
+ tripwire: "tripwire";
329
+ paused: "paused";
330
+ }>;
331
+ initialState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
332
+ result: z.ZodOptional<z.ZodUnknown>;
333
+ error: z.ZodOptional<z.ZodUnknown>;
334
+ payload: z.ZodOptional<z.ZodUnknown>;
335
+ steps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
336
+ activeStepsPath: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>;
337
+ serializedStepGraph: z.ZodOptional<z.ZodArray<z.ZodObject<{
338
+ type: z.ZodEnum<{
339
+ step: "step";
340
+ sleep: "sleep";
341
+ sleepUntil: "sleepUntil";
342
+ waitForEvent: "waitForEvent";
343
+ parallel: "parallel";
344
+ conditional: "conditional";
345
+ loop: "loop";
346
+ foreach: "foreach";
347
+ }>;
348
+ }, z.core.$strip>>>;
349
+ }, z.core.$strip>;
484
350
  /**
485
351
  * Response schema for workflow control operations
486
352
  */
487
353
  export declare const workflowControlResponseSchema: z.ZodObject<{
488
354
  message: z.ZodString;
489
- }, "strip", z.ZodTypeAny, {
490
- message: string;
491
- }, {
492
- message: string;
493
- }>;
355
+ }, z.core.$strip>;
494
356
  /**
495
357
  * Response schema for create workflow run operation
496
358
  * Returns only the runId after creating a run
497
359
  */
498
360
  export declare const createWorkflowRunResponseSchema: z.ZodObject<{
499
361
  runId: z.ZodString;
500
- }, "strip", z.ZodTypeAny, {
501
- runId: string;
502
- }, {
503
- runId: string;
504
- }>;
362
+ }, z.core.$strip>;
363
+ /**
364
+ * Schema for create workflow run body
365
+ * Used by /create-run endpoint
366
+ */
367
+ export declare const createWorkflowRunBodySchema: z.ZodObject<{
368
+ resourceId: z.ZodOptional<z.ZodString>;
369
+ disableScorers: z.ZodOptional<z.ZodBoolean>;
370
+ }, z.core.$strip>;
505
371
  //# sourceMappingURL=workflows.d.ts.map