@mastra/server 1.63.2 → 1.63.3-alpha.0

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 (136) hide show
  1. package/CHANGELOG.md +7 -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 +1 -1
  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.d.ts +110 -110
  20. package/dist/server/handlers/agent-versions.d.ts +5267 -5259
  21. package/dist/server/handlers/agent-versions.d.ts.map +1 -1
  22. package/dist/server/handlers/agents.d.ts +4355 -4355
  23. package/dist/server/handlers/agents.d.ts.map +1 -1
  24. package/dist/server/handlers/auth.d.ts +52 -52
  25. package/dist/server/handlers/background-tasks.d.ts +37 -37
  26. package/dist/server/handlers/builder-registry.d.ts +12 -12
  27. package/dist/server/handlers/channels.d.ts +10 -10
  28. package/dist/server/handlers/conversations.d.ts +13 -13
  29. package/dist/server/handlers/datasets.d.ts +396 -396
  30. package/dist/server/handlers/dynamic-workflows.d.ts +36 -36
  31. package/dist/server/handlers/editor-builder.d.ts +13 -13
  32. package/dist/server/handlers/gateway-memory-client.d.ts +4 -4
  33. package/dist/server/handlers/gateway-memory-client.d.ts.map +1 -1
  34. package/dist/server/handlers/logs.d.ts +40 -40
  35. package/dist/server/handlers/mcp-client-versions.d.ts +32 -32
  36. package/dist/server/handlers/mcp.d.ts +23 -23
  37. package/dist/server/handlers/memory.d.ts +138 -138
  38. package/dist/server/handlers/observability-list-query-schemas.d.ts +1 -1
  39. package/dist/server/handlers/observability-new-endpoints.d.ts +859 -859
  40. package/dist/server/handlers/observability-shared.d.ts +126 -126
  41. package/dist/server/handlers/observability-shared.d.ts.map +1 -1
  42. package/dist/server/handlers/observability.d.ts +17 -17
  43. package/dist/server/handlers/plans.d.ts +3 -3
  44. package/dist/server/handlers/processor-providers.d.ts +9 -9
  45. package/dist/server/handlers/processors.d.ts +31 -31
  46. package/dist/server/handlers/prompt-block-versions.d.ts +176 -176
  47. package/dist/server/handlers/responses.adapter.d.ts +3 -3
  48. package/dist/server/handlers/responses.adapter.d.ts.map +1 -1
  49. package/dist/server/handlers/responses.d.ts +17 -17
  50. package/dist/server/handlers/schedules.d.ts +242 -242
  51. package/dist/server/handlers/scorer-versions.d.ts +39 -39
  52. package/dist/server/handlers/scores.d.ts +20 -20
  53. package/dist/server/handlers/stored-agent-favorites.d.ts +4 -4
  54. package/dist/server/handlers/stored-agents.d.ts +5992 -5984
  55. package/dist/server/handlers/stored-agents.d.ts.map +1 -1
  56. package/dist/server/handlers/stored-mcp-clients.d.ts +46 -46
  57. package/dist/server/handlers/stored-prompt-blocks.d.ts +193 -193
  58. package/dist/server/handlers/stored-scorers.d.ts +56 -56
  59. package/dist/server/handlers/stored-skill-favorites.d.ts +4 -4
  60. package/dist/server/handlers/stored-skills.d.ts +70 -70
  61. package/dist/server/handlers/stored-workspaces.d.ts +36 -36
  62. package/dist/server/handlers/system.d.ts +19 -19
  63. package/dist/server/handlers/tool-providers.d.ts +49 -49
  64. package/dist/server/handlers/tools.d.ts +10 -10
  65. package/dist/server/handlers/vector.d.ts +18 -18
  66. package/dist/server/handlers/version-helpers.d.ts +1 -1
  67. package/dist/server/handlers/version-helpers.d.ts.map +1 -1
  68. package/dist/server/handlers/workflows.d.ts +167 -167
  69. package/dist/server/handlers/workspace.d.ts +370 -370
  70. package/dist/server/http-exception.d.ts.map +1 -1
  71. package/dist/server/schemas/a2a.d.ts +18 -18
  72. package/dist/server/schemas/agent-versions.d.ts +3948 -3948
  73. package/dist/server/schemas/agents.d.ts +172 -172
  74. package/dist/server/schemas/agents.d.ts.map +1 -1
  75. package/dist/server/schemas/auth.d.ts +5 -5
  76. package/dist/server/schemas/background-tasks.d.ts +22 -22
  77. package/dist/server/schemas/builder-registry.d.ts +1 -1
  78. package/dist/server/schemas/channels.d.ts +1 -1
  79. package/dist/server/schemas/common.d.ts +5 -5
  80. package/dist/server/schemas/common.d.ts.map +1 -1
  81. package/dist/server/schemas/conversations.d.ts +2 -2
  82. package/dist/server/schemas/datasets.d.ts +98 -98
  83. package/dist/server/schemas/dynamic-workflows.d.ts +7 -7
  84. package/dist/server/schemas/logs.d.ts +8 -8
  85. package/dist/server/schemas/mcp-client-versions.d.ts +2 -2
  86. package/dist/server/schemas/memory-config.d.ts +5 -5
  87. package/dist/server/schemas/memory.d.ts +20 -20
  88. package/dist/server/schemas/processor-providers.d.ts +2 -2
  89. package/dist/server/schemas/processors.d.ts +13 -13
  90. package/dist/server/schemas/prompt-block-versions.d.ts +149 -149
  91. package/dist/server/schemas/responses.d.ts +11 -11
  92. package/dist/server/schemas/rule-group.d.ts +28 -28
  93. package/dist/server/schemas/schedules.d.ts +120 -120
  94. package/dist/server/schemas/scorer-versions.d.ts +9 -9
  95. package/dist/server/schemas/scores.d.ts +2 -2
  96. package/dist/server/schemas/stored-agents.d.ts +9052 -9052
  97. package/dist/server/schemas/stored-mcp-clients.d.ts +9 -9
  98. package/dist/server/schemas/stored-prompt-blocks.d.ts +156 -156
  99. package/dist/server/schemas/stored-scorers.d.ts +16 -16
  100. package/dist/server/schemas/stored-skills.d.ts +22 -22
  101. package/dist/server/schemas/stored-workspaces.d.ts +6 -6
  102. package/dist/server/schemas/system.d.ts +12 -12
  103. package/dist/server/schemas/tool-providers.d.ts +20 -20
  104. package/dist/server/schemas/vectors.d.ts +1 -1
  105. package/dist/server/schemas/version-common.d.ts +2 -2
  106. package/dist/server/schemas/workflows.d.ts +57 -57
  107. package/dist/server/schemas/workspace.d.ts +17 -17
  108. package/dist/server/server-adapter/index.d.ts.map +1 -1
  109. package/dist/server/server-adapter/routes/a2a.d.ts +49 -49
  110. package/dist/server/server-adapter/routes/agent-builder.d.ts +110 -110
  111. package/dist/server/server-adapter/routes/channels.d.ts +10 -10
  112. package/dist/server/server-adapter/routes/conversations.d.ts +26 -26
  113. package/dist/server/server-adapter/routes/datasets.d.ts +394 -394
  114. package/dist/server/server-adapter/routes/editor-builder.d.ts +25 -25
  115. package/dist/server/server-adapter/routes/legacy.d.ts +157 -157
  116. package/dist/server/server-adapter/routes/logs.d.ts +40 -40
  117. package/dist/server/server-adapter/routes/mcp.d.ts +23 -23
  118. package/dist/server/server-adapter/routes/memory.d.ts +138 -138
  119. package/dist/server/server-adapter/routes/observability.d.ts +446 -446
  120. package/dist/server/server-adapter/routes/processor-providers.d.ts +9 -9
  121. package/dist/server/server-adapter/routes/processors.d.ts +31 -31
  122. package/dist/server/server-adapter/routes/responses.d.ts +17 -17
  123. package/dist/server/server-adapter/routes/scorers.d.ts +20 -20
  124. package/dist/server/server-adapter/routes/stored-mcp-clients.d.ts +78 -78
  125. package/dist/server/server-adapter/routes/stored-prompt-blocks.d.ts +369 -369
  126. package/dist/server/server-adapter/routes/stored-scorers.d.ts +95 -95
  127. package/dist/server/server-adapter/routes/stored-skills.d.ts +74 -74
  128. package/dist/server/server-adapter/routes/stored-workspaces.d.ts +36 -36
  129. package/dist/server/server-adapter/routes/system.d.ts +19 -19
  130. package/dist/server/server-adapter/routes/tool-providers.d.ts +49 -49
  131. package/dist/server/server-adapter/routes/tools.d.ts +6 -6
  132. package/dist/server/server-adapter/routes/vectors.d.ts +18 -18
  133. package/dist/server/server-adapter/routes/workflows.d.ts +163 -163
  134. package/dist/server/server-adapter/routes/workspace.d.ts +334 -334
  135. package/dist/server/utils.d.ts.map +1 -1
  136. package/package.json +7 -6
@@ -1,8 +1,8 @@
1
- export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1
+ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2
2
  method: "GET";
3
3
  path: "/agent-builder";
4
4
  responseType: "json";
5
- streamFormat?: "sse" | "stream";
5
+ streamFormat?: 'sse' | 'stream';
6
6
  sseFlushOnConnect?: boolean;
7
7
  handler(params: import(".").ServerContext): Promise<Record<string, {
8
8
  steps: Record<string, {
@@ -29,12 +29,12 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
29
29
  isWorkflow?: boolean | undefined;
30
30
  metadata?: Record<string, unknown> | undefined;
31
31
  }>;
32
- stepGraph: {
33
- type: "step" | "agent" | "tool" | "mapping" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach" | "workflow";
34
- }[];
35
32
  name?: string | undefined;
36
33
  description?: string | undefined;
37
34
  metadata?: Record<string, unknown> | undefined;
35
+ stepGraph: {
36
+ type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
37
+ }[];
38
38
  inputSchema?: string | undefined;
39
39
  outputSchema?: string | undefined;
40
40
  stateSchema?: string | undefined;
@@ -82,17 +82,17 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
82
82
  metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
83
83
  stepGraph: import("zod").ZodArray<import("zod").ZodObject<{
84
84
  type: import("zod").ZodEnum<{
85
- step: "step";
86
85
  agent: "agent";
87
- tool: "tool";
86
+ conditional: "conditional";
87
+ foreach: "foreach";
88
+ loop: "loop";
88
89
  mapping: "mapping";
90
+ parallel: "parallel";
89
91
  sleep: "sleep";
90
92
  sleepUntil: "sleepUntil";
93
+ step: "step";
94
+ tool: "tool";
91
95
  waitForEvent: "waitForEvent";
92
- parallel: "parallel";
93
- conditional: "conditional";
94
- loop: "loop";
95
- foreach: "foreach";
96
96
  workflow: "workflow";
97
97
  }>;
98
98
  }, import("zod/v4/core").$strip>>;
@@ -108,11 +108,11 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
108
108
  }, import("zod/v4/core").$strip>>> | undefined;
109
109
  } & {
110
110
  readonly _mastraSchemaRoute: true;
111
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
111
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
112
112
  method: "GET";
113
113
  path: "/agent-builder/:actionId";
114
114
  responseType: "json";
115
- streamFormat?: "sse" | "stream";
115
+ streamFormat?: 'sse' | 'stream';
116
116
  sseFlushOnConnect?: boolean;
117
117
  handler(params: {
118
118
  actionId: string;
@@ -141,12 +141,12 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
141
141
  isWorkflow?: boolean | undefined;
142
142
  metadata?: Record<string, unknown> | undefined;
143
143
  }>;
144
- stepGraph: {
145
- type: "step" | "agent" | "tool" | "mapping" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach" | "workflow";
146
- }[];
147
144
  name?: string | undefined;
148
145
  description?: string | undefined;
149
146
  metadata?: Record<string, unknown> | undefined;
147
+ stepGraph: {
148
+ type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
149
+ }[];
150
150
  inputSchema?: string | undefined;
151
151
  outputSchema?: string | undefined;
152
152
  stateSchema?: string | undefined;
@@ -196,17 +196,17 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
196
196
  metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
197
197
  stepGraph: import("zod").ZodArray<import("zod").ZodObject<{
198
198
  type: import("zod").ZodEnum<{
199
- step: "step";
200
199
  agent: "agent";
201
- tool: "tool";
200
+ conditional: "conditional";
201
+ foreach: "foreach";
202
+ loop: "loop";
202
203
  mapping: "mapping";
204
+ parallel: "parallel";
203
205
  sleep: "sleep";
204
206
  sleepUntil: "sleepUntil";
207
+ step: "step";
208
+ tool: "tool";
205
209
  waitForEvent: "waitForEvent";
206
- parallel: "parallel";
207
- conditional: "conditional";
208
- loop: "loop";
209
- foreach: "foreach";
210
210
  workflow: "workflow";
211
211
  }>;
212
212
  }, import("zod/v4/core").$strip>>;
@@ -222,11 +222,11 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
222
222
  }, import("zod/v4/core").$strip>> | undefined;
223
223
  } & {
224
224
  readonly _mastraSchemaRoute: true;
225
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
225
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
226
226
  method: "GET";
227
227
  path: "/agent-builder/:actionId/runs";
228
228
  responseType: "json";
229
- streamFormat?: "sse" | "stream";
229
+ streamFormat?: 'sse' | 'stream';
230
230
  sseFlushOnConnect?: boolean;
231
231
  handler(params: {
232
232
  actionId: string;
@@ -238,7 +238,7 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
238
238
  fromDate?: Date | undefined;
239
239
  toDate?: Date | undefined;
240
240
  resourceId?: string | undefined;
241
- status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | "skipped" | undefined;
241
+ status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
242
242
  } & import(".").ServerContext): Promise<{
243
243
  runs: {
244
244
  workflowName: string;
@@ -271,17 +271,17 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
271
271
  toDate: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
272
272
  resourceId: import("zod").ZodOptional<import("zod").ZodString>;
273
273
  status: import("zod").ZodOptional<import("zod").ZodEnum<{
274
- success: "success";
275
- running: "running";
276
- waiting: "waiting";
277
- suspended: "suspended";
278
- failed: "failed";
279
- canceled: "canceled";
280
- pending: "pending";
281
274
  bailed: "bailed";
282
- tripwire: "tripwire";
275
+ canceled: "canceled";
276
+ failed: "failed";
283
277
  paused: "paused";
278
+ pending: "pending";
279
+ running: "running";
284
280
  skipped: "skipped";
281
+ success: "success";
282
+ suspended: "suspended";
283
+ tripwire: "tripwire";
284
+ waiting: "waiting";
285
285
  }>>;
286
286
  }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
287
287
  runs: import("zod").ZodArray<import("zod").ZodObject<{
@@ -296,25 +296,25 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
296
296
  }, import("zod/v4/core").$strip>> | undefined;
297
297
  } & {
298
298
  readonly _mastraSchemaRoute: true;
299
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
299
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
300
300
  method: "GET";
301
301
  path: "/agent-builder/:actionId/runs/:runId";
302
302
  responseType: "json";
303
- streamFormat?: "sse" | "stream";
303
+ streamFormat?: 'sse' | 'stream';
304
304
  sseFlushOnConnect?: boolean;
305
305
  handler(params: {
306
306
  actionId: string;
307
307
  runId: string;
308
308
  } & {
309
309
  fields?: string | undefined;
310
- withNestedWorkflows?: "true" | "false" | undefined;
310
+ withNestedWorkflows?: "false" | "true" | undefined;
311
311
  } & import(".").ServerContext): Promise<{
312
312
  runId: string;
313
313
  workflowName: string;
314
+ resourceId?: string | undefined;
314
315
  createdAt: Date;
315
316
  updatedAt: Date;
316
- status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | "skipped";
317
- resourceId?: string | undefined;
317
+ status: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting";
318
318
  initialState?: Record<string, unknown> | undefined;
319
319
  result?: unknown;
320
320
  error?: unknown;
@@ -322,7 +322,7 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
322
322
  steps?: Record<string, unknown> | undefined;
323
323
  activeStepsPath?: Record<string, number[]> | undefined;
324
324
  serializedStepGraph?: {
325
- type: "step" | "agent" | "tool" | "mapping" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach" | "workflow";
325
+ type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
326
326
  }[] | undefined;
327
327
  }>;
328
328
  pathParamSchema?: import("zod").ZodType;
@@ -341,8 +341,8 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
341
341
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
342
342
  fields: import("zod").ZodOptional<import("zod").ZodString>;
343
343
  withNestedWorkflows: import("zod").ZodOptional<import("zod").ZodEnum<{
344
- true: "true";
345
344
  false: "false";
345
+ true: "true";
346
346
  }>>;
347
347
  }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
348
348
  runId: import("zod").ZodString;
@@ -351,17 +351,17 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
351
351
  createdAt: import("zod").ZodDate;
352
352
  updatedAt: import("zod").ZodDate;
353
353
  status: import("zod").ZodEnum<{
354
- success: "success";
355
- running: "running";
356
- waiting: "waiting";
357
- suspended: "suspended";
358
- failed: "failed";
359
- canceled: "canceled";
360
- pending: "pending";
361
354
  bailed: "bailed";
362
- tripwire: "tripwire";
355
+ canceled: "canceled";
356
+ failed: "failed";
363
357
  paused: "paused";
358
+ pending: "pending";
359
+ running: "running";
364
360
  skipped: "skipped";
361
+ success: "success";
362
+ suspended: "suspended";
363
+ tripwire: "tripwire";
364
+ waiting: "waiting";
365
365
  }>;
366
366
  initialState: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
367
367
  result: import("zod").ZodOptional<import("zod").ZodUnknown>;
@@ -371,28 +371,28 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
371
371
  activeStepsPath: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodNumber>>>;
372
372
  serializedStepGraph: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
373
373
  type: import("zod").ZodEnum<{
374
- step: "step";
375
374
  agent: "agent";
376
- tool: "tool";
375
+ conditional: "conditional";
376
+ foreach: "foreach";
377
+ loop: "loop";
377
378
  mapping: "mapping";
379
+ parallel: "parallel";
378
380
  sleep: "sleep";
379
381
  sleepUntil: "sleepUntil";
382
+ step: "step";
383
+ tool: "tool";
380
384
  waitForEvent: "waitForEvent";
381
- parallel: "parallel";
382
- conditional: "conditional";
383
- loop: "loop";
384
- foreach: "foreach";
385
385
  workflow: "workflow";
386
386
  }>;
387
387
  }, import("zod/v4/core").$strip>>>;
388
388
  }, import("zod/v4/core").$strip>> | undefined;
389
389
  } & {
390
390
  readonly _mastraSchemaRoute: true;
391
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
391
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
392
392
  method: "POST";
393
393
  path: "/agent-builder/:actionId/create-run";
394
394
  responseType: "json";
395
- streamFormat?: "sse" | "stream";
395
+ streamFormat?: 'sse' | 'stream';
396
396
  sseFlushOnConnect?: boolean;
397
397
  handler(params: {
398
398
  actionId: string;
@@ -420,11 +420,11 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
420
420
  }, import("zod/v4/core").$strip>> | undefined;
421
421
  } & {
422
422
  readonly _mastraSchemaRoute: true;
423
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
423
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
424
424
  method: "POST";
425
425
  path: "/agent-builder/:actionId/stream";
426
426
  responseType: "stream";
427
- streamFormat?: "sse" | "stream";
427
+ streamFormat?: 'sse' | 'stream';
428
428
  sseFlushOnConnect?: boolean;
429
429
  handler(params: {
430
430
  actionId: string;
@@ -480,11 +480,11 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
480
480
  }, import("zod/v4/core").$strip>, import("zod").ZodUnknown> | undefined;
481
481
  } & {
482
482
  readonly _mastraSchemaRoute: true;
483
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
483
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
484
484
  method: "POST";
485
485
  path: "/agent-builder/:actionId/stream-legacy";
486
486
  responseType: "stream";
487
- streamFormat?: "sse" | "stream";
487
+ streamFormat?: 'sse' | 'stream';
488
488
  sseFlushOnConnect?: boolean;
489
489
  handler(params: {
490
490
  actionId: string;
@@ -538,11 +538,11 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
538
538
  }, import("zod/v4/core").$strip>, import("zod").ZodUnknown> | undefined;
539
539
  } & {
540
540
  readonly _mastraSchemaRoute: true;
541
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
541
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
542
542
  method: "POST";
543
543
  path: "/agent-builder/:actionId/start-async";
544
544
  responseType: "json";
545
- streamFormat?: "sse" | "stream";
545
+ streamFormat?: 'sse' | 'stream';
546
546
  sseFlushOnConnect?: boolean;
547
547
  handler(params: {
548
548
  actionId: string;
@@ -564,7 +564,7 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
564
564
  } | undefined;
565
565
  perStep?: boolean | undefined;
566
566
  } & import(".").ServerContext): Promise<{
567
- status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | "skipped" | undefined;
567
+ status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
568
568
  result?: unknown;
569
569
  error?: unknown;
570
570
  payload?: unknown;
@@ -572,7 +572,7 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
572
572
  steps?: Record<string, unknown> | undefined;
573
573
  activeStepsPath?: Record<string, number[]> | undefined;
574
574
  serializedStepGraph?: {
575
- type: "step" | "agent" | "tool" | "mapping" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach" | "workflow";
575
+ type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
576
576
  }[] | undefined;
577
577
  }>;
578
578
  pathParamSchema?: import("zod").ZodType;
@@ -606,17 +606,17 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
606
606
  perStep: import("zod").ZodOptional<import("zod").ZodBoolean>;
607
607
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
608
608
  status: import("zod").ZodOptional<import("zod").ZodEnum<{
609
- success: "success";
610
- running: "running";
611
- waiting: "waiting";
612
- suspended: "suspended";
613
- failed: "failed";
614
- canceled: "canceled";
615
- pending: "pending";
616
609
  bailed: "bailed";
617
- tripwire: "tripwire";
610
+ canceled: "canceled";
611
+ failed: "failed";
618
612
  paused: "paused";
613
+ pending: "pending";
614
+ running: "running";
619
615
  skipped: "skipped";
616
+ success: "success";
617
+ suspended: "suspended";
618
+ tripwire: "tripwire";
619
+ waiting: "waiting";
620
620
  }>>;
621
621
  result: import("zod").ZodOptional<import("zod").ZodUnknown>;
622
622
  error: import("zod").ZodOptional<import("zod").ZodUnknown>;
@@ -626,28 +626,28 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
626
626
  activeStepsPath: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodNumber>>>;
627
627
  serializedStepGraph: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
628
628
  type: import("zod").ZodEnum<{
629
- step: "step";
630
629
  agent: "agent";
631
- tool: "tool";
630
+ conditional: "conditional";
631
+ foreach: "foreach";
632
+ loop: "loop";
632
633
  mapping: "mapping";
634
+ parallel: "parallel";
633
635
  sleep: "sleep";
634
636
  sleepUntil: "sleepUntil";
637
+ step: "step";
638
+ tool: "tool";
635
639
  waitForEvent: "waitForEvent";
636
- parallel: "parallel";
637
- conditional: "conditional";
638
- loop: "loop";
639
- foreach: "foreach";
640
640
  workflow: "workflow";
641
641
  }>;
642
642
  }, import("zod/v4/core").$strip>>>;
643
643
  }, import("zod/v4/core").$strip>> | undefined;
644
644
  } & {
645
645
  readonly _mastraSchemaRoute: true;
646
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
646
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
647
647
  method: "POST";
648
648
  path: "/agent-builder/:actionId/start";
649
649
  responseType: "json";
650
- streamFormat?: "sse" | "stream";
650
+ streamFormat?: 'sse' | 'stream';
651
651
  sseFlushOnConnect?: boolean;
652
652
  handler(params: {
653
653
  actionId: string;
@@ -705,11 +705,11 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
705
705
  }, import("zod/v4/core").$strip>> | undefined;
706
706
  } & {
707
707
  readonly _mastraSchemaRoute: true;
708
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
708
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
709
709
  method: "POST";
710
710
  path: "/agent-builder/:actionId/observe";
711
711
  responseType: "stream";
712
- streamFormat?: "sse" | "stream";
712
+ streamFormat?: 'sse' | 'stream';
713
713
  sseFlushOnConnect?: boolean;
714
714
  handler(params: {
715
715
  actionId: string;
@@ -733,11 +733,11 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
733
733
  }, import("zod/v4/core").$strip>, undefined, import("zod").ZodUnknown> | undefined;
734
734
  } & {
735
735
  readonly _mastraSchemaRoute: true;
736
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
736
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
737
737
  method: "POST";
738
738
  path: "/agent-builder/:actionId/observe-stream-legacy";
739
739
  responseType: "stream";
740
- streamFormat?: "sse" | "stream";
740
+ streamFormat?: 'sse' | 'stream';
741
741
  sseFlushOnConnect?: boolean;
742
742
  handler(params: {
743
743
  actionId: string;
@@ -761,11 +761,11 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
761
761
  }, import("zod/v4/core").$strip>, undefined, import("zod").ZodUnknown> | undefined;
762
762
  } & {
763
763
  readonly _mastraSchemaRoute: true;
764
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
764
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
765
765
  method: "POST";
766
766
  path: "/agent-builder/:actionId/resume-async";
767
767
  responseType: "json";
768
- streamFormat?: "sse" | "stream";
768
+ streamFormat?: 'sse' | 'stream';
769
769
  sseFlushOnConnect?: boolean;
770
770
  handler(params: {
771
771
  actionId: string;
@@ -787,7 +787,7 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
787
787
  perStep?: boolean | undefined;
788
788
  forEachIndex?: number | undefined;
789
789
  } & import(".").ServerContext): Promise<{
790
- status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | "skipped" | undefined;
790
+ status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
791
791
  result?: unknown;
792
792
  error?: unknown;
793
793
  payload?: unknown;
@@ -795,7 +795,7 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
795
795
  steps?: Record<string, unknown> | undefined;
796
796
  activeStepsPath?: Record<string, number[]> | undefined;
797
797
  serializedStepGraph?: {
798
- type: "step" | "agent" | "tool" | "mapping" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach" | "workflow";
798
+ type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
799
799
  }[] | undefined;
800
800
  }>;
801
801
  pathParamSchema?: import("zod").ZodType;
@@ -829,17 +829,17 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
829
829
  forEachIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
830
830
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
831
831
  status: import("zod").ZodOptional<import("zod").ZodEnum<{
832
- success: "success";
833
- running: "running";
834
- waiting: "waiting";
835
- suspended: "suspended";
836
- failed: "failed";
837
- canceled: "canceled";
838
- pending: "pending";
839
832
  bailed: "bailed";
840
- tripwire: "tripwire";
833
+ canceled: "canceled";
834
+ failed: "failed";
841
835
  paused: "paused";
836
+ pending: "pending";
837
+ running: "running";
842
838
  skipped: "skipped";
839
+ success: "success";
840
+ suspended: "suspended";
841
+ tripwire: "tripwire";
842
+ waiting: "waiting";
843
843
  }>>;
844
844
  result: import("zod").ZodOptional<import("zod").ZodUnknown>;
845
845
  error: import("zod").ZodOptional<import("zod").ZodUnknown>;
@@ -849,28 +849,28 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
849
849
  activeStepsPath: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodNumber>>>;
850
850
  serializedStepGraph: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
851
851
  type: import("zod").ZodEnum<{
852
- step: "step";
853
852
  agent: "agent";
854
- tool: "tool";
853
+ conditional: "conditional";
854
+ foreach: "foreach";
855
+ loop: "loop";
855
856
  mapping: "mapping";
857
+ parallel: "parallel";
856
858
  sleep: "sleep";
857
859
  sleepUntil: "sleepUntil";
860
+ step: "step";
861
+ tool: "tool";
858
862
  waitForEvent: "waitForEvent";
859
- parallel: "parallel";
860
- conditional: "conditional";
861
- loop: "loop";
862
- foreach: "foreach";
863
863
  workflow: "workflow";
864
864
  }>;
865
865
  }, import("zod/v4/core").$strip>>>;
866
866
  }, import("zod/v4/core").$strip>> | undefined;
867
867
  } & {
868
868
  readonly _mastraSchemaRoute: true;
869
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
869
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
870
870
  method: "POST";
871
871
  path: "/agent-builder/:actionId/resume-no-wait";
872
872
  responseType: "json";
873
- streamFormat?: "sse" | "stream";
873
+ streamFormat?: 'sse' | 'stream';
874
874
  sseFlushOnConnect?: boolean;
875
875
  handler(params: {
876
876
  actionId: string;
@@ -928,11 +928,11 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
928
928
  }, import("zod/v4/core").$strip>> | undefined;
929
929
  } & {
930
930
  readonly _mastraSchemaRoute: true;
931
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
931
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
932
932
  method: "POST";
933
933
  path: "/agent-builder/:actionId/resume";
934
934
  responseType: "json";
935
- streamFormat?: "sse" | "stream";
935
+ streamFormat?: 'sse' | 'stream';
936
936
  sseFlushOnConnect?: boolean;
937
937
  handler(params: {
938
938
  actionId: string;
@@ -990,11 +990,11 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
990
990
  }, import("zod/v4/core").$strip>> | undefined;
991
991
  } & {
992
992
  readonly _mastraSchemaRoute: true;
993
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
993
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
994
994
  method: "POST";
995
995
  path: "/agent-builder/:actionId/resume-stream";
996
996
  responseType: "stream";
997
- streamFormat?: "sse" | "stream";
997
+ streamFormat?: 'sse' | 'stream';
998
998
  sseFlushOnConnect?: boolean;
999
999
  handler(params: {
1000
1000
  actionId: string;
@@ -1048,11 +1048,11 @@ export declare const AGENT_BUILDER_ROUTES: readonly [Omit<import("@mastra/core/s
1048
1048
  }, import("zod/v4/core").$strip>, import("zod").ZodUnknown> | undefined;
1049
1049
  } & {
1050
1050
  readonly _mastraSchemaRoute: true;
1051
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1051
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1052
1052
  method: "POST";
1053
1053
  path: "/agent-builder/:actionId/runs/:runId/cancel";
1054
1054
  responseType: "json";
1055
- streamFormat?: "sse" | "stream";
1055
+ streamFormat?: 'sse' | 'stream';
1056
1056
  sseFlushOnConnect?: boolean;
1057
1057
  handler(params: {
1058
1058
  actionId: string;
@@ -1,8 +1,8 @@
1
- export declare const CHANNELS_ROUTES: readonly [Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1
+ export declare const CHANNELS_ROUTES: readonly [Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2
2
  method: "GET";
3
3
  path: "/channels/platforms";
4
4
  responseType: "json";
5
- streamFormat?: "sse" | "stream";
5
+ streamFormat?: 'sse' | 'stream';
6
6
  sseFlushOnConnect?: boolean;
7
7
  handler(params: import(".").ServerContext): Promise<{
8
8
  id: string;
@@ -28,11 +28,11 @@ export declare const CHANNELS_ROUTES: readonly [Omit<import("@mastra/core/server
28
28
  }, import("zod/v4/core").$strip>>> | undefined;
29
29
  } & {
30
30
  readonly _mastraSchemaRoute: true;
31
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
31
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
32
32
  method: "GET";
33
33
  path: "/channels/:platform/installations";
34
34
  responseType: "json";
35
- streamFormat?: "sse" | "stream";
35
+ streamFormat?: 'sse' | 'stream';
36
36
  sseFlushOnConnect?: boolean;
37
37
  handler(params: {
38
38
  platform: string;
@@ -40,7 +40,7 @@ export declare const CHANNELS_ROUTES: readonly [Omit<import("@mastra/core/server
40
40
  id: string;
41
41
  platform: string;
42
42
  agentId: string;
43
- status: "pending" | "active";
43
+ status: "active" | "pending";
44
44
  displayName?: string | undefined;
45
45
  installedAt?: Date | undefined;
46
46
  }[]>;
@@ -61,19 +61,19 @@ export declare const CHANNELS_ROUTES: readonly [Omit<import("@mastra/core/server
61
61
  platform: import("zod").ZodString;
62
62
  agentId: import("zod").ZodString;
63
63
  status: import("zod").ZodEnum<{
64
- pending: "pending";
65
64
  active: "active";
65
+ pending: "pending";
66
66
  }>;
67
67
  displayName: import("zod").ZodOptional<import("zod").ZodString>;
68
68
  installedAt: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
69
69
  }, import("zod/v4/core").$strip>>> | undefined;
70
70
  } & {
71
71
  readonly _mastraSchemaRoute: true;
72
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
72
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
73
73
  method: "POST";
74
74
  path: "/channels/:platform/connect";
75
75
  responseType: "json";
76
- streamFormat?: "sse" | "stream";
76
+ streamFormat?: 'sse' | 'stream';
77
77
  sseFlushOnConnect?: boolean;
78
78
  handler(params: {
79
79
  platform: string;
@@ -121,11 +121,11 @@ export declare const CHANNELS_ROUTES: readonly [Omit<import("@mastra/core/server
121
121
  }, import("zod/v4/core").$strip>], "type">> | undefined;
122
122
  } & {
123
123
  readonly _mastraSchemaRoute: true;
124
- }, Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
124
+ }, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
125
125
  method: "POST";
126
126
  path: "/channels/:platform/:agentId/disconnect";
127
127
  responseType: "json";
128
- streamFormat?: "sse" | "stream";
128
+ streamFormat?: 'sse' | 'stream';
129
129
  sseFlushOnConnect?: boolean;
130
130
  handler(params: {
131
131
  platform: string;