@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.
Files changed (141) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/_types/@internal_core/dist/storage/index.d.ts +401 -401
  3. package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v3.d.ts +5 -5
  4. package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v4.d.ts +5 -5
  5. package/dist/_types/@mastra_schema-compat/dist/standard-schema/standard-schema.d.ts +1 -1
  6. package/dist/docs/SKILL.md +8 -8
  7. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  8. package/dist/server/a2a/push-notification-sender.d.ts.map +1 -1
  9. package/dist/server/a2a/push-notification-store.d.ts.map +1 -1
  10. package/dist/server/a2a/store.d.ts.map +1 -1
  11. package/dist/server/auth/helpers.d.ts +1 -1
  12. package/dist/server/auth/helpers.d.ts.map +1 -1
  13. package/dist/server/browser-stream/viewer-registry.d.ts.map +1 -1
  14. package/dist/server/constants.d.ts +1 -1
  15. package/dist/server/constants.d.ts.map +1 -1
  16. package/dist/server/handlers/a2a.d.ts +60 -60
  17. package/dist/server/handlers/a2a.d.ts.map +1 -1
  18. package/dist/server/handlers/agent-builder.d.ts +110 -110
  19. package/dist/server/handlers/agent-controller.cjs +10 -4
  20. package/dist/server/handlers/agent-controller.cjs.map +1 -1
  21. package/dist/server/handlers/agent-controller.d.ts +110 -110
  22. package/dist/server/handlers/agent-controller.d.ts.map +1 -1
  23. package/dist/server/handlers/agent-controller.js +10 -4
  24. package/dist/server/handlers/agent-controller.js.map +1 -1
  25. package/dist/server/handlers/agent-versions.d.ts +5267 -5259
  26. package/dist/server/handlers/agent-versions.d.ts.map +1 -1
  27. package/dist/server/handlers/agents.d.ts +4355 -4355
  28. package/dist/server/handlers/agents.d.ts.map +1 -1
  29. package/dist/server/handlers/auth.d.ts +52 -52
  30. package/dist/server/handlers/background-tasks.d.ts +37 -37
  31. package/dist/server/handlers/builder-registry.d.ts +12 -12
  32. package/dist/server/handlers/channels.d.ts +10 -10
  33. package/dist/server/handlers/conversations.d.ts +13 -13
  34. package/dist/server/handlers/datasets.d.ts +396 -396
  35. package/dist/server/handlers/dynamic-workflows.d.ts +36 -36
  36. package/dist/server/handlers/editor-builder.d.ts +13 -13
  37. package/dist/server/handlers/gateway-memory-client.d.ts +4 -4
  38. package/dist/server/handlers/gateway-memory-client.d.ts.map +1 -1
  39. package/dist/server/handlers/logs.d.ts +40 -40
  40. package/dist/server/handlers/mcp-client-versions.d.ts +32 -32
  41. package/dist/server/handlers/mcp.d.ts +23 -23
  42. package/dist/server/handlers/memory.d.ts +138 -138
  43. package/dist/server/handlers/observability-list-query-schemas.d.ts +1 -1
  44. package/dist/server/handlers/observability-new-endpoints.d.ts +859 -859
  45. package/dist/server/handlers/observability-shared.d.ts +126 -126
  46. package/dist/server/handlers/observability-shared.d.ts.map +1 -1
  47. package/dist/server/handlers/observability.d.ts +17 -17
  48. package/dist/server/handlers/plans.d.ts +3 -3
  49. package/dist/server/handlers/processor-providers.d.ts +9 -9
  50. package/dist/server/handlers/processors.d.ts +31 -31
  51. package/dist/server/handlers/prompt-block-versions.d.ts +176 -176
  52. package/dist/server/handlers/responses.adapter.d.ts +3 -3
  53. package/dist/server/handlers/responses.adapter.d.ts.map +1 -1
  54. package/dist/server/handlers/responses.d.ts +17 -17
  55. package/dist/server/handlers/schedules.d.ts +242 -242
  56. package/dist/server/handlers/scorer-versions.d.ts +39 -39
  57. package/dist/server/handlers/scores.d.ts +20 -20
  58. package/dist/server/handlers/stored-agent-favorites.d.ts +4 -4
  59. package/dist/server/handlers/stored-agents.d.ts +5992 -5984
  60. package/dist/server/handlers/stored-agents.d.ts.map +1 -1
  61. package/dist/server/handlers/stored-mcp-clients.d.ts +46 -46
  62. package/dist/server/handlers/stored-prompt-blocks.d.ts +193 -193
  63. package/dist/server/handlers/stored-scorers.d.ts +56 -56
  64. package/dist/server/handlers/stored-skill-favorites.d.ts +4 -4
  65. package/dist/server/handlers/stored-skills.d.ts +70 -70
  66. package/dist/server/handlers/stored-workspaces.d.ts +36 -36
  67. package/dist/server/handlers/system.d.ts +19 -19
  68. package/dist/server/handlers/tool-providers.d.ts +49 -49
  69. package/dist/server/handlers/tools.d.ts +10 -10
  70. package/dist/server/handlers/vector.d.ts +18 -18
  71. package/dist/server/handlers/version-helpers.d.ts +1 -1
  72. package/dist/server/handlers/version-helpers.d.ts.map +1 -1
  73. package/dist/server/handlers/workflows.d.ts +167 -167
  74. package/dist/server/handlers/workspace.d.ts +370 -370
  75. package/dist/server/http-exception.d.ts.map +1 -1
  76. package/dist/server/schemas/a2a.d.ts +18 -18
  77. package/dist/server/schemas/agent-versions.d.ts +3948 -3948
  78. package/dist/server/schemas/agents.d.ts +172 -172
  79. package/dist/server/schemas/agents.d.ts.map +1 -1
  80. package/dist/server/schemas/auth.d.ts +5 -5
  81. package/dist/server/schemas/background-tasks.d.ts +22 -22
  82. package/dist/server/schemas/builder-registry.d.ts +1 -1
  83. package/dist/server/schemas/channels.d.ts +1 -1
  84. package/dist/server/schemas/common.d.ts +5 -5
  85. package/dist/server/schemas/common.d.ts.map +1 -1
  86. package/dist/server/schemas/conversations.d.ts +2 -2
  87. package/dist/server/schemas/datasets.d.ts +98 -98
  88. package/dist/server/schemas/dynamic-workflows.d.ts +7 -7
  89. package/dist/server/schemas/logs.d.ts +8 -8
  90. package/dist/server/schemas/mcp-client-versions.d.ts +2 -2
  91. package/dist/server/schemas/memory-config.d.ts +5 -5
  92. package/dist/server/schemas/memory.d.ts +20 -20
  93. package/dist/server/schemas/processor-providers.d.ts +2 -2
  94. package/dist/server/schemas/processors.d.ts +13 -13
  95. package/dist/server/schemas/prompt-block-versions.d.ts +149 -149
  96. package/dist/server/schemas/responses.d.ts +11 -11
  97. package/dist/server/schemas/rule-group.d.ts +28 -28
  98. package/dist/server/schemas/schedules.d.ts +120 -120
  99. package/dist/server/schemas/scorer-versions.d.ts +9 -9
  100. package/dist/server/schemas/scores.d.ts +2 -2
  101. package/dist/server/schemas/stored-agents.d.ts +9052 -9052
  102. package/dist/server/schemas/stored-mcp-clients.d.ts +9 -9
  103. package/dist/server/schemas/stored-prompt-blocks.d.ts +156 -156
  104. package/dist/server/schemas/stored-scorers.d.ts +16 -16
  105. package/dist/server/schemas/stored-skills.d.ts +22 -22
  106. package/dist/server/schemas/stored-workspaces.d.ts +6 -6
  107. package/dist/server/schemas/system.d.ts +12 -12
  108. package/dist/server/schemas/tool-providers.d.ts +20 -20
  109. package/dist/server/schemas/vectors.d.ts +1 -1
  110. package/dist/server/schemas/version-common.d.ts +2 -2
  111. package/dist/server/schemas/workflows.d.ts +57 -57
  112. package/dist/server/schemas/workspace.d.ts +17 -17
  113. package/dist/server/server-adapter/index.d.ts.map +1 -1
  114. package/dist/server/server-adapter/routes/a2a.d.ts +49 -49
  115. package/dist/server/server-adapter/routes/agent-builder.d.ts +110 -110
  116. package/dist/server/server-adapter/routes/channels.d.ts +10 -10
  117. package/dist/server/server-adapter/routes/conversations.d.ts +26 -26
  118. package/dist/server/server-adapter/routes/datasets.d.ts +394 -394
  119. package/dist/server/server-adapter/routes/editor-builder.d.ts +25 -25
  120. package/dist/server/server-adapter/routes/legacy.d.ts +157 -157
  121. package/dist/server/server-adapter/routes/logs.d.ts +40 -40
  122. package/dist/server/server-adapter/routes/mcp.d.ts +23 -23
  123. package/dist/server/server-adapter/routes/memory.d.ts +138 -138
  124. package/dist/server/server-adapter/routes/observability.d.ts +446 -446
  125. package/dist/server/server-adapter/routes/processor-providers.d.ts +9 -9
  126. package/dist/server/server-adapter/routes/processors.d.ts +31 -31
  127. package/dist/server/server-adapter/routes/responses.d.ts +17 -17
  128. package/dist/server/server-adapter/routes/scorers.d.ts +20 -20
  129. package/dist/server/server-adapter/routes/stored-mcp-clients.d.ts +78 -78
  130. package/dist/server/server-adapter/routes/stored-prompt-blocks.d.ts +369 -369
  131. package/dist/server/server-adapter/routes/stored-scorers.d.ts +95 -95
  132. package/dist/server/server-adapter/routes/stored-skills.d.ts +74 -74
  133. package/dist/server/server-adapter/routes/stored-workspaces.d.ts +36 -36
  134. package/dist/server/server-adapter/routes/system.d.ts +19 -19
  135. package/dist/server/server-adapter/routes/tool-providers.d.ts +49 -49
  136. package/dist/server/server-adapter/routes/tools.d.ts +6 -6
  137. package/dist/server/server-adapter/routes/vectors.d.ts +18 -18
  138. package/dist/server/server-adapter/routes/workflows.d.ts +163 -163
  139. package/dist/server/server-adapter/routes/workspace.d.ts +334 -334
  140. package/dist/server/utils.d.ts.map +1 -1
  141. package/package.json +8 -7
@@ -1,8 +1,8 @@
1
- export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1
+ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2
2
  method: "GET";
3
3
  path: "/workflows";
4
4
  responseType: "json";
5
- streamFormat?: "sse" | "stream";
5
+ streamFormat?: 'sse' | 'stream';
6
6
  sseFlushOnConnect?: boolean;
7
7
  handler(params: {
8
8
  partial?: string | undefined;
@@ -31,12 +31,12 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
31
31
  isWorkflow?: boolean | undefined;
32
32
  metadata?: Record<string, unknown> | undefined;
33
33
  }>;
34
- stepGraph: {
35
- type: "step" | "agent" | "tool" | "mapping" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach" | "workflow";
36
- }[];
37
34
  name?: string | undefined;
38
35
  description?: string | undefined;
39
36
  metadata?: Record<string, unknown> | undefined;
37
+ stepGraph: {
38
+ type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
39
+ }[];
40
40
  inputSchema?: string | undefined;
41
41
  outputSchema?: string | undefined;
42
42
  stateSchema?: string | undefined;
@@ -86,17 +86,17 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
86
86
  metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
87
87
  stepGraph: import("zod").ZodArray<import("zod").ZodObject<{
88
88
  type: import("zod").ZodEnum<{
89
- step: "step";
90
89
  agent: "agent";
91
- tool: "tool";
90
+ conditional: "conditional";
91
+ foreach: "foreach";
92
+ loop: "loop";
92
93
  mapping: "mapping";
94
+ parallel: "parallel";
93
95
  sleep: "sleep";
94
96
  sleepUntil: "sleepUntil";
97
+ step: "step";
98
+ tool: "tool";
95
99
  waitForEvent: "waitForEvent";
96
- parallel: "parallel";
97
- conditional: "conditional";
98
- loop: "loop";
99
- foreach: "foreach";
100
100
  workflow: "workflow";
101
101
  }>;
102
102
  }, import("zod/v4/core").$strip>>;
@@ -112,11 +112,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
112
112
  }, import("zod/v4/core").$strip>>> | undefined;
113
113
  } & {
114
114
  readonly _mastraSchemaRoute: true;
115
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
115
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
116
116
  method: "GET";
117
117
  path: "/workflows/run-counts";
118
118
  responseType: "json";
119
- streamFormat?: "sse" | "stream";
119
+ streamFormat?: 'sse' | 'stream';
120
120
  sseFlushOnConnect?: boolean;
121
121
  handler(params: import(".").ServerContext): Promise<Record<string, {
122
122
  running: number;
@@ -138,11 +138,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
138
138
  }, import("zod/v4/core").$strip>>> | undefined;
139
139
  } & {
140
140
  readonly _mastraSchemaRoute: true;
141
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
141
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
142
142
  method: "GET";
143
143
  path: "/workflows/:workflowId";
144
144
  responseType: "json";
145
- streamFormat?: "sse" | "stream";
145
+ streamFormat?: 'sse' | 'stream';
146
146
  sseFlushOnConnect?: boolean;
147
147
  handler(params: {
148
148
  workflowId: string;
@@ -171,12 +171,12 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
171
171
  isWorkflow?: boolean | undefined;
172
172
  metadata?: Record<string, unknown> | undefined;
173
173
  }>;
174
- stepGraph: {
175
- type: "step" | "agent" | "tool" | "mapping" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach" | "workflow";
176
- }[];
177
174
  name?: string | undefined;
178
175
  description?: string | undefined;
179
176
  metadata?: Record<string, unknown> | undefined;
177
+ stepGraph: {
178
+ type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
179
+ }[];
180
180
  inputSchema?: string | undefined;
181
181
  outputSchema?: string | undefined;
182
182
  stateSchema?: string | undefined;
@@ -226,17 +226,17 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
226
226
  metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
227
227
  stepGraph: import("zod").ZodArray<import("zod").ZodObject<{
228
228
  type: import("zod").ZodEnum<{
229
- step: "step";
230
229
  agent: "agent";
231
- tool: "tool";
230
+ conditional: "conditional";
231
+ foreach: "foreach";
232
+ loop: "loop";
232
233
  mapping: "mapping";
234
+ parallel: "parallel";
233
235
  sleep: "sleep";
234
236
  sleepUntil: "sleepUntil";
237
+ step: "step";
238
+ tool: "tool";
235
239
  waitForEvent: "waitForEvent";
236
- parallel: "parallel";
237
- conditional: "conditional";
238
- loop: "loop";
239
- foreach: "foreach";
240
240
  workflow: "workflow";
241
241
  }>;
242
242
  }, import("zod/v4/core").$strip>>;
@@ -252,11 +252,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
252
252
  }, import("zod/v4/core").$strip>> | undefined;
253
253
  } & {
254
254
  readonly _mastraSchemaRoute: true;
255
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
255
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
256
256
  method: "GET";
257
257
  path: "/workflows/:workflowId/runs";
258
258
  responseType: "json";
259
- streamFormat?: "sse" | "stream";
259
+ streamFormat?: 'sse' | 'stream';
260
260
  sseFlushOnConnect?: boolean;
261
261
  handler(params: {
262
262
  workflowId: string;
@@ -268,7 +268,7 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
268
268
  fromDate?: Date | undefined;
269
269
  toDate?: Date | undefined;
270
270
  resourceId?: string | undefined;
271
- status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | "skipped" | undefined;
271
+ status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
272
272
  } & import(".").ServerContext): Promise<{
273
273
  runs: {
274
274
  workflowName: string;
@@ -301,17 +301,17 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
301
301
  toDate: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
302
302
  resourceId: import("zod").ZodOptional<import("zod").ZodString>;
303
303
  status: import("zod").ZodOptional<import("zod").ZodEnum<{
304
- success: "success";
305
- running: "running";
306
- waiting: "waiting";
307
- suspended: "suspended";
308
- failed: "failed";
309
- canceled: "canceled";
310
- pending: "pending";
311
304
  bailed: "bailed";
312
- tripwire: "tripwire";
305
+ canceled: "canceled";
306
+ failed: "failed";
313
307
  paused: "paused";
308
+ pending: "pending";
309
+ running: "running";
314
310
  skipped: "skipped";
311
+ success: "success";
312
+ suspended: "suspended";
313
+ tripwire: "tripwire";
314
+ waiting: "waiting";
315
315
  }>>;
316
316
  }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
317
317
  runs: import("zod").ZodArray<import("zod").ZodObject<{
@@ -326,25 +326,25 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
326
326
  }, import("zod/v4/core").$strip>> | undefined;
327
327
  } & {
328
328
  readonly _mastraSchemaRoute: true;
329
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
329
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
330
330
  method: "GET";
331
331
  path: "/workflows/:workflowId/runs/:runId";
332
332
  responseType: "json";
333
- streamFormat?: "sse" | "stream";
333
+ streamFormat?: 'sse' | 'stream';
334
334
  sseFlushOnConnect?: boolean;
335
335
  handler(params: {
336
336
  workflowId: string;
337
337
  runId: string;
338
338
  } & {
339
339
  fields?: string | undefined;
340
- withNestedWorkflows?: "true" | "false" | undefined;
340
+ withNestedWorkflows?: "false" | "true" | undefined;
341
341
  } & import(".").ServerContext): Promise<{
342
342
  runId: string;
343
343
  workflowName: string;
344
+ resourceId?: string | undefined;
344
345
  createdAt: Date;
345
346
  updatedAt: Date;
346
- status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | "skipped";
347
- resourceId?: string | undefined;
347
+ status: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting";
348
348
  initialState?: Record<string, unknown> | undefined;
349
349
  result?: unknown;
350
350
  error?: unknown;
@@ -352,7 +352,7 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
352
352
  steps?: Record<string, unknown> | undefined;
353
353
  activeStepsPath?: Record<string, number[]> | undefined;
354
354
  serializedStepGraph?: {
355
- type: "step" | "agent" | "tool" | "mapping" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach" | "workflow";
355
+ type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
356
356
  }[] | undefined;
357
357
  }>;
358
358
  pathParamSchema?: import("zod").ZodType;
@@ -371,8 +371,8 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
371
371
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
372
372
  fields: import("zod").ZodOptional<import("zod").ZodString>;
373
373
  withNestedWorkflows: import("zod").ZodOptional<import("zod").ZodEnum<{
374
- true: "true";
375
374
  false: "false";
375
+ true: "true";
376
376
  }>>;
377
377
  }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
378
378
  runId: import("zod").ZodString;
@@ -381,17 +381,17 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
381
381
  createdAt: import("zod").ZodDate;
382
382
  updatedAt: import("zod").ZodDate;
383
383
  status: import("zod").ZodEnum<{
384
- success: "success";
385
- running: "running";
386
- waiting: "waiting";
387
- suspended: "suspended";
388
- failed: "failed";
389
- canceled: "canceled";
390
- pending: "pending";
391
384
  bailed: "bailed";
392
- tripwire: "tripwire";
385
+ canceled: "canceled";
386
+ failed: "failed";
393
387
  paused: "paused";
388
+ pending: "pending";
389
+ running: "running";
394
390
  skipped: "skipped";
391
+ success: "success";
392
+ suspended: "suspended";
393
+ tripwire: "tripwire";
394
+ waiting: "waiting";
395
395
  }>;
396
396
  initialState: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
397
397
  result: import("zod").ZodOptional<import("zod").ZodUnknown>;
@@ -401,28 +401,28 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
401
401
  activeStepsPath: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodNumber>>>;
402
402
  serializedStepGraph: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
403
403
  type: import("zod").ZodEnum<{
404
- step: "step";
405
404
  agent: "agent";
406
- tool: "tool";
405
+ conditional: "conditional";
406
+ foreach: "foreach";
407
+ loop: "loop";
407
408
  mapping: "mapping";
409
+ parallel: "parallel";
408
410
  sleep: "sleep";
409
411
  sleepUntil: "sleepUntil";
412
+ step: "step";
413
+ tool: "tool";
410
414
  waitForEvent: "waitForEvent";
411
- parallel: "parallel";
412
- conditional: "conditional";
413
- loop: "loop";
414
- foreach: "foreach";
415
415
  workflow: "workflow";
416
416
  }>;
417
417
  }, import("zod/v4/core").$strip>>>;
418
418
  }, import("zod/v4/core").$strip>> | undefined;
419
419
  } & {
420
420
  readonly _mastraSchemaRoute: true;
421
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
421
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
422
422
  method: "DELETE";
423
423
  path: "/workflows/:workflowId/runs/:runId";
424
424
  responseType: "json";
425
- streamFormat?: "sse" | "stream";
425
+ streamFormat?: 'sse' | 'stream';
426
426
  sseFlushOnConnect?: boolean;
427
427
  handler(params: {
428
428
  workflowId: string;
@@ -448,11 +448,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
448
448
  }, import("zod/v4/core").$strip>> | undefined;
449
449
  } & {
450
450
  readonly _mastraSchemaRoute: true;
451
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
451
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
452
452
  method: "POST";
453
453
  path: "/workflows/:workflowId/create-run";
454
454
  responseType: "json";
455
- streamFormat?: "sse" | "stream";
455
+ streamFormat?: 'sse' | 'stream';
456
456
  sseFlushOnConnect?: boolean;
457
457
  handler(params: {
458
458
  workflowId: string;
@@ -486,11 +486,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
486
486
  }, import("zod/v4/core").$strip>> | undefined;
487
487
  } & {
488
488
  readonly _mastraSchemaRoute: true;
489
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
489
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
490
490
  method: "POST";
491
491
  path: "/workflows/:workflowId/stream";
492
492
  responseType: "stream";
493
- streamFormat?: "sse" | "stream";
493
+ streamFormat?: 'sse' | 'stream';
494
494
  sseFlushOnConnect?: boolean;
495
495
  handler(params: {
496
496
  workflowId: string;
@@ -546,11 +546,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
546
546
  }, import("zod/v4/core").$strip>, undefined> | undefined;
547
547
  } & {
548
548
  readonly _mastraSchemaRoute: true;
549
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
549
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
550
550
  method: "POST";
551
551
  path: "/workflows/:workflowId/resume-stream";
552
552
  responseType: "stream";
553
- streamFormat?: "sse" | "stream";
553
+ streamFormat?: 'sse' | 'stream';
554
554
  sseFlushOnConnect?: boolean;
555
555
  handler(params: {
556
556
  workflowId: string;
@@ -604,11 +604,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
604
604
  }, import("zod/v4/core").$strip>, import("zod").ZodUnknown> | undefined;
605
605
  } & {
606
606
  readonly _mastraSchemaRoute: true;
607
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
607
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
608
608
  method: "POST";
609
609
  path: "/workflows/:workflowId/start-async";
610
610
  responseType: "json";
611
- streamFormat?: "sse" | "stream";
611
+ streamFormat?: 'sse' | 'stream';
612
612
  sseFlushOnConnect?: boolean;
613
613
  handler(params: {
614
614
  workflowId: string;
@@ -630,7 +630,7 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
630
630
  } | undefined;
631
631
  perStep?: boolean | undefined;
632
632
  } & import(".").ServerContext): Promise<{
633
- status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | "skipped" | undefined;
633
+ status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
634
634
  result?: unknown;
635
635
  error?: unknown;
636
636
  payload?: unknown;
@@ -638,7 +638,7 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
638
638
  steps?: Record<string, unknown> | undefined;
639
639
  activeStepsPath?: Record<string, number[]> | undefined;
640
640
  serializedStepGraph?: {
641
- type: "step" | "agent" | "tool" | "mapping" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach" | "workflow";
641
+ type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
642
642
  }[] | undefined;
643
643
  }>;
644
644
  pathParamSchema?: import("zod").ZodType;
@@ -672,17 +672,17 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
672
672
  perStep: import("zod").ZodOptional<import("zod").ZodBoolean>;
673
673
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
674
674
  status: import("zod").ZodOptional<import("zod").ZodEnum<{
675
- success: "success";
676
- running: "running";
677
- waiting: "waiting";
678
- suspended: "suspended";
679
- failed: "failed";
680
- canceled: "canceled";
681
- pending: "pending";
682
675
  bailed: "bailed";
683
- tripwire: "tripwire";
676
+ canceled: "canceled";
677
+ failed: "failed";
684
678
  paused: "paused";
679
+ pending: "pending";
680
+ running: "running";
685
681
  skipped: "skipped";
682
+ success: "success";
683
+ suspended: "suspended";
684
+ tripwire: "tripwire";
685
+ waiting: "waiting";
686
686
  }>>;
687
687
  result: import("zod").ZodOptional<import("zod").ZodUnknown>;
688
688
  error: import("zod").ZodOptional<import("zod").ZodUnknown>;
@@ -692,28 +692,28 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
692
692
  activeStepsPath: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodNumber>>>;
693
693
  serializedStepGraph: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
694
694
  type: import("zod").ZodEnum<{
695
- step: "step";
696
695
  agent: "agent";
697
- tool: "tool";
696
+ conditional: "conditional";
697
+ foreach: "foreach";
698
+ loop: "loop";
698
699
  mapping: "mapping";
700
+ parallel: "parallel";
699
701
  sleep: "sleep";
700
702
  sleepUntil: "sleepUntil";
703
+ step: "step";
704
+ tool: "tool";
701
705
  waitForEvent: "waitForEvent";
702
- parallel: "parallel";
703
- conditional: "conditional";
704
- loop: "loop";
705
- foreach: "foreach";
706
706
  workflow: "workflow";
707
707
  }>;
708
708
  }, import("zod/v4/core").$strip>>>;
709
709
  }, import("zod/v4/core").$strip>> | undefined;
710
710
  } & {
711
711
  readonly _mastraSchemaRoute: true;
712
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
712
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
713
713
  method: "POST";
714
714
  path: "/workflows/:workflowId/start";
715
715
  responseType: "json";
716
- streamFormat?: "sse" | "stream";
716
+ streamFormat?: 'sse' | 'stream';
717
717
  sseFlushOnConnect?: boolean;
718
718
  handler(params: {
719
719
  workflowId: string;
@@ -771,11 +771,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
771
771
  }, import("zod/v4/core").$strip>> | undefined;
772
772
  } & {
773
773
  readonly _mastraSchemaRoute: true;
774
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
774
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
775
775
  method: "POST";
776
776
  path: "/workflows/:workflowId/observe";
777
777
  responseType: "stream";
778
- streamFormat?: "sse" | "stream";
778
+ streamFormat?: 'sse' | 'stream';
779
779
  sseFlushOnConnect?: boolean;
780
780
  handler(params: {
781
781
  workflowId: string;
@@ -801,11 +801,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
801
801
  }, import("zod/v4/core").$strip>, undefined, import("zod").ZodUnknown> | undefined;
802
802
  } & {
803
803
  readonly _mastraSchemaRoute: true;
804
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
804
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
805
805
  method: "POST";
806
806
  path: "/workflows/:workflowId/resume-async";
807
807
  responseType: "json";
808
- streamFormat?: "sse" | "stream";
808
+ streamFormat?: 'sse' | 'stream';
809
809
  sseFlushOnConnect?: boolean;
810
810
  handler(params: {
811
811
  workflowId: string;
@@ -827,7 +827,7 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
827
827
  perStep?: boolean | undefined;
828
828
  forEachIndex?: number | undefined;
829
829
  } & import(".").ServerContext): Promise<{
830
- status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | "skipped" | undefined;
830
+ status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
831
831
  result?: unknown;
832
832
  error?: unknown;
833
833
  payload?: unknown;
@@ -835,7 +835,7 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
835
835
  steps?: Record<string, unknown> | undefined;
836
836
  activeStepsPath?: Record<string, number[]> | undefined;
837
837
  serializedStepGraph?: {
838
- type: "step" | "agent" | "tool" | "mapping" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach" | "workflow";
838
+ type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
839
839
  }[] | undefined;
840
840
  }>;
841
841
  pathParamSchema?: import("zod").ZodType;
@@ -869,17 +869,17 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
869
869
  forEachIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
870
870
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
871
871
  status: import("zod").ZodOptional<import("zod").ZodEnum<{
872
- success: "success";
873
- running: "running";
874
- waiting: "waiting";
875
- suspended: "suspended";
876
- failed: "failed";
877
- canceled: "canceled";
878
- pending: "pending";
879
872
  bailed: "bailed";
880
- tripwire: "tripwire";
873
+ canceled: "canceled";
874
+ failed: "failed";
881
875
  paused: "paused";
876
+ pending: "pending";
877
+ running: "running";
882
878
  skipped: "skipped";
879
+ success: "success";
880
+ suspended: "suspended";
881
+ tripwire: "tripwire";
882
+ waiting: "waiting";
883
883
  }>>;
884
884
  result: import("zod").ZodOptional<import("zod").ZodUnknown>;
885
885
  error: import("zod").ZodOptional<import("zod").ZodUnknown>;
@@ -889,28 +889,28 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
889
889
  activeStepsPath: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodNumber>>>;
890
890
  serializedStepGraph: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
891
891
  type: import("zod").ZodEnum<{
892
- step: "step";
893
892
  agent: "agent";
894
- tool: "tool";
893
+ conditional: "conditional";
894
+ foreach: "foreach";
895
+ loop: "loop";
895
896
  mapping: "mapping";
897
+ parallel: "parallel";
896
898
  sleep: "sleep";
897
899
  sleepUntil: "sleepUntil";
900
+ step: "step";
901
+ tool: "tool";
898
902
  waitForEvent: "waitForEvent";
899
- parallel: "parallel";
900
- conditional: "conditional";
901
- loop: "loop";
902
- foreach: "foreach";
903
903
  workflow: "workflow";
904
904
  }>;
905
905
  }, import("zod/v4/core").$strip>>>;
906
906
  }, import("zod/v4/core").$strip>> | undefined;
907
907
  } & {
908
908
  readonly _mastraSchemaRoute: true;
909
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
909
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
910
910
  method: "POST";
911
911
  path: "/workflows/:workflowId/resume-no-wait";
912
912
  responseType: "json";
913
- streamFormat?: "sse" | "stream";
913
+ streamFormat?: 'sse' | 'stream';
914
914
  sseFlushOnConnect?: boolean;
915
915
  handler(params: {
916
916
  workflowId: string;
@@ -968,11 +968,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
968
968
  }, import("zod/v4/core").$strip>> | undefined;
969
969
  } & {
970
970
  readonly _mastraSchemaRoute: true;
971
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
971
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
972
972
  method: "POST";
973
973
  path: "/workflows/:workflowId/resume";
974
974
  responseType: "json";
975
- streamFormat?: "sse" | "stream";
975
+ streamFormat?: 'sse' | 'stream';
976
976
  sseFlushOnConnect?: boolean;
977
977
  handler(params: {
978
978
  workflowId: string;
@@ -1030,11 +1030,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1030
1030
  }, import("zod/v4/core").$strip>> | undefined;
1031
1031
  } & {
1032
1032
  readonly _mastraSchemaRoute: true;
1033
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1033
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1034
1034
  method: "POST";
1035
1035
  path: "/workflows/:workflowId/runs/:runId/cancel";
1036
1036
  responseType: "json";
1037
- streamFormat?: "sse" | "stream";
1037
+ streamFormat?: 'sse' | 'stream';
1038
1038
  sseFlushOnConnect?: boolean;
1039
1039
  handler(params: {
1040
1040
  workflowId: string;
@@ -1060,21 +1060,21 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1060
1060
  }, import("zod/v4/core").$strip>> | undefined;
1061
1061
  } & {
1062
1062
  readonly _mastraSchemaRoute: true;
1063
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1063
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1064
1064
  method: "POST";
1065
1065
  path: "/workflows/:workflowId/time-travel";
1066
1066
  responseType: "json";
1067
- streamFormat?: "sse" | "stream";
1067
+ streamFormat?: 'sse' | 'stream';
1068
1068
  sseFlushOnConnect?: boolean;
1069
1069
  handler(params: {
1070
1070
  workflowId: string;
1071
1071
  } & {
1072
1072
  runId: string;
1073
1073
  } & {
1074
- step: string | string[];
1075
1074
  inputData?: unknown;
1076
1075
  resumeData?: unknown;
1077
1076
  initialState?: unknown;
1077
+ step: string | string[];
1078
1078
  context?: import("@mastra/core/workflows").TimeTravelContext<unknown, unknown, unknown, unknown> | undefined;
1079
1079
  nestedStepsContext?: Record<string, import("@mastra/core/workflows").TimeTravelContext<unknown, unknown, unknown, unknown>> | undefined;
1080
1080
  requestContext?: Record<string, unknown> | undefined;
@@ -1128,21 +1128,21 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1128
1128
  }, import("zod/v4/core").$strip>> | undefined;
1129
1129
  } & {
1130
1130
  readonly _mastraSchemaRoute: true;
1131
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1131
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1132
1132
  method: "POST";
1133
1133
  path: "/workflows/:workflowId/time-travel-async";
1134
1134
  responseType: "json";
1135
- streamFormat?: "sse" | "stream";
1135
+ streamFormat?: 'sse' | 'stream';
1136
1136
  sseFlushOnConnect?: boolean;
1137
1137
  handler(params: {
1138
1138
  workflowId: string;
1139
1139
  } & {
1140
1140
  runId: string;
1141
1141
  } & {
1142
- step: string | string[];
1143
1142
  inputData?: unknown;
1144
1143
  resumeData?: unknown;
1145
1144
  initialState?: unknown;
1145
+ step: string | string[];
1146
1146
  context?: import("@mastra/core/workflows").TimeTravelContext<unknown, unknown, unknown, unknown> | undefined;
1147
1147
  nestedStepsContext?: Record<string, import("@mastra/core/workflows").TimeTravelContext<unknown, unknown, unknown, unknown>> | undefined;
1148
1148
  requestContext?: Record<string, unknown> | undefined;
@@ -1157,7 +1157,7 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1157
1157
  } | undefined;
1158
1158
  perStep?: boolean | undefined;
1159
1159
  } & import(".").ServerContext): Promise<{
1160
- status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | "skipped" | undefined;
1160
+ status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
1161
1161
  result?: unknown;
1162
1162
  error?: unknown;
1163
1163
  payload?: unknown;
@@ -1165,7 +1165,7 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1165
1165
  steps?: Record<string, unknown> | undefined;
1166
1166
  activeStepsPath?: Record<string, number[]> | undefined;
1167
1167
  serializedStepGraph?: {
1168
- type: "step" | "agent" | "tool" | "mapping" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach" | "workflow";
1168
+ type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
1169
1169
  }[] | undefined;
1170
1170
  }>;
1171
1171
  pathParamSchema?: import("zod").ZodType;
@@ -1202,17 +1202,17 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1202
1202
  perStep: import("zod").ZodOptional<import("zod").ZodBoolean>;
1203
1203
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1204
1204
  status: import("zod").ZodOptional<import("zod").ZodEnum<{
1205
- success: "success";
1206
- running: "running";
1207
- waiting: "waiting";
1208
- suspended: "suspended";
1209
- failed: "failed";
1210
- canceled: "canceled";
1211
- pending: "pending";
1212
1205
  bailed: "bailed";
1213
- tripwire: "tripwire";
1206
+ canceled: "canceled";
1207
+ failed: "failed";
1214
1208
  paused: "paused";
1209
+ pending: "pending";
1210
+ running: "running";
1215
1211
  skipped: "skipped";
1212
+ success: "success";
1213
+ suspended: "suspended";
1214
+ tripwire: "tripwire";
1215
+ waiting: "waiting";
1216
1216
  }>>;
1217
1217
  result: import("zod").ZodOptional<import("zod").ZodUnknown>;
1218
1218
  error: import("zod").ZodOptional<import("zod").ZodUnknown>;
@@ -1222,38 +1222,38 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1222
1222
  activeStepsPath: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodNumber>>>;
1223
1223
  serializedStepGraph: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1224
1224
  type: import("zod").ZodEnum<{
1225
- step: "step";
1226
1225
  agent: "agent";
1227
- tool: "tool";
1226
+ conditional: "conditional";
1227
+ foreach: "foreach";
1228
+ loop: "loop";
1228
1229
  mapping: "mapping";
1230
+ parallel: "parallel";
1229
1231
  sleep: "sleep";
1230
1232
  sleepUntil: "sleepUntil";
1233
+ step: "step";
1234
+ tool: "tool";
1231
1235
  waitForEvent: "waitForEvent";
1232
- parallel: "parallel";
1233
- conditional: "conditional";
1234
- loop: "loop";
1235
- foreach: "foreach";
1236
1236
  workflow: "workflow";
1237
1237
  }>;
1238
1238
  }, import("zod/v4/core").$strip>>>;
1239
1239
  }, import("zod/v4/core").$strip>> | undefined;
1240
1240
  } & {
1241
1241
  readonly _mastraSchemaRoute: true;
1242
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1242
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1243
1243
  method: "POST";
1244
1244
  path: "/workflows/:workflowId/time-travel-stream";
1245
1245
  responseType: "stream";
1246
- streamFormat?: "sse" | "stream";
1246
+ streamFormat?: 'sse' | 'stream';
1247
1247
  sseFlushOnConnect?: boolean;
1248
1248
  handler(params: {
1249
1249
  workflowId: string;
1250
1250
  } & {
1251
1251
  runId: string;
1252
1252
  } & {
1253
- step: string | string[];
1254
1253
  inputData?: unknown;
1255
1254
  resumeData?: unknown;
1256
1255
  initialState?: unknown;
1256
+ step: string | string[];
1257
1257
  context?: import("@mastra/core/workflows").TimeTravelContext<unknown, unknown, unknown, unknown> | undefined;
1258
1258
  nestedStepsContext?: Record<string, import("@mastra/core/workflows").TimeTravelContext<unknown, unknown, unknown, unknown>> | undefined;
1259
1259
  requestContext?: Record<string, unknown> | undefined;
@@ -1303,11 +1303,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1303
1303
  }, import("zod/v4/core").$strip>, undefined> | undefined;
1304
1304
  } & {
1305
1305
  readonly _mastraSchemaRoute: true;
1306
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1306
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1307
1307
  method: "POST";
1308
1308
  path: "/workflows/:workflowId/restart";
1309
1309
  responseType: "json";
1310
- streamFormat?: "sse" | "stream";
1310
+ streamFormat?: 'sse' | 'stream';
1311
1311
  sseFlushOnConnect?: boolean;
1312
1312
  handler(params: {
1313
1313
  workflowId: string;
@@ -1357,11 +1357,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1357
1357
  }, import("zod/v4/core").$strip>> | undefined;
1358
1358
  } & {
1359
1359
  readonly _mastraSchemaRoute: true;
1360
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1360
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1361
1361
  method: "POST";
1362
1362
  path: "/workflows/:workflowId/restart-async";
1363
1363
  responseType: "json";
1364
- streamFormat?: "sse" | "stream";
1364
+ streamFormat?: 'sse' | 'stream';
1365
1365
  sseFlushOnConnect?: boolean;
1366
1366
  handler(params: {
1367
1367
  workflowId: string;
@@ -1379,7 +1379,7 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1379
1379
  hideOutput?: boolean | undefined;
1380
1380
  } | undefined;
1381
1381
  } & import(".").ServerContext): Promise<{
1382
- status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | "skipped" | undefined;
1382
+ status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
1383
1383
  result?: unknown;
1384
1384
  error?: unknown;
1385
1385
  payload?: unknown;
@@ -1387,7 +1387,7 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1387
1387
  steps?: Record<string, unknown> | undefined;
1388
1388
  activeStepsPath?: Record<string, number[]> | undefined;
1389
1389
  serializedStepGraph?: {
1390
- type: "step" | "agent" | "tool" | "mapping" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach" | "workflow";
1390
+ type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
1391
1391
  }[] | undefined;
1392
1392
  }>;
1393
1393
  pathParamSchema?: import("zod").ZodType;
@@ -1417,17 +1417,17 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1417
1417
  }, import("zod/v4/core").$strip>>;
1418
1418
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1419
1419
  status: import("zod").ZodOptional<import("zod").ZodEnum<{
1420
- success: "success";
1421
- running: "running";
1422
- waiting: "waiting";
1423
- suspended: "suspended";
1424
- failed: "failed";
1425
- canceled: "canceled";
1426
- pending: "pending";
1427
1420
  bailed: "bailed";
1428
- tripwire: "tripwire";
1421
+ canceled: "canceled";
1422
+ failed: "failed";
1429
1423
  paused: "paused";
1424
+ pending: "pending";
1425
+ running: "running";
1430
1426
  skipped: "skipped";
1427
+ success: "success";
1428
+ suspended: "suspended";
1429
+ tripwire: "tripwire";
1430
+ waiting: "waiting";
1431
1431
  }>>;
1432
1432
  result: import("zod").ZodOptional<import("zod").ZodUnknown>;
1433
1433
  error: import("zod").ZodOptional<import("zod").ZodUnknown>;
@@ -1437,28 +1437,28 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1437
1437
  activeStepsPath: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodNumber>>>;
1438
1438
  serializedStepGraph: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
1439
1439
  type: import("zod").ZodEnum<{
1440
- step: "step";
1441
1440
  agent: "agent";
1442
- tool: "tool";
1441
+ conditional: "conditional";
1442
+ foreach: "foreach";
1443
+ loop: "loop";
1443
1444
  mapping: "mapping";
1445
+ parallel: "parallel";
1444
1446
  sleep: "sleep";
1445
1447
  sleepUntil: "sleepUntil";
1448
+ step: "step";
1449
+ tool: "tool";
1446
1450
  waitForEvent: "waitForEvent";
1447
- parallel: "parallel";
1448
- conditional: "conditional";
1449
- loop: "loop";
1450
- foreach: "foreach";
1451
1451
  workflow: "workflow";
1452
1452
  }>;
1453
1453
  }, import("zod/v4/core").$strip>>>;
1454
1454
  }, import("zod/v4/core").$strip>> | undefined;
1455
1455
  } & {
1456
1456
  readonly _mastraSchemaRoute: true;
1457
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1457
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1458
1458
  method: "POST";
1459
1459
  path: "/workflows/:workflowId/restart-all-active-workflow-runs";
1460
1460
  responseType: "json";
1461
- streamFormat?: "sse" | "stream";
1461
+ streamFormat?: 'sse' | 'stream';
1462
1462
  sseFlushOnConnect?: boolean;
1463
1463
  handler(params: {
1464
1464
  workflowId: string;
@@ -1482,11 +1482,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1482
1482
  }, import("zod/v4/core").$strip>> | undefined;
1483
1483
  } & {
1484
1484
  readonly _mastraSchemaRoute: true;
1485
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1485
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1486
1486
  method: "POST";
1487
1487
  path: "/workflows/:workflowId/restart-all-active-workflow-runs-async";
1488
1488
  responseType: "json";
1489
- streamFormat?: "sse" | "stream";
1489
+ streamFormat?: 'sse' | 'stream';
1490
1490
  sseFlushOnConnect?: boolean;
1491
1491
  handler(params: {
1492
1492
  workflowId: string;
@@ -1510,11 +1510,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1510
1510
  }, import("zod/v4/core").$strip>> | undefined;
1511
1511
  } & {
1512
1512
  readonly _mastraSchemaRoute: true;
1513
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1513
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1514
1514
  method: "POST";
1515
1515
  path: "/workflows/:workflowId/runs/:runId/steps/execute";
1516
1516
  responseType: "json";
1517
- streamFormat?: "sse" | "stream";
1517
+ streamFormat?: 'sse' | 'stream';
1518
1518
  sseFlushOnConnect?: boolean;
1519
1519
  handler(params: {
1520
1520
  workflowId: string;
@@ -1565,11 +1565,11 @@ export declare const WORKFLOWS_ROUTES: readonly [Omit<import("@mastra/core/serve
1565
1565
  }, import("zod/v4/core").$strip>, import("zod").ZodUnknown> | undefined;
1566
1566
  } & {
1567
1567
  readonly _mastraSchemaRoute: true;
1568
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1568
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1569
1569
  method: "POST";
1570
1570
  path: "/workflows/events";
1571
1571
  responseType: "json";
1572
- streamFormat?: "sse" | "stream";
1572
+ streamFormat?: 'sse' | 'stream';
1573
1573
  sseFlushOnConnect?: boolean;
1574
1574
  handler(params: {
1575
1575
  event: {