@mastra/server 1.63.2 → 1.63.3-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/_types/@internal_core/dist/storage/index.d.ts +401 -401
  3. package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v3.d.ts +5 -5
  4. package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v4.d.ts +5 -5
  5. package/dist/_types/@mastra_schema-compat/dist/standard-schema/standard-schema.d.ts +1 -1
  6. package/dist/docs/SKILL.md +8 -8
  7. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  8. package/dist/server/a2a/push-notification-sender.d.ts.map +1 -1
  9. package/dist/server/a2a/push-notification-store.d.ts.map +1 -1
  10. package/dist/server/a2a/store.d.ts.map +1 -1
  11. package/dist/server/auth/helpers.d.ts +1 -1
  12. package/dist/server/auth/helpers.d.ts.map +1 -1
  13. package/dist/server/browser-stream/viewer-registry.d.ts.map +1 -1
  14. package/dist/server/constants.d.ts +1 -1
  15. package/dist/server/constants.d.ts.map +1 -1
  16. package/dist/server/handlers/a2a.d.ts +60 -60
  17. package/dist/server/handlers/a2a.d.ts.map +1 -1
  18. package/dist/server/handlers/agent-builder.d.ts +110 -110
  19. package/dist/server/handlers/agent-controller.cjs +10 -4
  20. package/dist/server/handlers/agent-controller.cjs.map +1 -1
  21. package/dist/server/handlers/agent-controller.d.ts +110 -110
  22. package/dist/server/handlers/agent-controller.d.ts.map +1 -1
  23. package/dist/server/handlers/agent-controller.js +10 -4
  24. package/dist/server/handlers/agent-controller.js.map +1 -1
  25. package/dist/server/handlers/agent-versions.d.ts +5267 -5259
  26. package/dist/server/handlers/agent-versions.d.ts.map +1 -1
  27. package/dist/server/handlers/agents.d.ts +4355 -4355
  28. package/dist/server/handlers/agents.d.ts.map +1 -1
  29. package/dist/server/handlers/auth.d.ts +52 -52
  30. package/dist/server/handlers/background-tasks.d.ts +37 -37
  31. package/dist/server/handlers/builder-registry.d.ts +12 -12
  32. package/dist/server/handlers/channels.d.ts +10 -10
  33. package/dist/server/handlers/conversations.d.ts +13 -13
  34. package/dist/server/handlers/datasets.d.ts +396 -396
  35. package/dist/server/handlers/dynamic-workflows.d.ts +36 -36
  36. package/dist/server/handlers/editor-builder.d.ts +13 -13
  37. package/dist/server/handlers/gateway-memory-client.d.ts +4 -4
  38. package/dist/server/handlers/gateway-memory-client.d.ts.map +1 -1
  39. package/dist/server/handlers/logs.d.ts +40 -40
  40. package/dist/server/handlers/mcp-client-versions.d.ts +32 -32
  41. package/dist/server/handlers/mcp.d.ts +23 -23
  42. package/dist/server/handlers/memory.d.ts +138 -138
  43. package/dist/server/handlers/observability-list-query-schemas.d.ts +1 -1
  44. package/dist/server/handlers/observability-new-endpoints.d.ts +859 -859
  45. package/dist/server/handlers/observability-shared.d.ts +126 -126
  46. package/dist/server/handlers/observability-shared.d.ts.map +1 -1
  47. package/dist/server/handlers/observability.d.ts +17 -17
  48. package/dist/server/handlers/plans.d.ts +3 -3
  49. package/dist/server/handlers/processor-providers.d.ts +9 -9
  50. package/dist/server/handlers/processors.d.ts +31 -31
  51. package/dist/server/handlers/prompt-block-versions.d.ts +176 -176
  52. package/dist/server/handlers/responses.adapter.d.ts +3 -3
  53. package/dist/server/handlers/responses.adapter.d.ts.map +1 -1
  54. package/dist/server/handlers/responses.d.ts +17 -17
  55. package/dist/server/handlers/schedules.d.ts +242 -242
  56. package/dist/server/handlers/scorer-versions.d.ts +39 -39
  57. package/dist/server/handlers/scores.d.ts +20 -20
  58. package/dist/server/handlers/stored-agent-favorites.d.ts +4 -4
  59. package/dist/server/handlers/stored-agents.d.ts +5992 -5984
  60. package/dist/server/handlers/stored-agents.d.ts.map +1 -1
  61. package/dist/server/handlers/stored-mcp-clients.d.ts +46 -46
  62. package/dist/server/handlers/stored-prompt-blocks.d.ts +193 -193
  63. package/dist/server/handlers/stored-scorers.d.ts +56 -56
  64. package/dist/server/handlers/stored-skill-favorites.d.ts +4 -4
  65. package/dist/server/handlers/stored-skills.d.ts +70 -70
  66. package/dist/server/handlers/stored-workspaces.d.ts +36 -36
  67. package/dist/server/handlers/system.d.ts +19 -19
  68. package/dist/server/handlers/tool-providers.d.ts +49 -49
  69. package/dist/server/handlers/tools.d.ts +10 -10
  70. package/dist/server/handlers/vector.d.ts +18 -18
  71. package/dist/server/handlers/version-helpers.d.ts +1 -1
  72. package/dist/server/handlers/version-helpers.d.ts.map +1 -1
  73. package/dist/server/handlers/workflows.d.ts +167 -167
  74. package/dist/server/handlers/workspace.d.ts +370 -370
  75. package/dist/server/http-exception.d.ts.map +1 -1
  76. package/dist/server/schemas/a2a.d.ts +18 -18
  77. package/dist/server/schemas/agent-versions.d.ts +3948 -3948
  78. package/dist/server/schemas/agents.d.ts +172 -172
  79. package/dist/server/schemas/agents.d.ts.map +1 -1
  80. package/dist/server/schemas/auth.d.ts +5 -5
  81. package/dist/server/schemas/background-tasks.d.ts +22 -22
  82. package/dist/server/schemas/builder-registry.d.ts +1 -1
  83. package/dist/server/schemas/channels.d.ts +1 -1
  84. package/dist/server/schemas/common.d.ts +5 -5
  85. package/dist/server/schemas/common.d.ts.map +1 -1
  86. package/dist/server/schemas/conversations.d.ts +2 -2
  87. package/dist/server/schemas/datasets.d.ts +98 -98
  88. package/dist/server/schemas/dynamic-workflows.d.ts +7 -7
  89. package/dist/server/schemas/logs.d.ts +8 -8
  90. package/dist/server/schemas/mcp-client-versions.d.ts +2 -2
  91. package/dist/server/schemas/memory-config.d.ts +5 -5
  92. package/dist/server/schemas/memory.d.ts +20 -20
  93. package/dist/server/schemas/processor-providers.d.ts +2 -2
  94. package/dist/server/schemas/processors.d.ts +13 -13
  95. package/dist/server/schemas/prompt-block-versions.d.ts +149 -149
  96. package/dist/server/schemas/responses.d.ts +11 -11
  97. package/dist/server/schemas/rule-group.d.ts +28 -28
  98. package/dist/server/schemas/schedules.d.ts +120 -120
  99. package/dist/server/schemas/scorer-versions.d.ts +9 -9
  100. package/dist/server/schemas/scores.d.ts +2 -2
  101. package/dist/server/schemas/stored-agents.d.ts +9052 -9052
  102. package/dist/server/schemas/stored-mcp-clients.d.ts +9 -9
  103. package/dist/server/schemas/stored-prompt-blocks.d.ts +156 -156
  104. package/dist/server/schemas/stored-scorers.d.ts +16 -16
  105. package/dist/server/schemas/stored-skills.d.ts +22 -22
  106. package/dist/server/schemas/stored-workspaces.d.ts +6 -6
  107. package/dist/server/schemas/system.d.ts +12 -12
  108. package/dist/server/schemas/tool-providers.d.ts +20 -20
  109. package/dist/server/schemas/vectors.d.ts +1 -1
  110. package/dist/server/schemas/version-common.d.ts +2 -2
  111. package/dist/server/schemas/workflows.d.ts +57 -57
  112. package/dist/server/schemas/workspace.d.ts +17 -17
  113. package/dist/server/server-adapter/index.d.ts.map +1 -1
  114. package/dist/server/server-adapter/routes/a2a.d.ts +49 -49
  115. package/dist/server/server-adapter/routes/agent-builder.d.ts +110 -110
  116. package/dist/server/server-adapter/routes/channels.d.ts +10 -10
  117. package/dist/server/server-adapter/routes/conversations.d.ts +26 -26
  118. package/dist/server/server-adapter/routes/datasets.d.ts +394 -394
  119. package/dist/server/server-adapter/routes/editor-builder.d.ts +25 -25
  120. package/dist/server/server-adapter/routes/legacy.d.ts +157 -157
  121. package/dist/server/server-adapter/routes/logs.d.ts +40 -40
  122. package/dist/server/server-adapter/routes/mcp.d.ts +23 -23
  123. package/dist/server/server-adapter/routes/memory.d.ts +138 -138
  124. package/dist/server/server-adapter/routes/observability.d.ts +446 -446
  125. package/dist/server/server-adapter/routes/processor-providers.d.ts +9 -9
  126. package/dist/server/server-adapter/routes/processors.d.ts +31 -31
  127. package/dist/server/server-adapter/routes/responses.d.ts +17 -17
  128. package/dist/server/server-adapter/routes/scorers.d.ts +20 -20
  129. package/dist/server/server-adapter/routes/stored-mcp-clients.d.ts +78 -78
  130. package/dist/server/server-adapter/routes/stored-prompt-blocks.d.ts +369 -369
  131. package/dist/server/server-adapter/routes/stored-scorers.d.ts +95 -95
  132. package/dist/server/server-adapter/routes/stored-skills.d.ts +74 -74
  133. package/dist/server/server-adapter/routes/stored-workspaces.d.ts +36 -36
  134. package/dist/server/server-adapter/routes/system.d.ts +19 -19
  135. package/dist/server/server-adapter/routes/tool-providers.d.ts +49 -49
  136. package/dist/server/server-adapter/routes/tools.d.ts +6 -6
  137. package/dist/server/server-adapter/routes/vectors.d.ts +18 -18
  138. package/dist/server/server-adapter/routes/workflows.d.ts +163 -163
  139. package/dist/server/server-adapter/routes/workspace.d.ts +334 -334
  140. package/dist/server/utils.d.ts.map +1 -1
  141. package/package.json +8 -7
@@ -8,17 +8,17 @@ import type { ModelInformation } from './types.js';
8
8
  * All supported string validation check types that can be processed or converted to descriptions.
9
9
  * @constant
10
10
  */
11
- export declare const ALL_STRING_CHECKS: readonly ["regex", "emoji", "email", "url", "uuid", "cuid", "min", "max"];
11
+ export declare const ALL_STRING_CHECKS: readonly ['regex', 'emoji', 'email', 'url', 'uuid', 'cuid', 'min', 'max'];
12
12
  /**
13
13
  * All supported number validation check types that can be processed or converted to descriptions.
14
14
  * @constant
15
15
  */
16
- export declare const ALL_NUMBER_CHECKS: readonly ["min", "max", "multipleOf"];
16
+ export declare const ALL_NUMBER_CHECKS: readonly ['min', 'max', 'multipleOf'];
17
17
  /**
18
18
  * All supported array validation check types that can be processed or converted to descriptions.
19
19
  * @constant
20
20
  */
21
- export declare const ALL_ARRAY_CHECKS: readonly ["min", "max", "length"];
21
+ export declare const ALL_ARRAY_CHECKS: readonly ['min', 'max', 'length'];
22
22
  export declare const isOptional: (v: ZodTypeAny) => v is ZodOptional<any>;
23
23
  export declare const isObj: (v: ZodTypeAny) => v is ZodObject<any, any, any>;
24
24
  export declare const isNull: (v: ZodTypeAny) => v is ZodNull;
@@ -34,12 +34,12 @@ export declare const isIntersection: (v: ZodTypeAny) => v is ZodIntersection<any
34
34
  * Zod types that are not supported by most AI model providers and should be avoided.
35
35
  * @constant
36
36
  */
37
- export declare const UNSUPPORTED_ZOD_TYPES: readonly ["ZodIntersection", "ZodNever", "ZodNull", "ZodTuple", "ZodUndefined"];
37
+ export declare const UNSUPPORTED_ZOD_TYPES: readonly ['ZodIntersection', 'ZodNever', 'ZodNull', 'ZodTuple', 'ZodUndefined'];
38
38
  /**
39
39
  * Zod types that are generally supported by AI model providers.
40
40
  * @constant
41
41
  */
42
- export declare const SUPPORTED_ZOD_TYPES: readonly ["ZodObject", "ZodArray", "ZodUnion", "ZodString", "ZodNumber", "ZodDate", "ZodAny", "ZodDefault", "ZodNullable"];
42
+ export declare const SUPPORTED_ZOD_TYPES: readonly ['ZodObject', 'ZodArray', 'ZodUnion', 'ZodString', 'ZodNumber', 'ZodDate', 'ZodAny', 'ZodDefault', 'ZodNullable'];
43
43
  /**
44
44
  * All Zod types (both supported and unsupported).
45
45
  * @constant
@@ -8,27 +8,27 @@ import type { ModelInformation } from './types.js';
8
8
  * All supported string validation check types that can be processed or converted to descriptions.
9
9
  * @constant
10
10
  */
11
- export declare const ALL_STRING_CHECKS: readonly ["regex", "emoji", "email", "url", "uuid", "cuid", "min_length", "max_length", "string_format"];
11
+ export declare const ALL_STRING_CHECKS: readonly ['regex', 'emoji', 'email', 'url', 'uuid', 'cuid', 'min_length', 'max_length', 'string_format'];
12
12
  /**
13
13
  * All supported number validation check types that can be processed or converted to descriptions.
14
14
  * @constant
15
15
  */
16
- export declare const ALL_NUMBER_CHECKS: readonly ["greater_than", "less_than", "multiple_of"];
16
+ export declare const ALL_NUMBER_CHECKS: readonly ['greater_than', 'less_than', 'multiple_of'];
17
17
  /**
18
18
  * All supported array validation check types that can be processed or converted to descriptions.
19
19
  * @constant
20
20
  */
21
- export declare const ALL_ARRAY_CHECKS: readonly ["min", "max", "length"];
21
+ export declare const ALL_ARRAY_CHECKS: readonly ['min', 'max', 'length'];
22
22
  /**
23
23
  * Zod types that are not supported by most AI model providers and should be avoided.
24
24
  * @constant
25
25
  */
26
- export declare const UNSUPPORTED_ZOD_TYPES: readonly ["ZodIntersection", "ZodNever", "ZodNull", "ZodTuple", "ZodUndefined"];
26
+ export declare const UNSUPPORTED_ZOD_TYPES: readonly ['ZodIntersection', 'ZodNever', 'ZodNull', 'ZodTuple', 'ZodUndefined'];
27
27
  /**
28
28
  * Zod types that are generally supported by AI model providers.
29
29
  * @constant
30
30
  */
31
- export declare const SUPPORTED_ZOD_TYPES: readonly ["ZodObject", "ZodArray", "ZodUnion", "ZodString", "ZodNumber", "ZodDate", "ZodAny", "ZodDefault", "ZodNullable"];
31
+ export declare const SUPPORTED_ZOD_TYPES: readonly ['ZodObject', 'ZodArray', 'ZodUnion', 'ZodString', 'ZodNumber', 'ZodDate', 'ZodAny', 'ZodDefault', 'ZodNullable'];
32
32
  /**
33
33
  * All Zod types (both supported and unsupported).
34
34
  * @constant
@@ -18,7 +18,7 @@ declare function jsonSchemaOverride(ctx: {
18
18
  * - override: converts z.date() to { type: 'string', format: 'date-time' }
19
19
  */
20
20
  export declare const JSON_SCHEMA_LIBRARY_OPTIONS: {
21
- unrepresentable: "any";
21
+ unrepresentable: 'any';
22
22
  override: typeof jsonSchemaOverride;
23
23
  };
24
24
  export type { StandardSchemaWithJSON, StandardSchemaWithJSONProps, InferInput, InferOutput, StandardSchemaIssue, } from './standard-schema.types.js';
@@ -3,7 +3,7 @@ name: mastra-server
3
3
  description: Documentation for @mastra/server. Use when working with @mastra/server APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/server"
6
- version: "1.63.2"
6
+ version: "1.63.3-alpha.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -16,16 +16,16 @@ Read the individual reference documents for detailed explanations and code examp
16
16
 
17
17
  ### Docs
18
18
 
19
- - [A2A (Agent-to-Agent)](references/docs-connections-a2a.md) - Expose and call remote Mastra agents over the Agent-to-Agent protocol.
20
- - [Custom adapters](references/docs-server-custom-adapters.md) - Create a custom server adapter for frameworks other than Hono or Express.
21
- - [Custom API routes](references/docs-server-custom-api-routes.md) - Expose additional HTTP endpoints from your Mastra server.
22
- - [Middleware](references/docs-server-middleware.md) - Apply custom middleware functions to intercept requests.
19
+ - [A2A (Agent-to-Agent)](references/docs-connections-a2a.md) - Expose Mastra agents through the Agent-to-Agent protocol and consume remote A2A agents as subagents or call them directly with the client SDK.
20
+ - [Custom adapters](references/docs-server-custom-adapters.md) - Implement a custom Mastra server adapter for unsupported web frameworks by mapping routes, middleware, request parameters, responses, and streams.
21
+ - [Custom API routes](references/docs-server-custom-api-routes.md) - Add custom HTTP endpoints to a Mastra server with schema validation, middleware, authentication, OpenAPI documentation, and control over disconnect behavior.
22
+ - [Middleware](references/docs-server-middleware.md) - Add Mastra server middleware for authentication, authorization, CORS, request logging, route blocking, and request-specific context injection.
23
23
 
24
24
  ### Reference
25
25
 
26
- - [Reference: createRoute()](references/reference-server-create-route.md) - API reference for createRoute() function used to define type-safe routes with validation and OpenAPI generation.
27
- - [Reference: MastraServer](references/reference-server-mastra-server.md) - API reference for the MastraServer abstract class used to create server adapters.
28
- - [Reference: Server routes](references/reference-server-routes.md) - API reference for HTTP routes registered by Mastra server adapters.
26
+ - [Reference: createRoute()](references/reference-server-create-route.md) - Use createRoute() to define type-safe Mastra server routes with Zod validation for requests and responses, plus handler context and OpenAPI metadata.
27
+ - [Reference: MastraServer](references/reference-server-mastra-server.md) - The MastraServer abstract class is the base for all server adapters. Extend this class to create adapters for frameworks other than Hono or Express.
28
+ - [Reference: Server routes](references/reference-server-routes.md) - Server adapters register these routes when you call server.init(). All routes are prefixed with the prefix option if configured.
29
29
 
30
30
 
31
31
  Read [assets/SOURCE_MAP.json](assets/SOURCE_MAP.json) for source code references.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.63.2",
2
+ "version": "1.63.3-alpha.1",
3
3
  "package": "@mastra/server",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -1 +1 @@
1
- {"version":3,"file":"push-notification-sender.d.ts","sourceRoot":"","sources":["../../../src/server/a2a/push-notification-sender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAI5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAE/E,eAAO,MAAM,sCAAsC,6BAA6B,CAAC;AAqDjF,qBAAa,6BAA6B;IAEtC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,qBAAqB,EAAE,6BAA6B,EACpD,OAAO,GAAE;QACxB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;QACrB,MAAM,CAAC,EAAE,OAAO,aAAa,CAAC;QAC9B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;KACpB;IAGR,QAAQ;YAIM,2BAA2B;YAwC3B,gBAAgB;IAoExB,iBAAiB,CAAC,EACtB,OAAO,EACP,IAAI,EACJ,MAAM,GACP,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,IAAI,CAAC;QACX,MAAM,CAAC,EAAE,aAAa,CAAC;KACxB,GAAG,OAAO,CAAC,IAAI,CAAC;CA0DlB"}
1
+ {"version":3,"file":"push-notification-sender.d.ts","sourceRoot":"","sources":["../../../src/server/a2a/push-notification-sender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAI5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAE/E,eAAO,MAAM,sCAAsC,6BAA6B,CAAC;AAqDjF,qBAAa,6BAA6B;IAEtC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAF1B,YACmB,qBAAqB,EAAE,6BAA6B,EACpD,OAAO,GAAE;QACxB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;QACrB,MAAM,CAAC,EAAE,OAAO,aAAa,CAAC;QAC9B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;KACpB,EACJ;IAEJ,QAAQ,kCAEP;YAEa,2BAA2B;YAwC3B,gBAAgB;IAoExB,iBAAiB,CAAC,EACtB,OAAO,EACP,IAAI,EACJ,MAAM,GACP,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,IAAI,CAAC;QACX,MAAM,CAAC,EAAE,aAAa,CAAC;KACxB,GAAG,OAAO,CAAC,IAAI,CAAC,CAyDhB;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"push-notification-store.d.ts","sourceRoot":"","sources":["../../../src/server/a2a/push-notification-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sCAAsC,EACtC,mCAAmC,EACnC,oCAAoC,EACpC,0BAA0B,EAC3B,MAAM,kBAAkB,CAAC;AAM1B,qBAAa,6BAA6B;IACxC,OAAO,CAAC,KAAK,CAA8D;IAE3E,OAAO,CAAC,MAAM;IAId,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,0BAA0B,CAAA;KAAE,GAAG,0BAA0B;IAiB7G,GAAG,CAAC,EACF,OAAO,EACP,MAAM,GACP,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,mCAAmC,CAAC;KAC7C,GAAG,0BAA0B,GAAG,IAAI;IAOrC,IAAI,CAAC,EACH,OAAO,EACP,MAAM,GACP,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,oCAAoC,CAAC;KAC9C,GAAG,0BAA0B,EAAE;IAKhC,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,sCAAsC,CAAA;KAAE,GAAG,OAAO;CAe1G"}
1
+ {"version":3,"file":"push-notification-store.d.ts","sourceRoot":"","sources":["../../../src/server/a2a/push-notification-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sCAAsC,EACtC,mCAAmC,EACnC,oCAAoC,EACpC,0BAA0B,EAC3B,MAAM,kBAAkB,CAAC;AAM1B,qBAAa,6BAA6B;IACxC,OAAO,CAAC,KAAK,CAA8D;IAE3E,OAAO,CAAC,MAAM;IAId,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,0BAA0B,CAAA;KAAE,GAAG,0BAA0B,CAe5G;IAED,GAAG,CAAC,EACF,OAAO,EACP,MAAM,GACP,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,mCAAmC,CAAC;KAC7C,GAAG,0BAA0B,GAAG,IAAI,CAKpC;IAED,IAAI,CAAC,EACH,OAAO,EACP,MAAM,GACP,EAAE;QACD,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,oCAAoC,CAAC;KAC9C,GAAG,0BAA0B,EAAE,CAG/B;IAED,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,sCAAsC,CAAA;KAAE,GAAG,OAAO,CAcxG;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/server/a2a/store.ts"],"names":[],"mappings":"AAAA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;QACrB,MAAM,CAAC,EAAE,WAAW,CAAC;KACtB,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAqD3C;CACF"}
@@ -70,5 +70,5 @@ export declare function supportsSessionRefresh(authConfig: MastraAuthConfig | IM
70
70
  * Skip checks (dev playground, unprotected path, public path) are evaluated once.
71
71
  */
72
72
  export declare const coreAuthMiddleware: (ctx: AuthMiddlewareContext) => Promise<AuthResult>;
73
- export declare const checkRules: (rules: MastraAuthConfig["rules"], path: string, method: string, user: unknown) => Promise<boolean>;
73
+ export declare const checkRules: (rules: MastraAuthConfig['rules'], path: string, method: string, user: unknown) => Promise<boolean>;
74
74
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/server/auth/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAe9G,OAAO,EAAE,eAAe,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAEnG;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GACjC,MAAM,MAAM,EACZ,QAAQ,MAAM,EACd,wBAAwB,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,KAC3C,OAuCF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GAClC,MAAM,MAAM,EACZ,QAAQ,MAAM,EACd,YAAY,QAAQ,EAAE,KACrB;IAAE,KAAK,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,S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
+ {"version":3,"file":"viewer-registry.d.ts","sourceRoot":"","sources":["../../../src/server/browser-stream/viewer-registry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EAEnB,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAWpB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,cAAe,YAAW,kBAAkB;IACvD,4DAA4D;IAC5D,OAAO,CAAC,OAAO,CAAkD;IAEjE,iDAAiD;IACjD,OAAO,CAAC,WAAW,CAA2C;IAE9D,qFAAqF;IACrF,OAAO,CAAC,mBAAmB,CAAqB;IAEhD,qEAAqE;IACrE,OAAO,CAAC,oBAAoB,CAAiC;IAE7D,sEAAsE;IACtE,OAAO,CAAC,qBAAqB,CAAiC;IAE9D,mDAAmD;IACnD,OAAO,CAAC,QAAQ,CAA6B;IAE7C,8EAA8E;IAC9E,OAAO,CAAC,aAAa,CAAwD;IAE7E,4EAA4E;IAC5E,OAAO,CAAC,YAAY,CAA6B;IAEjD;;;;;;;;OAQG;IACG,SAAS,CACb,SAAS,EAAE,MAAM,EACjB,EAAE,EAAE,sBAAsB,EAC1B,UAAU,EAAE,mBAAmB,CAAC,YAAY,CAAC,EAC7C,OAAO,CAAC,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CAmBf;IAED;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAwBxB;;;;;OAKG;IACG,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4B/E;IAED;;;;;OAKG;IACH,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAcpD;IAED;;;;;OAKG;IACH,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,CAmB9D;IAED;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAmB7B;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IAsBlC;;;;;;;;OAQG;YACW,eAAe;IAuE7B;;;;;;OAMG;YACW,iBAAiB;IAkF/B;;OAEG;YACW,cAAc;IAe5B;;;;;OAKG;IACH,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEtC;IAED;;;;;OAKG;IACH,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE5C;IAED;;;;;;OAMG;IACG,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA4B1D;CACF"}
@@ -39,7 +39,7 @@ export declare const MASTRA_PUBLIC_HOST_HEADER = "x-mastra-public-host";
39
39
  export declare const MASTRA_STUDIO_CLIENT_TYPE = "studio";
40
40
  export declare function isReservedRequestContextKey(key: string): boolean;
41
41
  export declare function isStudioClientTypeHeader(value: string | undefined): boolean;
42
- export declare const WORKSPACE_TOOLS_PREFIX: "mastra_workspace";
42
+ export declare const WORKSPACE_TOOLS_PREFIX: 'mastra_workspace';
43
43
  export declare const WORKSPACE_TOOLS: {
44
44
  readonly FILESYSTEM: {
45
45
  readonly READ_FILE: "mastra_workspace_read_file";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/server/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,sBAAsB,uBAAuB,CAAC;AAE3D,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AAEvD,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAE9C,eAAO,MAAM,2BAA2B,4BAA4B,CAAC;AAErE,eAAO,MAAM,qBAAqB,sBAAsB,CAAC;AAEzD,eAAO,MAAM,qBAAqB,sBAAsB,CAAC;AAEzD,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,4BAA4B,CAAC;AAErE;;;;GAIG;A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MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GACvE,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,eAAe,EAAE,OAAO,CAAC;IAAC,sBAAsB,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAmC3F"}
@@ -106,32 +106,32 @@ export declare function handleMessageStream({ requestId, params, taskStore, push
106
106
  requestContext: RequestContext;
107
107
  abortSignal?: AbortSignal;
108
108
  }): AsyncGenerator<import("@mastra/core/a2a").JSONRPCResponse<Task, unknown> | import("@mastra/core/a2a").JSONRPCResponse<{
109
+ kind: 'artifact-update';
110
+ taskId: string;
111
+ contextId: string;
112
+ append?: boolean | undefined;
113
+ lastChunk?: boolean | undefined;
109
114
  artifact: {
110
115
  artifactId: string;
111
116
  name: string;
112
117
  parts: {
113
- kind: "text";
118
+ kind: 'text';
114
119
  text: string;
115
120
  }[];
116
121
  };
117
- lastChunk?: boolean | undefined;
118
- append?: boolean | undefined;
119
- kind: "artifact-update";
122
+ }, unknown> | import("@mastra/core/a2a").JSONRPCResponse<{
123
+ kind: 'artifact-update';
120
124
  taskId: string;
121
125
  contextId: string;
122
- }, unknown> | import("@mastra/core/a2a").JSONRPCResponse<{
126
+ lastChunk?: boolean | undefined;
123
127
  artifact: {
124
128
  artifactId: string;
125
129
  name: string;
126
130
  parts: {
127
- kind: "data";
131
+ kind: 'data';
128
132
  data: Record<string, unknown>;
129
133
  }[];
130
134
  };
131
- lastChunk?: boolean | undefined;
132
- kind: "artifact-update";
133
- taskId: string;
134
- contextId: string;
135
135
  }, unknown> | import("@mastra/core/a2a").JSONRPCResponse<{
136
136
  kind: string;
137
137
  taskId: string;
@@ -146,7 +146,7 @@ export declare function handleTaskResubscribe({ requestId, taskStore, agentId, t
146
146
  taskId: string;
147
147
  abortSignal?: AbortSignal;
148
148
  }): AsyncGenerator<import("@mastra/core/a2a").JSONRPCResponse<Task, unknown> | import("@mastra/core/a2a").JSONRPCResponse<{
149
- kind: "artifact-update";
149
+ kind: 'artifact-update';
150
150
  taskId: string;
151
151
  contextId: string;
152
152
  lastChunk: boolean;
@@ -181,19 +181,26 @@ export declare function getAgentExecutionHandler({ requestId, mastra, agentId, r
181
181
  }): Promise<any>;
182
182
  export type A2AProtocolVersion = '0.3' | '1.0';
183
183
  export declare function resolveA2AProtocolVersion(request?: Request): A2AProtocolVersion;
184
- export declare const GET_AGENT_CARD_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
184
+ export declare const GET_AGENT_CARD_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
185
185
  method: "GET";
186
186
  path: "/.well-known/:agentId/agent-card.json";
187
187
  responseType: "json";
188
- streamFormat?: "sse" | "stream";
188
+ streamFormat?: 'sse' | 'stream';
189
189
  sseFlushOnConnect?: boolean;
190
190
  handler(params: {
191
191
  agentId: string;
192
192
  } & import("../server-adapter").ServerContext): Promise<{
193
+ additionalInterfaces?: unknown[] | undefined;
193
194
  name: string;
194
195
  description: string;
195
196
  url: string;
196
197
  protocolVersion: string;
198
+ provider?: {
199
+ organization: string;
200
+ url: string;
201
+ } | undefined;
202
+ security?: Record<string, string[]>[] | undefined;
203
+ securitySchemes?: Record<string, unknown> | undefined;
197
204
  version: string;
198
205
  capabilities: {
199
206
  extensions?: unknown[] | undefined;
@@ -203,25 +210,18 @@ export declare const GET_AGENT_CARD_ROUTE: Omit<import("@mastra/core/server").Ap
203
210
  };
204
211
  defaultInputModes: string[];
205
212
  defaultOutputModes: string[];
206
- skills: {
207
- id: string;
208
- name: string;
209
- description: string;
210
- tags?: string[] | undefined;
211
- }[];
212
- additionalInterfaces?: unknown[] | undefined;
213
- provider?: {
214
- organization: string;
215
- url: string;
216
- } | undefined;
217
- security?: Record<string, string[]>[] | undefined;
218
- securitySchemes?: Record<string, unknown> | undefined;
219
213
  supportsAuthenticatedExtendedCard?: boolean | undefined;
220
214
  signatures?: {
221
215
  protected: string;
222
216
  signature: string;
223
217
  header?: Record<string, unknown> | undefined;
224
218
  }[] | undefined;
219
+ skills: {
220
+ id: string;
221
+ name: string;
222
+ description: string;
223
+ tags?: string[] | undefined;
224
+ }[];
225
225
  }>;
226
226
  pathParamSchema?: z.ZodType;
227
227
  queryParamSchema?: z.ZodType;
@@ -272,25 +272,27 @@ export declare const GET_AGENT_CARD_ROUTE: Omit<import("@mastra/core/server").Ap
272
272
  } & {
273
273
  readonly _mastraSchemaRoute: true;
274
274
  };
275
- export declare const AGENT_EXECUTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
275
+ export declare const AGENT_EXECUTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
276
276
  method: "POST";
277
277
  path: "/a2a/:agentId";
278
278
  responseType: "datastream-response";
279
- streamFormat?: "sse" | "stream";
279
+ streamFormat?: 'sse' | 'stream';
280
280
  sseFlushOnConnect?: boolean;
281
281
  handler(params: import("../server-adapter").InferParams<z.ZodObject<{
282
282
  agentId: z.ZodString;
283
283
  }, z.core.$strip>, undefined, z.ZodDiscriminatedUnion<[z.ZodObject<{
284
+ jsonrpc: z.ZodLiteral<"2.0">;
285
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
284
286
  method: z.ZodLiteral<"message/send">;
285
287
  params: z.ZodObject<{
286
288
  message: z.ZodObject<{
287
289
  kind: z.ZodOptional<z.ZodLiteral<"message">>;
288
290
  messageId: z.ZodString;
289
291
  role: z.ZodEnum<{
292
+ ROLE_AGENT: "ROLE_AGENT";
293
+ ROLE_USER: "ROLE_USER";
290
294
  agent: "agent";
291
295
  user: "user";
292
- ROLE_USER: "ROLE_USER";
293
- ROLE_AGENT: "ROLE_AGENT";
294
296
  }>;
295
297
  parts: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
296
298
  kind: z.ZodLiteral<"text">;
@@ -353,19 +355,19 @@ export declare const AGENT_EXECUTION_ROUTE: Omit<import("@mastra/core/server").A
353
355
  }, z.core.$strip>>;
354
356
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
355
357
  }, z.core.$strip>;
358
+ }, z.core.$strip>, z.ZodObject<{
356
359
  jsonrpc: z.ZodLiteral<"2.0">;
357
360
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
358
- }, z.core.$strip>, z.ZodObject<{
359
361
  method: z.ZodLiteral<"message/stream">;
360
362
  params: z.ZodObject<{
361
363
  message: z.ZodObject<{
362
364
  kind: z.ZodOptional<z.ZodLiteral<"message">>;
363
365
  messageId: z.ZodString;
364
366
  role: z.ZodEnum<{
367
+ ROLE_AGENT: "ROLE_AGENT";
368
+ ROLE_USER: "ROLE_USER";
365
369
  agent: "agent";
366
370
  user: "user";
367
- ROLE_USER: "ROLE_USER";
368
- ROLE_AGENT: "ROLE_AGENT";
369
371
  }>;
370
372
  parts: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
371
373
  kind: z.ZodLiteral<"text">;
@@ -428,18 +430,18 @@ export declare const AGENT_EXECUTION_ROUTE: Omit<import("@mastra/core/server").A
428
430
  }, z.core.$strip>>;
429
431
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
430
432
  }, z.core.$strip>;
433
+ }, z.core.$strip>, z.ZodObject<{
431
434
  jsonrpc: z.ZodLiteral<"2.0">;
432
435
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
433
- }, z.core.$strip>, z.ZodObject<{
434
436
  method: z.ZodLiteral<"tasks/get">;
435
437
  params: z.ZodObject<{
436
438
  id: z.ZodString;
437
439
  historyLength: z.ZodOptional<z.ZodNumber>;
438
440
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
439
441
  }, z.core.$strip>;
442
+ }, z.core.$strip>, z.ZodObject<{
440
443
  jsonrpc: z.ZodLiteral<"2.0">;
441
444
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
442
- }, z.core.$strip>, z.ZodObject<{
443
445
  method: z.ZodLiteral<"tasks/list">;
444
446
  params: z.ZodObject<{
445
447
  tenant: z.ZodOptional<z.ZodString>;
@@ -451,25 +453,25 @@ export declare const AGENT_EXECUTION_ROUTE: Omit<import("@mastra/core/server").A
451
453
  statusTimestampAfter: z.ZodOptional<z.ZodString>;
452
454
  includeArtifacts: z.ZodOptional<z.ZodBoolean>;
453
455
  }, z.core.$strip>;
456
+ }, z.core.$strip>, z.ZodObject<{
454
457
  jsonrpc: z.ZodLiteral<"2.0">;
455
458
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
456
- }, z.core.$strip>, z.ZodObject<{
457
459
  method: z.ZodLiteral<"tasks/cancel">;
458
460
  params: z.ZodObject<{
459
461
  id: z.ZodString;
460
462
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
461
463
  }, z.core.$strip>;
464
+ }, z.core.$strip>, z.ZodObject<{
462
465
  jsonrpc: z.ZodLiteral<"2.0">;
463
466
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
464
- }, z.core.$strip>, z.ZodObject<{
465
467
  method: z.ZodLiteral<"tasks/resubscribe">;
466
468
  params: z.ZodObject<{
467
469
  id: z.ZodString;
468
470
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
469
471
  }, z.core.$strip>;
472
+ }, z.core.$strip>, z.ZodObject<{
470
473
  jsonrpc: z.ZodLiteral<"2.0">;
471
474
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
472
- }, z.core.$strip>, z.ZodObject<{
473
475
  method: z.ZodLiteral<"tasks/pushNotificationConfig/set">;
474
476
  params: z.ZodObject<{
475
477
  taskId: z.ZodString;
@@ -483,38 +485,36 @@ export declare const AGENT_EXECUTION_ROUTE: Omit<import("@mastra/core/server").A
483
485
  }, z.core.$strip>>;
484
486
  }, z.core.$strip>;
485
487
  }, z.core.$strip>;
488
+ }, z.core.$strip>, z.ZodObject<{
486
489
  jsonrpc: z.ZodLiteral<"2.0">;
487
490
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
488
- }, z.core.$strip>, z.ZodObject<{
489
491
  method: z.ZodLiteral<"tasks/pushNotificationConfig/get">;
490
492
  params: z.ZodObject<{
491
493
  id: z.ZodString;
492
494
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
493
495
  pushNotificationConfigId: z.ZodOptional<z.ZodString>;
494
496
  }, z.core.$strip>;
497
+ }, z.core.$strip>, z.ZodObject<{
495
498
  jsonrpc: z.ZodLiteral<"2.0">;
496
499
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
497
- }, z.core.$strip>, z.ZodObject<{
498
500
  method: z.ZodLiteral<"tasks/pushNotificationConfig/list">;
499
501
  params: z.ZodObject<{
500
502
  id: z.ZodString;
501
503
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
502
504
  }, z.core.$strip>;
505
+ }, z.core.$strip>, z.ZodObject<{
503
506
  jsonrpc: z.ZodLiteral<"2.0">;
504
507
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
505
- }, z.core.$strip>, z.ZodObject<{
506
508
  method: z.ZodLiteral<"tasks/pushNotificationConfig/delete">;
507
509
  params: z.ZodObject<{
508
510
  id: z.ZodString;
509
511
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
510
512
  pushNotificationConfigId: z.ZodString;
511
513
  }, z.core.$strip>;
512
- jsonrpc: z.ZodLiteral<"2.0">;
513
- id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
514
514
  }, z.core.$strip>, z.ZodObject<{
515
- method: z.ZodLiteral<"agent/getAuthenticatedExtendedCard">;
516
515
  jsonrpc: z.ZodLiteral<"2.0">;
517
516
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
517
+ method: z.ZodLiteral<"agent/getAuthenticatedExtendedCard">;
518
518
  }, z.core.$strip>], "method">> & import("../server-adapter").ServerContext): Promise<Response>;
519
519
  pathParamSchema?: z.ZodType;
520
520
  queryParamSchema?: z.ZodType;
@@ -529,16 +529,18 @@ export declare const AGENT_EXECUTION_ROUTE: Omit<import("@mastra/core/server").A
529
529
  readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
530
530
  agentId: z.ZodString;
531
531
  }, z.core.$strip>, undefined, z.ZodDiscriminatedUnion<[z.ZodObject<{
532
+ jsonrpc: z.ZodLiteral<"2.0">;
533
+ id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
532
534
  method: z.ZodLiteral<"message/send">;
533
535
  params: z.ZodObject<{
534
536
  message: z.ZodObject<{
535
537
  kind: z.ZodOptional<z.ZodLiteral<"message">>;
536
538
  messageId: z.ZodString;
537
539
  role: z.ZodEnum<{
540
+ ROLE_AGENT: "ROLE_AGENT";
541
+ ROLE_USER: "ROLE_USER";
538
542
  agent: "agent";
539
543
  user: "user";
540
- ROLE_USER: "ROLE_USER";
541
- ROLE_AGENT: "ROLE_AGENT";
542
544
  }>;
543
545
  parts: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
544
546
  kind: z.ZodLiteral<"text">;
@@ -601,19 +603,19 @@ export declare const AGENT_EXECUTION_ROUTE: Omit<import("@mastra/core/server").A
601
603
  }, z.core.$strip>>;
602
604
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
603
605
  }, z.core.$strip>;
606
+ }, z.core.$strip>, z.ZodObject<{
604
607
  jsonrpc: z.ZodLiteral<"2.0">;
605
608
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
606
- }, z.core.$strip>, z.ZodObject<{
607
609
  method: z.ZodLiteral<"message/stream">;
608
610
  params: z.ZodObject<{
609
611
  message: z.ZodObject<{
610
612
  kind: z.ZodOptional<z.ZodLiteral<"message">>;
611
613
  messageId: z.ZodString;
612
614
  role: z.ZodEnum<{
615
+ ROLE_AGENT: "ROLE_AGENT";
616
+ ROLE_USER: "ROLE_USER";
613
617
  agent: "agent";
614
618
  user: "user";
615
- ROLE_USER: "ROLE_USER";
616
- ROLE_AGENT: "ROLE_AGENT";
617
619
  }>;
618
620
  parts: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
619
621
  kind: z.ZodLiteral<"text">;
@@ -676,18 +678,18 @@ export declare const AGENT_EXECUTION_ROUTE: Omit<import("@mastra/core/server").A
676
678
  }, z.core.$strip>>;
677
679
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
678
680
  }, z.core.$strip>;
681
+ }, z.core.$strip>, z.ZodObject<{
679
682
  jsonrpc: z.ZodLiteral<"2.0">;
680
683
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
681
- }, z.core.$strip>, z.ZodObject<{
682
684
  method: z.ZodLiteral<"tasks/get">;
683
685
  params: z.ZodObject<{
684
686
  id: z.ZodString;
685
687
  historyLength: z.ZodOptional<z.ZodNumber>;
686
688
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
687
689
  }, z.core.$strip>;
690
+ }, z.core.$strip>, z.ZodObject<{
688
691
  jsonrpc: z.ZodLiteral<"2.0">;
689
692
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
690
- }, z.core.$strip>, z.ZodObject<{
691
693
  method: z.ZodLiteral<"tasks/list">;
692
694
  params: z.ZodObject<{
693
695
  tenant: z.ZodOptional<z.ZodString>;
@@ -699,25 +701,25 @@ export declare const AGENT_EXECUTION_ROUTE: Omit<import("@mastra/core/server").A
699
701
  statusTimestampAfter: z.ZodOptional<z.ZodString>;
700
702
  includeArtifacts: z.ZodOptional<z.ZodBoolean>;
701
703
  }, z.core.$strip>;
704
+ }, z.core.$strip>, z.ZodObject<{
702
705
  jsonrpc: z.ZodLiteral<"2.0">;
703
706
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
704
- }, z.core.$strip>, z.ZodObject<{
705
707
  method: z.ZodLiteral<"tasks/cancel">;
706
708
  params: z.ZodObject<{
707
709
  id: z.ZodString;
708
710
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
709
711
  }, z.core.$strip>;
712
+ }, z.core.$strip>, z.ZodObject<{
710
713
  jsonrpc: z.ZodLiteral<"2.0">;
711
714
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
712
- }, z.core.$strip>, z.ZodObject<{
713
715
  method: z.ZodLiteral<"tasks/resubscribe">;
714
716
  params: z.ZodObject<{
715
717
  id: z.ZodString;
716
718
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
717
719
  }, z.core.$strip>;
720
+ }, z.core.$strip>, z.ZodObject<{
718
721
  jsonrpc: z.ZodLiteral<"2.0">;
719
722
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
720
- }, z.core.$strip>, z.ZodObject<{
721
723
  method: z.ZodLiteral<"tasks/pushNotificationConfig/set">;
722
724
  params: z.ZodObject<{
723
725
  taskId: z.ZodString;
@@ -731,38 +733,36 @@ export declare const AGENT_EXECUTION_ROUTE: Omit<import("@mastra/core/server").A
731
733
  }, z.core.$strip>>;
732
734
  }, z.core.$strip>;
733
735
  }, z.core.$strip>;
736
+ }, z.core.$strip>, z.ZodObject<{
734
737
  jsonrpc: z.ZodLiteral<"2.0">;
735
738
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
736
- }, z.core.$strip>, z.ZodObject<{
737
739
  method: z.ZodLiteral<"tasks/pushNotificationConfig/get">;
738
740
  params: z.ZodObject<{
739
741
  id: z.ZodString;
740
742
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
741
743
  pushNotificationConfigId: z.ZodOptional<z.ZodString>;
742
744
  }, z.core.$strip>;
745
+ }, z.core.$strip>, z.ZodObject<{
743
746
  jsonrpc: z.ZodLiteral<"2.0">;
744
747
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
745
- }, z.core.$strip>, z.ZodObject<{
746
748
  method: z.ZodLiteral<"tasks/pushNotificationConfig/list">;
747
749
  params: z.ZodObject<{
748
750
  id: z.ZodString;
749
751
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
750
752
  }, z.core.$strip>;
753
+ }, z.core.$strip>, z.ZodObject<{
751
754
  jsonrpc: z.ZodLiteral<"2.0">;
752
755
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
753
- }, z.core.$strip>, z.ZodObject<{
754
756
  method: z.ZodLiteral<"tasks/pushNotificationConfig/delete">;
755
757
  params: z.ZodObject<{
756
758
  id: z.ZodString;
757
759
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
758
760
  pushNotificationConfigId: z.ZodString;
759
761
  }, z.core.$strip>;
760
- jsonrpc: z.ZodLiteral<"2.0">;
761
- id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
762
762
  }, z.core.$strip>, z.ZodObject<{
763
- method: z.ZodLiteral<"agent/getAuthenticatedExtendedCard">;
764
763
  jsonrpc: z.ZodLiteral<"2.0">;
765
764
  id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
765
+ method: z.ZodLiteral<"agent/getAuthenticatedExtendedCard">;
766
766
  }, z.core.$strip>], "method">, z.ZodUnknown> | undefined;
767
767
  } & {
768
768
  readonly _mastraSchemaRoute: true;