@mastra/server 1.0.0-beta.6 → 1.0.0-beta.7
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 +57 -0
- package/dist/{chunk-FCCK5TSS.js → chunk-3SFLFUKY.js} +3 -3
- package/dist/{chunk-FCCK5TSS.js.map → chunk-3SFLFUKY.js.map} +1 -1
- package/dist/{chunk-G7BPNX2V.js → chunk-6YWE7UPT.js} +16 -3
- package/dist/chunk-6YWE7UPT.js.map +1 -0
- package/dist/{chunk-ORJBWSYB.js → chunk-7N3PD4SV.js} +3 -3
- package/dist/{chunk-ORJBWSYB.js.map → chunk-7N3PD4SV.js.map} +1 -1
- package/dist/{chunk-SNPELBJA.cjs → chunk-C3D3X2L5.cjs} +5 -5
- package/dist/{chunk-SNPELBJA.cjs.map → chunk-C3D3X2L5.cjs.map} +1 -1
- package/dist/{chunk-OSLIOPFU.js → chunk-C4J473OZ.js} +44 -35
- package/dist/chunk-C4J473OZ.js.map +1 -0
- package/dist/{chunk-CQDHE64H.js → chunk-CT5VG7NT.js} +3 -3
- package/dist/{chunk-CQDHE64H.js.map → chunk-CT5VG7NT.js.map} +1 -1
- package/dist/{chunk-Z4GN2JAO.cjs → chunk-DHWPHLGF.cjs} +16 -16
- package/dist/{chunk-Z4GN2JAO.cjs.map → chunk-DHWPHLGF.cjs.map} +1 -1
- package/dist/{chunk-7MKJBWFB.js → chunk-DRUNNM4C.js} +3 -3
- package/dist/{chunk-7MKJBWFB.js.map → chunk-DRUNNM4C.js.map} +1 -1
- package/dist/{chunk-QS23OV2B.cjs → chunk-ESZ6V5WB.cjs} +10 -10
- package/dist/{chunk-QS23OV2B.cjs.map → chunk-ESZ6V5WB.cjs.map} +1 -1
- package/dist/{chunk-5772SXSK.cjs → chunk-F4H7J6YV.cjs} +55 -45
- package/dist/chunk-F4H7J6YV.cjs.map +1 -0
- package/dist/{chunk-777BJH4Z.cjs → chunk-FMTSLS25.cjs} +95 -86
- package/dist/chunk-FMTSLS25.cjs.map +1 -0
- package/dist/{chunk-C36PTNGG.js → chunk-FYY54HZC.js} +3 -3
- package/dist/{chunk-C36PTNGG.js.map → chunk-FYY54HZC.js.map} +1 -1
- package/dist/{chunk-TIX6M3ZD.js → chunk-GFF2I6UD.js} +3 -3
- package/dist/{chunk-TIX6M3ZD.js.map → chunk-GFF2I6UD.js.map} +1 -1
- package/dist/{chunk-PKRHEXX7.js → chunk-HT4LP3BO.js} +19 -18
- package/dist/chunk-HT4LP3BO.js.map +1 -0
- package/dist/{chunk-CLRYA4BH.cjs → chunk-I6LR6CPC.cjs} +6 -6
- package/dist/{chunk-CLRYA4BH.cjs.map → chunk-I6LR6CPC.cjs.map} +1 -1
- package/dist/{chunk-QCW6WANZ.cjs → chunk-LBSJWPXK.cjs} +28 -12
- package/dist/chunk-LBSJWPXK.cjs.map +1 -0
- package/dist/{chunk-2NW6POYK.cjs → chunk-MCYD5LW7.cjs} +19 -18
- package/dist/chunk-MCYD5LW7.cjs.map +1 -0
- package/dist/{chunk-MK6GBMKE.js → chunk-OL6U27XK.js} +2039 -767
- package/dist/chunk-OL6U27XK.js.map +1 -0
- package/dist/{chunk-UZ6CYAOG.cjs → chunk-PUSD37LD.cjs} +16 -3
- package/dist/chunk-PUSD37LD.cjs.map +1 -0
- package/dist/{chunk-XMKZWHVG.js → chunk-QNVYGEJ4.js} +4 -4
- package/dist/{chunk-XMKZWHVG.js.map → chunk-QNVYGEJ4.js.map} +1 -1
- package/dist/{chunk-TOUBNMVI.cjs → chunk-S3TIWWQL.cjs} +5 -5
- package/dist/{chunk-TOUBNMVI.cjs.map → chunk-S3TIWWQL.cjs.map} +1 -1
- package/dist/{chunk-B4UYPCEY.js → chunk-TKL4TD2V.js} +27 -17
- package/dist/chunk-TKL4TD2V.js.map +1 -0
- package/dist/{chunk-IO7XB4XH.cjs → chunk-TWZCZKUD.cjs} +2145 -873
- package/dist/chunk-TWZCZKUD.cjs.map +1 -0
- package/dist/{chunk-TT25WHVT.cjs → chunk-TYZ6ZISQ.cjs} +6 -6
- package/dist/{chunk-TT25WHVT.cjs.map → chunk-TYZ6ZISQ.cjs.map} +1 -1
- package/dist/{chunk-UPY7WWRA.cjs → chunk-US6Y5RLR.cjs} +21 -21
- package/dist/{chunk-UPY7WWRA.cjs.map → chunk-US6Y5RLR.cjs.map} +1 -1
- package/dist/{chunk-WISPJOEJ.js → chunk-UTIOKR5C.js} +3 -3
- package/dist/{chunk-WISPJOEJ.js.map → chunk-UTIOKR5C.js.map} +1 -1
- package/dist/{chunk-R4M3BSUG.js → chunk-WE4USCF3.js} +3 -3
- package/dist/{chunk-R4M3BSUG.js.map → chunk-WE4USCF3.js.map} +1 -1
- package/dist/{chunk-SWIK2QSP.cjs → chunk-X43DWDXB.cjs} +5 -5
- package/dist/{chunk-SWIK2QSP.cjs.map → chunk-X43DWDXB.cjs.map} +1 -1
- package/dist/{chunk-MWQQRVQC.cjs → chunk-X4QMPCTP.cjs} +7 -7
- package/dist/{chunk-MWQQRVQC.cjs.map → chunk-X4QMPCTP.cjs.map} +1 -1
- package/dist/{chunk-VJVDLNFK.js → chunk-XNKZPXCY.js} +28 -12
- package/dist/chunk-XNKZPXCY.js.map +1 -0
- package/dist/server/handlers/a2a.cjs +9 -9
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +19 -19
- package/dist/server/handlers/agent-builder.d.ts +9 -25
- 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 +23 -23
- package/dist/server/handlers/agents.d.ts +4 -2
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/logs.cjs +4 -4
- package/dist/server/handlers/logs.js +1 -1
- package/dist/server/handlers/mcp.cjs +9 -9
- package/dist/server/handlers/mcp.d.ts +3 -1
- package/dist/server/handlers/mcp.d.ts.map +1 -1
- package/dist/server/handlers/mcp.js +1 -1
- package/dist/server/handlers/memory.cjs +24 -24
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/observability.cjs +9 -9
- package/dist/server/handlers/observability.js +1 -1
- package/dist/server/handlers/scores.cjs +7 -7
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/tools.cjs +6 -6
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/vector.cjs +13 -13
- package/dist/server/handlers/vector.js +1 -1
- package/dist/server/handlers/voice.cjs +8 -8
- package/dist/server/handlers/voice.js +1 -1
- package/dist/server/handlers/workflows.cjs +26 -26
- package/dist/server/handlers/workflows.d.ts +278 -291
- package/dist/server/handlers/workflows.d.ts.map +1 -1
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +24 -24
- package/dist/server/handlers.js +12 -12
- package/dist/server/schemas/common.d.ts +29 -15
- package/dist/server/schemas/common.d.ts.map +1 -1
- package/dist/server/schemas/mcp.d.ts +9 -3
- package/dist/server/schemas/mcp.d.ts.map +1 -1
- package/dist/server/schemas/workflows.d.ts +11 -26
- package/dist/server/schemas/workflows.d.ts.map +1 -1
- package/dist/server/server-adapter/index.cjs +136 -136
- package/dist/server/server-adapter/index.js +13 -13
- package/dist/server/utils.d.ts +1 -1
- package/dist/server/utils.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-2NW6POYK.cjs.map +0 -1
- package/dist/chunk-5772SXSK.cjs.map +0 -1
- package/dist/chunk-777BJH4Z.cjs.map +0 -1
- package/dist/chunk-B4UYPCEY.js.map +0 -1
- package/dist/chunk-G7BPNX2V.js.map +0 -1
- package/dist/chunk-IO7XB4XH.cjs.map +0 -1
- package/dist/chunk-MK6GBMKE.js.map +0 -1
- package/dist/chunk-OSLIOPFU.js.map +0 -1
- package/dist/chunk-PKRHEXX7.js.map +0 -1
- package/dist/chunk-QCW6WANZ.cjs.map +0 -1
- package/dist/chunk-UZ6CYAOG.cjs.map +0 -1
- package/dist/chunk-VJVDLNFK.js.map +0 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import type { Context } from '../types.js';
|
|
2
3
|
export interface WorkflowContext extends Context {
|
|
3
4
|
workflowId?: string;
|
|
4
5
|
runId?: string;
|
|
5
6
|
}
|
|
6
|
-
export declare const LIST_WORKFLOWS_ROUTE: import("../server-adapter").ServerRoute<{
|
|
7
|
+
export declare const LIST_WORKFLOWS_ROUTE: import("../server-adapter").ServerRoute<{
|
|
8
|
+
partial?: string | undefined;
|
|
9
|
+
}, Record<string, {
|
|
7
10
|
steps: Record<string, {
|
|
8
11
|
id: string;
|
|
9
12
|
description?: string | undefined;
|
|
@@ -41,53 +44,37 @@ export declare const GET_WORKFLOW_BY_ID_ROUTE: import("../server-adapter").Serve
|
|
|
41
44
|
inputSchema?: string | undefined;
|
|
42
45
|
outputSchema?: string | undefined;
|
|
43
46
|
}, "json">;
|
|
44
|
-
export declare const LIST_WORKFLOW_RUNS_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
45
|
-
workflowId:
|
|
46
|
-
}, "strip",
|
|
47
|
+
export declare const LIST_WORKFLOW_RUNS_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
48
|
+
workflowId: z.ZodString;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
50
|
workflowId: string;
|
|
48
51
|
}, {
|
|
49
52
|
workflowId: string;
|
|
50
|
-
}>,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
}>, z.ZodObject<{
|
|
54
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
perPage: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
53
58
|
} & {
|
|
54
|
-
fromDate:
|
|
55
|
-
toDate:
|
|
56
|
-
resourceId:
|
|
57
|
-
status:
|
|
58
|
-
}, "strip",
|
|
59
|
-
limit: number;
|
|
60
|
-
offset: number;
|
|
59
|
+
fromDate: z.ZodOptional<z.ZodDate>;
|
|
60
|
+
toDate: z.ZodOptional<z.ZodDate>;
|
|
61
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
62
|
+
status: z.ZodOptional<z.ZodEnum<["running", "waiting", "suspended", "success", "failed", "canceled", "pending", "bailed"]>>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
64
|
status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | undefined;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
toDate?: Date | undefined;
|
|
65
|
-
}, {
|
|
66
|
-
status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | undefined;
|
|
67
|
-
limit?: number | undefined;
|
|
65
|
+
page?: number | undefined;
|
|
66
|
+
perPage?: number | undefined;
|
|
68
67
|
offset?: number | undefined;
|
|
69
|
-
resourceId?: string | undefined;
|
|
70
|
-
fromDate?: Date | undefined;
|
|
71
|
-
toDate?: Date | undefined;
|
|
72
|
-
}> | import("zod").ZodObject<{
|
|
73
|
-
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
74
|
-
offset: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
75
|
-
} & {
|
|
76
|
-
fromDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
77
|
-
toDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
78
|
-
resourceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
79
|
-
status: import("zod").ZodOptional<import("zod").ZodEnum<["running", "waiting", "suspended", "success", "failed", "canceled", "pending", "bailed"]>>;
|
|
80
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
81
|
-
offset: number;
|
|
82
|
-
status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | undefined;
|
|
83
68
|
limit?: number | undefined;
|
|
84
69
|
resourceId?: string | undefined;
|
|
85
70
|
fromDate?: Date | undefined;
|
|
86
71
|
toDate?: Date | undefined;
|
|
87
72
|
}, {
|
|
88
73
|
status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | undefined;
|
|
89
|
-
|
|
74
|
+
page?: number | undefined;
|
|
75
|
+
perPage?: number | undefined;
|
|
90
76
|
offset?: number | undefined;
|
|
77
|
+
limit?: number | undefined;
|
|
91
78
|
resourceId?: string | undefined;
|
|
92
79
|
fromDate?: Date | undefined;
|
|
93
80
|
toDate?: Date | undefined;
|
|
@@ -113,43 +100,43 @@ export declare const GET_WORKFLOW_RUN_BY_ID_ROUTE: import("../server-adapter").S
|
|
|
113
100
|
updatedAt: Date;
|
|
114
101
|
resourceId?: string | undefined;
|
|
115
102
|
}, "json">;
|
|
116
|
-
export declare const CREATE_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
117
|
-
workflowId:
|
|
118
|
-
}, "strip",
|
|
103
|
+
export declare const CREATE_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
104
|
+
workflowId: z.ZodString;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
106
|
workflowId: string;
|
|
120
107
|
}, {
|
|
121
108
|
workflowId: string;
|
|
122
|
-
}>,
|
|
123
|
-
runId:
|
|
124
|
-
}, "strip",
|
|
109
|
+
}>, z.ZodObject<{
|
|
110
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
112
|
runId?: string | undefined;
|
|
126
113
|
}, {
|
|
127
114
|
runId?: string | undefined;
|
|
128
115
|
}>, undefined>, {
|
|
129
116
|
runId: string;
|
|
130
117
|
}, "json">;
|
|
131
|
-
export declare const STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
132
|
-
workflowId:
|
|
133
|
-
}, "strip",
|
|
118
|
+
export declare const STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
119
|
+
workflowId: z.ZodString;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
134
121
|
workflowId: string;
|
|
135
122
|
}, {
|
|
136
123
|
workflowId: string;
|
|
137
|
-
}>,
|
|
138
|
-
runId:
|
|
139
|
-
}, "strip",
|
|
124
|
+
}>, z.ZodObject<{
|
|
125
|
+
runId: z.ZodString;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
127
|
runId: string;
|
|
141
128
|
}, {
|
|
142
129
|
runId: string;
|
|
143
|
-
}>,
|
|
144
|
-
inputData:
|
|
145
|
-
initialState:
|
|
146
|
-
requestContext:
|
|
147
|
-
tracingOptions:
|
|
148
|
-
metadata:
|
|
149
|
-
requestContextKeys:
|
|
150
|
-
traceId:
|
|
151
|
-
parentSpanId:
|
|
152
|
-
}, "strip",
|
|
130
|
+
}>, z.ZodObject<{
|
|
131
|
+
inputData: z.ZodOptional<z.ZodUnknown>;
|
|
132
|
+
initialState: z.ZodOptional<z.ZodUnknown>;
|
|
133
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
134
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
136
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
137
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
138
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
140
|
metadata?: Record<string, unknown> | undefined;
|
|
154
141
|
requestContextKeys?: string[] | undefined;
|
|
155
142
|
traceId?: string | undefined;
|
|
@@ -161,8 +148,8 @@ export declare const STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRo
|
|
|
161
148
|
parentSpanId?: string | undefined;
|
|
162
149
|
}>>;
|
|
163
150
|
} & {
|
|
164
|
-
closeOnSuspend:
|
|
165
|
-
}, "strip",
|
|
151
|
+
closeOnSuspend: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
166
153
|
inputData?: unknown;
|
|
167
154
|
initialState?: unknown;
|
|
168
155
|
requestContext?: Record<string, unknown> | undefined;
|
|
@@ -185,28 +172,28 @@ export declare const STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRo
|
|
|
185
172
|
} | undefined;
|
|
186
173
|
closeOnSuspend?: boolean | undefined;
|
|
187
174
|
}>>, unknown, "stream">;
|
|
188
|
-
export declare const STREAM_VNEXT_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
189
|
-
workflowId:
|
|
190
|
-
}, "strip",
|
|
175
|
+
export declare const STREAM_VNEXT_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
176
|
+
workflowId: z.ZodString;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
191
178
|
workflowId: string;
|
|
192
179
|
}, {
|
|
193
180
|
workflowId: string;
|
|
194
|
-
}>,
|
|
195
|
-
runId:
|
|
196
|
-
}, "strip",
|
|
181
|
+
}>, z.ZodObject<{
|
|
182
|
+
runId: z.ZodString;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
184
|
runId: string;
|
|
198
185
|
}, {
|
|
199
186
|
runId: string;
|
|
200
|
-
}>,
|
|
201
|
-
inputData:
|
|
202
|
-
initialState:
|
|
203
|
-
requestContext:
|
|
204
|
-
tracingOptions:
|
|
205
|
-
metadata:
|
|
206
|
-
requestContextKeys:
|
|
207
|
-
traceId:
|
|
208
|
-
parentSpanId:
|
|
209
|
-
}, "strip",
|
|
187
|
+
}>, z.ZodObject<{
|
|
188
|
+
inputData: z.ZodOptional<z.ZodUnknown>;
|
|
189
|
+
initialState: z.ZodOptional<z.ZodUnknown>;
|
|
190
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
191
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
193
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
194
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
195
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
197
|
metadata?: Record<string, unknown> | undefined;
|
|
211
198
|
requestContextKeys?: string[] | undefined;
|
|
212
199
|
traceId?: string | undefined;
|
|
@@ -218,8 +205,8 @@ export declare const STREAM_VNEXT_WORKFLOW_ROUTE: import("../server-adapter").Se
|
|
|
218
205
|
parentSpanId?: string | undefined;
|
|
219
206
|
}>>;
|
|
220
207
|
} & {
|
|
221
|
-
closeOnSuspend:
|
|
222
|
-
}, "strip",
|
|
208
|
+
closeOnSuspend: z.ZodOptional<z.ZodBoolean>;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
210
|
inputData?: unknown;
|
|
224
211
|
initialState?: unknown;
|
|
225
212
|
requestContext?: Record<string, unknown> | undefined;
|
|
@@ -242,28 +229,28 @@ export declare const STREAM_VNEXT_WORKFLOW_ROUTE: import("../server-adapter").Se
|
|
|
242
229
|
} | undefined;
|
|
243
230
|
closeOnSuspend?: boolean | undefined;
|
|
244
231
|
}>>, unknown, "stream">;
|
|
245
|
-
export declare const RESUME_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
246
|
-
workflowId:
|
|
247
|
-
}, "strip",
|
|
232
|
+
export declare const RESUME_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
233
|
+
workflowId: z.ZodString;
|
|
234
|
+
}, "strip", z.ZodTypeAny, {
|
|
248
235
|
workflowId: string;
|
|
249
236
|
}, {
|
|
250
237
|
workflowId: string;
|
|
251
|
-
}>,
|
|
252
|
-
runId:
|
|
253
|
-
}, "strip",
|
|
238
|
+
}>, z.ZodObject<{
|
|
239
|
+
runId: z.ZodString;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
254
241
|
runId: string;
|
|
255
242
|
}, {
|
|
256
243
|
runId: string;
|
|
257
|
-
}>,
|
|
258
|
-
step:
|
|
259
|
-
resumeData:
|
|
260
|
-
requestContext:
|
|
261
|
-
tracingOptions:
|
|
262
|
-
metadata:
|
|
263
|
-
requestContextKeys:
|
|
264
|
-
traceId:
|
|
265
|
-
parentSpanId:
|
|
266
|
-
}, "strip",
|
|
244
|
+
}>, z.ZodObject<{
|
|
245
|
+
step: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
246
|
+
resumeData: z.ZodOptional<z.ZodUnknown>;
|
|
247
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
248
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
249
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
250
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
251
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
252
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
253
|
+
}, "strip", z.ZodTypeAny, {
|
|
267
254
|
metadata?: Record<string, unknown> | undefined;
|
|
268
255
|
requestContextKeys?: string[] | undefined;
|
|
269
256
|
traceId?: string | undefined;
|
|
@@ -274,7 +261,7 @@ export declare const RESUME_STREAM_WORKFLOW_ROUTE: import("../server-adapter").S
|
|
|
274
261
|
traceId?: string | undefined;
|
|
275
262
|
parentSpanId?: string | undefined;
|
|
276
263
|
}>>;
|
|
277
|
-
}, "strip",
|
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
265
|
step?: string | string[] | undefined;
|
|
279
266
|
requestContext?: Record<string, unknown> | undefined;
|
|
280
267
|
tracingOptions?: {
|
|
@@ -303,28 +290,28 @@ export declare const GET_WORKFLOW_RUN_EXECUTION_RESULT_ROUTE: import("../server-
|
|
|
303
290
|
error?: unknown;
|
|
304
291
|
result?: unknown;
|
|
305
292
|
}, "json">;
|
|
306
|
-
export declare const START_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
307
|
-
workflowId:
|
|
308
|
-
}, "strip",
|
|
293
|
+
export declare const START_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
294
|
+
workflowId: z.ZodString;
|
|
295
|
+
}, "strip", z.ZodTypeAny, {
|
|
309
296
|
workflowId: string;
|
|
310
297
|
}, {
|
|
311
298
|
workflowId: string;
|
|
312
|
-
}>,
|
|
313
|
-
runId:
|
|
314
|
-
}, "strip",
|
|
299
|
+
}>, z.ZodObject<{
|
|
300
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
301
|
+
}, "strip", z.ZodTypeAny, {
|
|
315
302
|
runId?: string | undefined;
|
|
316
303
|
}, {
|
|
317
304
|
runId?: string | undefined;
|
|
318
|
-
}>,
|
|
319
|
-
inputData:
|
|
320
|
-
initialState:
|
|
321
|
-
requestContext:
|
|
322
|
-
tracingOptions:
|
|
323
|
-
metadata:
|
|
324
|
-
requestContextKeys:
|
|
325
|
-
traceId:
|
|
326
|
-
parentSpanId:
|
|
327
|
-
}, "strip",
|
|
305
|
+
}>, z.ZodObject<{
|
|
306
|
+
inputData: z.ZodOptional<z.ZodUnknown>;
|
|
307
|
+
initialState: z.ZodOptional<z.ZodUnknown>;
|
|
308
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
309
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
310
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
311
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
312
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
313
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
|
328
315
|
metadata?: Record<string, unknown> | undefined;
|
|
329
316
|
requestContextKeys?: string[] | undefined;
|
|
330
317
|
traceId?: string | undefined;
|
|
@@ -335,7 +322,7 @@ export declare const START_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").Ser
|
|
|
335
322
|
traceId?: string | undefined;
|
|
336
323
|
parentSpanId?: string | undefined;
|
|
337
324
|
}>>;
|
|
338
|
-
}, "strip",
|
|
325
|
+
}, "strip", z.ZodTypeAny, {
|
|
339
326
|
inputData?: unknown;
|
|
340
327
|
initialState?: unknown;
|
|
341
328
|
requestContext?: Record<string, unknown> | undefined;
|
|
@@ -360,28 +347,28 @@ export declare const START_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").Ser
|
|
|
360
347
|
error?: unknown;
|
|
361
348
|
result?: unknown;
|
|
362
349
|
}, "json">;
|
|
363
|
-
export declare const START_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
364
|
-
workflowId:
|
|
365
|
-
}, "strip",
|
|
350
|
+
export declare const START_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
351
|
+
workflowId: z.ZodString;
|
|
352
|
+
}, "strip", z.ZodTypeAny, {
|
|
366
353
|
workflowId: string;
|
|
367
354
|
}, {
|
|
368
355
|
workflowId: string;
|
|
369
|
-
}>,
|
|
370
|
-
runId:
|
|
371
|
-
}, "strip",
|
|
356
|
+
}>, z.ZodObject<{
|
|
357
|
+
runId: z.ZodString;
|
|
358
|
+
}, "strip", z.ZodTypeAny, {
|
|
372
359
|
runId: string;
|
|
373
360
|
}, {
|
|
374
361
|
runId: string;
|
|
375
|
-
}>,
|
|
376
|
-
inputData:
|
|
377
|
-
initialState:
|
|
378
|
-
requestContext:
|
|
379
|
-
tracingOptions:
|
|
380
|
-
metadata:
|
|
381
|
-
requestContextKeys:
|
|
382
|
-
traceId:
|
|
383
|
-
parentSpanId:
|
|
384
|
-
}, "strip",
|
|
362
|
+
}>, z.ZodObject<{
|
|
363
|
+
inputData: z.ZodOptional<z.ZodUnknown>;
|
|
364
|
+
initialState: z.ZodOptional<z.ZodUnknown>;
|
|
365
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
366
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
367
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
368
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
369
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
370
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
371
|
+
}, "strip", z.ZodTypeAny, {
|
|
385
372
|
metadata?: Record<string, unknown> | undefined;
|
|
386
373
|
requestContextKeys?: string[] | undefined;
|
|
387
374
|
traceId?: string | undefined;
|
|
@@ -392,7 +379,7 @@ export declare const START_WORKFLOW_RUN_ROUTE: import("../server-adapter").Serve
|
|
|
392
379
|
traceId?: string | undefined;
|
|
393
380
|
parentSpanId?: string | undefined;
|
|
394
381
|
}>>;
|
|
395
|
-
}, "strip",
|
|
382
|
+
}, "strip", z.ZodTypeAny, {
|
|
396
383
|
inputData?: unknown;
|
|
397
384
|
initialState?: unknown;
|
|
398
385
|
requestContext?: Record<string, unknown> | undefined;
|
|
@@ -415,54 +402,54 @@ export declare const START_WORKFLOW_RUN_ROUTE: import("../server-adapter").Serve
|
|
|
415
402
|
}>>, {
|
|
416
403
|
message: string;
|
|
417
404
|
}, "json">;
|
|
418
|
-
export declare const OBSERVE_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
419
|
-
workflowId:
|
|
420
|
-
}, "strip",
|
|
405
|
+
export declare const OBSERVE_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
406
|
+
workflowId: z.ZodString;
|
|
407
|
+
}, "strip", z.ZodTypeAny, {
|
|
421
408
|
workflowId: string;
|
|
422
409
|
}, {
|
|
423
410
|
workflowId: string;
|
|
424
|
-
}>,
|
|
425
|
-
runId:
|
|
426
|
-
}, "strip",
|
|
411
|
+
}>, z.ZodObject<{
|
|
412
|
+
runId: z.ZodString;
|
|
413
|
+
}, "strip", z.ZodTypeAny, {
|
|
427
414
|
runId: string;
|
|
428
415
|
}, {
|
|
429
416
|
runId: string;
|
|
430
417
|
}>, undefined>, any, "stream">;
|
|
431
|
-
export declare const OBSERVE_STREAM_VNEXT_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
432
|
-
workflowId:
|
|
433
|
-
}, "strip",
|
|
418
|
+
export declare const OBSERVE_STREAM_VNEXT_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
419
|
+
workflowId: z.ZodString;
|
|
420
|
+
}, "strip", z.ZodTypeAny, {
|
|
434
421
|
workflowId: string;
|
|
435
422
|
}, {
|
|
436
423
|
workflowId: string;
|
|
437
|
-
}>,
|
|
438
|
-
runId:
|
|
439
|
-
}, "strip",
|
|
424
|
+
}>, z.ZodObject<{
|
|
425
|
+
runId: z.ZodString;
|
|
426
|
+
}, "strip", z.ZodTypeAny, {
|
|
440
427
|
runId: string;
|
|
441
428
|
}, {
|
|
442
429
|
runId: string;
|
|
443
430
|
}>, undefined>, any, "stream">;
|
|
444
|
-
export declare const RESUME_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
445
|
-
workflowId:
|
|
446
|
-
}, "strip",
|
|
431
|
+
export declare const RESUME_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
432
|
+
workflowId: z.ZodString;
|
|
433
|
+
}, "strip", z.ZodTypeAny, {
|
|
447
434
|
workflowId: string;
|
|
448
435
|
}, {
|
|
449
436
|
workflowId: string;
|
|
450
|
-
}>,
|
|
451
|
-
runId:
|
|
452
|
-
}, "strip",
|
|
437
|
+
}>, z.ZodObject<{
|
|
438
|
+
runId: z.ZodString;
|
|
439
|
+
}, "strip", z.ZodTypeAny, {
|
|
453
440
|
runId: string;
|
|
454
441
|
}, {
|
|
455
442
|
runId: string;
|
|
456
|
-
}>,
|
|
457
|
-
step:
|
|
458
|
-
resumeData:
|
|
459
|
-
requestContext:
|
|
460
|
-
tracingOptions:
|
|
461
|
-
metadata:
|
|
462
|
-
requestContextKeys:
|
|
463
|
-
traceId:
|
|
464
|
-
parentSpanId:
|
|
465
|
-
}, "strip",
|
|
443
|
+
}>, z.ZodObject<{
|
|
444
|
+
step: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
445
|
+
resumeData: z.ZodOptional<z.ZodUnknown>;
|
|
446
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
447
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
448
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
449
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
450
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
451
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
452
|
+
}, "strip", z.ZodTypeAny, {
|
|
466
453
|
metadata?: Record<string, unknown> | undefined;
|
|
467
454
|
requestContextKeys?: string[] | undefined;
|
|
468
455
|
traceId?: string | undefined;
|
|
@@ -473,7 +460,7 @@ export declare const RESUME_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").Se
|
|
|
473
460
|
traceId?: string | undefined;
|
|
474
461
|
parentSpanId?: string | undefined;
|
|
475
462
|
}>>;
|
|
476
|
-
}, "strip",
|
|
463
|
+
}, "strip", z.ZodTypeAny, {
|
|
477
464
|
step?: string | string[] | undefined;
|
|
478
465
|
requestContext?: Record<string, unknown> | undefined;
|
|
479
466
|
tracingOptions?: {
|
|
@@ -498,28 +485,28 @@ export declare const RESUME_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").Se
|
|
|
498
485
|
error?: unknown;
|
|
499
486
|
result?: unknown;
|
|
500
487
|
}, "json">;
|
|
501
|
-
export declare const RESUME_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
502
|
-
workflowId:
|
|
503
|
-
}, "strip",
|
|
488
|
+
export declare const RESUME_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
489
|
+
workflowId: z.ZodString;
|
|
490
|
+
}, "strip", z.ZodTypeAny, {
|
|
504
491
|
workflowId: string;
|
|
505
492
|
}, {
|
|
506
493
|
workflowId: string;
|
|
507
|
-
}>,
|
|
508
|
-
runId:
|
|
509
|
-
}, "strip",
|
|
494
|
+
}>, z.ZodObject<{
|
|
495
|
+
runId: z.ZodString;
|
|
496
|
+
}, "strip", z.ZodTypeAny, {
|
|
510
497
|
runId: string;
|
|
511
498
|
}, {
|
|
512
499
|
runId: string;
|
|
513
|
-
}>,
|
|
514
|
-
step:
|
|
515
|
-
resumeData:
|
|
516
|
-
requestContext:
|
|
517
|
-
tracingOptions:
|
|
518
|
-
metadata:
|
|
519
|
-
requestContextKeys:
|
|
520
|
-
traceId:
|
|
521
|
-
parentSpanId:
|
|
522
|
-
}, "strip",
|
|
500
|
+
}>, z.ZodObject<{
|
|
501
|
+
step: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
502
|
+
resumeData: z.ZodOptional<z.ZodUnknown>;
|
|
503
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
504
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
505
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
506
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
507
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
508
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
509
|
+
}, "strip", z.ZodTypeAny, {
|
|
523
510
|
metadata?: Record<string, unknown> | undefined;
|
|
524
511
|
requestContextKeys?: string[] | undefined;
|
|
525
512
|
traceId?: string | undefined;
|
|
@@ -530,7 +517,7 @@ export declare const RESUME_WORKFLOW_ROUTE: import("../server-adapter").ServerRo
|
|
|
530
517
|
traceId?: string | undefined;
|
|
531
518
|
parentSpanId?: string | undefined;
|
|
532
519
|
}>>;
|
|
533
|
-
}, "strip",
|
|
520
|
+
}, "strip", z.ZodTypeAny, {
|
|
534
521
|
step?: string | string[] | undefined;
|
|
535
522
|
requestContext?: Record<string, unknown> | undefined;
|
|
536
523
|
tracingOptions?: {
|
|
@@ -553,26 +540,26 @@ export declare const RESUME_WORKFLOW_ROUTE: import("../server-adapter").ServerRo
|
|
|
553
540
|
}>>, {
|
|
554
541
|
message: string;
|
|
555
542
|
}, "json">;
|
|
556
|
-
export declare const RESTART_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
557
|
-
workflowId:
|
|
558
|
-
}, "strip",
|
|
543
|
+
export declare const RESTART_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
544
|
+
workflowId: z.ZodString;
|
|
545
|
+
}, "strip", z.ZodTypeAny, {
|
|
559
546
|
workflowId: string;
|
|
560
547
|
}, {
|
|
561
548
|
workflowId: string;
|
|
562
|
-
}>,
|
|
563
|
-
runId:
|
|
564
|
-
}, "strip",
|
|
549
|
+
}>, z.ZodObject<{
|
|
550
|
+
runId: z.ZodString;
|
|
551
|
+
}, "strip", z.ZodTypeAny, {
|
|
565
552
|
runId: string;
|
|
566
553
|
}, {
|
|
567
554
|
runId: string;
|
|
568
|
-
}>,
|
|
569
|
-
requestContext:
|
|
570
|
-
tracingOptions:
|
|
571
|
-
metadata:
|
|
572
|
-
requestContextKeys:
|
|
573
|
-
traceId:
|
|
574
|
-
parentSpanId:
|
|
575
|
-
}, "strip",
|
|
555
|
+
}>, z.ZodObject<{
|
|
556
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
557
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
558
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
559
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
560
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
561
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
562
|
+
}, "strip", z.ZodTypeAny, {
|
|
576
563
|
metadata?: Record<string, unknown> | undefined;
|
|
577
564
|
requestContextKeys?: string[] | undefined;
|
|
578
565
|
traceId?: string | undefined;
|
|
@@ -583,7 +570,7 @@ export declare const RESTART_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").S
|
|
|
583
570
|
traceId?: string | undefined;
|
|
584
571
|
parentSpanId?: string | undefined;
|
|
585
572
|
}>>;
|
|
586
|
-
}, "strip",
|
|
573
|
+
}, "strip", z.ZodTypeAny, {
|
|
587
574
|
requestContext?: Record<string, unknown> | undefined;
|
|
588
575
|
tracingOptions?: {
|
|
589
576
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -604,26 +591,26 @@ export declare const RESTART_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").S
|
|
|
604
591
|
error?: unknown;
|
|
605
592
|
result?: unknown;
|
|
606
593
|
}, "json">;
|
|
607
|
-
export declare const RESTART_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
608
|
-
workflowId:
|
|
609
|
-
}, "strip",
|
|
594
|
+
export declare const RESTART_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
595
|
+
workflowId: z.ZodString;
|
|
596
|
+
}, "strip", z.ZodTypeAny, {
|
|
610
597
|
workflowId: string;
|
|
611
598
|
}, {
|
|
612
599
|
workflowId: string;
|
|
613
|
-
}>,
|
|
614
|
-
runId:
|
|
615
|
-
}, "strip",
|
|
600
|
+
}>, z.ZodObject<{
|
|
601
|
+
runId: z.ZodString;
|
|
602
|
+
}, "strip", z.ZodTypeAny, {
|
|
616
603
|
runId: string;
|
|
617
604
|
}, {
|
|
618
605
|
runId: string;
|
|
619
|
-
}>,
|
|
620
|
-
requestContext:
|
|
621
|
-
tracingOptions:
|
|
622
|
-
metadata:
|
|
623
|
-
requestContextKeys:
|
|
624
|
-
traceId:
|
|
625
|
-
parentSpanId:
|
|
626
|
-
}, "strip",
|
|
606
|
+
}>, z.ZodObject<{
|
|
607
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
608
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
609
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
610
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
611
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
612
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
613
|
+
}, "strip", z.ZodTypeAny, {
|
|
627
614
|
metadata?: Record<string, unknown> | undefined;
|
|
628
615
|
requestContextKeys?: string[] | undefined;
|
|
629
616
|
traceId?: string | undefined;
|
|
@@ -634,7 +621,7 @@ export declare const RESTART_WORKFLOW_ROUTE: import("../server-adapter").ServerR
|
|
|
634
621
|
traceId?: string | undefined;
|
|
635
622
|
parentSpanId?: string | undefined;
|
|
636
623
|
}>>;
|
|
637
|
-
}, "strip",
|
|
624
|
+
}, "strip", z.ZodTypeAny, {
|
|
638
625
|
requestContext?: Record<string, unknown> | undefined;
|
|
639
626
|
tracingOptions?: {
|
|
640
627
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -663,32 +650,32 @@ export declare const RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ROUTE: import("../server-a
|
|
|
663
650
|
}, {
|
|
664
651
|
message: string;
|
|
665
652
|
}, "json">;
|
|
666
|
-
export declare const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
667
|
-
workflowId:
|
|
668
|
-
}, "strip",
|
|
653
|
+
export declare const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
654
|
+
workflowId: z.ZodString;
|
|
655
|
+
}, "strip", z.ZodTypeAny, {
|
|
669
656
|
workflowId: string;
|
|
670
657
|
}, {
|
|
671
658
|
workflowId: string;
|
|
672
|
-
}>,
|
|
673
|
-
runId:
|
|
674
|
-
}, "strip",
|
|
659
|
+
}>, z.ZodObject<{
|
|
660
|
+
runId: z.ZodString;
|
|
661
|
+
}, "strip", z.ZodTypeAny, {
|
|
675
662
|
runId: string;
|
|
676
663
|
}, {
|
|
677
664
|
runId: string;
|
|
678
|
-
}>,
|
|
679
|
-
inputData:
|
|
680
|
-
resumeData:
|
|
681
|
-
initialState:
|
|
682
|
-
step:
|
|
683
|
-
context:
|
|
684
|
-
nestedStepsContext:
|
|
685
|
-
requestContext:
|
|
686
|
-
tracingOptions:
|
|
687
|
-
metadata:
|
|
688
|
-
requestContextKeys:
|
|
689
|
-
traceId:
|
|
690
|
-
parentSpanId:
|
|
691
|
-
}, "strip",
|
|
665
|
+
}>, z.ZodObject<{
|
|
666
|
+
inputData: z.ZodOptional<z.ZodUnknown>;
|
|
667
|
+
resumeData: z.ZodOptional<z.ZodUnknown>;
|
|
668
|
+
initialState: z.ZodOptional<z.ZodUnknown>;
|
|
669
|
+
step: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
670
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
671
|
+
nestedStepsContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
672
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
673
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
674
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
675
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
676
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
677
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
678
|
+
}, "strip", z.ZodTypeAny, {
|
|
692
679
|
metadata?: Record<string, unknown> | undefined;
|
|
693
680
|
requestContextKeys?: string[] | undefined;
|
|
694
681
|
traceId?: string | undefined;
|
|
@@ -699,7 +686,7 @@ export declare const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE: import("../server-adapter
|
|
|
699
686
|
traceId?: string | undefined;
|
|
700
687
|
parentSpanId?: string | undefined;
|
|
701
688
|
}>>;
|
|
702
|
-
}, "strip",
|
|
689
|
+
}, "strip", z.ZodTypeAny, {
|
|
703
690
|
step: string | string[];
|
|
704
691
|
context?: Record<string, any> | undefined;
|
|
705
692
|
inputData?: unknown;
|
|
@@ -732,32 +719,32 @@ export declare const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE: import("../server-adapter
|
|
|
732
719
|
error?: unknown;
|
|
733
720
|
result?: unknown;
|
|
734
721
|
}, "json">;
|
|
735
|
-
export declare const TIME_TRAVEL_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
736
|
-
workflowId:
|
|
737
|
-
}, "strip",
|
|
722
|
+
export declare const TIME_TRAVEL_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
723
|
+
workflowId: z.ZodString;
|
|
724
|
+
}, "strip", z.ZodTypeAny, {
|
|
738
725
|
workflowId: string;
|
|
739
726
|
}, {
|
|
740
727
|
workflowId: string;
|
|
741
|
-
}>,
|
|
742
|
-
runId:
|
|
743
|
-
}, "strip",
|
|
728
|
+
}>, z.ZodObject<{
|
|
729
|
+
runId: z.ZodString;
|
|
730
|
+
}, "strip", z.ZodTypeAny, {
|
|
744
731
|
runId: string;
|
|
745
732
|
}, {
|
|
746
733
|
runId: string;
|
|
747
|
-
}>,
|
|
748
|
-
inputData:
|
|
749
|
-
resumeData:
|
|
750
|
-
initialState:
|
|
751
|
-
step:
|
|
752
|
-
context:
|
|
753
|
-
nestedStepsContext:
|
|
754
|
-
requestContext:
|
|
755
|
-
tracingOptions:
|
|
756
|
-
metadata:
|
|
757
|
-
requestContextKeys:
|
|
758
|
-
traceId:
|
|
759
|
-
parentSpanId:
|
|
760
|
-
}, "strip",
|
|
734
|
+
}>, z.ZodObject<{
|
|
735
|
+
inputData: z.ZodOptional<z.ZodUnknown>;
|
|
736
|
+
resumeData: z.ZodOptional<z.ZodUnknown>;
|
|
737
|
+
initialState: z.ZodOptional<z.ZodUnknown>;
|
|
738
|
+
step: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
739
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
740
|
+
nestedStepsContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
741
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
742
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
743
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
744
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
745
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
746
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
747
|
+
}, "strip", z.ZodTypeAny, {
|
|
761
748
|
metadata?: Record<string, unknown> | undefined;
|
|
762
749
|
requestContextKeys?: string[] | undefined;
|
|
763
750
|
traceId?: string | undefined;
|
|
@@ -768,7 +755,7 @@ export declare const TIME_TRAVEL_WORKFLOW_ROUTE: import("../server-adapter").Ser
|
|
|
768
755
|
traceId?: string | undefined;
|
|
769
756
|
parentSpanId?: string | undefined;
|
|
770
757
|
}>>;
|
|
771
|
-
}, "strip",
|
|
758
|
+
}, "strip", z.ZodTypeAny, {
|
|
772
759
|
step: string | string[];
|
|
773
760
|
context?: Record<string, any> | undefined;
|
|
774
761
|
inputData?: unknown;
|
|
@@ -799,32 +786,32 @@ export declare const TIME_TRAVEL_WORKFLOW_ROUTE: import("../server-adapter").Ser
|
|
|
799
786
|
}>>, {
|
|
800
787
|
message: string;
|
|
801
788
|
}, "json">;
|
|
802
|
-
export declare const TIME_TRAVEL_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
803
|
-
workflowId:
|
|
804
|
-
}, "strip",
|
|
789
|
+
export declare const TIME_TRAVEL_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
790
|
+
workflowId: z.ZodString;
|
|
791
|
+
}, "strip", z.ZodTypeAny, {
|
|
805
792
|
workflowId: string;
|
|
806
793
|
}, {
|
|
807
794
|
workflowId: string;
|
|
808
|
-
}>,
|
|
809
|
-
runId:
|
|
810
|
-
}, "strip",
|
|
795
|
+
}>, z.ZodObject<{
|
|
796
|
+
runId: z.ZodString;
|
|
797
|
+
}, "strip", z.ZodTypeAny, {
|
|
811
798
|
runId: string;
|
|
812
799
|
}, {
|
|
813
800
|
runId: string;
|
|
814
|
-
}>,
|
|
815
|
-
inputData:
|
|
816
|
-
resumeData:
|
|
817
|
-
initialState:
|
|
818
|
-
step:
|
|
819
|
-
context:
|
|
820
|
-
nestedStepsContext:
|
|
821
|
-
requestContext:
|
|
822
|
-
tracingOptions:
|
|
823
|
-
metadata:
|
|
824
|
-
requestContextKeys:
|
|
825
|
-
traceId:
|
|
826
|
-
parentSpanId:
|
|
827
|
-
}, "strip",
|
|
801
|
+
}>, z.ZodObject<{
|
|
802
|
+
inputData: z.ZodOptional<z.ZodUnknown>;
|
|
803
|
+
resumeData: z.ZodOptional<z.ZodUnknown>;
|
|
804
|
+
initialState: z.ZodOptional<z.ZodUnknown>;
|
|
805
|
+
step: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
806
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
807
|
+
nestedStepsContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
808
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
809
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
810
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
811
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
812
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
813
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
814
|
+
}, "strip", z.ZodTypeAny, {
|
|
828
815
|
metadata?: Record<string, unknown> | undefined;
|
|
829
816
|
requestContextKeys?: string[] | undefined;
|
|
830
817
|
traceId?: string | undefined;
|
|
@@ -835,7 +822,7 @@ export declare const TIME_TRAVEL_STREAM_WORKFLOW_ROUTE: import("../server-adapte
|
|
|
835
822
|
traceId?: string | undefined;
|
|
836
823
|
parentSpanId?: string | undefined;
|
|
837
824
|
}>>;
|
|
838
|
-
}, "strip",
|
|
825
|
+
}, "strip", z.ZodTypeAny, {
|
|
839
826
|
step: string | string[];
|
|
840
827
|
context?: Record<string, any> | undefined;
|
|
841
828
|
inputData?: unknown;
|
|
@@ -870,28 +857,28 @@ export declare const CANCEL_WORKFLOW_RUN_ROUTE: import("../server-adapter").Serv
|
|
|
870
857
|
}, {
|
|
871
858
|
message: string;
|
|
872
859
|
}, "json">;
|
|
873
|
-
export declare const STREAM_LEGACY_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
874
|
-
workflowId:
|
|
875
|
-
}, "strip",
|
|
860
|
+
export declare const STREAM_LEGACY_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
861
|
+
workflowId: z.ZodString;
|
|
862
|
+
}, "strip", z.ZodTypeAny, {
|
|
876
863
|
workflowId: string;
|
|
877
864
|
}, {
|
|
878
865
|
workflowId: string;
|
|
879
|
-
}>,
|
|
880
|
-
runId:
|
|
881
|
-
}, "strip",
|
|
866
|
+
}>, z.ZodObject<{
|
|
867
|
+
runId: z.ZodString;
|
|
868
|
+
}, "strip", z.ZodTypeAny, {
|
|
882
869
|
runId: string;
|
|
883
870
|
}, {
|
|
884
871
|
runId: string;
|
|
885
|
-
}>,
|
|
886
|
-
inputData:
|
|
887
|
-
initialState:
|
|
888
|
-
requestContext:
|
|
889
|
-
tracingOptions:
|
|
890
|
-
metadata:
|
|
891
|
-
requestContextKeys:
|
|
892
|
-
traceId:
|
|
893
|
-
parentSpanId:
|
|
894
|
-
}, "strip",
|
|
872
|
+
}>, z.ZodObject<{
|
|
873
|
+
inputData: z.ZodOptional<z.ZodUnknown>;
|
|
874
|
+
initialState: z.ZodOptional<z.ZodUnknown>;
|
|
875
|
+
requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
876
|
+
tracingOptions: z.ZodOptional<z.ZodObject<{
|
|
877
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
878
|
+
requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
879
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
880
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
881
|
+
}, "strip", z.ZodTypeAny, {
|
|
895
882
|
metadata?: Record<string, unknown> | undefined;
|
|
896
883
|
requestContextKeys?: string[] | undefined;
|
|
897
884
|
traceId?: string | undefined;
|
|
@@ -903,8 +890,8 @@ export declare const STREAM_LEGACY_WORKFLOW_ROUTE: import("../server-adapter").S
|
|
|
903
890
|
parentSpanId?: string | undefined;
|
|
904
891
|
}>>;
|
|
905
892
|
} & {
|
|
906
|
-
closeOnSuspend:
|
|
907
|
-
}, "strip",
|
|
893
|
+
closeOnSuspend: z.ZodOptional<z.ZodBoolean>;
|
|
894
|
+
}, "strip", z.ZodTypeAny, {
|
|
908
895
|
inputData?: unknown;
|
|
909
896
|
initialState?: unknown;
|
|
910
897
|
requestContext?: Record<string, unknown> | undefined;
|
|
@@ -927,15 +914,15 @@ export declare const STREAM_LEGACY_WORKFLOW_ROUTE: import("../server-adapter").S
|
|
|
927
914
|
} | undefined;
|
|
928
915
|
closeOnSuspend?: boolean | undefined;
|
|
929
916
|
}>>, any, "stream">;
|
|
930
|
-
export declare const OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<
|
|
931
|
-
workflowId:
|
|
932
|
-
}, "strip",
|
|
917
|
+
export declare const OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
|
|
918
|
+
workflowId: z.ZodString;
|
|
919
|
+
}, "strip", z.ZodTypeAny, {
|
|
933
920
|
workflowId: string;
|
|
934
921
|
}, {
|
|
935
922
|
workflowId: string;
|
|
936
|
-
}>,
|
|
937
|
-
runId:
|
|
938
|
-
}, "strip",
|
|
923
|
+
}>, z.ZodObject<{
|
|
924
|
+
runId: z.ZodString;
|
|
925
|
+
}, "strip", z.ZodTypeAny, {
|
|
939
926
|
runId: string;
|
|
940
927
|
}, {
|
|
941
928
|
runId: string;
|