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

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