@mastra/server 1.0.0-beta.19 → 1.0.0-beta.20
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 +104 -0
- package/dist/{chunk-MZXGNP3J.cjs → chunk-3PZVR6W3.cjs} +70 -106
- package/dist/chunk-3PZVR6W3.cjs.map +1 -0
- package/dist/{chunk-K73YS7YB.cjs → chunk-AQI6GLTN.cjs} +74 -74
- package/dist/{chunk-K73YS7YB.cjs.map → chunk-AQI6GLTN.cjs.map} +1 -1
- package/dist/{chunk-3XI22UQR.cjs → chunk-GWLR6K3H.cjs} +7 -3
- package/dist/chunk-GWLR6K3H.cjs.map +1 -0
- package/dist/{chunk-E646Y4FQ.js → chunk-H66LLFDL.js} +3 -3
- package/dist/chunk-H66LLFDL.js.map +1 -0
- package/dist/{chunk-7ZYZHQRF.cjs → chunk-IMPZBQ5U.cjs} +350 -216
- package/dist/chunk-IMPZBQ5U.cjs.map +1 -0
- package/dist/{chunk-MXJEVTGK.js → chunk-J6DCK7KG.js} +5 -11
- package/dist/chunk-J6DCK7KG.js.map +1 -0
- package/dist/{chunk-OCJ3BRZM.js → chunk-JQPDZZLI.js} +178 -51
- package/dist/chunk-JQPDZZLI.js.map +1 -0
- package/dist/{chunk-5ZYHM57F.cjs → chunk-KXYDJIKD.cjs} +177 -49
- package/dist/chunk-KXYDJIKD.cjs.map +1 -0
- package/dist/{chunk-SV4AUWGY.js → chunk-LOA7RQYO.js} +3 -3
- package/dist/{chunk-SV4AUWGY.js.map → chunk-LOA7RQYO.js.map} +1 -1
- package/dist/{chunk-AWK2DVRO.js → chunk-OKURLPIJ.js} +275 -138
- package/dist/chunk-OKURLPIJ.js.map +1 -0
- package/dist/{chunk-E4ZPLXZT.js → chunk-Q4BOUQ2O.js} +66 -100
- package/dist/chunk-Q4BOUQ2O.js.map +1 -0
- package/dist/{chunk-WBLT2HL3.js → chunk-QKXZF7YS.js} +7 -3
- package/dist/chunk-QKXZF7YS.js.map +1 -0
- package/dist/{chunk-BVIEHV3I.cjs → chunk-T3ZHTCEI.cjs} +2 -2
- package/dist/{chunk-BVIEHV3I.cjs.map → chunk-T3ZHTCEI.cjs.map} +1 -1
- package/dist/{chunk-BMLUV4BH.cjs → chunk-VX3VN7FN.cjs} +3 -3
- package/dist/chunk-VX3VN7FN.cjs.map +1 -0
- package/dist/{chunk-VYNS3ZKV.cjs → chunk-Y3VSCOCE.cjs} +7 -13
- package/dist/chunk-Y3VSCOCE.cjs.map +1 -0
- package/dist/{chunk-T2AYFHKB.js → chunk-ZRBZESWG.js} +2 -2
- package/dist/{chunk-T2AYFHKB.js.map → chunk-ZRBZESWG.js.map} +1 -1
- package/dist/{dist-AF7EUPXA.cjs → dist-7NTDEVLP.cjs} +28 -28
- package/dist/{dist-AF7EUPXA.cjs.map → dist-7NTDEVLP.cjs.map} +1 -1
- package/dist/{dist-4CMHRWC4.js → dist-B5GMANA6.js} +3 -3
- package/dist/{dist-4CMHRWC4.js.map → dist-B5GMANA6.js.map} +1 -1
- package/dist/dist-EDO7GEGI.js +3 -0
- package/dist/{dist-MEN73GGI.js.map → dist-EDO7GEGI.js.map} +1 -1
- package/dist/{dist-Q2ST4SUQ.cjs → dist-OF24ZMHH.cjs} +30 -30
- package/dist/{dist-Q2ST4SUQ.cjs.map → dist-OF24ZMHH.cjs.map} +1 -1
- package/dist/{dist-Y5SYUVLY.cjs → dist-P6YSNLL3.cjs} +20 -20
- package/dist/{dist-Y5SYUVLY.cjs.map → dist-P6YSNLL3.cjs.map} +1 -1
- package/dist/{dist-AEJONJSS.js → dist-SMBO5KVB.js} +3 -3
- package/dist/{dist-AEJONJSS.js.map → dist-SMBO5KVB.js.map} +1 -1
- package/dist/{dist-TE7XRSWH.js → dist-THPMW5QR.js} +3 -3
- package/dist/{dist-TE7XRSWH.js.map → dist-THPMW5QR.js.map} +1 -1
- package/dist/{dist-NVXXJWBO.cjs → dist-VZTG56X2.cjs} +26 -26
- package/dist/{dist-NVXXJWBO.cjs.map → dist-VZTG56X2.cjs.map} +1 -1
- package/dist/dist-ZLC23RVC.cjs +16 -0
- package/dist/{dist-2J26LQO2.cjs.map → dist-ZLC23RVC.cjs.map} +1 -1
- package/dist/{dist-VPYZNWNG.js → dist-ZOZ6MHJH.js} +3 -3
- package/dist/{dist-VPYZNWNG.js.map → dist-ZOZ6MHJH.js.map} +1 -1
- package/dist/docs/README.md +31 -0
- package/dist/docs/SKILL.md +32 -0
- package/dist/docs/SOURCE_MAP.json +6 -0
- package/dist/docs/server/01-custom-adapters.md +377 -0
- package/dist/docs/server/02-reference.md +828 -0
- package/dist/server/handlers/a2a.cjs +9 -9
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +16 -28
- package/dist/server/handlers/agent-builder.d.ts +51 -85
- 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 +24 -24
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/memory.cjs +28 -24
- package/dist/server/handlers/memory.d.ts +114 -30
- package/dist/server/handlers/memory.d.ts.map +1 -1
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/observability.d.ts +17 -17
- package/dist/server/handlers/observability.d.ts.map +1 -1
- package/dist/server/handlers/workflows.cjs +24 -36
- package/dist/server/handlers/workflows.d.ts +61 -108
- package/dist/server/handlers/workflows.d.ts.map +1 -1
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +10 -10
- package/dist/server/handlers.js +5 -5
- package/dist/server/schemas/agent-builder.d.ts +1 -1
- package/dist/server/schemas/agent-builder.d.ts.map +1 -1
- package/dist/server/schemas/memory.d.ts +161 -31
- package/dist/server/schemas/memory.d.ts.map +1 -1
- package/dist/server/schemas/workflows.d.ts +214 -34
- package/dist/server/schemas/workflows.d.ts.map +1 -1
- package/dist/server/server-adapter/index.cjs +102 -94
- package/dist/server/server-adapter/index.cjs.map +1 -1
- package/dist/server/server-adapter/index.d.ts +24 -6
- package/dist/server/server-adapter/index.d.ts.map +1 -1
- package/dist/server/server-adapter/index.js +20 -13
- package/dist/server/server-adapter/index.js.map +1 -1
- package/dist/server/server-adapter/routes/agent-builder.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/memory.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/workflows.d.ts.map +1 -1
- package/dist/server/utils.d.ts.map +1 -1
- package/package.json +10 -9
- package/dist/chunk-3XI22UQR.cjs.map +0 -1
- package/dist/chunk-5ZYHM57F.cjs.map +0 -1
- package/dist/chunk-7ZYZHQRF.cjs.map +0 -1
- package/dist/chunk-AWK2DVRO.js.map +0 -1
- package/dist/chunk-BMLUV4BH.cjs.map +0 -1
- package/dist/chunk-E4ZPLXZT.js.map +0 -1
- package/dist/chunk-E646Y4FQ.js.map +0 -1
- package/dist/chunk-MXJEVTGK.js.map +0 -1
- package/dist/chunk-MZXGNP3J.cjs.map +0 -1
- package/dist/chunk-OCJ3BRZM.js.map +0 -1
- package/dist/chunk-VYNS3ZKV.cjs.map +0 -1
- package/dist/chunk-WBLT2HL3.js.map +0 -1
- package/dist/dist-2J26LQO2.cjs +0 -16
- package/dist/dist-MEN73GGI.js +0 -3
|
@@ -26,22 +26,64 @@ export declare const workflowInfoSchema: z.ZodObject<{
|
|
|
26
26
|
steps: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
27
27
|
id: z.ZodString;
|
|
28
28
|
description: z.ZodOptional<z.ZodString>;
|
|
29
|
+
stateSchema: z.ZodOptional<z.ZodString>;
|
|
30
|
+
inputSchema: z.ZodOptional<z.ZodString>;
|
|
31
|
+
outputSchema: z.ZodOptional<z.ZodString>;
|
|
32
|
+
resumeSchema: z.ZodOptional<z.ZodString>;
|
|
33
|
+
suspendSchema: z.ZodOptional<z.ZodString>;
|
|
34
|
+
component: z.ZodOptional<z.ZodString>;
|
|
35
|
+
isWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
29
36
|
}, "strip", z.ZodTypeAny, {
|
|
30
37
|
id: string;
|
|
31
38
|
description?: string | undefined;
|
|
39
|
+
stateSchema?: string | undefined;
|
|
40
|
+
inputSchema?: string | undefined;
|
|
41
|
+
outputSchema?: string | undefined;
|
|
42
|
+
resumeSchema?: string | undefined;
|
|
43
|
+
suspendSchema?: string | undefined;
|
|
44
|
+
component?: string | undefined;
|
|
45
|
+
isWorkflow?: boolean | undefined;
|
|
32
46
|
}, {
|
|
33
47
|
id: string;
|
|
34
48
|
description?: string | undefined;
|
|
49
|
+
stateSchema?: string | undefined;
|
|
50
|
+
inputSchema?: string | undefined;
|
|
51
|
+
outputSchema?: string | undefined;
|
|
52
|
+
resumeSchema?: string | undefined;
|
|
53
|
+
suspendSchema?: string | undefined;
|
|
54
|
+
component?: string | undefined;
|
|
55
|
+
isWorkflow?: boolean | undefined;
|
|
35
56
|
}>>;
|
|
36
57
|
allSteps: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
37
58
|
id: z.ZodString;
|
|
38
59
|
description: z.ZodOptional<z.ZodString>;
|
|
60
|
+
stateSchema: z.ZodOptional<z.ZodString>;
|
|
61
|
+
inputSchema: z.ZodOptional<z.ZodString>;
|
|
62
|
+
outputSchema: z.ZodOptional<z.ZodString>;
|
|
63
|
+
resumeSchema: z.ZodOptional<z.ZodString>;
|
|
64
|
+
suspendSchema: z.ZodOptional<z.ZodString>;
|
|
65
|
+
component: z.ZodOptional<z.ZodString>;
|
|
66
|
+
isWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
39
67
|
}, "strip", z.ZodTypeAny, {
|
|
40
68
|
id: string;
|
|
41
69
|
description?: string | undefined;
|
|
70
|
+
stateSchema?: string | undefined;
|
|
71
|
+
inputSchema?: string | undefined;
|
|
72
|
+
outputSchema?: string | undefined;
|
|
73
|
+
resumeSchema?: string | undefined;
|
|
74
|
+
suspendSchema?: string | undefined;
|
|
75
|
+
component?: string | undefined;
|
|
76
|
+
isWorkflow?: boolean | undefined;
|
|
42
77
|
}, {
|
|
43
78
|
id: string;
|
|
44
79
|
description?: string | undefined;
|
|
80
|
+
stateSchema?: string | undefined;
|
|
81
|
+
inputSchema?: string | undefined;
|
|
82
|
+
outputSchema?: string | undefined;
|
|
83
|
+
resumeSchema?: string | undefined;
|
|
84
|
+
suspendSchema?: string | undefined;
|
|
85
|
+
component?: string | undefined;
|
|
86
|
+
isWorkflow?: boolean | undefined;
|
|
45
87
|
}>>;
|
|
46
88
|
name: z.ZodOptional<z.ZodString>;
|
|
47
89
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -54,16 +96,31 @@ export declare const workflowInfoSchema: z.ZodObject<{
|
|
|
54
96
|
}>, "many">;
|
|
55
97
|
inputSchema: z.ZodOptional<z.ZodString>;
|
|
56
98
|
outputSchema: z.ZodOptional<z.ZodString>;
|
|
99
|
+
stateSchema: z.ZodOptional<z.ZodString>;
|
|
57
100
|
options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
58
101
|
isProcessorWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
59
102
|
}, "strip", z.ZodTypeAny, {
|
|
60
103
|
steps: Record<string, {
|
|
61
104
|
id: string;
|
|
62
105
|
description?: string | undefined;
|
|
106
|
+
stateSchema?: string | undefined;
|
|
107
|
+
inputSchema?: string | undefined;
|
|
108
|
+
outputSchema?: string | undefined;
|
|
109
|
+
resumeSchema?: string | undefined;
|
|
110
|
+
suspendSchema?: string | undefined;
|
|
111
|
+
component?: string | undefined;
|
|
112
|
+
isWorkflow?: boolean | undefined;
|
|
63
113
|
}>;
|
|
64
114
|
allSteps: Record<string, {
|
|
65
115
|
id: string;
|
|
66
116
|
description?: string | undefined;
|
|
117
|
+
stateSchema?: string | undefined;
|
|
118
|
+
inputSchema?: string | undefined;
|
|
119
|
+
outputSchema?: string | undefined;
|
|
120
|
+
resumeSchema?: string | undefined;
|
|
121
|
+
suspendSchema?: string | undefined;
|
|
122
|
+
component?: string | undefined;
|
|
123
|
+
isWorkflow?: boolean | undefined;
|
|
67
124
|
}>;
|
|
68
125
|
stepGraph: {
|
|
69
126
|
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
@@ -71,6 +128,7 @@ export declare const workflowInfoSchema: z.ZodObject<{
|
|
|
71
128
|
options?: {} | undefined;
|
|
72
129
|
name?: string | undefined;
|
|
73
130
|
description?: string | undefined;
|
|
131
|
+
stateSchema?: string | undefined;
|
|
74
132
|
inputSchema?: string | undefined;
|
|
75
133
|
outputSchema?: string | undefined;
|
|
76
134
|
isProcessorWorkflow?: boolean | undefined;
|
|
@@ -78,10 +136,24 @@ export declare const workflowInfoSchema: z.ZodObject<{
|
|
|
78
136
|
steps: Record<string, {
|
|
79
137
|
id: string;
|
|
80
138
|
description?: string | undefined;
|
|
139
|
+
stateSchema?: string | undefined;
|
|
140
|
+
inputSchema?: string | undefined;
|
|
141
|
+
outputSchema?: string | undefined;
|
|
142
|
+
resumeSchema?: string | undefined;
|
|
143
|
+
suspendSchema?: string | undefined;
|
|
144
|
+
component?: string | undefined;
|
|
145
|
+
isWorkflow?: boolean | undefined;
|
|
81
146
|
}>;
|
|
82
147
|
allSteps: Record<string, {
|
|
83
148
|
id: string;
|
|
84
149
|
description?: string | undefined;
|
|
150
|
+
stateSchema?: string | undefined;
|
|
151
|
+
inputSchema?: string | undefined;
|
|
152
|
+
outputSchema?: string | undefined;
|
|
153
|
+
resumeSchema?: string | undefined;
|
|
154
|
+
suspendSchema?: string | undefined;
|
|
155
|
+
component?: string | undefined;
|
|
156
|
+
isWorkflow?: boolean | undefined;
|
|
85
157
|
}>;
|
|
86
158
|
stepGraph: {
|
|
87
159
|
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
@@ -89,6 +161,7 @@ export declare const workflowInfoSchema: z.ZodObject<{
|
|
|
89
161
|
options?: {} | undefined;
|
|
90
162
|
name?: string | undefined;
|
|
91
163
|
description?: string | undefined;
|
|
164
|
+
stateSchema?: string | undefined;
|
|
92
165
|
inputSchema?: string | undefined;
|
|
93
166
|
outputSchema?: string | undefined;
|
|
94
167
|
isProcessorWorkflow?: boolean | undefined;
|
|
@@ -101,22 +174,64 @@ export declare const listWorkflowsResponseSchema: z.ZodRecord<z.ZodString, z.Zod
|
|
|
101
174
|
steps: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
102
175
|
id: z.ZodString;
|
|
103
176
|
description: z.ZodOptional<z.ZodString>;
|
|
177
|
+
stateSchema: z.ZodOptional<z.ZodString>;
|
|
178
|
+
inputSchema: z.ZodOptional<z.ZodString>;
|
|
179
|
+
outputSchema: z.ZodOptional<z.ZodString>;
|
|
180
|
+
resumeSchema: z.ZodOptional<z.ZodString>;
|
|
181
|
+
suspendSchema: z.ZodOptional<z.ZodString>;
|
|
182
|
+
component: z.ZodOptional<z.ZodString>;
|
|
183
|
+
isWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
104
184
|
}, "strip", z.ZodTypeAny, {
|
|
105
185
|
id: string;
|
|
106
186
|
description?: string | undefined;
|
|
187
|
+
stateSchema?: string | undefined;
|
|
188
|
+
inputSchema?: string | undefined;
|
|
189
|
+
outputSchema?: string | undefined;
|
|
190
|
+
resumeSchema?: string | undefined;
|
|
191
|
+
suspendSchema?: string | undefined;
|
|
192
|
+
component?: string | undefined;
|
|
193
|
+
isWorkflow?: boolean | undefined;
|
|
107
194
|
}, {
|
|
108
195
|
id: string;
|
|
109
196
|
description?: string | undefined;
|
|
197
|
+
stateSchema?: string | undefined;
|
|
198
|
+
inputSchema?: string | undefined;
|
|
199
|
+
outputSchema?: string | undefined;
|
|
200
|
+
resumeSchema?: string | undefined;
|
|
201
|
+
suspendSchema?: string | undefined;
|
|
202
|
+
component?: string | undefined;
|
|
203
|
+
isWorkflow?: boolean | undefined;
|
|
110
204
|
}>>;
|
|
111
205
|
allSteps: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
112
206
|
id: z.ZodString;
|
|
113
207
|
description: z.ZodOptional<z.ZodString>;
|
|
208
|
+
stateSchema: z.ZodOptional<z.ZodString>;
|
|
209
|
+
inputSchema: z.ZodOptional<z.ZodString>;
|
|
210
|
+
outputSchema: z.ZodOptional<z.ZodString>;
|
|
211
|
+
resumeSchema: z.ZodOptional<z.ZodString>;
|
|
212
|
+
suspendSchema: z.ZodOptional<z.ZodString>;
|
|
213
|
+
component: z.ZodOptional<z.ZodString>;
|
|
214
|
+
isWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
114
215
|
}, "strip", z.ZodTypeAny, {
|
|
115
216
|
id: string;
|
|
116
217
|
description?: string | undefined;
|
|
218
|
+
stateSchema?: string | undefined;
|
|
219
|
+
inputSchema?: string | undefined;
|
|
220
|
+
outputSchema?: string | undefined;
|
|
221
|
+
resumeSchema?: string | undefined;
|
|
222
|
+
suspendSchema?: string | undefined;
|
|
223
|
+
component?: string | undefined;
|
|
224
|
+
isWorkflow?: boolean | undefined;
|
|
117
225
|
}, {
|
|
118
226
|
id: string;
|
|
119
227
|
description?: string | undefined;
|
|
228
|
+
stateSchema?: string | undefined;
|
|
229
|
+
inputSchema?: string | undefined;
|
|
230
|
+
outputSchema?: string | undefined;
|
|
231
|
+
resumeSchema?: string | undefined;
|
|
232
|
+
suspendSchema?: string | undefined;
|
|
233
|
+
component?: string | undefined;
|
|
234
|
+
isWorkflow?: boolean | undefined;
|
|
120
235
|
}>>;
|
|
121
236
|
name: z.ZodOptional<z.ZodString>;
|
|
122
237
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -129,16 +244,31 @@ export declare const listWorkflowsResponseSchema: z.ZodRecord<z.ZodString, z.Zod
|
|
|
129
244
|
}>, "many">;
|
|
130
245
|
inputSchema: z.ZodOptional<z.ZodString>;
|
|
131
246
|
outputSchema: z.ZodOptional<z.ZodString>;
|
|
247
|
+
stateSchema: z.ZodOptional<z.ZodString>;
|
|
132
248
|
options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
133
249
|
isProcessorWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
134
250
|
}, "strip", z.ZodTypeAny, {
|
|
135
251
|
steps: Record<string, {
|
|
136
252
|
id: string;
|
|
137
253
|
description?: string | undefined;
|
|
254
|
+
stateSchema?: string | undefined;
|
|
255
|
+
inputSchema?: string | undefined;
|
|
256
|
+
outputSchema?: string | undefined;
|
|
257
|
+
resumeSchema?: string | undefined;
|
|
258
|
+
suspendSchema?: string | undefined;
|
|
259
|
+
component?: string | undefined;
|
|
260
|
+
isWorkflow?: boolean | undefined;
|
|
138
261
|
}>;
|
|
139
262
|
allSteps: Record<string, {
|
|
140
263
|
id: string;
|
|
141
264
|
description?: string | undefined;
|
|
265
|
+
stateSchema?: string | undefined;
|
|
266
|
+
inputSchema?: string | undefined;
|
|
267
|
+
outputSchema?: string | undefined;
|
|
268
|
+
resumeSchema?: string | undefined;
|
|
269
|
+
suspendSchema?: string | undefined;
|
|
270
|
+
component?: string | undefined;
|
|
271
|
+
isWorkflow?: boolean | undefined;
|
|
142
272
|
}>;
|
|
143
273
|
stepGraph: {
|
|
144
274
|
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
@@ -146,6 +276,7 @@ export declare const listWorkflowsResponseSchema: z.ZodRecord<z.ZodString, z.Zod
|
|
|
146
276
|
options?: {} | undefined;
|
|
147
277
|
name?: string | undefined;
|
|
148
278
|
description?: string | undefined;
|
|
279
|
+
stateSchema?: string | undefined;
|
|
149
280
|
inputSchema?: string | undefined;
|
|
150
281
|
outputSchema?: string | undefined;
|
|
151
282
|
isProcessorWorkflow?: boolean | undefined;
|
|
@@ -153,10 +284,24 @@ export declare const listWorkflowsResponseSchema: z.ZodRecord<z.ZodString, z.Zod
|
|
|
153
284
|
steps: Record<string, {
|
|
154
285
|
id: string;
|
|
155
286
|
description?: string | undefined;
|
|
287
|
+
stateSchema?: string | undefined;
|
|
288
|
+
inputSchema?: string | undefined;
|
|
289
|
+
outputSchema?: string | undefined;
|
|
290
|
+
resumeSchema?: string | undefined;
|
|
291
|
+
suspendSchema?: string | undefined;
|
|
292
|
+
component?: string | undefined;
|
|
293
|
+
isWorkflow?: boolean | undefined;
|
|
156
294
|
}>;
|
|
157
295
|
allSteps: Record<string, {
|
|
158
296
|
id: string;
|
|
159
297
|
description?: string | undefined;
|
|
298
|
+
stateSchema?: string | undefined;
|
|
299
|
+
inputSchema?: string | undefined;
|
|
300
|
+
outputSchema?: string | undefined;
|
|
301
|
+
resumeSchema?: string | undefined;
|
|
302
|
+
suspendSchema?: string | undefined;
|
|
303
|
+
component?: string | undefined;
|
|
304
|
+
isWorkflow?: boolean | undefined;
|
|
160
305
|
}>;
|
|
161
306
|
stepGraph: {
|
|
162
307
|
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
@@ -164,6 +309,7 @@ export declare const listWorkflowsResponseSchema: z.ZodRecord<z.ZodString, z.Zod
|
|
|
164
309
|
options?: {} | undefined;
|
|
165
310
|
name?: string | undefined;
|
|
166
311
|
description?: string | undefined;
|
|
312
|
+
stateSchema?: string | undefined;
|
|
167
313
|
inputSchema?: string | undefined;
|
|
168
314
|
outputSchema?: string | undefined;
|
|
169
315
|
isProcessorWorkflow?: boolean | undefined;
|
|
@@ -217,31 +363,6 @@ export declare const workflowRunsResponseSchema: z.ZodObject<{
|
|
|
217
363
|
resourceId?: string | undefined;
|
|
218
364
|
}[];
|
|
219
365
|
}>;
|
|
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
366
|
/**
|
|
246
367
|
* Schema for query parameters when listing workflow runs
|
|
247
368
|
* Supports both page/perPage and limit/offset for backwards compatibility
|
|
@@ -593,10 +714,51 @@ export declare const sendWorkflowRunEventBodySchema: z.ZodObject<{
|
|
|
593
714
|
data?: unknown;
|
|
594
715
|
}>;
|
|
595
716
|
/**
|
|
596
|
-
* Schema for workflow execution result
|
|
597
|
-
*
|
|
717
|
+
* Schema for workflow execution result
|
|
718
|
+
* All fields are optional since field filtering allows requesting specific fields only
|
|
598
719
|
*/
|
|
599
|
-
export declare const
|
|
720
|
+
export declare const workflowExecutionResultSchema: z.ZodObject<{
|
|
721
|
+
status: z.ZodOptional<z.ZodEnum<["running", "waiting", "suspended", "success", "failed", "canceled", "pending", "bailed", "tripwire", "paused"]>>;
|
|
722
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
723
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
724
|
+
payload: z.ZodOptional<z.ZodUnknown>;
|
|
725
|
+
initialState: z.ZodOptional<z.ZodUnknown>;
|
|
726
|
+
steps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
727
|
+
activeStepsPath: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber, "many">>>;
|
|
728
|
+
serializedStepGraph: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
729
|
+
type: z.ZodEnum<["step", "sleep", "sleepUntil", "waitForEvent", "parallel", "conditional", "loop", "foreach"]>;
|
|
730
|
+
}, "strip", z.ZodTypeAny, {
|
|
731
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
732
|
+
}, {
|
|
733
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
734
|
+
}>, "many">>;
|
|
735
|
+
}, "strip", z.ZodTypeAny, {
|
|
736
|
+
status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | undefined;
|
|
737
|
+
error?: unknown;
|
|
738
|
+
steps?: Record<string, any> | undefined;
|
|
739
|
+
initialState?: unknown;
|
|
740
|
+
result?: unknown;
|
|
741
|
+
payload?: unknown;
|
|
742
|
+
activeStepsPath?: Record<string, number[]> | undefined;
|
|
743
|
+
serializedStepGraph?: {
|
|
744
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
745
|
+
}[] | undefined;
|
|
746
|
+
}, {
|
|
747
|
+
status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | undefined;
|
|
748
|
+
error?: unknown;
|
|
749
|
+
steps?: Record<string, any> | undefined;
|
|
750
|
+
initialState?: unknown;
|
|
751
|
+
result?: unknown;
|
|
752
|
+
payload?: unknown;
|
|
753
|
+
activeStepsPath?: Record<string, number[]> | undefined;
|
|
754
|
+
serializedStepGraph?: {
|
|
755
|
+
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
756
|
+
}[] | undefined;
|
|
757
|
+
}>;
|
|
758
|
+
/**
|
|
759
|
+
* Schema for query parameters when getting a unified workflow run result
|
|
760
|
+
*/
|
|
761
|
+
export declare const workflowRunResultQuerySchema: z.ZodObject<{
|
|
600
762
|
fields: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
|
|
601
763
|
withNestedWorkflows: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
|
|
602
764
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -607,11 +769,17 @@ export declare const workflowExecutionResultQuerySchema: z.ZodObject<{
|
|
|
607
769
|
withNestedWorkflows?: "true" | "false" | undefined;
|
|
608
770
|
}>;
|
|
609
771
|
/**
|
|
610
|
-
* Schema for workflow
|
|
611
|
-
*
|
|
772
|
+
* Schema for unified workflow run result response
|
|
773
|
+
* Combines metadata and processed execution state
|
|
612
774
|
*/
|
|
613
|
-
export declare const
|
|
614
|
-
|
|
775
|
+
export declare const workflowRunResultSchema: z.ZodObject<{
|
|
776
|
+
runId: z.ZodString;
|
|
777
|
+
workflowName: z.ZodString;
|
|
778
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
779
|
+
createdAt: z.ZodDate;
|
|
780
|
+
updatedAt: z.ZodDate;
|
|
781
|
+
status: z.ZodEnum<["running", "waiting", "suspended", "success", "failed", "canceled", "pending", "bailed", "tripwire", "paused"]>;
|
|
782
|
+
initialState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
615
783
|
result: z.ZodOptional<z.ZodUnknown>;
|
|
616
784
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
617
785
|
payload: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -625,9 +793,15 @@ export declare const workflowExecutionResultSchema: z.ZodObject<{
|
|
|
625
793
|
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
626
794
|
}>, "many">>;
|
|
627
795
|
}, "strip", z.ZodTypeAny, {
|
|
628
|
-
|
|
796
|
+
runId: string;
|
|
797
|
+
status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused";
|
|
798
|
+
workflowName: string;
|
|
799
|
+
createdAt: Date;
|
|
800
|
+
updatedAt: Date;
|
|
629
801
|
error?: unknown;
|
|
630
802
|
steps?: Record<string, any> | undefined;
|
|
803
|
+
resourceId?: string | undefined;
|
|
804
|
+
initialState?: Record<string, any> | undefined;
|
|
631
805
|
result?: unknown;
|
|
632
806
|
payload?: unknown;
|
|
633
807
|
activeStepsPath?: Record<string, number[]> | undefined;
|
|
@@ -635,9 +809,15 @@ export declare const workflowExecutionResultSchema: z.ZodObject<{
|
|
|
635
809
|
type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
|
|
636
810
|
}[] | undefined;
|
|
637
811
|
}, {
|
|
638
|
-
|
|
812
|
+
runId: string;
|
|
813
|
+
status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused";
|
|
814
|
+
workflowName: string;
|
|
815
|
+
createdAt: Date;
|
|
816
|
+
updatedAt: Date;
|
|
639
817
|
error?: unknown;
|
|
640
818
|
steps?: Record<string, any> | undefined;
|
|
819
|
+
resourceId?: string | undefined;
|
|
820
|
+
initialState?: Record<string, any> | undefined;
|
|
641
821
|
result?: unknown;
|
|
642
822
|
payload?: unknown;
|
|
643
823
|
activeStepsPath?: Record<string, number[]> | undefined;
|
|
@@ -1 +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,4HAWlC,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;EAEhC,CAAC;
|
|
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,4HAWlC,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;EAEhC,CAAC;AA0BH;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW7B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA2C,CAAC;AAcpF;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKtC,CAAC;AAcH;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEnC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM3B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;EAGzC,CAAC;AAkCH;;;GAGG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASxC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;EAKvC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBlC,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"}
|