@mastra/server 1.63.2 → 1.63.3-alpha.1
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 +16 -0
- package/dist/_types/@internal_core/dist/storage/index.d.ts +401 -401
- package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v3.d.ts +5 -5
- package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v4.d.ts +5 -5
- package/dist/_types/@mastra_schema-compat/dist/standard-schema/standard-schema.d.ts +1 -1
- package/dist/docs/SKILL.md +8 -8
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/server/a2a/push-notification-sender.d.ts.map +1 -1
- package/dist/server/a2a/push-notification-store.d.ts.map +1 -1
- package/dist/server/a2a/store.d.ts.map +1 -1
- package/dist/server/auth/helpers.d.ts +1 -1
- package/dist/server/auth/helpers.d.ts.map +1 -1
- package/dist/server/browser-stream/viewer-registry.d.ts.map +1 -1
- package/dist/server/constants.d.ts +1 -1
- package/dist/server/constants.d.ts.map +1 -1
- package/dist/server/handlers/a2a.d.ts +60 -60
- package/dist/server/handlers/a2a.d.ts.map +1 -1
- package/dist/server/handlers/agent-builder.d.ts +110 -110
- package/dist/server/handlers/agent-controller.cjs +10 -4
- package/dist/server/handlers/agent-controller.cjs.map +1 -1
- package/dist/server/handlers/agent-controller.d.ts +110 -110
- package/dist/server/handlers/agent-controller.d.ts.map +1 -1
- package/dist/server/handlers/agent-controller.js +10 -4
- package/dist/server/handlers/agent-controller.js.map +1 -1
- package/dist/server/handlers/agent-versions.d.ts +5267 -5259
- package/dist/server/handlers/agent-versions.d.ts.map +1 -1
- package/dist/server/handlers/agents.d.ts +4355 -4355
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/auth.d.ts +52 -52
- package/dist/server/handlers/background-tasks.d.ts +37 -37
- package/dist/server/handlers/builder-registry.d.ts +12 -12
- package/dist/server/handlers/channels.d.ts +10 -10
- package/dist/server/handlers/conversations.d.ts +13 -13
- package/dist/server/handlers/datasets.d.ts +396 -396
- package/dist/server/handlers/dynamic-workflows.d.ts +36 -36
- package/dist/server/handlers/editor-builder.d.ts +13 -13
- package/dist/server/handlers/gateway-memory-client.d.ts +4 -4
- package/dist/server/handlers/gateway-memory-client.d.ts.map +1 -1
- package/dist/server/handlers/logs.d.ts +40 -40
- package/dist/server/handlers/mcp-client-versions.d.ts +32 -32
- package/dist/server/handlers/mcp.d.ts +23 -23
- package/dist/server/handlers/memory.d.ts +138 -138
- package/dist/server/handlers/observability-list-query-schemas.d.ts +1 -1
- package/dist/server/handlers/observability-new-endpoints.d.ts +859 -859
- package/dist/server/handlers/observability-shared.d.ts +126 -126
- package/dist/server/handlers/observability-shared.d.ts.map +1 -1
- package/dist/server/handlers/observability.d.ts +17 -17
- package/dist/server/handlers/plans.d.ts +3 -3
- package/dist/server/handlers/processor-providers.d.ts +9 -9
- package/dist/server/handlers/processors.d.ts +31 -31
- package/dist/server/handlers/prompt-block-versions.d.ts +176 -176
- package/dist/server/handlers/responses.adapter.d.ts +3 -3
- package/dist/server/handlers/responses.adapter.d.ts.map +1 -1
- package/dist/server/handlers/responses.d.ts +17 -17
- package/dist/server/handlers/schedules.d.ts +242 -242
- package/dist/server/handlers/scorer-versions.d.ts +39 -39
- package/dist/server/handlers/scores.d.ts +20 -20
- package/dist/server/handlers/stored-agent-favorites.d.ts +4 -4
- package/dist/server/handlers/stored-agents.d.ts +5992 -5984
- package/dist/server/handlers/stored-agents.d.ts.map +1 -1
- package/dist/server/handlers/stored-mcp-clients.d.ts +46 -46
- package/dist/server/handlers/stored-prompt-blocks.d.ts +193 -193
- package/dist/server/handlers/stored-scorers.d.ts +56 -56
- package/dist/server/handlers/stored-skill-favorites.d.ts +4 -4
- package/dist/server/handlers/stored-skills.d.ts +70 -70
- package/dist/server/handlers/stored-workspaces.d.ts +36 -36
- package/dist/server/handlers/system.d.ts +19 -19
- package/dist/server/handlers/tool-providers.d.ts +49 -49
- package/dist/server/handlers/tools.d.ts +10 -10
- package/dist/server/handlers/vector.d.ts +18 -18
- package/dist/server/handlers/version-helpers.d.ts +1 -1
- package/dist/server/handlers/version-helpers.d.ts.map +1 -1
- package/dist/server/handlers/workflows.d.ts +167 -167
- package/dist/server/handlers/workspace.d.ts +370 -370
- package/dist/server/http-exception.d.ts.map +1 -1
- package/dist/server/schemas/a2a.d.ts +18 -18
- package/dist/server/schemas/agent-versions.d.ts +3948 -3948
- package/dist/server/schemas/agents.d.ts +172 -172
- package/dist/server/schemas/agents.d.ts.map +1 -1
- package/dist/server/schemas/auth.d.ts +5 -5
- package/dist/server/schemas/background-tasks.d.ts +22 -22
- package/dist/server/schemas/builder-registry.d.ts +1 -1
- package/dist/server/schemas/channels.d.ts +1 -1
- package/dist/server/schemas/common.d.ts +5 -5
- package/dist/server/schemas/common.d.ts.map +1 -1
- package/dist/server/schemas/conversations.d.ts +2 -2
- package/dist/server/schemas/datasets.d.ts +98 -98
- package/dist/server/schemas/dynamic-workflows.d.ts +7 -7
- package/dist/server/schemas/logs.d.ts +8 -8
- package/dist/server/schemas/mcp-client-versions.d.ts +2 -2
- package/dist/server/schemas/memory-config.d.ts +5 -5
- package/dist/server/schemas/memory.d.ts +20 -20
- package/dist/server/schemas/processor-providers.d.ts +2 -2
- package/dist/server/schemas/processors.d.ts +13 -13
- package/dist/server/schemas/prompt-block-versions.d.ts +149 -149
- package/dist/server/schemas/responses.d.ts +11 -11
- package/dist/server/schemas/rule-group.d.ts +28 -28
- package/dist/server/schemas/schedules.d.ts +120 -120
- package/dist/server/schemas/scorer-versions.d.ts +9 -9
- package/dist/server/schemas/scores.d.ts +2 -2
- package/dist/server/schemas/stored-agents.d.ts +9052 -9052
- package/dist/server/schemas/stored-mcp-clients.d.ts +9 -9
- package/dist/server/schemas/stored-prompt-blocks.d.ts +156 -156
- package/dist/server/schemas/stored-scorers.d.ts +16 -16
- package/dist/server/schemas/stored-skills.d.ts +22 -22
- package/dist/server/schemas/stored-workspaces.d.ts +6 -6
- package/dist/server/schemas/system.d.ts +12 -12
- package/dist/server/schemas/tool-providers.d.ts +20 -20
- package/dist/server/schemas/vectors.d.ts +1 -1
- package/dist/server/schemas/version-common.d.ts +2 -2
- package/dist/server/schemas/workflows.d.ts +57 -57
- package/dist/server/schemas/workspace.d.ts +17 -17
- package/dist/server/server-adapter/index.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/a2a.d.ts +49 -49
- package/dist/server/server-adapter/routes/agent-builder.d.ts +110 -110
- package/dist/server/server-adapter/routes/channels.d.ts +10 -10
- package/dist/server/server-adapter/routes/conversations.d.ts +26 -26
- package/dist/server/server-adapter/routes/datasets.d.ts +394 -394
- package/dist/server/server-adapter/routes/editor-builder.d.ts +25 -25
- package/dist/server/server-adapter/routes/legacy.d.ts +157 -157
- package/dist/server/server-adapter/routes/logs.d.ts +40 -40
- package/dist/server/server-adapter/routes/mcp.d.ts +23 -23
- package/dist/server/server-adapter/routes/memory.d.ts +138 -138
- package/dist/server/server-adapter/routes/observability.d.ts +446 -446
- package/dist/server/server-adapter/routes/processor-providers.d.ts +9 -9
- package/dist/server/server-adapter/routes/processors.d.ts +31 -31
- package/dist/server/server-adapter/routes/responses.d.ts +17 -17
- package/dist/server/server-adapter/routes/scorers.d.ts +20 -20
- package/dist/server/server-adapter/routes/stored-mcp-clients.d.ts +78 -78
- package/dist/server/server-adapter/routes/stored-prompt-blocks.d.ts +369 -369
- package/dist/server/server-adapter/routes/stored-scorers.d.ts +95 -95
- package/dist/server/server-adapter/routes/stored-skills.d.ts +74 -74
- package/dist/server/server-adapter/routes/stored-workspaces.d.ts +36 -36
- package/dist/server/server-adapter/routes/system.d.ts +19 -19
- package/dist/server/server-adapter/routes/tool-providers.d.ts +49 -49
- package/dist/server/server-adapter/routes/tools.d.ts +6 -6
- package/dist/server/server-adapter/routes/vectors.d.ts +18 -18
- package/dist/server/server-adapter/routes/workflows.d.ts +163 -163
- package/dist/server/server-adapter/routes/workspace.d.ts +334 -334
- package/dist/server/utils.d.ts.map +1 -1
- package/package.json +8 -7
|
@@ -6,11 +6,11 @@ export interface WorkflowContext extends Context {
|
|
|
6
6
|
runId?: string;
|
|
7
7
|
requestContext?: RequestContext;
|
|
8
8
|
}
|
|
9
|
-
export declare const LIST_WORKFLOWS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
9
|
+
export declare const LIST_WORKFLOWS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
10
10
|
method: "GET";
|
|
11
11
|
path: "/workflows";
|
|
12
12
|
responseType: "json";
|
|
13
|
-
streamFormat?:
|
|
13
|
+
streamFormat?: 'sse' | 'stream';
|
|
14
14
|
sseFlushOnConnect?: boolean;
|
|
15
15
|
handler(params: {
|
|
16
16
|
partial?: string | undefined;
|
|
@@ -39,12 +39,12 @@ export declare const LIST_WORKFLOWS_ROUTE: Omit<import("@mastra/core/server").Ap
|
|
|
39
39
|
isWorkflow?: boolean | undefined;
|
|
40
40
|
metadata?: Record<string, unknown> | undefined;
|
|
41
41
|
}>;
|
|
42
|
-
stepGraph: {
|
|
43
|
-
type: "step" | "agent" | "tool" | "mapping" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach" | "workflow";
|
|
44
|
-
}[];
|
|
45
42
|
name?: string | undefined;
|
|
46
43
|
description?: string | undefined;
|
|
47
44
|
metadata?: Record<string, unknown> | undefined;
|
|
45
|
+
stepGraph: {
|
|
46
|
+
type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
|
|
47
|
+
}[];
|
|
48
48
|
inputSchema?: string | undefined;
|
|
49
49
|
outputSchema?: string | undefined;
|
|
50
50
|
stateSchema?: string | undefined;
|
|
@@ -94,17 +94,17 @@ export declare const LIST_WORKFLOWS_ROUTE: Omit<import("@mastra/core/server").Ap
|
|
|
94
94
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
95
95
|
stepGraph: z.ZodArray<z.ZodObject<{
|
|
96
96
|
type: z.ZodEnum<{
|
|
97
|
-
step: "step";
|
|
98
97
|
agent: "agent";
|
|
99
|
-
|
|
98
|
+
conditional: "conditional";
|
|
99
|
+
foreach: "foreach";
|
|
100
|
+
loop: "loop";
|
|
100
101
|
mapping: "mapping";
|
|
102
|
+
parallel: "parallel";
|
|
101
103
|
sleep: "sleep";
|
|
102
104
|
sleepUntil: "sleepUntil";
|
|
105
|
+
step: "step";
|
|
106
|
+
tool: "tool";
|
|
103
107
|
waitForEvent: "waitForEvent";
|
|
104
|
-
parallel: "parallel";
|
|
105
|
-
conditional: "conditional";
|
|
106
|
-
loop: "loop";
|
|
107
|
-
foreach: "foreach";
|
|
108
108
|
workflow: "workflow";
|
|
109
109
|
}>;
|
|
110
110
|
}, z.core.$strip>>;
|
|
@@ -123,11 +123,11 @@ export declare const LIST_WORKFLOWS_ROUTE: Omit<import("@mastra/core/server").Ap
|
|
|
123
123
|
};
|
|
124
124
|
/** Test seam — lets TTL expiry be tested without wall-clock waits. */
|
|
125
125
|
export declare function __setWorkflowRunCountsNow(now?: () => number): void;
|
|
126
|
-
export declare const LIST_WORKFLOW_RUN_COUNTS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
126
|
+
export declare const LIST_WORKFLOW_RUN_COUNTS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
127
127
|
method: "GET";
|
|
128
128
|
path: "/workflows/run-counts";
|
|
129
129
|
responseType: "json";
|
|
130
|
-
streamFormat?:
|
|
130
|
+
streamFormat?: 'sse' | 'stream';
|
|
131
131
|
sseFlushOnConnect?: boolean;
|
|
132
132
|
handler(params: import("../server-adapter").ServerContext): Promise<Record<string, {
|
|
133
133
|
running: number;
|
|
@@ -150,11 +150,11 @@ export declare const LIST_WORKFLOW_RUN_COUNTS_ROUTE: Omit<import("@mastra/core/s
|
|
|
150
150
|
} & {
|
|
151
151
|
readonly _mastraSchemaRoute: true;
|
|
152
152
|
};
|
|
153
|
-
export declare const GET_WORKFLOW_BY_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
153
|
+
export declare const GET_WORKFLOW_BY_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
154
154
|
method: "GET";
|
|
155
155
|
path: "/workflows/:workflowId";
|
|
156
156
|
responseType: "json";
|
|
157
|
-
streamFormat?:
|
|
157
|
+
streamFormat?: 'sse' | 'stream';
|
|
158
158
|
sseFlushOnConnect?: boolean;
|
|
159
159
|
handler(params: {
|
|
160
160
|
workflowId: string;
|
|
@@ -183,12 +183,12 @@ export declare const GET_WORKFLOW_BY_ID_ROUTE: Omit<import("@mastra/core/server"
|
|
|
183
183
|
isWorkflow?: boolean | undefined;
|
|
184
184
|
metadata?: Record<string, unknown> | undefined;
|
|
185
185
|
}>;
|
|
186
|
-
stepGraph: {
|
|
187
|
-
type: "step" | "agent" | "tool" | "mapping" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach" | "workflow";
|
|
188
|
-
}[];
|
|
189
186
|
name?: string | undefined;
|
|
190
187
|
description?: string | undefined;
|
|
191
188
|
metadata?: Record<string, unknown> | undefined;
|
|
189
|
+
stepGraph: {
|
|
190
|
+
type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
|
|
191
|
+
}[];
|
|
192
192
|
inputSchema?: string | undefined;
|
|
193
193
|
outputSchema?: string | undefined;
|
|
194
194
|
stateSchema?: string | undefined;
|
|
@@ -238,17 +238,17 @@ export declare const GET_WORKFLOW_BY_ID_ROUTE: Omit<import("@mastra/core/server"
|
|
|
238
238
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
239
239
|
stepGraph: z.ZodArray<z.ZodObject<{
|
|
240
240
|
type: z.ZodEnum<{
|
|
241
|
-
step: "step";
|
|
242
241
|
agent: "agent";
|
|
243
|
-
|
|
242
|
+
conditional: "conditional";
|
|
243
|
+
foreach: "foreach";
|
|
244
|
+
loop: "loop";
|
|
244
245
|
mapping: "mapping";
|
|
246
|
+
parallel: "parallel";
|
|
245
247
|
sleep: "sleep";
|
|
246
248
|
sleepUntil: "sleepUntil";
|
|
249
|
+
step: "step";
|
|
250
|
+
tool: "tool";
|
|
247
251
|
waitForEvent: "waitForEvent";
|
|
248
|
-
parallel: "parallel";
|
|
249
|
-
conditional: "conditional";
|
|
250
|
-
loop: "loop";
|
|
251
|
-
foreach: "foreach";
|
|
252
252
|
workflow: "workflow";
|
|
253
253
|
}>;
|
|
254
254
|
}, z.core.$strip>>;
|
|
@@ -265,11 +265,11 @@ export declare const GET_WORKFLOW_BY_ID_ROUTE: Omit<import("@mastra/core/server"
|
|
|
265
265
|
} & {
|
|
266
266
|
readonly _mastraSchemaRoute: true;
|
|
267
267
|
};
|
|
268
|
-
export declare const LIST_WORKFLOW_RUNS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
268
|
+
export declare const LIST_WORKFLOW_RUNS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
269
269
|
method: "GET";
|
|
270
270
|
path: "/workflows/:workflowId/runs";
|
|
271
271
|
responseType: "json";
|
|
272
|
-
streamFormat?:
|
|
272
|
+
streamFormat?: 'sse' | 'stream';
|
|
273
273
|
sseFlushOnConnect?: boolean;
|
|
274
274
|
handler(params: {
|
|
275
275
|
workflowId: string;
|
|
@@ -281,7 +281,7 @@ export declare const LIST_WORKFLOW_RUNS_ROUTE: Omit<import("@mastra/core/server"
|
|
|
281
281
|
fromDate?: Date | undefined;
|
|
282
282
|
toDate?: Date | undefined;
|
|
283
283
|
resourceId?: string | undefined;
|
|
284
|
-
status?: "
|
|
284
|
+
status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
|
|
285
285
|
} & import("../server-adapter").ServerContext): Promise<{
|
|
286
286
|
runs: {
|
|
287
287
|
workflowName: string;
|
|
@@ -314,17 +314,17 @@ export declare const LIST_WORKFLOW_RUNS_ROUTE: Omit<import("@mastra/core/server"
|
|
|
314
314
|
toDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
315
315
|
resourceId: z.ZodOptional<z.ZodString>;
|
|
316
316
|
status: z.ZodOptional<z.ZodEnum<{
|
|
317
|
-
success: "success";
|
|
318
|
-
running: "running";
|
|
319
|
-
waiting: "waiting";
|
|
320
|
-
suspended: "suspended";
|
|
321
|
-
failed: "failed";
|
|
322
|
-
canceled: "canceled";
|
|
323
|
-
pending: "pending";
|
|
324
317
|
bailed: "bailed";
|
|
325
|
-
|
|
318
|
+
canceled: "canceled";
|
|
319
|
+
failed: "failed";
|
|
326
320
|
paused: "paused";
|
|
321
|
+
pending: "pending";
|
|
322
|
+
running: "running";
|
|
327
323
|
skipped: "skipped";
|
|
324
|
+
success: "success";
|
|
325
|
+
suspended: "suspended";
|
|
326
|
+
tripwire: "tripwire";
|
|
327
|
+
waiting: "waiting";
|
|
328
328
|
}>>;
|
|
329
329
|
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
330
330
|
runs: z.ZodArray<z.ZodObject<{
|
|
@@ -340,25 +340,25 @@ export declare const LIST_WORKFLOW_RUNS_ROUTE: Omit<import("@mastra/core/server"
|
|
|
340
340
|
} & {
|
|
341
341
|
readonly _mastraSchemaRoute: true;
|
|
342
342
|
};
|
|
343
|
-
export declare const GET_WORKFLOW_RUN_BY_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
343
|
+
export declare const GET_WORKFLOW_RUN_BY_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
344
344
|
method: "GET";
|
|
345
345
|
path: "/workflows/:workflowId/runs/:runId";
|
|
346
346
|
responseType: "json";
|
|
347
|
-
streamFormat?:
|
|
347
|
+
streamFormat?: 'sse' | 'stream';
|
|
348
348
|
sseFlushOnConnect?: boolean;
|
|
349
349
|
handler(params: {
|
|
350
350
|
workflowId: string;
|
|
351
351
|
runId: string;
|
|
352
352
|
} & {
|
|
353
353
|
fields?: string | undefined;
|
|
354
|
-
withNestedWorkflows?: "
|
|
354
|
+
withNestedWorkflows?: "false" | "true" | undefined;
|
|
355
355
|
} & import("../server-adapter").ServerContext): Promise<{
|
|
356
356
|
runId: string;
|
|
357
357
|
workflowName: string;
|
|
358
|
+
resourceId?: string | undefined;
|
|
358
359
|
createdAt: Date;
|
|
359
360
|
updatedAt: Date;
|
|
360
|
-
status: "
|
|
361
|
-
resourceId?: string | undefined;
|
|
361
|
+
status: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting";
|
|
362
362
|
initialState?: Record<string, unknown> | undefined;
|
|
363
363
|
result?: unknown;
|
|
364
364
|
error?: unknown;
|
|
@@ -366,7 +366,7 @@ export declare const GET_WORKFLOW_RUN_BY_ID_ROUTE: Omit<import("@mastra/core/ser
|
|
|
366
366
|
steps?: Record<string, unknown> | undefined;
|
|
367
367
|
activeStepsPath?: Record<string, number[]> | undefined;
|
|
368
368
|
serializedStepGraph?: {
|
|
369
|
-
type: "
|
|
369
|
+
type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
|
|
370
370
|
}[] | undefined;
|
|
371
371
|
}>;
|
|
372
372
|
pathParamSchema?: z.ZodType;
|
|
@@ -385,8 +385,8 @@ export declare const GET_WORKFLOW_RUN_BY_ID_ROUTE: Omit<import("@mastra/core/ser
|
|
|
385
385
|
}, z.core.$strip>, z.ZodObject<{
|
|
386
386
|
fields: z.ZodOptional<z.ZodString>;
|
|
387
387
|
withNestedWorkflows: z.ZodOptional<z.ZodEnum<{
|
|
388
|
-
true: "true";
|
|
389
388
|
false: "false";
|
|
389
|
+
true: "true";
|
|
390
390
|
}>>;
|
|
391
391
|
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
392
392
|
runId: z.ZodString;
|
|
@@ -395,17 +395,17 @@ export declare const GET_WORKFLOW_RUN_BY_ID_ROUTE: Omit<import("@mastra/core/ser
|
|
|
395
395
|
createdAt: z.ZodDate;
|
|
396
396
|
updatedAt: z.ZodDate;
|
|
397
397
|
status: z.ZodEnum<{
|
|
398
|
-
success: "success";
|
|
399
|
-
running: "running";
|
|
400
|
-
waiting: "waiting";
|
|
401
|
-
suspended: "suspended";
|
|
402
|
-
failed: "failed";
|
|
403
|
-
canceled: "canceled";
|
|
404
|
-
pending: "pending";
|
|
405
398
|
bailed: "bailed";
|
|
406
|
-
|
|
399
|
+
canceled: "canceled";
|
|
400
|
+
failed: "failed";
|
|
407
401
|
paused: "paused";
|
|
402
|
+
pending: "pending";
|
|
403
|
+
running: "running";
|
|
408
404
|
skipped: "skipped";
|
|
405
|
+
success: "success";
|
|
406
|
+
suspended: "suspended";
|
|
407
|
+
tripwire: "tripwire";
|
|
408
|
+
waiting: "waiting";
|
|
409
409
|
}>;
|
|
410
410
|
initialState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
411
411
|
result: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -415,17 +415,17 @@ export declare const GET_WORKFLOW_RUN_BY_ID_ROUTE: Omit<import("@mastra/core/ser
|
|
|
415
415
|
activeStepsPath: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>;
|
|
416
416
|
serializedStepGraph: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
417
417
|
type: z.ZodEnum<{
|
|
418
|
-
step: "step";
|
|
419
418
|
agent: "agent";
|
|
420
|
-
|
|
419
|
+
conditional: "conditional";
|
|
420
|
+
foreach: "foreach";
|
|
421
|
+
loop: "loop";
|
|
421
422
|
mapping: "mapping";
|
|
423
|
+
parallel: "parallel";
|
|
422
424
|
sleep: "sleep";
|
|
423
425
|
sleepUntil: "sleepUntil";
|
|
426
|
+
step: "step";
|
|
427
|
+
tool: "tool";
|
|
424
428
|
waitForEvent: "waitForEvent";
|
|
425
|
-
parallel: "parallel";
|
|
426
|
-
conditional: "conditional";
|
|
427
|
-
loop: "loop";
|
|
428
|
-
foreach: "foreach";
|
|
429
429
|
workflow: "workflow";
|
|
430
430
|
}>;
|
|
431
431
|
}, z.core.$strip>>>;
|
|
@@ -433,11 +433,11 @@ export declare const GET_WORKFLOW_RUN_BY_ID_ROUTE: Omit<import("@mastra/core/ser
|
|
|
433
433
|
} & {
|
|
434
434
|
readonly _mastraSchemaRoute: true;
|
|
435
435
|
};
|
|
436
|
-
export declare const DELETE_WORKFLOW_RUN_BY_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
436
|
+
export declare const DELETE_WORKFLOW_RUN_BY_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
437
437
|
method: "DELETE";
|
|
438
438
|
path: "/workflows/:workflowId/runs/:runId";
|
|
439
439
|
responseType: "json";
|
|
440
|
-
streamFormat?:
|
|
440
|
+
streamFormat?: 'sse' | 'stream';
|
|
441
441
|
sseFlushOnConnect?: boolean;
|
|
442
442
|
handler(params: {
|
|
443
443
|
workflowId: string;
|
|
@@ -464,11 +464,11 @@ export declare const DELETE_WORKFLOW_RUN_BY_ID_ROUTE: Omit<import("@mastra/core/
|
|
|
464
464
|
} & {
|
|
465
465
|
readonly _mastraSchemaRoute: true;
|
|
466
466
|
};
|
|
467
|
-
export declare const CREATE_WORKFLOW_RUN_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
467
|
+
export declare const CREATE_WORKFLOW_RUN_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
468
468
|
method: "POST";
|
|
469
469
|
path: "/workflows/:workflowId/create-run";
|
|
470
470
|
responseType: "json";
|
|
471
|
-
streamFormat?:
|
|
471
|
+
streamFormat?: 'sse' | 'stream';
|
|
472
472
|
sseFlushOnConnect?: boolean;
|
|
473
473
|
handler(params: {
|
|
474
474
|
workflowId: string;
|
|
@@ -503,11 +503,11 @@ export declare const CREATE_WORKFLOW_RUN_ROUTE: Omit<import("@mastra/core/server
|
|
|
503
503
|
} & {
|
|
504
504
|
readonly _mastraSchemaRoute: true;
|
|
505
505
|
};
|
|
506
|
-
export declare const STREAM_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
506
|
+
export declare const STREAM_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
507
507
|
method: "POST";
|
|
508
508
|
path: "/workflows/:workflowId/stream";
|
|
509
509
|
responseType: "stream";
|
|
510
|
-
streamFormat?:
|
|
510
|
+
streamFormat?: 'sse' | 'stream';
|
|
511
511
|
sseFlushOnConnect?: boolean;
|
|
512
512
|
handler(params: {
|
|
513
513
|
workflowId: string;
|
|
@@ -564,11 +564,11 @@ export declare const STREAM_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").A
|
|
|
564
564
|
} & {
|
|
565
565
|
readonly _mastraSchemaRoute: true;
|
|
566
566
|
};
|
|
567
|
-
export declare const RESUME_STREAM_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
567
|
+
export declare const RESUME_STREAM_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
568
568
|
method: "POST";
|
|
569
569
|
path: "/workflows/:workflowId/resume-stream";
|
|
570
570
|
responseType: "stream";
|
|
571
|
-
streamFormat?:
|
|
571
|
+
streamFormat?: 'sse' | 'stream';
|
|
572
572
|
sseFlushOnConnect?: boolean;
|
|
573
573
|
handler(params: {
|
|
574
574
|
workflowId: string;
|
|
@@ -623,11 +623,11 @@ export declare const RESUME_STREAM_WORKFLOW_ROUTE: Omit<import("@mastra/core/ser
|
|
|
623
623
|
} & {
|
|
624
624
|
readonly _mastraSchemaRoute: true;
|
|
625
625
|
};
|
|
626
|
-
export declare const START_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
626
|
+
export declare const START_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
627
627
|
method: "POST";
|
|
628
628
|
path: "/workflows/:workflowId/start-async";
|
|
629
629
|
responseType: "json";
|
|
630
|
-
streamFormat?:
|
|
630
|
+
streamFormat?: 'sse' | 'stream';
|
|
631
631
|
sseFlushOnConnect?: boolean;
|
|
632
632
|
handler(params: {
|
|
633
633
|
workflowId: string;
|
|
@@ -649,7 +649,7 @@ export declare const START_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/serve
|
|
|
649
649
|
} | undefined;
|
|
650
650
|
perStep?: boolean | undefined;
|
|
651
651
|
} & import("../server-adapter").ServerContext): Promise<{
|
|
652
|
-
status?: "
|
|
652
|
+
status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
|
|
653
653
|
result?: unknown;
|
|
654
654
|
error?: unknown;
|
|
655
655
|
payload?: unknown;
|
|
@@ -657,7 +657,7 @@ export declare const START_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/serve
|
|
|
657
657
|
steps?: Record<string, unknown> | undefined;
|
|
658
658
|
activeStepsPath?: Record<string, number[]> | undefined;
|
|
659
659
|
serializedStepGraph?: {
|
|
660
|
-
type: "
|
|
660
|
+
type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
|
|
661
661
|
}[] | undefined;
|
|
662
662
|
}>;
|
|
663
663
|
pathParamSchema?: z.ZodType;
|
|
@@ -691,17 +691,17 @@ export declare const START_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/serve
|
|
|
691
691
|
perStep: z.ZodOptional<z.ZodBoolean>;
|
|
692
692
|
}, z.core.$strip>, z.ZodObject<{
|
|
693
693
|
status: z.ZodOptional<z.ZodEnum<{
|
|
694
|
-
success: "success";
|
|
695
|
-
running: "running";
|
|
696
|
-
waiting: "waiting";
|
|
697
|
-
suspended: "suspended";
|
|
698
|
-
failed: "failed";
|
|
699
|
-
canceled: "canceled";
|
|
700
|
-
pending: "pending";
|
|
701
694
|
bailed: "bailed";
|
|
702
|
-
|
|
695
|
+
canceled: "canceled";
|
|
696
|
+
failed: "failed";
|
|
703
697
|
paused: "paused";
|
|
698
|
+
pending: "pending";
|
|
699
|
+
running: "running";
|
|
704
700
|
skipped: "skipped";
|
|
701
|
+
success: "success";
|
|
702
|
+
suspended: "suspended";
|
|
703
|
+
tripwire: "tripwire";
|
|
704
|
+
waiting: "waiting";
|
|
705
705
|
}>>;
|
|
706
706
|
result: z.ZodOptional<z.ZodUnknown>;
|
|
707
707
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -711,17 +711,17 @@ export declare const START_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/serve
|
|
|
711
711
|
activeStepsPath: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>;
|
|
712
712
|
serializedStepGraph: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
713
713
|
type: z.ZodEnum<{
|
|
714
|
-
step: "step";
|
|
715
714
|
agent: "agent";
|
|
716
|
-
|
|
715
|
+
conditional: "conditional";
|
|
716
|
+
foreach: "foreach";
|
|
717
|
+
loop: "loop";
|
|
717
718
|
mapping: "mapping";
|
|
719
|
+
parallel: "parallel";
|
|
718
720
|
sleep: "sleep";
|
|
719
721
|
sleepUntil: "sleepUntil";
|
|
722
|
+
step: "step";
|
|
723
|
+
tool: "tool";
|
|
720
724
|
waitForEvent: "waitForEvent";
|
|
721
|
-
parallel: "parallel";
|
|
722
|
-
conditional: "conditional";
|
|
723
|
-
loop: "loop";
|
|
724
|
-
foreach: "foreach";
|
|
725
725
|
workflow: "workflow";
|
|
726
726
|
}>;
|
|
727
727
|
}, z.core.$strip>>>;
|
|
@@ -729,11 +729,11 @@ export declare const START_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/serve
|
|
|
729
729
|
} & {
|
|
730
730
|
readonly _mastraSchemaRoute: true;
|
|
731
731
|
};
|
|
732
|
-
export declare const START_WORKFLOW_RUN_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
732
|
+
export declare const START_WORKFLOW_RUN_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
733
733
|
method: "POST";
|
|
734
734
|
path: "/workflows/:workflowId/start";
|
|
735
735
|
responseType: "json";
|
|
736
|
-
streamFormat?:
|
|
736
|
+
streamFormat?: 'sse' | 'stream';
|
|
737
737
|
sseFlushOnConnect?: boolean;
|
|
738
738
|
handler(params: {
|
|
739
739
|
workflowId: string;
|
|
@@ -792,11 +792,11 @@ export declare const START_WORKFLOW_RUN_ROUTE: Omit<import("@mastra/core/server"
|
|
|
792
792
|
} & {
|
|
793
793
|
readonly _mastraSchemaRoute: true;
|
|
794
794
|
};
|
|
795
|
-
export declare const OBSERVE_STREAM_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
795
|
+
export declare const OBSERVE_STREAM_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
796
796
|
method: "POST";
|
|
797
797
|
path: "/workflows/:workflowId/observe";
|
|
798
798
|
responseType: "stream";
|
|
799
|
-
streamFormat?:
|
|
799
|
+
streamFormat?: 'sse' | 'stream';
|
|
800
800
|
sseFlushOnConnect?: boolean;
|
|
801
801
|
handler(params: {
|
|
802
802
|
workflowId: string;
|
|
@@ -823,11 +823,11 @@ export declare const OBSERVE_STREAM_WORKFLOW_ROUTE: Omit<import("@mastra/core/se
|
|
|
823
823
|
} & {
|
|
824
824
|
readonly _mastraSchemaRoute: true;
|
|
825
825
|
};
|
|
826
|
-
export declare const RESUME_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
826
|
+
export declare const RESUME_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
827
827
|
method: "POST";
|
|
828
828
|
path: "/workflows/:workflowId/resume-async";
|
|
829
829
|
responseType: "json";
|
|
830
|
-
streamFormat?:
|
|
830
|
+
streamFormat?: 'sse' | 'stream';
|
|
831
831
|
sseFlushOnConnect?: boolean;
|
|
832
832
|
handler(params: {
|
|
833
833
|
workflowId: string;
|
|
@@ -849,7 +849,7 @@ export declare const RESUME_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/serv
|
|
|
849
849
|
perStep?: boolean | undefined;
|
|
850
850
|
forEachIndex?: number | undefined;
|
|
851
851
|
} & import("../server-adapter").ServerContext): Promise<{
|
|
852
|
-
status?: "
|
|
852
|
+
status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
|
|
853
853
|
result?: unknown;
|
|
854
854
|
error?: unknown;
|
|
855
855
|
payload?: unknown;
|
|
@@ -857,7 +857,7 @@ export declare const RESUME_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/serv
|
|
|
857
857
|
steps?: Record<string, unknown> | undefined;
|
|
858
858
|
activeStepsPath?: Record<string, number[]> | undefined;
|
|
859
859
|
serializedStepGraph?: {
|
|
860
|
-
type: "
|
|
860
|
+
type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
|
|
861
861
|
}[] | undefined;
|
|
862
862
|
}>;
|
|
863
863
|
pathParamSchema?: z.ZodType;
|
|
@@ -891,17 +891,17 @@ export declare const RESUME_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/serv
|
|
|
891
891
|
forEachIndex: z.ZodOptional<z.ZodNumber>;
|
|
892
892
|
}, z.core.$strip>, z.ZodObject<{
|
|
893
893
|
status: z.ZodOptional<z.ZodEnum<{
|
|
894
|
-
success: "success";
|
|
895
|
-
running: "running";
|
|
896
|
-
waiting: "waiting";
|
|
897
|
-
suspended: "suspended";
|
|
898
|
-
failed: "failed";
|
|
899
|
-
canceled: "canceled";
|
|
900
|
-
pending: "pending";
|
|
901
894
|
bailed: "bailed";
|
|
902
|
-
|
|
895
|
+
canceled: "canceled";
|
|
896
|
+
failed: "failed";
|
|
903
897
|
paused: "paused";
|
|
898
|
+
pending: "pending";
|
|
899
|
+
running: "running";
|
|
904
900
|
skipped: "skipped";
|
|
901
|
+
success: "success";
|
|
902
|
+
suspended: "suspended";
|
|
903
|
+
tripwire: "tripwire";
|
|
904
|
+
waiting: "waiting";
|
|
905
905
|
}>>;
|
|
906
906
|
result: z.ZodOptional<z.ZodUnknown>;
|
|
907
907
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -911,17 +911,17 @@ export declare const RESUME_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/serv
|
|
|
911
911
|
activeStepsPath: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>;
|
|
912
912
|
serializedStepGraph: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
913
913
|
type: z.ZodEnum<{
|
|
914
|
-
step: "step";
|
|
915
914
|
agent: "agent";
|
|
916
|
-
|
|
915
|
+
conditional: "conditional";
|
|
916
|
+
foreach: "foreach";
|
|
917
|
+
loop: "loop";
|
|
917
918
|
mapping: "mapping";
|
|
919
|
+
parallel: "parallel";
|
|
918
920
|
sleep: "sleep";
|
|
919
921
|
sleepUntil: "sleepUntil";
|
|
922
|
+
step: "step";
|
|
923
|
+
tool: "tool";
|
|
920
924
|
waitForEvent: "waitForEvent";
|
|
921
|
-
parallel: "parallel";
|
|
922
|
-
conditional: "conditional";
|
|
923
|
-
loop: "loop";
|
|
924
|
-
foreach: "foreach";
|
|
925
925
|
workflow: "workflow";
|
|
926
926
|
}>;
|
|
927
927
|
}, z.core.$strip>>>;
|
|
@@ -939,11 +939,11 @@ export declare const RESUME_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/serv
|
|
|
939
939
|
* kept separate in v1 to avoid a breaking change to the existing `resume-async` response
|
|
940
940
|
* contract (which returns the full workflow result).
|
|
941
941
|
*/
|
|
942
|
-
export declare const RESUME_NO_WAIT_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
942
|
+
export declare const RESUME_NO_WAIT_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
943
943
|
method: "POST";
|
|
944
944
|
path: "/workflows/:workflowId/resume-no-wait";
|
|
945
945
|
responseType: "json";
|
|
946
|
-
streamFormat?:
|
|
946
|
+
streamFormat?: 'sse' | 'stream';
|
|
947
947
|
sseFlushOnConnect?: boolean;
|
|
948
948
|
handler(params: {
|
|
949
949
|
workflowId: string;
|
|
@@ -1002,11 +1002,11 @@ export declare const RESUME_NO_WAIT_WORKFLOW_ROUTE: Omit<import("@mastra/core/se
|
|
|
1002
1002
|
} & {
|
|
1003
1003
|
readonly _mastraSchemaRoute: true;
|
|
1004
1004
|
};
|
|
1005
|
-
export declare const RESUME_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1005
|
+
export declare const RESUME_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1006
1006
|
method: "POST";
|
|
1007
1007
|
path: "/workflows/:workflowId/resume";
|
|
1008
1008
|
responseType: "json";
|
|
1009
|
-
streamFormat?:
|
|
1009
|
+
streamFormat?: 'sse' | 'stream';
|
|
1010
1010
|
sseFlushOnConnect?: boolean;
|
|
1011
1011
|
handler(params: {
|
|
1012
1012
|
workflowId: string;
|
|
@@ -1065,11 +1065,11 @@ export declare const RESUME_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").A
|
|
|
1065
1065
|
} & {
|
|
1066
1066
|
readonly _mastraSchemaRoute: true;
|
|
1067
1067
|
};
|
|
1068
|
-
export declare const RESTART_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1068
|
+
export declare const RESTART_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1069
1069
|
method: "POST";
|
|
1070
1070
|
path: "/workflows/:workflowId/restart-async";
|
|
1071
1071
|
responseType: "json";
|
|
1072
|
-
streamFormat?:
|
|
1072
|
+
streamFormat?: 'sse' | 'stream';
|
|
1073
1073
|
sseFlushOnConnect?: boolean;
|
|
1074
1074
|
handler(params: {
|
|
1075
1075
|
workflowId: string;
|
|
@@ -1087,7 +1087,7 @@ export declare const RESTART_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/ser
|
|
|
1087
1087
|
hideOutput?: boolean | undefined;
|
|
1088
1088
|
} | undefined;
|
|
1089
1089
|
} & import("../server-adapter").ServerContext): Promise<{
|
|
1090
|
-
status?: "
|
|
1090
|
+
status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
|
|
1091
1091
|
result?: unknown;
|
|
1092
1092
|
error?: unknown;
|
|
1093
1093
|
payload?: unknown;
|
|
@@ -1095,7 +1095,7 @@ export declare const RESTART_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/ser
|
|
|
1095
1095
|
steps?: Record<string, unknown> | undefined;
|
|
1096
1096
|
activeStepsPath?: Record<string, number[]> | undefined;
|
|
1097
1097
|
serializedStepGraph?: {
|
|
1098
|
-
type: "
|
|
1098
|
+
type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
|
|
1099
1099
|
}[] | undefined;
|
|
1100
1100
|
}>;
|
|
1101
1101
|
pathParamSchema?: z.ZodType;
|
|
@@ -1125,17 +1125,17 @@ export declare const RESTART_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/ser
|
|
|
1125
1125
|
}, z.core.$strip>>;
|
|
1126
1126
|
}, z.core.$strip>, z.ZodObject<{
|
|
1127
1127
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1128
|
-
success: "success";
|
|
1129
|
-
running: "running";
|
|
1130
|
-
waiting: "waiting";
|
|
1131
|
-
suspended: "suspended";
|
|
1132
|
-
failed: "failed";
|
|
1133
|
-
canceled: "canceled";
|
|
1134
|
-
pending: "pending";
|
|
1135
1128
|
bailed: "bailed";
|
|
1136
|
-
|
|
1129
|
+
canceled: "canceled";
|
|
1130
|
+
failed: "failed";
|
|
1137
1131
|
paused: "paused";
|
|
1132
|
+
pending: "pending";
|
|
1133
|
+
running: "running";
|
|
1138
1134
|
skipped: "skipped";
|
|
1135
|
+
success: "success";
|
|
1136
|
+
suspended: "suspended";
|
|
1137
|
+
tripwire: "tripwire";
|
|
1138
|
+
waiting: "waiting";
|
|
1139
1139
|
}>>;
|
|
1140
1140
|
result: z.ZodOptional<z.ZodUnknown>;
|
|
1141
1141
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -1145,17 +1145,17 @@ export declare const RESTART_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/ser
|
|
|
1145
1145
|
activeStepsPath: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>;
|
|
1146
1146
|
serializedStepGraph: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1147
1147
|
type: z.ZodEnum<{
|
|
1148
|
-
step: "step";
|
|
1149
1148
|
agent: "agent";
|
|
1150
|
-
|
|
1149
|
+
conditional: "conditional";
|
|
1150
|
+
foreach: "foreach";
|
|
1151
|
+
loop: "loop";
|
|
1151
1152
|
mapping: "mapping";
|
|
1153
|
+
parallel: "parallel";
|
|
1152
1154
|
sleep: "sleep";
|
|
1153
1155
|
sleepUntil: "sleepUntil";
|
|
1156
|
+
step: "step";
|
|
1157
|
+
tool: "tool";
|
|
1154
1158
|
waitForEvent: "waitForEvent";
|
|
1155
|
-
parallel: "parallel";
|
|
1156
|
-
conditional: "conditional";
|
|
1157
|
-
loop: "loop";
|
|
1158
|
-
foreach: "foreach";
|
|
1159
1159
|
workflow: "workflow";
|
|
1160
1160
|
}>;
|
|
1161
1161
|
}, z.core.$strip>>>;
|
|
@@ -1163,11 +1163,11 @@ export declare const RESTART_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/ser
|
|
|
1163
1163
|
} & {
|
|
1164
1164
|
readonly _mastraSchemaRoute: true;
|
|
1165
1165
|
};
|
|
1166
|
-
export declare const RESTART_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1166
|
+
export declare const RESTART_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1167
1167
|
method: "POST";
|
|
1168
1168
|
path: "/workflows/:workflowId/restart";
|
|
1169
1169
|
responseType: "json";
|
|
1170
|
-
streamFormat?:
|
|
1170
|
+
streamFormat?: 'sse' | 'stream';
|
|
1171
1171
|
sseFlushOnConnect?: boolean;
|
|
1172
1172
|
handler(params: {
|
|
1173
1173
|
workflowId: string;
|
|
@@ -1218,11 +1218,11 @@ export declare const RESTART_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").
|
|
|
1218
1218
|
} & {
|
|
1219
1219
|
readonly _mastraSchemaRoute: true;
|
|
1220
1220
|
};
|
|
1221
|
-
export declare const RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ASYNC_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1221
|
+
export declare const RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ASYNC_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1222
1222
|
method: "POST";
|
|
1223
1223
|
path: "/workflows/:workflowId/restart-all-active-workflow-runs-async";
|
|
1224
1224
|
responseType: "json";
|
|
1225
|
-
streamFormat?:
|
|
1225
|
+
streamFormat?: 'sse' | 'stream';
|
|
1226
1226
|
sseFlushOnConnect?: boolean;
|
|
1227
1227
|
handler(params: {
|
|
1228
1228
|
workflowId: string;
|
|
@@ -1247,11 +1247,11 @@ export declare const RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ASYNC_ROUTE: Omit<import("
|
|
|
1247
1247
|
} & {
|
|
1248
1248
|
readonly _mastraSchemaRoute: true;
|
|
1249
1249
|
};
|
|
1250
|
-
export declare const RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1250
|
+
export declare const RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1251
1251
|
method: "POST";
|
|
1252
1252
|
path: "/workflows/:workflowId/restart-all-active-workflow-runs";
|
|
1253
1253
|
responseType: "json";
|
|
1254
|
-
streamFormat?:
|
|
1254
|
+
streamFormat?: 'sse' | 'stream';
|
|
1255
1255
|
sseFlushOnConnect?: boolean;
|
|
1256
1256
|
handler(params: {
|
|
1257
1257
|
workflowId: string;
|
|
@@ -1276,21 +1276,21 @@ export declare const RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ROUTE: Omit<import("@mastr
|
|
|
1276
1276
|
} & {
|
|
1277
1277
|
readonly _mastraSchemaRoute: true;
|
|
1278
1278
|
};
|
|
1279
|
-
export declare const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1279
|
+
export declare const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1280
1280
|
method: "POST";
|
|
1281
1281
|
path: "/workflows/:workflowId/time-travel-async";
|
|
1282
1282
|
responseType: "json";
|
|
1283
|
-
streamFormat?:
|
|
1283
|
+
streamFormat?: 'sse' | 'stream';
|
|
1284
1284
|
sseFlushOnConnect?: boolean;
|
|
1285
1285
|
handler(params: {
|
|
1286
1286
|
workflowId: string;
|
|
1287
1287
|
} & {
|
|
1288
1288
|
runId: string;
|
|
1289
1289
|
} & {
|
|
1290
|
-
step: string | string[];
|
|
1291
1290
|
inputData?: unknown;
|
|
1292
1291
|
resumeData?: unknown;
|
|
1293
1292
|
initialState?: unknown;
|
|
1293
|
+
step: string | string[];
|
|
1294
1294
|
context?: import("@mastra/core/workflows").TimeTravelContext<unknown, unknown, unknown, unknown> | undefined;
|
|
1295
1295
|
nestedStepsContext?: Record<string, import("@mastra/core/workflows").TimeTravelContext<unknown, unknown, unknown, unknown>> | undefined;
|
|
1296
1296
|
requestContext?: Record<string, unknown> | undefined;
|
|
@@ -1305,7 +1305,7 @@ export declare const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core
|
|
|
1305
1305
|
} | undefined;
|
|
1306
1306
|
perStep?: boolean | undefined;
|
|
1307
1307
|
} & import("../server-adapter").ServerContext): Promise<{
|
|
1308
|
-
status?: "
|
|
1308
|
+
status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
|
|
1309
1309
|
result?: unknown;
|
|
1310
1310
|
error?: unknown;
|
|
1311
1311
|
payload?: unknown;
|
|
@@ -1313,7 +1313,7 @@ export declare const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core
|
|
|
1313
1313
|
steps?: Record<string, unknown> | undefined;
|
|
1314
1314
|
activeStepsPath?: Record<string, number[]> | undefined;
|
|
1315
1315
|
serializedStepGraph?: {
|
|
1316
|
-
type: "
|
|
1316
|
+
type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
|
|
1317
1317
|
}[] | undefined;
|
|
1318
1318
|
}>;
|
|
1319
1319
|
pathParamSchema?: z.ZodType;
|
|
@@ -1350,17 +1350,17 @@ export declare const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core
|
|
|
1350
1350
|
perStep: z.ZodOptional<z.ZodBoolean>;
|
|
1351
1351
|
}, z.core.$strip>, z.ZodObject<{
|
|
1352
1352
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1353
|
-
success: "success";
|
|
1354
|
-
running: "running";
|
|
1355
|
-
waiting: "waiting";
|
|
1356
|
-
suspended: "suspended";
|
|
1357
|
-
failed: "failed";
|
|
1358
|
-
canceled: "canceled";
|
|
1359
|
-
pending: "pending";
|
|
1360
1353
|
bailed: "bailed";
|
|
1361
|
-
|
|
1354
|
+
canceled: "canceled";
|
|
1355
|
+
failed: "failed";
|
|
1362
1356
|
paused: "paused";
|
|
1357
|
+
pending: "pending";
|
|
1358
|
+
running: "running";
|
|
1363
1359
|
skipped: "skipped";
|
|
1360
|
+
success: "success";
|
|
1361
|
+
suspended: "suspended";
|
|
1362
|
+
tripwire: "tripwire";
|
|
1363
|
+
waiting: "waiting";
|
|
1364
1364
|
}>>;
|
|
1365
1365
|
result: z.ZodOptional<z.ZodUnknown>;
|
|
1366
1366
|
error: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -1370,17 +1370,17 @@ export declare const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core
|
|
|
1370
1370
|
activeStepsPath: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>;
|
|
1371
1371
|
serializedStepGraph: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1372
1372
|
type: z.ZodEnum<{
|
|
1373
|
-
step: "step";
|
|
1374
1373
|
agent: "agent";
|
|
1375
|
-
|
|
1374
|
+
conditional: "conditional";
|
|
1375
|
+
foreach: "foreach";
|
|
1376
|
+
loop: "loop";
|
|
1376
1377
|
mapping: "mapping";
|
|
1378
|
+
parallel: "parallel";
|
|
1377
1379
|
sleep: "sleep";
|
|
1378
1380
|
sleepUntil: "sleepUntil";
|
|
1381
|
+
step: "step";
|
|
1382
|
+
tool: "tool";
|
|
1379
1383
|
waitForEvent: "waitForEvent";
|
|
1380
|
-
parallel: "parallel";
|
|
1381
|
-
conditional: "conditional";
|
|
1382
|
-
loop: "loop";
|
|
1383
|
-
foreach: "foreach";
|
|
1384
1384
|
workflow: "workflow";
|
|
1385
1385
|
}>;
|
|
1386
1386
|
}, z.core.$strip>>>;
|
|
@@ -1388,21 +1388,21 @@ export declare const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE: Omit<import("@mastra/core
|
|
|
1388
1388
|
} & {
|
|
1389
1389
|
readonly _mastraSchemaRoute: true;
|
|
1390
1390
|
};
|
|
1391
|
-
export declare const TIME_TRAVEL_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1391
|
+
export declare const TIME_TRAVEL_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1392
1392
|
method: "POST";
|
|
1393
1393
|
path: "/workflows/:workflowId/time-travel";
|
|
1394
1394
|
responseType: "json";
|
|
1395
|
-
streamFormat?:
|
|
1395
|
+
streamFormat?: 'sse' | 'stream';
|
|
1396
1396
|
sseFlushOnConnect?: boolean;
|
|
1397
1397
|
handler(params: {
|
|
1398
1398
|
workflowId: string;
|
|
1399
1399
|
} & {
|
|
1400
1400
|
runId: string;
|
|
1401
1401
|
} & {
|
|
1402
|
-
step: string | string[];
|
|
1403
1402
|
inputData?: unknown;
|
|
1404
1403
|
resumeData?: unknown;
|
|
1405
1404
|
initialState?: unknown;
|
|
1405
|
+
step: string | string[];
|
|
1406
1406
|
context?: import("@mastra/core/workflows").TimeTravelContext<unknown, unknown, unknown, unknown> | undefined;
|
|
1407
1407
|
nestedStepsContext?: Record<string, import("@mastra/core/workflows").TimeTravelContext<unknown, unknown, unknown, unknown>> | undefined;
|
|
1408
1408
|
requestContext?: Record<string, unknown> | undefined;
|
|
@@ -1457,21 +1457,21 @@ export declare const TIME_TRAVEL_WORKFLOW_ROUTE: Omit<import("@mastra/core/serve
|
|
|
1457
1457
|
} & {
|
|
1458
1458
|
readonly _mastraSchemaRoute: true;
|
|
1459
1459
|
};
|
|
1460
|
-
export declare const TIME_TRAVEL_STREAM_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1460
|
+
export declare const TIME_TRAVEL_STREAM_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1461
1461
|
method: "POST";
|
|
1462
1462
|
path: "/workflows/:workflowId/time-travel-stream";
|
|
1463
1463
|
responseType: "stream";
|
|
1464
|
-
streamFormat?:
|
|
1464
|
+
streamFormat?: 'sse' | 'stream';
|
|
1465
1465
|
sseFlushOnConnect?: boolean;
|
|
1466
1466
|
handler(params: {
|
|
1467
1467
|
workflowId: string;
|
|
1468
1468
|
} & {
|
|
1469
1469
|
runId: string;
|
|
1470
1470
|
} & {
|
|
1471
|
-
step: string | string[];
|
|
1472
1471
|
inputData?: unknown;
|
|
1473
1472
|
resumeData?: unknown;
|
|
1474
1473
|
initialState?: unknown;
|
|
1474
|
+
step: string | string[];
|
|
1475
1475
|
context?: import("@mastra/core/workflows").TimeTravelContext<unknown, unknown, unknown, unknown> | undefined;
|
|
1476
1476
|
nestedStepsContext?: Record<string, import("@mastra/core/workflows").TimeTravelContext<unknown, unknown, unknown, unknown>> | undefined;
|
|
1477
1477
|
requestContext?: Record<string, unknown> | undefined;
|
|
@@ -1522,11 +1522,11 @@ export declare const TIME_TRAVEL_STREAM_WORKFLOW_ROUTE: Omit<import("@mastra/cor
|
|
|
1522
1522
|
} & {
|
|
1523
1523
|
readonly _mastraSchemaRoute: true;
|
|
1524
1524
|
};
|
|
1525
|
-
export declare const CANCEL_WORKFLOW_RUN_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1525
|
+
export declare const CANCEL_WORKFLOW_RUN_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1526
1526
|
method: "POST";
|
|
1527
1527
|
path: "/workflows/:workflowId/runs/:runId/cancel";
|
|
1528
1528
|
responseType: "json";
|
|
1529
|
-
streamFormat?:
|
|
1529
|
+
streamFormat?: 'sse' | 'stream';
|
|
1530
1530
|
sseFlushOnConnect?: boolean;
|
|
1531
1531
|
handler(params: {
|
|
1532
1532
|
workflowId: string;
|
|
@@ -1553,11 +1553,11 @@ export declare const CANCEL_WORKFLOW_RUN_ROUTE: Omit<import("@mastra/core/server
|
|
|
1553
1553
|
} & {
|
|
1554
1554
|
readonly _mastraSchemaRoute: true;
|
|
1555
1555
|
};
|
|
1556
|
-
export declare const STREAM_LEGACY_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1556
|
+
export declare const STREAM_LEGACY_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1557
1557
|
method: "POST";
|
|
1558
1558
|
path: "/workflows/:workflowId/stream-legacy";
|
|
1559
1559
|
responseType: "stream";
|
|
1560
|
-
streamFormat?:
|
|
1560
|
+
streamFormat?: 'sse' | 'stream';
|
|
1561
1561
|
sseFlushOnConnect?: boolean;
|
|
1562
1562
|
handler(params: {
|
|
1563
1563
|
workflowId: string;
|
|
@@ -1614,11 +1614,11 @@ export declare const STREAM_LEGACY_WORKFLOW_ROUTE: Omit<import("@mastra/core/ser
|
|
|
1614
1614
|
} & {
|
|
1615
1615
|
readonly _mastraSchemaRoute: true;
|
|
1616
1616
|
};
|
|
1617
|
-
export declare const OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1617
|
+
export declare const OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1618
1618
|
method: "POST";
|
|
1619
1619
|
path: "/workflows/:workflowId/observe-stream-legacy";
|
|
1620
1620
|
responseType: "stream";
|
|
1621
|
-
streamFormat?:
|
|
1621
|
+
streamFormat?: 'sse' | 'stream';
|
|
1622
1622
|
sseFlushOnConnect?: boolean;
|
|
1623
1623
|
handler(params: {
|
|
1624
1624
|
workflowId: string;
|
|
@@ -1643,11 +1643,11 @@ export declare const OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE: Omit<import("@mastra/
|
|
|
1643
1643
|
} & {
|
|
1644
1644
|
readonly _mastraSchemaRoute: true;
|
|
1645
1645
|
};
|
|
1646
|
-
export declare const EXECUTE_WORKFLOW_STEP_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1646
|
+
export declare const EXECUTE_WORKFLOW_STEP_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1647
1647
|
method: "POST";
|
|
1648
1648
|
path: "/workflows/:workflowId/runs/:runId/steps/execute";
|
|
1649
1649
|
responseType: "json";
|
|
1650
|
-
streamFormat?:
|
|
1650
|
+
streamFormat?: 'sse' | 'stream';
|
|
1651
1651
|
sseFlushOnConnect?: boolean;
|
|
1652
1652
|
handler(params: {
|
|
1653
1653
|
workflowId: string;
|
|
@@ -1715,11 +1715,11 @@ export declare const EXECUTE_WORKFLOW_STEP_ROUTE: Omit<import("@mastra/core/serv
|
|
|
1715
1715
|
* for GCP Pub/Sub push). Without an auth provider the endpoint is effectively
|
|
1716
1716
|
* public — same caveat as `EXECUTE_WORKFLOW_STEP_ROUTE`.
|
|
1717
1717
|
*/
|
|
1718
|
-
export declare const RECEIVE_WORKFLOW_EVENT_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1718
|
+
export declare const RECEIVE_WORKFLOW_EVENT_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1719
1719
|
method: "POST";
|
|
1720
1720
|
path: "/workflows/events";
|
|
1721
1721
|
responseType: "json";
|
|
1722
|
-
streamFormat?:
|
|
1722
|
+
streamFormat?: 'sse' | 'stream';
|
|
1723
1723
|
sseFlushOnConnect?: boolean;
|
|
1724
1724
|
handler(params: {
|
|
1725
1725
|
event: {
|