@mastra/server 0.0.0-new-scorer-api-20250801075530 → 0.0.0-new-button-export-20251219133013
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 +5548 -0
- package/README.md +2 -7
- package/dist/chunk-3BXS37TQ.js +1105 -0
- package/dist/chunk-3BXS37TQ.js.map +1 -0
- package/dist/chunk-3SFLFUKY.js +116 -0
- package/dist/chunk-3SFLFUKY.js.map +1 -0
- package/dist/chunk-3XI22UQR.cjs +148 -0
- package/dist/chunk-3XI22UQR.cjs.map +1 -0
- package/dist/chunk-5W4RPVTK.cjs +49 -0
- package/dist/chunk-5W4RPVTK.cjs.map +1 -0
- package/dist/{chunk-7NADHFD2.cjs → chunk-64ITUOXI.cjs} +2 -2
- package/dist/chunk-64ITUOXI.cjs.map +1 -0
- package/dist/{chunk-MMROOK5J.js → chunk-6QWQZI4Q.js} +2 -2
- package/dist/{chunk-7NADHFD2.cjs.map → chunk-6QWQZI4Q.js.map} +1 -1
- package/dist/chunk-6V57U52D.js +196 -0
- package/dist/chunk-6V57U52D.js.map +1 -0
- package/dist/chunk-7KOS32XA.cjs +928 -0
- package/dist/chunk-7KOS32XA.cjs.map +1 -0
- package/dist/chunk-AZIH2QEC.js +83 -0
- package/dist/chunk-AZIH2QEC.js.map +1 -0
- package/dist/chunk-BMLUV4BH.cjs +992 -0
- package/dist/chunk-BMLUV4BH.cjs.map +1 -0
- package/dist/chunk-BMYZ4DO6.cjs +269 -0
- package/dist/chunk-BMYZ4DO6.cjs.map +1 -0
- package/dist/chunk-BNGT3NIC.cjs +211 -0
- package/dist/chunk-BNGT3NIC.cjs.map +1 -0
- package/dist/chunk-C3UIIRAT.cjs +920 -0
- package/dist/chunk-C3UIIRAT.cjs.map +1 -0
- package/dist/chunk-DRUNNM4C.js +328 -0
- package/dist/chunk-DRUNNM4C.js.map +1 -0
- package/dist/chunk-DVSCJECS.js +250 -0
- package/dist/chunk-DVSCJECS.js.map +1 -0
- package/dist/chunk-DW3WE4M4.js +250 -0
- package/dist/chunk-DW3WE4M4.js.map +1 -0
- package/dist/chunk-E646Y4FQ.js +970 -0
- package/dist/chunk-E646Y4FQ.js.map +1 -0
- package/dist/chunk-EUBTCHQC.js +83 -0
- package/dist/chunk-EUBTCHQC.js.map +1 -0
- package/dist/chunk-FWSKVWS7.cjs +88 -0
- package/dist/chunk-FWSKVWS7.cjs.map +1 -0
- package/dist/chunk-FYY54HZC.js +310 -0
- package/dist/chunk-FYY54HZC.js.map +1 -0
- package/dist/chunk-GFF2I6UD.js +354 -0
- package/dist/chunk-GFF2I6UD.js.map +1 -0
- package/dist/chunk-GU4EWMZB.cjs +769 -0
- package/dist/chunk-GU4EWMZB.cjs.map +1 -0
- package/dist/chunk-H2RMXG2Q.cjs +167 -0
- package/dist/chunk-H2RMXG2Q.cjs.map +1 -0
- package/dist/chunk-HAJOEDNB.js +274 -0
- package/dist/chunk-HAJOEDNB.js.map +1 -0
- package/dist/chunk-HT4LP3BO.js +75 -0
- package/dist/chunk-HT4LP3BO.js.map +1 -0
- package/dist/chunk-I6LR6CPC.cjs +125 -0
- package/dist/chunk-I6LR6CPC.cjs.map +1 -0
- package/dist/chunk-IEYXQTUW.cjs +284 -0
- package/dist/chunk-IEYXQTUW.cjs.map +1 -0
- package/dist/chunk-JUYWLFVT.cjs +689 -0
- package/dist/chunk-JUYWLFVT.cjs.map +1 -0
- package/dist/chunk-K73YS7YB.cjs +2777 -0
- package/dist/chunk-K73YS7YB.cjs.map +1 -0
- package/dist/chunk-KPSSRYGH.js +234 -0
- package/dist/chunk-KPSSRYGH.js.map +1 -0
- package/dist/chunk-LF2ZLOFP.js +767 -0
- package/dist/chunk-LF2ZLOFP.js.map +1 -0
- package/dist/chunk-LH722MPX.cjs +27569 -0
- package/dist/chunk-LH722MPX.cjs.map +1 -0
- package/dist/chunk-LKTCAPBD.cjs +252 -0
- package/dist/chunk-LKTCAPBD.cjs.map +1 -0
- package/dist/chunk-LQSZ4FJJ.cjs +205 -0
- package/dist/chunk-LQSZ4FJJ.cjs.map +1 -0
- package/dist/chunk-MCYD5LW7.cjs +90 -0
- package/dist/chunk-MCYD5LW7.cjs.map +1 -0
- package/dist/chunk-MQLS6Z7A.js +891 -0
- package/dist/chunk-MQLS6Z7A.js.map +1 -0
- package/dist/chunk-O7I5CWRX.cjs +44 -0
- package/dist/{chunk-Q7SFCCGT.cjs.map → chunk-O7I5CWRX.cjs.map} +1 -1
- package/dist/chunk-P3H4AZKI.cjs +252 -0
- package/dist/chunk-P3H4AZKI.cjs.map +1 -0
- package/dist/chunk-P6S2HIVE.cjs +1149 -0
- package/dist/chunk-P6S2HIVE.cjs.map +1 -0
- package/dist/chunk-PR4QN5HX.js +39 -0
- package/dist/{chunk-PZ5AY32C.js.map → chunk-PR4QN5HX.js.map} +1 -1
- package/dist/chunk-PUFCKXFW.cjs +312 -0
- package/dist/chunk-PUFCKXFW.cjs.map +1 -0
- package/dist/chunk-Q7NPRJRV.cjs +88 -0
- package/dist/chunk-Q7NPRJRV.cjs.map +1 -0
- package/dist/chunk-S3TIWWQL.cjs +322 -0
- package/dist/chunk-S3TIWWQL.cjs.map +1 -0
- package/dist/chunk-S5XBFHJL.js +675 -0
- package/dist/chunk-S5XBFHJL.js.map +1 -0
- package/dist/chunk-SRQY5IWD.js +204 -0
- package/dist/chunk-SRQY5IWD.js.map +1 -0
- package/dist/chunk-SV4AUWGY.js +2774 -0
- package/dist/chunk-SV4AUWGY.js.map +1 -0
- package/dist/chunk-SXVANU23.js +164 -0
- package/dist/chunk-SXVANU23.js.map +1 -0
- package/dist/chunk-TYZ6ZISQ.cjs +368 -0
- package/dist/chunk-TYZ6ZISQ.cjs.map +1 -0
- package/dist/chunk-UWRAKVAJ.js +903 -0
- package/dist/chunk-UWRAKVAJ.js.map +1 -0
- package/dist/{chunk-CY4TP3FK.js → chunk-UXGQZUYZ.js} +3 -3
- package/dist/{chunk-CY4TP3FK.js.map → chunk-UXGQZUYZ.js.map} +1 -1
- package/dist/{chunk-RE4RPXT2.cjs → chunk-V5WWQN7P.cjs} +4 -4
- package/dist/{chunk-RE4RPXT2.cjs.map → chunk-V5WWQN7P.cjs.map} +1 -1
- package/dist/chunk-WBLT2HL3.js +144 -0
- package/dist/chunk-WBLT2HL3.js.map +1 -0
- package/dist/chunk-X43DWDXB.cjs +346 -0
- package/dist/chunk-X43DWDXB.cjs.map +1 -0
- package/dist/chunk-XW2HXQDO.js +302 -0
- package/dist/chunk-XW2HXQDO.js.map +1 -0
- package/dist/chunk-XWGAT2DA.js +44 -0
- package/dist/chunk-XWGAT2DA.js.map +1 -0
- package/dist/chunk-ZSD2NWTP.js +27527 -0
- package/dist/chunk-ZSD2NWTP.js.map +1 -0
- package/dist/dist-2J26LQO2.cjs +16 -0
- package/dist/dist-2J26LQO2.cjs.map +1 -0
- package/dist/dist-4CMHRWC4.js +1147 -0
- package/dist/dist-4CMHRWC4.js.map +1 -0
- package/dist/dist-AEJONJSS.js +937 -0
- package/dist/dist-AEJONJSS.js.map +1 -0
- package/dist/dist-AF7EUPXA.cjs +928 -0
- package/dist/dist-AF7EUPXA.cjs.map +1 -0
- package/dist/dist-MEN73GGI.js +3 -0
- package/dist/dist-MEN73GGI.js.map +1 -0
- package/dist/dist-NVXXJWBO.cjs +940 -0
- package/dist/dist-NVXXJWBO.cjs.map +1 -0
- package/dist/dist-Q2ST4SUQ.cjs +764 -0
- package/dist/dist-Q2ST4SUQ.cjs.map +1 -0
- package/dist/dist-TE7XRSWH.js +761 -0
- package/dist/dist-TE7XRSWH.js.map +1 -0
- package/dist/dist-VPYZNWNG.js +925 -0
- package/dist/dist-VPYZNWNG.js.map +1 -0
- package/dist/dist-Y5SYUVLY.cjs +1150 -0
- package/dist/dist-Y5SYUVLY.cjs.map +1 -0
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/server/a2a/store.cjs +25 -0
- package/dist/server/a2a/store.cjs.map +1 -0
- package/dist/server/a2a/store.d.ts +3 -3
- package/dist/server/a2a/store.d.ts.map +1 -1
- package/dist/server/a2a/store.js +23 -0
- package/dist/server/a2a/store.js.map +1 -0
- package/dist/server/a2a/tasks.d.ts +7 -7
- package/dist/server/a2a/tasks.d.ts.map +1 -1
- 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 +137 -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 +127 -0
- package/dist/server/auth/index.js.map +1 -0
- package/dist/server/handlers/a2a.cjs +19 -11
- package/dist/server/handlers/a2a.d.ts +507 -23
- 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 +80 -0
- package/dist/server/handlers/agent-builder.cjs.map +1 -0
- package/dist/server/handlers/agent-builder.d.ts +642 -0
- package/dist/server/handlers/agent-builder.d.ts.map +1 -0
- package/dist/server/handlers/agent-builder.js +3 -0
- package/dist/server/handlers/agent-builder.js.map +1 -0
- package/dist/server/handlers/agents.cjs +79 -15
- package/dist/server/handlers/agents.d.ts +3350 -72
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/error.cjs +2 -2
- package/dist/server/handlers/error.js +1 -1
- package/dist/server/handlers/logs.cjs +7 -7
- package/dist/server/handlers/logs.d.ts +135 -27
- 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 +110 -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 +65 -29
- package/dist/server/handlers/memory.d.ts +935 -99
- package/dist/server/handlers/memory.d.ts.map +1 -1
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/observability.cjs +40 -0
- package/dist/server/handlers/observability.cjs.map +1 -0
- package/dist/server/handlers/observability.d.ts +156 -0
- package/dist/server/handlers/observability.d.ts.map +1 -0
- package/dist/server/handlers/observability.js +3 -0
- package/dist/server/handlers/observability.js.map +1 -0
- package/dist/server/handlers/scores.cjs +13 -13
- package/dist/server/handlers/scores.d.ts +112 -40
- 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 +289 -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/test-utils.cjs +15 -0
- package/dist/server/handlers/test-utils.cjs.map +1 -0
- package/dist/server/handlers/test-utils.d.ts +6 -0
- package/dist/server/handlers/test-utils.d.ts.map +1 -0
- package/dist/server/handlers/test-utils.js +13 -0
- package/dist/server/handlers/test-utils.js.map +1 -0
- package/dist/server/handlers/tools.cjs +13 -9
- package/dist/server/handlers/tools.d.ts +69 -19
- package/dist/server/handlers/tools.d.ts.map +1 -1
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/utils.cjs +14 -2
- package/dist/server/handlers/utils.d.ts +11 -0
- package/dist/server/handlers/utils.d.ts.map +1 -1
- package/dist/server/handlers/utils.js +1 -1
- package/dist/server/handlers/vector.cjs +31 -7
- package/dist/server/handlers/vector.d.ts +94 -10
- package/dist/server/handlers/vector.d.ts.map +1 -1
- package/dist/server/handlers/vector.js +1 -1
- package/dist/server/handlers/voice.cjs +21 -9
- package/dist/server/handlers/voice.d.ts +81 -38
- package/dist/server/handlers/voice.d.ts.map +1 -1
- package/dist/server/handlers/voice.js +1 -1
- package/dist/server/handlers/workflows.cjs +75 -31
- package/dist/server/handlers/workflows.d.ts +1000 -80
- package/dist/server/handlers/workflows.d.ts.map +1 -1
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +36 -36
- package/dist/server/handlers.d.ts +12 -12
- package/dist/server/handlers.d.ts.map +1 -1
- package/dist/server/handlers.js +12 -12
- package/dist/server/http-exception.d.ts +0 -5
- package/dist/server/http-exception.d.ts.map +1 -1
- package/dist/server/schemas/a2a.d.ts +786 -0
- package/dist/server/schemas/a2a.d.ts.map +1 -0
- package/dist/server/schemas/agent-builder.d.ts +213 -0
- package/dist/server/schemas/agent-builder.d.ts.map +1 -0
- package/dist/server/schemas/agents.d.ts +1401 -0
- package/dist/server/schemas/agents.d.ts.map +1 -0
- package/dist/server/schemas/common.d.ts +179 -0
- package/dist/server/schemas/common.d.ts.map +1 -0
- package/dist/server/schemas/logs.d.ts +124 -0
- package/dist/server/schemas/logs.d.ts.map +1 -0
- package/dist/server/schemas/mcp.d.ts +299 -0
- package/dist/server/schemas/mcp.d.ts.map +1 -0
- package/dist/server/schemas/memory.d.ts +998 -0
- package/dist/server/schemas/memory.d.ts.map +1 -0
- package/dist/server/schemas/observability.d.ts +402 -0
- package/dist/server/schemas/observability.d.ts.map +1 -0
- package/dist/server/schemas/scores.d.ts +259 -0
- package/dist/server/schemas/scores.d.ts.map +1 -0
- package/dist/server/schemas/stored-agents.d.ts +792 -0
- package/dist/server/schemas/stored-agents.d.ts.map +1 -0
- package/dist/server/schemas/vectors.d.ts +107 -0
- package/dist/server/schemas/vectors.d.ts.map +1 -0
- package/dist/server/schemas/workflows.d.ts +668 -0
- package/dist/server/schemas/workflows.d.ts.map +1 -0
- package/dist/server/server-adapter/index.cjs +485 -0
- package/dist/server/server-adapter/index.cjs.map +1 -0
- package/dist/server/server-adapter/index.d.ts +91 -0
- package/dist/server/server-adapter/index.d.ts.map +1 -0
- package/dist/server/server-adapter/index.js +470 -0
- package/dist/server/server-adapter/index.js.map +1 -0
- package/dist/server/server-adapter/openapi-utils.d.ts +59 -0
- package/dist/server/server-adapter/openapi-utils.d.ts.map +1 -0
- 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/a2a.d.ts +3 -0
- package/dist/server/server-adapter/routes/a2a.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/agent-builder.d.ts +3 -0
- package/dist/server/server-adapter/routes/agent-builder.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/agents.d.ts +3 -0
- package/dist/server/server-adapter/routes/agents.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/index.d.ts +50 -0
- package/dist/server/server-adapter/routes/index.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/legacy.d.ts +7 -0
- package/dist/server/server-adapter/routes/legacy.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/logs.d.ts +3 -0
- package/dist/server/server-adapter/routes/logs.d.ts.map +1 -0
- 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 +3 -0
- package/dist/server/server-adapter/routes/memory.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/observability.d.ts +3 -0
- package/dist/server/server-adapter/routes/observability.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/route-builder.d.ts +52 -0
- package/dist/server/server-adapter/routes/route-builder.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/scorers.d.ts +3 -0
- package/dist/server/server-adapter/routes/scorers.d.ts.map +1 -0
- 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/stream-types.d.ts +10 -0
- package/dist/server/server-adapter/routes/stream-types.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/tools.d.ts +3 -0
- package/dist/server/server-adapter/routes/tools.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/vectors.d.ts +3 -0
- package/dist/server/server-adapter/routes/vectors.d.ts.map +1 -0
- package/dist/server/server-adapter/routes/workflows.d.ts +3 -0
- package/dist/server/server-adapter/routes/workflows.d.ts.map +1 -0
- package/dist/server/utils.d.ts +45 -0
- package/dist/server/utils.d.ts.map +1 -0
- package/dist/token-6GSAFR2W-KVDFAJ2M-EPLMGMHT.cjs +63 -0
- package/dist/token-6GSAFR2W-KVDFAJ2M-EPLMGMHT.cjs.map +1 -0
- package/dist/token-6GSAFR2W-KVDFAJ2M-LNX5VF3I.js +61 -0
- package/dist/token-6GSAFR2W-KVDFAJ2M-LNX5VF3I.js.map +1 -0
- package/dist/token-6GSAFR2W-KVDFAJ2M-SDYXODLX.cjs +63 -0
- package/dist/token-6GSAFR2W-KVDFAJ2M-SDYXODLX.cjs.map +1 -0
- package/dist/token-6GSAFR2W-KVDFAJ2M-VW443KIA.js +61 -0
- package/dist/token-6GSAFR2W-KVDFAJ2M-VW443KIA.js.map +1 -0
- package/dist/token-util-NEHG7TUY-DJYRKLRD-6TH3ODCN.cjs +10 -0
- package/dist/token-util-NEHG7TUY-DJYRKLRD-6TH3ODCN.cjs.map +1 -0
- package/dist/token-util-NEHG7TUY-DJYRKLRD-BSQMRUEW.js +8 -0
- package/dist/token-util-NEHG7TUY-DJYRKLRD-BSQMRUEW.js.map +1 -0
- package/dist/token-util-NEHG7TUY-DJYRKLRD-EACKYD4V.js +8 -0
- package/dist/token-util-NEHG7TUY-DJYRKLRD-EACKYD4V.js.map +1 -0
- package/dist/token-util-NEHG7TUY-DJYRKLRD-MFJRDVVF.cjs +10 -0
- package/dist/token-util-NEHG7TUY-DJYRKLRD-MFJRDVVF.cjs.map +1 -0
- package/package.json +66 -17
- package/dist/chunk-2XIJW7SV.cjs +0 -310
- package/dist/chunk-2XIJW7SV.cjs.map +0 -1
- package/dist/chunk-4CEZIJWJ.cjs +0 -150
- package/dist/chunk-4CEZIJWJ.cjs.map +0 -1
- package/dist/chunk-4MQU6AJN.js +0 -83
- package/dist/chunk-4MQU6AJN.js.map +0 -1
- package/dist/chunk-4QSNRCOT.cjs +0 -20
- package/dist/chunk-4QSNRCOT.cjs.map +0 -1
- package/dist/chunk-4US5W7PH.cjs +0 -120
- package/dist/chunk-4US5W7PH.cjs.map +0 -1
- package/dist/chunk-7FHF55WA.js +0 -2041
- package/dist/chunk-7FHF55WA.js.map +0 -1
- package/dist/chunk-BED2O446.cjs +0 -88
- package/dist/chunk-BED2O446.cjs.map +0 -1
- package/dist/chunk-BUOJL3MN.js +0 -529
- package/dist/chunk-BUOJL3MN.js.map +0 -1
- package/dist/chunk-G7NVCO5M.js +0 -123
- package/dist/chunk-G7NVCO5M.js.map +0 -1
- package/dist/chunk-GASWM5HJ.cjs +0 -514
- package/dist/chunk-GASWM5HJ.cjs.map +0 -1
- package/dist/chunk-HWHKM67I.js +0 -114
- package/dist/chunk-HWHKM67I.js.map +0 -1
- package/dist/chunk-HXIOPAHT.js +0 -541
- package/dist/chunk-HXIOPAHT.js.map +0 -1
- package/dist/chunk-ILCWPBYQ.cjs +0 -147
- package/dist/chunk-ILCWPBYQ.cjs.map +0 -1
- package/dist/chunk-JGVY3KWV.cjs +0 -334
- package/dist/chunk-JGVY3KWV.cjs.map +0 -1
- package/dist/chunk-LRUH33B4.cjs +0 -2044
- package/dist/chunk-LRUH33B4.cjs.map +0 -1
- package/dist/chunk-MMROOK5J.js.map +0 -1
- package/dist/chunk-NCS2OXX6.cjs +0 -131
- package/dist/chunk-NCS2OXX6.cjs.map +0 -1
- package/dist/chunk-O4I563YW.cjs +0 -130
- package/dist/chunk-O4I563YW.cjs.map +0 -1
- package/dist/chunk-OW4FX5TS.js +0 -18
- package/dist/chunk-OW4FX5TS.js.map +0 -1
- package/dist/chunk-PZ5AY32C.js +0 -9
- package/dist/chunk-Q7SFCCGT.cjs +0 -11
- package/dist/chunk-S37KCGOR.cjs +0 -546
- package/dist/chunk-S37KCGOR.cjs.map +0 -1
- package/dist/chunk-SQ7KKIH3.js +0 -143
- package/dist/chunk-SQ7KKIH3.js.map +0 -1
- package/dist/chunk-TRWPUPGD.js +0 -506
- package/dist/chunk-TRWPUPGD.js.map +0 -1
- package/dist/chunk-TXAQU2XN.js +0 -151
- package/dist/chunk-TXAQU2XN.js.map +0 -1
- package/dist/chunk-UVOSITKU.js +0 -322
- package/dist/chunk-UVOSITKU.js.map +0 -1
- package/dist/chunk-VIGPWTDA.cjs +0 -159
- package/dist/chunk-VIGPWTDA.cjs.map +0 -1
- package/dist/chunk-VOY6MGKA.js +0 -301
- package/dist/chunk-VOY6MGKA.js.map +0 -1
- package/dist/chunk-X5SDJOY6.cjs +0 -557
- package/dist/chunk-X5SDJOY6.cjs.map +0 -1
- package/dist/chunk-Y3J45CVZ.js +0 -144
- package/dist/chunk-Y3J45CVZ.js.map +0 -1
- package/dist/chunk-YS66MFDY.js +0 -124
- package/dist/chunk-YS66MFDY.js.map +0 -1
- package/dist/server/handlers/legacyWorkflows.cjs +0 -48
- package/dist/server/handlers/legacyWorkflows.cjs.map +0 -1
- package/dist/server/handlers/legacyWorkflows.d.ts +0 -59
- package/dist/server/handlers/legacyWorkflows.d.ts.map +0 -1
- package/dist/server/handlers/legacyWorkflows.js +0 -3
- package/dist/server/handlers/legacyWorkflows.js.map +0 -1
- package/dist/server/handlers/network.cjs +0 -24
- package/dist/server/handlers/network.cjs.map +0 -1
- package/dist/server/handlers/network.d.ts +0 -50
- package/dist/server/handlers/network.d.ts.map +0 -1
- package/dist/server/handlers/network.js +0 -3
- package/dist/server/handlers/network.js.map +0 -1
- package/dist/server/handlers/telemetry.cjs +0 -16
- package/dist/server/handlers/telemetry.cjs.map +0 -1
- package/dist/server/handlers/telemetry.d.ts +0 -32
- package/dist/server/handlers/telemetry.d.ts.map +0 -1
- package/dist/server/handlers/telemetry.js +0 -3
- package/dist/server/handlers/telemetry.js.map +0 -1
- package/dist/server/handlers/vNextNetwork.cjs +0 -220
- package/dist/server/handlers/vNextNetwork.cjs.map +0 -1
- package/dist/server/handlers/vNextNetwork.d.ts +0 -179
- package/dist/server/handlers/vNextNetwork.d.ts.map +0 -1
- package/dist/server/handlers/vNextNetwork.js +0 -213
- package/dist/server/handlers/vNextNetwork.js.map +0 -1
|
@@ -0,0 +1,668 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const workflowRunStatusSchema: z.ZodEnum<["running", "waiting", "suspended", "success", "failed", "canceled", "pending", "bailed", "tripwire"]>;
|
|
3
|
+
export declare const workflowIdPathParams: z.ZodObject<{
|
|
4
|
+
workflowId: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
workflowId: string;
|
|
7
|
+
}, {
|
|
8
|
+
workflowId: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const workflowRunPathParams: z.ZodObject<{
|
|
11
|
+
workflowId: z.ZodString;
|
|
12
|
+
} & {
|
|
13
|
+
runId: z.ZodString;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
runId: string;
|
|
16
|
+
workflowId: string;
|
|
17
|
+
}, {
|
|
18
|
+
runId: string;
|
|
19
|
+
workflowId: string;
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* Schema for workflow information
|
|
23
|
+
* Returned by getWorkflowByIdHandler and listWorkflowsHandler
|
|
24
|
+
*/
|
|
25
|
+
export declare const workflowInfoSchema: z.ZodObject<{
|
|
26
|
+
steps: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
description: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
id: string;
|
|
31
|
+
description?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
id: string;
|
|
34
|
+
description?: string | undefined;
|
|
35
|
+
}>>;
|
|
36
|
+
allSteps: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
description: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
id: string;
|
|
41
|
+
description?: string | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
id: string;
|
|
44
|
+
description?: string | undefined;
|
|
45
|
+
}>>;
|
|
46
|
+
name: z.ZodOptional<z.ZodString>;
|
|
47
|
+
description: z.ZodOptional<z.ZodString>;
|
|
48
|
+
stepGraph: z.ZodArray<z.ZodObject<{
|
|
49
|
+
type: z.ZodEnum<["step", "sleep", "sleepUntil", "waitForEvent", "parallel", "conditional", "loop", "foreach"]>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
52
|
+
}, {
|
|
53
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
54
|
+
}>, "many">;
|
|
55
|
+
inputSchema: z.ZodOptional<z.ZodString>;
|
|
56
|
+
outputSchema: z.ZodOptional<z.ZodString>;
|
|
57
|
+
options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
58
|
+
isProcessorWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
steps: Record<string, {
|
|
61
|
+
id: string;
|
|
62
|
+
description?: string | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
allSteps: Record<string, {
|
|
65
|
+
id: string;
|
|
66
|
+
description?: string | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
stepGraph: {
|
|
69
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
70
|
+
}[];
|
|
71
|
+
options?: {} | undefined;
|
|
72
|
+
name?: string | undefined;
|
|
73
|
+
description?: string | undefined;
|
|
74
|
+
inputSchema?: string | undefined;
|
|
75
|
+
outputSchema?: string | undefined;
|
|
76
|
+
isProcessorWorkflow?: boolean | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
steps: Record<string, {
|
|
79
|
+
id: string;
|
|
80
|
+
description?: string | undefined;
|
|
81
|
+
}>;
|
|
82
|
+
allSteps: Record<string, {
|
|
83
|
+
id: string;
|
|
84
|
+
description?: string | undefined;
|
|
85
|
+
}>;
|
|
86
|
+
stepGraph: {
|
|
87
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
88
|
+
}[];
|
|
89
|
+
options?: {} | undefined;
|
|
90
|
+
name?: string | undefined;
|
|
91
|
+
description?: string | undefined;
|
|
92
|
+
inputSchema?: string | undefined;
|
|
93
|
+
outputSchema?: string | undefined;
|
|
94
|
+
isProcessorWorkflow?: boolean | undefined;
|
|
95
|
+
}>;
|
|
96
|
+
/**
|
|
97
|
+
* Schema for list workflows endpoint response
|
|
98
|
+
* Returns a record of workflow ID to workflow info
|
|
99
|
+
*/
|
|
100
|
+
export declare const listWorkflowsResponseSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
101
|
+
steps: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
102
|
+
id: z.ZodString;
|
|
103
|
+
description: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
id: string;
|
|
106
|
+
description?: string | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
id: string;
|
|
109
|
+
description?: string | undefined;
|
|
110
|
+
}>>;
|
|
111
|
+
allSteps: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
description: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
id: string;
|
|
116
|
+
description?: string | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
id: string;
|
|
119
|
+
description?: string | undefined;
|
|
120
|
+
}>>;
|
|
121
|
+
name: z.ZodOptional<z.ZodString>;
|
|
122
|
+
description: z.ZodOptional<z.ZodString>;
|
|
123
|
+
stepGraph: z.ZodArray<z.ZodObject<{
|
|
124
|
+
type: z.ZodEnum<["step", "sleep", "sleepUntil", "waitForEvent", "parallel", "conditional", "loop", "foreach"]>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
127
|
+
}, {
|
|
128
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
129
|
+
}>, "many">;
|
|
130
|
+
inputSchema: z.ZodOptional<z.ZodString>;
|
|
131
|
+
outputSchema: z.ZodOptional<z.ZodString>;
|
|
132
|
+
options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
133
|
+
isProcessorWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
steps: Record<string, {
|
|
136
|
+
id: string;
|
|
137
|
+
description?: string | undefined;
|
|
138
|
+
}>;
|
|
139
|
+
allSteps: Record<string, {
|
|
140
|
+
id: string;
|
|
141
|
+
description?: string | undefined;
|
|
142
|
+
}>;
|
|
143
|
+
stepGraph: {
|
|
144
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
145
|
+
}[];
|
|
146
|
+
options?: {} | undefined;
|
|
147
|
+
name?: string | undefined;
|
|
148
|
+
description?: string | undefined;
|
|
149
|
+
inputSchema?: string | undefined;
|
|
150
|
+
outputSchema?: string | undefined;
|
|
151
|
+
isProcessorWorkflow?: boolean | undefined;
|
|
152
|
+
}, {
|
|
153
|
+
steps: Record<string, {
|
|
154
|
+
id: string;
|
|
155
|
+
description?: string | undefined;
|
|
156
|
+
}>;
|
|
157
|
+
allSteps: Record<string, {
|
|
158
|
+
id: string;
|
|
159
|
+
description?: string | undefined;
|
|
160
|
+
}>;
|
|
161
|
+
stepGraph: {
|
|
162
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
163
|
+
}[];
|
|
164
|
+
options?: {} | undefined;
|
|
165
|
+
name?: string | undefined;
|
|
166
|
+
description?: string | undefined;
|
|
167
|
+
inputSchema?: string | undefined;
|
|
168
|
+
outputSchema?: string | undefined;
|
|
169
|
+
isProcessorWorkflow?: boolean | undefined;
|
|
170
|
+
}>>;
|
|
171
|
+
/**
|
|
172
|
+
* Schema for workflow runs response (paginated)
|
|
173
|
+
* Includes runs array and total count
|
|
174
|
+
*/
|
|
175
|
+
export declare const workflowRunsResponseSchema: z.ZodObject<{
|
|
176
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
177
|
+
workflowName: z.ZodString;
|
|
178
|
+
runId: z.ZodString;
|
|
179
|
+
snapshot: z.ZodUnion<[z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodString]>;
|
|
180
|
+
createdAt: z.ZodDate;
|
|
181
|
+
updatedAt: z.ZodDate;
|
|
182
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
runId: string;
|
|
185
|
+
workflowName: string;
|
|
186
|
+
snapshot: string | {};
|
|
187
|
+
createdAt: Date;
|
|
188
|
+
updatedAt: Date;
|
|
189
|
+
resourceId?: string | undefined;
|
|
190
|
+
}, {
|
|
191
|
+
runId: string;
|
|
192
|
+
workflowName: string;
|
|
193
|
+
snapshot: string | {};
|
|
194
|
+
createdAt: Date;
|
|
195
|
+
updatedAt: Date;
|
|
196
|
+
resourceId?: string | undefined;
|
|
197
|
+
}>, "many">;
|
|
198
|
+
total: z.ZodNumber;
|
|
199
|
+
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
total: number;
|
|
201
|
+
runs: {
|
|
202
|
+
runId: string;
|
|
203
|
+
workflowName: string;
|
|
204
|
+
snapshot: string | {};
|
|
205
|
+
createdAt: Date;
|
|
206
|
+
updatedAt: Date;
|
|
207
|
+
resourceId?: string | undefined;
|
|
208
|
+
}[];
|
|
209
|
+
}, {
|
|
210
|
+
total: number;
|
|
211
|
+
runs: {
|
|
212
|
+
runId: string;
|
|
213
|
+
workflowName: string;
|
|
214
|
+
snapshot: string | {};
|
|
215
|
+
createdAt: Date;
|
|
216
|
+
updatedAt: Date;
|
|
217
|
+
resourceId?: string | undefined;
|
|
218
|
+
}[];
|
|
219
|
+
}>;
|
|
220
|
+
/**
|
|
221
|
+
* Schema for single workflow run response
|
|
222
|
+
*/
|
|
223
|
+
export declare const workflowRunResponseSchema: z.ZodObject<{
|
|
224
|
+
workflowName: z.ZodString;
|
|
225
|
+
runId: z.ZodString;
|
|
226
|
+
snapshot: z.ZodUnion<[z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodString]>;
|
|
227
|
+
createdAt: z.ZodDate;
|
|
228
|
+
updatedAt: z.ZodDate;
|
|
229
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
230
|
+
}, "strip", z.ZodTypeAny, {
|
|
231
|
+
runId: string;
|
|
232
|
+
workflowName: string;
|
|
233
|
+
snapshot: string | {};
|
|
234
|
+
createdAt: Date;
|
|
235
|
+
updatedAt: Date;
|
|
236
|
+
resourceId?: string | undefined;
|
|
237
|
+
}, {
|
|
238
|
+
runId: string;
|
|
239
|
+
workflowName: string;
|
|
240
|
+
snapshot: string | {};
|
|
241
|
+
createdAt: Date;
|
|
242
|
+
updatedAt: Date;
|
|
243
|
+
resourceId?: string | undefined;
|
|
244
|
+
}>;
|
|
245
|
+
/**
|
|
246
|
+
* Schema for query parameters when listing workflow runs
|
|
247
|
+
* Supports both page/perPage and limit/offset for backwards compatibility
|
|
248
|
+
* If page/perPage provided, use directly; otherwise convert from limit/offset
|
|
249
|
+
*/
|
|
250
|
+
export declare const listWorkflowRunsQuerySchema: z.ZodObject<{
|
|
251
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
252
|
+
perPage: z.ZodOptional<z.ZodNumber>;
|
|
253
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
} & {
|
|
256
|
+
fromDate: z.ZodOptional<z.ZodDate>;
|
|
257
|
+
toDate: z.ZodOptional<z.ZodDate>;
|
|
258
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
259
|
+
status: z.ZodOptional<z.ZodEnum<["running", "waiting", "suspended", "success", "failed", "canceled", "pending", "bailed", "tripwire"]>>;
|
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
|
261
|
+
status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | undefined;
|
|
262
|
+
page?: number | undefined;
|
|
263
|
+
perPage?: number | undefined;
|
|
264
|
+
offset?: number | undefined;
|
|
265
|
+
limit?: number | undefined;
|
|
266
|
+
resourceId?: string | undefined;
|
|
267
|
+
fromDate?: Date | undefined;
|
|
268
|
+
toDate?: Date | undefined;
|
|
269
|
+
}, {
|
|
270
|
+
status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | undefined;
|
|
271
|
+
page?: number | undefined;
|
|
272
|
+
perPage?: number | undefined;
|
|
273
|
+
offset?: number | undefined;
|
|
274
|
+
limit?: number | undefined;
|
|
275
|
+
resourceId?: string | undefined;
|
|
276
|
+
fromDate?: Date | undefined;
|
|
277
|
+
toDate?: Date | undefined;
|
|
278
|
+
}>;
|
|
279
|
+
/**
|
|
280
|
+
* Schema for legacy stream workflow body (no closeOnSuspend support)
|
|
281
|
+
* Used by /stream-legacy endpoints
|
|
282
|
+
*/
|
|
283
|
+
export declare const streamLegacyWorkflowBodySchema: z.ZodObject<{
|
|
284
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
285
|
+
inputData: z.ZodOptional<z.ZodUnknown>;
|
|
286
|
+
initialState: z.ZodOptional<z.ZodUnknown>;
|
|
287
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
288
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
289
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
290
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
291
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
292
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
293
|
+
}, "strip", z.ZodTypeAny, {
|
|
294
|
+
metadata?: Record<string, unknown> | undefined;
|
|
295
|
+
requestContextKeys?: string[] | undefined;
|
|
296
|
+
traceId?: string | undefined;
|
|
297
|
+
parentSpanId?: string | undefined;
|
|
298
|
+
}, {
|
|
299
|
+
metadata?: Record<string, unknown> | undefined;
|
|
300
|
+
requestContextKeys?: string[] | undefined;
|
|
301
|
+
traceId?: string | undefined;
|
|
302
|
+
parentSpanId?: string | undefined;
|
|
303
|
+
}>>;
|
|
304
|
+
}, "strip", z.ZodTypeAny, {
|
|
305
|
+
resourceId?: string | undefined;
|
|
306
|
+
inputData?: unknown;
|
|
307
|
+
initialState?: unknown;
|
|
308
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
309
|
+
tracingOptions?: {
|
|
310
|
+
metadata?: Record<string, unknown> | undefined;
|
|
311
|
+
requestContextKeys?: string[] | undefined;
|
|
312
|
+
traceId?: string | undefined;
|
|
313
|
+
parentSpanId?: string | undefined;
|
|
314
|
+
} | undefined;
|
|
315
|
+
}, {
|
|
316
|
+
resourceId?: string | undefined;
|
|
317
|
+
inputData?: unknown;
|
|
318
|
+
initialState?: unknown;
|
|
319
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
320
|
+
tracingOptions?: {
|
|
321
|
+
metadata?: Record<string, unknown> | undefined;
|
|
322
|
+
requestContextKeys?: string[] | undefined;
|
|
323
|
+
traceId?: string | undefined;
|
|
324
|
+
parentSpanId?: string | undefined;
|
|
325
|
+
} | undefined;
|
|
326
|
+
}>;
|
|
327
|
+
/**
|
|
328
|
+
* Schema for stream workflow body
|
|
329
|
+
* Used by both /stream and /streamVNext endpoints
|
|
330
|
+
*/
|
|
331
|
+
export declare const streamWorkflowBodySchema: z.ZodObject<{
|
|
332
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
333
|
+
inputData: z.ZodOptional<z.ZodUnknown>;
|
|
334
|
+
initialState: z.ZodOptional<z.ZodUnknown>;
|
|
335
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
336
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
337
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
338
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
339
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
340
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
341
|
+
}, "strip", z.ZodTypeAny, {
|
|
342
|
+
metadata?: Record<string, unknown> | undefined;
|
|
343
|
+
requestContextKeys?: string[] | undefined;
|
|
344
|
+
traceId?: string | undefined;
|
|
345
|
+
parentSpanId?: string | undefined;
|
|
346
|
+
}, {
|
|
347
|
+
metadata?: Record<string, unknown> | undefined;
|
|
348
|
+
requestContextKeys?: string[] | undefined;
|
|
349
|
+
traceId?: string | undefined;
|
|
350
|
+
parentSpanId?: string | undefined;
|
|
351
|
+
}>>;
|
|
352
|
+
} & {
|
|
353
|
+
closeOnSuspend: z.ZodOptional<z.ZodBoolean>;
|
|
354
|
+
}, "strip", z.ZodTypeAny, {
|
|
355
|
+
resourceId?: string | undefined;
|
|
356
|
+
inputData?: unknown;
|
|
357
|
+
initialState?: unknown;
|
|
358
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
359
|
+
tracingOptions?: {
|
|
360
|
+
metadata?: Record<string, unknown> | undefined;
|
|
361
|
+
requestContextKeys?: string[] | undefined;
|
|
362
|
+
traceId?: string | undefined;
|
|
363
|
+
parentSpanId?: string | undefined;
|
|
364
|
+
} | undefined;
|
|
365
|
+
closeOnSuspend?: boolean | undefined;
|
|
366
|
+
}, {
|
|
367
|
+
resourceId?: string | undefined;
|
|
368
|
+
inputData?: unknown;
|
|
369
|
+
initialState?: unknown;
|
|
370
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
371
|
+
tracingOptions?: {
|
|
372
|
+
metadata?: Record<string, unknown> | undefined;
|
|
373
|
+
requestContextKeys?: string[] | undefined;
|
|
374
|
+
traceId?: string | undefined;
|
|
375
|
+
parentSpanId?: string | undefined;
|
|
376
|
+
} | undefined;
|
|
377
|
+
closeOnSuspend?: boolean | undefined;
|
|
378
|
+
}>;
|
|
379
|
+
/**
|
|
380
|
+
* Schema for resume workflow body
|
|
381
|
+
* Used by resume-stream, resume-async and resume endpoints
|
|
382
|
+
*/
|
|
383
|
+
export declare const resumeBodySchema: z.ZodObject<{
|
|
384
|
+
step: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
385
|
+
resumeData: z.ZodOptional<z.ZodUnknown>;
|
|
386
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
387
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
388
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
389
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
390
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
391
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
392
|
+
}, "strip", z.ZodTypeAny, {
|
|
393
|
+
metadata?: Record<string, unknown> | undefined;
|
|
394
|
+
requestContextKeys?: string[] | undefined;
|
|
395
|
+
traceId?: string | undefined;
|
|
396
|
+
parentSpanId?: string | undefined;
|
|
397
|
+
}, {
|
|
398
|
+
metadata?: Record<string, unknown> | undefined;
|
|
399
|
+
requestContextKeys?: string[] | undefined;
|
|
400
|
+
traceId?: string | undefined;
|
|
401
|
+
parentSpanId?: string | undefined;
|
|
402
|
+
}>>;
|
|
403
|
+
}, "strip", z.ZodTypeAny, {
|
|
404
|
+
step?: string | string[] | undefined;
|
|
405
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
406
|
+
tracingOptions?: {
|
|
407
|
+
metadata?: Record<string, unknown> | undefined;
|
|
408
|
+
requestContextKeys?: string[] | undefined;
|
|
409
|
+
traceId?: string | undefined;
|
|
410
|
+
parentSpanId?: string | undefined;
|
|
411
|
+
} | undefined;
|
|
412
|
+
resumeData?: unknown;
|
|
413
|
+
}, {
|
|
414
|
+
step?: string | string[] | undefined;
|
|
415
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
416
|
+
tracingOptions?: {
|
|
417
|
+
metadata?: Record<string, unknown> | undefined;
|
|
418
|
+
requestContextKeys?: string[] | undefined;
|
|
419
|
+
traceId?: string | undefined;
|
|
420
|
+
parentSpanId?: string | undefined;
|
|
421
|
+
} | undefined;
|
|
422
|
+
resumeData?: unknown;
|
|
423
|
+
}>;
|
|
424
|
+
/**
|
|
425
|
+
* Schema for restart workflow body
|
|
426
|
+
* Used by restart-async and restart endpoints
|
|
427
|
+
*/
|
|
428
|
+
export declare const restartBodySchema: z.ZodObject<{
|
|
429
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
430
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
431
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
432
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
433
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
434
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
435
|
+
}, "strip", z.ZodTypeAny, {
|
|
436
|
+
metadata?: Record<string, unknown> | undefined;
|
|
437
|
+
requestContextKeys?: string[] | undefined;
|
|
438
|
+
traceId?: string | undefined;
|
|
439
|
+
parentSpanId?: string | undefined;
|
|
440
|
+
}, {
|
|
441
|
+
metadata?: Record<string, unknown> | undefined;
|
|
442
|
+
requestContextKeys?: string[] | undefined;
|
|
443
|
+
traceId?: string | undefined;
|
|
444
|
+
parentSpanId?: string | undefined;
|
|
445
|
+
}>>;
|
|
446
|
+
}, "strip", z.ZodTypeAny, {
|
|
447
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
448
|
+
tracingOptions?: {
|
|
449
|
+
metadata?: Record<string, unknown> | undefined;
|
|
450
|
+
requestContextKeys?: string[] | undefined;
|
|
451
|
+
traceId?: string | undefined;
|
|
452
|
+
parentSpanId?: string | undefined;
|
|
453
|
+
} | undefined;
|
|
454
|
+
}, {
|
|
455
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
456
|
+
tracingOptions?: {
|
|
457
|
+
metadata?: Record<string, unknown> | undefined;
|
|
458
|
+
requestContextKeys?: string[] | undefined;
|
|
459
|
+
traceId?: string | undefined;
|
|
460
|
+
parentSpanId?: string | undefined;
|
|
461
|
+
} | undefined;
|
|
462
|
+
}>;
|
|
463
|
+
/**
|
|
464
|
+
* Schema for time travel workflow body
|
|
465
|
+
* Used by time-travel-stream, time-travel-async and time-travel endpoints
|
|
466
|
+
*/
|
|
467
|
+
export declare const timeTravelBodySchema: z.ZodObject<{
|
|
468
|
+
inputData: z.ZodOptional<z.ZodUnknown>;
|
|
469
|
+
resumeData: z.ZodOptional<z.ZodUnknown>;
|
|
470
|
+
initialState: z.ZodOptional<z.ZodUnknown>;
|
|
471
|
+
step: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
472
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
473
|
+
nestedStepsContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
474
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
475
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
476
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
477
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
478
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
479
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
480
|
+
}, "strip", z.ZodTypeAny, {
|
|
481
|
+
metadata?: Record<string, unknown> | undefined;
|
|
482
|
+
requestContextKeys?: string[] | undefined;
|
|
483
|
+
traceId?: string | undefined;
|
|
484
|
+
parentSpanId?: string | undefined;
|
|
485
|
+
}, {
|
|
486
|
+
metadata?: Record<string, unknown> | undefined;
|
|
487
|
+
requestContextKeys?: string[] | undefined;
|
|
488
|
+
traceId?: string | undefined;
|
|
489
|
+
parentSpanId?: string | undefined;
|
|
490
|
+
}>>;
|
|
491
|
+
}, "strip", z.ZodTypeAny, {
|
|
492
|
+
step: string | string[];
|
|
493
|
+
context?: Record<string, any> | undefined;
|
|
494
|
+
inputData?: unknown;
|
|
495
|
+
initialState?: unknown;
|
|
496
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
497
|
+
tracingOptions?: {
|
|
498
|
+
metadata?: Record<string, unknown> | undefined;
|
|
499
|
+
requestContextKeys?: string[] | undefined;
|
|
500
|
+
traceId?: string | undefined;
|
|
501
|
+
parentSpanId?: string | undefined;
|
|
502
|
+
} | undefined;
|
|
503
|
+
resumeData?: unknown;
|
|
504
|
+
nestedStepsContext?: Record<string, Record<string, any>> | undefined;
|
|
505
|
+
}, {
|
|
506
|
+
step: string | string[];
|
|
507
|
+
context?: Record<string, any> | undefined;
|
|
508
|
+
inputData?: unknown;
|
|
509
|
+
initialState?: unknown;
|
|
510
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
511
|
+
tracingOptions?: {
|
|
512
|
+
metadata?: Record<string, unknown> | undefined;
|
|
513
|
+
requestContextKeys?: string[] | undefined;
|
|
514
|
+
traceId?: string | undefined;
|
|
515
|
+
parentSpanId?: string | undefined;
|
|
516
|
+
} | undefined;
|
|
517
|
+
resumeData?: unknown;
|
|
518
|
+
nestedStepsContext?: Record<string, Record<string, any>> | undefined;
|
|
519
|
+
}>;
|
|
520
|
+
/**
|
|
521
|
+
* Schema for start async workflow body
|
|
522
|
+
*/
|
|
523
|
+
export declare const startAsyncWorkflowBodySchema: z.ZodObject<{
|
|
524
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
525
|
+
inputData: z.ZodOptional<z.ZodUnknown>;
|
|
526
|
+
initialState: z.ZodOptional<z.ZodUnknown>;
|
|
527
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
528
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
529
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
530
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
531
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
532
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
533
|
+
}, "strip", z.ZodTypeAny, {
|
|
534
|
+
metadata?: Record<string, unknown> | undefined;
|
|
535
|
+
requestContextKeys?: string[] | undefined;
|
|
536
|
+
traceId?: string | undefined;
|
|
537
|
+
parentSpanId?: string | undefined;
|
|
538
|
+
}, {
|
|
539
|
+
metadata?: Record<string, unknown> | undefined;
|
|
540
|
+
requestContextKeys?: string[] | undefined;
|
|
541
|
+
traceId?: string | undefined;
|
|
542
|
+
parentSpanId?: string | undefined;
|
|
543
|
+
}>>;
|
|
544
|
+
}, "strip", z.ZodTypeAny, {
|
|
545
|
+
resourceId?: string | undefined;
|
|
546
|
+
inputData?: unknown;
|
|
547
|
+
initialState?: unknown;
|
|
548
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
549
|
+
tracingOptions?: {
|
|
550
|
+
metadata?: Record<string, unknown> | undefined;
|
|
551
|
+
requestContextKeys?: string[] | undefined;
|
|
552
|
+
traceId?: string | undefined;
|
|
553
|
+
parentSpanId?: string | undefined;
|
|
554
|
+
} | undefined;
|
|
555
|
+
}, {
|
|
556
|
+
resourceId?: string | undefined;
|
|
557
|
+
inputData?: unknown;
|
|
558
|
+
initialState?: unknown;
|
|
559
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
560
|
+
tracingOptions?: {
|
|
561
|
+
metadata?: Record<string, unknown> | undefined;
|
|
562
|
+
requestContextKeys?: string[] | undefined;
|
|
563
|
+
traceId?: string | undefined;
|
|
564
|
+
parentSpanId?: string | undefined;
|
|
565
|
+
} | undefined;
|
|
566
|
+
}>;
|
|
567
|
+
/**
|
|
568
|
+
* Schema for send workflow run event body
|
|
569
|
+
*/
|
|
570
|
+
export declare const sendWorkflowRunEventBodySchema: z.ZodObject<{
|
|
571
|
+
event: z.ZodString;
|
|
572
|
+
data: z.ZodUnknown;
|
|
573
|
+
}, "strip", z.ZodTypeAny, {
|
|
574
|
+
event: string;
|
|
575
|
+
data?: unknown;
|
|
576
|
+
}, {
|
|
577
|
+
event: string;
|
|
578
|
+
data?: unknown;
|
|
579
|
+
}>;
|
|
580
|
+
/**
|
|
581
|
+
* Schema for workflow execution result query parameters
|
|
582
|
+
* Allows filtering which fields to return to reduce payload size
|
|
583
|
+
*/
|
|
584
|
+
export declare const workflowExecutionResultQuerySchema: z.ZodObject<{
|
|
585
|
+
fields: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
586
|
+
withNestedWorkflows: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
|
|
587
|
+
}, "strip", z.ZodTypeAny, {
|
|
588
|
+
fields?: string | undefined;
|
|
589
|
+
withNestedWorkflows?: "true" | "false" | undefined;
|
|
590
|
+
}, {
|
|
591
|
+
fields?: string | undefined;
|
|
592
|
+
withNestedWorkflows?: "true" | "false" | undefined;
|
|
593
|
+
}>;
|
|
594
|
+
/**
|
|
595
|
+
* Schema for workflow execution result
|
|
596
|
+
* All fields are optional since field filtering allows requesting specific fields only
|
|
597
|
+
*/
|
|
598
|
+
export declare const workflowExecutionResultSchema: z.ZodObject<{
|
|
599
|
+
status: z.ZodOptional<z.ZodEnum<["running", "waiting", "suspended", "success", "failed", "canceled", "pending", "bailed", "tripwire"]>>;
|
|
600
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
601
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
602
|
+
payload: z.ZodOptional<z.ZodUnknown>;
|
|
603
|
+
steps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
604
|
+
activeStepsPath: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber, "many">>>;
|
|
605
|
+
serializedStepGraph: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
606
|
+
type: z.ZodEnum<["step", "sleep", "sleepUntil", "waitForEvent", "parallel", "conditional", "loop", "foreach"]>;
|
|
607
|
+
}, "strip", z.ZodTypeAny, {
|
|
608
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
609
|
+
}, {
|
|
610
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
611
|
+
}>, "many">>;
|
|
612
|
+
}, "strip", z.ZodTypeAny, {
|
|
613
|
+
status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | undefined;
|
|
614
|
+
error?: unknown;
|
|
615
|
+
steps?: Record<string, any> | undefined;
|
|
616
|
+
result?: unknown;
|
|
617
|
+
payload?: unknown;
|
|
618
|
+
activeStepsPath?: Record<string, number[]> | undefined;
|
|
619
|
+
serializedStepGraph?: {
|
|
620
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
621
|
+
}[] | undefined;
|
|
622
|
+
}, {
|
|
623
|
+
status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | undefined;
|
|
624
|
+
error?: unknown;
|
|
625
|
+
steps?: Record<string, any> | undefined;
|
|
626
|
+
result?: unknown;
|
|
627
|
+
payload?: unknown;
|
|
628
|
+
activeStepsPath?: Record<string, number[]> | undefined;
|
|
629
|
+
serializedStepGraph?: {
|
|
630
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
631
|
+
}[] | undefined;
|
|
632
|
+
}>;
|
|
633
|
+
/**
|
|
634
|
+
* Response schema for workflow control operations
|
|
635
|
+
*/
|
|
636
|
+
export declare const workflowControlResponseSchema: z.ZodObject<{
|
|
637
|
+
message: z.ZodString;
|
|
638
|
+
}, "strip", z.ZodTypeAny, {
|
|
639
|
+
message: string;
|
|
640
|
+
}, {
|
|
641
|
+
message: string;
|
|
642
|
+
}>;
|
|
643
|
+
/**
|
|
644
|
+
* Response schema for create workflow run operation
|
|
645
|
+
* Returns only the runId after creating a run
|
|
646
|
+
*/
|
|
647
|
+
export declare const createWorkflowRunResponseSchema: z.ZodObject<{
|
|
648
|
+
runId: z.ZodString;
|
|
649
|
+
}, "strip", z.ZodTypeAny, {
|
|
650
|
+
runId: string;
|
|
651
|
+
}, {
|
|
652
|
+
runId: string;
|
|
653
|
+
}>;
|
|
654
|
+
/**
|
|
655
|
+
* Schema for create workflow run body
|
|
656
|
+
* Used by /create-run endpoint
|
|
657
|
+
*/
|
|
658
|
+
export declare const createWorkflowRunBodySchema: z.ZodObject<{
|
|
659
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
660
|
+
disableScorers: z.ZodOptional<z.ZodBoolean>;
|
|
661
|
+
}, "strip", z.ZodTypeAny, {
|
|
662
|
+
resourceId?: string | undefined;
|
|
663
|
+
disableScorers?: boolean | undefined;
|
|
664
|
+
}, {
|
|
665
|
+
resourceId?: string | undefined;
|
|
666
|
+
disableScorers?: boolean | undefined;
|
|
667
|
+
}>;
|
|
668
|
+
//# sourceMappingURL=workflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../src/server/schemas/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,uBAAuB,kHAUlC,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;EAEhC,CAAC;AAmBH;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU7B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA2C,CAAC;AAcpF;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;EAAoB,CAAC;AAE3D;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKtC,CAAC;AAaH;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEnC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK3B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;EAGzC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;EAiC7C,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;EAAwB,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,+BAA+B;;;;;;EAE1C,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;EAGtC,CAAC"}
|