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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/{api-schema-manifest-BxLfDBP-.cjs → api-schema-manifest-DBKVhp6F.cjs} +2 -2
  2. package/dist/{api-schema-manifest-BxLfDBP-.cjs.map → api-schema-manifest-DBKVhp6F.cjs.map} +1 -1
  3. package/dist/{api-schema-manifest-CenKfsu1.js → api-schema-manifest-seBh6tGE.js} +2 -2
  4. package/dist/{api-schema-manifest-CenKfsu1.js.map → api-schema-manifest-seBh6tGE.js.map} +1 -1
  5. package/dist/{dist-C8lAYOI6.cjs → dist-DPu6oGri.cjs} +6 -3
  6. package/dist/{dist-C8lAYOI6.cjs.map → dist-DPu6oGri.cjs.map} +1 -1
  7. package/dist/{dist-BW8S4tCf.js → dist-DxhjXh6M.js} +6 -3
  8. package/dist/{dist-BW8S4tCf.js.map → dist-DxhjXh6M.js.map} +1 -1
  9. package/dist/docs/SKILL.md +2 -1
  10. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  11. package/dist/docs/references/reference-observability-tracing-trace-query.md +179 -0
  12. package/dist/{observability-new-endpoints-BxXDVoQ0.cjs → observability-new-endpoints-DaESE5D0.cjs} +144 -2
  13. package/dist/observability-new-endpoints-DaESE5D0.cjs.map +1 -0
  14. package/dist/{observability-new-endpoints-C_om-Dj7.js → observability-new-endpoints-DeWTjk36.js} +140 -6
  15. package/dist/observability-new-endpoints-DeWTjk36.js.map +1 -0
  16. package/dist/{routes-wp2lb2LI.cjs → routes-D3LdlCKT.cjs} +3 -2
  17. package/dist/routes-D3LdlCKT.cjs.map +1 -0
  18. package/dist/{routes-bRlxNTKn.js → routes-Dnb7rduj.js} +3 -2
  19. package/dist/routes-Dnb7rduj.js.map +1 -0
  20. package/dist/server/handlers/agent-builder.cjs +1 -1
  21. package/dist/server/handlers/agent-builder.js +1 -1
  22. package/dist/server/handlers/mcp-client-versions.cjs +1 -1
  23. package/dist/server/handlers/mcp-client-versions.js +1 -1
  24. package/dist/server/handlers/observability-new-endpoints.cjs +2 -1
  25. package/dist/server/handlers/observability-new-endpoints.d.ts +278 -56
  26. package/dist/server/handlers/observability-new-endpoints.d.ts.map +1 -1
  27. package/dist/server/handlers/observability-new-endpoints.js +2 -2
  28. package/dist/server/handlers/observability-shared.cjs +13 -0
  29. package/dist/server/handlers/observability-shared.cjs.map +1 -1
  30. package/dist/server/handlers/observability-shared.d.ts +8 -0
  31. package/dist/server/handlers/observability-shared.d.ts.map +1 -1
  32. package/dist/server/handlers/observability-shared.js +13 -1
  33. package/dist/server/handlers/observability-shared.js.map +1 -1
  34. package/dist/server/handlers/observability.cjs +3 -1
  35. package/dist/server/handlers/observability.cjs.map +1 -1
  36. package/dist/server/handlers/observability.js +3 -2
  37. package/dist/server/handlers/observability.js.map +1 -1
  38. package/dist/server/handlers/prompt-block-versions.cjs +1 -1
  39. package/dist/server/handlers/prompt-block-versions.js +1 -1
  40. package/dist/server/handlers/scorer-versions.cjs +1 -1
  41. package/dist/server/handlers/scorer-versions.js +1 -1
  42. package/dist/server/handlers/stored-mcp-clients.cjs +1 -1
  43. package/dist/server/handlers/stored-mcp-clients.js +1 -1
  44. package/dist/server/handlers/stored-prompt-blocks.cjs +1 -1
  45. package/dist/server/handlers/stored-prompt-blocks.js +1 -1
  46. package/dist/server/handlers/stored-scorers.cjs +1 -1
  47. package/dist/server/handlers/stored-scorers.js +1 -1
  48. package/dist/server/handlers/stored-skill-favorites.cjs +1 -1
  49. package/dist/server/handlers/stored-skill-favorites.js +1 -1
  50. package/dist/server/handlers/stored-skills.cjs +1 -1
  51. package/dist/server/handlers/stored-skills.js +1 -1
  52. package/dist/server/handlers/system.cjs +1 -1
  53. package/dist/server/handlers/system.js +1 -1
  54. package/dist/server/schemas/index.cjs +1 -1
  55. package/dist/server/schemas/index.js +1 -1
  56. package/dist/server/server-adapter/index.cjs +8 -1
  57. package/dist/server/server-adapter/index.cjs.map +1 -1
  58. package/dist/server/server-adapter/index.d.ts +3 -0
  59. package/dist/server/server-adapter/index.d.ts.map +1 -1
  60. package/dist/server/server-adapter/index.js +7 -2
  61. package/dist/server/server-adapter/index.js.map +1 -1
  62. package/dist/server/server-adapter/routes/observability.d.ts +109 -0
  63. package/dist/server/server-adapter/routes/observability.d.ts.map +1 -1
  64. package/package.json +6 -6
  65. package/dist/observability-new-endpoints-BxXDVoQ0.cjs.map +0 -1
  66. package/dist/observability-new-endpoints-C_om-Dj7.js.map +0 -1
  67. package/dist/routes-bRlxNTKn.js.map +0 -1
  68. package/dist/routes-wp2lb2LI.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>;
@@ -1028,7 +1140,7 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
1028
1140
  deprecated?: boolean;
1029
1141
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1030
1142
  fga?: import("@mastra/core/auth").FGARouteConfig;
1031
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1143
+ onValidationError?: ValidationErrorHook;
1032
1144
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
1033
1145
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1034
1146
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -1148,7 +1260,7 @@ export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1148
1260
  deprecated?: boolean;
1149
1261
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1150
1262
  fga?: import("@mastra/core/auth").FGARouteConfig;
1151
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1263
+ onValidationError?: ValidationErrorHook;
1152
1264
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1153
1265
  feedback: z.ZodObject<{
1154
1266
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
@@ -1257,7 +1369,7 @@ export declare const UPDATE_FEEDBACK_REVIEW_STATUS: Omit<import("@mastra/core/se
1257
1369
  deprecated?: boolean;
1258
1370
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1259
1371
  fga?: import("@mastra/core/auth").FGARouteConfig;
1260
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1372
+ onValidationError?: ValidationErrorHook;
1261
1373
  readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
1262
1374
  feedbackId: z.ZodString;
1263
1375
  }, z.core.$strip>, undefined, z.ZodObject<{
@@ -1372,7 +1484,7 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1372
1484
  deprecated?: boolean;
1373
1485
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1374
1486
  fga?: import("@mastra/core/auth").FGARouteConfig;
1375
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1487
+ onValidationError?: ValidationErrorHook;
1376
1488
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1377
1489
  feedbackType: z.ZodString;
1378
1490
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -1499,7 +1611,7 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1499
1611
  deprecated?: boolean;
1500
1612
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1501
1613
  fga?: import("@mastra/core/auth").FGARouteConfig;
1502
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1614
+ onValidationError?: ValidationErrorHook;
1503
1615
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1504
1616
  feedbackType: z.ZodString;
1505
1617
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -1627,7 +1739,7 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1627
1739
  deprecated?: boolean;
1628
1740
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1629
1741
  fga?: import("@mastra/core/auth").FGARouteConfig;
1630
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1742
+ onValidationError?: ValidationErrorHook;
1631
1743
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1632
1744
  feedbackType: z.ZodString;
1633
1745
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -1764,7 +1876,7 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1764
1876
  deprecated?: boolean;
1765
1877
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1766
1878
  fga?: import("@mastra/core/auth").FGARouteConfig;
1767
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1879
+ onValidationError?: ValidationErrorHook;
1768
1880
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1769
1881
  feedbackType: z.ZodString;
1770
1882
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -1896,7 +2008,7 @@ export declare const LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute,
1896
2008
  deprecated?: boolean;
1897
2009
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
1898
2010
  fga?: import("@mastra/core/auth").FGARouteConfig;
1899
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2011
+ onValidationError?: ValidationErrorHook;
1900
2012
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
1901
2013
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1902
2014
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -2023,7 +2135,7 @@ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").Ap
2023
2135
  deprecated?: boolean;
2024
2136
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2025
2137
  fga?: import("@mastra/core/auth").FGARouteConfig;
2026
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2138
+ onValidationError?: ValidationErrorHook;
2027
2139
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2028
2140
  name: z.ZodArray<z.ZodString>;
2029
2141
  aggregation: z.ZodEnum<{
@@ -2174,7 +2286,7 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2174
2286
  deprecated?: boolean;
2175
2287
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2176
2288
  fga?: import("@mastra/core/auth").FGARouteConfig;
2177
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2289
+ onValidationError?: ValidationErrorHook;
2178
2290
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2179
2291
  name: z.ZodArray<z.ZodString>;
2180
2292
  groupBy: z.ZodArray<z.ZodString>;
@@ -2327,7 +2439,7 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2327
2439
  deprecated?: boolean;
2328
2440
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2329
2441
  fga?: import("@mastra/core/auth").FGARouteConfig;
2330
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2442
+ onValidationError?: ValidationErrorHook;
2331
2443
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2332
2444
  name: z.ZodArray<z.ZodString>;
2333
2445
  interval: z.ZodEnum<{
@@ -2481,7 +2593,7 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2481
2593
  deprecated?: boolean;
2482
2594
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2483
2595
  fga?: import("@mastra/core/auth").FGARouteConfig;
2484
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2596
+ onValidationError?: ValidationErrorHook;
2485
2597
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2486
2598
  name: z.ZodString;
2487
2599
  percentiles: z.ZodArray<z.ZodNumber>;
@@ -2560,7 +2672,7 @@ export declare const GET_METRIC_NAMES: Omit<import("@mastra/core/server").ApiRou
2560
2672
  deprecated?: boolean;
2561
2673
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2562
2674
  fga?: import("@mastra/core/auth").FGARouteConfig;
2563
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2675
+ onValidationError?: ValidationErrorHook;
2564
2676
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
2565
2677
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2566
2678
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -2587,7 +2699,7 @@ export declare const GET_METRIC_LABEL_KEYS: Omit<import("@mastra/core/server").A
2587
2699
  deprecated?: boolean;
2588
2700
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2589
2701
  fga?: import("@mastra/core/auth").FGARouteConfig;
2590
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2702
+ onValidationError?: ValidationErrorHook;
2591
2703
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
2592
2704
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2593
2705
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -2614,7 +2726,7 @@ export declare const GET_METRIC_LABEL_VALUES: Omit<import("@mastra/core/server")
2614
2726
  deprecated?: boolean;
2615
2727
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2616
2728
  fga?: import("@mastra/core/auth").FGARouteConfig;
2617
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2729
+ onValidationError?: ValidationErrorHook;
2618
2730
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
2619
2731
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2620
2732
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -2641,7 +2753,7 @@ export declare const GET_ENTITY_TYPES: Omit<import("@mastra/core/server").ApiRou
2641
2753
  deprecated?: boolean;
2642
2754
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2643
2755
  fga?: import("@mastra/core/auth").FGARouteConfig;
2644
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2756
+ onValidationError?: ValidationErrorHook;
2645
2757
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
2646
2758
  entityTypes: z.ZodArray<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
2647
2759
  }, z.core.$strip>> | undefined;
@@ -2666,7 +2778,7 @@ export declare const GET_ENTITY_NAMES: Omit<import("@mastra/core/server").ApiRou
2666
2778
  deprecated?: boolean;
2667
2779
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2668
2780
  fga?: import("@mastra/core/auth").FGARouteConfig;
2669
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2781
+ onValidationError?: ValidationErrorHook;
2670
2782
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
2671
2783
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2672
2784
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -2693,7 +2805,7 @@ export declare const GET_SERVICE_NAMES: Omit<import("@mastra/core/server").ApiRo
2693
2805
  deprecated?: boolean;
2694
2806
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2695
2807
  fga?: import("@mastra/core/auth").FGARouteConfig;
2696
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2808
+ onValidationError?: ValidationErrorHook;
2697
2809
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
2698
2810
  serviceNames: z.ZodArray<z.ZodString>;
2699
2811
  }, z.core.$strip>> | undefined;
@@ -2718,7 +2830,7 @@ export declare const GET_ENVIRONMENTS: Omit<import("@mastra/core/server").ApiRou
2718
2830
  deprecated?: boolean;
2719
2831
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2720
2832
  fga?: import("@mastra/core/auth").FGARouteConfig;
2721
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2833
+ onValidationError?: ValidationErrorHook;
2722
2834
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
2723
2835
  environments: z.ZodArray<z.ZodString>;
2724
2836
  }, z.core.$strip>> | undefined;
@@ -2743,7 +2855,7 @@ export declare const GET_TAGS: Omit<import("@mastra/core/server").ApiRoute, "cre
2743
2855
  deprecated?: boolean;
2744
2856
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2745
2857
  fga?: import("@mastra/core/auth").FGARouteConfig;
2746
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2858
+ onValidationError?: ValidationErrorHook;
2747
2859
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
2748
2860
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2749
2861
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -2753,6 +2865,116 @@ export declare const GET_TAGS: Omit<import("@mastra/core/server").ApiRoute, "cre
2753
2865
  readonly _mastraSchemaRoute: true;
2754
2866
  };
2755
2867
  export declare const NEW_ROUTES: {
2868
+ QUERY_TRACES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2869
+ method: string;
2870
+ path: `/${string}`;
2871
+ responseType: "json";
2872
+ streamFormat?: 'sse' | 'stream';
2873
+ sseFlushOnConnect?: boolean;
2874
+ handler(params: {
2875
+ timeRange: {
2876
+ from: string;
2877
+ to: string;
2878
+ };
2879
+ where?: coreStorage.TraceQueryPredicate | undefined;
2880
+ group?: {
2881
+ by: ["threadId"];
2882
+ } | undefined;
2883
+ orderBy?: {
2884
+ field: "endedAt" | "startedAt";
2885
+ direction: "asc" | "desc";
2886
+ }[] | undefined;
2887
+ page: {
2888
+ limit: number;
2889
+ after?: string | null | undefined;
2890
+ };
2891
+ } & ServerContext): Promise<{
2892
+ traces: {
2893
+ traceId: string;
2894
+ rootSpanId: string;
2895
+ threadId: string | null;
2896
+ resourceId: string | null;
2897
+ startedAt: string;
2898
+ endedAt: string;
2899
+ entityName: string | null;
2900
+ entityType: string | null;
2901
+ environment: string | null;
2902
+ status: "error" | "success";
2903
+ }[];
2904
+ page: {
2905
+ next: string | null;
2906
+ };
2907
+ } | {
2908
+ groups: {
2909
+ threadId: string;
2910
+ }[];
2911
+ page: {
2912
+ next: string | null;
2913
+ };
2914
+ }>;
2915
+ pathParamSchema?: z.ZodType;
2916
+ queryParamSchema?: z.ZodType;
2917
+ bodySchema?: z.ZodType;
2918
+ responseSchema?: z.ZodType;
2919
+ openapi?: import("../server-adapter/openapi-utils").OpenAPIRoute;
2920
+ maxBodySize?: number;
2921
+ deprecated?: boolean;
2922
+ requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2923
+ fga?: import("@mastra/core/auth").FGARouteConfig;
2924
+ onValidationError?: ValidationErrorHook;
2925
+ readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodPreprocess<z.ZodObject<{
2926
+ timeRange: z.ZodObject<{
2927
+ from: z.ZodString;
2928
+ to: z.ZodString;
2929
+ }, z.core.$strict>;
2930
+ where: z.ZodOptional<z.ZodType<coreStorage.TraceQueryPredicate, unknown, z.core.$ZodTypeInternals<coreStorage.TraceQueryPredicate, unknown>>>;
2931
+ group: z.ZodOptional<z.ZodObject<{
2932
+ by: z.ZodTuple<[z.ZodLiteral<"threadId">], null>;
2933
+ }, z.core.$strict>>;
2934
+ orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
2935
+ field: z.ZodEnum<{
2936
+ endedAt: "endedAt";
2937
+ startedAt: "startedAt";
2938
+ }>;
2939
+ direction: z.ZodEnum<{
2940
+ asc: "asc";
2941
+ desc: "desc";
2942
+ }>;
2943
+ }, z.core.$strict>>>;
2944
+ page: z.ZodDefault<z.ZodObject<{
2945
+ limit: z.ZodDefault<z.ZodNumber>;
2946
+ after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2947
+ }, z.core.$strict>>;
2948
+ }, z.core.$strict>>, z.ZodUnion<readonly [z.ZodObject<{
2949
+ traces: z.ZodArray<z.ZodObject<{
2950
+ traceId: z.ZodString;
2951
+ rootSpanId: z.ZodString;
2952
+ threadId: z.ZodNullable<z.ZodString>;
2953
+ resourceId: z.ZodNullable<z.ZodString>;
2954
+ startedAt: z.ZodString;
2955
+ endedAt: z.ZodString;
2956
+ entityName: z.ZodNullable<z.ZodString>;
2957
+ entityType: z.ZodNullable<z.ZodString>;
2958
+ environment: z.ZodNullable<z.ZodString>;
2959
+ status: z.ZodEnum<{
2960
+ error: "error";
2961
+ success: "success";
2962
+ }>;
2963
+ }, z.core.$strict>>;
2964
+ page: z.ZodObject<{
2965
+ next: z.ZodNullable<z.ZodString>;
2966
+ }, z.core.$strict>;
2967
+ }, z.core.$strict>, z.ZodObject<{
2968
+ groups: z.ZodArray<z.ZodObject<{
2969
+ threadId: z.ZodString;
2970
+ }, z.core.$strict>>;
2971
+ page: z.ZodObject<{
2972
+ next: z.ZodNullable<z.ZodString>;
2973
+ }, z.core.$strict>;
2974
+ }, z.core.$strict>]>> | undefined;
2975
+ } & {
2976
+ readonly _mastraSchemaRoute: true;
2977
+ };
2756
2978
  LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2757
2979
  method: string;
2758
2980
  path: `/${string}`;
@@ -2817,7 +3039,7 @@ export declare const NEW_ROUTES: {
2817
3039
  deprecated?: boolean;
2818
3040
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2819
3041
  fga?: import("@mastra/core/auth").FGARouteConfig;
2820
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3042
+ onValidationError?: ValidationErrorHook;
2821
3043
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
2822
3044
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2823
3045
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -2946,7 +3168,7 @@ export declare const NEW_ROUTES: {
2946
3168
  deprecated?: boolean;
2947
3169
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
2948
3170
  fga?: import("@mastra/core/auth").FGARouteConfig;
2949
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3171
+ onValidationError?: ValidationErrorHook;
2950
3172
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
2951
3173
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
2952
3174
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -3063,7 +3285,7 @@ export declare const NEW_ROUTES: {
3063
3285
  deprecated?: boolean;
3064
3286
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3065
3287
  fga?: import("@mastra/core/auth").FGARouteConfig;
3066
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3288
+ onValidationError?: ValidationErrorHook;
3067
3289
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
3068
3290
  score: z.ZodObject<{
3069
3291
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
@@ -3169,7 +3391,7 @@ export declare const NEW_ROUTES: {
3169
3391
  deprecated?: boolean;
3170
3392
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3171
3393
  fga?: import("@mastra/core/auth").FGARouteConfig;
3172
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3394
+ onValidationError?: ValidationErrorHook;
3173
3395
  readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
3174
3396
  scoreId: z.ZodString;
3175
3397
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
@@ -3277,7 +3499,7 @@ export declare const NEW_ROUTES: {
3277
3499
  deprecated?: boolean;
3278
3500
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3279
3501
  fga?: import("@mastra/core/auth").FGARouteConfig;
3280
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3502
+ onValidationError?: ValidationErrorHook;
3281
3503
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
3282
3504
  scorerId: z.ZodString;
3283
3505
  scoreSource: z.ZodOptional<z.ZodString>;
@@ -3399,7 +3621,7 @@ export declare const NEW_ROUTES: {
3399
3621
  deprecated?: boolean;
3400
3622
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3401
3623
  fga?: import("@mastra/core/auth").FGARouteConfig;
3402
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3624
+ onValidationError?: ValidationErrorHook;
3403
3625
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
3404
3626
  scorerId: z.ZodString;
3405
3627
  scoreSource: z.ZodOptional<z.ZodString>;
@@ -3522,7 +3744,7 @@ export declare const NEW_ROUTES: {
3522
3744
  deprecated?: boolean;
3523
3745
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3524
3746
  fga?: import("@mastra/core/auth").FGARouteConfig;
3525
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3747
+ onValidationError?: ValidationErrorHook;
3526
3748
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
3527
3749
  scorerId: z.ZodString;
3528
3750
  scoreSource: z.ZodOptional<z.ZodString>;
@@ -3654,7 +3876,7 @@ export declare const NEW_ROUTES: {
3654
3876
  deprecated?: boolean;
3655
3877
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3656
3878
  fga?: import("@mastra/core/auth").FGARouteConfig;
3657
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3879
+ onValidationError?: ValidationErrorHook;
3658
3880
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
3659
3881
  scorerId: z.ZodString;
3660
3882
  scoreSource: z.ZodOptional<z.ZodString>;
@@ -3781,7 +4003,7 @@ export declare const NEW_ROUTES: {
3781
4003
  deprecated?: boolean;
3782
4004
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3783
4005
  fga?: import("@mastra/core/auth").FGARouteConfig;
3784
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4006
+ onValidationError?: ValidationErrorHook;
3785
4007
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
3786
4008
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
3787
4009
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -3901,7 +4123,7 @@ export declare const NEW_ROUTES: {
3901
4123
  deprecated?: boolean;
3902
4124
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
3903
4125
  fga?: import("@mastra/core/auth").FGARouteConfig;
3904
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4126
+ onValidationError?: ValidationErrorHook;
3905
4127
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
3906
4128
  feedback: z.ZodObject<{
3907
4129
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
@@ -4010,7 +4232,7 @@ export declare const NEW_ROUTES: {
4010
4232
  deprecated?: boolean;
4011
4233
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4012
4234
  fga?: import("@mastra/core/auth").FGARouteConfig;
4013
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4235
+ onValidationError?: ValidationErrorHook;
4014
4236
  readonly __schemas?: import("../server-adapter").RouteSchemas<z.ZodObject<{
4015
4237
  feedbackId: z.ZodString;
4016
4238
  }, z.core.$strip>, undefined, z.ZodObject<{
@@ -4125,7 +4347,7 @@ export declare const NEW_ROUTES: {
4125
4347
  deprecated?: boolean;
4126
4348
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4127
4349
  fga?: import("@mastra/core/auth").FGARouteConfig;
4128
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4350
+ onValidationError?: ValidationErrorHook;
4129
4351
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4130
4352
  feedbackType: z.ZodString;
4131
4353
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -4252,7 +4474,7 @@ export declare const NEW_ROUTES: {
4252
4474
  deprecated?: boolean;
4253
4475
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4254
4476
  fga?: import("@mastra/core/auth").FGARouteConfig;
4255
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4477
+ onValidationError?: ValidationErrorHook;
4256
4478
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4257
4479
  feedbackType: z.ZodString;
4258
4480
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -4380,7 +4602,7 @@ export declare const NEW_ROUTES: {
4380
4602
  deprecated?: boolean;
4381
4603
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4382
4604
  fga?: import("@mastra/core/auth").FGARouteConfig;
4383
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4605
+ onValidationError?: ValidationErrorHook;
4384
4606
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4385
4607
  feedbackType: z.ZodString;
4386
4608
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -4517,7 +4739,7 @@ export declare const NEW_ROUTES: {
4517
4739
  deprecated?: boolean;
4518
4740
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4519
4741
  fga?: import("@mastra/core/auth").FGARouteConfig;
4520
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4742
+ onValidationError?: ValidationErrorHook;
4521
4743
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4522
4744
  feedbackType: z.ZodString;
4523
4745
  feedbackSource: z.ZodOptional<z.ZodString>;
@@ -4649,7 +4871,7 @@ export declare const NEW_ROUTES: {
4649
4871
  deprecated?: boolean;
4650
4872
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4651
4873
  fga?: import("@mastra/core/auth").FGARouteConfig;
4652
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
4874
+ onValidationError?: ValidationErrorHook;
4653
4875
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
4654
4876
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
4655
4877
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -4776,7 +4998,7 @@ export declare const NEW_ROUTES: {
4776
4998
  deprecated?: boolean;
4777
4999
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4778
5000
  fga?: import("@mastra/core/auth").FGARouteConfig;
4779
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5001
+ onValidationError?: ValidationErrorHook;
4780
5002
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4781
5003
  name: z.ZodArray<z.ZodString>;
4782
5004
  aggregation: z.ZodEnum<{
@@ -4927,7 +5149,7 @@ export declare const NEW_ROUTES: {
4927
5149
  deprecated?: boolean;
4928
5150
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
4929
5151
  fga?: import("@mastra/core/auth").FGARouteConfig;
4930
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5152
+ onValidationError?: ValidationErrorHook;
4931
5153
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4932
5154
  name: z.ZodArray<z.ZodString>;
4933
5155
  groupBy: z.ZodArray<z.ZodString>;
@@ -5080,7 +5302,7 @@ export declare const NEW_ROUTES: {
5080
5302
  deprecated?: boolean;
5081
5303
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5082
5304
  fga?: import("@mastra/core/auth").FGARouteConfig;
5083
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5305
+ onValidationError?: ValidationErrorHook;
5084
5306
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
5085
5307
  name: z.ZodArray<z.ZodString>;
5086
5308
  interval: z.ZodEnum<{
@@ -5234,7 +5456,7 @@ export declare const NEW_ROUTES: {
5234
5456
  deprecated?: boolean;
5235
5457
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5236
5458
  fga?: import("@mastra/core/auth").FGARouteConfig;
5237
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5459
+ onValidationError?: ValidationErrorHook;
5238
5460
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
5239
5461
  name: z.ZodString;
5240
5462
  percentiles: z.ZodArray<z.ZodNumber>;
@@ -5313,7 +5535,7 @@ export declare const NEW_ROUTES: {
5313
5535
  deprecated?: boolean;
5314
5536
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5315
5537
  fga?: import("@mastra/core/auth").FGARouteConfig;
5316
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5538
+ onValidationError?: ValidationErrorHook;
5317
5539
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
5318
5540
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
5319
5541
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -5340,7 +5562,7 @@ export declare const NEW_ROUTES: {
5340
5562
  deprecated?: boolean;
5341
5563
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5342
5564
  fga?: import("@mastra/core/auth").FGARouteConfig;
5343
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5565
+ onValidationError?: ValidationErrorHook;
5344
5566
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
5345
5567
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
5346
5568
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -5367,7 +5589,7 @@ export declare const NEW_ROUTES: {
5367
5589
  deprecated?: boolean;
5368
5590
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5369
5591
  fga?: import("@mastra/core/auth").FGARouteConfig;
5370
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5592
+ onValidationError?: ValidationErrorHook;
5371
5593
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
5372
5594
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
5373
5595
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -5394,7 +5616,7 @@ export declare const NEW_ROUTES: {
5394
5616
  deprecated?: boolean;
5395
5617
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5396
5618
  fga?: import("@mastra/core/auth").FGARouteConfig;
5397
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5619
+ onValidationError?: ValidationErrorHook;
5398
5620
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
5399
5621
  entityTypes: z.ZodArray<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>;
5400
5622
  }, z.core.$strip>> | undefined;
@@ -5419,7 +5641,7 @@ export declare const NEW_ROUTES: {
5419
5641
  deprecated?: boolean;
5420
5642
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5421
5643
  fga?: import("@mastra/core/auth").FGARouteConfig;
5422
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5644
+ onValidationError?: ValidationErrorHook;
5423
5645
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
5424
5646
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
5425
5647
  }>, z.core.$strip>, undefined, z.ZodObject<{
@@ -5446,7 +5668,7 @@ export declare const NEW_ROUTES: {
5446
5668
  deprecated?: boolean;
5447
5669
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5448
5670
  fga?: import("@mastra/core/auth").FGARouteConfig;
5449
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5671
+ onValidationError?: ValidationErrorHook;
5450
5672
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
5451
5673
  serviceNames: z.ZodArray<z.ZodString>;
5452
5674
  }, z.core.$strip>> | undefined;
@@ -5471,7 +5693,7 @@ export declare const NEW_ROUTES: {
5471
5693
  deprecated?: boolean;
5472
5694
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5473
5695
  fga?: import("@mastra/core/auth").FGARouteConfig;
5474
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5696
+ onValidationError?: ValidationErrorHook;
5475
5697
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, undefined, z.ZodObject<{
5476
5698
  environments: z.ZodArray<z.ZodString>;
5477
5699
  }, z.core.$strip>> | undefined;
@@ -5496,7 +5718,7 @@ export declare const NEW_ROUTES: {
5496
5718
  deprecated?: boolean;
5497
5719
  requiresPermission?: import("@mastra/core/auth").MastraFGAPermissionInput | import("@mastra/core/auth").MastraFGAPermissionInput[];
5498
5720
  fga?: import("@mastra/core/auth").FGARouteConfig;
5499
- onValidationError?: import("@mastra/core/server").ValidationErrorHook;
5721
+ onValidationError?: ValidationErrorHook;
5500
5722
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
5501
5723
  [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
5502
5724
  }>, z.core.$strip>, undefined, z.ZodObject<{