@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"a2a.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/a2a.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,SAAS,EACT,UAAU,EAEV,IAAI,EACJ,0BAA0B,EAC1B,mCAAmC,EACnC,oCAAoC,EACpC,sCAAsC,EACtC,QAAQ,EACT,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAiC,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAUrF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAmRxC,wBAAsB,uBAAuB,CAAC,EAC5C,MAAM,EACN,OAAO,EACP,YAAgC,EAChC,QAGC,EACD,OAAe,EACf,iBAAyB,EACzB,cAAc,GACf,EAAE,OAAO,GAAG;IACX,cAAc,EAAE,cAAc,CAAC;IAC/B,OAAO,EAAE,MAAM,UAAU,CAAC,OAAO,MAAM,CAAC,UAAU,CAAC,CAAC;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE;QACT,YAAY,EAAE,MAAM,CAAC;QACrB,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IACF,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,GA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;;;;;;;;;;;;;;;;CAwChC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const LIST_AGENT_BUILDER_ACTIONS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1
|
+
export declare const LIST_AGENT_BUILDER_ACTIONS_ROUTE: 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?:
|
|
5
|
+
streamFormat?: 'sse' | 'stream';
|
|
6
6
|
sseFlushOnConnect?: boolean;
|
|
7
7
|
handler(params: import("../server-adapter").ServerContext): Promise<Record<string, {
|
|
8
8
|
steps: Record<string, {
|
|
@@ -29,12 +29,12 @@ export declare const LIST_AGENT_BUILDER_ACTIONS_ROUTE: Omit<import("@mastra/core
|
|
|
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 LIST_AGENT_BUILDER_ACTIONS_ROUTE: Omit<import("@mastra/core
|
|
|
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
|
-
|
|
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>>;
|
|
@@ -109,11 +109,11 @@ export declare const LIST_AGENT_BUILDER_ACTIONS_ROUTE: Omit<import("@mastra/core
|
|
|
109
109
|
} & {
|
|
110
110
|
readonly _mastraSchemaRoute: true;
|
|
111
111
|
};
|
|
112
|
-
export declare const GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
112
|
+
export declare const GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
113
113
|
method: "GET";
|
|
114
114
|
path: "/agent-builder/:actionId";
|
|
115
115
|
responseType: "json";
|
|
116
|
-
streamFormat?:
|
|
116
|
+
streamFormat?: 'sse' | 'stream';
|
|
117
117
|
sseFlushOnConnect?: boolean;
|
|
118
118
|
handler(params: {
|
|
119
119
|
actionId: string;
|
|
@@ -142,12 +142,12 @@ export declare const GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE: Omit<import("@mastra/
|
|
|
142
142
|
isWorkflow?: boolean | undefined;
|
|
143
143
|
metadata?: Record<string, unknown> | undefined;
|
|
144
144
|
}>;
|
|
145
|
-
stepGraph: {
|
|
146
|
-
type: "step" | "agent" | "tool" | "mapping" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach" | "workflow";
|
|
147
|
-
}[];
|
|
148
145
|
name?: string | undefined;
|
|
149
146
|
description?: string | undefined;
|
|
150
147
|
metadata?: Record<string, unknown> | undefined;
|
|
148
|
+
stepGraph: {
|
|
149
|
+
type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
|
|
150
|
+
}[];
|
|
151
151
|
inputSchema?: string | undefined;
|
|
152
152
|
outputSchema?: string | undefined;
|
|
153
153
|
stateSchema?: string | undefined;
|
|
@@ -197,17 +197,17 @@ export declare const GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE: Omit<import("@mastra/
|
|
|
197
197
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
198
198
|
stepGraph: import("zod").ZodArray<import("zod").ZodObject<{
|
|
199
199
|
type: import("zod").ZodEnum<{
|
|
200
|
-
step: "step";
|
|
201
200
|
agent: "agent";
|
|
202
|
-
|
|
201
|
+
conditional: "conditional";
|
|
202
|
+
foreach: "foreach";
|
|
203
|
+
loop: "loop";
|
|
203
204
|
mapping: "mapping";
|
|
205
|
+
parallel: "parallel";
|
|
204
206
|
sleep: "sleep";
|
|
205
207
|
sleepUntil: "sleepUntil";
|
|
208
|
+
step: "step";
|
|
209
|
+
tool: "tool";
|
|
206
210
|
waitForEvent: "waitForEvent";
|
|
207
|
-
parallel: "parallel";
|
|
208
|
-
conditional: "conditional";
|
|
209
|
-
loop: "loop";
|
|
210
|
-
foreach: "foreach";
|
|
211
211
|
workflow: "workflow";
|
|
212
212
|
}>;
|
|
213
213
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -224,11 +224,11 @@ export declare const GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE: Omit<import("@mastra/
|
|
|
224
224
|
} & {
|
|
225
225
|
readonly _mastraSchemaRoute: true;
|
|
226
226
|
};
|
|
227
|
-
export declare const LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
227
|
+
export declare const LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
228
228
|
method: "GET";
|
|
229
229
|
path: "/agent-builder/:actionId/runs";
|
|
230
230
|
responseType: "json";
|
|
231
|
-
streamFormat?:
|
|
231
|
+
streamFormat?: 'sse' | 'stream';
|
|
232
232
|
sseFlushOnConnect?: boolean;
|
|
233
233
|
handler(params: {
|
|
234
234
|
actionId: string;
|
|
@@ -240,7 +240,7 @@ export declare const LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE: Omit<import("@mastra/
|
|
|
240
240
|
fromDate?: Date | undefined;
|
|
241
241
|
toDate?: Date | undefined;
|
|
242
242
|
resourceId?: string | undefined;
|
|
243
|
-
status?: "
|
|
243
|
+
status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
|
|
244
244
|
} & import("../server-adapter").ServerContext): Promise<{
|
|
245
245
|
runs: {
|
|
246
246
|
workflowName: string;
|
|
@@ -273,17 +273,17 @@ export declare const LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE: Omit<import("@mastra/
|
|
|
273
273
|
toDate: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
|
|
274
274
|
resourceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
275
275
|
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
276
|
-
success: "success";
|
|
277
|
-
running: "running";
|
|
278
|
-
waiting: "waiting";
|
|
279
|
-
suspended: "suspended";
|
|
280
|
-
failed: "failed";
|
|
281
|
-
canceled: "canceled";
|
|
282
|
-
pending: "pending";
|
|
283
276
|
bailed: "bailed";
|
|
284
|
-
|
|
277
|
+
canceled: "canceled";
|
|
278
|
+
failed: "failed";
|
|
285
279
|
paused: "paused";
|
|
280
|
+
pending: "pending";
|
|
281
|
+
running: "running";
|
|
286
282
|
skipped: "skipped";
|
|
283
|
+
success: "success";
|
|
284
|
+
suspended: "suspended";
|
|
285
|
+
tripwire: "tripwire";
|
|
286
|
+
waiting: "waiting";
|
|
287
287
|
}>>;
|
|
288
288
|
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
289
289
|
runs: import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -299,25 +299,25 @@ export declare const LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE: Omit<import("@mastra/
|
|
|
299
299
|
} & {
|
|
300
300
|
readonly _mastraSchemaRoute: true;
|
|
301
301
|
};
|
|
302
|
-
export declare const GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
302
|
+
export declare const GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
303
303
|
method: "GET";
|
|
304
304
|
path: "/agent-builder/:actionId/runs/:runId";
|
|
305
305
|
responseType: "json";
|
|
306
|
-
streamFormat?:
|
|
306
|
+
streamFormat?: 'sse' | 'stream';
|
|
307
307
|
sseFlushOnConnect?: boolean;
|
|
308
308
|
handler(params: {
|
|
309
309
|
actionId: string;
|
|
310
310
|
runId: string;
|
|
311
311
|
} & {
|
|
312
312
|
fields?: string | undefined;
|
|
313
|
-
withNestedWorkflows?: "
|
|
313
|
+
withNestedWorkflows?: "false" | "true" | undefined;
|
|
314
314
|
} & import("../server-adapter").ServerContext): Promise<{
|
|
315
315
|
runId: string;
|
|
316
316
|
workflowName: string;
|
|
317
|
+
resourceId?: string | undefined;
|
|
317
318
|
createdAt: Date;
|
|
318
319
|
updatedAt: Date;
|
|
319
|
-
status: "
|
|
320
|
-
resourceId?: string | undefined;
|
|
320
|
+
status: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting";
|
|
321
321
|
initialState?: Record<string, unknown> | undefined;
|
|
322
322
|
result?: unknown;
|
|
323
323
|
error?: unknown;
|
|
@@ -325,7 +325,7 @@ export declare const GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE: Omit<import("@mas
|
|
|
325
325
|
steps?: Record<string, unknown> | undefined;
|
|
326
326
|
activeStepsPath?: Record<string, number[]> | undefined;
|
|
327
327
|
serializedStepGraph?: {
|
|
328
|
-
type: "
|
|
328
|
+
type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
|
|
329
329
|
}[] | undefined;
|
|
330
330
|
}>;
|
|
331
331
|
pathParamSchema?: import("zod").ZodType;
|
|
@@ -344,8 +344,8 @@ export declare const GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE: Omit<import("@mas
|
|
|
344
344
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
345
345
|
fields: import("zod").ZodOptional<import("zod").ZodString>;
|
|
346
346
|
withNestedWorkflows: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
347
|
-
true: "true";
|
|
348
347
|
false: "false";
|
|
348
|
+
true: "true";
|
|
349
349
|
}>>;
|
|
350
350
|
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
351
351
|
runId: import("zod").ZodString;
|
|
@@ -354,17 +354,17 @@ export declare const GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE: Omit<import("@mas
|
|
|
354
354
|
createdAt: import("zod").ZodDate;
|
|
355
355
|
updatedAt: import("zod").ZodDate;
|
|
356
356
|
status: import("zod").ZodEnum<{
|
|
357
|
-
success: "success";
|
|
358
|
-
running: "running";
|
|
359
|
-
waiting: "waiting";
|
|
360
|
-
suspended: "suspended";
|
|
361
|
-
failed: "failed";
|
|
362
|
-
canceled: "canceled";
|
|
363
|
-
pending: "pending";
|
|
364
357
|
bailed: "bailed";
|
|
365
|
-
|
|
358
|
+
canceled: "canceled";
|
|
359
|
+
failed: "failed";
|
|
366
360
|
paused: "paused";
|
|
361
|
+
pending: "pending";
|
|
362
|
+
running: "running";
|
|
367
363
|
skipped: "skipped";
|
|
364
|
+
success: "success";
|
|
365
|
+
suspended: "suspended";
|
|
366
|
+
tripwire: "tripwire";
|
|
367
|
+
waiting: "waiting";
|
|
368
368
|
}>;
|
|
369
369
|
initialState: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
370
370
|
result: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
@@ -374,17 +374,17 @@ export declare const GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE: Omit<import("@mas
|
|
|
374
374
|
activeStepsPath: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodNumber>>>;
|
|
375
375
|
serializedStepGraph: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
376
376
|
type: import("zod").ZodEnum<{
|
|
377
|
-
step: "step";
|
|
378
377
|
agent: "agent";
|
|
379
|
-
|
|
378
|
+
conditional: "conditional";
|
|
379
|
+
foreach: "foreach";
|
|
380
|
+
loop: "loop";
|
|
380
381
|
mapping: "mapping";
|
|
382
|
+
parallel: "parallel";
|
|
381
383
|
sleep: "sleep";
|
|
382
384
|
sleepUntil: "sleepUntil";
|
|
385
|
+
step: "step";
|
|
386
|
+
tool: "tool";
|
|
383
387
|
waitForEvent: "waitForEvent";
|
|
384
|
-
parallel: "parallel";
|
|
385
|
-
conditional: "conditional";
|
|
386
|
-
loop: "loop";
|
|
387
|
-
foreach: "foreach";
|
|
388
388
|
workflow: "workflow";
|
|
389
389
|
}>;
|
|
390
390
|
}, import("zod/v4/core").$strip>>>;
|
|
@@ -392,11 +392,11 @@ export declare const GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE: Omit<import("@mas
|
|
|
392
392
|
} & {
|
|
393
393
|
readonly _mastraSchemaRoute: true;
|
|
394
394
|
};
|
|
395
|
-
export declare const CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
395
|
+
export declare const CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
396
396
|
method: "POST";
|
|
397
397
|
path: "/agent-builder/:actionId/create-run";
|
|
398
398
|
responseType: "json";
|
|
399
|
-
streamFormat?:
|
|
399
|
+
streamFormat?: 'sse' | 'stream';
|
|
400
400
|
sseFlushOnConnect?: boolean;
|
|
401
401
|
handler(params: {
|
|
402
402
|
actionId: string;
|
|
@@ -425,11 +425,11 @@ export declare const CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE: Omit<import("@mastra
|
|
|
425
425
|
} & {
|
|
426
426
|
readonly _mastraSchemaRoute: true;
|
|
427
427
|
};
|
|
428
|
-
export declare const STREAM_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
428
|
+
export declare const STREAM_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
429
429
|
method: "POST";
|
|
430
430
|
path: "/agent-builder/:actionId/stream";
|
|
431
431
|
responseType: "stream";
|
|
432
|
-
streamFormat?:
|
|
432
|
+
streamFormat?: 'sse' | 'stream';
|
|
433
433
|
sseFlushOnConnect?: boolean;
|
|
434
434
|
handler(params: {
|
|
435
435
|
actionId: string;
|
|
@@ -486,11 +486,11 @@ export declare const STREAM_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/cor
|
|
|
486
486
|
} & {
|
|
487
487
|
readonly _mastraSchemaRoute: true;
|
|
488
488
|
};
|
|
489
|
-
export declare const START_ASYNC_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
489
|
+
export declare const START_ASYNC_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
490
490
|
method: "POST";
|
|
491
491
|
path: "/agent-builder/:actionId/start-async";
|
|
492
492
|
responseType: "json";
|
|
493
|
-
streamFormat?:
|
|
493
|
+
streamFormat?: 'sse' | 'stream';
|
|
494
494
|
sseFlushOnConnect?: boolean;
|
|
495
495
|
handler(params: {
|
|
496
496
|
actionId: string;
|
|
@@ -512,7 +512,7 @@ export declare const START_ASYNC_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastr
|
|
|
512
512
|
} | undefined;
|
|
513
513
|
perStep?: boolean | undefined;
|
|
514
514
|
} & import("../server-adapter").ServerContext): Promise<{
|
|
515
|
-
status?: "
|
|
515
|
+
status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
|
|
516
516
|
result?: unknown;
|
|
517
517
|
error?: unknown;
|
|
518
518
|
payload?: unknown;
|
|
@@ -520,7 +520,7 @@ export declare const START_ASYNC_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastr
|
|
|
520
520
|
steps?: Record<string, unknown> | undefined;
|
|
521
521
|
activeStepsPath?: Record<string, number[]> | undefined;
|
|
522
522
|
serializedStepGraph?: {
|
|
523
|
-
type: "
|
|
523
|
+
type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
|
|
524
524
|
}[] | undefined;
|
|
525
525
|
}>;
|
|
526
526
|
pathParamSchema?: import("zod").ZodType;
|
|
@@ -554,17 +554,17 @@ export declare const START_ASYNC_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastr
|
|
|
554
554
|
perStep: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
555
555
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
556
556
|
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
557
|
-
success: "success";
|
|
558
|
-
running: "running";
|
|
559
|
-
waiting: "waiting";
|
|
560
|
-
suspended: "suspended";
|
|
561
|
-
failed: "failed";
|
|
562
|
-
canceled: "canceled";
|
|
563
|
-
pending: "pending";
|
|
564
557
|
bailed: "bailed";
|
|
565
|
-
|
|
558
|
+
canceled: "canceled";
|
|
559
|
+
failed: "failed";
|
|
566
560
|
paused: "paused";
|
|
561
|
+
pending: "pending";
|
|
562
|
+
running: "running";
|
|
567
563
|
skipped: "skipped";
|
|
564
|
+
success: "success";
|
|
565
|
+
suspended: "suspended";
|
|
566
|
+
tripwire: "tripwire";
|
|
567
|
+
waiting: "waiting";
|
|
568
568
|
}>>;
|
|
569
569
|
result: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
570
570
|
error: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
@@ -574,17 +574,17 @@ export declare const START_ASYNC_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastr
|
|
|
574
574
|
activeStepsPath: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodNumber>>>;
|
|
575
575
|
serializedStepGraph: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
576
576
|
type: import("zod").ZodEnum<{
|
|
577
|
-
step: "step";
|
|
578
577
|
agent: "agent";
|
|
579
|
-
|
|
578
|
+
conditional: "conditional";
|
|
579
|
+
foreach: "foreach";
|
|
580
|
+
loop: "loop";
|
|
580
581
|
mapping: "mapping";
|
|
582
|
+
parallel: "parallel";
|
|
581
583
|
sleep: "sleep";
|
|
582
584
|
sleepUntil: "sleepUntil";
|
|
585
|
+
step: "step";
|
|
586
|
+
tool: "tool";
|
|
583
587
|
waitForEvent: "waitForEvent";
|
|
584
|
-
parallel: "parallel";
|
|
585
|
-
conditional: "conditional";
|
|
586
|
-
loop: "loop";
|
|
587
|
-
foreach: "foreach";
|
|
588
588
|
workflow: "workflow";
|
|
589
589
|
}>;
|
|
590
590
|
}, import("zod/v4/core").$strip>>>;
|
|
@@ -592,11 +592,11 @@ export declare const START_ASYNC_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastr
|
|
|
592
592
|
} & {
|
|
593
593
|
readonly _mastraSchemaRoute: true;
|
|
594
594
|
};
|
|
595
|
-
export declare const START_AGENT_BUILDER_ACTION_RUN_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
595
|
+
export declare const START_AGENT_BUILDER_ACTION_RUN_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
596
596
|
method: "POST";
|
|
597
597
|
path: "/agent-builder/:actionId/start";
|
|
598
598
|
responseType: "json";
|
|
599
|
-
streamFormat?:
|
|
599
|
+
streamFormat?: 'sse' | 'stream';
|
|
600
600
|
sseFlushOnConnect?: boolean;
|
|
601
601
|
handler(params: {
|
|
602
602
|
actionId: string;
|
|
@@ -655,11 +655,11 @@ export declare const START_AGENT_BUILDER_ACTION_RUN_ROUTE: Omit<import("@mastra/
|
|
|
655
655
|
} & {
|
|
656
656
|
readonly _mastraSchemaRoute: true;
|
|
657
657
|
};
|
|
658
|
-
export declare const OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
658
|
+
export declare const OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
659
659
|
method: "POST";
|
|
660
660
|
path: "/agent-builder/:actionId/observe";
|
|
661
661
|
responseType: "stream";
|
|
662
|
-
streamFormat?:
|
|
662
|
+
streamFormat?: 'sse' | 'stream';
|
|
663
663
|
sseFlushOnConnect?: boolean;
|
|
664
664
|
handler(params: {
|
|
665
665
|
actionId: string;
|
|
@@ -684,11 +684,11 @@ export declare const OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@ma
|
|
|
684
684
|
} & {
|
|
685
685
|
readonly _mastraSchemaRoute: true;
|
|
686
686
|
};
|
|
687
|
-
export declare const RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
687
|
+
export declare const RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
688
688
|
method: "POST";
|
|
689
689
|
path: "/agent-builder/:actionId/resume-async";
|
|
690
690
|
responseType: "json";
|
|
691
|
-
streamFormat?:
|
|
691
|
+
streamFormat?: 'sse' | 'stream';
|
|
692
692
|
sseFlushOnConnect?: boolean;
|
|
693
693
|
handler(params: {
|
|
694
694
|
actionId: string;
|
|
@@ -710,7 +710,7 @@ export declare const RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mast
|
|
|
710
710
|
perStep?: boolean | undefined;
|
|
711
711
|
forEachIndex?: number | undefined;
|
|
712
712
|
} & import("../server-adapter").ServerContext): Promise<{
|
|
713
|
-
status?: "
|
|
713
|
+
status?: "bailed" | "canceled" | "failed" | "paused" | "pending" | "running" | "skipped" | "success" | "suspended" | "tripwire" | "waiting" | undefined;
|
|
714
714
|
result?: unknown;
|
|
715
715
|
error?: unknown;
|
|
716
716
|
payload?: unknown;
|
|
@@ -718,7 +718,7 @@ export declare const RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mast
|
|
|
718
718
|
steps?: Record<string, unknown> | undefined;
|
|
719
719
|
activeStepsPath?: Record<string, number[]> | undefined;
|
|
720
720
|
serializedStepGraph?: {
|
|
721
|
-
type: "
|
|
721
|
+
type: "agent" | "conditional" | "foreach" | "loop" | "mapping" | "parallel" | "sleep" | "sleepUntil" | "step" | "tool" | "waitForEvent" | "workflow";
|
|
722
722
|
}[] | undefined;
|
|
723
723
|
}>;
|
|
724
724
|
pathParamSchema?: import("zod").ZodType;
|
|
@@ -752,17 +752,17 @@ export declare const RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mast
|
|
|
752
752
|
forEachIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
753
753
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
754
754
|
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
755
|
-
success: "success";
|
|
756
|
-
running: "running";
|
|
757
|
-
waiting: "waiting";
|
|
758
|
-
suspended: "suspended";
|
|
759
|
-
failed: "failed";
|
|
760
|
-
canceled: "canceled";
|
|
761
|
-
pending: "pending";
|
|
762
755
|
bailed: "bailed";
|
|
763
|
-
|
|
756
|
+
canceled: "canceled";
|
|
757
|
+
failed: "failed";
|
|
764
758
|
paused: "paused";
|
|
759
|
+
pending: "pending";
|
|
760
|
+
running: "running";
|
|
765
761
|
skipped: "skipped";
|
|
762
|
+
success: "success";
|
|
763
|
+
suspended: "suspended";
|
|
764
|
+
tripwire: "tripwire";
|
|
765
|
+
waiting: "waiting";
|
|
766
766
|
}>>;
|
|
767
767
|
result: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
768
768
|
error: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
@@ -772,17 +772,17 @@ export declare const RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mast
|
|
|
772
772
|
activeStepsPath: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodNumber>>>;
|
|
773
773
|
serializedStepGraph: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
774
774
|
type: import("zod").ZodEnum<{
|
|
775
|
-
step: "step";
|
|
776
775
|
agent: "agent";
|
|
777
|
-
|
|
776
|
+
conditional: "conditional";
|
|
777
|
+
foreach: "foreach";
|
|
778
|
+
loop: "loop";
|
|
778
779
|
mapping: "mapping";
|
|
780
|
+
parallel: "parallel";
|
|
779
781
|
sleep: "sleep";
|
|
780
782
|
sleepUntil: "sleepUntil";
|
|
783
|
+
step: "step";
|
|
784
|
+
tool: "tool";
|
|
781
785
|
waitForEvent: "waitForEvent";
|
|
782
|
-
parallel: "parallel";
|
|
783
|
-
conditional: "conditional";
|
|
784
|
-
loop: "loop";
|
|
785
|
-
foreach: "foreach";
|
|
786
786
|
workflow: "workflow";
|
|
787
787
|
}>;
|
|
788
788
|
}, import("zod/v4/core").$strip>>>;
|
|
@@ -797,11 +797,11 @@ export declare const RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mast
|
|
|
797
797
|
* TODO(v2): fold this behavior into the `resume-async` route in Mastra v2 and remove this route.
|
|
798
798
|
* Kept separate in v1 to avoid breaking the existing `resume-async` response contract.
|
|
799
799
|
*/
|
|
800
|
-
export declare const RESUME_NO_WAIT_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
800
|
+
export declare const RESUME_NO_WAIT_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
801
801
|
method: "POST";
|
|
802
802
|
path: "/agent-builder/:actionId/resume-no-wait";
|
|
803
803
|
responseType: "json";
|
|
804
|
-
streamFormat?:
|
|
804
|
+
streamFormat?: 'sse' | 'stream';
|
|
805
805
|
sseFlushOnConnect?: boolean;
|
|
806
806
|
handler(params: {
|
|
807
807
|
actionId: string;
|
|
@@ -860,11 +860,11 @@ export declare const RESUME_NO_WAIT_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@ma
|
|
|
860
860
|
} & {
|
|
861
861
|
readonly _mastraSchemaRoute: true;
|
|
862
862
|
};
|
|
863
|
-
export declare const RESUME_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
863
|
+
export declare const RESUME_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
864
864
|
method: "POST";
|
|
865
865
|
path: "/agent-builder/:actionId/resume";
|
|
866
866
|
responseType: "json";
|
|
867
|
-
streamFormat?:
|
|
867
|
+
streamFormat?: 'sse' | 'stream';
|
|
868
868
|
sseFlushOnConnect?: boolean;
|
|
869
869
|
handler(params: {
|
|
870
870
|
actionId: string;
|
|
@@ -923,11 +923,11 @@ export declare const RESUME_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/cor
|
|
|
923
923
|
} & {
|
|
924
924
|
readonly _mastraSchemaRoute: true;
|
|
925
925
|
};
|
|
926
|
-
export declare const RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
926
|
+
export declare const RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
927
927
|
method: "POST";
|
|
928
928
|
path: "/agent-builder/:actionId/resume-stream";
|
|
929
929
|
responseType: "stream";
|
|
930
|
-
streamFormat?:
|
|
930
|
+
streamFormat?: 'sse' | 'stream';
|
|
931
931
|
sseFlushOnConnect?: boolean;
|
|
932
932
|
handler(params: {
|
|
933
933
|
actionId: string;
|
|
@@ -982,11 +982,11 @@ export declare const RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mas
|
|
|
982
982
|
} & {
|
|
983
983
|
readonly _mastraSchemaRoute: true;
|
|
984
984
|
};
|
|
985
|
-
export declare const CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
985
|
+
export declare const CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
986
986
|
method: "POST";
|
|
987
987
|
path: "/agent-builder/:actionId/runs/:runId/cancel";
|
|
988
988
|
responseType: "json";
|
|
989
|
-
streamFormat?:
|
|
989
|
+
streamFormat?: 'sse' | 'stream';
|
|
990
990
|
sseFlushOnConnect?: boolean;
|
|
991
991
|
handler(params: {
|
|
992
992
|
actionId: string;
|
|
@@ -1013,11 +1013,11 @@ export declare const CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE: Omit<import("@mastra
|
|
|
1013
1013
|
} & {
|
|
1014
1014
|
readonly _mastraSchemaRoute: true;
|
|
1015
1015
|
};
|
|
1016
|
-
export declare const STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1016
|
+
export declare const STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1017
1017
|
method: "POST";
|
|
1018
1018
|
path: "/agent-builder/:actionId/stream-legacy";
|
|
1019
1019
|
responseType: "stream";
|
|
1020
|
-
streamFormat?:
|
|
1020
|
+
streamFormat?: 'sse' | 'stream';
|
|
1021
1021
|
sseFlushOnConnect?: boolean;
|
|
1022
1022
|
handler(params: {
|
|
1023
1023
|
actionId: string;
|
|
@@ -1072,11 +1072,11 @@ export declare const STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mas
|
|
|
1072
1072
|
} & {
|
|
1073
1073
|
readonly _mastraSchemaRoute: true;
|
|
1074
1074
|
};
|
|
1075
|
-
export declare const OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "
|
|
1075
|
+
export declare const OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1076
1076
|
method: "POST";
|
|
1077
1077
|
path: "/agent-builder/:actionId/observe-stream-legacy";
|
|
1078
1078
|
responseType: "stream";
|
|
1079
|
-
streamFormat?:
|
|
1079
|
+
streamFormat?: 'sse' | 'stream';
|
|
1080
1080
|
sseFlushOnConnect?: boolean;
|
|
1081
1081
|
handler(params: {
|
|
1082
1082
|
actionId: string;
|
|
@@ -614,10 +614,16 @@ const AGENT_CONTROLLER_TOOL_SUSPENSION_ROUTE = require_route_builder.createRoute
|
|
|
614
614
|
requiresPermission: "agent-controller:execute",
|
|
615
615
|
handler: async ({ mastra, controllerId, resourceId, sessionScope, toolCallId, resumeData, requestContext }) => {
|
|
616
616
|
try {
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
617
|
+
const session = await getSession(getAgentControllerOrThrow(mastra, controllerId), resourceId, { scope: sessionScope }, requestContext);
|
|
618
|
+
ackBackgroundSessionWork({
|
|
619
|
+
work: session.respondToToolSuspension({
|
|
620
|
+
toolCallId,
|
|
621
|
+
resumeData,
|
|
622
|
+
requestContext
|
|
623
|
+
}),
|
|
624
|
+
session,
|
|
625
|
+
mastra,
|
|
626
|
+
operation: "respondToToolSuspension"
|
|
621
627
|
});
|
|
622
628
|
return { ok: true };
|
|
623
629
|
} catch (error) {
|