@mastra/server 1.0.0-beta.4 → 1.0.0-beta.6

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 (287) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/dist/chunk-2NW6POYK.cjs +89 -0
  3. package/dist/chunk-2NW6POYK.cjs.map +1 -0
  4. package/dist/chunk-4W2SM6CG.js +294 -0
  5. package/dist/chunk-4W2SM6CG.js.map +1 -0
  6. package/dist/chunk-5772SXSK.cjs +1065 -0
  7. package/dist/chunk-5772SXSK.cjs.map +1 -0
  8. package/dist/chunk-5W4RPVTK.cjs +49 -0
  9. package/dist/chunk-5W4RPVTK.cjs.map +1 -0
  10. package/dist/chunk-777BJH4Z.cjs +801 -0
  11. package/dist/chunk-777BJH4Z.cjs.map +1 -0
  12. package/dist/chunk-7MKJBWFB.js +328 -0
  13. package/dist/chunk-7MKJBWFB.js.map +1 -0
  14. package/dist/chunk-B4UYPCEY.js +1022 -0
  15. package/dist/chunk-B4UYPCEY.js.map +1 -0
  16. package/dist/chunk-C36PTNGG.js +310 -0
  17. package/dist/chunk-C36PTNGG.js.map +1 -0
  18. package/dist/chunk-CLRYA4BH.cjs +125 -0
  19. package/dist/chunk-CLRYA4BH.cjs.map +1 -0
  20. package/dist/{chunk-FPBYKMIS.js → chunk-CQDHE64H.js} +213 -24
  21. package/dist/chunk-CQDHE64H.js.map +1 -0
  22. package/dist/{chunk-TOCYBDP2.js → chunk-ER3QM7DD.js} +4 -4
  23. package/dist/{chunk-TOCYBDP2.js.map → chunk-ER3QM7DD.js.map} +1 -1
  24. package/dist/chunk-FCCK5TSS.js +116 -0
  25. package/dist/chunk-FCCK5TSS.js.map +1 -0
  26. package/dist/chunk-FPCGLPLJ.cjs +297 -0
  27. package/dist/chunk-FPCGLPLJ.cjs.map +1 -0
  28. package/dist/{chunk-D7T74TVR.js → chunk-G7BPNX2V.js} +4 -3
  29. package/dist/chunk-G7BPNX2V.js.map +1 -0
  30. package/dist/chunk-H2RMXG2Q.cjs +167 -0
  31. package/dist/chunk-H2RMXG2Q.cjs.map +1 -0
  32. package/dist/chunk-IO7XB4XH.cjs +23258 -0
  33. package/dist/chunk-IO7XB4XH.cjs.map +1 -0
  34. package/dist/chunk-MK6GBMKE.js +23216 -0
  35. package/dist/chunk-MK6GBMKE.js.map +1 -0
  36. package/dist/chunk-MWQQRVQC.cjs +259 -0
  37. package/dist/chunk-MWQQRVQC.cjs.map +1 -0
  38. package/dist/chunk-ORJBWSYB.js +196 -0
  39. package/dist/chunk-ORJBWSYB.js.map +1 -0
  40. package/dist/chunk-OSLIOPFU.js +777 -0
  41. package/dist/chunk-OSLIOPFU.js.map +1 -0
  42. package/dist/chunk-PKRHEXX7.js +74 -0
  43. package/dist/chunk-PKRHEXX7.js.map +1 -0
  44. package/dist/chunk-QCW6WANZ.cjs +296 -0
  45. package/dist/chunk-QCW6WANZ.cjs.map +1 -0
  46. package/dist/chunk-QS23OV2B.cjs +916 -0
  47. package/dist/chunk-QS23OV2B.cjs.map +1 -0
  48. package/dist/chunk-R4M3BSUG.js +226 -0
  49. package/dist/chunk-R4M3BSUG.js.map +1 -0
  50. package/dist/{chunk-KJIDZQRA.cjs → chunk-SNPELBJA.cjs} +219 -24
  51. package/dist/chunk-SNPELBJA.cjs.map +1 -0
  52. package/dist/chunk-SWIK2QSP.cjs +346 -0
  53. package/dist/chunk-SWIK2QSP.cjs.map +1 -0
  54. package/dist/chunk-SXVANU23.js +164 -0
  55. package/dist/chunk-SXVANU23.js.map +1 -0
  56. package/dist/chunk-TIX6M3ZD.js +354 -0
  57. package/dist/chunk-TIX6M3ZD.js.map +1 -0
  58. package/dist/chunk-TOUBNMVI.cjs +322 -0
  59. package/dist/chunk-TOUBNMVI.cjs.map +1 -0
  60. package/dist/chunk-TT25WHVT.cjs +368 -0
  61. package/dist/chunk-TT25WHVT.cjs.map +1 -0
  62. package/dist/chunk-UPY7WWRA.cjs +205 -0
  63. package/dist/chunk-UPY7WWRA.cjs.map +1 -0
  64. package/dist/{chunk-W2KMU354.cjs → chunk-UZ6CYAOG.cjs} +4 -3
  65. package/dist/chunk-UZ6CYAOG.cjs.map +1 -0
  66. package/dist/{chunk-QU6N55W6.cjs → chunk-V272B7RM.cjs} +11 -12
  67. package/dist/chunk-V272B7RM.cjs.map +1 -0
  68. package/dist/chunk-VJVDLNFK.js +286 -0
  69. package/dist/chunk-VJVDLNFK.js.map +1 -0
  70. package/dist/chunk-WISPJOEJ.js +887 -0
  71. package/dist/chunk-WISPJOEJ.js.map +1 -0
  72. package/dist/chunk-XMKZWHVG.js +204 -0
  73. package/dist/chunk-XMKZWHVG.js.map +1 -0
  74. package/dist/{chunk-X6C7BUWN.cjs → chunk-XQPJ63ZD.cjs} +4 -4
  75. package/dist/{chunk-X6C7BUWN.cjs.map → chunk-XQPJ63ZD.cjs.map} +1 -1
  76. package/dist/chunk-XWGAT2DA.js +44 -0
  77. package/dist/chunk-XWGAT2DA.js.map +1 -0
  78. package/dist/{chunk-SHWNNZBL.js → chunk-YP34EWWK.js} +9 -10
  79. package/dist/chunk-YP34EWWK.js.map +1 -0
  80. package/dist/chunk-Z4GN2JAO.cjs +211 -0
  81. package/dist/chunk-Z4GN2JAO.cjs.map +1 -0
  82. package/dist/server/auth/defaults.d.ts +3 -0
  83. package/dist/server/auth/defaults.d.ts.map +1 -0
  84. package/dist/server/auth/helpers.d.ts +14 -0
  85. package/dist/server/auth/helpers.d.ts.map +1 -0
  86. package/dist/server/auth/index.cjs +137 -0
  87. package/dist/server/auth/index.cjs.map +1 -0
  88. package/dist/server/auth/index.d.ts +3 -0
  89. package/dist/server/auth/index.d.ts.map +1 -0
  90. package/dist/server/auth/index.js +127 -0
  91. package/dist/server/auth/index.js.map +1 -0
  92. package/dist/server/handlers/a2a.cjs +15 -7
  93. package/dist/server/handlers/a2a.d.ts +482 -0
  94. package/dist/server/handlers/a2a.d.ts.map +1 -1
  95. package/dist/server/handlers/a2a.js +1 -1
  96. package/dist/server/handlers/agent-builder.cjs +37 -37
  97. package/dist/server/handlers/agent-builder.d.ts +615 -77
  98. package/dist/server/handlers/agent-builder.d.ts.map +1 -1
  99. package/dist/server/handlers/agent-builder.js +1 -1
  100. package/dist/server/handlers/agents.cjs +53 -37
  101. package/dist/server/handlers/agents.d.ts +3271 -125
  102. package/dist/server/handlers/agents.d.ts.map +1 -1
  103. package/dist/server/handlers/agents.js +1 -1
  104. package/dist/server/handlers/logs.cjs +7 -7
  105. package/dist/server/handlers/logs.d.ts +135 -27
  106. package/dist/server/handlers/logs.d.ts.map +1 -1
  107. package/dist/server/handlers/logs.js +1 -1
  108. package/dist/server/handlers/mcp.cjs +40 -0
  109. package/dist/server/handlers/mcp.cjs.map +1 -0
  110. package/dist/server/handlers/mcp.d.ts +108 -0
  111. package/dist/server/handlers/mcp.d.ts.map +1 -0
  112. package/dist/server/handlers/mcp.js +3 -0
  113. package/dist/server/handlers/mcp.js.map +1 -0
  114. package/dist/server/handlers/memory.cjs +65 -29
  115. package/dist/server/handlers/memory.d.ts +932 -96
  116. package/dist/server/handlers/memory.d.ts.map +1 -1
  117. package/dist/server/handlers/memory.js +1 -1
  118. package/dist/server/handlers/observability.cjs +21 -5
  119. package/dist/server/handlers/observability.d.ts +119 -12
  120. package/dist/server/handlers/observability.d.ts.map +1 -1
  121. package/dist/server/handlers/observability.js +1 -1
  122. package/dist/server/handlers/scores.cjs +13 -13
  123. package/dist/server/handlers/scores.d.ts +110 -141
  124. package/dist/server/handlers/scores.d.ts.map +1 -1
  125. package/dist/server/handlers/scores.js +1 -1
  126. package/dist/server/handlers/test-utils.cjs +15 -0
  127. package/dist/server/handlers/test-utils.cjs.map +1 -0
  128. package/dist/server/handlers/test-utils.d.ts +6 -0
  129. package/dist/server/handlers/test-utils.d.ts.map +1 -0
  130. package/dist/server/handlers/test-utils.js +13 -0
  131. package/dist/server/handlers/test-utils.js.map +1 -0
  132. package/dist/server/handlers/tools.cjs +11 -11
  133. package/dist/server/handlers/tools.d.ts +69 -23
  134. package/dist/server/handlers/tools.d.ts.map +1 -1
  135. package/dist/server/handlers/tools.js +1 -1
  136. package/dist/server/handlers/utils.cjs +11 -3
  137. package/dist/server/handlers/utils.d.ts +5 -0
  138. package/dist/server/handlers/utils.d.ts.map +1 -1
  139. package/dist/server/handlers/utils.js +1 -1
  140. package/dist/server/handlers/vector.cjs +31 -7
  141. package/dist/server/handlers/vector.d.ts +93 -9
  142. package/dist/server/handlers/vector.d.ts.map +1 -1
  143. package/dist/server/handlers/vector.js +1 -1
  144. package/dist/server/handlers/voice.cjs +21 -9
  145. package/dist/server/handlers/voice.d.ts +81 -40
  146. package/dist/server/handlers/voice.d.ts.map +1 -1
  147. package/dist/server/handlers/voice.js +1 -1
  148. package/dist/server/handlers/workflows.cjs +65 -37
  149. package/dist/server/handlers/workflows.d.ts +934 -79
  150. package/dist/server/handlers/workflows.d.ts.map +1 -1
  151. package/dist/server/handlers/workflows.js +1 -1
  152. package/dist/server/handlers.cjs +36 -31
  153. package/dist/server/handlers.d.ts +1 -0
  154. package/dist/server/handlers.d.ts.map +1 -1
  155. package/dist/server/handlers.js +12 -11
  156. package/dist/server/schemas/a2a.d.ts +786 -0
  157. package/dist/server/schemas/a2a.d.ts.map +1 -0
  158. package/dist/server/schemas/agent-builder.d.ts +204 -0
  159. package/dist/server/schemas/agent-builder.d.ts.map +1 -0
  160. package/dist/server/schemas/agents.d.ts +1375 -0
  161. package/dist/server/schemas/agents.d.ts.map +1 -0
  162. package/dist/server/schemas/common.d.ts +165 -0
  163. package/dist/server/schemas/common.d.ts.map +1 -0
  164. package/dist/server/schemas/logs.d.ts +124 -0
  165. package/dist/server/schemas/logs.d.ts.map +1 -0
  166. package/dist/server/schemas/mcp.d.ts +293 -0
  167. package/dist/server/schemas/mcp.d.ts.map +1 -0
  168. package/dist/server/schemas/memory.d.ts +998 -0
  169. package/dist/server/schemas/memory.d.ts.map +1 -0
  170. package/dist/server/schemas/observability.d.ts +402 -0
  171. package/dist/server/schemas/observability.d.ts.map +1 -0
  172. package/dist/server/schemas/scores.d.ts +259 -0
  173. package/dist/server/schemas/scores.d.ts.map +1 -0
  174. package/dist/server/schemas/vectors.d.ts +107 -0
  175. package/dist/server/schemas/vectors.d.ts.map +1 -0
  176. package/dist/server/schemas/workflows.d.ts +617 -0
  177. package/dist/server/schemas/workflows.d.ts.map +1 -0
  178. package/dist/server/server-adapter/index.cjs +472 -0
  179. package/dist/server/server-adapter/index.cjs.map +1 -0
  180. package/dist/server/server-adapter/index.d.ts +95 -0
  181. package/dist/server/server-adapter/index.d.ts.map +1 -0
  182. package/dist/server/server-adapter/index.js +457 -0
  183. package/dist/server/server-adapter/index.js.map +1 -0
  184. package/dist/server/server-adapter/openapi-utils.d.ts +59 -0
  185. package/dist/server/server-adapter/openapi-utils.d.ts.map +1 -0
  186. package/dist/server/server-adapter/redact.d.ts +26 -0
  187. package/dist/server/server-adapter/redact.d.ts.map +1 -0
  188. package/dist/server/server-adapter/routes/a2a.d.ts +3 -0
  189. package/dist/server/server-adapter/routes/a2a.d.ts.map +1 -0
  190. package/dist/server/server-adapter/routes/agent-builder.d.ts +3 -0
  191. package/dist/server/server-adapter/routes/agent-builder.d.ts.map +1 -0
  192. package/dist/server/server-adapter/routes/agents.d.ts +3 -0
  193. package/dist/server/server-adapter/routes/agents.d.ts.map +1 -0
  194. package/dist/server/server-adapter/routes/index.d.ts +50 -0
  195. package/dist/server/server-adapter/routes/index.d.ts.map +1 -0
  196. package/dist/server/server-adapter/routes/legacy.d.ts +7 -0
  197. package/dist/server/server-adapter/routes/legacy.d.ts.map +1 -0
  198. package/dist/server/server-adapter/routes/logs.d.ts +3 -0
  199. package/dist/server/server-adapter/routes/logs.d.ts.map +1 -0
  200. package/dist/server/server-adapter/routes/mcp.d.ts +9 -0
  201. package/dist/server/server-adapter/routes/mcp.d.ts.map +1 -0
  202. package/dist/server/server-adapter/routes/memory.d.ts +3 -0
  203. package/dist/server/server-adapter/routes/memory.d.ts.map +1 -0
  204. package/dist/server/server-adapter/routes/observability.d.ts +3 -0
  205. package/dist/server/server-adapter/routes/observability.d.ts.map +1 -0
  206. package/dist/server/server-adapter/routes/route-builder.d.ts +52 -0
  207. package/dist/server/server-adapter/routes/route-builder.d.ts.map +1 -0
  208. package/dist/server/server-adapter/routes/scorers.d.ts +3 -0
  209. package/dist/server/server-adapter/routes/scorers.d.ts.map +1 -0
  210. package/dist/server/server-adapter/routes/stream-types.d.ts +10 -0
  211. package/dist/server/server-adapter/routes/stream-types.d.ts.map +1 -0
  212. package/dist/server/server-adapter/routes/tools.d.ts +3 -0
  213. package/dist/server/server-adapter/routes/tools.d.ts.map +1 -0
  214. package/dist/server/server-adapter/routes/vectors.d.ts +3 -0
  215. package/dist/server/server-adapter/routes/vectors.d.ts.map +1 -0
  216. package/dist/server/server-adapter/routes/workflows.d.ts +3 -0
  217. package/dist/server/server-adapter/routes/workflows.d.ts.map +1 -0
  218. package/dist/server/utils.d.ts.map +1 -1
  219. package/dist/token-GVZ7HRD7.js +62 -0
  220. package/dist/{token-C3IMNCC4.js.map → token-GVZ7HRD7.js.map} +1 -1
  221. package/dist/{token-C3IMNCC4.js → token-JGA3ZWAN.js} +5 -6
  222. package/dist/token-JGA3ZWAN.js.map +1 -0
  223. package/dist/token-VFONFWVS.cjs +64 -0
  224. package/dist/{token-375W3LEI.cjs.map → token-VFONFWVS.cjs.map} +1 -1
  225. package/dist/{token-375W3LEI.cjs → token-ZOD6YIQ3.cjs} +7 -8
  226. package/dist/token-ZOD6YIQ3.cjs.map +1 -0
  227. package/dist/token-util-7R2ZFIXO.js +7 -0
  228. package/dist/{token-util-E5QO2RCL.js.map → token-util-7R2ZFIXO.js.map} +1 -1
  229. package/dist/token-util-BLJZJDBZ.cjs +9 -0
  230. package/dist/{token-util-CV3RRG6K.cjs.map → token-util-BLJZJDBZ.cjs.map} +1 -1
  231. package/dist/token-util-VGZUWSNR.cjs +9 -0
  232. package/dist/token-util-VGZUWSNR.cjs.map +1 -0
  233. package/dist/token-util-VKTPZLSE.js +7 -0
  234. package/dist/token-util-VKTPZLSE.js.map +1 -0
  235. package/package.json +30 -7
  236. package/dist/chunk-2YZH5PH6.cjs +0 -200
  237. package/dist/chunk-2YZH5PH6.cjs.map +0 -1
  238. package/dist/chunk-3AMNUUZF.js +0 -124
  239. package/dist/chunk-3AMNUUZF.js.map +0 -1
  240. package/dist/chunk-3F52QCI4.js +0 -192
  241. package/dist/chunk-3F52QCI4.js.map +0 -1
  242. package/dist/chunk-4G5QBFEW.cjs +0 -681
  243. package/dist/chunk-4G5QBFEW.cjs.map +0 -1
  244. package/dist/chunk-73PAWDM5.js +0 -83
  245. package/dist/chunk-73PAWDM5.js.map +0 -1
  246. package/dist/chunk-7HVY3D64.cjs +0 -22955
  247. package/dist/chunk-7HVY3D64.cjs.map +0 -1
  248. package/dist/chunk-A24TSVEZ.cjs +0 -130
  249. package/dist/chunk-A24TSVEZ.cjs.map +0 -1
  250. package/dist/chunk-B3Z6J745.js +0 -122
  251. package/dist/chunk-B3Z6J745.js.map +0 -1
  252. package/dist/chunk-BTWIR2B7.cjs +0 -28
  253. package/dist/chunk-BTWIR2B7.cjs.map +0 -1
  254. package/dist/chunk-D7T74TVR.js.map +0 -1
  255. package/dist/chunk-FPBYKMIS.js.map +0 -1
  256. package/dist/chunk-GLAZTMX3.cjs +0 -128
  257. package/dist/chunk-GLAZTMX3.cjs.map +0 -1
  258. package/dist/chunk-KF3RI45U.cjs +0 -172
  259. package/dist/chunk-KF3RI45U.cjs.map +0 -1
  260. package/dist/chunk-KJIDZQRA.cjs.map +0 -1
  261. package/dist/chunk-KWH5QBXP.js +0 -123
  262. package/dist/chunk-KWH5QBXP.js.map +0 -1
  263. package/dist/chunk-ND5OKOMT.js +0 -165
  264. package/dist/chunk-ND5OKOMT.js.map +0 -1
  265. package/dist/chunk-PPMIB3FQ.cjs +0 -88
  266. package/dist/chunk-PPMIB3FQ.cjs.map +0 -1
  267. package/dist/chunk-QU6N55W6.cjs.map +0 -1
  268. package/dist/chunk-S54HNARD.cjs +0 -131
  269. package/dist/chunk-S54HNARD.cjs.map +0 -1
  270. package/dist/chunk-SHWNNZBL.js.map +0 -1
  271. package/dist/chunk-SZIFSF4T.js +0 -25
  272. package/dist/chunk-SZIFSF4T.js.map +0 -1
  273. package/dist/chunk-U7GLIXYO.cjs +0 -534
  274. package/dist/chunk-U7GLIXYO.cjs.map +0 -1
  275. package/dist/chunk-UGXW2KPL.js +0 -661
  276. package/dist/chunk-UGXW2KPL.js.map +0 -1
  277. package/dist/chunk-V6JYJS7O.js +0 -518
  278. package/dist/chunk-V6JYJS7O.js.map +0 -1
  279. package/dist/chunk-VEVU6EUO.js +0 -22916
  280. package/dist/chunk-VEVU6EUO.js.map +0 -1
  281. package/dist/chunk-W2KMU354.cjs.map +0 -1
  282. package/dist/chunk-X3MICMI2.cjs +0 -620
  283. package/dist/chunk-X3MICMI2.cjs.map +0 -1
  284. package/dist/chunk-ZJ6KEY6H.js +0 -600
  285. package/dist/chunk-ZJ6KEY6H.js.map +0 -1
  286. package/dist/token-util-CV3RRG6K.cjs +0 -9
  287. package/dist/token-util-E5QO2RCL.js +0 -7
@@ -1,88 +1,943 @@
1
- import { ReadableStream } from 'node:stream/web';
2
- import type { RequestContext } from '@mastra/core/di';
3
- import type { TracingOptions } from '@mastra/core/observability';
4
- import type { WorkflowRuns } from '@mastra/core/storage';
5
- import type { Workflow, WorkflowInfo, ChunkType, StreamEvent, WorkflowState } from '@mastra/core/workflows';
6
1
  import type { Context } from '../types.js';
7
2
  export interface WorkflowContext extends Context {
8
3
  workflowId?: string;
9
4
  runId?: string;
10
5
  }
11
- export declare function listWorkflowsHandler({ mastra }: WorkflowContext): Promise<Record<string, WorkflowInfo>>;
12
- export declare function getWorkflowByIdHandler({ mastra, workflowId }: WorkflowContext): Promise<WorkflowInfo>;
13
- export declare function getWorkflowRunByIdHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReturnType<Workflow['getWorkflowRunById']>>;
14
- export declare function getWorkflowRunExecutionResultHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<WorkflowState>;
15
- export declare function createWorkflowRunHandler({ mastra, workflowId, runId: prevRunId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<{
16
- runId: string;
17
- }>;
18
- export declare function startAsyncWorkflowHandler({ mastra, requestContext, workflowId, runId, inputData, tracingOptions, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
19
- inputData?: unknown;
20
- requestContext?: RequestContext;
21
- tracingOptions?: TracingOptions;
22
- }): Promise<import("@mastra/core/workflows").WorkflowResult<any, any, any, any>>;
23
- export declare function startWorkflowRunHandler({ mastra, requestContext, workflowId, runId, inputData, tracingOptions, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
24
- inputData?: unknown;
25
- requestContext?: RequestContext;
26
- tracingOptions?: TracingOptions;
27
- }): Promise<{
6
+ export declare const LIST_WORKFLOWS_ROUTE: import("../server-adapter").ServerRoute<{}, Record<string, {
7
+ steps: Record<string, {
8
+ id: string;
9
+ description?: string | undefined;
10
+ }>;
11
+ allSteps: Record<string, {
12
+ id: string;
13
+ description?: string | undefined;
14
+ }>;
15
+ stepGraph: {
16
+ type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
17
+ }[];
18
+ options?: {} | undefined;
19
+ name?: string | undefined;
20
+ description?: string | undefined;
21
+ inputSchema?: string | undefined;
22
+ outputSchema?: string | undefined;
23
+ }>, "json">;
24
+ export declare const GET_WORKFLOW_BY_ID_ROUTE: import("../server-adapter").ServerRoute<{
25
+ workflowId: string;
26
+ }, {
27
+ steps: Record<string, {
28
+ id: string;
29
+ description?: string | undefined;
30
+ }>;
31
+ allSteps: Record<string, {
32
+ id: string;
33
+ description?: string | undefined;
34
+ }>;
35
+ stepGraph: {
36
+ type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
37
+ }[];
38
+ options?: {} | undefined;
39
+ name?: string | undefined;
40
+ description?: string | undefined;
41
+ inputSchema?: string | undefined;
42
+ outputSchema?: string | undefined;
43
+ }, "json">;
44
+ export declare const LIST_WORKFLOW_RUNS_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
45
+ workflowId: import("zod").ZodString;
46
+ }, "strip", import("zod").ZodTypeAny, {
47
+ workflowId: string;
48
+ }, {
49
+ workflowId: string;
50
+ }>, import("zod").ZodObject<{
51
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
52
+ offset: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
53
+ } & {
54
+ fromDate: import("zod").ZodOptional<import("zod").ZodDate>;
55
+ toDate: import("zod").ZodOptional<import("zod").ZodDate>;
56
+ resourceId: import("zod").ZodOptional<import("zod").ZodString>;
57
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["running", "waiting", "suspended", "success", "failed", "canceled", "pending", "bailed"]>>;
58
+ }, "strip", import("zod").ZodTypeAny, {
59
+ limit: number;
60
+ offset: number;
61
+ status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | undefined;
62
+ resourceId?: string | undefined;
63
+ fromDate?: Date | undefined;
64
+ toDate?: Date | undefined;
65
+ }, {
66
+ status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | undefined;
67
+ limit?: number | undefined;
68
+ offset?: number | undefined;
69
+ resourceId?: string | undefined;
70
+ fromDate?: Date | undefined;
71
+ toDate?: Date | undefined;
72
+ }> | import("zod").ZodObject<{
73
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
74
+ offset: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
75
+ } & {
76
+ fromDate: import("zod").ZodOptional<import("zod").ZodDate>;
77
+ toDate: import("zod").ZodOptional<import("zod").ZodDate>;
78
+ resourceId: import("zod").ZodOptional<import("zod").ZodString>;
79
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["running", "waiting", "suspended", "success", "failed", "canceled", "pending", "bailed"]>>;
80
+ }, "strip", import("zod").ZodTypeAny, {
81
+ offset: number;
82
+ status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | undefined;
83
+ limit?: number | undefined;
84
+ resourceId?: string | undefined;
85
+ fromDate?: Date | undefined;
86
+ toDate?: Date | undefined;
87
+ }, {
88
+ status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | undefined;
89
+ limit?: number | undefined;
90
+ offset?: number | undefined;
91
+ resourceId?: string | undefined;
92
+ fromDate?: Date | undefined;
93
+ toDate?: Date | undefined;
94
+ }>, undefined>, {
95
+ total: number;
96
+ runs: {
97
+ runId: string;
98
+ workflowName: string;
99
+ snapshot: string | {};
100
+ createdAt: Date;
101
+ updatedAt: Date;
102
+ resourceId?: string | undefined;
103
+ }[];
104
+ }, "json">;
105
+ export declare const GET_WORKFLOW_RUN_BY_ID_ROUTE: import("../server-adapter").ServerRoute<{
106
+ runId: string;
107
+ workflowId: string;
108
+ }, {
109
+ runId: string;
110
+ workflowName: string;
111
+ snapshot: string | {};
112
+ createdAt: Date;
113
+ updatedAt: Date;
114
+ resourceId?: string | undefined;
115
+ }, "json">;
116
+ export declare const CREATE_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
117
+ workflowId: import("zod").ZodString;
118
+ }, "strip", import("zod").ZodTypeAny, {
119
+ workflowId: string;
120
+ }, {
121
+ workflowId: string;
122
+ }>, import("zod").ZodObject<{
123
+ runId: import("zod").ZodOptional<import("zod").ZodString>;
124
+ }, "strip", import("zod").ZodTypeAny, {
125
+ runId?: string | undefined;
126
+ }, {
127
+ runId?: string | undefined;
128
+ }>, undefined>, {
129
+ runId: string;
130
+ }, "json">;
131
+ export declare const STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
132
+ workflowId: import("zod").ZodString;
133
+ }, "strip", import("zod").ZodTypeAny, {
134
+ workflowId: string;
135
+ }, {
136
+ workflowId: string;
137
+ }>, import("zod").ZodObject<{
138
+ runId: import("zod").ZodString;
139
+ }, "strip", import("zod").ZodTypeAny, {
140
+ runId: string;
141
+ }, {
142
+ runId: string;
143
+ }>, import("zod").ZodObject<{
144
+ inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
145
+ initialState: import("zod").ZodOptional<import("zod").ZodUnknown>;
146
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
147
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
148
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
149
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
150
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
151
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
152
+ }, "strip", import("zod").ZodTypeAny, {
153
+ metadata?: Record<string, unknown> | undefined;
154
+ requestContextKeys?: string[] | undefined;
155
+ traceId?: string | undefined;
156
+ parentSpanId?: string | undefined;
157
+ }, {
158
+ metadata?: Record<string, unknown> | undefined;
159
+ requestContextKeys?: string[] | undefined;
160
+ traceId?: string | undefined;
161
+ parentSpanId?: string | undefined;
162
+ }>>;
163
+ } & {
164
+ closeOnSuspend: import("zod").ZodOptional<import("zod").ZodBoolean>;
165
+ }, "strip", import("zod").ZodTypeAny, {
166
+ inputData?: unknown;
167
+ initialState?: unknown;
168
+ requestContext?: Record<string, unknown> | undefined;
169
+ tracingOptions?: {
170
+ metadata?: Record<string, unknown> | undefined;
171
+ requestContextKeys?: string[] | undefined;
172
+ traceId?: string | undefined;
173
+ parentSpanId?: string | undefined;
174
+ } | undefined;
175
+ closeOnSuspend?: boolean | undefined;
176
+ }, {
177
+ inputData?: unknown;
178
+ initialState?: unknown;
179
+ requestContext?: Record<string, unknown> | undefined;
180
+ tracingOptions?: {
181
+ metadata?: Record<string, unknown> | undefined;
182
+ requestContextKeys?: string[] | undefined;
183
+ traceId?: string | undefined;
184
+ parentSpanId?: string | undefined;
185
+ } | undefined;
186
+ closeOnSuspend?: boolean | undefined;
187
+ }>>, unknown, "stream">;
188
+ export declare const STREAM_VNEXT_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
189
+ workflowId: import("zod").ZodString;
190
+ }, "strip", import("zod").ZodTypeAny, {
191
+ workflowId: string;
192
+ }, {
193
+ workflowId: string;
194
+ }>, import("zod").ZodObject<{
195
+ runId: import("zod").ZodString;
196
+ }, "strip", import("zod").ZodTypeAny, {
197
+ runId: string;
198
+ }, {
199
+ runId: string;
200
+ }>, import("zod").ZodObject<{
201
+ inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
202
+ initialState: import("zod").ZodOptional<import("zod").ZodUnknown>;
203
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
204
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
205
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
206
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
207
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
208
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
209
+ }, "strip", import("zod").ZodTypeAny, {
210
+ metadata?: Record<string, unknown> | undefined;
211
+ requestContextKeys?: string[] | undefined;
212
+ traceId?: string | undefined;
213
+ parentSpanId?: string | undefined;
214
+ }, {
215
+ metadata?: Record<string, unknown> | undefined;
216
+ requestContextKeys?: string[] | undefined;
217
+ traceId?: string | undefined;
218
+ parentSpanId?: string | undefined;
219
+ }>>;
220
+ } & {
221
+ closeOnSuspend: import("zod").ZodOptional<import("zod").ZodBoolean>;
222
+ }, "strip", import("zod").ZodTypeAny, {
223
+ inputData?: unknown;
224
+ initialState?: unknown;
225
+ requestContext?: Record<string, unknown> | undefined;
226
+ tracingOptions?: {
227
+ metadata?: Record<string, unknown> | undefined;
228
+ requestContextKeys?: string[] | undefined;
229
+ traceId?: string | undefined;
230
+ parentSpanId?: string | undefined;
231
+ } | undefined;
232
+ closeOnSuspend?: boolean | undefined;
233
+ }, {
234
+ inputData?: unknown;
235
+ initialState?: unknown;
236
+ requestContext?: Record<string, unknown> | undefined;
237
+ tracingOptions?: {
238
+ metadata?: Record<string, unknown> | undefined;
239
+ requestContextKeys?: string[] | undefined;
240
+ traceId?: string | undefined;
241
+ parentSpanId?: string | undefined;
242
+ } | undefined;
243
+ closeOnSuspend?: boolean | undefined;
244
+ }>>, unknown, "stream">;
245
+ export declare const RESUME_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
246
+ workflowId: import("zod").ZodString;
247
+ }, "strip", import("zod").ZodTypeAny, {
248
+ workflowId: string;
249
+ }, {
250
+ workflowId: string;
251
+ }>, import("zod").ZodObject<{
252
+ runId: import("zod").ZodString;
253
+ }, "strip", import("zod").ZodTypeAny, {
254
+ runId: string;
255
+ }, {
256
+ runId: string;
257
+ }>, import("zod").ZodObject<{
258
+ step: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
259
+ resumeData: import("zod").ZodOptional<import("zod").ZodUnknown>;
260
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
261
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
262
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
263
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
264
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
265
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
266
+ }, "strip", import("zod").ZodTypeAny, {
267
+ metadata?: Record<string, unknown> | undefined;
268
+ requestContextKeys?: string[] | undefined;
269
+ traceId?: string | undefined;
270
+ parentSpanId?: string | undefined;
271
+ }, {
272
+ metadata?: Record<string, unknown> | undefined;
273
+ requestContextKeys?: string[] | undefined;
274
+ traceId?: string | undefined;
275
+ parentSpanId?: string | undefined;
276
+ }>>;
277
+ }, "strip", import("zod").ZodTypeAny, {
278
+ step?: string | string[] | undefined;
279
+ requestContext?: Record<string, unknown> | undefined;
280
+ tracingOptions?: {
281
+ metadata?: Record<string, unknown> | undefined;
282
+ requestContextKeys?: string[] | undefined;
283
+ traceId?: string | undefined;
284
+ parentSpanId?: string | undefined;
285
+ } | undefined;
286
+ resumeData?: unknown;
287
+ }, {
288
+ step?: string | string[] | undefined;
289
+ requestContext?: Record<string, unknown> | undefined;
290
+ tracingOptions?: {
291
+ metadata?: Record<string, unknown> | undefined;
292
+ requestContextKeys?: string[] | undefined;
293
+ traceId?: string | undefined;
294
+ parentSpanId?: string | undefined;
295
+ } | undefined;
296
+ resumeData?: unknown;
297
+ }>>, any, "stream">;
298
+ export declare const GET_WORKFLOW_RUN_EXECUTION_RESULT_ROUTE: import("../server-adapter").ServerRoute<{
299
+ runId: string;
300
+ workflowId: string;
301
+ }, {
302
+ status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed";
303
+ error?: unknown;
304
+ result?: unknown;
305
+ }, "json">;
306
+ export declare const START_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
307
+ workflowId: import("zod").ZodString;
308
+ }, "strip", import("zod").ZodTypeAny, {
309
+ workflowId: string;
310
+ }, {
311
+ workflowId: string;
312
+ }>, import("zod").ZodObject<{
313
+ runId: import("zod").ZodOptional<import("zod").ZodString>;
314
+ }, "strip", import("zod").ZodTypeAny, {
315
+ runId?: string | undefined;
316
+ }, {
317
+ runId?: string | undefined;
318
+ }>, import("zod").ZodObject<{
319
+ inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
320
+ initialState: import("zod").ZodOptional<import("zod").ZodUnknown>;
321
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
322
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
323
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
324
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
325
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
326
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
327
+ }, "strip", import("zod").ZodTypeAny, {
328
+ metadata?: Record<string, unknown> | undefined;
329
+ requestContextKeys?: string[] | undefined;
330
+ traceId?: string | undefined;
331
+ parentSpanId?: string | undefined;
332
+ }, {
333
+ metadata?: Record<string, unknown> | undefined;
334
+ requestContextKeys?: string[] | undefined;
335
+ traceId?: string | undefined;
336
+ parentSpanId?: string | undefined;
337
+ }>>;
338
+ }, "strip", import("zod").ZodTypeAny, {
339
+ inputData?: unknown;
340
+ initialState?: unknown;
341
+ requestContext?: Record<string, unknown> | undefined;
342
+ tracingOptions?: {
343
+ metadata?: Record<string, unknown> | undefined;
344
+ requestContextKeys?: string[] | undefined;
345
+ traceId?: string | undefined;
346
+ parentSpanId?: string | undefined;
347
+ } | undefined;
348
+ }, {
349
+ inputData?: unknown;
350
+ initialState?: unknown;
351
+ requestContext?: Record<string, unknown> | undefined;
352
+ tracingOptions?: {
353
+ metadata?: Record<string, unknown> | undefined;
354
+ requestContextKeys?: string[] | undefined;
355
+ traceId?: string | undefined;
356
+ parentSpanId?: string | undefined;
357
+ } | undefined;
358
+ }>>, {
359
+ status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed";
360
+ error?: unknown;
361
+ result?: unknown;
362
+ }, "json">;
363
+ export declare const START_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
364
+ workflowId: import("zod").ZodString;
365
+ }, "strip", import("zod").ZodTypeAny, {
366
+ workflowId: string;
367
+ }, {
368
+ workflowId: string;
369
+ }>, import("zod").ZodObject<{
370
+ runId: import("zod").ZodString;
371
+ }, "strip", import("zod").ZodTypeAny, {
372
+ runId: string;
373
+ }, {
374
+ runId: string;
375
+ }>, import("zod").ZodObject<{
376
+ inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
377
+ initialState: import("zod").ZodOptional<import("zod").ZodUnknown>;
378
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
379
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
380
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
381
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
382
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
383
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
384
+ }, "strip", import("zod").ZodTypeAny, {
385
+ metadata?: Record<string, unknown> | undefined;
386
+ requestContextKeys?: string[] | undefined;
387
+ traceId?: string | undefined;
388
+ parentSpanId?: string | undefined;
389
+ }, {
390
+ metadata?: Record<string, unknown> | undefined;
391
+ requestContextKeys?: string[] | undefined;
392
+ traceId?: string | undefined;
393
+ parentSpanId?: string | undefined;
394
+ }>>;
395
+ }, "strip", import("zod").ZodTypeAny, {
396
+ inputData?: unknown;
397
+ initialState?: unknown;
398
+ requestContext?: Record<string, unknown> | undefined;
399
+ tracingOptions?: {
400
+ metadata?: Record<string, unknown> | undefined;
401
+ requestContextKeys?: string[] | undefined;
402
+ traceId?: string | undefined;
403
+ parentSpanId?: string | undefined;
404
+ } | undefined;
405
+ }, {
406
+ inputData?: unknown;
407
+ initialState?: unknown;
408
+ requestContext?: Record<string, unknown> | undefined;
409
+ tracingOptions?: {
410
+ metadata?: Record<string, unknown> | undefined;
411
+ requestContextKeys?: string[] | undefined;
412
+ traceId?: string | undefined;
413
+ parentSpanId?: string | undefined;
414
+ } | undefined;
415
+ }>>, {
28
416
  message: string;
29
- }>;
30
- export declare function streamWorkflowHandler({ mastra, requestContext, workflowId, runId, inputData, tracingOptions, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
31
- inputData?: unknown;
32
- requestContext?: RequestContext;
33
- tracingOptions?: TracingOptions;
34
- }): Promise<ReadableStream<ChunkType>>;
35
- export declare function streamLegacyWorkflowHandler({ mastra, requestContext, workflowId, runId, inputData, tracingOptions, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
36
- inputData?: unknown;
37
- requestContext?: RequestContext;
38
- tracingOptions?: TracingOptions;
39
- }): Promise<{
40
- stream: ReadableStream<StreamEvent>;
41
- getWorkflowState: () => Promise<import("@mastra/core/workflows").WorkflowResult<any, any, any, any>>;
42
- }>;
43
- export declare function observeStreamLegacyWorkflowHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReadableStream<StreamEvent>>;
44
- export declare function observeStreamWorkflowHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReadableStream<ChunkType>>;
45
- export declare function streamVNextWorkflowHandler({ mastra, requestContext, workflowId, runId, inputData, closeOnSuspend, tracingOptions, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
46
- inputData?: unknown;
47
- requestContext?: RequestContext;
48
- closeOnSuspend?: boolean;
49
- tracingOptions?: TracingOptions;
50
- }): Promise<ReadableStream<ChunkType>>;
51
- export declare function observeStreamVNextWorkflowHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReadableStream<ChunkType>>;
52
- export declare function resumeAsyncWorkflowHandler({ mastra, workflowId, runId, body, requestContext, tracingOptions, }: WorkflowContext & {
53
- body: {
54
- step: string | string[];
55
- resumeData?: unknown;
56
- };
57
- requestContext?: RequestContext;
58
- tracingOptions?: TracingOptions;
59
- }): Promise<import("@mastra/core/workflows").WorkflowResult<any, any, any, any>>;
60
- export declare function resumeWorkflowHandler({ mastra, workflowId, runId, body, requestContext, tracingOptions, }: WorkflowContext & {
61
- body: {
62
- step: string | string[];
63
- resumeData?: unknown;
64
- };
65
- requestContext?: RequestContext;
66
- tracingOptions?: TracingOptions;
67
- }): Promise<{
417
+ }, "json">;
418
+ export declare const OBSERVE_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
419
+ workflowId: import("zod").ZodString;
420
+ }, "strip", import("zod").ZodTypeAny, {
421
+ workflowId: string;
422
+ }, {
423
+ workflowId: string;
424
+ }>, import("zod").ZodObject<{
425
+ runId: import("zod").ZodString;
426
+ }, "strip", import("zod").ZodTypeAny, {
427
+ runId: string;
428
+ }, {
429
+ runId: string;
430
+ }>, undefined>, any, "stream">;
431
+ export declare const OBSERVE_STREAM_VNEXT_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
432
+ workflowId: import("zod").ZodString;
433
+ }, "strip", import("zod").ZodTypeAny, {
434
+ workflowId: string;
435
+ }, {
436
+ workflowId: string;
437
+ }>, import("zod").ZodObject<{
438
+ runId: import("zod").ZodString;
439
+ }, "strip", import("zod").ZodTypeAny, {
440
+ runId: string;
441
+ }, {
442
+ runId: string;
443
+ }>, undefined>, any, "stream">;
444
+ export declare const RESUME_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
445
+ workflowId: import("zod").ZodString;
446
+ }, "strip", import("zod").ZodTypeAny, {
447
+ workflowId: string;
448
+ }, {
449
+ workflowId: string;
450
+ }>, import("zod").ZodObject<{
451
+ runId: import("zod").ZodString;
452
+ }, "strip", import("zod").ZodTypeAny, {
453
+ runId: string;
454
+ }, {
455
+ runId: string;
456
+ }>, import("zod").ZodObject<{
457
+ step: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
458
+ resumeData: import("zod").ZodOptional<import("zod").ZodUnknown>;
459
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
460
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
461
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
462
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
463
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
464
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
465
+ }, "strip", import("zod").ZodTypeAny, {
466
+ metadata?: Record<string, unknown> | undefined;
467
+ requestContextKeys?: string[] | undefined;
468
+ traceId?: string | undefined;
469
+ parentSpanId?: string | undefined;
470
+ }, {
471
+ metadata?: Record<string, unknown> | undefined;
472
+ requestContextKeys?: string[] | undefined;
473
+ traceId?: string | undefined;
474
+ parentSpanId?: string | undefined;
475
+ }>>;
476
+ }, "strip", import("zod").ZodTypeAny, {
477
+ step?: string | string[] | undefined;
478
+ requestContext?: Record<string, unknown> | undefined;
479
+ tracingOptions?: {
480
+ metadata?: Record<string, unknown> | undefined;
481
+ requestContextKeys?: string[] | undefined;
482
+ traceId?: string | undefined;
483
+ parentSpanId?: string | undefined;
484
+ } | undefined;
485
+ resumeData?: unknown;
486
+ }, {
487
+ step?: string | string[] | undefined;
488
+ requestContext?: Record<string, unknown> | undefined;
489
+ tracingOptions?: {
490
+ metadata?: Record<string, unknown> | undefined;
491
+ requestContextKeys?: string[] | undefined;
492
+ traceId?: string | undefined;
493
+ parentSpanId?: string | undefined;
494
+ } | undefined;
495
+ resumeData?: unknown;
496
+ }>>, {
497
+ status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed";
498
+ error?: unknown;
499
+ result?: unknown;
500
+ }, "json">;
501
+ export declare const RESUME_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
502
+ workflowId: import("zod").ZodString;
503
+ }, "strip", import("zod").ZodTypeAny, {
504
+ workflowId: string;
505
+ }, {
506
+ workflowId: string;
507
+ }>, import("zod").ZodObject<{
508
+ runId: import("zod").ZodString;
509
+ }, "strip", import("zod").ZodTypeAny, {
510
+ runId: string;
511
+ }, {
512
+ runId: string;
513
+ }>, import("zod").ZodObject<{
514
+ step: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
515
+ resumeData: import("zod").ZodOptional<import("zod").ZodUnknown>;
516
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
517
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
518
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
519
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
520
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
521
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
522
+ }, "strip", import("zod").ZodTypeAny, {
523
+ metadata?: Record<string, unknown> | undefined;
524
+ requestContextKeys?: string[] | undefined;
525
+ traceId?: string | undefined;
526
+ parentSpanId?: string | undefined;
527
+ }, {
528
+ metadata?: Record<string, unknown> | undefined;
529
+ requestContextKeys?: string[] | undefined;
530
+ traceId?: string | undefined;
531
+ parentSpanId?: string | undefined;
532
+ }>>;
533
+ }, "strip", import("zod").ZodTypeAny, {
534
+ step?: string | string[] | undefined;
535
+ requestContext?: Record<string, unknown> | undefined;
536
+ tracingOptions?: {
537
+ metadata?: Record<string, unknown> | undefined;
538
+ requestContextKeys?: string[] | undefined;
539
+ traceId?: string | undefined;
540
+ parentSpanId?: string | undefined;
541
+ } | undefined;
542
+ resumeData?: unknown;
543
+ }, {
544
+ step?: string | string[] | undefined;
545
+ requestContext?: Record<string, unknown> | undefined;
546
+ tracingOptions?: {
547
+ metadata?: Record<string, unknown> | undefined;
548
+ requestContextKeys?: string[] | undefined;
549
+ traceId?: string | undefined;
550
+ parentSpanId?: string | undefined;
551
+ } | undefined;
552
+ resumeData?: unknown;
553
+ }>>, {
68
554
  message: string;
69
- }>;
70
- export declare function resumeStreamWorkflowHandler({ mastra, workflowId, runId, body, requestContext, tracingOptions, }: WorkflowContext & {
71
- body: {
72
- step: string | string[];
73
- resumeData?: unknown;
74
- };
75
- requestContext?: RequestContext;
76
- tracingOptions?: TracingOptions;
77
- }): Promise<ReadableStream<ChunkType>>;
78
- export declare function listWorkflowRunsHandler({ mastra, workflowId, fromDate, toDate, perPage, page, resourceId, }: WorkflowContext & {
79
- fromDate?: Date;
80
- toDate?: Date;
81
- perPage?: number | false;
82
- page?: number;
83
- resourceId?: string;
84
- }): Promise<WorkflowRuns>;
85
- export declare function cancelWorkflowRunHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<{
555
+ }, "json">;
556
+ export declare const RESTART_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
557
+ workflowId: import("zod").ZodString;
558
+ }, "strip", import("zod").ZodTypeAny, {
559
+ workflowId: string;
560
+ }, {
561
+ workflowId: string;
562
+ }>, import("zod").ZodObject<{
563
+ runId: import("zod").ZodString;
564
+ }, "strip", import("zod").ZodTypeAny, {
565
+ runId: string;
566
+ }, {
567
+ runId: string;
568
+ }>, import("zod").ZodObject<{
569
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
570
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
571
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
572
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
573
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
574
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
575
+ }, "strip", import("zod").ZodTypeAny, {
576
+ metadata?: Record<string, unknown> | undefined;
577
+ requestContextKeys?: string[] | undefined;
578
+ traceId?: string | undefined;
579
+ parentSpanId?: string | undefined;
580
+ }, {
581
+ metadata?: Record<string, unknown> | undefined;
582
+ requestContextKeys?: string[] | undefined;
583
+ traceId?: string | undefined;
584
+ parentSpanId?: string | undefined;
585
+ }>>;
586
+ }, "strip", import("zod").ZodTypeAny, {
587
+ requestContext?: Record<string, unknown> | undefined;
588
+ tracingOptions?: {
589
+ metadata?: Record<string, unknown> | undefined;
590
+ requestContextKeys?: string[] | undefined;
591
+ traceId?: string | undefined;
592
+ parentSpanId?: string | undefined;
593
+ } | undefined;
594
+ }, {
595
+ requestContext?: Record<string, unknown> | undefined;
596
+ tracingOptions?: {
597
+ metadata?: Record<string, unknown> | undefined;
598
+ requestContextKeys?: string[] | undefined;
599
+ traceId?: string | undefined;
600
+ parentSpanId?: string | undefined;
601
+ } | undefined;
602
+ }>>, {
603
+ status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed";
604
+ error?: unknown;
605
+ result?: unknown;
606
+ }, "json">;
607
+ export declare const RESTART_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
608
+ workflowId: import("zod").ZodString;
609
+ }, "strip", import("zod").ZodTypeAny, {
610
+ workflowId: string;
611
+ }, {
612
+ workflowId: string;
613
+ }>, import("zod").ZodObject<{
614
+ runId: import("zod").ZodString;
615
+ }, "strip", import("zod").ZodTypeAny, {
616
+ runId: string;
617
+ }, {
618
+ runId: string;
619
+ }>, import("zod").ZodObject<{
620
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
621
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
622
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
623
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
624
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
625
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
626
+ }, "strip", import("zod").ZodTypeAny, {
627
+ metadata?: Record<string, unknown> | undefined;
628
+ requestContextKeys?: string[] | undefined;
629
+ traceId?: string | undefined;
630
+ parentSpanId?: string | undefined;
631
+ }, {
632
+ metadata?: Record<string, unknown> | undefined;
633
+ requestContextKeys?: string[] | undefined;
634
+ traceId?: string | undefined;
635
+ parentSpanId?: string | undefined;
636
+ }>>;
637
+ }, "strip", import("zod").ZodTypeAny, {
638
+ requestContext?: Record<string, unknown> | undefined;
639
+ tracingOptions?: {
640
+ metadata?: Record<string, unknown> | undefined;
641
+ requestContextKeys?: string[] | undefined;
642
+ traceId?: string | undefined;
643
+ parentSpanId?: string | undefined;
644
+ } | undefined;
645
+ }, {
646
+ requestContext?: Record<string, unknown> | undefined;
647
+ tracingOptions?: {
648
+ metadata?: Record<string, unknown> | undefined;
649
+ requestContextKeys?: string[] | undefined;
650
+ traceId?: string | undefined;
651
+ parentSpanId?: string | undefined;
652
+ } | undefined;
653
+ }>>, {
86
654
  message: string;
87
- }>;
655
+ }, "json">;
656
+ export declare const RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ASYNC_ROUTE: import("../server-adapter").ServerRoute<{
657
+ workflowId: string;
658
+ }, {
659
+ message: string;
660
+ }, "json">;
661
+ export declare const RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ROUTE: import("../server-adapter").ServerRoute<{
662
+ workflowId: string;
663
+ }, {
664
+ message: string;
665
+ }, "json">;
666
+ export declare const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
667
+ workflowId: import("zod").ZodString;
668
+ }, "strip", import("zod").ZodTypeAny, {
669
+ workflowId: string;
670
+ }, {
671
+ workflowId: string;
672
+ }>, import("zod").ZodObject<{
673
+ runId: import("zod").ZodString;
674
+ }, "strip", import("zod").ZodTypeAny, {
675
+ runId: string;
676
+ }, {
677
+ runId: string;
678
+ }>, import("zod").ZodObject<{
679
+ inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
680
+ resumeData: import("zod").ZodOptional<import("zod").ZodUnknown>;
681
+ initialState: import("zod").ZodOptional<import("zod").ZodUnknown>;
682
+ step: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
683
+ context: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
684
+ nestedStepsContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>>;
685
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
686
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
687
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
688
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
689
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
690
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
691
+ }, "strip", import("zod").ZodTypeAny, {
692
+ metadata?: Record<string, unknown> | undefined;
693
+ requestContextKeys?: string[] | undefined;
694
+ traceId?: string | undefined;
695
+ parentSpanId?: string | undefined;
696
+ }, {
697
+ metadata?: Record<string, unknown> | undefined;
698
+ requestContextKeys?: string[] | undefined;
699
+ traceId?: string | undefined;
700
+ parentSpanId?: string | undefined;
701
+ }>>;
702
+ }, "strip", import("zod").ZodTypeAny, {
703
+ step: string | string[];
704
+ context?: Record<string, any> | undefined;
705
+ inputData?: unknown;
706
+ initialState?: unknown;
707
+ requestContext?: Record<string, unknown> | undefined;
708
+ tracingOptions?: {
709
+ metadata?: Record<string, unknown> | undefined;
710
+ requestContextKeys?: string[] | undefined;
711
+ traceId?: string | undefined;
712
+ parentSpanId?: string | undefined;
713
+ } | undefined;
714
+ resumeData?: unknown;
715
+ nestedStepsContext?: Record<string, Record<string, any>> | undefined;
716
+ }, {
717
+ step: string | string[];
718
+ context?: Record<string, any> | undefined;
719
+ inputData?: unknown;
720
+ initialState?: unknown;
721
+ requestContext?: Record<string, unknown> | undefined;
722
+ tracingOptions?: {
723
+ metadata?: Record<string, unknown> | undefined;
724
+ requestContextKeys?: string[] | undefined;
725
+ traceId?: string | undefined;
726
+ parentSpanId?: string | undefined;
727
+ } | undefined;
728
+ resumeData?: unknown;
729
+ nestedStepsContext?: Record<string, Record<string, any>> | undefined;
730
+ }>>, {
731
+ status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed";
732
+ error?: unknown;
733
+ result?: unknown;
734
+ }, "json">;
735
+ export declare const TIME_TRAVEL_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
736
+ workflowId: import("zod").ZodString;
737
+ }, "strip", import("zod").ZodTypeAny, {
738
+ workflowId: string;
739
+ }, {
740
+ workflowId: string;
741
+ }>, import("zod").ZodObject<{
742
+ runId: import("zod").ZodString;
743
+ }, "strip", import("zod").ZodTypeAny, {
744
+ runId: string;
745
+ }, {
746
+ runId: string;
747
+ }>, import("zod").ZodObject<{
748
+ inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
749
+ resumeData: import("zod").ZodOptional<import("zod").ZodUnknown>;
750
+ initialState: import("zod").ZodOptional<import("zod").ZodUnknown>;
751
+ step: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
752
+ context: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
753
+ nestedStepsContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>>;
754
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
755
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
756
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
757
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
758
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
759
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
760
+ }, "strip", import("zod").ZodTypeAny, {
761
+ metadata?: Record<string, unknown> | undefined;
762
+ requestContextKeys?: string[] | undefined;
763
+ traceId?: string | undefined;
764
+ parentSpanId?: string | undefined;
765
+ }, {
766
+ metadata?: Record<string, unknown> | undefined;
767
+ requestContextKeys?: string[] | undefined;
768
+ traceId?: string | undefined;
769
+ parentSpanId?: string | undefined;
770
+ }>>;
771
+ }, "strip", import("zod").ZodTypeAny, {
772
+ step: string | string[];
773
+ context?: Record<string, any> | undefined;
774
+ inputData?: unknown;
775
+ initialState?: unknown;
776
+ requestContext?: Record<string, unknown> | undefined;
777
+ tracingOptions?: {
778
+ metadata?: Record<string, unknown> | undefined;
779
+ requestContextKeys?: string[] | undefined;
780
+ traceId?: string | undefined;
781
+ parentSpanId?: string | undefined;
782
+ } | undefined;
783
+ resumeData?: unknown;
784
+ nestedStepsContext?: Record<string, Record<string, any>> | undefined;
785
+ }, {
786
+ step: string | string[];
787
+ context?: Record<string, any> | undefined;
788
+ inputData?: unknown;
789
+ initialState?: unknown;
790
+ requestContext?: Record<string, unknown> | undefined;
791
+ tracingOptions?: {
792
+ metadata?: Record<string, unknown> | undefined;
793
+ requestContextKeys?: string[] | undefined;
794
+ traceId?: string | undefined;
795
+ parentSpanId?: string | undefined;
796
+ } | undefined;
797
+ resumeData?: unknown;
798
+ nestedStepsContext?: Record<string, Record<string, any>> | undefined;
799
+ }>>, {
800
+ message: string;
801
+ }, "json">;
802
+ export declare const TIME_TRAVEL_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
803
+ workflowId: import("zod").ZodString;
804
+ }, "strip", import("zod").ZodTypeAny, {
805
+ workflowId: string;
806
+ }, {
807
+ workflowId: string;
808
+ }>, import("zod").ZodObject<{
809
+ runId: import("zod").ZodString;
810
+ }, "strip", import("zod").ZodTypeAny, {
811
+ runId: string;
812
+ }, {
813
+ runId: string;
814
+ }>, import("zod").ZodObject<{
815
+ inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
816
+ resumeData: import("zod").ZodOptional<import("zod").ZodUnknown>;
817
+ initialState: import("zod").ZodOptional<import("zod").ZodUnknown>;
818
+ step: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
819
+ context: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
820
+ nestedStepsContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>>;
821
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
822
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
823
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
824
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
825
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
826
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
827
+ }, "strip", import("zod").ZodTypeAny, {
828
+ metadata?: Record<string, unknown> | undefined;
829
+ requestContextKeys?: string[] | undefined;
830
+ traceId?: string | undefined;
831
+ parentSpanId?: string | undefined;
832
+ }, {
833
+ metadata?: Record<string, unknown> | undefined;
834
+ requestContextKeys?: string[] | undefined;
835
+ traceId?: string | undefined;
836
+ parentSpanId?: string | undefined;
837
+ }>>;
838
+ }, "strip", import("zod").ZodTypeAny, {
839
+ step: string | string[];
840
+ context?: Record<string, any> | undefined;
841
+ inputData?: unknown;
842
+ initialState?: unknown;
843
+ requestContext?: Record<string, unknown> | undefined;
844
+ tracingOptions?: {
845
+ metadata?: Record<string, unknown> | undefined;
846
+ requestContextKeys?: string[] | undefined;
847
+ traceId?: string | undefined;
848
+ parentSpanId?: string | undefined;
849
+ } | undefined;
850
+ resumeData?: unknown;
851
+ nestedStepsContext?: Record<string, Record<string, any>> | undefined;
852
+ }, {
853
+ step: string | string[];
854
+ context?: Record<string, any> | undefined;
855
+ inputData?: unknown;
856
+ initialState?: unknown;
857
+ requestContext?: Record<string, unknown> | undefined;
858
+ tracingOptions?: {
859
+ metadata?: Record<string, unknown> | undefined;
860
+ requestContextKeys?: string[] | undefined;
861
+ traceId?: string | undefined;
862
+ parentSpanId?: string | undefined;
863
+ } | undefined;
864
+ resumeData?: unknown;
865
+ nestedStepsContext?: Record<string, Record<string, any>> | undefined;
866
+ }>>, unknown, "stream">;
867
+ export declare const CANCEL_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<{
868
+ runId: string;
869
+ workflowId: string;
870
+ }, {
871
+ message: string;
872
+ }, "json">;
873
+ export declare const STREAM_LEGACY_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
874
+ workflowId: import("zod").ZodString;
875
+ }, "strip", import("zod").ZodTypeAny, {
876
+ workflowId: string;
877
+ }, {
878
+ workflowId: string;
879
+ }>, import("zod").ZodObject<{
880
+ runId: import("zod").ZodString;
881
+ }, "strip", import("zod").ZodTypeAny, {
882
+ runId: string;
883
+ }, {
884
+ runId: string;
885
+ }>, import("zod").ZodObject<{
886
+ inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
887
+ initialState: import("zod").ZodOptional<import("zod").ZodUnknown>;
888
+ requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
889
+ tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
890
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
891
+ requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
892
+ traceId: import("zod").ZodOptional<import("zod").ZodString>;
893
+ parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
894
+ }, "strip", import("zod").ZodTypeAny, {
895
+ metadata?: Record<string, unknown> | undefined;
896
+ requestContextKeys?: string[] | undefined;
897
+ traceId?: string | undefined;
898
+ parentSpanId?: string | undefined;
899
+ }, {
900
+ metadata?: Record<string, unknown> | undefined;
901
+ requestContextKeys?: string[] | undefined;
902
+ traceId?: string | undefined;
903
+ parentSpanId?: string | undefined;
904
+ }>>;
905
+ } & {
906
+ closeOnSuspend: import("zod").ZodOptional<import("zod").ZodBoolean>;
907
+ }, "strip", import("zod").ZodTypeAny, {
908
+ inputData?: unknown;
909
+ initialState?: unknown;
910
+ requestContext?: Record<string, unknown> | undefined;
911
+ tracingOptions?: {
912
+ metadata?: Record<string, unknown> | undefined;
913
+ requestContextKeys?: string[] | undefined;
914
+ traceId?: string | undefined;
915
+ parentSpanId?: string | undefined;
916
+ } | undefined;
917
+ closeOnSuspend?: boolean | undefined;
918
+ }, {
919
+ inputData?: unknown;
920
+ initialState?: unknown;
921
+ requestContext?: Record<string, unknown> | undefined;
922
+ tracingOptions?: {
923
+ metadata?: Record<string, unknown> | undefined;
924
+ requestContextKeys?: string[] | undefined;
925
+ traceId?: string | undefined;
926
+ parentSpanId?: string | undefined;
927
+ } | undefined;
928
+ closeOnSuspend?: boolean | undefined;
929
+ }>>, any, "stream">;
930
+ export declare const OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
931
+ workflowId: import("zod").ZodString;
932
+ }, "strip", import("zod").ZodTypeAny, {
933
+ workflowId: string;
934
+ }, {
935
+ workflowId: string;
936
+ }>, import("zod").ZodObject<{
937
+ runId: import("zod").ZodString;
938
+ }, "strip", import("zod").ZodTypeAny, {
939
+ runId: string;
940
+ }, {
941
+ runId: string;
942
+ }>, undefined>, any, "stream">;
88
943
  //# sourceMappingURL=workflows.d.ts.map