@mastra/server 0.0.0-sidebar-window-undefined-fix-20251029233656 → 0.0.0-span-scorring-test-20251124132129
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 +713 -3
- package/README.md +1 -1
- package/dist/chunk-2NW6POYK.cjs +89 -0
- package/dist/chunk-2NW6POYK.cjs.map +1 -0
- package/dist/chunk-35NT4TMQ.cjs +201 -0
- package/dist/chunk-35NT4TMQ.cjs.map +1 -0
- package/dist/{chunk-MN2TZQ7I.js → chunk-3R5EV3HV.js} +218 -31
- package/dist/chunk-3R5EV3HV.js.map +1 -0
- package/dist/{chunk-K5T5A3AL.cjs → chunk-4ECGVOJZ.cjs} +224 -31
- package/dist/chunk-4ECGVOJZ.cjs.map +1 -0
- package/dist/chunk-5PONYNYP.cjs +125 -0
- package/dist/chunk-5PONYNYP.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-7HCPO76Z.js → chunk-6BISSAIF.js} +5096 -1150
- package/dist/chunk-6BISSAIF.js.map +1 -0
- package/dist/chunk-6DTV6NEW.js +116 -0
- package/dist/chunk-6DTV6NEW.js.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-AEO6IHLK.cjs +368 -0
- package/dist/chunk-AEO6IHLK.cjs.map +1 -0
- package/dist/chunk-ASZUOBKV.js +310 -0
- package/dist/chunk-ASZUOBKV.js.map +1 -0
- package/dist/chunk-ECIVTQ4E.js +354 -0
- package/dist/chunk-ECIVTQ4E.js.map +1 -0
- package/dist/chunk-FAQICBMH.js +164 -0
- package/dist/chunk-FAQICBMH.js.map +1 -0
- package/dist/chunk-FXDZLX2Y.js +192 -0
- package/dist/chunk-FXDZLX2Y.js.map +1 -0
- package/dist/{chunk-KSFLUEWV.js → chunk-G7BPNX2V.js} +6 -6
- package/dist/chunk-G7BPNX2V.js.map +1 -0
- package/dist/chunk-I5VZ5SKG.js +328 -0
- package/dist/chunk-I5VZ5SKG.js.map +1 -0
- package/dist/chunk-ICANWSEW.js +204 -0
- package/dist/chunk-ICANWSEW.js.map +1 -0
- package/dist/chunk-KB5NSROG.cjs +211 -0
- package/dist/chunk-KB5NSROG.cjs.map +1 -0
- package/dist/chunk-MWQQRVQC.cjs +259 -0
- package/dist/chunk-MWQQRVQC.cjs.map +1 -0
- package/dist/chunk-NDFAQBQD.cjs +792 -0
- package/dist/chunk-NDFAQBQD.cjs.map +1 -0
- package/dist/chunk-PKRHEXX7.js +74 -0
- package/dist/chunk-PKRHEXX7.js.map +1 -0
- package/dist/chunk-QGWCNTG6.cjs +797 -0
- package/dist/chunk-QGWCNTG6.cjs.map +1 -0
- package/dist/chunk-R4M3BSUG.js +226 -0
- package/dist/chunk-R4M3BSUG.js.map +1 -0
- package/dist/{chunk-KDUHLUK4.cjs → chunk-TBVUN4XN.cjs} +5944 -1992
- package/dist/chunk-TBVUN4XN.cjs.map +1 -0
- package/dist/chunk-UJNHKFBR.cjs +167 -0
- package/dist/chunk-UJNHKFBR.cjs.map +1 -0
- package/dist/chunk-UOFV2ZCI.js +878 -0
- package/dist/chunk-UOFV2ZCI.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-CJFKRVED.cjs → chunk-UZ6CYAOG.cjs} +6 -6
- package/dist/chunk-UZ6CYAOG.cjs.map +1 -0
- 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-VQAT5HX6.js +756 -0
- package/dist/chunk-VQAT5HX6.js.map +1 -0
- package/dist/chunk-XWGAT2DA.js +44 -0
- package/dist/chunk-XWGAT2DA.js.map +1 -0
- package/dist/chunk-YJ3VDL3Z.cjs +346 -0
- package/dist/chunk-YJ3VDL3Z.cjs.map +1 -0
- package/dist/chunk-Z36N2OQA.cjs +907 -0
- package/dist/chunk-Z36N2OQA.cjs.map +1 -0
- package/dist/chunk-ZLRTFRL4.js +773 -0
- package/dist/chunk-ZLRTFRL4.js.map +1 -0
- package/dist/chunk-ZODCSH2W.cjs +322 -0
- package/dist/chunk-ZODCSH2W.cjs.map +1 -0
- package/dist/server/handlers/a2a.cjs +15 -7
- package/dist/server/handlers/a2a.d.ts +492 -10
- 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 +43 -31
- package/dist/server/handlers/agent-builder.d.ts +592 -84
- package/dist/server/handlers/agent-builder.d.ts.map +1 -1
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/agents.cjs +51 -39
- package/dist/server/handlers/agents.d.ts +3277 -148
- 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/memory.cjs +63 -31
- package/dist/server/handlers/memory.d.ts +934 -103
- package/dist/server/handlers/memory.d.ts.map +1 -1
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/observability.cjs +24 -8
- package/dist/server/handlers/observability.d.ts +128 -21
- package/dist/server/handlers/observability.d.ts.map +1 -1
- package/dist/server/handlers/observability.js +1 -1
- package/dist/server/handlers/scores.cjs +13 -13
- package/dist/server/handlers/scores.d.ts +110 -141
- package/dist/server/handlers/scores.d.ts.map +1 -1
- package/dist/server/handlers/scores.js +1 -1
- 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 +11 -11
- package/dist/server/handlers/tools.d.ts +69 -23
- package/dist/server/handlers/tools.d.ts.map +1 -1
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/utils.cjs +11 -3
- package/dist/server/handlers/utils.d.ts +5 -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 +93 -9
- 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 -40
- package/dist/server/handlers/voice.d.ts.map +1 -1
- package/dist/server/handlers/voice.js +1 -1
- package/dist/server/handlers/workflows.cjs +37 -45
- package/dist/server/handlers/workflows.d.ts +597 -83
- package/dist/server/handlers/workflows.d.ts.map +1 -1
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +23 -28
- package/dist/server/handlers.d.ts +0 -1
- package/dist/server/handlers.d.ts.map +1 -1
- package/dist/server/handlers.js +11 -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 +195 -0
- package/dist/server/schemas/agent-builder.d.ts.map +1 -0
- package/dist/server/schemas/agents.d.ts +1375 -0
- package/dist/server/schemas/agents.d.ts.map +1 -0
- package/dist/server/schemas/common.d.ts +165 -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/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/vectors.d.ts +107 -0
- package/dist/server/schemas/vectors.d.ts.map +1 -0
- package/dist/server/schemas/workflows.d.ts +505 -0
- package/dist/server/schemas/workflows.d.ts.map +1 -0
- package/dist/server/server-adapter/index.cjs +323 -0
- package/dist/server/server-adapter/index.cjs.map +1 -0
- package/dist/server/server-adapter/index.d.ts +52 -0
- package/dist/server/server-adapter/index.d.ts.map +1 -0
- package/dist/server/server-adapter/index.js +309 -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/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 +41 -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/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/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 +3 -2
- package/dist/server/utils.d.ts.map +1 -1
- package/package.json +26 -8
- package/dist/chunk-2P4VRXBT.js +0 -533
- package/dist/chunk-2P4VRXBT.js.map +0 -1
- package/dist/chunk-2S4IMB6E.cjs +0 -130
- package/dist/chunk-2S4IMB6E.cjs.map +0 -1
- package/dist/chunk-3SNGNFUJ.cjs +0 -128
- package/dist/chunk-3SNGNFUJ.cjs.map +0 -1
- package/dist/chunk-4QCXUEAT.js +0 -25
- package/dist/chunk-4QCXUEAT.js.map +0 -1
- package/dist/chunk-6VPAV4ZV.js +0 -692
- package/dist/chunk-6VPAV4ZV.js.map +0 -1
- package/dist/chunk-7HCPO76Z.js.map +0 -1
- package/dist/chunk-ABRFV4XP.js +0 -83
- package/dist/chunk-ABRFV4XP.js.map +0 -1
- package/dist/chunk-AHB4JCIQ.js +0 -160
- package/dist/chunk-AHB4JCIQ.js.map +0 -1
- package/dist/chunk-AW5BU3RQ.js +0 -192
- package/dist/chunk-AW5BU3RQ.js.map +0 -1
- package/dist/chunk-B7QWVGQQ.cjs +0 -729
- package/dist/chunk-B7QWVGQQ.cjs.map +0 -1
- package/dist/chunk-BATEJLED.js +0 -124
- package/dist/chunk-BATEJLED.js.map +0 -1
- package/dist/chunk-CJFKRVED.cjs.map +0 -1
- package/dist/chunk-EP3JQDPD.cjs +0 -131
- package/dist/chunk-EP3JQDPD.cjs.map +0 -1
- package/dist/chunk-G4PUALCE.cjs +0 -28
- package/dist/chunk-G4PUALCE.cjs.map +0 -1
- package/dist/chunk-GDUKGVFI.cjs +0 -550
- package/dist/chunk-GDUKGVFI.cjs.map +0 -1
- package/dist/chunk-I3C4ODGV.cjs +0 -335
- package/dist/chunk-I3C4ODGV.cjs.map +0 -1
- package/dist/chunk-K5T5A3AL.cjs.map +0 -1
- package/dist/chunk-KDUHLUK4.cjs.map +0 -1
- package/dist/chunk-KSFLUEWV.js.map +0 -1
- package/dist/chunk-LLUOPR3J.js +0 -323
- package/dist/chunk-LLUOPR3J.js.map +0 -1
- package/dist/chunk-MMROOK5J.js.map +0 -1
- package/dist/chunk-MN2TZQ7I.js.map +0 -1
- package/dist/chunk-MYR4PVGN.js +0 -123
- package/dist/chunk-MYR4PVGN.js.map +0 -1
- package/dist/chunk-QQXMIP6C.js +0 -122
- package/dist/chunk-QQXMIP6C.js.map +0 -1
- package/dist/chunk-SPRRK3P7.cjs +0 -200
- package/dist/chunk-SPRRK3P7.cjs.map +0 -1
- package/dist/chunk-TRGAMKHX.cjs +0 -167
- package/dist/chunk-TRGAMKHX.cjs.map +0 -1
- package/dist/chunk-XN74I6VW.cjs +0 -88
- package/dist/chunk-XN74I6VW.cjs.map +0 -1
- package/dist/chunk-YSHNCC6F.cjs +0 -713
- package/dist/chunk-YSHNCC6F.cjs.map +0 -1
- package/dist/chunk-ZLBL4NQC.js +0 -707
- package/dist/chunk-ZLBL4NQC.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
|
@@ -1,97 +1,611 @@
|
|
|
1
|
-
import { ReadableStream } from 'node:stream/web';
|
|
2
|
-
import type { TracingOptions } from '@mastra/core/ai-tracing';
|
|
3
|
-
import type { RuntimeContext } from '@mastra/core/di';
|
|
4
|
-
import type { WorkflowRuns } from '@mastra/core/storage';
|
|
5
|
-
import type { Workflow, WatchEvent, WorkflowInfo, ChunkType, StreamEvent } from '@mastra/core/workflows';
|
|
6
1
|
import type { Context } from '../types.js';
|
|
7
2
|
export interface WorkflowContext extends Context {
|
|
8
3
|
workflowId?: string;
|
|
9
4
|
runId?: string;
|
|
10
5
|
}
|
|
11
|
-
export declare
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
export declare const LIST_WORKFLOWS_ROUTE: import("../server-adapter").ServerRoute<{}, Record<string, {
|
|
7
|
+
steps: Record<string, {
|
|
8
|
+
id: string;
|
|
9
|
+
description?: string | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
allSteps: Record<string, {
|
|
12
|
+
id: string;
|
|
13
|
+
description?: string | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
stepGraph: {
|
|
16
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
17
|
+
}[];
|
|
18
|
+
options?: {} | undefined;
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
description?: string | undefined;
|
|
21
|
+
inputSchema?: string | undefined;
|
|
22
|
+
outputSchema?: string | undefined;
|
|
23
|
+
}>, "json">;
|
|
24
|
+
export declare const GET_WORKFLOW_BY_ID_ROUTE: import("../server-adapter").ServerRoute<{
|
|
25
|
+
workflowId: string;
|
|
26
|
+
}, {
|
|
27
|
+
steps: Record<string, {
|
|
28
|
+
id: string;
|
|
29
|
+
description?: string | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
allSteps: Record<string, {
|
|
32
|
+
id: string;
|
|
33
|
+
description?: string | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
stepGraph: {
|
|
36
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
37
|
+
}[];
|
|
38
|
+
options?: {} | undefined;
|
|
39
|
+
name?: string | undefined;
|
|
40
|
+
description?: string | undefined;
|
|
41
|
+
inputSchema?: string | undefined;
|
|
42
|
+
outputSchema?: string | undefined;
|
|
43
|
+
}, "json">;
|
|
44
|
+
export declare const LIST_WORKFLOW_RUNS_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
45
|
+
workflowId: import("zod").ZodString;
|
|
46
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
47
|
+
workflowId: string;
|
|
48
|
+
}, {
|
|
49
|
+
workflowId: string;
|
|
50
|
+
}>, import("zod").ZodObject<{
|
|
51
|
+
limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
52
|
+
offset: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
53
|
+
} & {
|
|
54
|
+
fromDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
55
|
+
toDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
56
|
+
resourceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
57
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
58
|
+
limit: number;
|
|
59
|
+
offset: number;
|
|
60
|
+
resourceId?: string | undefined;
|
|
61
|
+
fromDate?: Date | undefined;
|
|
62
|
+
toDate?: Date | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
limit?: number | undefined;
|
|
65
|
+
offset?: number | undefined;
|
|
66
|
+
resourceId?: string | undefined;
|
|
67
|
+
fromDate?: Date | undefined;
|
|
68
|
+
toDate?: Date | undefined;
|
|
69
|
+
}> | import("zod").ZodObject<{
|
|
70
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
71
|
+
offset: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
72
|
+
} & {
|
|
73
|
+
fromDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
74
|
+
toDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
75
|
+
resourceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
76
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
77
|
+
offset: number;
|
|
78
|
+
limit?: number | undefined;
|
|
79
|
+
resourceId?: string | undefined;
|
|
80
|
+
fromDate?: Date | undefined;
|
|
81
|
+
toDate?: Date | undefined;
|
|
82
|
+
}, {
|
|
83
|
+
limit?: number | undefined;
|
|
84
|
+
offset?: number | undefined;
|
|
85
|
+
resourceId?: string | undefined;
|
|
86
|
+
fromDate?: Date | undefined;
|
|
87
|
+
toDate?: Date | undefined;
|
|
88
|
+
}>, undefined>, {
|
|
89
|
+
total: number;
|
|
90
|
+
runs: {
|
|
91
|
+
runId: string;
|
|
92
|
+
workflowName: string;
|
|
93
|
+
snapshot: string | {};
|
|
94
|
+
createdAt: Date;
|
|
95
|
+
updatedAt: Date;
|
|
96
|
+
resourceId?: string | undefined;
|
|
97
|
+
}[];
|
|
98
|
+
}, "json">;
|
|
99
|
+
export declare const GET_WORKFLOW_RUN_BY_ID_ROUTE: import("../server-adapter").ServerRoute<{
|
|
100
|
+
runId: string;
|
|
101
|
+
workflowId: string;
|
|
102
|
+
}, {
|
|
103
|
+
runId: string;
|
|
104
|
+
workflowName: string;
|
|
105
|
+
snapshot: string | {};
|
|
106
|
+
createdAt: Date;
|
|
107
|
+
updatedAt: Date;
|
|
108
|
+
resourceId?: string | undefined;
|
|
109
|
+
}, "json">;
|
|
110
|
+
export declare const CREATE_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
111
|
+
workflowId: import("zod").ZodString;
|
|
112
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
113
|
+
workflowId: string;
|
|
114
|
+
}, {
|
|
115
|
+
workflowId: string;
|
|
116
|
+
}>, import("zod").ZodObject<{
|
|
117
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
118
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
119
|
+
runId?: string | undefined;
|
|
120
|
+
}, {
|
|
121
|
+
runId?: string | undefined;
|
|
122
|
+
}>, undefined>, {
|
|
123
|
+
runId: string;
|
|
124
|
+
}, "json">;
|
|
125
|
+
export declare const STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
126
|
+
workflowId: import("zod").ZodString;
|
|
127
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
128
|
+
workflowId: string;
|
|
129
|
+
}, {
|
|
130
|
+
workflowId: string;
|
|
131
|
+
}>, import("zod").ZodObject<{
|
|
132
|
+
runId: import("zod").ZodString;
|
|
133
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
134
|
+
runId: string;
|
|
135
|
+
}, {
|
|
136
|
+
runId: string;
|
|
137
|
+
}>, import("zod").ZodObject<{
|
|
138
|
+
inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
139
|
+
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
140
|
+
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
141
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
142
|
+
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
143
|
+
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
144
|
+
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
145
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
146
|
+
metadata?: Record<string, unknown> | undefined;
|
|
147
|
+
requestContextKeys?: string[] | undefined;
|
|
148
|
+
traceId?: string | undefined;
|
|
149
|
+
parentSpanId?: string | undefined;
|
|
150
|
+
}, {
|
|
151
|
+
metadata?: Record<string, unknown> | undefined;
|
|
152
|
+
requestContextKeys?: string[] | undefined;
|
|
153
|
+
traceId?: string | undefined;
|
|
154
|
+
parentSpanId?: string | undefined;
|
|
155
|
+
}>>;
|
|
156
|
+
} & {
|
|
157
|
+
closeOnSuspend: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
158
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
19
159
|
inputData?: unknown;
|
|
20
|
-
|
|
21
|
-
tracingOptions?:
|
|
22
|
-
|
|
23
|
-
|
|
160
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
161
|
+
tracingOptions?: {
|
|
162
|
+
metadata?: Record<string, unknown> | undefined;
|
|
163
|
+
requestContextKeys?: string[] | undefined;
|
|
164
|
+
traceId?: string | undefined;
|
|
165
|
+
parentSpanId?: string | undefined;
|
|
166
|
+
} | undefined;
|
|
167
|
+
closeOnSuspend?: boolean | undefined;
|
|
168
|
+
}, {
|
|
24
169
|
inputData?: unknown;
|
|
25
|
-
|
|
26
|
-
tracingOptions?:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
170
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
171
|
+
tracingOptions?: {
|
|
172
|
+
metadata?: Record<string, unknown> | undefined;
|
|
173
|
+
requestContextKeys?: string[] | undefined;
|
|
174
|
+
traceId?: string | undefined;
|
|
175
|
+
parentSpanId?: string | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
closeOnSuspend?: boolean | undefined;
|
|
178
|
+
}>>, unknown, "stream">;
|
|
179
|
+
export declare const STREAM_VNEXT_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
180
|
+
workflowId: import("zod").ZodString;
|
|
181
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
182
|
+
workflowId: string;
|
|
183
|
+
}, {
|
|
184
|
+
workflowId: string;
|
|
185
|
+
}>, import("zod").ZodObject<{
|
|
186
|
+
runId: import("zod").ZodString;
|
|
187
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
188
|
+
runId: string;
|
|
189
|
+
}, {
|
|
190
|
+
runId: string;
|
|
191
|
+
}>, import("zod").ZodObject<{
|
|
192
|
+
inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
193
|
+
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
194
|
+
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
195
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
196
|
+
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
197
|
+
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
198
|
+
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
199
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
200
|
+
metadata?: Record<string, unknown> | undefined;
|
|
201
|
+
requestContextKeys?: string[] | undefined;
|
|
202
|
+
traceId?: string | undefined;
|
|
203
|
+
parentSpanId?: string | undefined;
|
|
204
|
+
}, {
|
|
205
|
+
metadata?: Record<string, unknown> | undefined;
|
|
206
|
+
requestContextKeys?: string[] | undefined;
|
|
207
|
+
traceId?: string | undefined;
|
|
208
|
+
parentSpanId?: string | undefined;
|
|
209
|
+
}>>;
|
|
210
|
+
} & {
|
|
211
|
+
closeOnSuspend: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
212
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
34
213
|
inputData?: unknown;
|
|
35
|
-
|
|
36
|
-
tracingOptions?:
|
|
37
|
-
|
|
38
|
-
|
|
214
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
215
|
+
tracingOptions?: {
|
|
216
|
+
metadata?: Record<string, unknown> | undefined;
|
|
217
|
+
requestContextKeys?: string[] | undefined;
|
|
218
|
+
traceId?: string | undefined;
|
|
219
|
+
parentSpanId?: string | undefined;
|
|
220
|
+
} | undefined;
|
|
221
|
+
closeOnSuspend?: boolean | undefined;
|
|
222
|
+
}, {
|
|
223
|
+
inputData?: unknown;
|
|
224
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
225
|
+
tracingOptions?: {
|
|
226
|
+
metadata?: Record<string, unknown> | undefined;
|
|
227
|
+
requestContextKeys?: string[] | undefined;
|
|
228
|
+
traceId?: string | undefined;
|
|
229
|
+
parentSpanId?: string | undefined;
|
|
230
|
+
} | undefined;
|
|
231
|
+
closeOnSuspend?: boolean | undefined;
|
|
232
|
+
}>>, unknown, "stream">;
|
|
233
|
+
export declare const RESUME_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
234
|
+
workflowId: import("zod").ZodString;
|
|
235
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
236
|
+
workflowId: string;
|
|
237
|
+
}, {
|
|
238
|
+
workflowId: string;
|
|
239
|
+
}>, import("zod").ZodObject<{
|
|
240
|
+
runId: import("zod").ZodString;
|
|
241
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
242
|
+
runId: string;
|
|
243
|
+
}, {
|
|
244
|
+
runId: string;
|
|
245
|
+
}>, import("zod").ZodObject<{
|
|
246
|
+
step: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
|
247
|
+
resumeData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
248
|
+
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
249
|
+
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
250
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
251
|
+
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
252
|
+
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
253
|
+
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
254
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
255
|
+
metadata?: Record<string, unknown> | undefined;
|
|
256
|
+
requestContextKeys?: string[] | undefined;
|
|
257
|
+
traceId?: string | undefined;
|
|
258
|
+
parentSpanId?: string | undefined;
|
|
259
|
+
}, {
|
|
260
|
+
metadata?: Record<string, unknown> | undefined;
|
|
261
|
+
requestContextKeys?: string[] | undefined;
|
|
262
|
+
traceId?: string | undefined;
|
|
263
|
+
parentSpanId?: string | undefined;
|
|
264
|
+
}>>;
|
|
265
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
266
|
+
step?: string | string[] | undefined;
|
|
267
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
268
|
+
tracingOptions?: {
|
|
269
|
+
metadata?: Record<string, unknown> | undefined;
|
|
270
|
+
requestContextKeys?: string[] | undefined;
|
|
271
|
+
traceId?: string | undefined;
|
|
272
|
+
parentSpanId?: string | undefined;
|
|
273
|
+
} | undefined;
|
|
274
|
+
resumeData?: unknown;
|
|
275
|
+
}, {
|
|
276
|
+
step?: string | string[] | undefined;
|
|
277
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
278
|
+
tracingOptions?: {
|
|
279
|
+
metadata?: Record<string, unknown> | undefined;
|
|
280
|
+
requestContextKeys?: string[] | undefined;
|
|
281
|
+
traceId?: string | undefined;
|
|
282
|
+
parentSpanId?: string | undefined;
|
|
283
|
+
} | undefined;
|
|
284
|
+
resumeData?: unknown;
|
|
285
|
+
}>>, any, "stream">;
|
|
286
|
+
export declare const GET_WORKFLOW_RUN_EXECUTION_RESULT_ROUTE: import("../server-adapter").ServerRoute<{
|
|
287
|
+
runId: string;
|
|
288
|
+
workflowId: string;
|
|
289
|
+
}, {
|
|
290
|
+
status: string;
|
|
291
|
+
error?: unknown;
|
|
292
|
+
result?: unknown;
|
|
293
|
+
}, "json">;
|
|
294
|
+
export declare const START_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
295
|
+
workflowId: import("zod").ZodString;
|
|
296
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
297
|
+
workflowId: string;
|
|
298
|
+
}, {
|
|
299
|
+
workflowId: string;
|
|
300
|
+
}>, import("zod").ZodObject<{
|
|
301
|
+
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
302
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
303
|
+
runId?: string | undefined;
|
|
304
|
+
}, {
|
|
305
|
+
runId?: string | undefined;
|
|
306
|
+
}>, import("zod").ZodObject<{
|
|
307
|
+
inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
308
|
+
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
309
|
+
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
310
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
311
|
+
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
312
|
+
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
313
|
+
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
314
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
315
|
+
metadata?: Record<string, unknown> | undefined;
|
|
316
|
+
requestContextKeys?: string[] | undefined;
|
|
317
|
+
traceId?: string | undefined;
|
|
318
|
+
parentSpanId?: string | undefined;
|
|
319
|
+
}, {
|
|
320
|
+
metadata?: Record<string, unknown> | undefined;
|
|
321
|
+
requestContextKeys?: string[] | undefined;
|
|
322
|
+
traceId?: string | undefined;
|
|
323
|
+
parentSpanId?: string | undefined;
|
|
324
|
+
}>>;
|
|
325
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
326
|
+
inputData?: unknown;
|
|
327
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
328
|
+
tracingOptions?: {
|
|
329
|
+
metadata?: Record<string, unknown> | undefined;
|
|
330
|
+
requestContextKeys?: string[] | undefined;
|
|
331
|
+
traceId?: string | undefined;
|
|
332
|
+
parentSpanId?: string | undefined;
|
|
333
|
+
} | undefined;
|
|
334
|
+
}, {
|
|
335
|
+
inputData?: unknown;
|
|
336
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
337
|
+
tracingOptions?: {
|
|
338
|
+
metadata?: Record<string, unknown> | undefined;
|
|
339
|
+
requestContextKeys?: string[] | undefined;
|
|
340
|
+
traceId?: string | undefined;
|
|
341
|
+
parentSpanId?: string | undefined;
|
|
342
|
+
} | undefined;
|
|
343
|
+
}>>, {
|
|
344
|
+
status: string;
|
|
345
|
+
error?: unknown;
|
|
346
|
+
result?: unknown;
|
|
347
|
+
}, "json">;
|
|
348
|
+
export declare const START_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
349
|
+
workflowId: import("zod").ZodString;
|
|
350
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
351
|
+
workflowId: string;
|
|
352
|
+
}, {
|
|
353
|
+
workflowId: string;
|
|
354
|
+
}>, import("zod").ZodObject<{
|
|
355
|
+
runId: import("zod").ZodString;
|
|
356
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
357
|
+
runId: string;
|
|
358
|
+
}, {
|
|
359
|
+
runId: string;
|
|
360
|
+
}>, import("zod").ZodObject<{
|
|
361
|
+
inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
362
|
+
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
363
|
+
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
364
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
365
|
+
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
366
|
+
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
367
|
+
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
368
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
369
|
+
metadata?: Record<string, unknown> | undefined;
|
|
370
|
+
requestContextKeys?: string[] | undefined;
|
|
371
|
+
traceId?: string | undefined;
|
|
372
|
+
parentSpanId?: string | undefined;
|
|
373
|
+
}, {
|
|
374
|
+
metadata?: Record<string, unknown> | undefined;
|
|
375
|
+
requestContextKeys?: string[] | undefined;
|
|
376
|
+
traceId?: string | undefined;
|
|
377
|
+
parentSpanId?: string | undefined;
|
|
378
|
+
}>>;
|
|
379
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
39
380
|
inputData?: unknown;
|
|
40
|
-
|
|
41
|
-
tracingOptions?:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
export declare function streamVNextWorkflowHandler({ mastra, runtimeContext, workflowId, runId, inputData, closeOnSuspend, tracingOptions, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
381
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
382
|
+
tracingOptions?: {
|
|
383
|
+
metadata?: Record<string, unknown> | undefined;
|
|
384
|
+
requestContextKeys?: string[] | undefined;
|
|
385
|
+
traceId?: string | undefined;
|
|
386
|
+
parentSpanId?: string | undefined;
|
|
387
|
+
} | undefined;
|
|
388
|
+
}, {
|
|
49
389
|
inputData?: unknown;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
resumeData?: unknown;
|
|
59
|
-
};
|
|
60
|
-
runtimeContext?: RuntimeContext;
|
|
61
|
-
tracingOptions?: TracingOptions;
|
|
62
|
-
}): Promise<import("@mastra/core").WorkflowResult<any, any, any, any>>;
|
|
63
|
-
export declare function resumeWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, tracingOptions, }: WorkflowContext & {
|
|
64
|
-
body: {
|
|
65
|
-
step: string | string[];
|
|
66
|
-
resumeData?: unknown;
|
|
67
|
-
};
|
|
68
|
-
runtimeContext?: RuntimeContext;
|
|
69
|
-
tracingOptions?: TracingOptions;
|
|
70
|
-
}): Promise<{
|
|
390
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
391
|
+
tracingOptions?: {
|
|
392
|
+
metadata?: Record<string, unknown> | undefined;
|
|
393
|
+
requestContextKeys?: string[] | undefined;
|
|
394
|
+
traceId?: string | undefined;
|
|
395
|
+
parentSpanId?: string | undefined;
|
|
396
|
+
} | undefined;
|
|
397
|
+
}>>, {
|
|
71
398
|
message: string;
|
|
72
|
-
}>;
|
|
73
|
-
export declare
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
399
|
+
}, "json">;
|
|
400
|
+
export declare const OBSERVE_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
401
|
+
workflowId: import("zod").ZodString;
|
|
402
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
403
|
+
workflowId: string;
|
|
404
|
+
}, {
|
|
405
|
+
workflowId: string;
|
|
406
|
+
}>, import("zod").ZodObject<{
|
|
407
|
+
runId: import("zod").ZodString;
|
|
408
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
409
|
+
runId: string;
|
|
410
|
+
}, {
|
|
411
|
+
runId: string;
|
|
412
|
+
}>, undefined>, any, "stream">;
|
|
413
|
+
export declare const OBSERVE_STREAM_VNEXT_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
414
|
+
workflowId: import("zod").ZodString;
|
|
415
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
416
|
+
workflowId: string;
|
|
417
|
+
}, {
|
|
418
|
+
workflowId: string;
|
|
419
|
+
}>, import("zod").ZodObject<{
|
|
420
|
+
runId: import("zod").ZodString;
|
|
421
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
422
|
+
runId: string;
|
|
423
|
+
}, {
|
|
424
|
+
runId: string;
|
|
425
|
+
}>, undefined>, any, "stream">;
|
|
426
|
+
export declare const RESUME_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
427
|
+
workflowId: import("zod").ZodString;
|
|
428
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
429
|
+
workflowId: string;
|
|
430
|
+
}, {
|
|
431
|
+
workflowId: string;
|
|
432
|
+
}>, import("zod").ZodObject<{
|
|
433
|
+
runId: import("zod").ZodString;
|
|
434
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
435
|
+
runId: string;
|
|
436
|
+
}, {
|
|
437
|
+
runId: string;
|
|
438
|
+
}>, import("zod").ZodObject<{
|
|
439
|
+
step: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
|
440
|
+
resumeData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
441
|
+
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
442
|
+
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
443
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
444
|
+
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
445
|
+
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
446
|
+
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
447
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
448
|
+
metadata?: Record<string, unknown> | undefined;
|
|
449
|
+
requestContextKeys?: string[] | undefined;
|
|
450
|
+
traceId?: string | undefined;
|
|
451
|
+
parentSpanId?: string | undefined;
|
|
452
|
+
}, {
|
|
453
|
+
metadata?: Record<string, unknown> | undefined;
|
|
454
|
+
requestContextKeys?: string[] | undefined;
|
|
455
|
+
traceId?: string | undefined;
|
|
456
|
+
parentSpanId?: string | undefined;
|
|
457
|
+
}>>;
|
|
458
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
459
|
+
step?: string | string[] | undefined;
|
|
460
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
461
|
+
tracingOptions?: {
|
|
462
|
+
metadata?: Record<string, unknown> | undefined;
|
|
463
|
+
requestContextKeys?: string[] | undefined;
|
|
464
|
+
traceId?: string | undefined;
|
|
465
|
+
parentSpanId?: string | undefined;
|
|
466
|
+
} | undefined;
|
|
467
|
+
resumeData?: unknown;
|
|
468
|
+
}, {
|
|
469
|
+
step?: string | string[] | undefined;
|
|
470
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
471
|
+
tracingOptions?: {
|
|
472
|
+
metadata?: Record<string, unknown> | undefined;
|
|
473
|
+
requestContextKeys?: string[] | undefined;
|
|
474
|
+
traceId?: string | undefined;
|
|
475
|
+
parentSpanId?: string | undefined;
|
|
476
|
+
} | undefined;
|
|
477
|
+
resumeData?: unknown;
|
|
478
|
+
}>>, {
|
|
479
|
+
status: string;
|
|
480
|
+
error?: unknown;
|
|
481
|
+
result?: unknown;
|
|
482
|
+
}, "json">;
|
|
483
|
+
export declare const RESUME_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
484
|
+
workflowId: import("zod").ZodString;
|
|
485
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
486
|
+
workflowId: string;
|
|
487
|
+
}, {
|
|
488
|
+
workflowId: string;
|
|
489
|
+
}>, import("zod").ZodObject<{
|
|
490
|
+
runId: import("zod").ZodString;
|
|
491
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
492
|
+
runId: string;
|
|
493
|
+
}, {
|
|
494
|
+
runId: string;
|
|
495
|
+
}>, import("zod").ZodObject<{
|
|
496
|
+
step: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
|
497
|
+
resumeData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
498
|
+
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
499
|
+
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
500
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
501
|
+
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
502
|
+
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
503
|
+
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
504
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
505
|
+
metadata?: Record<string, unknown> | undefined;
|
|
506
|
+
requestContextKeys?: string[] | undefined;
|
|
507
|
+
traceId?: string | undefined;
|
|
508
|
+
parentSpanId?: string | undefined;
|
|
509
|
+
}, {
|
|
510
|
+
metadata?: Record<string, unknown> | undefined;
|
|
511
|
+
requestContextKeys?: string[] | undefined;
|
|
512
|
+
traceId?: string | undefined;
|
|
513
|
+
parentSpanId?: string | undefined;
|
|
514
|
+
}>>;
|
|
515
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
516
|
+
step?: string | string[] | undefined;
|
|
517
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
518
|
+
tracingOptions?: {
|
|
519
|
+
metadata?: Record<string, unknown> | undefined;
|
|
520
|
+
requestContextKeys?: string[] | undefined;
|
|
521
|
+
traceId?: string | undefined;
|
|
522
|
+
parentSpanId?: string | undefined;
|
|
523
|
+
} | undefined;
|
|
524
|
+
resumeData?: unknown;
|
|
525
|
+
}, {
|
|
526
|
+
step?: string | string[] | undefined;
|
|
527
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
528
|
+
tracingOptions?: {
|
|
529
|
+
metadata?: Record<string, unknown> | undefined;
|
|
530
|
+
requestContextKeys?: string[] | undefined;
|
|
531
|
+
traceId?: string | undefined;
|
|
532
|
+
parentSpanId?: string | undefined;
|
|
533
|
+
} | undefined;
|
|
534
|
+
resumeData?: unknown;
|
|
535
|
+
}>>, {
|
|
89
536
|
message: string;
|
|
90
|
-
}>;
|
|
91
|
-
export declare
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
537
|
+
}, "json">;
|
|
538
|
+
export declare const CANCEL_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<{
|
|
539
|
+
runId: string;
|
|
540
|
+
workflowId: string;
|
|
541
|
+
}, {
|
|
95
542
|
message: string;
|
|
96
|
-
}>;
|
|
543
|
+
}, "json">;
|
|
544
|
+
export declare const STREAM_LEGACY_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
545
|
+
workflowId: import("zod").ZodString;
|
|
546
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
547
|
+
workflowId: string;
|
|
548
|
+
}, {
|
|
549
|
+
workflowId: string;
|
|
550
|
+
}>, import("zod").ZodObject<{
|
|
551
|
+
runId: import("zod").ZodString;
|
|
552
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
553
|
+
runId: string;
|
|
554
|
+
}, {
|
|
555
|
+
runId: string;
|
|
556
|
+
}>, import("zod").ZodObject<{
|
|
557
|
+
inputData: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
558
|
+
requestContext: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
559
|
+
tracingOptions: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
560
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
561
|
+
requestContextKeys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
562
|
+
traceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
563
|
+
parentSpanId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
564
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
565
|
+
metadata?: Record<string, unknown> | undefined;
|
|
566
|
+
requestContextKeys?: string[] | undefined;
|
|
567
|
+
traceId?: string | undefined;
|
|
568
|
+
parentSpanId?: string | undefined;
|
|
569
|
+
}, {
|
|
570
|
+
metadata?: Record<string, unknown> | undefined;
|
|
571
|
+
requestContextKeys?: string[] | undefined;
|
|
572
|
+
traceId?: string | undefined;
|
|
573
|
+
parentSpanId?: string | undefined;
|
|
574
|
+
}>>;
|
|
575
|
+
} & {
|
|
576
|
+
closeOnSuspend: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
577
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
578
|
+
inputData?: unknown;
|
|
579
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
580
|
+
tracingOptions?: {
|
|
581
|
+
metadata?: Record<string, unknown> | undefined;
|
|
582
|
+
requestContextKeys?: string[] | undefined;
|
|
583
|
+
traceId?: string | undefined;
|
|
584
|
+
parentSpanId?: string | undefined;
|
|
585
|
+
} | undefined;
|
|
586
|
+
closeOnSuspend?: boolean | undefined;
|
|
587
|
+
}, {
|
|
588
|
+
inputData?: unknown;
|
|
589
|
+
requestContext?: Record<string, unknown> | undefined;
|
|
590
|
+
tracingOptions?: {
|
|
591
|
+
metadata?: Record<string, unknown> | undefined;
|
|
592
|
+
requestContextKeys?: string[] | undefined;
|
|
593
|
+
traceId?: string | undefined;
|
|
594
|
+
parentSpanId?: string | undefined;
|
|
595
|
+
} | undefined;
|
|
596
|
+
closeOnSuspend?: boolean | undefined;
|
|
597
|
+
}>>, any, "stream">;
|
|
598
|
+
export declare const OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
|
|
599
|
+
workflowId: import("zod").ZodString;
|
|
600
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
601
|
+
workflowId: string;
|
|
602
|
+
}, {
|
|
603
|
+
workflowId: string;
|
|
604
|
+
}>, import("zod").ZodObject<{
|
|
605
|
+
runId: import("zod").ZodString;
|
|
606
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
607
|
+
runId: string;
|
|
608
|
+
}, {
|
|
609
|
+
runId: string;
|
|
610
|
+
}>, undefined>, any, "stream">;
|
|
97
611
|
//# sourceMappingURL=workflows.d.ts.map
|