@mastra/server 1.81.0-alpha.1 → 1.81.0-alpha.2
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/dist/_types/@internal_core/dist/storage/index.d.ts +11 -0
- package/dist/{a2a-CSz0rw8E.js → a2a-UYs7rzN2.js} +2 -2
- package/dist/{a2a-CSz0rw8E.js.map → a2a-UYs7rzN2.js.map} +1 -1
- package/dist/{a2a-CmMIWPuz.cjs → a2a-eUB3oDRN.cjs} +2 -2
- package/dist/{a2a-CmMIWPuz.cjs.map → a2a-eUB3oDRN.cjs.map} +1 -1
- package/dist/{agent-builder-XhBB0Svr.js → agent-builder-5dpawFJf.js} +2 -2
- package/dist/{agent-builder-XhBB0Svr.js.map → agent-builder-5dpawFJf.js.map} +1 -1
- package/dist/{agent-builder-DIEX-as5.cjs → agent-builder-DwfHzUnt.cjs} +2 -2
- package/dist/{agent-builder-DIEX-as5.cjs.map → agent-builder-DwfHzUnt.cjs.map} +1 -1
- package/dist/{agents-D36tukip.cjs → agents-BjdRPzyV.cjs} +3 -2
- package/dist/agents-BjdRPzyV.cjs.map +1 -0
- package/dist/{agents-BVjnYswL.js → agents-BuI0JjjX.js} +3 -2
- package/dist/agents-BuI0JjjX.js.map +1 -0
- package/dist/{api-schema-manifest-BVPhF1ZS.js → api-schema-manifest-DafznVYs.js} +2 -2
- package/dist/{api-schema-manifest-BVPhF1ZS.js.map → api-schema-manifest-DafznVYs.js.map} +1 -1
- package/dist/{api-schema-manifest-BWId44SV.cjs → api-schema-manifest-GgyfF4dw.cjs} +2 -2
- package/dist/{api-schema-manifest-BWId44SV.cjs.map → api-schema-manifest-GgyfF4dw.cjs.map} +1 -1
- package/dist/{builder-registry-DWusXgse.cjs → builder-registry-CamBJItc.cjs} +2 -2
- package/dist/{builder-registry-DWusXgse.cjs.map → builder-registry-CamBJItc.cjs.map} +1 -1
- package/dist/{builder-registry-CtGv0Gj6.js → builder-registry-DHVK50Ba.js} +2 -2
- package/dist/{builder-registry-CtGv0Gj6.js.map → builder-registry-DHVK50Ba.js.map} +1 -1
- package/dist/{conversations-CJn0ioOZ.cjs → conversations-ORTpTqBg.cjs} +2 -2
- package/dist/{conversations-CJn0ioOZ.cjs.map → conversations-ORTpTqBg.cjs.map} +1 -1
- package/dist/{conversations-CABVTBQY.js → conversations-fdXV9K0J.js} +2 -2
- package/dist/{conversations-CABVTBQY.js.map → conversations-fdXV9K0J.js.map} +1 -1
- package/dist/{dist-BK1fCE4z.cjs → dist-BEtxPxkM.cjs} +1 -1
- package/dist/dist-BQ1uFC_1.js +1 -0
- package/dist/{dist-OpNBTIST.cjs → dist-CR3PolEz.cjs} +5 -4
- package/dist/{dist-OpNBTIST.cjs.map → dist-CR3PolEz.cjs.map} +1 -1
- package/dist/{dist-BLjE21MA.js → dist-CmG4sN60.js} +5 -4
- package/dist/{dist-BLjE21MA.js.map → dist-CmG4sN60.js.map} +1 -1
- package/dist/docs/SKILL.md +2 -2
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-observability-tracing-advanced-queries.md +226 -86
- package/dist/docs/references/reference-server-routes.md +18 -14
- package/dist/{editor-builder-CeiISBIO.cjs → editor-builder-6l27BFzD.cjs} +2 -2
- package/dist/{editor-builder-CeiISBIO.cjs.map → editor-builder-6l27BFzD.cjs.map} +1 -1
- package/dist/{editor-builder-DeD6EVm8.js → editor-builder-DxGZ7IN5.js} +2 -2
- package/dist/{editor-builder-DeD6EVm8.js.map → editor-builder-DxGZ7IN5.js.map} +1 -1
- package/dist/{mcp-Bt3h1lO7.cjs → mcp-B7Q8qwjn.cjs} +118 -3
- package/dist/mcp-B7Q8qwjn.cjs.map +1 -0
- package/dist/{mcp-mpYrlkUA.cjs → mcp-CMw0sq0y.cjs} +177 -4
- package/dist/mcp-CMw0sq0y.cjs.map +1 -0
- package/dist/{mcp-D4Cprr8R.js → mcp-CQ_pR-JC.js} +77 -4
- package/dist/mcp-CQ_pR-JC.js.map +1 -0
- package/dist/{mcp-D3F3iYew.js → mcp-DN9mT9q4.js} +154 -5
- package/dist/mcp-DN9mT9q4.js.map +1 -0
- package/dist/{observability-DHuljMXO.cjs → observability-DRbDeN1X.cjs} +2 -2
- package/dist/{observability-DHuljMXO.cjs.map → observability-DRbDeN1X.cjs.map} +1 -1
- package/dist/{observability-new-endpoints-CaTskbSh.cjs → observability-new-endpoints-BrB2CKix.cjs} +15 -4
- package/dist/observability-new-endpoints-BrB2CKix.cjs.map +1 -0
- package/dist/{observability-new-endpoints-CsUP8y2j.js → observability-new-endpoints-CQNVjYYq.js} +16 -5
- package/dist/observability-new-endpoints-CQNVjYYq.js.map +1 -0
- package/dist/{observability-BgIU0otL.js → observability-pX3wmG8T.js} +2 -2
- package/dist/{observability-BgIU0otL.js.map → observability-pX3wmG8T.js.map} +1 -1
- package/dist/{plans-Dydti0sT.cjs → plans-BHQFsFRU.cjs} +2 -2
- package/dist/{plans-Dydti0sT.cjs.map → plans-BHQFsFRU.cjs.map} +1 -1
- package/dist/{plans-B5GgYqx-.js → plans-D9BGMVkL.js} +2 -2
- package/dist/{plans-B5GgYqx-.js.map → plans-D9BGMVkL.js.map} +1 -1
- package/dist/{probe-image-size-BqH96zcz.js → probe-image-size-BjNoJxWf.js} +2 -2
- package/dist/{probe-image-size-BqH96zcz.js.map → probe-image-size-BjNoJxWf.js.map} +1 -1
- package/dist/{probe-image-size-BIZUe8Bp.cjs → probe-image-size-jS0ECSlc.cjs} +2 -2
- package/dist/{probe-image-size-BIZUe8Bp.cjs.map → probe-image-size-jS0ECSlc.cjs.map} +1 -1
- package/dist/{responses-CxvSoOLt.cjs → responses-4_RCBNJB.cjs} +2 -2
- package/dist/{responses-CxvSoOLt.cjs.map → responses-4_RCBNJB.cjs.map} +1 -1
- package/dist/{responses-DbiqhxP3.js → responses-Cb-9JV9A.js} +2 -2
- package/dist/{responses-DbiqhxP3.js.map → responses-Cb-9JV9A.js.map} +1 -1
- package/dist/{routes-CBrxFxzL.js → routes-4X2kSYEG.js} +19 -15
- package/dist/{routes-CBrxFxzL.js.map → routes-4X2kSYEG.js.map} +1 -1
- package/dist/{routes-By3cLbPV.cjs → routes-BqWcvAcz.cjs} +19 -15
- package/dist/routes-BqWcvAcz.cjs.map +1 -0
- package/dist/{scores-CnozEyM4.cjs → scores-DnEcBe2i.cjs} +2 -2
- package/dist/{scores-CnozEyM4.cjs.map → scores-DnEcBe2i.cjs.map} +1 -1
- package/dist/{scores-BjclMqFa.js → scores-DqImg-o-.js} +2 -2
- package/dist/{scores-BjclMqFa.js.map → scores-DqImg-o-.js.map} +1 -1
- package/dist/server/handlers/a2a.cjs +1 -1
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +1 -1
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/agents.cjs +1 -1
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/builder-registry.cjs +1 -1
- package/dist/server/handlers/builder-registry.js +1 -1
- package/dist/server/handlers/conversations.cjs +1 -1
- package/dist/server/handlers/conversations.js +1 -1
- package/dist/server/handlers/editor-builder.cjs +1 -1
- package/dist/server/handlers/editor-builder.js +1 -1
- package/dist/server/handlers/error.cjs +5 -4
- package/dist/server/handlers/error.cjs.map +1 -1
- package/dist/server/handlers/error.d.ts.map +1 -1
- package/dist/server/handlers/error.js +5 -4
- package/dist/server/handlers/error.js.map +1 -1
- package/dist/server/handlers/favorites-enrichment.cjs +1 -1
- package/dist/server/handlers/favorites-enrichment.js +1 -1
- package/dist/server/handlers/mcp.cjs +5 -1
- package/dist/server/handlers/mcp.d.ts +507 -245
- package/dist/server/handlers/mcp.d.ts.map +1 -1
- package/dist/server/handlers/mcp.js +1 -1
- package/dist/server/handlers/observability-new-endpoints.cjs +1 -1
- package/dist/server/handlers/observability-new-endpoints.d.ts +80 -16
- package/dist/server/handlers/observability-new-endpoints.d.ts.map +1 -1
- package/dist/server/handlers/observability-new-endpoints.js +1 -1
- package/dist/server/handlers/observability-shared.cjs +56 -0
- package/dist/server/handlers/observability-shared.cjs.map +1 -1
- package/dist/server/handlers/observability-shared.d.ts +29 -0
- package/dist/server/handlers/observability-shared.d.ts.map +1 -1
- package/dist/server/handlers/observability-shared.js +50 -1
- package/dist/server/handlers/observability-shared.js.map +1 -1
- package/dist/server/handlers/observability.cjs +2 -2
- package/dist/server/handlers/observability.js +2 -2
- package/dist/server/handlers/plans.cjs +1 -1
- package/dist/server/handlers/plans.js +1 -1
- package/dist/server/handlers/responses.cjs +1 -1
- package/dist/server/handlers/responses.js +1 -1
- package/dist/server/handlers/scores.cjs +1 -1
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/stored-agent-favorites.cjs +1 -1
- package/dist/server/handlers/stored-agent-favorites.js +1 -1
- package/dist/server/handlers/stored-agents.cjs +1 -1
- package/dist/server/handlers/stored-agents.js +1 -1
- package/dist/server/handlers/stored-skill-favorites.cjs +1 -1
- package/dist/server/handlers/stored-skill-favorites.js +1 -1
- package/dist/server/handlers/stored-skills.cjs +1 -1
- package/dist/server/handlers/stored-skills.js +1 -1
- package/dist/server/handlers/system.cjs +2 -2
- package/dist/server/handlers/system.d.ts +8 -0
- package/dist/server/handlers/system.d.ts.map +1 -1
- package/dist/server/handlers/system.js +2 -2
- package/dist/server/handlers/tools.cjs +1 -1
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/workspace.cjs +1 -1
- package/dist/server/handlers/workspace.d.ts +4 -0
- package/dist/server/handlers/workspace.d.ts.map +1 -1
- package/dist/server/handlers/workspace.js +1 -1
- package/dist/server/handlers.cjs +11 -11
- package/dist/server/handlers.js +11 -11
- package/dist/server/schemas/index.cjs +3 -3
- package/dist/server/schemas/index.js +3 -3
- package/dist/server/schemas/mcp.d.ts +141 -0
- package/dist/server/schemas/mcp.d.ts.map +1 -1
- package/dist/server/schemas/system.d.ts +8 -0
- package/dist/server/schemas/system.d.ts.map +1 -1
- package/dist/server/schemas/workspace.d.ts +2 -0
- package/dist/server/schemas/workspace.d.ts.map +1 -1
- package/dist/server/server-adapter/index.cjs +1 -1
- package/dist/server/server-adapter/index.js +1 -1
- package/dist/server/server-adapter/routes/mcp.d.ts +256 -0
- package/dist/server/server-adapter/routes/mcp.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/observability.d.ts +42 -10
- package/dist/server/server-adapter/routes/observability.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/system.d.ts +8 -0
- package/dist/server/server-adapter/routes/system.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/workspace.d.ts +4 -0
- package/dist/server/server-adapter/routes/workspace.d.ts.map +1 -1
- package/dist/{system-BxHpBJiq.cjs → system-CHCn8IQ3.cjs} +5 -1
- package/dist/system-CHCn8IQ3.cjs.map +1 -0
- package/dist/{system-CxwzIMsy.js → system-DOwo7OGf.js} +5 -1
- package/dist/system-DOwo7OGf.js.map +1 -0
- package/dist/{tools-Ck35EVD7.js → tools-BFpuzQsz.js} +2 -2
- package/dist/{tools-Ck35EVD7.js.map → tools-BFpuzQsz.js.map} +1 -1
- package/dist/{tools-CeJrnYDf.cjs → tools-Dy_j6URC.cjs} +2 -2
- package/dist/{tools-CeJrnYDf.cjs.map → tools-Dy_j6URC.cjs.map} +1 -1
- package/dist/{workspace-CyH_iu8w.cjs → workspace-BU6sQpbV.cjs} +14 -10
- package/dist/{workspace-C9dE6D1U.js.map → workspace-BU6sQpbV.cjs.map} +1 -1
- package/dist/{workspace-KeHGZvNV.cjs → workspace-C5BBUatQ.cjs} +3 -1
- package/dist/workspace-C5BBUatQ.cjs.map +1 -0
- package/dist/{workspace-C9dE6D1U.js → workspace-CS-GYTve.js} +14 -10
- package/dist/workspace-CS-GYTve.js.map +1 -0
- package/dist/{workspace-muaSMxVS.js → workspace-DBDA3UQl.js} +3 -1
- package/dist/workspace-DBDA3UQl.js.map +1 -0
- package/package.json +4 -4
- package/dist/agents-BVjnYswL.js.map +0 -1
- package/dist/agents-D36tukip.cjs.map +0 -1
- package/dist/dist-_M1jEPcL.js +0 -1
- package/dist/mcp-Bt3h1lO7.cjs.map +0 -1
- package/dist/mcp-D3F3iYew.js.map +0 -1
- package/dist/mcp-D4Cprr8R.js.map +0 -1
- package/dist/mcp-mpYrlkUA.cjs.map +0 -1
- package/dist/observability-new-endpoints-CaTskbSh.cjs.map +0 -1
- package/dist/observability-new-endpoints-CsUP8y2j.js.map +0 -1
- package/dist/routes-By3cLbPV.cjs.map +0 -1
- package/dist/system-BxHpBJiq.cjs.map +0 -1
- package/dist/system-CxwzIMsy.js.map +0 -1
- package/dist/workspace-CyH_iu8w.cjs.map +0 -1
- package/dist/workspace-KeHGZvNV.cjs.map +0 -1
- package/dist/workspace-muaSMxVS.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { MCPServerBase as MastraMCPServerImplementation, ServerInfo } from '@mastra/core/mcp';
|
|
2
|
+
import type { z } from 'zod';
|
|
2
3
|
import type { MCPServerTransport } from '../schemas/mcp.js';
|
|
3
4
|
import type { ServerContext } from '../server-adapter/index.js';
|
|
4
5
|
import type { SetMcpRequestAuth } from '../server-adapter/mcp-auth.js';
|
|
@@ -6,6 +7,7 @@ export interface MCPServerInfoResponse extends ServerInfo {
|
|
|
6
7
|
/** Endpoints served under `/mcp/:serverId`; 2026-07-28 servers speak Streamable HTTP only. */
|
|
7
8
|
transports: MCPServerTransport[];
|
|
8
9
|
events_capability?: boolean;
|
|
10
|
+
tasks_capability?: boolean;
|
|
9
11
|
}
|
|
10
12
|
export declare const LIST_MCP_SERVERS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
11
13
|
method: "GET";
|
|
@@ -29,43 +31,45 @@ export declare const LIST_MCP_SERVERS_ROUTE: Omit<import("@mastra/core/server").
|
|
|
29
31
|
};
|
|
30
32
|
transports?: ("sse" | "streamable-http")[] | undefined;
|
|
31
33
|
events_capability?: boolean | undefined;
|
|
34
|
+
tasks_capability?: boolean | undefined;
|
|
32
35
|
}[];
|
|
33
36
|
total_count: number;
|
|
34
37
|
next: string | null;
|
|
35
38
|
}>;
|
|
36
|
-
pathParamSchema?:
|
|
37
|
-
queryParamSchema?:
|
|
38
|
-
bodySchema?:
|
|
39
|
-
responseSchema?:
|
|
39
|
+
pathParamSchema?: z.ZodSchema;
|
|
40
|
+
queryParamSchema?: z.ZodSchema;
|
|
41
|
+
bodySchema?: z.ZodSchema;
|
|
42
|
+
responseSchema?: z.ZodSchema;
|
|
40
43
|
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
41
44
|
maxBodySize?: number;
|
|
42
45
|
deprecated?: boolean;
|
|
43
46
|
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
44
47
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
45
48
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
46
|
-
readonly __schemas?: import("../server-adapter").RouteSchemas<undefined,
|
|
47
|
-
page:
|
|
48
|
-
perPage:
|
|
49
|
-
offset:
|
|
50
|
-
limit:
|
|
51
|
-
},
|
|
52
|
-
servers:
|
|
53
|
-
id:
|
|
54
|
-
name:
|
|
55
|
-
version_detail:
|
|
56
|
-
version:
|
|
57
|
-
release_date:
|
|
58
|
-
is_latest:
|
|
59
|
-
},
|
|
60
|
-
transports:
|
|
49
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<{
|
|
50
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
51
|
+
perPage: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
52
|
+
offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
53
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
54
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
55
|
+
servers: z.ZodArray<z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
version_detail: z.ZodObject<{
|
|
59
|
+
version: z.ZodString;
|
|
60
|
+
release_date: z.ZodString;
|
|
61
|
+
is_latest: z.ZodBoolean;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
transports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
61
64
|
sse: "sse";
|
|
62
65
|
"streamable-http": "streamable-http";
|
|
63
66
|
}>>>;
|
|
64
|
-
events_capability:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
events_capability: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
tasks_capability: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
total_count: z.ZodNumber;
|
|
71
|
+
next: z.ZodNullable<z.ZodString>;
|
|
72
|
+
}, z.core.$strip>> | undefined;
|
|
69
73
|
} & {
|
|
70
74
|
readonly _mastraSchemaRoute: true;
|
|
71
75
|
};
|
|
@@ -93,39 +97,41 @@ export declare const GET_MCP_SERVER_DETAIL_ROUTE: Omit<import("@mastra/core/serv
|
|
|
93
97
|
remotes?: unknown[] | undefined;
|
|
94
98
|
transports?: ("sse" | "streamable-http")[] | undefined;
|
|
95
99
|
events_capability?: boolean | undefined;
|
|
100
|
+
tasks_capability?: boolean | undefined;
|
|
96
101
|
}>;
|
|
97
|
-
pathParamSchema?:
|
|
98
|
-
queryParamSchema?:
|
|
99
|
-
bodySchema?:
|
|
100
|
-
responseSchema?:
|
|
102
|
+
pathParamSchema?: z.ZodSchema;
|
|
103
|
+
queryParamSchema?: z.ZodSchema;
|
|
104
|
+
bodySchema?: z.ZodSchema;
|
|
105
|
+
responseSchema?: z.ZodSchema;
|
|
101
106
|
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
102
107
|
maxBodySize?: number;
|
|
103
108
|
deprecated?: boolean;
|
|
104
109
|
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
105
110
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
106
111
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
107
|
-
readonly __schemas?: import("../server-adapter").RouteSchemas<
|
|
108
|
-
id:
|
|
109
|
-
},
|
|
110
|
-
version:
|
|
111
|
-
},
|
|
112
|
-
id:
|
|
113
|
-
name:
|
|
114
|
-
description:
|
|
115
|
-
version_detail:
|
|
116
|
-
version:
|
|
117
|
-
release_date:
|
|
118
|
-
is_latest:
|
|
119
|
-
},
|
|
120
|
-
package_canonical:
|
|
121
|
-
packages:
|
|
122
|
-
remotes:
|
|
123
|
-
transports:
|
|
112
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
113
|
+
id: z.ZodString;
|
|
114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
115
|
+
version: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
117
|
+
id: z.ZodString;
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
description: z.ZodOptional<z.ZodString>;
|
|
120
|
+
version_detail: z.ZodObject<{
|
|
121
|
+
version: z.ZodString;
|
|
122
|
+
release_date: z.ZodString;
|
|
123
|
+
is_latest: z.ZodBoolean;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
package_canonical: z.ZodOptional<z.ZodString>;
|
|
126
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
127
|
+
remotes: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
128
|
+
transports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
124
129
|
sse: "sse";
|
|
125
130
|
"streamable-http": "streamable-http";
|
|
126
131
|
}>>>;
|
|
127
|
-
events_capability:
|
|
128
|
-
|
|
132
|
+
events_capability: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
tasks_capability: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
}, z.core.$strip>> | undefined;
|
|
129
135
|
} & {
|
|
130
136
|
readonly _mastraSchemaRoute: true;
|
|
131
137
|
};
|
|
@@ -148,29 +154,29 @@ export declare const LIST_MCP_SERVER_TOOLS_ROUTE: Omit<import("@mastra/core/serv
|
|
|
148
154
|
_meta?: Record<string, unknown> | undefined;
|
|
149
155
|
}[];
|
|
150
156
|
}>;
|
|
151
|
-
pathParamSchema?:
|
|
152
|
-
queryParamSchema?:
|
|
153
|
-
bodySchema?:
|
|
154
|
-
responseSchema?:
|
|
157
|
+
pathParamSchema?: z.ZodSchema;
|
|
158
|
+
queryParamSchema?: z.ZodSchema;
|
|
159
|
+
bodySchema?: z.ZodSchema;
|
|
160
|
+
responseSchema?: z.ZodSchema;
|
|
155
161
|
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
156
162
|
maxBodySize?: number;
|
|
157
163
|
deprecated?: boolean;
|
|
158
164
|
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
159
165
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
160
166
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
161
|
-
readonly __schemas?: import("../server-adapter").RouteSchemas<
|
|
162
|
-
serverId:
|
|
163
|
-
},
|
|
164
|
-
tools:
|
|
165
|
-
id:
|
|
166
|
-
name:
|
|
167
|
-
description:
|
|
168
|
-
inputSchema:
|
|
169
|
-
outputSchema:
|
|
170
|
-
toolType:
|
|
171
|
-
_meta:
|
|
172
|
-
},
|
|
173
|
-
},
|
|
167
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
168
|
+
serverId: z.ZodString;
|
|
169
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
170
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
171
|
+
id: z.ZodOptional<z.ZodString>;
|
|
172
|
+
name: z.ZodString;
|
|
173
|
+
description: z.ZodOptional<z.ZodString>;
|
|
174
|
+
inputSchema: z.ZodUnknown;
|
|
175
|
+
outputSchema: z.ZodOptional<z.ZodUnknown>;
|
|
176
|
+
toolType: z.ZodOptional<z.ZodString>;
|
|
177
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
178
|
+
}, z.core.$strip>>;
|
|
179
|
+
}, z.core.$strip>> | undefined;
|
|
174
180
|
} & {
|
|
175
181
|
readonly _mastraSchemaRoute: true;
|
|
176
182
|
};
|
|
@@ -192,28 +198,28 @@ export declare const GET_MCP_SERVER_TOOL_DETAIL_ROUTE: Omit<import("@mastra/core
|
|
|
192
198
|
toolType?: string | undefined;
|
|
193
199
|
_meta?: Record<string, unknown> | undefined;
|
|
194
200
|
}>;
|
|
195
|
-
pathParamSchema?:
|
|
196
|
-
queryParamSchema?:
|
|
197
|
-
bodySchema?:
|
|
198
|
-
responseSchema?:
|
|
201
|
+
pathParamSchema?: z.ZodSchema;
|
|
202
|
+
queryParamSchema?: z.ZodSchema;
|
|
203
|
+
bodySchema?: z.ZodSchema;
|
|
204
|
+
responseSchema?: z.ZodSchema;
|
|
199
205
|
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
200
206
|
maxBodySize?: number;
|
|
201
207
|
deprecated?: boolean;
|
|
202
208
|
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
203
209
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
204
210
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
205
|
-
readonly __schemas?: import("../server-adapter").RouteSchemas<
|
|
206
|
-
serverId:
|
|
207
|
-
toolId:
|
|
208
|
-
},
|
|
209
|
-
id:
|
|
210
|
-
name:
|
|
211
|
-
description:
|
|
212
|
-
inputSchema:
|
|
213
|
-
outputSchema:
|
|
214
|
-
toolType:
|
|
215
|
-
_meta:
|
|
216
|
-
},
|
|
211
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
212
|
+
serverId: z.ZodString;
|
|
213
|
+
toolId: z.ZodString;
|
|
214
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
215
|
+
id: z.ZodOptional<z.ZodString>;
|
|
216
|
+
name: z.ZodString;
|
|
217
|
+
description: z.ZodOptional<z.ZodString>;
|
|
218
|
+
inputSchema: z.ZodUnknown;
|
|
219
|
+
outputSchema: z.ZodOptional<z.ZodUnknown>;
|
|
220
|
+
toolType: z.ZodOptional<z.ZodString>;
|
|
221
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
222
|
+
}, z.core.$strip>> | undefined;
|
|
217
223
|
} & {
|
|
218
224
|
readonly _mastraSchemaRoute: true;
|
|
219
225
|
};
|
|
@@ -237,30 +243,30 @@ export declare const EXECUTE_MCP_SERVER_TOOL_ROUTE: Omit<import("@mastra/core/se
|
|
|
237
243
|
suspendPayload: unknown;
|
|
238
244
|
resumeSchema?: unknown;
|
|
239
245
|
}>;
|
|
240
|
-
pathParamSchema?:
|
|
241
|
-
queryParamSchema?:
|
|
242
|
-
bodySchema?:
|
|
243
|
-
responseSchema?:
|
|
246
|
+
pathParamSchema?: z.ZodSchema;
|
|
247
|
+
queryParamSchema?: z.ZodSchema;
|
|
248
|
+
bodySchema?: z.ZodSchema;
|
|
249
|
+
responseSchema?: z.ZodSchema;
|
|
244
250
|
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
245
251
|
maxBodySize?: number;
|
|
246
252
|
deprecated?: boolean;
|
|
247
253
|
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
248
254
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
249
255
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
250
|
-
readonly __schemas?: import("../server-adapter").RouteSchemas<
|
|
251
|
-
serverId:
|
|
252
|
-
toolId:
|
|
253
|
-
},
|
|
254
|
-
data:
|
|
255
|
-
resumeData:
|
|
256
|
-
suspendPayload:
|
|
257
|
-
},
|
|
258
|
-
result:
|
|
259
|
-
},
|
|
260
|
-
status:
|
|
261
|
-
suspendPayload:
|
|
262
|
-
resumeSchema:
|
|
263
|
-
},
|
|
256
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
257
|
+
serverId: z.ZodString;
|
|
258
|
+
toolId: z.ZodString;
|
|
259
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
260
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
261
|
+
resumeData: z.ZodOptional<z.ZodUnknown>;
|
|
262
|
+
suspendPayload: z.ZodOptional<z.ZodUnknown>;
|
|
263
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
264
|
+
result: z.ZodUnknown;
|
|
265
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
266
|
+
status: z.ZodLiteral<"suspended">;
|
|
267
|
+
suspendPayload: z.ZodUnknown;
|
|
268
|
+
resumeSchema: z.ZodOptional<z.ZodUnknown>;
|
|
269
|
+
}, z.core.$strip>]>> | undefined;
|
|
264
270
|
} & {
|
|
265
271
|
readonly _mastraSchemaRoute: true;
|
|
266
272
|
};
|
|
@@ -281,27 +287,27 @@ export declare const LIST_MCP_SERVER_RESOURCES_ROUTE: Omit<import("@mastra/core/
|
|
|
281
287
|
_meta?: Record<string, unknown> | undefined;
|
|
282
288
|
}[];
|
|
283
289
|
}>;
|
|
284
|
-
pathParamSchema?:
|
|
285
|
-
queryParamSchema?:
|
|
286
|
-
bodySchema?:
|
|
287
|
-
responseSchema?:
|
|
290
|
+
pathParamSchema?: z.ZodSchema;
|
|
291
|
+
queryParamSchema?: z.ZodSchema;
|
|
292
|
+
bodySchema?: z.ZodSchema;
|
|
293
|
+
responseSchema?: z.ZodSchema;
|
|
288
294
|
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
289
295
|
maxBodySize?: number;
|
|
290
296
|
deprecated?: boolean;
|
|
291
297
|
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
292
298
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
293
299
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
294
|
-
readonly __schemas?: import("../server-adapter").RouteSchemas<
|
|
295
|
-
serverId:
|
|
296
|
-
},
|
|
297
|
-
resources:
|
|
298
|
-
uri:
|
|
299
|
-
name:
|
|
300
|
-
description:
|
|
301
|
-
mimeType:
|
|
302
|
-
_meta:
|
|
303
|
-
},
|
|
304
|
-
},
|
|
300
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
301
|
+
serverId: z.ZodString;
|
|
302
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
303
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
304
|
+
uri: z.ZodString;
|
|
305
|
+
name: z.ZodString;
|
|
306
|
+
description: z.ZodOptional<z.ZodString>;
|
|
307
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
308
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
309
|
+
}, z.core.$strip>>;
|
|
310
|
+
}, z.core.$strip>> | undefined;
|
|
305
311
|
} & {
|
|
306
312
|
readonly _mastraSchemaRoute: true;
|
|
307
313
|
};
|
|
@@ -324,29 +330,29 @@ export declare const READ_MCP_SERVER_RESOURCE_ROUTE: Omit<import("@mastra/core/s
|
|
|
324
330
|
_meta?: Record<string, unknown> | undefined;
|
|
325
331
|
}[];
|
|
326
332
|
}>;
|
|
327
|
-
pathParamSchema?:
|
|
328
|
-
queryParamSchema?:
|
|
329
|
-
bodySchema?:
|
|
330
|
-
responseSchema?:
|
|
333
|
+
pathParamSchema?: z.ZodSchema;
|
|
334
|
+
queryParamSchema?: z.ZodSchema;
|
|
335
|
+
bodySchema?: z.ZodSchema;
|
|
336
|
+
responseSchema?: z.ZodSchema;
|
|
331
337
|
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
332
338
|
maxBodySize?: number;
|
|
333
339
|
deprecated?: boolean;
|
|
334
340
|
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
335
341
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
336
342
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
337
|
-
readonly __schemas?: import("../server-adapter").RouteSchemas<
|
|
338
|
-
serverId:
|
|
339
|
-
},
|
|
340
|
-
uri:
|
|
341
|
-
},
|
|
342
|
-
contents:
|
|
343
|
-
uri:
|
|
344
|
-
text:
|
|
345
|
-
blob:
|
|
346
|
-
mimeType:
|
|
347
|
-
_meta:
|
|
348
|
-
},
|
|
349
|
-
},
|
|
343
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
344
|
+
serverId: z.ZodString;
|
|
345
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
346
|
+
uri: z.ZodString;
|
|
347
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
348
|
+
contents: z.ZodArray<z.ZodObject<{
|
|
349
|
+
uri: z.ZodString;
|
|
350
|
+
text: z.ZodOptional<z.ZodString>;
|
|
351
|
+
blob: z.ZodOptional<z.ZodString>;
|
|
352
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
353
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
354
|
+
}, z.core.$strip>>;
|
|
355
|
+
}, z.core.$strip>> | undefined;
|
|
350
356
|
} & {
|
|
351
357
|
readonly _mastraSchemaRoute: true;
|
|
352
358
|
};
|
|
@@ -369,33 +375,33 @@ export declare const LIST_MCP_SERVER_EVENTS_ROUTE: Omit<import("@mastra/core/ser
|
|
|
369
375
|
}[];
|
|
370
376
|
testEmit: boolean;
|
|
371
377
|
}>;
|
|
372
|
-
pathParamSchema?:
|
|
373
|
-
queryParamSchema?:
|
|
374
|
-
bodySchema?:
|
|
375
|
-
responseSchema?:
|
|
378
|
+
pathParamSchema?: z.ZodSchema;
|
|
379
|
+
queryParamSchema?: z.ZodSchema;
|
|
380
|
+
bodySchema?: z.ZodSchema;
|
|
381
|
+
responseSchema?: z.ZodSchema;
|
|
376
382
|
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
377
383
|
maxBodySize?: number;
|
|
378
384
|
deprecated?: boolean;
|
|
379
385
|
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
380
386
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
381
387
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
382
|
-
readonly __schemas?: import("../server-adapter").RouteSchemas<
|
|
383
|
-
serverId:
|
|
384
|
-
},
|
|
385
|
-
events:
|
|
386
|
-
name:
|
|
387
|
-
description:
|
|
388
|
-
delivery:
|
|
388
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
389
|
+
serverId: z.ZodString;
|
|
390
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
391
|
+
events: z.ZodArray<z.ZodObject<{
|
|
392
|
+
name: z.ZodString;
|
|
393
|
+
description: z.ZodOptional<z.ZodString>;
|
|
394
|
+
delivery: z.ZodArray<z.ZodEnum<{
|
|
389
395
|
poll: "poll";
|
|
390
396
|
push: "push";
|
|
391
397
|
webhook: "webhook";
|
|
392
398
|
}>>;
|
|
393
|
-
inputSchema:
|
|
394
|
-
payloadSchema:
|
|
395
|
-
emittable:
|
|
396
|
-
},
|
|
397
|
-
testEmit:
|
|
398
|
-
},
|
|
399
|
+
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
400
|
+
payloadSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
401
|
+
emittable: z.ZodBoolean;
|
|
402
|
+
}, z.core.$strip>>;
|
|
403
|
+
testEmit: z.ZodBoolean;
|
|
404
|
+
}, z.core.$strip>> | undefined;
|
|
399
405
|
} & {
|
|
400
406
|
readonly _mastraSchemaRoute: true;
|
|
401
407
|
};
|
|
@@ -426,37 +432,37 @@ export declare const POLL_MCP_SERVER_EVENT_ROUTE: Omit<import("@mastra/core/serv
|
|
|
426
432
|
truncated?: boolean | undefined;
|
|
427
433
|
nextPollMs?: number | undefined;
|
|
428
434
|
}>;
|
|
429
|
-
pathParamSchema?:
|
|
430
|
-
queryParamSchema?:
|
|
431
|
-
bodySchema?:
|
|
432
|
-
responseSchema?:
|
|
435
|
+
pathParamSchema?: z.ZodSchema;
|
|
436
|
+
queryParamSchema?: z.ZodSchema;
|
|
437
|
+
bodySchema?: z.ZodSchema;
|
|
438
|
+
responseSchema?: z.ZodSchema;
|
|
433
439
|
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
434
440
|
maxBodySize?: number;
|
|
435
441
|
deprecated?: boolean;
|
|
436
442
|
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
437
443
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
438
444
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
439
|
-
readonly __schemas?: import("../server-adapter").RouteSchemas<
|
|
440
|
-
serverId:
|
|
441
|
-
eventName:
|
|
442
|
-
},
|
|
443
|
-
arguments:
|
|
444
|
-
cursor:
|
|
445
|
-
maxEvents:
|
|
446
|
-
},
|
|
447
|
-
events:
|
|
448
|
-
eventId:
|
|
449
|
-
name:
|
|
450
|
-
timestamp:
|
|
451
|
-
data:
|
|
452
|
-
cursor:
|
|
453
|
-
_meta:
|
|
454
|
-
},
|
|
455
|
-
cursor:
|
|
456
|
-
hasMore:
|
|
457
|
-
truncated:
|
|
458
|
-
nextPollMs:
|
|
459
|
-
},
|
|
445
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
446
|
+
serverId: z.ZodString;
|
|
447
|
+
eventName: z.ZodString;
|
|
448
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
449
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
450
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
451
|
+
maxEvents: z.ZodOptional<z.ZodNumber>;
|
|
452
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
453
|
+
events: z.ZodArray<z.ZodObject<{
|
|
454
|
+
eventId: z.ZodString;
|
|
455
|
+
name: z.ZodString;
|
|
456
|
+
timestamp: z.ZodString;
|
|
457
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
458
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
459
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
460
|
+
}, z.core.$strip>>;
|
|
461
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
462
|
+
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
463
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
464
|
+
nextPollMs: z.ZodOptional<z.ZodNumber>;
|
|
465
|
+
}, z.core.$strip>> | undefined;
|
|
460
466
|
} & {
|
|
461
467
|
readonly _mastraSchemaRoute: true;
|
|
462
468
|
};
|
|
@@ -473,45 +479,45 @@ export declare const STREAM_MCP_SERVER_EVENT_ROUTE: Omit<import("@mastra/core/se
|
|
|
473
479
|
arguments?: Record<string, unknown> | undefined;
|
|
474
480
|
cursor?: string | null | undefined;
|
|
475
481
|
} & ServerContext): Promise<import("../server-adapter/routes/stream-types").MastraStreamReturn>;
|
|
476
|
-
pathParamSchema?:
|
|
477
|
-
queryParamSchema?:
|
|
478
|
-
bodySchema?:
|
|
479
|
-
responseSchema?:
|
|
482
|
+
pathParamSchema?: z.ZodSchema;
|
|
483
|
+
queryParamSchema?: z.ZodSchema;
|
|
484
|
+
bodySchema?: z.ZodSchema;
|
|
485
|
+
responseSchema?: z.ZodSchema;
|
|
480
486
|
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
481
487
|
maxBodySize?: number;
|
|
482
488
|
deprecated?: boolean;
|
|
483
489
|
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
484
490
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
485
491
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
486
|
-
readonly __schemas?: import("../server-adapter").RouteSchemas<
|
|
487
|
-
serverId:
|
|
488
|
-
eventName:
|
|
489
|
-
},
|
|
490
|
-
arguments:
|
|
491
|
-
cursor:
|
|
492
|
-
},
|
|
493
|
-
type:
|
|
494
|
-
cursor:
|
|
495
|
-
truncated:
|
|
496
|
-
},
|
|
497
|
-
type:
|
|
498
|
-
occurrence:
|
|
499
|
-
eventId:
|
|
500
|
-
name:
|
|
501
|
-
timestamp:
|
|
502
|
-
data:
|
|
503
|
-
cursor:
|
|
504
|
-
_meta:
|
|
505
|
-
},
|
|
506
|
-
},
|
|
507
|
-
type:
|
|
508
|
-
cursor:
|
|
509
|
-
},
|
|
510
|
-
type:
|
|
511
|
-
message:
|
|
512
|
-
},
|
|
513
|
-
type:
|
|
514
|
-
},
|
|
492
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
493
|
+
serverId: z.ZodString;
|
|
494
|
+
eventName: z.ZodString;
|
|
495
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
496
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
497
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
498
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
499
|
+
type: z.ZodLiteral<"active">;
|
|
500
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
501
|
+
truncated: z.ZodBoolean;
|
|
502
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
503
|
+
type: z.ZodLiteral<"event">;
|
|
504
|
+
occurrence: z.ZodObject<{
|
|
505
|
+
eventId: z.ZodString;
|
|
506
|
+
name: z.ZodString;
|
|
507
|
+
timestamp: z.ZodString;
|
|
508
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
509
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
510
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
511
|
+
}, z.core.$strip>;
|
|
512
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
513
|
+
type: z.ZodLiteral<"heartbeat">;
|
|
514
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
515
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
516
|
+
type: z.ZodLiteral<"error">;
|
|
517
|
+
message: z.ZodString;
|
|
518
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
519
|
+
type: z.ZodLiteral<"terminated">;
|
|
520
|
+
}, z.core.$strip>], "type">> | undefined;
|
|
515
521
|
} & {
|
|
516
522
|
readonly _mastraSchemaRoute: true;
|
|
517
523
|
};
|
|
@@ -536,31 +542,287 @@ export declare const EMIT_MCP_SERVER_EVENT_ROUTE: Omit<import("@mastra/core/serv
|
|
|
536
542
|
_meta?: Record<string, unknown> | undefined;
|
|
537
543
|
};
|
|
538
544
|
}>;
|
|
539
|
-
pathParamSchema?:
|
|
540
|
-
queryParamSchema?:
|
|
541
|
-
bodySchema?:
|
|
542
|
-
responseSchema?:
|
|
545
|
+
pathParamSchema?: z.ZodSchema;
|
|
546
|
+
queryParamSchema?: z.ZodSchema;
|
|
547
|
+
bodySchema?: z.ZodSchema;
|
|
548
|
+
responseSchema?: z.ZodSchema;
|
|
543
549
|
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
544
550
|
maxBodySize?: number;
|
|
545
551
|
deprecated?: boolean;
|
|
546
552
|
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
547
553
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
548
554
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
549
|
-
readonly __schemas?: import("../server-adapter").RouteSchemas<
|
|
550
|
-
serverId:
|
|
551
|
-
eventName:
|
|
552
|
-
},
|
|
553
|
-
data:
|
|
554
|
-
},
|
|
555
|
-
occurrence:
|
|
556
|
-
eventId:
|
|
557
|
-
name:
|
|
558
|
-
timestamp:
|
|
559
|
-
data:
|
|
560
|
-
cursor:
|
|
561
|
-
_meta:
|
|
562
|
-
},
|
|
563
|
-
},
|
|
555
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
556
|
+
serverId: z.ZodString;
|
|
557
|
+
eventName: z.ZodString;
|
|
558
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
559
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
560
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
561
|
+
occurrence: z.ZodObject<{
|
|
562
|
+
eventId: z.ZodString;
|
|
563
|
+
name: z.ZodString;
|
|
564
|
+
timestamp: z.ZodString;
|
|
565
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
566
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
567
|
+
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
568
|
+
}, z.core.$strip>;
|
|
569
|
+
}, z.core.$strip>> | undefined;
|
|
570
|
+
} & {
|
|
571
|
+
readonly _mastraSchemaRoute: true;
|
|
572
|
+
};
|
|
573
|
+
export declare const LIST_MCP_SERVER_TASKS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
574
|
+
method: "GET";
|
|
575
|
+
path: "/mcp/:serverId/tasks";
|
|
576
|
+
responseType: "json";
|
|
577
|
+
streamFormat?: 'sse' | 'stream';
|
|
578
|
+
sseFlushOnConnect?: boolean;
|
|
579
|
+
handler(params: {
|
|
580
|
+
serverId: string;
|
|
581
|
+
} & {
|
|
582
|
+
limit?: number | undefined;
|
|
583
|
+
cursor?: string | undefined;
|
|
584
|
+
status?: "cancelled" | "completed" | "failed" | "input_required" | "working" | undefined;
|
|
585
|
+
surface?: string | undefined;
|
|
586
|
+
client?: string | undefined;
|
|
587
|
+
key?: string | undefined;
|
|
588
|
+
} & ServerContext): Promise<{
|
|
589
|
+
surfaces: {
|
|
590
|
+
name: string;
|
|
591
|
+
type: "agent" | "tool" | "workflow";
|
|
592
|
+
mode: "always" | "auto";
|
|
593
|
+
recover: boolean;
|
|
594
|
+
required: boolean;
|
|
595
|
+
ttlMs: number | null;
|
|
596
|
+
}[];
|
|
597
|
+
unavailable?: "not_listable" | "resource_scoped" | undefined;
|
|
598
|
+
tasks: {
|
|
599
|
+
taskKey: string;
|
|
600
|
+
surface: string;
|
|
601
|
+
status: "cancelled" | "completed" | "failed" | "input_required" | "working";
|
|
602
|
+
statusMessage?: string | undefined;
|
|
603
|
+
createdAt: string;
|
|
604
|
+
lastUpdatedAt: string;
|
|
605
|
+
expiresAt?: string | undefined;
|
|
606
|
+
principalKey: string;
|
|
607
|
+
clientLabel?: string | undefined;
|
|
608
|
+
inputRequests?: Record<string, {
|
|
609
|
+
[x: string]: unknown;
|
|
610
|
+
method: string;
|
|
611
|
+
params?: Record<string, unknown> | undefined;
|
|
612
|
+
}> | undefined;
|
|
613
|
+
result?: Record<string, unknown> | undefined;
|
|
614
|
+
error?: Record<string, unknown> | undefined;
|
|
615
|
+
}[];
|
|
616
|
+
nextCursor?: string | undefined;
|
|
617
|
+
}>;
|
|
618
|
+
pathParamSchema?: z.ZodSchema;
|
|
619
|
+
queryParamSchema?: z.ZodSchema;
|
|
620
|
+
bodySchema?: z.ZodSchema;
|
|
621
|
+
responseSchema?: z.ZodSchema;
|
|
622
|
+
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
623
|
+
maxBodySize?: number;
|
|
624
|
+
deprecated?: boolean;
|
|
625
|
+
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
626
|
+
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
627
|
+
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
628
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
629
|
+
serverId: z.ZodString;
|
|
630
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
631
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
632
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
633
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
634
|
+
cancelled: "cancelled";
|
|
635
|
+
completed: "completed";
|
|
636
|
+
failed: "failed";
|
|
637
|
+
input_required: "input_required";
|
|
638
|
+
working: "working";
|
|
639
|
+
}>>;
|
|
640
|
+
surface: z.ZodOptional<z.ZodString>;
|
|
641
|
+
client: z.ZodOptional<z.ZodString>;
|
|
642
|
+
key: z.ZodOptional<z.ZodString>;
|
|
643
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
644
|
+
surfaces: z.ZodArray<z.ZodObject<{
|
|
645
|
+
name: z.ZodString;
|
|
646
|
+
type: z.ZodEnum<{
|
|
647
|
+
agent: "agent";
|
|
648
|
+
tool: "tool";
|
|
649
|
+
workflow: "workflow";
|
|
650
|
+
}>;
|
|
651
|
+
mode: z.ZodEnum<{
|
|
652
|
+
always: "always";
|
|
653
|
+
auto: "auto";
|
|
654
|
+
}>;
|
|
655
|
+
recover: z.ZodBoolean;
|
|
656
|
+
required: z.ZodBoolean;
|
|
657
|
+
ttlMs: z.ZodNullable<z.ZodNumber>;
|
|
658
|
+
}, z.core.$strip>>;
|
|
659
|
+
unavailable: z.ZodOptional<z.ZodEnum<{
|
|
660
|
+
not_listable: "not_listable";
|
|
661
|
+
resource_scoped: "resource_scoped";
|
|
662
|
+
}>>;
|
|
663
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
664
|
+
taskKey: z.ZodString;
|
|
665
|
+
surface: z.ZodString;
|
|
666
|
+
status: z.ZodEnum<{
|
|
667
|
+
cancelled: "cancelled";
|
|
668
|
+
completed: "completed";
|
|
669
|
+
failed: "failed";
|
|
670
|
+
input_required: "input_required";
|
|
671
|
+
working: "working";
|
|
672
|
+
}>;
|
|
673
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
674
|
+
createdAt: z.ZodString;
|
|
675
|
+
lastUpdatedAt: z.ZodString;
|
|
676
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
677
|
+
principalKey: z.ZodString;
|
|
678
|
+
clientLabel: z.ZodOptional<z.ZodString>;
|
|
679
|
+
inputRequests: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
680
|
+
method: z.ZodString;
|
|
681
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
682
|
+
}, z.core.$loose>>>;
|
|
683
|
+
result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
684
|
+
error: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
685
|
+
}, z.core.$strip>>;
|
|
686
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
687
|
+
}, z.core.$strip>> | undefined;
|
|
688
|
+
} & {
|
|
689
|
+
readonly _mastraSchemaRoute: true;
|
|
690
|
+
};
|
|
691
|
+
export declare const FIND_MCP_SERVER_TASK_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
692
|
+
method: "POST";
|
|
693
|
+
path: "/mcp/:serverId/tasks/find";
|
|
694
|
+
responseType: "json";
|
|
695
|
+
streamFormat?: 'sse' | 'stream';
|
|
696
|
+
sseFlushOnConnect?: boolean;
|
|
697
|
+
handler(params: {
|
|
698
|
+
serverId: string;
|
|
699
|
+
} & {
|
|
700
|
+
taskId: string;
|
|
701
|
+
} & ServerContext): Promise<{
|
|
702
|
+
task: {
|
|
703
|
+
taskKey: string;
|
|
704
|
+
surface: string;
|
|
705
|
+
status: "cancelled" | "completed" | "failed" | "input_required" | "working";
|
|
706
|
+
statusMessage?: string | undefined;
|
|
707
|
+
createdAt: string;
|
|
708
|
+
lastUpdatedAt: string;
|
|
709
|
+
expiresAt?: string | undefined;
|
|
710
|
+
principalKey: string;
|
|
711
|
+
clientLabel?: string | undefined;
|
|
712
|
+
inputRequests?: Record<string, {
|
|
713
|
+
[x: string]: unknown;
|
|
714
|
+
method: string;
|
|
715
|
+
params?: Record<string, unknown> | undefined;
|
|
716
|
+
}> | undefined;
|
|
717
|
+
result?: Record<string, unknown> | undefined;
|
|
718
|
+
error?: Record<string, unknown> | undefined;
|
|
719
|
+
};
|
|
720
|
+
}>;
|
|
721
|
+
pathParamSchema?: z.ZodSchema;
|
|
722
|
+
queryParamSchema?: z.ZodSchema;
|
|
723
|
+
bodySchema?: z.ZodSchema;
|
|
724
|
+
responseSchema?: z.ZodSchema;
|
|
725
|
+
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
726
|
+
maxBodySize?: number;
|
|
727
|
+
deprecated?: boolean;
|
|
728
|
+
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
729
|
+
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
730
|
+
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
731
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
732
|
+
serverId: z.ZodString;
|
|
733
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
734
|
+
taskId: z.ZodString;
|
|
735
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
736
|
+
task: z.ZodObject<{
|
|
737
|
+
taskKey: z.ZodString;
|
|
738
|
+
surface: z.ZodString;
|
|
739
|
+
status: z.ZodEnum<{
|
|
740
|
+
cancelled: "cancelled";
|
|
741
|
+
completed: "completed";
|
|
742
|
+
failed: "failed";
|
|
743
|
+
input_required: "input_required";
|
|
744
|
+
working: "working";
|
|
745
|
+
}>;
|
|
746
|
+
statusMessage: z.ZodOptional<z.ZodString>;
|
|
747
|
+
createdAt: z.ZodString;
|
|
748
|
+
lastUpdatedAt: z.ZodString;
|
|
749
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
750
|
+
principalKey: z.ZodString;
|
|
751
|
+
clientLabel: z.ZodOptional<z.ZodString>;
|
|
752
|
+
inputRequests: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
753
|
+
method: z.ZodString;
|
|
754
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
755
|
+
}, z.core.$loose>>>;
|
|
756
|
+
result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
757
|
+
error: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
758
|
+
}, z.core.$strip>;
|
|
759
|
+
}, z.core.$strip>> | undefined;
|
|
760
|
+
} & {
|
|
761
|
+
readonly _mastraSchemaRoute: true;
|
|
762
|
+
};
|
|
763
|
+
export declare const CANCEL_MCP_SERVER_TASK_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
764
|
+
method: "POST";
|
|
765
|
+
path: "/mcp/:serverId/tasks/:taskKey/cancel";
|
|
766
|
+
responseType: "json";
|
|
767
|
+
streamFormat?: 'sse' | 'stream';
|
|
768
|
+
sseFlushOnConnect?: boolean;
|
|
769
|
+
handler(params: {
|
|
770
|
+
serverId: string;
|
|
771
|
+
taskKey: string;
|
|
772
|
+
} & ServerContext): Promise<{
|
|
773
|
+
success: true;
|
|
774
|
+
}>;
|
|
775
|
+
pathParamSchema?: z.ZodSchema;
|
|
776
|
+
queryParamSchema?: z.ZodSchema;
|
|
777
|
+
bodySchema?: z.ZodSchema;
|
|
778
|
+
responseSchema?: z.ZodSchema;
|
|
779
|
+
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
780
|
+
maxBodySize?: number;
|
|
781
|
+
deprecated?: boolean;
|
|
782
|
+
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
783
|
+
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
784
|
+
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
785
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
786
|
+
serverId: z.ZodString;
|
|
787
|
+
taskKey: z.ZodString;
|
|
788
|
+
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
789
|
+
success: z.ZodLiteral<true>;
|
|
790
|
+
}, z.core.$strip>> | undefined;
|
|
791
|
+
} & {
|
|
792
|
+
readonly _mastraSchemaRoute: true;
|
|
793
|
+
};
|
|
794
|
+
export declare const ANSWER_MCP_SERVER_TASK_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
795
|
+
method: "POST";
|
|
796
|
+
path: "/mcp/:serverId/tasks/:taskKey/input";
|
|
797
|
+
responseType: "json";
|
|
798
|
+
streamFormat?: 'sse' | 'stream';
|
|
799
|
+
sseFlushOnConnect?: boolean;
|
|
800
|
+
handler(params: {
|
|
801
|
+
serverId: string;
|
|
802
|
+
taskKey: string;
|
|
803
|
+
} & {
|
|
804
|
+
inputResponses: Record<string, Record<string, unknown>>;
|
|
805
|
+
} & ServerContext): Promise<{
|
|
806
|
+
success: true;
|
|
807
|
+
}>;
|
|
808
|
+
pathParamSchema?: z.ZodSchema;
|
|
809
|
+
queryParamSchema?: z.ZodSchema;
|
|
810
|
+
bodySchema?: z.ZodSchema;
|
|
811
|
+
responseSchema?: z.ZodSchema;
|
|
812
|
+
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
813
|
+
maxBodySize?: number;
|
|
814
|
+
deprecated?: boolean;
|
|
815
|
+
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
816
|
+
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
817
|
+
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
818
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
819
|
+
serverId: z.ZodString;
|
|
820
|
+
taskKey: z.ZodString;
|
|
821
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
822
|
+
inputResponses: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
823
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
824
|
+
success: z.ZodLiteral<true>;
|
|
825
|
+
}, z.core.$strip>> | undefined;
|
|
564
826
|
} & {
|
|
565
827
|
readonly _mastraSchemaRoute: true;
|
|
566
828
|
};
|
|
@@ -618,19 +880,19 @@ export declare const MCP_HTTP_TRANSPORT_ROUTE: Omit<import("@mastra/core/server"
|
|
|
618
880
|
handler(params: {
|
|
619
881
|
serverId: string;
|
|
620
882
|
} & ServerContext): Promise<unknown>;
|
|
621
|
-
pathParamSchema?:
|
|
622
|
-
queryParamSchema?:
|
|
623
|
-
bodySchema?:
|
|
624
|
-
responseSchema?:
|
|
883
|
+
pathParamSchema?: z.ZodSchema;
|
|
884
|
+
queryParamSchema?: z.ZodSchema;
|
|
885
|
+
bodySchema?: z.ZodSchema;
|
|
886
|
+
responseSchema?: z.ZodSchema;
|
|
625
887
|
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
626
888
|
maxBodySize?: number;
|
|
627
889
|
deprecated?: boolean;
|
|
628
890
|
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
629
891
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
630
892
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
631
|
-
readonly __schemas?: import("../server-adapter").RouteSchemas<
|
|
632
|
-
serverId:
|
|
633
|
-
},
|
|
893
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
894
|
+
serverId: z.ZodString;
|
|
895
|
+
}, z.core.$strip>, undefined, undefined, undefined> | undefined;
|
|
634
896
|
} & {
|
|
635
897
|
readonly _mastraSchemaRoute: true;
|
|
636
898
|
};
|
|
@@ -643,19 +905,19 @@ export declare const MCP_SSE_TRANSPORT_ROUTE: Omit<import("@mastra/core/server")
|
|
|
643
905
|
handler(params: {
|
|
644
906
|
serverId: string;
|
|
645
907
|
} & ServerContext): Promise<unknown>;
|
|
646
|
-
pathParamSchema?:
|
|
647
|
-
queryParamSchema?:
|
|
648
|
-
bodySchema?:
|
|
649
|
-
responseSchema?:
|
|
908
|
+
pathParamSchema?: z.ZodSchema;
|
|
909
|
+
queryParamSchema?: z.ZodSchema;
|
|
910
|
+
bodySchema?: z.ZodSchema;
|
|
911
|
+
responseSchema?: z.ZodSchema;
|
|
650
912
|
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
651
913
|
maxBodySize?: number;
|
|
652
914
|
deprecated?: boolean;
|
|
653
915
|
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
654
916
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
655
917
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
656
|
-
readonly __schemas?: import("../server-adapter").RouteSchemas<
|
|
657
|
-
serverId:
|
|
658
|
-
},
|
|
918
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
919
|
+
serverId: z.ZodString;
|
|
920
|
+
}, z.core.$strip>, undefined, undefined, undefined> | undefined;
|
|
659
921
|
} & {
|
|
660
922
|
readonly _mastraSchemaRoute: true;
|
|
661
923
|
};
|
|
@@ -668,19 +930,19 @@ export declare const MCP_SSE_MESSAGES_ROUTE: Omit<import("@mastra/core/server").
|
|
|
668
930
|
handler(params: {
|
|
669
931
|
serverId: string;
|
|
670
932
|
} & ServerContext): Promise<unknown>;
|
|
671
|
-
pathParamSchema?:
|
|
672
|
-
queryParamSchema?:
|
|
673
|
-
bodySchema?:
|
|
674
|
-
responseSchema?:
|
|
933
|
+
pathParamSchema?: z.ZodSchema;
|
|
934
|
+
queryParamSchema?: z.ZodSchema;
|
|
935
|
+
bodySchema?: z.ZodSchema;
|
|
936
|
+
responseSchema?: z.ZodSchema;
|
|
675
937
|
openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
|
|
676
938
|
maxBodySize?: number;
|
|
677
939
|
deprecated?: boolean;
|
|
678
940
|
requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
|
|
679
941
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
680
942
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
681
|
-
readonly __schemas?: import("../server-adapter").RouteSchemas<
|
|
682
|
-
serverId:
|
|
683
|
-
},
|
|
943
|
+
readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
|
|
944
|
+
serverId: z.ZodString;
|
|
945
|
+
}, z.core.$strip>, undefined, undefined, undefined> | undefined;
|
|
684
946
|
} & {
|
|
685
947
|
readonly _mastraSchemaRoute: true;
|
|
686
948
|
};
|