@mastra/server 0.0.0-span-scorring-test-20251124132129 → 0.0.0-standard-schema-20260123120255
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1811 -32
- package/README.md +2 -2
- package/a2a/store.d.ts +1 -0
- package/auth.d.ts +1 -0
- package/dist/{chunk-SHWNNZBL.js → chunk-24SISJRB.js} +13 -17
- package/dist/chunk-24SISJRB.js.map +1 -0
- package/dist/{chunk-G7BPNX2V.js → chunk-2JNW2CLE.js} +64 -14
- package/dist/chunk-2JNW2CLE.js.map +1 -0
- package/dist/chunk-2UHOWYFV.js +184 -0
- package/dist/chunk-2UHOWYFV.js.map +1 -0
- package/dist/chunk-3W67K7YE.js +13 -0
- package/dist/chunk-3W67K7YE.js.map +1 -0
- package/dist/chunk-4HFYR562.cjs +82 -0
- package/dist/chunk-4HFYR562.cjs.map +1 -0
- package/dist/chunk-55TH4ME5.js +170 -0
- package/dist/chunk-55TH4ME5.js.map +1 -0
- package/dist/{chunk-Z36N2OQA.cjs → chunk-55XIQCGI.cjs} +358 -137
- package/dist/chunk-55XIQCGI.cjs.map +1 -0
- package/dist/{chunk-QGWCNTG6.cjs → chunk-5NQ3GWUJ.cjs} +493 -172
- package/dist/chunk-5NQ3GWUJ.cjs.map +1 -0
- package/dist/{chunk-QU6N55W6.cjs → chunk-6G2RQWKA.cjs} +17 -21
- package/dist/chunk-6G2RQWKA.cjs.map +1 -0
- package/dist/{chunk-KB5NSROG.cjs → chunk-6NLJ5YC3.cjs} +47 -42
- package/dist/chunk-6NLJ5YC3.cjs.map +1 -0
- package/dist/chunk-6OFKRQQL.js +45 -0
- package/dist/chunk-6OFKRQQL.js.map +1 -0
- package/dist/{chunk-UXGQZUYZ.js → chunk-7AINN3FK.js} +13 -3
- package/dist/chunk-7AINN3FK.js.map +1 -0
- package/dist/chunk-7D3UAMQM.cjs +82 -0
- package/dist/chunk-7D3UAMQM.cjs.map +1 -0
- package/dist/{chunk-I5VZ5SKG.js → chunk-7ERB6H6K.js} +17 -11
- package/dist/chunk-7ERB6H6K.js.map +1 -0
- package/dist/{chunk-NDFAQBQD.cjs → chunk-AEMLCRS5.cjs} +514 -166
- package/dist/chunk-AEMLCRS5.cjs.map +1 -0
- package/dist/chunk-BLCHLNBT.js +442 -0
- package/dist/chunk-BLCHLNBT.js.map +1 -0
- package/dist/{chunk-ZLRTFRL4.js → chunk-BSOLG32W.js} +407 -91
- package/dist/chunk-BSOLG32W.js.map +1 -0
- package/dist/{chunk-ASZUOBKV.js → chunk-CQUWREB2.js} +42 -20
- package/dist/chunk-CQUWREB2.js.map +1 -0
- package/dist/chunk-CRCXQW5R.cjs +47 -0
- package/dist/chunk-CRCXQW5R.cjs.map +1 -0
- package/dist/{chunk-3R5EV3HV.js → chunk-CT7S7VRG.js} +36 -29
- package/dist/chunk-CT7S7VRG.js.map +1 -0
- package/dist/{chunk-FAQICBMH.js → chunk-D23WBCJ6.js} +70 -7
- package/dist/chunk-D23WBCJ6.js.map +1 -0
- package/dist/{chunk-R4M3BSUG.js → chunk-DOU5IGJB.js} +26 -10
- package/dist/chunk-DOU5IGJB.js.map +1 -0
- package/dist/chunk-DUTGH2DM.js +31748 -0
- package/dist/chunk-DUTGH2DM.js.map +1 -0
- package/dist/{chunk-5PONYNYP.cjs → chunk-E2SZSFGZ.cjs} +20 -17
- package/dist/chunk-E2SZSFGZ.cjs.map +1 -0
- package/dist/chunk-EH45MGLR.cjs +322 -0
- package/dist/chunk-EH45MGLR.cjs.map +1 -0
- package/dist/chunk-FRRHYZR6.cjs +88 -0
- package/dist/chunk-FRRHYZR6.cjs.map +1 -0
- package/dist/{chunk-ZULZ2752.js → chunk-FXW7MD4U.js} +3 -3
- package/dist/chunk-FXW7MD4U.js.map +1 -0
- package/dist/{chunk-YJ3VDL3Z.cjs → chunk-GGAV65A7.cjs} +37 -31
- package/dist/chunk-GGAV65A7.cjs.map +1 -0
- package/dist/{chunk-PKRHEXX7.js → chunk-HT4LP3BO.js} +19 -18
- package/dist/chunk-HT4LP3BO.js.map +1 -0
- package/dist/chunk-HZINLMHL.cjs +252 -0
- package/dist/chunk-HZINLMHL.cjs.map +1 -0
- package/dist/{chunk-RQK4FQUD.js → chunk-IGXRQWNN.js} +6 -48
- package/dist/chunk-IGXRQWNN.js.map +1 -0
- package/dist/chunk-IROUDQSO.js +246 -0
- package/dist/chunk-IROUDQSO.js.map +1 -0
- package/dist/chunk-IS3HHGL4.js +250 -0
- package/dist/chunk-IS3HHGL4.js.map +1 -0
- package/dist/chunk-JJLEVKG7.js +576 -0
- package/dist/chunk-JJLEVKG7.js.map +1 -0
- package/dist/{chunk-UJNHKFBR.cjs → chunk-K34R4R2T.cjs} +72 -6
- package/dist/chunk-K34R4R2T.cjs.map +1 -0
- package/dist/chunk-K4HSW5ZF.js +77 -0
- package/dist/chunk-K4HSW5ZF.js.map +1 -0
- package/dist/{chunk-ZODCSH2W.cjs → chunk-L2U75ERO.cjs} +54 -32
- package/dist/chunk-L2U75ERO.cjs.map +1 -0
- package/dist/chunk-L2VZFGWH.cjs +31787 -0
- package/dist/chunk-L2VZFGWH.cjs.map +1 -0
- package/dist/chunk-L7LB66KK.cjs +450 -0
- package/dist/chunk-L7LB66KK.cjs.map +1 -0
- package/dist/chunk-LJ6YRVDI.cjs +15 -0
- package/dist/chunk-LJ6YRVDI.cjs.map +1 -0
- package/dist/{chunk-2NW6POYK.cjs → chunk-MCYD5LW7.cjs} +19 -18
- package/dist/chunk-MCYD5LW7.cjs.map +1 -0
- package/dist/{chunk-6DTV6NEW.js → chunk-MF4PZE2D.js} +11 -8
- package/dist/chunk-MF4PZE2D.js.map +1 -0
- package/dist/{chunk-35NT4TMQ.cjs → chunk-MP6TNZXA.cjs} +66 -55
- package/dist/chunk-MP6TNZXA.cjs.map +1 -0
- package/dist/chunk-MPM2W4IS.js +312 -0
- package/dist/chunk-MPM2W4IS.js.map +1 -0
- package/dist/chunk-NE4CLM6P.cjs +190 -0
- package/dist/chunk-NE4CLM6P.cjs.map +1 -0
- package/dist/chunk-NL6ELCFS.cjs +603 -0
- package/dist/chunk-NL6ELCFS.cjs.map +1 -0
- package/dist/{chunk-MWQQRVQC.cjs → chunk-OD6Y7FEM.cjs} +34 -13
- package/dist/chunk-OD6Y7FEM.cjs.map +1 -0
- package/dist/chunk-OS7SAIRA.js +250 -0
- package/dist/chunk-OS7SAIRA.js.map +1 -0
- package/dist/chunk-PWXUI3OG.cjs +252 -0
- package/dist/chunk-PWXUI3OG.cjs.map +1 -0
- package/dist/{chunk-UOFV2ZCI.js → chunk-QAXO2LQT.js} +316 -96
- package/dist/chunk-QAXO2LQT.js.map +1 -0
- package/dist/chunk-RIX6WEJ2.js +83 -0
- package/dist/chunk-RIX6WEJ2.js.map +1 -0
- package/dist/{chunk-FXDZLX2Y.js → chunk-RRVA4RVW.js} +37 -26
- package/dist/chunk-RRVA4RVW.js.map +1 -0
- package/dist/{chunk-LPM6BBAX.cjs → chunk-SLDAFSKJ.cjs} +5 -56
- package/dist/chunk-SLDAFSKJ.cjs.map +1 -0
- package/dist/{chunk-2PLXW4ZX.cjs → chunk-T6YYVQHJ.cjs} +74 -74
- package/dist/chunk-T6YYVQHJ.cjs.map +1 -0
- package/dist/chunk-TF4LSD27.cjs +180 -0
- package/dist/chunk-TF4LSD27.cjs.map +1 -0
- package/dist/chunk-TM6IOINJ.cjs +252 -0
- package/dist/chunk-TM6IOINJ.cjs.map +1 -0
- package/dist/{chunk-ICANWSEW.js → chunk-UVE6SV6I.js} +25 -20
- package/dist/chunk-UVE6SV6I.js.map +1 -0
- package/dist/{chunk-V5WWQN7P.cjs → chunk-UWYAL2Z3.cjs} +13 -2
- package/dist/chunk-UWYAL2Z3.cjs.map +1 -0
- package/dist/{chunk-UZ6CYAOG.cjs → chunk-VES6QKOW.cjs} +64 -14
- package/dist/chunk-VES6QKOW.cjs.map +1 -0
- package/dist/{chunk-VQAT5HX6.js → chunk-W7HAZD2A.js} +458 -116
- package/dist/chunk-W7HAZD2A.js.map +1 -0
- package/dist/{chunk-4ECGVOJZ.cjs → chunk-WNQUNLRT.cjs} +40 -33
- package/dist/chunk-WNQUNLRT.cjs.map +1 -0
- package/dist/chunk-XKLJYRAA.js +77 -0
- package/dist/chunk-XKLJYRAA.js.map +1 -0
- package/dist/{dist-G2BYZJOC.cjs → dist-2GQKYJ34.cjs} +28 -28
- package/dist/dist-2GQKYJ34.cjs.map +1 -0
- package/dist/{dist-X7XR3M3Z.js → dist-C6BUHOEE.js} +3 -3
- package/dist/dist-C6BUHOEE.js.map +1 -0
- package/dist/dist-DGOEFPQD.cjs +16 -0
- package/dist/{dist-P4MXBQ3U.cjs.map → dist-DGOEFPQD.cjs.map} +1 -1
- package/dist/dist-FT2OR7OS.js +3 -0
- package/dist/{dist-YREX2TJT.js.map → dist-FT2OR7OS.js.map} +1 -1
- package/dist/{dist-XVBSOGFK.js → dist-G4CR4WYY.js} +3 -3
- package/dist/dist-G4CR4WYY.js.map +1 -0
- package/dist/{dist-PQZUVLPC.js → dist-G5QFRYLQ.js} +3 -3
- package/dist/dist-G5QFRYLQ.js.map +1 -0
- package/dist/{dist-4MVGNSRL.cjs → dist-JPQK5S4K.cjs} +20 -20
- package/dist/dist-JPQK5S4K.cjs.map +1 -0
- package/dist/{dist-R7WYX6LC.js → dist-MIDN25GT.js} +3 -3
- package/dist/dist-MIDN25GT.js.map +1 -0
- package/dist/{dist-RFMYFILX.cjs → dist-SNKH6NS2.cjs} +30 -30
- package/dist/dist-SNKH6NS2.cjs.map +1 -0
- package/dist/{dist-FZYCV3VB.cjs → dist-XBQPKAO4.cjs} +26 -26
- package/dist/dist-XBQPKAO4.cjs.map +1 -0
- package/dist/docs/README.md +31 -0
- package/dist/docs/SKILL.md +32 -0
- package/dist/docs/SOURCE_MAP.json +6 -0
- package/dist/docs/server/01-custom-adapters.md +380 -0
- package/dist/docs/server/02-reference.md +819 -0
- package/dist/server/auth/defaults.d.ts +3 -0
- package/dist/server/auth/defaults.d.ts.map +1 -0
- package/dist/server/auth/helpers.d.ts +14 -0
- package/dist/server/auth/helpers.d.ts.map +1 -0
- package/dist/server/auth/index.cjs +44 -0
- package/dist/server/auth/index.cjs.map +1 -0
- package/dist/server/auth/index.d.ts +3 -0
- package/dist/server/auth/index.d.ts.map +1 -0
- package/dist/server/auth/index.js +3 -0
- package/dist/server/auth/index.js.map +1 -0
- package/dist/server/auth/path-pattern.d.ts +43 -0
- package/dist/server/auth/path-pattern.d.ts.map +1 -0
- package/dist/server/handlers/a2a.cjs +9 -9
- package/dist/server/handlers/a2a.d.ts +34 -420
- package/dist/server/handlers/a2a.d.ts.map +1 -1
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +16 -28
- package/dist/server/handlers/agent-builder.d.ts +154 -460
- package/dist/server/handlers/agent-builder.d.ts.map +1 -1
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/agent-versions.cjs +60 -0
- package/dist/server/handlers/agent-versions.cjs.map +1 -0
- package/dist/server/handlers/agent-versions.d.ts +425 -0
- package/dist/server/handlers/agent-versions.d.ts.map +1 -0
- package/dist/server/handlers/agent-versions.js +3 -0
- package/dist/server/handlers/agent-versions.js.map +1 -0
- package/dist/server/handlers/agents.cjs +43 -23
- package/dist/server/handlers/agents.d.ts +362 -2912
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/error.cjs +6 -2
- package/dist/server/handlers/error.d.ts +22 -0
- package/dist/server/handlers/error.d.ts.map +1 -1
- package/dist/server/handlers/error.js +1 -1
- package/dist/server/handlers/logs.cjs +4 -4
- package/dist/server/handlers/logs.d.ts +63 -111
- package/dist/server/handlers/logs.d.ts.map +1 -1
- package/dist/server/handlers/logs.js +1 -1
- package/dist/server/handlers/mcp.cjs +40 -0
- package/dist/server/handlers/mcp.cjs.map +1 -0
- package/dist/server/handlers/mcp.d.ts +92 -0
- package/dist/server/handlers/mcp.d.ts.map +1 -0
- package/dist/server/handlers/mcp.js +3 -0
- package/dist/server/handlers/mcp.js.map +1 -0
- package/dist/server/handlers/memory.cjs +28 -24
- package/dist/server/handlers/memory.d.ts +244 -756
- package/dist/server/handlers/memory.d.ts.map +1 -1
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/observability.cjs +7 -23
- package/dist/server/handlers/observability.d.ts +97 -114
- package/dist/server/handlers/observability.d.ts.map +1 -1
- package/dist/server/handlers/observability.js +1 -1
- package/dist/server/handlers/processors.cjs +20 -0
- package/dist/server/handlers/processors.cjs.map +1 -0
- package/dist/server/handlers/processors.d.ts +90 -0
- package/dist/server/handlers/processors.d.ts.map +1 -0
- package/dist/server/handlers/processors.js +3 -0
- package/dist/server/handlers/processors.js.map +1 -0
- package/dist/server/handlers/scores.cjs +7 -7
- package/dist/server/handlers/scores.d.ts +18 -54
- package/dist/server/handlers/scores.d.ts.map +1 -1
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/stored-agents.cjs +28 -0
- package/dist/server/handlers/stored-agents.cjs.map +1 -0
- package/dist/server/handlers/stored-agents.d.ts +214 -0
- package/dist/server/handlers/stored-agents.d.ts.map +1 -0
- package/dist/server/handlers/stored-agents.js +3 -0
- package/dist/server/handlers/stored-agents.js.map +1 -0
- package/dist/server/handlers/system.cjs +12 -0
- package/dist/server/handlers/system.cjs.map +1 -0
- package/dist/server/handlers/system.d.ts +7 -0
- package/dist/server/handlers/system.d.ts.map +1 -0
- package/dist/server/handlers/system.js +3 -0
- package/dist/server/handlers/system.js.map +1 -0
- package/dist/server/handlers/test-utils.cjs +2 -2
- package/dist/server/handlers/test-utils.cjs.map +1 -1
- package/dist/server/handlers/test-utils.d.ts +3 -3
- package/dist/server/handlers/test-utils.d.ts.map +1 -1
- package/dist/server/handlers/test-utils.js +2 -2
- package/dist/server/handlers/test-utils.js.map +1 -1
- package/dist/server/handlers/tools.cjs +6 -6
- package/dist/server/handlers/tools.d.ts +7 -36
- package/dist/server/handlers/tools.d.ts.map +1 -1
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/vector.cjs +13 -13
- package/dist/server/handlers/vector.d.ts +16 -57
- package/dist/server/handlers/vector.d.ts.map +1 -1
- package/dist/server/handlers/vector.js +1 -1
- package/dist/server/handlers/voice.cjs +8 -8
- package/dist/server/handlers/voice.d.ts +18 -56
- package/dist/server/handlers/voice.d.ts.map +1 -1
- package/dist/server/handlers/voice.js +1 -1
- package/dist/server/handlers/workflows.cjs +46 -26
- package/dist/server/handlers/workflows.d.ts +358 -533
- package/dist/server/handlers/workflows.d.ts.map +1 -1
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +36 -31
- package/dist/server/handlers.d.ts +1 -0
- package/dist/server/handlers.d.ts.map +1 -1
- package/dist/server/handlers.js +12 -11
- package/dist/server/schemas/a2a.d.ts +56 -700
- package/dist/server/schemas/a2a.d.ts.map +1 -1
- package/dist/server/schemas/agent-builder.d.ts +26 -143
- package/dist/server/schemas/agent-builder.d.ts.map +1 -1
- package/dist/server/schemas/agent-versions.d.ts +379 -0
- package/dist/server/schemas/agent-versions.d.ts.map +1 -0
- package/dist/server/schemas/agents.d.ts +152 -1031
- package/dist/server/schemas/agents.d.ts.map +1 -1
- package/dist/server/schemas/common.d.ts +37 -103
- package/dist/server/schemas/common.d.ts.map +1 -1
- package/dist/server/schemas/logs.d.ts +38 -106
- package/dist/server/schemas/logs.d.ts.map +1 -1
- package/dist/server/schemas/mcp.d.ts +91 -0
- package/dist/server/schemas/mcp.d.ts.map +1 -0
- package/dist/server/schemas/memory.d.ts +288 -831
- package/dist/server/schemas/memory.d.ts.map +1 -1
- package/dist/server/schemas/processors.d.ts +162 -0
- package/dist/server/schemas/processors.d.ts.map +1 -0
- package/dist/server/schemas/scores.d.ts +31 -213
- package/dist/server/schemas/scores.d.ts.map +1 -1
- package/dist/server/schemas/stored-agents.d.ts +274 -0
- package/dist/server/schemas/stored-agents.d.ts.map +1 -0
- package/dist/server/schemas/system.d.ts +14 -0
- package/dist/server/schemas/system.d.ts.map +1 -0
- package/dist/server/schemas/vectors.d.ts +21 -81
- package/dist/server/schemas/vectors.d.ts.map +1 -1
- package/dist/server/schemas/workflows.d.ts +248 -382
- package/dist/server/schemas/workflows.d.ts.map +1 -1
- package/dist/server/server-adapter/index.cjs +441 -137
- package/dist/server/server-adapter/index.cjs.map +1 -1
- package/dist/server/server-adapter/index.d.ts +94 -16
- package/dist/server/server-adapter/index.d.ts.map +1 -1
- package/dist/server/server-adapter/index.js +325 -35
- package/dist/server/server-adapter/index.js.map +1 -1
- package/dist/server/server-adapter/redact.d.ts +26 -0
- package/dist/server/server-adapter/redact.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/agent-builder.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/agents.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/index.d.ts +18 -7
- package/dist/server/server-adapter/routes/index.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/mcp.d.ts +9 -0
- package/dist/server/server-adapter/routes/mcp.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/memory.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/processors.d.ts +3 -0
- package/dist/server/server-adapter/routes/processors.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/route-builder.d.ts +66 -6
- package/dist/server/server-adapter/routes/route-builder.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/stored-agents.d.ts +8 -0
- package/dist/server/server-adapter/routes/stored-agents.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/system.d.ts +12 -0
- package/dist/server/server-adapter/routes/system.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/workflows.d.ts.map +1 -1
- package/dist/server/utils.d.ts +1 -1
- package/dist/server/utils.d.ts.map +1 -1
- package/dist/{token-375W3LEI.cjs → token-6GSAFR2W-ABXTQD64-MC4IMVOB.cjs} +11 -12
- package/dist/token-6GSAFR2W-ABXTQD64-MC4IMVOB.cjs.map +1 -0
- package/dist/{token-C3IMNCC4.js → token-6GSAFR2W-ABXTQD64-Z6U2TA2C.js} +8 -9
- package/dist/token-6GSAFR2W-ABXTQD64-Z6U2TA2C.js.map +1 -0
- package/dist/token-6GSAFR2W-F2L44NEJ-B3QIV63M.cjs +63 -0
- package/dist/token-6GSAFR2W-F2L44NEJ-B3QIV63M.cjs.map +1 -0
- package/dist/token-6GSAFR2W-F2L44NEJ-GFZ37A2V.js +61 -0
- package/dist/token-6GSAFR2W-F2L44NEJ-GFZ37A2V.js.map +1 -0
- package/dist/token-6GSAFR2W-WGTMOPEU-6HSZQUFZ.cjs +63 -0
- package/dist/token-6GSAFR2W-WGTMOPEU-6HSZQUFZ.cjs.map +1 -0
- package/dist/token-6GSAFR2W-WGTMOPEU-JKP67ZX4.js +61 -0
- package/dist/token-6GSAFR2W-WGTMOPEU-JKP67ZX4.js.map +1 -0
- package/dist/token-util-NEHG7TUY-4YJ4EPCL-MBTAVIJ3.js +8 -0
- package/dist/token-util-NEHG7TUY-4YJ4EPCL-MBTAVIJ3.js.map +1 -0
- package/dist/token-util-NEHG7TUY-4YJ4EPCL-SQ4NADRW.cjs +10 -0
- package/dist/token-util-NEHG7TUY-4YJ4EPCL-SQ4NADRW.cjs.map +1 -0
- package/dist/token-util-NEHG7TUY-TV2H7N56-GGCGMPDG.js +8 -0
- package/dist/token-util-NEHG7TUY-TV2H7N56-GGCGMPDG.js.map +1 -0
- package/dist/token-util-NEHG7TUY-TV2H7N56-R7OENTCJ.cjs +10 -0
- package/dist/token-util-NEHG7TUY-TV2H7N56-R7OENTCJ.cjs.map +1 -0
- package/dist/token-util-NEHG7TUY-XQP3QSPX-BL5O5N7R.cjs +10 -0
- package/dist/token-util-NEHG7TUY-XQP3QSPX-BL5O5N7R.cjs.map +1 -0
- package/dist/token-util-NEHG7TUY-XQP3QSPX-YCJRRNXO.js +8 -0
- package/dist/token-util-NEHG7TUY-XQP3QSPX-YCJRRNXO.js.map +1 -0
- package/handlers/server/handlers.d.ts +1 -0
- package/handlers.d.ts +1 -0
- package/package.json +29 -17
- package/server-adapter.d.ts +1 -0
- package/dist/chunk-2NW6POYK.cjs.map +0 -1
- package/dist/chunk-2PLXW4ZX.cjs.map +0 -1
- package/dist/chunk-35NT4TMQ.cjs.map +0 -1
- package/dist/chunk-3R5EV3HV.js.map +0 -1
- package/dist/chunk-4ECGVOJZ.cjs.map +0 -1
- package/dist/chunk-5PONYNYP.cjs.map +0 -1
- package/dist/chunk-6BISSAIF.js +0 -23494
- package/dist/chunk-6BISSAIF.js.map +0 -1
- package/dist/chunk-6DTV6NEW.js.map +0 -1
- package/dist/chunk-AEO6IHLK.cjs +0 -368
- package/dist/chunk-AEO6IHLK.cjs.map +0 -1
- package/dist/chunk-ASZUOBKV.js.map +0 -1
- package/dist/chunk-ECIVTQ4E.js +0 -354
- package/dist/chunk-ECIVTQ4E.js.map +0 -1
- package/dist/chunk-FAQICBMH.js.map +0 -1
- package/dist/chunk-FXDZLX2Y.js.map +0 -1
- package/dist/chunk-G7BPNX2V.js.map +0 -1
- package/dist/chunk-I5VZ5SKG.js.map +0 -1
- package/dist/chunk-ICANWSEW.js.map +0 -1
- package/dist/chunk-KB5NSROG.cjs.map +0 -1
- package/dist/chunk-LPM6BBAX.cjs.map +0 -1
- package/dist/chunk-MWQQRVQC.cjs.map +0 -1
- package/dist/chunk-NDFAQBQD.cjs.map +0 -1
- package/dist/chunk-PKRHEXX7.js.map +0 -1
- package/dist/chunk-QGWCNTG6.cjs.map +0 -1
- package/dist/chunk-QU6N55W6.cjs.map +0 -1
- package/dist/chunk-R4M3BSUG.js.map +0 -1
- package/dist/chunk-RQK4FQUD.js.map +0 -1
- package/dist/chunk-SHWNNZBL.js.map +0 -1
- package/dist/chunk-TBVUN4XN.cjs +0 -23536
- package/dist/chunk-TBVUN4XN.cjs.map +0 -1
- package/dist/chunk-TOCYBDP2.js +0 -46
- package/dist/chunk-TOCYBDP2.js.map +0 -1
- package/dist/chunk-UJNHKFBR.cjs.map +0 -1
- package/dist/chunk-UOFV2ZCI.js.map +0 -1
- package/dist/chunk-UXGQZUYZ.js.map +0 -1
- package/dist/chunk-UZ6CYAOG.cjs.map +0 -1
- package/dist/chunk-V5WWQN7P.cjs.map +0 -1
- package/dist/chunk-VQAT5HX6.js.map +0 -1
- package/dist/chunk-X6C7BUWN.cjs +0 -48
- package/dist/chunk-X6C7BUWN.cjs.map +0 -1
- package/dist/chunk-YJ3VDL3Z.cjs.map +0 -1
- package/dist/chunk-Z36N2OQA.cjs.map +0 -1
- package/dist/chunk-ZLRTFRL4.js.map +0 -1
- package/dist/chunk-ZODCSH2W.cjs.map +0 -1
- package/dist/chunk-ZULZ2752.js.map +0 -1
- package/dist/dist-4MVGNSRL.cjs.map +0 -1
- package/dist/dist-FZYCV3VB.cjs.map +0 -1
- package/dist/dist-G2BYZJOC.cjs.map +0 -1
- package/dist/dist-P4MXBQ3U.cjs +0 -16
- package/dist/dist-PQZUVLPC.js.map +0 -1
- package/dist/dist-R7WYX6LC.js.map +0 -1
- package/dist/dist-RFMYFILX.cjs.map +0 -1
- package/dist/dist-X7XR3M3Z.js.map +0 -1
- package/dist/dist-XVBSOGFK.js.map +0 -1
- package/dist/dist-YREX2TJT.js +0 -3
- package/dist/server/schemas/observability.d.ts +0 -402
- package/dist/server/schemas/observability.d.ts.map +0 -1
- package/dist/token-375W3LEI.cjs.map +0 -1
- package/dist/token-C3IMNCC4.js.map +0 -1
- package/dist/token-util-CV3RRG6K.cjs +0 -9
- package/dist/token-util-CV3RRG6K.cjs.map +0 -1
- package/dist/token-util-E5QO2RCL.js +0 -7
- package/dist/token-util-E5QO2RCL.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var chunkV5WWQN7P_cjs = require('./chunk-V5WWQN7P.cjs');
|
|
3
|
+
var chunkVES6QKOW_cjs = require('./chunk-VES6QKOW.cjs');
|
|
4
|
+
var chunkOD6Y7FEM_cjs = require('./chunk-OD6Y7FEM.cjs');
|
|
5
|
+
var chunkMCYD5LW7_cjs = require('./chunk-MCYD5LW7.cjs');
|
|
6
|
+
var chunkUWYAL2Z3_cjs = require('./chunk-UWYAL2Z3.cjs');
|
|
8
7
|
var chunk64ITUOXI_cjs = require('./chunk-64ITUOXI.cjs');
|
|
8
|
+
var chunkK34R4R2T_cjs = require('./chunk-K34R4R2T.cjs');
|
|
9
9
|
var chunkO7I5CWRX_cjs = require('./chunk-O7I5CWRX.cjs');
|
|
10
10
|
var web = require('stream/web');
|
|
11
11
|
var z = require('zod');
|
|
@@ -19,23 +19,40 @@ var workflows_exports = {};
|
|
|
19
19
|
chunkO7I5CWRX_cjs.__export(workflows_exports, {
|
|
20
20
|
CANCEL_WORKFLOW_RUN_ROUTE: () => CANCEL_WORKFLOW_RUN_ROUTE,
|
|
21
21
|
CREATE_WORKFLOW_RUN_ROUTE: () => CREATE_WORKFLOW_RUN_ROUTE,
|
|
22
|
+
DELETE_WORKFLOW_RUN_BY_ID_ROUTE: () => DELETE_WORKFLOW_RUN_BY_ID_ROUTE,
|
|
22
23
|
GET_WORKFLOW_BY_ID_ROUTE: () => GET_WORKFLOW_BY_ID_ROUTE,
|
|
23
24
|
GET_WORKFLOW_RUN_BY_ID_ROUTE: () => GET_WORKFLOW_RUN_BY_ID_ROUTE,
|
|
24
|
-
GET_WORKFLOW_RUN_EXECUTION_RESULT_ROUTE: () => GET_WORKFLOW_RUN_EXECUTION_RESULT_ROUTE,
|
|
25
25
|
LIST_WORKFLOWS_ROUTE: () => LIST_WORKFLOWS_ROUTE,
|
|
26
26
|
LIST_WORKFLOW_RUNS_ROUTE: () => LIST_WORKFLOW_RUNS_ROUTE,
|
|
27
27
|
OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE: () => OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE,
|
|
28
|
-
OBSERVE_STREAM_VNEXT_WORKFLOW_ROUTE: () => OBSERVE_STREAM_VNEXT_WORKFLOW_ROUTE,
|
|
29
28
|
OBSERVE_STREAM_WORKFLOW_ROUTE: () => OBSERVE_STREAM_WORKFLOW_ROUTE,
|
|
29
|
+
RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ASYNC_ROUTE: () => RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ASYNC_ROUTE,
|
|
30
|
+
RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ROUTE: () => RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ROUTE,
|
|
31
|
+
RESTART_ASYNC_WORKFLOW_ROUTE: () => RESTART_ASYNC_WORKFLOW_ROUTE,
|
|
32
|
+
RESTART_WORKFLOW_ROUTE: () => RESTART_WORKFLOW_ROUTE,
|
|
30
33
|
RESUME_ASYNC_WORKFLOW_ROUTE: () => RESUME_ASYNC_WORKFLOW_ROUTE,
|
|
31
34
|
RESUME_STREAM_WORKFLOW_ROUTE: () => RESUME_STREAM_WORKFLOW_ROUTE,
|
|
32
35
|
RESUME_WORKFLOW_ROUTE: () => RESUME_WORKFLOW_ROUTE,
|
|
33
36
|
START_ASYNC_WORKFLOW_ROUTE: () => START_ASYNC_WORKFLOW_ROUTE,
|
|
34
37
|
START_WORKFLOW_RUN_ROUTE: () => START_WORKFLOW_RUN_ROUTE,
|
|
35
38
|
STREAM_LEGACY_WORKFLOW_ROUTE: () => STREAM_LEGACY_WORKFLOW_ROUTE,
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
STREAM_WORKFLOW_ROUTE: () => STREAM_WORKFLOW_ROUTE,
|
|
40
|
+
TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE: () => TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE,
|
|
41
|
+
TIME_TRAVEL_STREAM_WORKFLOW_ROUTE: () => TIME_TRAVEL_STREAM_WORKFLOW_ROUTE,
|
|
42
|
+
TIME_TRAVEL_WORKFLOW_ROUTE: () => TIME_TRAVEL_WORKFLOW_ROUTE
|
|
38
43
|
});
|
|
44
|
+
var workflowRunStatusSchema = z__default.default.enum([
|
|
45
|
+
"running",
|
|
46
|
+
"waiting",
|
|
47
|
+
"suspended",
|
|
48
|
+
"success",
|
|
49
|
+
"failed",
|
|
50
|
+
"canceled",
|
|
51
|
+
"pending",
|
|
52
|
+
"bailed",
|
|
53
|
+
"tripwire",
|
|
54
|
+
"paused"
|
|
55
|
+
]);
|
|
39
56
|
var workflowIdPathParams = z__default.default.object({
|
|
40
57
|
workflowId: z__default.default.string().describe("Unique identifier for the workflow")
|
|
41
58
|
});
|
|
@@ -44,7 +61,14 @@ var workflowRunPathParams = workflowIdPathParams.extend({
|
|
|
44
61
|
});
|
|
45
62
|
var serializedStepSchema = z__default.default.object({
|
|
46
63
|
id: z__default.default.string(),
|
|
47
|
-
description: z__default.default.string().optional()
|
|
64
|
+
description: z__default.default.string().optional(),
|
|
65
|
+
stateSchema: z__default.default.string().optional(),
|
|
66
|
+
inputSchema: z__default.default.string().optional(),
|
|
67
|
+
outputSchema: z__default.default.string().optional(),
|
|
68
|
+
resumeSchema: z__default.default.string().optional(),
|
|
69
|
+
suspendSchema: z__default.default.string().optional(),
|
|
70
|
+
component: z__default.default.string().optional(),
|
|
71
|
+
isWorkflow: z__default.default.boolean().optional()
|
|
48
72
|
});
|
|
49
73
|
var serializedStepFlowEntrySchema = z__default.default.object({
|
|
50
74
|
type: z__default.default.enum(["step", "sleep", "sleepUntil", "waitForEvent", "parallel", "conditional", "loop", "foreach"])
|
|
@@ -57,7 +81,9 @@ var workflowInfoSchema = z__default.default.object({
|
|
|
57
81
|
stepGraph: z__default.default.array(serializedStepFlowEntrySchema),
|
|
58
82
|
inputSchema: z__default.default.string().optional(),
|
|
59
83
|
outputSchema: z__default.default.string().optional(),
|
|
60
|
-
|
|
84
|
+
stateSchema: z__default.default.string().optional(),
|
|
85
|
+
options: z__default.default.object({}).optional(),
|
|
86
|
+
isProcessorWorkflow: z__default.default.boolean().optional()
|
|
61
87
|
});
|
|
62
88
|
var listWorkflowsResponseSchema = z__default.default.record(z__default.default.string(), workflowInfoSchema);
|
|
63
89
|
var workflowRunSchema = z__default.default.object({
|
|
@@ -72,16 +98,19 @@ var workflowRunsResponseSchema = z__default.default.object({
|
|
|
72
98
|
runs: z__default.default.array(workflowRunSchema),
|
|
73
99
|
total: z__default.default.number()
|
|
74
100
|
});
|
|
75
|
-
var
|
|
76
|
-
var listWorkflowRunsQuerySchema = chunk2NW6POYK_cjs.createOffsetPaginationSchema().extend({
|
|
101
|
+
var listWorkflowRunsQuerySchema = chunkMCYD5LW7_cjs.createCombinedPaginationSchema().extend({
|
|
77
102
|
fromDate: z__default.default.coerce.date().optional(),
|
|
78
103
|
toDate: z__default.default.coerce.date().optional(),
|
|
79
|
-
resourceId: z__default.default.string().optional()
|
|
104
|
+
resourceId: z__default.default.string().optional(),
|
|
105
|
+
status: workflowRunStatusSchema.optional()
|
|
80
106
|
});
|
|
81
107
|
var workflowExecutionBodySchema = z__default.default.object({
|
|
108
|
+
resourceId: z__default.default.string().optional(),
|
|
82
109
|
inputData: z__default.default.unknown().optional(),
|
|
110
|
+
initialState: z__default.default.unknown().optional(),
|
|
83
111
|
requestContext: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional(),
|
|
84
|
-
tracingOptions:
|
|
112
|
+
tracingOptions: chunkMCYD5LW7_cjs.tracingOptionsSchema.optional(),
|
|
113
|
+
perStep: z__default.default.boolean().optional()
|
|
85
114
|
});
|
|
86
115
|
var streamLegacyWorkflowBodySchema = workflowExecutionBodySchema;
|
|
87
116
|
var streamWorkflowBodySchema = workflowExecutionBodySchema.extend({
|
|
@@ -92,22 +121,89 @@ var resumeBodySchema = z__default.default.object({
|
|
|
92
121
|
// Optional - workflow can auto-resume all suspended steps
|
|
93
122
|
resumeData: z__default.default.unknown().optional(),
|
|
94
123
|
requestContext: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional(),
|
|
95
|
-
tracingOptions:
|
|
124
|
+
tracingOptions: chunkMCYD5LW7_cjs.tracingOptionsSchema.optional(),
|
|
125
|
+
perStep: z__default.default.boolean().optional()
|
|
126
|
+
});
|
|
127
|
+
var restartBodySchema = z__default.default.object({
|
|
128
|
+
requestContext: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional(),
|
|
129
|
+
tracingOptions: chunkMCYD5LW7_cjs.tracingOptionsSchema.optional()
|
|
130
|
+
});
|
|
131
|
+
var timeTravelBodySchema = z__default.default.object({
|
|
132
|
+
inputData: z__default.default.unknown().optional(),
|
|
133
|
+
resumeData: z__default.default.unknown().optional(),
|
|
134
|
+
initialState: z__default.default.unknown().optional(),
|
|
135
|
+
step: z__default.default.union([z__default.default.string(), z__default.default.array(z__default.default.string())]),
|
|
136
|
+
context: z__default.default.record(z__default.default.string(), z__default.default.any()).optional(),
|
|
137
|
+
nestedStepsContext: z__default.default.record(z__default.default.string(), z__default.default.record(z__default.default.string(), z__default.default.any())).optional(),
|
|
138
|
+
requestContext: z__default.default.record(z__default.default.string(), z__default.default.unknown()).optional(),
|
|
139
|
+
tracingOptions: chunkMCYD5LW7_cjs.tracingOptionsSchema.optional(),
|
|
140
|
+
perStep: z__default.default.boolean().optional()
|
|
96
141
|
});
|
|
97
142
|
var startAsyncWorkflowBodySchema = workflowExecutionBodySchema;
|
|
98
143
|
z__default.default.object({
|
|
99
144
|
event: z__default.default.string(),
|
|
100
145
|
data: z__default.default.unknown()
|
|
101
146
|
});
|
|
147
|
+
var VALID_WORKFLOW_RESULT_FIELDS = /* @__PURE__ */ new Set([
|
|
148
|
+
"result",
|
|
149
|
+
"error",
|
|
150
|
+
"payload",
|
|
151
|
+
"steps",
|
|
152
|
+
"activeStepsPath",
|
|
153
|
+
"serializedStepGraph"
|
|
154
|
+
]);
|
|
155
|
+
var WORKFLOW_RESULT_FIELDS_ERROR = "Invalid field name. Available fields: result, error, payload, steps, activeStepsPath, serializedStepGraph";
|
|
156
|
+
var createFieldsValidator = (description) => z__default.default.string().optional().refine(
|
|
157
|
+
(value) => {
|
|
158
|
+
if (!value) return true;
|
|
159
|
+
const requestedFields = value.split(",").map((f) => f.trim());
|
|
160
|
+
return requestedFields.every((field) => VALID_WORKFLOW_RESULT_FIELDS.has(field));
|
|
161
|
+
},
|
|
162
|
+
{ message: WORKFLOW_RESULT_FIELDS_ERROR }
|
|
163
|
+
).describe(description);
|
|
164
|
+
var withNestedWorkflowsField = z__default.default.enum(["true", "false"]).optional().describe("Whether to include nested workflow data in steps. Defaults to true. Set to false for better performance.");
|
|
102
165
|
var workflowExecutionResultSchema = z__default.default.object({
|
|
103
|
-
status:
|
|
166
|
+
status: workflowRunStatusSchema.optional(),
|
|
167
|
+
result: z__default.default.unknown().optional(),
|
|
168
|
+
error: z__default.default.unknown().optional(),
|
|
169
|
+
payload: z__default.default.unknown().optional(),
|
|
170
|
+
initialState: z__default.default.unknown().optional(),
|
|
171
|
+
steps: z__default.default.record(z__default.default.string(), z__default.default.any()).optional(),
|
|
172
|
+
activeStepsPath: z__default.default.record(z__default.default.string(), z__default.default.array(z__default.default.number())).optional(),
|
|
173
|
+
serializedStepGraph: z__default.default.array(serializedStepFlowEntrySchema).optional()
|
|
174
|
+
});
|
|
175
|
+
var workflowRunResultQuerySchema = z__default.default.object({
|
|
176
|
+
fields: createFieldsValidator(
|
|
177
|
+
"Comma-separated list of fields to return. Available fields: result, error, payload, steps, activeStepsPath, serializedStepGraph. Metadata fields (runId, workflowName, resourceId, createdAt, updatedAt) and status are always included."
|
|
178
|
+
),
|
|
179
|
+
withNestedWorkflows: withNestedWorkflowsField
|
|
180
|
+
});
|
|
181
|
+
var workflowRunResultSchema = z__default.default.object({
|
|
182
|
+
// Metadata - always present
|
|
183
|
+
runId: z__default.default.string(),
|
|
184
|
+
workflowName: z__default.default.string(),
|
|
185
|
+
resourceId: z__default.default.string().optional(),
|
|
186
|
+
createdAt: z__default.default.date(),
|
|
187
|
+
updatedAt: z__default.default.date(),
|
|
188
|
+
// Execution state
|
|
189
|
+
status: workflowRunStatusSchema,
|
|
190
|
+
initialState: z__default.default.record(z__default.default.string(), z__default.default.any()).optional(),
|
|
104
191
|
result: z__default.default.unknown().optional(),
|
|
105
|
-
error: z__default.default.unknown().optional()
|
|
192
|
+
error: z__default.default.unknown().optional(),
|
|
193
|
+
payload: z__default.default.unknown().optional(),
|
|
194
|
+
steps: z__default.default.record(z__default.default.string(), z__default.default.any()).optional(),
|
|
195
|
+
// Optional detailed fields
|
|
196
|
+
activeStepsPath: z__default.default.record(z__default.default.string(), z__default.default.array(z__default.default.number())).optional(),
|
|
197
|
+
serializedStepGraph: z__default.default.array(serializedStepFlowEntrySchema).optional()
|
|
106
198
|
});
|
|
107
|
-
var workflowControlResponseSchema =
|
|
199
|
+
var workflowControlResponseSchema = chunkMCYD5LW7_cjs.messageResponseSchema;
|
|
108
200
|
var createWorkflowRunResponseSchema = z__default.default.object({
|
|
109
201
|
runId: z__default.default.string()
|
|
110
202
|
});
|
|
203
|
+
var createWorkflowRunBodySchema = z__default.default.object({
|
|
204
|
+
resourceId: z__default.default.string().optional(),
|
|
205
|
+
disableScorers: z__default.default.boolean().optional()
|
|
206
|
+
});
|
|
111
207
|
|
|
112
208
|
// src/server/handlers/workflows.ts
|
|
113
209
|
async function listWorkflowsFromSystem({ mastra, workflowId }) {
|
|
@@ -116,7 +212,7 @@ async function listWorkflowsFromSystem({ mastra, workflowId }) {
|
|
|
116
212
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Workflow ID is required" });
|
|
117
213
|
}
|
|
118
214
|
let workflow;
|
|
119
|
-
workflow =
|
|
215
|
+
workflow = chunkVES6QKOW_cjs.WorkflowRegistry.getWorkflow(workflowId);
|
|
120
216
|
if (!workflow) {
|
|
121
217
|
try {
|
|
122
218
|
workflow = mastra.getWorkflowById(workflowId);
|
|
@@ -147,51 +243,57 @@ async function listWorkflowsFromSystem({ mastra, workflowId }) {
|
|
|
147
243
|
}
|
|
148
244
|
return { workflow };
|
|
149
245
|
}
|
|
150
|
-
var LIST_WORKFLOWS_ROUTE =
|
|
246
|
+
var LIST_WORKFLOWS_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
151
247
|
method: "GET",
|
|
152
|
-
path: "/
|
|
248
|
+
path: "/workflows",
|
|
153
249
|
responseType: "json",
|
|
250
|
+
queryParamSchema: z.z.object({
|
|
251
|
+
partial: z.z.string().optional()
|
|
252
|
+
}),
|
|
154
253
|
responseSchema: listWorkflowsResponseSchema,
|
|
155
254
|
summary: "List all workflows",
|
|
156
255
|
description: "Returns a list of all available workflows in the system",
|
|
157
256
|
tags: ["Workflows"],
|
|
158
|
-
|
|
257
|
+
requiresAuth: true,
|
|
258
|
+
handler: (async ({ mastra, partial }) => {
|
|
159
259
|
try {
|
|
160
260
|
const workflows = mastra.listWorkflows({ serialized: false });
|
|
261
|
+
const isPartial = partial === "true";
|
|
161
262
|
const _workflows = Object.entries(workflows).reduce((acc, [key, workflow]) => {
|
|
162
|
-
acc[key] =
|
|
263
|
+
acc[key] = chunkVES6QKOW_cjs.getWorkflowInfo(workflow, isPartial);
|
|
163
264
|
return acc;
|
|
164
265
|
}, {});
|
|
165
266
|
return _workflows;
|
|
166
267
|
} catch (error) {
|
|
167
|
-
return
|
|
268
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error getting workflows");
|
|
168
269
|
}
|
|
169
|
-
}
|
|
270
|
+
})
|
|
170
271
|
});
|
|
171
|
-
var GET_WORKFLOW_BY_ID_ROUTE =
|
|
272
|
+
var GET_WORKFLOW_BY_ID_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
172
273
|
method: "GET",
|
|
173
|
-
path: "/
|
|
274
|
+
path: "/workflows/:workflowId",
|
|
174
275
|
responseType: "json",
|
|
175
276
|
pathParamSchema: workflowIdPathParams,
|
|
176
277
|
responseSchema: workflowInfoSchema,
|
|
177
278
|
summary: "Get workflow by ID",
|
|
178
279
|
description: "Returns details for a specific workflow",
|
|
179
280
|
tags: ["Workflows"],
|
|
180
|
-
|
|
281
|
+
requiresAuth: true,
|
|
282
|
+
handler: (async ({ mastra, workflowId }) => {
|
|
181
283
|
try {
|
|
182
284
|
if (!workflowId) {
|
|
183
285
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Workflow ID is required" });
|
|
184
286
|
}
|
|
185
287
|
const { workflow } = await listWorkflowsFromSystem({ mastra, workflowId });
|
|
186
|
-
return
|
|
288
|
+
return chunkVES6QKOW_cjs.getWorkflowInfo(workflow);
|
|
187
289
|
} catch (error) {
|
|
188
|
-
return
|
|
290
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error getting workflow");
|
|
189
291
|
}
|
|
190
|
-
}
|
|
292
|
+
})
|
|
191
293
|
});
|
|
192
|
-
var LIST_WORKFLOW_RUNS_ROUTE =
|
|
294
|
+
var LIST_WORKFLOW_RUNS_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
193
295
|
method: "GET",
|
|
194
|
-
path: "/
|
|
296
|
+
path: "/workflows/:workflowId/runs",
|
|
195
297
|
responseType: "json",
|
|
196
298
|
pathParamSchema: workflowIdPathParams,
|
|
197
299
|
queryParamSchema: listWorkflowRunsQuerySchema,
|
|
@@ -199,17 +301,24 @@ var LIST_WORKFLOW_RUNS_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
|
199
301
|
summary: "List workflow runs",
|
|
200
302
|
description: "Returns a paginated list of execution runs for the specified workflow",
|
|
201
303
|
tags: ["Workflows"],
|
|
202
|
-
|
|
304
|
+
requiresAuth: true,
|
|
305
|
+
handler: (async ({ mastra, workflowId, fromDate, toDate, page, perPage, limit, offset, resourceId, status }) => {
|
|
203
306
|
try {
|
|
204
307
|
if (!workflowId) {
|
|
205
308
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Workflow ID is required" });
|
|
206
309
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
if (
|
|
210
|
-
|
|
310
|
+
let finalPage = page;
|
|
311
|
+
let finalPerPage = perPage;
|
|
312
|
+
if (finalPerPage === void 0 && limit !== void 0) {
|
|
313
|
+
finalPerPage = limit;
|
|
314
|
+
}
|
|
315
|
+
if (finalPage === void 0 && offset !== void 0 && finalPerPage !== void 0 && finalPerPage > 0) {
|
|
316
|
+
finalPage = Math.floor(offset / finalPerPage);
|
|
211
317
|
}
|
|
212
|
-
if (
|
|
318
|
+
if (finalPerPage !== void 0 && (typeof finalPerPage !== "number" || !Number.isInteger(finalPerPage) || finalPerPage <= 0)) {
|
|
319
|
+
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "perPage must be a positive integer" });
|
|
320
|
+
}
|
|
321
|
+
if (finalPage !== void 0 && (!Number.isInteger(finalPage) || finalPage < 0)) {
|
|
213
322
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "page must be a non-negative integer" });
|
|
214
323
|
}
|
|
215
324
|
const { workflow } = await listWorkflowsFromSystem({ mastra, workflowId });
|
|
@@ -219,29 +328,32 @@ var LIST_WORKFLOW_RUNS_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
|
219
328
|
const workflowRuns = await workflow.listWorkflowRuns({
|
|
220
329
|
fromDate: fromDate ? typeof fromDate === "string" ? new Date(fromDate) : fromDate : void 0,
|
|
221
330
|
toDate: toDate ? typeof toDate === "string" ? new Date(toDate) : toDate : void 0,
|
|
222
|
-
perPage,
|
|
223
|
-
page,
|
|
224
|
-
resourceId
|
|
331
|
+
perPage: finalPerPage,
|
|
332
|
+
page: finalPage,
|
|
333
|
+
resourceId,
|
|
334
|
+
status
|
|
225
335
|
}) || {
|
|
226
336
|
runs: [],
|
|
227
337
|
total: 0
|
|
228
338
|
};
|
|
229
339
|
return workflowRuns;
|
|
230
340
|
} catch (error) {
|
|
231
|
-
return
|
|
341
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error getting workflow runs");
|
|
232
342
|
}
|
|
233
|
-
}
|
|
343
|
+
})
|
|
234
344
|
});
|
|
235
|
-
var GET_WORKFLOW_RUN_BY_ID_ROUTE =
|
|
345
|
+
var GET_WORKFLOW_RUN_BY_ID_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
236
346
|
method: "GET",
|
|
237
|
-
path: "/
|
|
347
|
+
path: "/workflows/:workflowId/runs/:runId",
|
|
238
348
|
responseType: "json",
|
|
239
349
|
pathParamSchema: workflowRunPathParams,
|
|
240
|
-
|
|
350
|
+
queryParamSchema: workflowRunResultQuerySchema,
|
|
351
|
+
responseSchema: workflowRunResultSchema,
|
|
241
352
|
summary: "Get workflow run by ID",
|
|
242
|
-
description: "Returns
|
|
353
|
+
description: "Returns a workflow run with metadata and processed execution state. Use the fields query parameter to reduce payload size by requesting only specific fields (e.g., ?fields=status,result,metadata)",
|
|
243
354
|
tags: ["Workflows"],
|
|
244
|
-
|
|
355
|
+
requiresAuth: true,
|
|
356
|
+
handler: async ({ mastra, workflowId, runId, fields, withNestedWorkflows }) => {
|
|
245
357
|
try {
|
|
246
358
|
if (!workflowId) {
|
|
247
359
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Workflow ID is required" });
|
|
@@ -253,27 +365,63 @@ var GET_WORKFLOW_RUN_BY_ID_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
|
253
365
|
if (!workflow) {
|
|
254
366
|
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow not found" });
|
|
255
367
|
}
|
|
256
|
-
const
|
|
368
|
+
const fieldList = fields ? fields.split(",").map((f) => f.trim()) : void 0;
|
|
369
|
+
const run = await workflow.getWorkflowRunById(runId, {
|
|
370
|
+
withNestedWorkflows: withNestedWorkflows !== "false",
|
|
371
|
+
// Default to true unless explicitly 'false'
|
|
372
|
+
fields: fieldList
|
|
373
|
+
});
|
|
257
374
|
if (!run) {
|
|
258
375
|
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow run not found" });
|
|
259
376
|
}
|
|
260
377
|
return run;
|
|
261
378
|
} catch (error) {
|
|
262
|
-
return
|
|
379
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error getting workflow run");
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
var DELETE_WORKFLOW_RUN_BY_ID_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
384
|
+
method: "DELETE",
|
|
385
|
+
path: "/workflows/:workflowId/runs/:runId",
|
|
386
|
+
responseType: "json",
|
|
387
|
+
pathParamSchema: workflowRunPathParams,
|
|
388
|
+
responseSchema: workflowControlResponseSchema,
|
|
389
|
+
summary: "Delete workflow run by ID",
|
|
390
|
+
description: "Deletes a specific workflow run by ID",
|
|
391
|
+
tags: ["Workflows"],
|
|
392
|
+
requiresAuth: true,
|
|
393
|
+
handler: async ({ mastra, workflowId, runId }) => {
|
|
394
|
+
try {
|
|
395
|
+
if (!workflowId) {
|
|
396
|
+
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Workflow ID is required" });
|
|
397
|
+
}
|
|
398
|
+
if (!runId) {
|
|
399
|
+
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Run ID is required" });
|
|
400
|
+
}
|
|
401
|
+
const { workflow } = await listWorkflowsFromSystem({ mastra, workflowId });
|
|
402
|
+
if (!workflow) {
|
|
403
|
+
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow not found" });
|
|
404
|
+
}
|
|
405
|
+
await workflow.deleteWorkflowRunById(runId);
|
|
406
|
+
return { message: "Workflow run deleted" };
|
|
407
|
+
} catch (error) {
|
|
408
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error deleting workflow run");
|
|
263
409
|
}
|
|
264
410
|
}
|
|
265
411
|
});
|
|
266
|
-
var CREATE_WORKFLOW_RUN_ROUTE =
|
|
412
|
+
var CREATE_WORKFLOW_RUN_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
267
413
|
method: "POST",
|
|
268
|
-
path: "/
|
|
414
|
+
path: "/workflows/:workflowId/create-run",
|
|
269
415
|
responseType: "json",
|
|
270
416
|
pathParamSchema: workflowIdPathParams,
|
|
271
|
-
queryParamSchema:
|
|
417
|
+
queryParamSchema: chunkMCYD5LW7_cjs.optionalRunIdSchema,
|
|
418
|
+
bodySchema: createWorkflowRunBodySchema,
|
|
272
419
|
responseSchema: createWorkflowRunResponseSchema,
|
|
273
420
|
summary: "Create workflow run",
|
|
274
421
|
description: "Creates a new workflow execution instance with an optional custom run ID",
|
|
275
422
|
tags: ["Workflows"],
|
|
276
|
-
|
|
423
|
+
requiresAuth: true,
|
|
424
|
+
handler: async ({ mastra, workflowId, runId, resourceId, disableScorers }) => {
|
|
277
425
|
try {
|
|
278
426
|
if (!workflowId) {
|
|
279
427
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Workflow ID is required" });
|
|
@@ -282,24 +430,25 @@ var CREATE_WORKFLOW_RUN_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
|
282
430
|
if (!workflow) {
|
|
283
431
|
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow not found" });
|
|
284
432
|
}
|
|
285
|
-
const run = await workflow.createRun({ runId });
|
|
433
|
+
const run = await workflow.createRun({ runId, resourceId, disableScorers });
|
|
286
434
|
return { runId: run.runId };
|
|
287
435
|
} catch (error) {
|
|
288
|
-
return
|
|
436
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error creating workflow run");
|
|
289
437
|
}
|
|
290
438
|
}
|
|
291
439
|
});
|
|
292
|
-
var STREAM_WORKFLOW_ROUTE =
|
|
440
|
+
var STREAM_WORKFLOW_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
293
441
|
method: "POST",
|
|
294
|
-
path: "/
|
|
442
|
+
path: "/workflows/:workflowId/stream",
|
|
295
443
|
responseType: "stream",
|
|
296
444
|
pathParamSchema: workflowIdPathParams,
|
|
297
|
-
queryParamSchema:
|
|
445
|
+
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
298
446
|
bodySchema: streamWorkflowBodySchema,
|
|
299
447
|
summary: "Stream workflow execution",
|
|
300
448
|
description: "Executes a workflow and streams the results in real-time",
|
|
301
449
|
tags: ["Workflows"],
|
|
302
|
-
|
|
450
|
+
requiresAuth: true,
|
|
451
|
+
handler: async ({ mastra, workflowId, runId, resourceId, ...params }) => {
|
|
303
452
|
try {
|
|
304
453
|
if (!workflowId) {
|
|
305
454
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Workflow ID is required" });
|
|
@@ -312,7 +461,7 @@ var STREAM_WORKFLOW_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
|
312
461
|
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow not found" });
|
|
313
462
|
}
|
|
314
463
|
const serverCache = mastra.getServerCache();
|
|
315
|
-
const run = await workflow.createRun({ runId });
|
|
464
|
+
const run = await workflow.createRun({ runId, resourceId });
|
|
316
465
|
const result = run.stream(params);
|
|
317
466
|
return result.fullStream.pipeThrough(
|
|
318
467
|
new web.TransformStream({
|
|
@@ -327,33 +476,22 @@ var STREAM_WORKFLOW_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
|
327
476
|
})
|
|
328
477
|
);
|
|
329
478
|
} catch (error) {
|
|
330
|
-
return
|
|
479
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error streaming workflow");
|
|
331
480
|
}
|
|
332
481
|
}
|
|
333
482
|
});
|
|
334
|
-
var
|
|
335
|
-
method: "POST",
|
|
336
|
-
path: "/api/workflows/:workflowId/streamVNext",
|
|
337
|
-
responseType: "stream",
|
|
338
|
-
pathParamSchema: workflowIdPathParams,
|
|
339
|
-
queryParamSchema: chunk2NW6POYK_cjs.runIdSchema,
|
|
340
|
-
bodySchema: streamWorkflowBodySchema,
|
|
341
|
-
summary: "Stream workflow execution (v2)",
|
|
342
|
-
description: "Executes a workflow using the v2 streaming API and streams the results in real-time",
|
|
343
|
-
tags: ["Workflows"],
|
|
344
|
-
handler: STREAM_WORKFLOW_ROUTE.handler
|
|
345
|
-
});
|
|
346
|
-
var RESUME_STREAM_WORKFLOW_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
483
|
+
var RESUME_STREAM_WORKFLOW_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
347
484
|
method: "POST",
|
|
348
|
-
path: "/
|
|
485
|
+
path: "/workflows/:workflowId/resume-stream",
|
|
349
486
|
responseType: "stream",
|
|
350
487
|
pathParamSchema: workflowIdPathParams,
|
|
351
|
-
queryParamSchema:
|
|
488
|
+
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
352
489
|
bodySchema: resumeBodySchema,
|
|
353
|
-
responseSchema:
|
|
490
|
+
responseSchema: chunkOD6Y7FEM_cjs.streamResponseSchema,
|
|
354
491
|
summary: "Resume workflow stream",
|
|
355
492
|
description: "Resumes a suspended workflow execution and continues streaming results",
|
|
356
493
|
tags: ["Workflows"],
|
|
494
|
+
requiresAuth: true,
|
|
357
495
|
handler: async ({ mastra, workflowId, runId, ...params }) => {
|
|
358
496
|
try {
|
|
359
497
|
if (!workflowId) {
|
|
@@ -386,52 +524,22 @@ var RESUME_STREAM_WORKFLOW_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
|
386
524
|
);
|
|
387
525
|
return stream;
|
|
388
526
|
} catch (error) {
|
|
389
|
-
return
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
});
|
|
393
|
-
var GET_WORKFLOW_RUN_EXECUTION_RESULT_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
394
|
-
method: "GET",
|
|
395
|
-
path: "/api/workflows/:workflowId/runs/:runId/execution-result",
|
|
396
|
-
responseType: "json",
|
|
397
|
-
pathParamSchema: workflowRunPathParams,
|
|
398
|
-
responseSchema: workflowExecutionResultSchema,
|
|
399
|
-
summary: "Get workflow execution result",
|
|
400
|
-
description: "Returns the final execution result of a completed workflow run",
|
|
401
|
-
tags: ["Workflows"],
|
|
402
|
-
handler: async ({ mastra, workflowId, runId }) => {
|
|
403
|
-
try {
|
|
404
|
-
if (!workflowId) {
|
|
405
|
-
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Workflow ID is required" });
|
|
406
|
-
}
|
|
407
|
-
if (!runId) {
|
|
408
|
-
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Run ID is required" });
|
|
409
|
-
}
|
|
410
|
-
const { workflow } = await listWorkflowsFromSystem({ mastra, workflowId });
|
|
411
|
-
if (!workflow) {
|
|
412
|
-
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow not found" });
|
|
413
|
-
}
|
|
414
|
-
const executionResult = await workflow.getWorkflowRunExecutionResult(runId);
|
|
415
|
-
if (!executionResult) {
|
|
416
|
-
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow run execution result not found" });
|
|
417
|
-
}
|
|
418
|
-
return executionResult;
|
|
419
|
-
} catch (error) {
|
|
420
|
-
return chunkV5WWQN7P_cjs.handleError(error, "Error getting workflow run execution result");
|
|
527
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error resuming workflow");
|
|
421
528
|
}
|
|
422
529
|
}
|
|
423
530
|
});
|
|
424
|
-
var START_ASYNC_WORKFLOW_ROUTE =
|
|
531
|
+
var START_ASYNC_WORKFLOW_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
425
532
|
method: "POST",
|
|
426
|
-
path: "/
|
|
533
|
+
path: "/workflows/:workflowId/start-async",
|
|
427
534
|
responseType: "json",
|
|
428
535
|
pathParamSchema: workflowIdPathParams,
|
|
429
|
-
queryParamSchema:
|
|
536
|
+
queryParamSchema: chunkMCYD5LW7_cjs.optionalRunIdSchema,
|
|
430
537
|
bodySchema: startAsyncWorkflowBodySchema,
|
|
431
538
|
responseSchema: workflowExecutionResultSchema,
|
|
432
539
|
summary: "Start workflow asynchronously",
|
|
433
540
|
description: "Starts a workflow execution asynchronously without streaming results",
|
|
434
541
|
tags: ["Workflows"],
|
|
542
|
+
requiresAuth: true,
|
|
435
543
|
handler: async ({ mastra, workflowId, runId, ...params }) => {
|
|
436
544
|
try {
|
|
437
545
|
if (!workflowId) {
|
|
@@ -445,21 +553,22 @@ var START_ASYNC_WORKFLOW_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
|
445
553
|
const result = await _run.start(params);
|
|
446
554
|
return result;
|
|
447
555
|
} catch (error) {
|
|
448
|
-
return
|
|
556
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error starting async workflow");
|
|
449
557
|
}
|
|
450
558
|
}
|
|
451
559
|
});
|
|
452
|
-
var START_WORKFLOW_RUN_ROUTE =
|
|
560
|
+
var START_WORKFLOW_RUN_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
453
561
|
method: "POST",
|
|
454
|
-
path: "/
|
|
562
|
+
path: "/workflows/:workflowId/start",
|
|
455
563
|
responseType: "json",
|
|
456
564
|
pathParamSchema: workflowIdPathParams,
|
|
457
|
-
queryParamSchema:
|
|
565
|
+
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
458
566
|
bodySchema: startAsyncWorkflowBodySchema,
|
|
459
567
|
responseSchema: workflowControlResponseSchema,
|
|
460
568
|
summary: "Start specific workflow run",
|
|
461
569
|
description: "Starts execution of a specific workflow run by ID",
|
|
462
570
|
tags: ["Workflows"],
|
|
571
|
+
requiresAuth: true,
|
|
463
572
|
handler: async ({ mastra, workflowId, runId, ...params }) => {
|
|
464
573
|
try {
|
|
465
574
|
if (!workflowId) {
|
|
@@ -482,20 +591,21 @@ var START_WORKFLOW_RUN_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
|
482
591
|
});
|
|
483
592
|
return { message: "Workflow run started" };
|
|
484
593
|
} catch (e) {
|
|
485
|
-
return
|
|
594
|
+
return chunkUWYAL2Z3_cjs.handleError(e, "Error starting workflow run");
|
|
486
595
|
}
|
|
487
596
|
}
|
|
488
597
|
});
|
|
489
|
-
var OBSERVE_STREAM_WORKFLOW_ROUTE =
|
|
598
|
+
var OBSERVE_STREAM_WORKFLOW_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
490
599
|
method: "POST",
|
|
491
|
-
path: "/
|
|
600
|
+
path: "/workflows/:workflowId/observe",
|
|
492
601
|
responseType: "stream",
|
|
493
602
|
pathParamSchema: workflowIdPathParams,
|
|
494
|
-
queryParamSchema:
|
|
495
|
-
responseSchema:
|
|
603
|
+
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
604
|
+
responseSchema: chunkOD6Y7FEM_cjs.streamResponseSchema,
|
|
496
605
|
summary: "Observe workflow stream",
|
|
497
606
|
description: "Observes and streams updates from an already running workflow execution",
|
|
498
607
|
tags: ["Workflows"],
|
|
608
|
+
requiresAuth: true,
|
|
499
609
|
handler: async ({ mastra, workflowId, runId }) => {
|
|
500
610
|
try {
|
|
501
611
|
if (!workflowId) {
|
|
@@ -552,33 +662,22 @@ var OBSERVE_STREAM_WORKFLOW_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
|
552
662
|
});
|
|
553
663
|
return combinedStream;
|
|
554
664
|
} catch (error) {
|
|
555
|
-
return
|
|
665
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error observing workflow stream");
|
|
556
666
|
}
|
|
557
667
|
}
|
|
558
668
|
});
|
|
559
|
-
var
|
|
560
|
-
method: "POST",
|
|
561
|
-
path: "/api/workflows/:workflowId/observe-streamVNext",
|
|
562
|
-
responseType: "stream",
|
|
563
|
-
pathParamSchema: workflowIdPathParams,
|
|
564
|
-
queryParamSchema: chunk2NW6POYK_cjs.runIdSchema,
|
|
565
|
-
responseSchema: chunkMWQQRVQC_cjs.streamResponseSchema,
|
|
566
|
-
summary: "Observe workflow stream (v2)",
|
|
567
|
-
description: "Observes and streams updates from an already running workflow execution using v2 streaming API",
|
|
568
|
-
tags: ["Workflows"],
|
|
569
|
-
handler: OBSERVE_STREAM_WORKFLOW_ROUTE.handler
|
|
570
|
-
});
|
|
571
|
-
var RESUME_ASYNC_WORKFLOW_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
669
|
+
var RESUME_ASYNC_WORKFLOW_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
572
670
|
method: "POST",
|
|
573
|
-
path: "/
|
|
671
|
+
path: "/workflows/:workflowId/resume-async",
|
|
574
672
|
responseType: "json",
|
|
575
673
|
pathParamSchema: workflowIdPathParams,
|
|
576
|
-
queryParamSchema:
|
|
674
|
+
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
577
675
|
bodySchema: resumeBodySchema,
|
|
578
676
|
responseSchema: workflowExecutionResultSchema,
|
|
579
677
|
summary: "Resume workflow asynchronously",
|
|
580
678
|
description: "Resumes a suspended workflow execution asynchronously without streaming",
|
|
581
679
|
tags: ["Workflows"],
|
|
680
|
+
requiresAuth: true,
|
|
582
681
|
handler: async ({ mastra, workflowId, runId, ...params }) => {
|
|
583
682
|
try {
|
|
584
683
|
if (!workflowId) {
|
|
@@ -599,21 +698,22 @@ var RESUME_ASYNC_WORKFLOW_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
|
599
698
|
const result = await _run.resume(params);
|
|
600
699
|
return result;
|
|
601
700
|
} catch (error) {
|
|
602
|
-
return
|
|
701
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error resuming workflow step");
|
|
603
702
|
}
|
|
604
703
|
}
|
|
605
704
|
});
|
|
606
|
-
var RESUME_WORKFLOW_ROUTE =
|
|
705
|
+
var RESUME_WORKFLOW_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
607
706
|
method: "POST",
|
|
608
|
-
path: "/
|
|
707
|
+
path: "/workflows/:workflowId/resume",
|
|
609
708
|
responseType: "json",
|
|
610
709
|
pathParamSchema: workflowIdPathParams,
|
|
611
|
-
queryParamSchema:
|
|
710
|
+
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
612
711
|
bodySchema: resumeBodySchema,
|
|
613
712
|
responseSchema: workflowControlResponseSchema,
|
|
614
713
|
summary: "Resume workflow",
|
|
615
714
|
description: "Resumes a suspended workflow execution from a specific step",
|
|
616
715
|
tags: ["Workflows"],
|
|
716
|
+
requiresAuth: true,
|
|
617
717
|
handler: async ({ mastra, workflowId, runId, ...params }) => {
|
|
618
718
|
try {
|
|
619
719
|
if (!workflowId) {
|
|
@@ -634,19 +734,259 @@ var RESUME_WORKFLOW_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
|
634
734
|
void _run.resume(params);
|
|
635
735
|
return { message: "Workflow run resumed" };
|
|
636
736
|
} catch (error) {
|
|
637
|
-
return
|
|
737
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error resuming workflow");
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
var RESTART_ASYNC_WORKFLOW_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
742
|
+
method: "POST",
|
|
743
|
+
path: "/workflows/:workflowId/restart-async",
|
|
744
|
+
responseType: "json",
|
|
745
|
+
pathParamSchema: workflowIdPathParams,
|
|
746
|
+
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
747
|
+
bodySchema: restartBodySchema,
|
|
748
|
+
responseSchema: workflowExecutionResultSchema,
|
|
749
|
+
summary: "Restart workflow asynchronously",
|
|
750
|
+
description: "Restarts an active workflow execution asynchronously",
|
|
751
|
+
tags: ["Workflows"],
|
|
752
|
+
requiresAuth: true,
|
|
753
|
+
handler: async ({ mastra, workflowId, runId, ...params }) => {
|
|
754
|
+
try {
|
|
755
|
+
if (!workflowId) {
|
|
756
|
+
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Workflow ID is required" });
|
|
757
|
+
}
|
|
758
|
+
if (!runId) {
|
|
759
|
+
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "runId required to restart workflow" });
|
|
760
|
+
}
|
|
761
|
+
const { workflow } = await listWorkflowsFromSystem({ mastra, workflowId });
|
|
762
|
+
if (!workflow) {
|
|
763
|
+
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow not found" });
|
|
764
|
+
}
|
|
765
|
+
const run = await workflow.getWorkflowRunById(runId);
|
|
766
|
+
if (!run) {
|
|
767
|
+
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow run not found" });
|
|
768
|
+
}
|
|
769
|
+
const _run = await workflow.createRun({ runId, resourceId: run.resourceId });
|
|
770
|
+
const result = await _run.restart(params);
|
|
771
|
+
return result;
|
|
772
|
+
} catch (error) {
|
|
773
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error restarting workflow");
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
});
|
|
777
|
+
var RESTART_WORKFLOW_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
778
|
+
method: "POST",
|
|
779
|
+
path: "/workflows/:workflowId/restart",
|
|
780
|
+
responseType: "json",
|
|
781
|
+
pathParamSchema: workflowIdPathParams,
|
|
782
|
+
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
783
|
+
bodySchema: restartBodySchema,
|
|
784
|
+
responseSchema: workflowControlResponseSchema,
|
|
785
|
+
summary: "Restart workflow",
|
|
786
|
+
description: "Restarts an active workflow execution",
|
|
787
|
+
tags: ["Workflows"],
|
|
788
|
+
requiresAuth: true,
|
|
789
|
+
handler: async ({ mastra, workflowId, runId, ...params }) => {
|
|
790
|
+
try {
|
|
791
|
+
if (!workflowId) {
|
|
792
|
+
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Workflow ID is required" });
|
|
793
|
+
}
|
|
794
|
+
if (!runId) {
|
|
795
|
+
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "runId required to restart workflow" });
|
|
796
|
+
}
|
|
797
|
+
const { workflow } = await listWorkflowsFromSystem({ mastra, workflowId });
|
|
798
|
+
if (!workflow) {
|
|
799
|
+
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow not found" });
|
|
800
|
+
}
|
|
801
|
+
const run = await workflow.getWorkflowRunById(runId);
|
|
802
|
+
if (!run) {
|
|
803
|
+
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow run not found" });
|
|
804
|
+
}
|
|
805
|
+
const _run = await workflow.createRun({ runId, resourceId: run.resourceId });
|
|
806
|
+
void _run.restart(params);
|
|
807
|
+
return { message: "Workflow run restarted" };
|
|
808
|
+
} catch (error) {
|
|
809
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error restarting workflow");
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
});
|
|
813
|
+
var RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ASYNC_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
814
|
+
method: "POST",
|
|
815
|
+
path: "/workflows/:workflowId/restart-all-active-workflow-runs-async",
|
|
816
|
+
responseType: "json",
|
|
817
|
+
pathParamSchema: workflowIdPathParams,
|
|
818
|
+
responseSchema: workflowControlResponseSchema,
|
|
819
|
+
summary: "Restart all active workflow runs asynchronously",
|
|
820
|
+
description: "Restarts all active workflow runs asynchronously",
|
|
821
|
+
tags: ["Workflows"],
|
|
822
|
+
requiresAuth: true,
|
|
823
|
+
handler: async ({ mastra, workflowId }) => {
|
|
824
|
+
try {
|
|
825
|
+
if (!workflowId) {
|
|
826
|
+
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Workflow ID is required" });
|
|
827
|
+
}
|
|
828
|
+
const { workflow } = await listWorkflowsFromSystem({ mastra, workflowId });
|
|
829
|
+
if (!workflow) {
|
|
830
|
+
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow not found" });
|
|
831
|
+
}
|
|
832
|
+
await workflow.restartAllActiveWorkflowRuns();
|
|
833
|
+
return { message: "All active workflow runs restarted" };
|
|
834
|
+
} catch (error) {
|
|
835
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error restarting workflow");
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
});
|
|
839
|
+
var RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
840
|
+
method: "POST",
|
|
841
|
+
path: "/workflows/:workflowId/restart-all-active-workflow-runs",
|
|
842
|
+
responseType: "json",
|
|
843
|
+
pathParamSchema: workflowIdPathParams,
|
|
844
|
+
responseSchema: workflowControlResponseSchema,
|
|
845
|
+
summary: "Restart all active workflow runs",
|
|
846
|
+
description: "Restarts all active workflow runs",
|
|
847
|
+
tags: ["Workflows"],
|
|
848
|
+
requiresAuth: true,
|
|
849
|
+
handler: async ({ mastra, workflowId }) => {
|
|
850
|
+
try {
|
|
851
|
+
if (!workflowId) {
|
|
852
|
+
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Workflow ID is required" });
|
|
853
|
+
}
|
|
854
|
+
const { workflow } = await listWorkflowsFromSystem({ mastra, workflowId });
|
|
855
|
+
if (!workflow) {
|
|
856
|
+
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow not found" });
|
|
857
|
+
}
|
|
858
|
+
void workflow.restartAllActiveWorkflowRuns();
|
|
859
|
+
return { message: "All active workflow runs restarted" };
|
|
860
|
+
} catch (error) {
|
|
861
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error restarting workflow");
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
});
|
|
865
|
+
var TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
866
|
+
method: "POST",
|
|
867
|
+
path: "/workflows/:workflowId/time-travel-async",
|
|
868
|
+
responseType: "json",
|
|
869
|
+
pathParamSchema: workflowIdPathParams,
|
|
870
|
+
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
871
|
+
bodySchema: timeTravelBodySchema,
|
|
872
|
+
responseSchema: workflowExecutionResultSchema,
|
|
873
|
+
summary: "Time travel workflow asynchronously",
|
|
874
|
+
description: "Time travels a workflow run asynchronously without streaming",
|
|
875
|
+
tags: ["Workflows"],
|
|
876
|
+
requiresAuth: true,
|
|
877
|
+
handler: async ({ mastra, workflowId, runId, ...params }) => {
|
|
878
|
+
try {
|
|
879
|
+
if (!workflowId) {
|
|
880
|
+
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Workflow ID is required" });
|
|
881
|
+
}
|
|
882
|
+
if (!runId) {
|
|
883
|
+
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "runId required to time travel workflow" });
|
|
884
|
+
}
|
|
885
|
+
const { workflow } = await listWorkflowsFromSystem({ mastra, workflowId });
|
|
886
|
+
if (!workflow) {
|
|
887
|
+
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow not found" });
|
|
888
|
+
}
|
|
889
|
+
const run = await workflow.getWorkflowRunById(runId);
|
|
890
|
+
if (!run) {
|
|
891
|
+
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow run not found" });
|
|
892
|
+
}
|
|
893
|
+
const _run = await workflow.createRun({ runId, resourceId: run.resourceId });
|
|
894
|
+
const result = await _run.timeTravel(params);
|
|
895
|
+
return result;
|
|
896
|
+
} catch (error) {
|
|
897
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error time traveling workflow");
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
});
|
|
901
|
+
var TIME_TRAVEL_WORKFLOW_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
902
|
+
method: "POST",
|
|
903
|
+
path: "/workflows/:workflowId/time-travel",
|
|
904
|
+
responseType: "json",
|
|
905
|
+
pathParamSchema: workflowIdPathParams,
|
|
906
|
+
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
907
|
+
bodySchema: timeTravelBodySchema,
|
|
908
|
+
responseSchema: workflowControlResponseSchema,
|
|
909
|
+
summary: "Time travel workflow",
|
|
910
|
+
description: "Time travels a workflow run, starting from a specific step",
|
|
911
|
+
tags: ["Workflows"],
|
|
912
|
+
requiresAuth: true,
|
|
913
|
+
handler: async ({ mastra, workflowId, runId, ...params }) => {
|
|
914
|
+
try {
|
|
915
|
+
if (!workflowId) {
|
|
916
|
+
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Workflow ID is required" });
|
|
917
|
+
}
|
|
918
|
+
if (!runId) {
|
|
919
|
+
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "runId required to time travel workflow" });
|
|
920
|
+
}
|
|
921
|
+
const { workflow } = await listWorkflowsFromSystem({ mastra, workflowId });
|
|
922
|
+
if (!workflow) {
|
|
923
|
+
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow not found" });
|
|
924
|
+
}
|
|
925
|
+
const run = await workflow.getWorkflowRunById(runId);
|
|
926
|
+
if (!run) {
|
|
927
|
+
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow run not found" });
|
|
928
|
+
}
|
|
929
|
+
const _run = await workflow.createRun({ runId, resourceId: run.resourceId });
|
|
930
|
+
void _run.timeTravel(params);
|
|
931
|
+
return { message: "Workflow run time travel started" };
|
|
932
|
+
} catch (error) {
|
|
933
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error time traveling workflow");
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
});
|
|
937
|
+
var TIME_TRAVEL_STREAM_WORKFLOW_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
938
|
+
method: "POST",
|
|
939
|
+
path: "/workflows/:workflowId/time-travel-stream",
|
|
940
|
+
responseType: "stream",
|
|
941
|
+
pathParamSchema: workflowIdPathParams,
|
|
942
|
+
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
943
|
+
bodySchema: timeTravelBodySchema,
|
|
944
|
+
summary: "Time travel workflow stream",
|
|
945
|
+
description: "Time travels a workflow run, starting from a specific step, and streams the results in real-time",
|
|
946
|
+
tags: ["Workflows"],
|
|
947
|
+
requiresAuth: true,
|
|
948
|
+
handler: async ({ mastra, workflowId, runId, ...params }) => {
|
|
949
|
+
try {
|
|
950
|
+
if (!workflowId) {
|
|
951
|
+
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "Workflow ID is required" });
|
|
952
|
+
}
|
|
953
|
+
if (!runId) {
|
|
954
|
+
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: "runId required to time travel workflow stream" });
|
|
955
|
+
}
|
|
956
|
+
const { workflow } = await listWorkflowsFromSystem({ mastra, workflowId });
|
|
957
|
+
if (!workflow) {
|
|
958
|
+
throw new chunk64ITUOXI_cjs.HTTPException(404, { message: "Workflow not found" });
|
|
959
|
+
}
|
|
960
|
+
const serverCache = mastra.getServerCache();
|
|
961
|
+
const run = await workflow.createRun({ runId });
|
|
962
|
+
const result = run.timeTravelStream(params);
|
|
963
|
+
return result.fullStream.pipeThrough(
|
|
964
|
+
new web.TransformStream({
|
|
965
|
+
transform(chunk, controller) {
|
|
966
|
+
if (serverCache) {
|
|
967
|
+
const cacheKey = runId;
|
|
968
|
+
serverCache.listPush(cacheKey, chunk).catch(() => {
|
|
969
|
+
});
|
|
970
|
+
}
|
|
971
|
+
controller.enqueue(chunk);
|
|
972
|
+
}
|
|
973
|
+
})
|
|
974
|
+
);
|
|
975
|
+
} catch (error) {
|
|
976
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error time traveling workflow stream");
|
|
638
977
|
}
|
|
639
978
|
}
|
|
640
979
|
});
|
|
641
|
-
var CANCEL_WORKFLOW_RUN_ROUTE =
|
|
980
|
+
var CANCEL_WORKFLOW_RUN_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
642
981
|
method: "POST",
|
|
643
|
-
path: "/
|
|
982
|
+
path: "/workflows/:workflowId/runs/:runId/cancel",
|
|
644
983
|
responseType: "json",
|
|
645
984
|
pathParamSchema: workflowRunPathParams,
|
|
646
985
|
responseSchema: workflowControlResponseSchema,
|
|
647
986
|
summary: "Cancel workflow run",
|
|
648
987
|
description: "Cancels an in-progress workflow execution",
|
|
649
988
|
tags: ["Workflows"],
|
|
989
|
+
requiresAuth: true,
|
|
650
990
|
handler: async ({ mastra, workflowId, runId }) => {
|
|
651
991
|
try {
|
|
652
992
|
if (!workflowId) {
|
|
@@ -667,21 +1007,22 @@ var CANCEL_WORKFLOW_RUN_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
|
667
1007
|
await _run.cancel();
|
|
668
1008
|
return { message: "Workflow run cancelled" };
|
|
669
1009
|
} catch (error) {
|
|
670
|
-
return
|
|
1010
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error canceling workflow run");
|
|
671
1011
|
}
|
|
672
1012
|
}
|
|
673
1013
|
});
|
|
674
|
-
var STREAM_LEGACY_WORKFLOW_ROUTE =
|
|
1014
|
+
var STREAM_LEGACY_WORKFLOW_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
675
1015
|
method: "POST",
|
|
676
|
-
path: "/
|
|
1016
|
+
path: "/workflows/:workflowId/stream-legacy",
|
|
677
1017
|
responseType: "stream",
|
|
678
1018
|
pathParamSchema: workflowIdPathParams,
|
|
679
|
-
queryParamSchema:
|
|
1019
|
+
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
680
1020
|
bodySchema: streamWorkflowBodySchema,
|
|
681
|
-
responseSchema:
|
|
1021
|
+
responseSchema: chunkOD6Y7FEM_cjs.streamResponseSchema,
|
|
682
1022
|
summary: "[DEPRECATED] Stream workflow with legacy format",
|
|
683
|
-
description: "Legacy endpoint for streaming workflow execution. Use /
|
|
1023
|
+
description: "Legacy endpoint for streaming workflow execution. Use /workflows/:workflowId/stream instead.",
|
|
684
1024
|
tags: ["Workflows", "Legacy"],
|
|
1025
|
+
requiresAuth: true,
|
|
685
1026
|
handler: async ({ mastra, workflowId, runId, ...params }) => {
|
|
686
1027
|
try {
|
|
687
1028
|
if (!workflowId) {
|
|
@@ -707,20 +1048,21 @@ var STREAM_LEGACY_WORKFLOW_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
|
707
1048
|
});
|
|
708
1049
|
return result.stream;
|
|
709
1050
|
} catch (error) {
|
|
710
|
-
return
|
|
1051
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error executing workflow");
|
|
711
1052
|
}
|
|
712
1053
|
}
|
|
713
1054
|
});
|
|
714
|
-
var OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE =
|
|
1055
|
+
var OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE = chunkK34R4R2T_cjs.createRoute({
|
|
715
1056
|
method: "POST",
|
|
716
|
-
path: "/
|
|
1057
|
+
path: "/workflows/:workflowId/observe-stream-legacy",
|
|
717
1058
|
responseType: "stream",
|
|
718
1059
|
pathParamSchema: workflowIdPathParams,
|
|
719
|
-
queryParamSchema:
|
|
720
|
-
responseSchema:
|
|
1060
|
+
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
1061
|
+
responseSchema: chunkOD6Y7FEM_cjs.streamResponseSchema,
|
|
721
1062
|
summary: "[DEPRECATED] Observe workflow stream with legacy format",
|
|
722
|
-
description: "Legacy endpoint for observing workflow stream. Use /
|
|
1063
|
+
description: "Legacy endpoint for observing workflow stream. Use /workflows/:workflowId/observe instead.",
|
|
723
1064
|
tags: ["Workflows", "Legacy"],
|
|
1065
|
+
requiresAuth: true,
|
|
724
1066
|
handler: async ({ mastra, workflowId, runId }) => {
|
|
725
1067
|
try {
|
|
726
1068
|
if (!workflowId) {
|
|
@@ -752,29 +1094,34 @@ var OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE = chunkUJNHKFBR_cjs.createRoute({
|
|
|
752
1094
|
const result = _run.observeStreamLegacy();
|
|
753
1095
|
return result.stream?.pipeThrough(transformStream);
|
|
754
1096
|
} catch (error) {
|
|
755
|
-
return
|
|
1097
|
+
return chunkUWYAL2Z3_cjs.handleError(error, "Error observing workflow stream");
|
|
756
1098
|
}
|
|
757
1099
|
}
|
|
758
1100
|
});
|
|
759
1101
|
|
|
760
1102
|
exports.CANCEL_WORKFLOW_RUN_ROUTE = CANCEL_WORKFLOW_RUN_ROUTE;
|
|
761
1103
|
exports.CREATE_WORKFLOW_RUN_ROUTE = CREATE_WORKFLOW_RUN_ROUTE;
|
|
1104
|
+
exports.DELETE_WORKFLOW_RUN_BY_ID_ROUTE = DELETE_WORKFLOW_RUN_BY_ID_ROUTE;
|
|
762
1105
|
exports.GET_WORKFLOW_BY_ID_ROUTE = GET_WORKFLOW_BY_ID_ROUTE;
|
|
763
1106
|
exports.GET_WORKFLOW_RUN_BY_ID_ROUTE = GET_WORKFLOW_RUN_BY_ID_ROUTE;
|
|
764
|
-
exports.GET_WORKFLOW_RUN_EXECUTION_RESULT_ROUTE = GET_WORKFLOW_RUN_EXECUTION_RESULT_ROUTE;
|
|
765
1107
|
exports.LIST_WORKFLOWS_ROUTE = LIST_WORKFLOWS_ROUTE;
|
|
766
1108
|
exports.LIST_WORKFLOW_RUNS_ROUTE = LIST_WORKFLOW_RUNS_ROUTE;
|
|
767
1109
|
exports.OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE = OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE;
|
|
768
|
-
exports.OBSERVE_STREAM_VNEXT_WORKFLOW_ROUTE = OBSERVE_STREAM_VNEXT_WORKFLOW_ROUTE;
|
|
769
1110
|
exports.OBSERVE_STREAM_WORKFLOW_ROUTE = OBSERVE_STREAM_WORKFLOW_ROUTE;
|
|
1111
|
+
exports.RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ASYNC_ROUTE = RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ASYNC_ROUTE;
|
|
1112
|
+
exports.RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ROUTE = RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ROUTE;
|
|
1113
|
+
exports.RESTART_ASYNC_WORKFLOW_ROUTE = RESTART_ASYNC_WORKFLOW_ROUTE;
|
|
1114
|
+
exports.RESTART_WORKFLOW_ROUTE = RESTART_WORKFLOW_ROUTE;
|
|
770
1115
|
exports.RESUME_ASYNC_WORKFLOW_ROUTE = RESUME_ASYNC_WORKFLOW_ROUTE;
|
|
771
1116
|
exports.RESUME_STREAM_WORKFLOW_ROUTE = RESUME_STREAM_WORKFLOW_ROUTE;
|
|
772
1117
|
exports.RESUME_WORKFLOW_ROUTE = RESUME_WORKFLOW_ROUTE;
|
|
773
1118
|
exports.START_ASYNC_WORKFLOW_ROUTE = START_ASYNC_WORKFLOW_ROUTE;
|
|
774
1119
|
exports.START_WORKFLOW_RUN_ROUTE = START_WORKFLOW_RUN_ROUTE;
|
|
775
1120
|
exports.STREAM_LEGACY_WORKFLOW_ROUTE = STREAM_LEGACY_WORKFLOW_ROUTE;
|
|
776
|
-
exports.STREAM_VNEXT_WORKFLOW_ROUTE = STREAM_VNEXT_WORKFLOW_ROUTE;
|
|
777
1121
|
exports.STREAM_WORKFLOW_ROUTE = STREAM_WORKFLOW_ROUTE;
|
|
1122
|
+
exports.TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE = TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE;
|
|
1123
|
+
exports.TIME_TRAVEL_STREAM_WORKFLOW_ROUTE = TIME_TRAVEL_STREAM_WORKFLOW_ROUTE;
|
|
1124
|
+
exports.TIME_TRAVEL_WORKFLOW_ROUTE = TIME_TRAVEL_WORKFLOW_ROUTE;
|
|
778
1125
|
exports.createWorkflowRunResponseSchema = createWorkflowRunResponseSchema;
|
|
779
1126
|
exports.listWorkflowRunsQuerySchema = listWorkflowRunsQuerySchema;
|
|
780
1127
|
exports.listWorkflowsResponseSchema = listWorkflowsResponseSchema;
|
|
@@ -785,8 +1132,9 @@ exports.streamWorkflowBodySchema = streamWorkflowBodySchema;
|
|
|
785
1132
|
exports.workflowControlResponseSchema = workflowControlResponseSchema;
|
|
786
1133
|
exports.workflowExecutionResultSchema = workflowExecutionResultSchema;
|
|
787
1134
|
exports.workflowInfoSchema = workflowInfoSchema;
|
|
788
|
-
exports.
|
|
1135
|
+
exports.workflowRunResultQuerySchema = workflowRunResultQuerySchema;
|
|
1136
|
+
exports.workflowRunResultSchema = workflowRunResultSchema;
|
|
789
1137
|
exports.workflowRunsResponseSchema = workflowRunsResponseSchema;
|
|
790
1138
|
exports.workflows_exports = workflows_exports;
|
|
791
|
-
//# sourceMappingURL=chunk-
|
|
792
|
-
//# sourceMappingURL=chunk-
|
|
1139
|
+
//# sourceMappingURL=chunk-AEMLCRS5.cjs.map
|
|
1140
|
+
//# sourceMappingURL=chunk-AEMLCRS5.cjs.map
|