@mastra/server 1.65.0-alpha.1 → 1.65.0-alpha.10

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 (169) hide show
  1. package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts +14 -1
  2. package/dist/{a2a-C7OgMND3.cjs → a2a-CW4FVjHx.cjs} +72 -21
  3. package/dist/a2a-CW4FVjHx.cjs.map +1 -0
  4. package/dist/{a2a-DdCHhKh5.js → a2a-Di7S6YaM.js} +72 -21
  5. package/dist/a2a-Di7S6YaM.js.map +1 -0
  6. package/dist/{agents-BetrUB_N.js → agents-AMeMJBI1.js} +2 -7
  7. package/dist/agents-AMeMJBI1.js.map +1 -0
  8. package/dist/{agents-CLv_RFQx.cjs → agents-C3k-sZBO.cjs} +2 -7
  9. package/dist/agents-C3k-sZBO.cjs.map +1 -0
  10. package/dist/{api-schema-manifest-CenKfsu1.js → api-schema-manifest-BHT0tcvI.js} +2 -2
  11. package/dist/{api-schema-manifest-CenKfsu1.js.map → api-schema-manifest-BHT0tcvI.js.map} +1 -1
  12. package/dist/{api-schema-manifest-BxLfDBP-.cjs → api-schema-manifest-Dk_mN3ub.cjs} +2 -2
  13. package/dist/{api-schema-manifest-BxLfDBP-.cjs.map → api-schema-manifest-Dk_mN3ub.cjs.map} +1 -1
  14. package/dist/{datasets-B3DTc52y.cjs → datasets-C63D44YJ.cjs} +2 -1
  15. package/dist/datasets-C63D44YJ.cjs.map +1 -0
  16. package/dist/{datasets-dzuIwMeB.js → datasets-DFPCu6ID.js} +2 -1
  17. package/dist/{datasets-dzuIwMeB.js.map → datasets-DFPCu6ID.js.map} +1 -1
  18. package/dist/{dist-C8lAYOI6.cjs → dist-BLP1i9vT.cjs} +28 -7
  19. package/dist/dist-BLP1i9vT.cjs.map +1 -0
  20. package/dist/{dist-BW8S4tCf.js → dist-BLvSboHt.js} +28 -7
  21. package/dist/dist-BLvSboHt.js.map +1 -0
  22. package/dist/docs/SKILL.md +2 -1
  23. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  24. package/dist/docs/references/reference-observability-tracing-trace-query.md +179 -0
  25. package/dist/{editor-builder-BDEm-gZe.js → editor-builder-BmEpZsqX.js} +2 -2
  26. package/dist/{editor-builder-BDEm-gZe.js.map → editor-builder-BmEpZsqX.js.map} +1 -1
  27. package/dist/{editor-builder-B-KatZ10.cjs → editor-builder-DeFo8Kl5.cjs} +2 -2
  28. package/dist/{editor-builder-B-KatZ10.cjs.map → editor-builder-DeFo8Kl5.cjs.map} +1 -1
  29. package/dist/{editor-builder-c7QiLUV9.js → editor-builder-DzpPA6dp.js} +2 -2
  30. package/dist/{editor-builder-c7QiLUV9.js.map → editor-builder-DzpPA6dp.js.map} +1 -1
  31. package/dist/{editor-builder-DNRVszU-.cjs → editor-builder-WLxTW05v.cjs} +2 -2
  32. package/dist/{editor-builder-DNRVszU-.cjs.map → editor-builder-WLxTW05v.cjs.map} +1 -1
  33. package/dist/{observability-new-endpoints-BxXDVoQ0.cjs → observability-new-endpoints-DF85EOQS.cjs} +178 -15
  34. package/dist/observability-new-endpoints-DF85EOQS.cjs.map +1 -0
  35. package/dist/{observability-new-endpoints-C_om-Dj7.js → observability-new-endpoints-Zm5VNGIa.js} +174 -19
  36. package/dist/observability-new-endpoints-Zm5VNGIa.js.map +1 -0
  37. package/dist/{routes-wp2lb2LI.cjs → routes-BqrG1FfY.cjs} +6 -4
  38. package/dist/routes-BqrG1FfY.cjs.map +1 -0
  39. package/dist/{routes-bRlxNTKn.js → routes-CxuspiM8.js} +7 -5
  40. package/dist/routes-CxuspiM8.js.map +1 -0
  41. package/dist/server/a2a/tasks.d.ts +13 -1
  42. package/dist/server/a2a/tasks.d.ts.map +1 -1
  43. package/dist/server/handlers/a2a.cjs +1 -1
  44. package/dist/server/handlers/a2a.d.ts.map +1 -1
  45. package/dist/server/handlers/a2a.js +1 -1
  46. package/dist/server/handlers/agent-builder.cjs +2 -2
  47. package/dist/server/handlers/agent-builder.js +2 -2
  48. package/dist/server/handlers/agents.cjs +102 -41
  49. package/dist/server/handlers/agents.cjs.map +1 -1
  50. package/dist/server/handlers/agents.d.ts +55 -55
  51. package/dist/server/handlers/agents.d.ts.map +1 -1
  52. package/dist/server/handlers/agents.js +102 -41
  53. package/dist/server/handlers/agents.js.map +1 -1
  54. package/dist/server/handlers/author-enrichment.cjs +5 -3
  55. package/dist/server/handlers/author-enrichment.cjs.map +1 -1
  56. package/dist/server/handlers/author-enrichment.d.ts +1 -1
  57. package/dist/server/handlers/author-enrichment.d.ts.map +1 -1
  58. package/dist/server/handlers/author-enrichment.js +5 -3
  59. package/dist/server/handlers/author-enrichment.js.map +1 -1
  60. package/dist/server/handlers/datasets.cjs +2 -2
  61. package/dist/server/handlers/datasets.d.ts +2 -0
  62. package/dist/server/handlers/datasets.d.ts.map +1 -1
  63. package/dist/server/handlers/datasets.js +2 -2
  64. package/dist/server/handlers/editor-builder.cjs +1 -1
  65. package/dist/server/handlers/editor-builder.js +1 -1
  66. package/dist/server/handlers/favorites-enrichment.cjs +1 -1
  67. package/dist/server/handlers/favorites-enrichment.js +1 -1
  68. package/dist/server/handlers/mcp-client-versions.cjs +1 -1
  69. package/dist/server/handlers/mcp-client-versions.js +1 -1
  70. package/dist/server/handlers/observability-new-endpoints.cjs +2 -1
  71. package/dist/server/handlers/observability-new-endpoints.d.ts +302 -56
  72. package/dist/server/handlers/observability-new-endpoints.d.ts.map +1 -1
  73. package/dist/server/handlers/observability-new-endpoints.js +2 -2
  74. package/dist/server/handlers/observability-shared.cjs +13 -0
  75. package/dist/server/handlers/observability-shared.cjs.map +1 -1
  76. package/dist/server/handlers/observability-shared.d.ts +8 -0
  77. package/dist/server/handlers/observability-shared.d.ts.map +1 -1
  78. package/dist/server/handlers/observability-shared.js +13 -1
  79. package/dist/server/handlers/observability-shared.js.map +1 -1
  80. package/dist/server/handlers/observability-storage-schemas.cjs +5 -0
  81. package/dist/server/handlers/observability-storage-schemas.cjs.map +1 -1
  82. package/dist/server/handlers/observability-storage-schemas.d.ts +2 -0
  83. package/dist/server/handlers/observability-storage-schemas.d.ts.map +1 -1
  84. package/dist/server/handlers/observability-storage-schemas.js +4 -1
  85. package/dist/server/handlers/observability-storage-schemas.js.map +1 -1
  86. package/dist/server/handlers/observability.cjs +26 -1
  87. package/dist/server/handlers/observability.cjs.map +1 -1
  88. package/dist/server/handlers/observability.d.ts +2 -0
  89. package/dist/server/handlers/observability.d.ts.map +1 -1
  90. package/dist/server/handlers/observability.js +26 -3
  91. package/dist/server/handlers/observability.js.map +1 -1
  92. package/dist/server/handlers/plans.cjs +1 -1
  93. package/dist/server/handlers/plans.js +1 -1
  94. package/dist/server/handlers/prompt-block-versions.cjs +1 -1
  95. package/dist/server/handlers/prompt-block-versions.js +1 -1
  96. package/dist/server/handlers/responses.d.ts +11 -11
  97. package/dist/server/handlers/scorer-versions.cjs +1 -1
  98. package/dist/server/handlers/scorer-versions.js +1 -1
  99. package/dist/server/handlers/stored-agent-favorites.cjs +1 -1
  100. package/dist/server/handlers/stored-agent-favorites.js +1 -1
  101. package/dist/server/handlers/stored-agents.cjs +2 -2
  102. package/dist/server/handlers/stored-agents.js +2 -2
  103. package/dist/server/handlers/stored-mcp-clients.cjs +1 -1
  104. package/dist/server/handlers/stored-mcp-clients.js +1 -1
  105. package/dist/server/handlers/stored-prompt-blocks.cjs +1 -1
  106. package/dist/server/handlers/stored-prompt-blocks.js +1 -1
  107. package/dist/server/handlers/stored-scorers.cjs +1 -1
  108. package/dist/server/handlers/stored-scorers.js +1 -1
  109. package/dist/server/handlers/stored-skill-favorites.cjs +2 -2
  110. package/dist/server/handlers/stored-skill-favorites.js +2 -2
  111. package/dist/server/handlers/stored-skills.cjs +2 -2
  112. package/dist/server/handlers/stored-skills.js +2 -2
  113. package/dist/server/handlers/system.cjs +7 -4
  114. package/dist/server/handlers/system.cjs.map +1 -1
  115. package/dist/server/handlers/system.d.ts +2 -0
  116. package/dist/server/handlers/system.d.ts.map +1 -1
  117. package/dist/server/handlers/system.js +7 -4
  118. package/dist/server/handlers/system.js.map +1 -1
  119. package/dist/server/handlers/tools.cjs +1 -1
  120. package/dist/server/handlers/tools.js +1 -1
  121. package/dist/server/handlers/workflows.cjs +2 -2
  122. package/dist/server/handlers/workflows.cjs.map +1 -1
  123. package/dist/server/handlers/workflows.js +2 -2
  124. package/dist/server/handlers/workflows.js.map +1 -1
  125. package/dist/server/handlers.cjs +1 -1
  126. package/dist/server/handlers.js +1 -1
  127. package/dist/server/schemas/agents.d.ts +8 -16
  128. package/dist/server/schemas/agents.d.ts.map +1 -1
  129. package/dist/server/schemas/datasets.d.ts +2 -0
  130. package/dist/server/schemas/datasets.d.ts.map +1 -1
  131. package/dist/server/schemas/feedback.d.ts +64 -0
  132. package/dist/server/schemas/feedback.d.ts.map +1 -0
  133. package/dist/server/schemas/index.cjs +5 -5
  134. package/dist/server/schemas/index.js +5 -5
  135. package/dist/server/schemas/system.d.ts +1 -0
  136. package/dist/server/schemas/system.d.ts.map +1 -1
  137. package/dist/server/server-adapter/index.cjs +9 -2
  138. package/dist/server/server-adapter/index.cjs.map +1 -1
  139. package/dist/server/server-adapter/index.d.ts +3 -0
  140. package/dist/server/server-adapter/index.d.ts.map +1 -1
  141. package/dist/server/server-adapter/index.js +8 -3
  142. package/dist/server/server-adapter/index.js.map +1 -1
  143. package/dist/server/server-adapter/routes/conversations.d.ts +3 -3
  144. package/dist/server/server-adapter/routes/datasets.d.ts +2 -0
  145. package/dist/server/server-adapter/routes/datasets.d.ts.map +1 -1
  146. package/dist/server/server-adapter/routes/legacy.d.ts +6 -6
  147. package/dist/server/server-adapter/routes/observability.d.ts +122 -1
  148. package/dist/server/server-adapter/routes/observability.d.ts.map +1 -1
  149. package/dist/server/server-adapter/routes/system.d.ts +2 -0
  150. package/dist/server/server-adapter/routes/system.d.ts.map +1 -1
  151. package/dist/server/server-adapter/routes/workspace.d.ts +23 -23
  152. package/dist/{system-wl_uZdyz.cjs → system-Cfo5a63a.cjs} +3 -1
  153. package/dist/system-Cfo5a63a.cjs.map +1 -0
  154. package/dist/{system-0TbTYKJY.js → system-DT2JfUun.js} +3 -1
  155. package/dist/system-DT2JfUun.js.map +1 -0
  156. package/package.json +6 -6
  157. package/dist/a2a-C7OgMND3.cjs.map +0 -1
  158. package/dist/a2a-DdCHhKh5.js.map +0 -1
  159. package/dist/agents-BetrUB_N.js.map +0 -1
  160. package/dist/agents-CLv_RFQx.cjs.map +0 -1
  161. package/dist/datasets-B3DTc52y.cjs.map +0 -1
  162. package/dist/dist-BW8S4tCf.js.map +0 -1
  163. package/dist/dist-C8lAYOI6.cjs.map +0 -1
  164. package/dist/observability-new-endpoints-BxXDVoQ0.cjs.map +0 -1
  165. package/dist/observability-new-endpoints-C_om-Dj7.js.map +0 -1
  166. package/dist/routes-bRlxNTKn.js.map +0 -1
  167. package/dist/routes-wp2lb2LI.cjs.map +0 -1
  168. package/dist/system-0TbTYKJY.js.map +0 -1
  169. package/dist/system-wl_uZdyz.cjs.map +0 -1
@@ -1,5 +1,117 @@
1
+ import type { ValidationErrorHook } from '@mastra/core/server';
2
+ import * as coreStorage from '@mastra/core/storage';
1
3
  import { z } from 'zod/v4';
2
4
  import type { ServerContext } from '../server-adapter/routes/index.js';
5
+ export declare const QUERY_TRACES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
6
+ method: string;
7
+ path: `/${string}`;
8
+ responseType: "json";
9
+ streamFormat?: 'sse' | 'stream';
10
+ sseFlushOnConnect?: boolean;
11
+ handler(params: {
12
+ timeRange: {
13
+ from: string;
14
+ to: string;
15
+ };
16
+ where?: coreStorage.TraceQueryPredicate | undefined;
17
+ group?: {
18
+ by: ["threadId"];
19
+ } | undefined;
20
+ orderBy?: {
21
+ field: "endedAt" | "startedAt";
22
+ direction: "asc" | "desc";
23
+ }[] | undefined;
24
+ page: {
25
+ limit: number;
26
+ after?: string | null | undefined;
27
+ };
28
+ } & ServerContext): Promise<{
29
+ traces: {
30
+ traceId: string;
31
+ rootSpanId: string;
32
+ threadId: string | null;
33
+ resourceId: string | null;
34
+ startedAt: string;
35
+ endedAt: string;
36
+ entityName: string | null;
37
+ entityType: string | null;
38
+ environment: string | null;
39
+ status: "error" | "success";
40
+ }[];
41
+ page: {
42
+ next: string | null;
43
+ };
44
+ } | {
45
+ groups: {
46
+ threadId: string;
47
+ }[];
48
+ page: {
49
+ next: string | null;
50
+ };
51
+ }>;
52
+ pathParamSchema?: z.ZodType;
53
+ queryParamSchema?: z.ZodType;
54
+ bodySchema?: z.ZodType;
55
+ responseSchema?: z.ZodType;
56
+ openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
57
+ maxBodySize?: number;
58
+ deprecated?: boolean;
59
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
60
+ fga?: import("@mastra/core/auth").FGARouteConfig;
61
+ onValidationError?: ValidationErrorHook;
62
+ readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodPreprocess<z.ZodObject<{
63
+ timeRange: z.ZodObject<{
64
+ from: z.ZodString;
65
+ to: z.ZodString;
66
+ }, z.core.$strict>;
67
+ where: z.ZodOptional<z.ZodType<coreStorage.TraceQueryPredicate, unknown, z.core.$ZodTypeInternals<coreStorage.TraceQueryPredicate, unknown>>>;
68
+ group: z.ZodOptional<z.ZodObject<{
69
+ by: z.ZodTuple<[z.ZodLiteral<"threadId">], null>;
70
+ }, z.core.$strict>>;
71
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
72
+ field: z.ZodEnum<{
73
+ endedAt: "endedAt";
74
+ startedAt: "startedAt";
75
+ }>;
76
+ direction: z.ZodEnum<{
77
+ asc: "asc";
78
+ desc: "desc";
79
+ }>;
80
+ }, z.core.$strict>>>;
81
+ page: z.ZodDefault<z.ZodObject<{
82
+ limit: z.ZodDefault<z.ZodNumber>;
83
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
+ }, z.core.$strict>>;
85
+ }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodObject<{
86
+ traces: z.ZodArray<z.ZodObject<{
87
+ traceId: z.ZodString;
88
+ rootSpanId: z.ZodString;
89
+ threadId: z.ZodNullable<z.ZodString>;
90
+ resourceId: z.ZodNullable<z.ZodString>;
91
+ startedAt: z.ZodString;
92
+ endedAt: z.ZodString;
93
+ entityName: z.ZodNullable<z.ZodString>;
94
+ entityType: z.ZodNullable<z.ZodString>;
95
+ environment: z.ZodNullable<z.ZodString>;
96
+ status: z.ZodEnum<{
97
+ error: "error";
98
+ success: "success";
99
+ }>;
100
+ }, z.core.$strict>>;
101
+ page: z.ZodObject<{
102
+ next: z.ZodNullable<z.ZodString>;
103
+ }, z.core.$strict>;
104
+ }, z.core.$strict>, z.ZodObject<{
105
+ groups: z.ZodArray<z.ZodObject<{
106
+ threadId: z.ZodString;
107
+ }, z.core.$strict>>;
108
+ page: z.ZodObject<{
109
+ next: z.ZodNullable<z.ZodString>;
110
+ }, z.core.$strict>;
111
+ }, z.core.$strict>]>> | undefined;
112
+ } & {
113
+ readonly _mastraSchemaRoute: true;
114
+ };
3
115
  export declare const LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
4
116
  method: string;
5
117
  path: `/${string}`;
@@ -64,7 +176,7 @@ export declare const LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "cr
64
176
  deprecated?: boolean;
65
177
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
66
178
  fga?: import("@mastra/core/auth").FGARouteConfig;
67
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
179
+ onValidationError?: ValidationErrorHook;
68
180
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
69
181
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
70
182
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -193,7 +305,7 @@ export declare const LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "
193
305
  deprecated?: boolean;
194
306
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
195
307
  fga?: import("@mastra/core/auth").FGARouteConfig;
196
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
308
+ onValidationError?: ValidationErrorHook;
197
309
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
198
310
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
199
311
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -310,7 +422,7 @@ export declare const CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute,
310
422
  deprecated?: boolean;
311
423
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
312
424
  fga?: import("@mastra/core/auth").FGARouteConfig;
313
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
425
+ onValidationError?: ValidationErrorHook;
314
426
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
315
427
  score: z.ZodObject<{
316
428
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
@@ -416,7 +528,7 @@ export declare const GET_SCORE: Omit<import("@mastra/core/server").ApiRoute, "cr
416
528
  deprecated?: boolean;
417
529
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
418
530
  fga?: import("@mastra/core/auth").FGARouteConfig;
419
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
531
+ onValidationError?: ValidationErrorHook;
420
532
  readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
421
533
  scoreId: z.ZodString;
422
534
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
@@ -524,7 +636,7 @@ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").Api
524
636
  deprecated?: boolean;
525
637
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
526
638
  fga?: import("@mastra/core/auth").FGARouteConfig;
527
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
639
+ onValidationError?: ValidationErrorHook;
528
640
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
529
641
  scorerId: z.ZodString;
530
642
  scoreSource: z.ZodOptional<z.ZodString>;
@@ -646,7 +758,7 @@ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").Api
646
758
  deprecated?: boolean;
647
759
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
648
760
  fga?: import("@mastra/core/auth").FGARouteConfig;
649
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
761
+ onValidationError?: ValidationErrorHook;
650
762
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
651
763
  scorerId: z.ZodString;
652
764
  scoreSource: z.ZodOptional<z.ZodString>;
@@ -769,7 +881,7 @@ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").A
769
881
  deprecated?: boolean;
770
882
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
771
883
  fga?: import("@mastra/core/auth").FGARouteConfig;
772
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
884
+ onValidationError?: ValidationErrorHook;
773
885
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
774
886
  scorerId: z.ZodString;
775
887
  scoreSource: z.ZodOptional<z.ZodString>;
@@ -901,7 +1013,7 @@ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").A
901
1013
  deprecated?: boolean;
902
1014
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
903
1015
  fga?: import("@mastra/core/auth").FGARouteConfig;
904
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1016
+ onValidationError?: ValidationErrorHook;
905
1017
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
906
1018
  scorerId: z.ZodString;
907
1019
  scoreSource: z.ZodOptional<z.ZodString>;
@@ -1017,6 +1129,12 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
1017
1129
  sourceId?: string | null | undefined;
1018
1130
  metadata?: Record<string, unknown> | null | undefined;
1019
1131
  reviewStatus: "needs-review" | "reviewed";
1132
+ author?: {
1133
+ id: string;
1134
+ name?: string | undefined;
1135
+ email?: string | undefined;
1136
+ avatarUrl?: string | undefined;
1137
+ } | undefined;
1020
1138
  }[];
1021
1139
  }>;
1022
1140
  pathParamSchema?: z.ZodType;
@@ -1028,7 +1146,7 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
1028
1146
  deprecated?: boolean;
1029
1147
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1030
1148
  fga?: import("@mastra/core/auth").FGARouteConfig;
1031
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1149
+ onValidationError?: ValidationErrorHook;
1032
1150
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
1033
1151
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1034
1152
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -1085,6 +1203,12 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
1085
1203
  "needs-review": "needs-review";
1086
1204
  reviewed: "reviewed";
1087
1205
  }>;
1206
+ author: z.ZodOptional<z.ZodObject<{
1207
+ id: z.ZodString;
1208
+ name: z.ZodOptional<z.ZodString>;
1209
+ email: z.ZodOptional<z.ZodString>;
1210
+ avatarUrl: z.ZodOptional<z.ZodString>;
1211
+ }, z.core.$strip>>;
1088
1212
  }, z.core.$strip>>;
1089
1213
  }, z.core.$strip>> | undefined;
1090
1214
  } & {
@@ -1148,7 +1272,7 @@ export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1148
1272
  deprecated?: boolean;
1149
1273
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1150
1274
  fga?: import("@mastra/core/auth").FGARouteConfig;
1151
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1275
+ onValidationError?: ValidationErrorHook;
1152
1276
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1153
1277
  feedback: z.ZodObject<{
1154
1278
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
@@ -1257,7 +1381,7 @@ export declare const UPDATE_FEEDBACK_REVIEW_STATUS: Omit<import("@mastra/core/se
1257
1381
  deprecated?: boolean;
1258
1382
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1259
1383
  fga?: import("@mastra/core/auth").FGARouteConfig;
1260
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1384
+ onValidationError?: ValidationErrorHook;
1261
1385
  readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
1262
1386
  feedbackId: z.ZodString;
1263
1387
  }, z.core.$strip>, undefined, z.ZodObject<{
@@ -1372,7 +1496,7 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1372
1496
  deprecated?: boolean;
1373
1497
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1374
1498
  fga?: import("@mastra/core/auth").FGARouteConfig;
1375
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1499
+ onValidationError?: ValidationErrorHook;
1376
1500
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1377
1501
  feedbackType: z.ZodString;
1378
1502
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -1499,7 +1623,7 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1499
1623
  deprecated?: boolean;
1500
1624
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1501
1625
  fga?: import("@mastra/core/auth").FGARouteConfig;
1502
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1626
+ onValidationError?: ValidationErrorHook;
1503
1627
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1504
1628
  feedbackType: z.ZodString;
1505
1629
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -1627,7 +1751,7 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1627
1751
  deprecated?: boolean;
1628
1752
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1629
1753
  fga?: import("@mastra/core/auth").FGARouteConfig;
1630
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1754
+ onValidationError?: ValidationErrorHook;
1631
1755
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1632
1756
  feedbackType: z.ZodString;
1633
1757
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -1764,7 +1888,7 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1764
1888
  deprecated?: boolean;
1765
1889
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1766
1890
  fga?: import("@mastra/core/auth").FGARouteConfig;
1767
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1891
+ onValidationError?: ValidationErrorHook;
1768
1892
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1769
1893
  feedbackType: z.ZodString;
1770
1894
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -1896,7 +2020,7 @@ export declare const LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute,
1896
2020
  deprecated?: boolean;
1897
2021
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1898
2022
  fga?: import("@mastra/core/auth").FGARouteConfig;
1899
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2023
+ onValidationError?: ValidationErrorHook;
1900
2024
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
1901
2025
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1902
2026
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -2023,7 +2147,7 @@ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").Ap
2023
2147
  deprecated?: boolean;
2024
2148
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2025
2149
  fga?: import("@mastra/core/auth").FGARouteConfig;
2026
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2150
+ onValidationError?: ValidationErrorHook;
2027
2151
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2028
2152
  name: z.ZodArray<z.ZodString>;
2029
2153
  aggregation: z.ZodEnum<{
@@ -2174,7 +2298,7 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2174
2298
  deprecated?: boolean;
2175
2299
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2176
2300
  fga?: import("@mastra/core/auth").FGARouteConfig;
2177
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2301
+ onValidationError?: ValidationErrorHook;
2178
2302
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2179
2303
  name: z.ZodArray<z.ZodString>;
2180
2304
  groupBy: z.ZodArray<z.ZodString>;
@@ -2327,7 +2451,7 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2327
2451
  deprecated?: boolean;
2328
2452
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2329
2453
  fga?: import("@mastra/core/auth").FGARouteConfig;
2330
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2454
+ onValidationError?: ValidationErrorHook;
2331
2455
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2332
2456
  name: z.ZodArray<z.ZodString>;
2333
2457
  interval: z.ZodEnum<{
@@ -2481,7 +2605,7 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2481
2605
  deprecated?: boolean;
2482
2606
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2483
2607
  fga?: import("@mastra/core/auth").FGARouteConfig;
2484
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2608
+ onValidationError?: ValidationErrorHook;
2485
2609
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2486
2610
  name: z.ZodString;
2487
2611
  percentiles: z.ZodArray<z.ZodNumber>;
@@ -2560,7 +2684,7 @@ export declare const GET_METRIC_NAMES: Omit<import("@mastra/core/server").ApiRou
2560
2684
  deprecated?: boolean;
2561
2685
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2562
2686
  fga?: import("@mastra/core/auth").FGARouteConfig;
2563
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2687
+ onValidationError?: ValidationErrorHook;
2564
2688
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
2565
2689
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2566
2690
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -2587,7 +2711,7 @@ export declare const GET_METRIC_LABEL_KEYS: Omit<import("@mastra/core/server").A
2587
2711
  deprecated?: boolean;
2588
2712
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2589
2713
  fga?: import("@mastra/core/auth").FGARouteConfig;
2590
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2714
+ onValidationError?: ValidationErrorHook;
2591
2715
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
2592
2716
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2593
2717
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -2614,7 +2738,7 @@ export declare const GET_METRIC_LABEL_VALUES: Omit<import("@mastra/core/server")
2614
2738
  deprecated?: boolean;
2615
2739
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2616
2740
  fga?: import("@mastra/core/auth").FGARouteConfig;
2617
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2741
+ onValidationError?: ValidationErrorHook;
2618
2742
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
2619
2743
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2620
2744
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -2641,7 +2765,7 @@ export declare const GET_ENTITY_TYPES: Omit<import("@mastra/core/server").ApiRou
2641
2765
  deprecated?: boolean;
2642
2766
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2643
2767
  fga?: import("@mastra/core/auth").FGARouteConfig;
2644
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2768
+ onValidationError?: ValidationErrorHook;
2645
2769
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
2646
2770
  entityTypes: z.ZodArray<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2647
2771
  }, z.core.$strip>> | undefined;
@@ -2666,7 +2790,7 @@ export declare const GET_ENTITY_NAMES: Omit<import("@mastra/core/server").ApiRou
2666
2790
  deprecated?: boolean;
2667
2791
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2668
2792
  fga?: import("@mastra/core/auth").FGARouteConfig;
2669
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2793
+ onValidationError?: ValidationErrorHook;
2670
2794
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
2671
2795
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2672
2796
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -2693,7 +2817,7 @@ export declare const GET_SERVICE_NAMES: Omit<import("@mastra/core/server").ApiRo
2693
2817
  deprecated?: boolean;
2694
2818
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2695
2819
  fga?: import("@mastra/core/auth").FGARouteConfig;
2696
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2820
+ onValidationError?: ValidationErrorHook;
2697
2821
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
2698
2822
  serviceNames: z.ZodArray<z.ZodString>;
2699
2823
  }, z.core.$strip>> | undefined;
@@ -2718,7 +2842,7 @@ export declare const GET_ENVIRONMENTS: Omit<import("@mastra/core/server").ApiRou
2718
2842
  deprecated?: boolean;
2719
2843
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2720
2844
  fga?: import("@mastra/core/auth").FGARouteConfig;
2721
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2845
+ onValidationError?: ValidationErrorHook;
2722
2846
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
2723
2847
  environments: z.ZodArray<z.ZodString>;
2724
2848
  }, z.core.$strip>> | undefined;
@@ -2743,7 +2867,7 @@ export declare const GET_TAGS: Omit<import("@mastra/core/server").ApiRoute, "cre
2743
2867
  deprecated?: boolean;
2744
2868
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2745
2869
  fga?: import("@mastra/core/auth").FGARouteConfig;
2746
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2870
+ onValidationError?: ValidationErrorHook;
2747
2871
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
2748
2872
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2749
2873
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -2753,6 +2877,116 @@ export declare const GET_TAGS: Omit<import("@mastra/core/server").ApiRoute, "cre
2753
2877
  readonly _mastraSchemaRoute: true;
2754
2878
  };
2755
2879
  export declare const NEW_ROUTES: {
2880
+ QUERY_TRACES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2881
+ method: string;
2882
+ path: `/${string}`;
2883
+ responseType: "json";
2884
+ streamFormat?: 'sse' | 'stream';
2885
+ sseFlushOnConnect?: boolean;
2886
+ handler(params: {
2887
+ timeRange: {
2888
+ from: string;
2889
+ to: string;
2890
+ };
2891
+ where?: coreStorage.TraceQueryPredicate | undefined;
2892
+ group?: {
2893
+ by: ["threadId"];
2894
+ } | undefined;
2895
+ orderBy?: {
2896
+ field: "endedAt" | "startedAt";
2897
+ direction: "asc" | "desc";
2898
+ }[] | undefined;
2899
+ page: {
2900
+ limit: number;
2901
+ after?: string | null | undefined;
2902
+ };
2903
+ } & ServerContext): Promise<{
2904
+ traces: {
2905
+ traceId: string;
2906
+ rootSpanId: string;
2907
+ threadId: string | null;
2908
+ resourceId: string | null;
2909
+ startedAt: string;
2910
+ endedAt: string;
2911
+ entityName: string | null;
2912
+ entityType: string | null;
2913
+ environment: string | null;
2914
+ status: "error" | "success";
2915
+ }[];
2916
+ page: {
2917
+ next: string | null;
2918
+ };
2919
+ } | {
2920
+ groups: {
2921
+ threadId: string;
2922
+ }[];
2923
+ page: {
2924
+ next: string | null;
2925
+ };
2926
+ }>;
2927
+ pathParamSchema?: z.ZodType;
2928
+ queryParamSchema?: z.ZodType;
2929
+ bodySchema?: z.ZodType;
2930
+ responseSchema?: z.ZodType;
2931
+ openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2932
+ maxBodySize?: number;
2933
+ deprecated?: boolean;
2934
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2935
+ fga?: import("@mastra/core/auth").FGARouteConfig;
2936
+ onValidationError?: ValidationErrorHook;
2937
+ readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodPreprocess<z.ZodObject<{
2938
+ timeRange: z.ZodObject<{
2939
+ from: z.ZodString;
2940
+ to: z.ZodString;
2941
+ }, z.core.$strict>;
2942
+ where: z.ZodOptional<z.ZodType<coreStorage.TraceQueryPredicate, unknown, z.core.$ZodTypeInternals<coreStorage.TraceQueryPredicate, unknown>>>;
2943
+ group: z.ZodOptional<z.ZodObject<{
2944
+ by: z.ZodTuple<[z.ZodLiteral<"threadId">], null>;
2945
+ }, z.core.$strict>>;
2946
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
2947
+ field: z.ZodEnum<{
2948
+ endedAt: "endedAt";
2949
+ startedAt: "startedAt";
2950
+ }>;
2951
+ direction: z.ZodEnum<{
2952
+ asc: "asc";
2953
+ desc: "desc";
2954
+ }>;
2955
+ }, z.core.$strict>>>;
2956
+ page: z.ZodDefault<z.ZodObject<{
2957
+ limit: z.ZodDefault<z.ZodNumber>;
2958
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2959
+ }, z.core.$strict>>;
2960
+ }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodObject<{
2961
+ traces: z.ZodArray<z.ZodObject<{
2962
+ traceId: z.ZodString;
2963
+ rootSpanId: z.ZodString;
2964
+ threadId: z.ZodNullable<z.ZodString>;
2965
+ resourceId: z.ZodNullable<z.ZodString>;
2966
+ startedAt: z.ZodString;
2967
+ endedAt: z.ZodString;
2968
+ entityName: z.ZodNullable<z.ZodString>;
2969
+ entityType: z.ZodNullable<z.ZodString>;
2970
+ environment: z.ZodNullable<z.ZodString>;
2971
+ status: z.ZodEnum<{
2972
+ error: "error";
2973
+ success: "success";
2974
+ }>;
2975
+ }, z.core.$strict>>;
2976
+ page: z.ZodObject<{
2977
+ next: z.ZodNullable<z.ZodString>;
2978
+ }, z.core.$strict>;
2979
+ }, z.core.$strict>, z.ZodObject<{
2980
+ groups: z.ZodArray<z.ZodObject<{
2981
+ threadId: z.ZodString;
2982
+ }, z.core.$strict>>;
2983
+ page: z.ZodObject<{
2984
+ next: z.ZodNullable<z.ZodString>;
2985
+ }, z.core.$strict>;
2986
+ }, z.core.$strict>]>> | undefined;
2987
+ } & {
2988
+ readonly _mastraSchemaRoute: true;
2989
+ };
2756
2990
  LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2757
2991
  method: string;
2758
2992
  path: `/${string}`;
@@ -2817,7 +3051,7 @@ export declare const NEW_ROUTES: {
2817
3051
  deprecated?: boolean;
2818
3052
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2819
3053
  fga?: import("@mastra/core/auth").FGARouteConfig;
2820
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3054
+ onValidationError?: ValidationErrorHook;
2821
3055
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
2822
3056
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2823
3057
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -2946,7 +3180,7 @@ export declare const NEW_ROUTES: {
2946
3180
  deprecated?: boolean;
2947
3181
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2948
3182
  fga?: import("@mastra/core/auth").FGARouteConfig;
2949
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3183
+ onValidationError?: ValidationErrorHook;
2950
3184
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
2951
3185
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2952
3186
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -3063,7 +3297,7 @@ export declare const NEW_ROUTES: {
3063
3297
  deprecated?: boolean;
3064
3298
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3065
3299
  fga?: import("@mastra/core/auth").FGARouteConfig;
3066
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3300
+ onValidationError?: ValidationErrorHook;
3067
3301
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
3068
3302
  score: z.ZodObject<{
3069
3303
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
@@ -3169,7 +3403,7 @@ export declare const NEW_ROUTES: {
3169
3403
  deprecated?: boolean;
3170
3404
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3171
3405
  fga?: import("@mastra/core/auth").FGARouteConfig;
3172
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3406
+ onValidationError?: ValidationErrorHook;
3173
3407
  readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
3174
3408
  scoreId: z.ZodString;
3175
3409
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
@@ -3277,7 +3511,7 @@ export declare const NEW_ROUTES: {
3277
3511
  deprecated?: boolean;
3278
3512
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3279
3513
  fga?: import("@mastra/core/auth").FGARouteConfig;
3280
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3514
+ onValidationError?: ValidationErrorHook;
3281
3515
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
3282
3516
  scorerId: z.ZodString;
3283
3517
  scoreSource: z.ZodOptional<z.ZodString>;
@@ -3399,7 +3633,7 @@ export declare const NEW_ROUTES: {
3399
3633
  deprecated?: boolean;
3400
3634
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3401
3635
  fga?: import("@mastra/core/auth").FGARouteConfig;
3402
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3636
+ onValidationError?: ValidationErrorHook;
3403
3637
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
3404
3638
  scorerId: z.ZodString;
3405
3639
  scoreSource: z.ZodOptional<z.ZodString>;
@@ -3522,7 +3756,7 @@ export declare const NEW_ROUTES: {
3522
3756
  deprecated?: boolean;
3523
3757
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3524
3758
  fga?: import("@mastra/core/auth").FGARouteConfig;
3525
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3759
+ onValidationError?: ValidationErrorHook;
3526
3760
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
3527
3761
  scorerId: z.ZodString;
3528
3762
  scoreSource: z.ZodOptional<z.ZodString>;
@@ -3654,7 +3888,7 @@ export declare const NEW_ROUTES: {
3654
3888
  deprecated?: boolean;
3655
3889
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3656
3890
  fga?: import("@mastra/core/auth").FGARouteConfig;
3657
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3891
+ onValidationError?: ValidationErrorHook;
3658
3892
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
3659
3893
  scorerId: z.ZodString;
3660
3894
  scoreSource: z.ZodOptional<z.ZodString>;
@@ -3770,6 +4004,12 @@ export declare const NEW_ROUTES: {
3770
4004
  sourceId?: string | null | undefined;
3771
4005
  metadata?: Record<string, unknown> | null | undefined;
3772
4006
  reviewStatus: "needs-review" | "reviewed";
4007
+ author?: {
4008
+ id: string;
4009
+ name?: string | undefined;
4010
+ email?: string | undefined;
4011
+ avatarUrl?: string | undefined;
4012
+ } | undefined;
3773
4013
  }[];
3774
4014
  }>;
3775
4015
  pathParamSchema?: z.ZodType;
@@ -3781,7 +4021,7 @@ export declare const NEW_ROUTES: {
3781
4021
  deprecated?: boolean;
3782
4022
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3783
4023
  fga?: import("@mastra/core/auth").FGARouteConfig;
3784
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4024
+ onValidationError?: ValidationErrorHook;
3785
4025
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
3786
4026
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
3787
4027
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -3838,6 +4078,12 @@ export declare const NEW_ROUTES: {
3838
4078
  "needs-review": "needs-review";
3839
4079
  reviewed: "reviewed";
3840
4080
  }>;
4081
+ author: z.ZodOptional<z.ZodObject<{
4082
+ id: z.ZodString;
4083
+ name: z.ZodOptional<z.ZodString>;
4084
+ email: z.ZodOptional<z.ZodString>;
4085
+ avatarUrl: z.ZodOptional<z.ZodString>;
4086
+ }, z.core.$strip>>;
3841
4087
  }, z.core.$strip>>;
3842
4088
  }, z.core.$strip>> | undefined;
3843
4089
  } & {
@@ -3901,7 +4147,7 @@ export declare const NEW_ROUTES: {
3901
4147
  deprecated?: boolean;
3902
4148
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3903
4149
  fga?: import("@mastra/core/auth").FGARouteConfig;
3904
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4150
+ onValidationError?: ValidationErrorHook;
3905
4151
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
3906
4152
  feedback: z.ZodObject<{
3907
4153
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
@@ -4010,7 +4256,7 @@ export declare const NEW_ROUTES: {
4010
4256
  deprecated?: boolean;
4011
4257
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4012
4258
  fga?: import("@mastra/core/auth").FGARouteConfig;
4013
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4259
+ onValidationError?: ValidationErrorHook;
4014
4260
  readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
4015
4261
  feedbackId: z.ZodString;
4016
4262
  }, z.core.$strip>, undefined, z.ZodObject<{
@@ -4125,7 +4371,7 @@ export declare const NEW_ROUTES: {
4125
4371
  deprecated?: boolean;
4126
4372
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4127
4373
  fga?: import("@mastra/core/auth").FGARouteConfig;
4128
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4374
+ onValidationError?: ValidationErrorHook;
4129
4375
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4130
4376
  feedbackType: z.ZodString;
4131
4377
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -4252,7 +4498,7 @@ export declare const NEW_ROUTES: {
4252
4498
  deprecated?: boolean;
4253
4499
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4254
4500
  fga?: import("@mastra/core/auth").FGARouteConfig;
4255
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4501
+ onValidationError?: ValidationErrorHook;
4256
4502
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4257
4503
  feedbackType: z.ZodString;
4258
4504
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -4380,7 +4626,7 @@ export declare const NEW_ROUTES: {
4380
4626
  deprecated?: boolean;
4381
4627
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4382
4628
  fga?: import("@mastra/core/auth").FGARouteConfig;
4383
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4629
+ onValidationError?: ValidationErrorHook;
4384
4630
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4385
4631
  feedbackType: z.ZodString;
4386
4632
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -4517,7 +4763,7 @@ export declare const NEW_ROUTES: {
4517
4763
  deprecated?: boolean;
4518
4764
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4519
4765
  fga?: import("@mastra/core/auth").FGARouteConfig;
4520
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4766
+ onValidationError?: ValidationErrorHook;
4521
4767
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4522
4768
  feedbackType: z.ZodString;
4523
4769
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -4649,7 +4895,7 @@ export declare const NEW_ROUTES: {
4649
4895
  deprecated?: boolean;
4650
4896
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4651
4897
  fga?: import("@mastra/core/auth").FGARouteConfig;
4652
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4898
+ onValidationError?: ValidationErrorHook;
4653
4899
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
4654
4900
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
4655
4901
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -4776,7 +5022,7 @@ export declare const NEW_ROUTES: {
4776
5022
  deprecated?: boolean;
4777
5023
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4778
5024
  fga?: import("@mastra/core/auth").FGARouteConfig;
4779
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5025
+ onValidationError?: ValidationErrorHook;
4780
5026
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4781
5027
  name: z.ZodArray<z.ZodString>;
4782
5028
  aggregation: z.ZodEnum<{
@@ -4927,7 +5173,7 @@ export declare const NEW_ROUTES: {
4927
5173
  deprecated?: boolean;
4928
5174
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4929
5175
  fga?: import("@mastra/core/auth").FGARouteConfig;
4930
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5176
+ onValidationError?: ValidationErrorHook;
4931
5177
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4932
5178
  name: z.ZodArray<z.ZodString>;
4933
5179
  groupBy: z.ZodArray<z.ZodString>;
@@ -5080,7 +5326,7 @@ export declare const NEW_ROUTES: {
5080
5326
  deprecated?: boolean;
5081
5327
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5082
5328
  fga?: import("@mastra/core/auth").FGARouteConfig;
5083
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5329
+ onValidationError?: ValidationErrorHook;
5084
5330
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
5085
5331
  name: z.ZodArray<z.ZodString>;
5086
5332
  interval: z.ZodEnum<{
@@ -5234,7 +5480,7 @@ export declare const NEW_ROUTES: {
5234
5480
  deprecated?: boolean;
5235
5481
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5236
5482
  fga?: import("@mastra/core/auth").FGARouteConfig;
5237
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5483
+ onValidationError?: ValidationErrorHook;
5238
5484
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
5239
5485
  name: z.ZodString;
5240
5486
  percentiles: z.ZodArray<z.ZodNumber>;
@@ -5313,7 +5559,7 @@ export declare const NEW_ROUTES: {
5313
5559
  deprecated?: boolean;
5314
5560
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5315
5561
  fga?: import("@mastra/core/auth").FGARouteConfig;
5316
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5562
+ onValidationError?: ValidationErrorHook;
5317
5563
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
5318
5564
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
5319
5565
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -5340,7 +5586,7 @@ export declare const NEW_ROUTES: {
5340
5586
  deprecated?: boolean;
5341
5587
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5342
5588
  fga?: import("@mastra/core/auth").FGARouteConfig;
5343
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5589
+ onValidationError?: ValidationErrorHook;
5344
5590
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
5345
5591
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
5346
5592
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -5367,7 +5613,7 @@ export declare const NEW_ROUTES: {
5367
5613
  deprecated?: boolean;
5368
5614
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5369
5615
  fga?: import("@mastra/core/auth").FGARouteConfig;
5370
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5616
+ onValidationError?: ValidationErrorHook;
5371
5617
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
5372
5618
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
5373
5619
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -5394,7 +5640,7 @@ export declare const NEW_ROUTES: {
5394
5640
  deprecated?: boolean;
5395
5641
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5396
5642
  fga?: import("@mastra/core/auth").FGARouteConfig;
5397
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5643
+ onValidationError?: ValidationErrorHook;
5398
5644
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
5399
5645
  entityTypes: z.ZodArray<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5400
5646
  }, z.core.$strip>> | undefined;
@@ -5419,7 +5665,7 @@ export declare const NEW_ROUTES: {
5419
5665
  deprecated?: boolean;
5420
5666
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5421
5667
  fga?: import("@mastra/core/auth").FGARouteConfig;
5422
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5668
+ onValidationError?: ValidationErrorHook;
5423
5669
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
5424
5670
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
5425
5671
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -5446,7 +5692,7 @@ export declare const NEW_ROUTES: {
5446
5692
  deprecated?: boolean;
5447
5693
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5448
5694
  fga?: import("@mastra/core/auth").FGARouteConfig;
5449
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5695
+ onValidationError?: ValidationErrorHook;
5450
5696
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
5451
5697
  serviceNames: z.ZodArray<z.ZodString>;
5452
5698
  }, z.core.$strip>> | undefined;
@@ -5471,7 +5717,7 @@ export declare const NEW_ROUTES: {
5471
5717
  deprecated?: boolean;
5472
5718
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5473
5719
  fga?: import("@mastra/core/auth").FGARouteConfig;
5474
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5720
+ onValidationError?: ValidationErrorHook;
5475
5721
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
5476
5722
  environments: z.ZodArray<z.ZodString>;
5477
5723
  }, z.core.$strip>> | undefined;
@@ -5496,7 +5742,7 @@ export declare const NEW_ROUTES: {
5496
5742
  deprecated?: boolean;
5497
5743
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5498
5744
  fga?: import("@mastra/core/auth").FGARouteConfig;
5499
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5745
+ onValidationError?: ValidationErrorHook;
5500
5746
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
5501
5747
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
5502
5748
  }>, z.core.$strip>, undefined, z.ZodObject<{