@mastra/server 1.63.2 → 1.63.3-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/_types/@internal_core/dist/storage/index.d.ts +401 -401
  3. package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v3.d.ts +5 -5
  4. package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v4.d.ts +5 -5
  5. package/dist/_types/@mastra_schema-compat/dist/standard-schema/standard-schema.d.ts +1 -1
  6. package/dist/docs/SKILL.md +8 -8
  7. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  8. package/dist/server/a2a/push-notification-sender.d.ts.map +1 -1
  9. package/dist/server/a2a/push-notification-store.d.ts.map +1 -1
  10. package/dist/server/a2a/store.d.ts.map +1 -1
  11. package/dist/server/auth/helpers.d.ts +1 -1
  12. package/dist/server/auth/helpers.d.ts.map +1 -1
  13. package/dist/server/browser-stream/viewer-registry.d.ts.map +1 -1
  14. package/dist/server/constants.d.ts +1 -1
  15. package/dist/server/constants.d.ts.map +1 -1
  16. package/dist/server/handlers/a2a.d.ts +60 -60
  17. package/dist/server/handlers/a2a.d.ts.map +1 -1
  18. package/dist/server/handlers/agent-builder.d.ts +110 -110
  19. package/dist/server/handlers/agent-controller.cjs +10 -4
  20. package/dist/server/handlers/agent-controller.cjs.map +1 -1
  21. package/dist/server/handlers/agent-controller.d.ts +110 -110
  22. package/dist/server/handlers/agent-controller.d.ts.map +1 -1
  23. package/dist/server/handlers/agent-controller.js +10 -4
  24. package/dist/server/handlers/agent-controller.js.map +1 -1
  25. package/dist/server/handlers/agent-versions.d.ts +5267 -5259
  26. package/dist/server/handlers/agent-versions.d.ts.map +1 -1
  27. package/dist/server/handlers/agents.d.ts +4355 -4355
  28. package/dist/server/handlers/agents.d.ts.map +1 -1
  29. package/dist/server/handlers/auth.d.ts +52 -52
  30. package/dist/server/handlers/background-tasks.d.ts +37 -37
  31. package/dist/server/handlers/builder-registry.d.ts +12 -12
  32. package/dist/server/handlers/channels.d.ts +10 -10
  33. package/dist/server/handlers/conversations.d.ts +13 -13
  34. package/dist/server/handlers/datasets.d.ts +396 -396
  35. package/dist/server/handlers/dynamic-workflows.d.ts +36 -36
  36. package/dist/server/handlers/editor-builder.d.ts +13 -13
  37. package/dist/server/handlers/gateway-memory-client.d.ts +4 -4
  38. package/dist/server/handlers/gateway-memory-client.d.ts.map +1 -1
  39. package/dist/server/handlers/logs.d.ts +40 -40
  40. package/dist/server/handlers/mcp-client-versions.d.ts +32 -32
  41. package/dist/server/handlers/mcp.d.ts +23 -23
  42. package/dist/server/handlers/memory.d.ts +138 -138
  43. package/dist/server/handlers/observability-list-query-schemas.d.ts +1 -1
  44. package/dist/server/handlers/observability-new-endpoints.d.ts +859 -859
  45. package/dist/server/handlers/observability-shared.d.ts +126 -126
  46. package/dist/server/handlers/observability-shared.d.ts.map +1 -1
  47. package/dist/server/handlers/observability.d.ts +17 -17
  48. package/dist/server/handlers/plans.d.ts +3 -3
  49. package/dist/server/handlers/processor-providers.d.ts +9 -9
  50. package/dist/server/handlers/processors.d.ts +31 -31
  51. package/dist/server/handlers/prompt-block-versions.d.ts +176 -176
  52. package/dist/server/handlers/responses.adapter.d.ts +3 -3
  53. package/dist/server/handlers/responses.adapter.d.ts.map +1 -1
  54. package/dist/server/handlers/responses.d.ts +17 -17
  55. package/dist/server/handlers/schedules.d.ts +242 -242
  56. package/dist/server/handlers/scorer-versions.d.ts +39 -39
  57. package/dist/server/handlers/scores.d.ts +20 -20
  58. package/dist/server/handlers/stored-agent-favorites.d.ts +4 -4
  59. package/dist/server/handlers/stored-agents.d.ts +5992 -5984
  60. package/dist/server/handlers/stored-agents.d.ts.map +1 -1
  61. package/dist/server/handlers/stored-mcp-clients.d.ts +46 -46
  62. package/dist/server/handlers/stored-prompt-blocks.d.ts +193 -193
  63. package/dist/server/handlers/stored-scorers.d.ts +56 -56
  64. package/dist/server/handlers/stored-skill-favorites.d.ts +4 -4
  65. package/dist/server/handlers/stored-skills.d.ts +70 -70
  66. package/dist/server/handlers/stored-workspaces.d.ts +36 -36
  67. package/dist/server/handlers/system.d.ts +19 -19
  68. package/dist/server/handlers/tool-providers.d.ts +49 -49
  69. package/dist/server/handlers/tools.d.ts +10 -10
  70. package/dist/server/handlers/vector.d.ts +18 -18
  71. package/dist/server/handlers/version-helpers.d.ts +1 -1
  72. package/dist/server/handlers/version-helpers.d.ts.map +1 -1
  73. package/dist/server/handlers/workflows.d.ts +167 -167
  74. package/dist/server/handlers/workspace.d.ts +370 -370
  75. package/dist/server/http-exception.d.ts.map +1 -1
  76. package/dist/server/schemas/a2a.d.ts +18 -18
  77. package/dist/server/schemas/agent-versions.d.ts +3948 -3948
  78. package/dist/server/schemas/agents.d.ts +172 -172
  79. package/dist/server/schemas/agents.d.ts.map +1 -1
  80. package/dist/server/schemas/auth.d.ts +5 -5
  81. package/dist/server/schemas/background-tasks.d.ts +22 -22
  82. package/dist/server/schemas/builder-registry.d.ts +1 -1
  83. package/dist/server/schemas/channels.d.ts +1 -1
  84. package/dist/server/schemas/common.d.ts +5 -5
  85. package/dist/server/schemas/common.d.ts.map +1 -1
  86. package/dist/server/schemas/conversations.d.ts +2 -2
  87. package/dist/server/schemas/datasets.d.ts +98 -98
  88. package/dist/server/schemas/dynamic-workflows.d.ts +7 -7
  89. package/dist/server/schemas/logs.d.ts +8 -8
  90. package/dist/server/schemas/mcp-client-versions.d.ts +2 -2
  91. package/dist/server/schemas/memory-config.d.ts +5 -5
  92. package/dist/server/schemas/memory.d.ts +20 -20
  93. package/dist/server/schemas/processor-providers.d.ts +2 -2
  94. package/dist/server/schemas/processors.d.ts +13 -13
  95. package/dist/server/schemas/prompt-block-versions.d.ts +149 -149
  96. package/dist/server/schemas/responses.d.ts +11 -11
  97. package/dist/server/schemas/rule-group.d.ts +28 -28
  98. package/dist/server/schemas/schedules.d.ts +120 -120
  99. package/dist/server/schemas/scorer-versions.d.ts +9 -9
  100. package/dist/server/schemas/scores.d.ts +2 -2
  101. package/dist/server/schemas/stored-agents.d.ts +9052 -9052
  102. package/dist/server/schemas/stored-mcp-clients.d.ts +9 -9
  103. package/dist/server/schemas/stored-prompt-blocks.d.ts +156 -156
  104. package/dist/server/schemas/stored-scorers.d.ts +16 -16
  105. package/dist/server/schemas/stored-skills.d.ts +22 -22
  106. package/dist/server/schemas/stored-workspaces.d.ts +6 -6
  107. package/dist/server/schemas/system.d.ts +12 -12
  108. package/dist/server/schemas/tool-providers.d.ts +20 -20
  109. package/dist/server/schemas/vectors.d.ts +1 -1
  110. package/dist/server/schemas/version-common.d.ts +2 -2
  111. package/dist/server/schemas/workflows.d.ts +57 -57
  112. package/dist/server/schemas/workspace.d.ts +17 -17
  113. package/dist/server/server-adapter/index.d.ts.map +1 -1
  114. package/dist/server/server-adapter/routes/a2a.d.ts +49 -49
  115. package/dist/server/server-adapter/routes/agent-builder.d.ts +110 -110
  116. package/dist/server/server-adapter/routes/channels.d.ts +10 -10
  117. package/dist/server/server-adapter/routes/conversations.d.ts +26 -26
  118. package/dist/server/server-adapter/routes/datasets.d.ts +394 -394
  119. package/dist/server/server-adapter/routes/editor-builder.d.ts +25 -25
  120. package/dist/server/server-adapter/routes/legacy.d.ts +157 -157
  121. package/dist/server/server-adapter/routes/logs.d.ts +40 -40
  122. package/dist/server/server-adapter/routes/mcp.d.ts +23 -23
  123. package/dist/server/server-adapter/routes/memory.d.ts +138 -138
  124. package/dist/server/server-adapter/routes/observability.d.ts +446 -446
  125. package/dist/server/server-adapter/routes/processor-providers.d.ts +9 -9
  126. package/dist/server/server-adapter/routes/processors.d.ts +31 -31
  127. package/dist/server/server-adapter/routes/responses.d.ts +17 -17
  128. package/dist/server/server-adapter/routes/scorers.d.ts +20 -20
  129. package/dist/server/server-adapter/routes/stored-mcp-clients.d.ts +78 -78
  130. package/dist/server/server-adapter/routes/stored-prompt-blocks.d.ts +369 -369
  131. package/dist/server/server-adapter/routes/stored-scorers.d.ts +95 -95
  132. package/dist/server/server-adapter/routes/stored-skills.d.ts +74 -74
  133. package/dist/server/server-adapter/routes/stored-workspaces.d.ts +36 -36
  134. package/dist/server/server-adapter/routes/system.d.ts +19 -19
  135. package/dist/server/server-adapter/routes/tool-providers.d.ts +49 -49
  136. package/dist/server/server-adapter/routes/tools.d.ts +6 -6
  137. package/dist/server/server-adapter/routes/vectors.d.ts +18 -18
  138. package/dist/server/server-adapter/routes/workflows.d.ts +163 -163
  139. package/dist/server/server-adapter/routes/workspace.d.ts +334 -334
  140. package/dist/server/utils.d.ts.map +1 -1
  141. package/package.json +8 -7
@@ -1,20 +1,24 @@
1
1
  import { z } from 'zod/v4';
2
2
  import type { ServerContext } from '../server-adapter/routes/index.js';
3
- export declare const LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
3
+ export declare const LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
4
4
  method: string;
5
5
  path: `/${string}`;
6
6
  responseType: "json";
7
- streamFormat?: "sse" | "stream";
7
+ streamFormat?: 'sse' | 'stream';
8
8
  sseFlushOnConnect?: boolean;
9
9
  handler(params: Record<string, unknown> & ServerContext): Promise<{
10
+ pagination?: {
11
+ total: number;
12
+ page: number;
13
+ perPage: number | false;
14
+ hasMore: boolean;
15
+ } | undefined;
16
+ delta?: {
17
+ limit: number;
18
+ hasMore: boolean;
19
+ } | undefined;
20
+ deltaCursor?: string | undefined;
10
21
  logs: {
11
- timestamp: Date;
12
- level: "error" | "debug" | "info" | "warn" | "fatal";
13
- message: string;
14
- source?: string | null | undefined;
15
- metadata?: Record<string, unknown> | null | undefined;
16
- executionSource?: string | null | undefined;
17
- tags?: string[] | null | undefined;
18
22
  entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
19
23
  entityId?: string | null | undefined;
20
24
  entityName?: string | null | undefined;
@@ -38,22 +42,18 @@ export declare const LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "pa
38
42
  parentEntityVersionId?: string | null | undefined;
39
43
  rootEntityVersionId?: string | null | undefined;
40
44
  experimentId?: string | null | undefined;
45
+ executionSource?: string | null | undefined;
46
+ tags?: string[] | null | undefined;
41
47
  logId?: string | null | undefined;
48
+ timestamp: Date;
49
+ level: "debug" | "error" | "fatal" | "info" | "warn";
50
+ message: string;
42
51
  data?: Record<string, unknown> | null | undefined;
43
52
  traceId?: string | null | undefined;
44
53
  spanId?: string | null | undefined;
54
+ source?: string | null | undefined;
55
+ metadata?: Record<string, unknown> | null | undefined;
45
56
  }[];
46
- pagination?: {
47
- total: number;
48
- page: number;
49
- perPage: number | false;
50
- hasMore: boolean;
51
- } | undefined;
52
- delta?: {
53
- limit: number;
54
- hasMore: boolean;
55
- } | undefined;
56
- deltaCursor?: string | undefined;
57
57
  }>;
58
58
  pathParamSchema?: z.ZodType;
59
59
  queryParamSchema?: z.ZodType;
@@ -80,10 +80,6 @@ export declare const LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "pa
80
80
  }, z.core.$strip>>;
81
81
  deltaCursor: z.ZodOptional<z.ZodString>;
82
82
  logs: z.ZodArray<z.ZodObject<{
83
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
85
- executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
87
83
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
88
84
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
85
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -107,39 +103,47 @@ export declare const LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "pa
107
103
  parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
104
  rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
105
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
110
108
  logId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
109
  timestamp: z.ZodDate;
112
110
  level: z.ZodEnum<{
113
111
  debug: "debug";
114
- info: "info";
115
- warn: "warn";
116
112
  error: "error";
117
113
  fatal: "fatal";
114
+ info: "info";
115
+ warn: "warn";
118
116
  }>;
119
117
  message: z.ZodString;
120
118
  data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
121
119
  traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
120
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
123
123
  }, z.core.$strip>>;
124
124
  }, z.core.$strip>> | undefined;
125
125
  } & {
126
126
  readonly _mastraSchemaRoute: true;
127
127
  };
128
- export declare const LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
128
+ export declare const LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
129
129
  method: string;
130
130
  path: `/${string}`;
131
131
  responseType: "json";
132
- streamFormat?: "sse" | "stream";
132
+ streamFormat?: 'sse' | 'stream';
133
133
  sseFlushOnConnect?: boolean;
134
134
  handler(params: Record<string, unknown> & ServerContext): Promise<{
135
+ pagination?: {
136
+ total: number;
137
+ page: number;
138
+ perPage: number | false;
139
+ hasMore: boolean;
140
+ } | undefined;
141
+ delta?: {
142
+ limit: number;
143
+ hasMore: boolean;
144
+ } | undefined;
145
+ deltaCursor?: string | undefined;
135
146
  scores: {
136
- timestamp: Date;
137
- scorerId: string;
138
- score: number;
139
- scoreTraceId?: string | null | undefined;
140
- metadata?: Record<string, unknown> | null | undefined;
141
- executionSource?: string | null | undefined;
142
- tags?: string[] | null | undefined;
143
147
  entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
144
148
  entityId?: string | null | undefined;
145
149
  entityName?: string | null | undefined;
@@ -163,26 +167,22 @@ export declare const LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "
163
167
  parentEntityVersionId?: string | null | undefined;
164
168
  rootEntityVersionId?: string | null | undefined;
165
169
  experimentId?: string | null | undefined;
170
+ executionSource?: string | null | undefined;
171
+ tags?: string[] | null | undefined;
166
172
  scoreId?: string | null | undefined;
173
+ timestamp: Date;
167
174
  traceId?: string | null | undefined;
168
175
  spanId?: string | null | undefined;
176
+ scorerId: string;
169
177
  scorerName?: string | null | undefined;
170
178
  scorerVersion?: string | null | undefined;
171
179
  scoreSource?: string | null | undefined;
172
180
  source?: string | null | undefined;
181
+ score: number;
173
182
  reason?: string | null | undefined;
183
+ scoreTraceId?: string | null | undefined;
184
+ metadata?: Record<string, unknown> | null | undefined;
174
185
  }[];
175
- pagination?: {
176
- total: number;
177
- page: number;
178
- perPage: number | false;
179
- hasMore: boolean;
180
- } | undefined;
181
- delta?: {
182
- limit: number;
183
- hasMore: boolean;
184
- } | undefined;
185
- deltaCursor?: string | undefined;
186
186
  }>;
187
187
  pathParamSchema?: z.ZodType;
188
188
  queryParamSchema?: z.ZodType;
@@ -209,10 +209,6 @@ export declare const LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "
209
209
  }, z.core.$strip>>;
210
210
  deltaCursor: z.ZodOptional<z.ZodString>;
211
211
  scores: z.ZodArray<z.ZodObject<{
212
- scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
213
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
214
- executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
216
212
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
217
213
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
214
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -236,6 +232,8 @@ export declare const LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "
236
232
  parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
237
233
  rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
238
234
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
235
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
239
237
  scoreId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
240
238
  timestamp: z.ZodDate;
241
239
  traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -247,29 +245,22 @@ export declare const LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "
247
245
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
246
  score: z.ZodNumber;
249
247
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
+ scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
250
250
  }, z.core.$strip>>;
251
251
  }, z.core.$strip>> | undefined;
252
252
  } & {
253
253
  readonly _mastraSchemaRoute: true;
254
254
  };
255
- export declare const CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
255
+ export declare const CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
256
256
  method: string;
257
257
  path: `/${string}`;
258
258
  responseType: "json";
259
- streamFormat?: "sse" | "stream";
259
+ streamFormat?: 'sse' | 'stream';
260
260
  sseFlushOnConnect?: boolean;
261
261
  handler(params: {
262
262
  score: {
263
- scorerId: string;
264
- score: number;
265
- runId?: string | null | undefined;
266
263
  entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
267
- tags?: string[] | null | undefined;
268
- traceId?: string | null | undefined;
269
- spanId?: string | null | undefined;
270
- source?: string | null | undefined;
271
- metadata?: Record<string, unknown> | null | undefined;
272
- executionSource?: string | null | undefined;
273
264
  entityId?: string | null | undefined;
274
265
  entityName?: string | null | undefined;
275
266
  parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
@@ -281,6 +272,7 @@ export declare const CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute,
281
272
  userId?: string | null | undefined;
282
273
  organizationId?: string | null | undefined;
283
274
  resourceId?: string | null | undefined;
275
+ runId?: string | null | undefined;
284
276
  sessionId?: string | null | undefined;
285
277
  threadId?: string | null | undefined;
286
278
  requestId?: string | null | undefined;
@@ -291,12 +283,20 @@ export declare const CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute,
291
283
  parentEntityVersionId?: string | null | undefined;
292
284
  rootEntityVersionId?: string | null | undefined;
293
285
  experimentId?: string | null | undefined;
286
+ executionSource?: string | null | undefined;
287
+ tags?: string[] | null | undefined;
294
288
  scoreId?: string | null | undefined;
289
+ traceId?: string | null | undefined;
290
+ spanId?: string | null | undefined;
291
+ scorerId: string;
295
292
  scorerName?: string | null | undefined;
296
293
  scorerVersion?: string | null | undefined;
297
294
  scoreSource?: string | null | undefined;
295
+ source?: string | null | undefined;
296
+ score: number;
298
297
  reason?: string | null | undefined;
299
298
  scoreTraceId?: string | null | undefined;
299
+ metadata?: Record<string, unknown> | null | undefined;
300
300
  };
301
301
  } & ServerContext): Promise<{
302
302
  success: boolean;
@@ -313,14 +313,7 @@ export declare const CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute,
313
313
  onValidationError?: import("@mastra/core/server").ValidationErrorHook;
314
314
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
315
315
  score: z.ZodObject<{
316
- runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
316
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
318
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
319
- traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
320
- spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
321
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
322
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
323
- executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
324
317
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
325
318
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
319
  parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
@@ -332,6 +325,7 @@ export declare const CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute,
332
325
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
326
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
334
327
  resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
328
+ runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
335
329
  sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
336
330
  threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
337
331
  requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -342,14 +336,20 @@ export declare const CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute,
342
336
  parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
343
337
  rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
344
338
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
345
- scorerId: z.ZodString;
346
- score: z.ZodNumber;
339
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
340
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
347
341
  scoreId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
342
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
343
+ spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
344
+ scorerId: z.ZodString;
348
345
  scorerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
346
  scorerVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
350
347
  scoreSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
348
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
+ score: z.ZodNumber;
351
350
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
352
351
  scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
352
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
353
353
  }, z.core.$strip>;
354
354
  }, z.core.$strip>, z.ZodObject<{
355
355
  success: z.ZodBoolean;
@@ -357,23 +357,16 @@ export declare const CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute,
357
357
  } & {
358
358
  readonly _mastraSchemaRoute: true;
359
359
  };
360
- export declare const GET_SCORE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
360
+ export declare const GET_SCORE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
361
361
  method: string;
362
362
  path: `/${string}`;
363
363
  responseType: "json";
364
- streamFormat?: "sse" | "stream";
364
+ streamFormat?: 'sse' | 'stream';
365
365
  sseFlushOnConnect?: boolean;
366
366
  handler(params: {
367
367
  scoreId: string;
368
368
  } & ServerContext): Promise<{
369
369
  score: {
370
- timestamp: Date;
371
- scorerId: string;
372
- score: number;
373
- scoreTraceId?: string | null | undefined;
374
- metadata?: Record<string, unknown> | null | undefined;
375
- executionSource?: string | null | undefined;
376
- tags?: string[] | null | undefined;
377
370
  entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
378
371
  entityId?: string | null | undefined;
379
372
  entityName?: string | null | undefined;
@@ -397,14 +390,21 @@ export declare const GET_SCORE: Omit<import("@mastra/core/server").ApiRoute, "pa
397
390
  parentEntityVersionId?: string | null | undefined;
398
391
  rootEntityVersionId?: string | null | undefined;
399
392
  experimentId?: string | null | undefined;
393
+ executionSource?: string | null | undefined;
394
+ tags?: string[] | null | undefined;
400
395
  scoreId?: string | null | undefined;
396
+ timestamp: Date;
401
397
  traceId?: string | null | undefined;
402
398
  spanId?: string | null | undefined;
399
+ scorerId: string;
403
400
  scorerName?: string | null | undefined;
404
401
  scorerVersion?: string | null | undefined;
405
402
  scoreSource?: string | null | undefined;
406
403
  source?: string | null | undefined;
404
+ score: number;
407
405
  reason?: string | null | undefined;
406
+ scoreTraceId?: string | null | undefined;
407
+ metadata?: Record<string, unknown> | null | undefined;
408
408
  } | null;
409
409
  }>;
410
410
  pathParamSchema?: z.ZodType;
@@ -421,10 +421,6 @@ export declare const GET_SCORE: Omit<import("@mastra/core/server").ApiRoute, "pa
421
421
  scoreId: z.ZodString;
422
422
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
423
423
  score: z.ZodNullable<z.ZodObject<{
424
- scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
425
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
426
- executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
427
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
428
424
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
429
425
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
430
426
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -448,6 +444,8 @@ export declare const GET_SCORE: Omit<import("@mastra/core/server").ApiRoute, "pa
448
444
  parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
449
445
  rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
450
446
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
447
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
448
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
451
449
  scoreId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
450
  timestamp: z.ZodDate;
453
451
  traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -459,26 +457,24 @@ export declare const GET_SCORE: Omit<import("@mastra/core/server").ApiRoute, "pa
459
457
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
460
458
  score: z.ZodNumber;
461
459
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
460
+ scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
461
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
462
462
  }, z.core.$strip>>;
463
463
  }, z.core.$strip>> | undefined;
464
464
  } & {
465
465
  readonly _mastraSchemaRoute: true;
466
466
  };
467
- export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
467
+ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
468
468
  method: string;
469
469
  path: `/${string}`;
470
470
  responseType: "json";
471
- streamFormat?: "sse" | "stream";
471
+ streamFormat?: 'sse' | 'stream';
472
472
  sseFlushOnConnect?: boolean;
473
473
  handler(params: {
474
474
  scorerId: string;
475
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
476
475
  scoreSource?: string | undefined;
476
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
477
477
  filters?: {
478
- scorerId?: string | string[] | undefined;
479
- scoreSource?: string | undefined;
480
- metadata?: Record<string, unknown> | null | undefined;
481
- source?: string | undefined;
482
478
  timestamp?: {
483
479
  start?: Date | undefined;
484
480
  end?: Date | undefined;
@@ -508,8 +504,12 @@ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").Api
508
504
  requestId?: string | undefined;
509
505
  executionSource?: string | undefined;
510
506
  tags?: string[] | undefined;
507
+ scorerId?: string | string[] | undefined;
508
+ scoreSource?: string | undefined;
509
+ metadata?: Record<string, unknown> | null | undefined;
510
+ source?: string | undefined;
511
511
  } | undefined;
512
- comparePeriod?: "previous_period" | "previous_day" | "previous_week" | undefined;
512
+ comparePeriod?: "previous_day" | "previous_period" | "previous_week" | undefined;
513
513
  } & ServerContext): Promise<{
514
514
  value: number | null;
515
515
  previousValue?: number | null | undefined;
@@ -529,19 +529,15 @@ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").Api
529
529
  scorerId: z.ZodString;
530
530
  scoreSource: z.ZodOptional<z.ZodString>;
531
531
  aggregation: z.ZodEnum<{
532
- sum: "sum";
533
532
  avg: "avg";
534
- min: "min";
535
- max: "max";
536
533
  count: "count";
537
534
  count_distinct: "count_distinct";
538
535
  last: "last";
536
+ max: "max";
537
+ min: "min";
538
+ sum: "sum";
539
539
  }>;
540
540
  filters: z.ZodOptional<z.ZodObject<{
541
- scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
542
- scoreSource: z.ZodOptional<z.ZodString>;
543
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
544
- source: z.ZodOptional<z.ZodString>;
545
541
  timestamp: z.ZodOptional<z.ZodObject<{
546
542
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
547
543
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -571,10 +567,14 @@ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").Api
571
567
  requestId: z.ZodOptional<z.ZodString>;
572
568
  executionSource: z.ZodOptional<z.ZodString>;
573
569
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
570
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
571
+ scoreSource: z.ZodOptional<z.ZodString>;
572
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
573
+ source: z.ZodOptional<z.ZodString>;
574
574
  }, z.core.$strip>>;
575
575
  comparePeriod: z.ZodOptional<z.ZodEnum<{
576
- previous_period: "previous_period";
577
576
  previous_day: "previous_day";
577
+ previous_period: "previous_period";
578
578
  previous_week: "previous_week";
579
579
  }>>;
580
580
  }, z.core.$strip>, z.ZodObject<{
@@ -585,22 +585,18 @@ export declare const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").Api
585
585
  } & {
586
586
  readonly _mastraSchemaRoute: true;
587
587
  };
588
- export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
588
+ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
589
589
  method: string;
590
590
  path: `/${string}`;
591
591
  responseType: "json";
592
- streamFormat?: "sse" | "stream";
592
+ streamFormat?: 'sse' | 'stream';
593
593
  sseFlushOnConnect?: boolean;
594
594
  handler(params: {
595
595
  scorerId: string;
596
- groupBy: string[];
597
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
598
596
  scoreSource?: string | undefined;
597
+ groupBy: string[];
598
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
599
599
  filters?: {
600
- scorerId?: string | string[] | undefined;
601
- scoreSource?: string | undefined;
602
- metadata?: Record<string, unknown> | null | undefined;
603
- source?: string | undefined;
604
600
  timestamp?: {
605
601
  start?: Date | undefined;
606
602
  end?: Date | undefined;
@@ -630,6 +626,10 @@ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").Api
630
626
  requestId?: string | undefined;
631
627
  executionSource?: string | undefined;
632
628
  tags?: string[] | undefined;
629
+ scorerId?: string | string[] | undefined;
630
+ scoreSource?: string | undefined;
631
+ metadata?: Record<string, unknown> | null | undefined;
632
+ source?: string | undefined;
633
633
  } | undefined;
634
634
  } & ServerContext): Promise<{
635
635
  groups: {
@@ -652,19 +652,15 @@ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").Api
652
652
  scoreSource: z.ZodOptional<z.ZodString>;
653
653
  groupBy: z.ZodArray<z.ZodString>;
654
654
  aggregation: z.ZodEnum<{
655
- sum: "sum";
656
655
  avg: "avg";
657
- min: "min";
658
- max: "max";
659
656
  count: "count";
660
657
  count_distinct: "count_distinct";
661
658
  last: "last";
659
+ max: "max";
660
+ min: "min";
661
+ sum: "sum";
662
662
  }>;
663
663
  filters: z.ZodOptional<z.ZodObject<{
664
- scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
665
- scoreSource: z.ZodOptional<z.ZodString>;
666
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
667
- source: z.ZodOptional<z.ZodString>;
668
664
  timestamp: z.ZodOptional<z.ZodObject<{
669
665
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
670
666
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -694,6 +690,10 @@ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").Api
694
690
  requestId: z.ZodOptional<z.ZodString>;
695
691
  executionSource: z.ZodOptional<z.ZodString>;
696
692
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
693
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
694
+ scoreSource: z.ZodOptional<z.ZodString>;
695
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
696
+ source: z.ZodOptional<z.ZodString>;
697
697
  }, z.core.$strip>>;
698
698
  }, z.core.$strip>, z.ZodObject<{
699
699
  groups: z.ZodArray<z.ZodObject<{
@@ -704,22 +704,18 @@ export declare const GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").Api
704
704
  } & {
705
705
  readonly _mastraSchemaRoute: true;
706
706
  };
707
- export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
707
+ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
708
708
  method: string;
709
709
  path: `/${string}`;
710
710
  responseType: "json";
711
- streamFormat?: "sse" | "stream";
711
+ streamFormat?: 'sse' | 'stream';
712
712
  sseFlushOnConnect?: boolean;
713
713
  handler(params: {
714
714
  scorerId: string;
715
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
716
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
717
715
  scoreSource?: string | undefined;
716
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
717
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
718
718
  filters?: {
719
- scorerId?: string | string[] | undefined;
720
- scoreSource?: string | undefined;
721
- metadata?: Record<string, unknown> | null | undefined;
722
- source?: string | undefined;
723
719
  timestamp?: {
724
720
  start?: Date | undefined;
725
721
  end?: Date | undefined;
@@ -749,6 +745,10 @@ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").A
749
745
  requestId?: string | undefined;
750
746
  executionSource?: string | undefined;
751
747
  tags?: string[] | undefined;
748
+ scorerId?: string | string[] | undefined;
749
+ scoreSource?: string | undefined;
750
+ metadata?: Record<string, unknown> | null | undefined;
751
+ source?: string | undefined;
752
752
  } | undefined;
753
753
  groupBy?: string[] | undefined;
754
754
  } & ServerContext): Promise<{
@@ -774,26 +774,22 @@ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").A
774
774
  scorerId: z.ZodString;
775
775
  scoreSource: z.ZodOptional<z.ZodString>;
776
776
  interval: z.ZodEnum<{
777
- "1m": "1m";
778
- "5m": "5m";
779
777
  "15m": "15m";
780
- "1h": "1h";
781
778
  "1d": "1d";
779
+ "1h": "1h";
780
+ "1m": "1m";
781
+ "5m": "5m";
782
782
  }>;
783
783
  aggregation: z.ZodEnum<{
784
- sum: "sum";
785
784
  avg: "avg";
786
- min: "min";
787
- max: "max";
788
785
  count: "count";
789
786
  count_distinct: "count_distinct";
790
787
  last: "last";
788
+ max: "max";
789
+ min: "min";
790
+ sum: "sum";
791
791
  }>;
792
792
  filters: z.ZodOptional<z.ZodObject<{
793
- scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
794
- scoreSource: z.ZodOptional<z.ZodString>;
795
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
796
- source: z.ZodOptional<z.ZodString>;
797
793
  timestamp: z.ZodOptional<z.ZodObject<{
798
794
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
799
795
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -823,6 +819,10 @@ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").A
823
819
  requestId: z.ZodOptional<z.ZodString>;
824
820
  executionSource: z.ZodOptional<z.ZodString>;
825
821
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
822
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
823
+ scoreSource: z.ZodOptional<z.ZodString>;
824
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
825
+ source: z.ZodOptional<z.ZodString>;
826
826
  }, z.core.$strip>>;
827
827
  groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
828
828
  }, z.core.$strip>, z.ZodObject<{
@@ -837,22 +837,18 @@ export declare const GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").A
837
837
  } & {
838
838
  readonly _mastraSchemaRoute: true;
839
839
  };
840
- export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
840
+ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
841
841
  method: string;
842
842
  path: `/${string}`;
843
843
  responseType: "json";
844
- streamFormat?: "sse" | "stream";
844
+ streamFormat?: 'sse' | 'stream';
845
845
  sseFlushOnConnect?: boolean;
846
846
  handler(params: {
847
847
  scorerId: string;
848
- percentiles: number[];
849
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
850
848
  scoreSource?: string | undefined;
849
+ percentiles: number[];
850
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
851
851
  filters?: {
852
- scorerId?: string | string[] | undefined;
853
- scoreSource?: string | undefined;
854
- metadata?: Record<string, unknown> | null | undefined;
855
- source?: string | undefined;
856
852
  timestamp?: {
857
853
  start?: Date | undefined;
858
854
  end?: Date | undefined;
@@ -882,6 +878,10 @@ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").A
882
878
  requestId?: string | undefined;
883
879
  executionSource?: string | undefined;
884
880
  tags?: string[] | undefined;
881
+ scorerId?: string | string[] | undefined;
882
+ scoreSource?: string | undefined;
883
+ metadata?: Record<string, unknown> | null | undefined;
884
+ source?: string | undefined;
885
885
  } | undefined;
886
886
  } & ServerContext): Promise<{
887
887
  series: {
@@ -907,17 +907,13 @@ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").A
907
907
  scoreSource: z.ZodOptional<z.ZodString>;
908
908
  percentiles: z.ZodArray<z.ZodNumber>;
909
909
  interval: z.ZodEnum<{
910
- "1m": "1m";
911
- "5m": "5m";
912
910
  "15m": "15m";
913
- "1h": "1h";
914
911
  "1d": "1d";
912
+ "1h": "1h";
913
+ "1m": "1m";
914
+ "5m": "5m";
915
915
  }>;
916
916
  filters: z.ZodOptional<z.ZodObject<{
917
- scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
918
- scoreSource: z.ZodOptional<z.ZodString>;
919
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
920
- source: z.ZodOptional<z.ZodString>;
921
917
  timestamp: z.ZodOptional<z.ZodObject<{
922
918
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
923
919
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -947,6 +943,10 @@ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").A
947
943
  requestId: z.ZodOptional<z.ZodString>;
948
944
  executionSource: z.ZodOptional<z.ZodString>;
949
945
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
946
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
947
+ scoreSource: z.ZodOptional<z.ZodString>;
948
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
949
+ source: z.ZodOptional<z.ZodString>;
950
950
  }, z.core.$strip>>;
951
951
  }, z.core.$strip>, z.ZodObject<{
952
952
  series: z.ZodArray<z.ZodObject<{
@@ -960,21 +960,25 @@ export declare const GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").A
960
960
  } & {
961
961
  readonly _mastraSchemaRoute: true;
962
962
  };
963
- export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
963
+ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
964
964
  method: string;
965
965
  path: `/${string}`;
966
966
  responseType: "json";
967
- streamFormat?: "sse" | "stream";
967
+ streamFormat?: 'sse' | 'stream';
968
968
  sseFlushOnConnect?: boolean;
969
969
  handler(params: Record<string, unknown> & ServerContext): Promise<{
970
- feedback: {
971
- timestamp: Date;
972
- feedbackType: string;
973
- value: string | number;
974
- sourceId?: string | null | undefined;
975
- metadata?: Record<string, unknown> | null | undefined;
976
- executionSource?: string | null | undefined;
977
- tags?: string[] | null | undefined;
970
+ pagination?: {
971
+ total: number;
972
+ page: number;
973
+ perPage: number | false;
974
+ hasMore: boolean;
975
+ } | undefined;
976
+ delta?: {
977
+ limit: number;
978
+ hasMore: boolean;
979
+ } | undefined;
980
+ deltaCursor?: string | undefined;
981
+ feedback: {
978
982
  entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
979
983
  entityId?: string | null | undefined;
980
984
  entityName?: string | null | undefined;
@@ -998,25 +1002,21 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
998
1002
  parentEntityVersionId?: string | null | undefined;
999
1003
  rootEntityVersionId?: string | null | undefined;
1000
1004
  experimentId?: string | null | undefined;
1005
+ executionSource?: string | null | undefined;
1006
+ tags?: string[] | null | undefined;
1001
1007
  feedbackId?: string | null | undefined;
1008
+ timestamp: Date;
1002
1009
  traceId?: string | null | undefined;
1003
1010
  spanId?: string | null | undefined;
1004
1011
  feedbackSource?: string | null | undefined;
1005
1012
  source?: string | null | undefined;
1013
+ feedbackType: string;
1014
+ value: string | number;
1006
1015
  comment?: string | null | undefined;
1007
1016
  feedbackUserId?: string | null | undefined;
1017
+ sourceId?: string | null | undefined;
1018
+ metadata?: Record<string, unknown> | null | undefined;
1008
1019
  }[];
1009
- pagination?: {
1010
- total: number;
1011
- page: number;
1012
- perPage: number | false;
1013
- hasMore: boolean;
1014
- } | undefined;
1015
- delta?: {
1016
- limit: number;
1017
- hasMore: boolean;
1018
- } | undefined;
1019
- deltaCursor?: string | undefined;
1020
1020
  }>;
1021
1021
  pathParamSchema?: z.ZodType;
1022
1022
  queryParamSchema?: z.ZodType;
@@ -1043,10 +1043,6 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
1043
1043
  }, z.core.$strip>>;
1044
1044
  deltaCursor: z.ZodOptional<z.ZodString>;
1045
1045
  feedback: z.ZodArray<z.ZodObject<{
1046
- sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1047
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1048
- executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1049
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1050
1046
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1051
1047
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1052
1048
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1070,6 +1066,8 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
1070
1066
  parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1071
1067
  rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1072
1068
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1069
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1070
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1073
1071
  feedbackId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1074
1072
  timestamp: z.ZodDate;
1075
1073
  traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1080,29 +1078,22 @@ export declare const LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute,
1080
1078
  value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1081
1079
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1082
1080
  feedbackUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1081
+ sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1082
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1083
1083
  }, z.core.$strip>>;
1084
1084
  }, z.core.$strip>> | undefined;
1085
1085
  } & {
1086
1086
  readonly _mastraSchemaRoute: true;
1087
1087
  };
1088
- export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1088
+ export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1089
1089
  method: string;
1090
1090
  path: `/${string}`;
1091
1091
  responseType: "json";
1092
- streamFormat?: "sse" | "stream";
1092
+ streamFormat?: 'sse' | 'stream';
1093
1093
  sseFlushOnConnect?: boolean;
1094
1094
  handler(params: {
1095
1095
  feedback: {
1096
- value: string | number;
1097
- feedbackType: string;
1098
- runId?: string | null | undefined;
1099
1096
  entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1100
- tags?: string[] | null | undefined;
1101
- traceId?: string | null | undefined;
1102
- spanId?: string | null | undefined;
1103
- source?: string | null | undefined;
1104
- metadata?: Record<string, unknown> | null | undefined;
1105
- executionSource?: string | null | undefined;
1106
1097
  entityId?: string | null | undefined;
1107
1098
  entityName?: string | null | undefined;
1108
1099
  parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
@@ -1114,6 +1105,7 @@ export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1114
1105
  userId?: string | null | undefined;
1115
1106
  organizationId?: string | null | undefined;
1116
1107
  resourceId?: string | null | undefined;
1108
+ runId?: string | null | undefined;
1117
1109
  sessionId?: string | null | undefined;
1118
1110
  threadId?: string | null | undefined;
1119
1111
  requestId?: string | null | undefined;
@@ -1124,11 +1116,19 @@ export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1124
1116
  parentEntityVersionId?: string | null | undefined;
1125
1117
  rootEntityVersionId?: string | null | undefined;
1126
1118
  experimentId?: string | null | undefined;
1119
+ executionSource?: string | null | undefined;
1120
+ tags?: string[] | null | undefined;
1127
1121
  feedbackId?: string | null | undefined;
1122
+ traceId?: string | null | undefined;
1123
+ spanId?: string | null | undefined;
1128
1124
  feedbackSource?: string | null | undefined;
1125
+ source?: string | null | undefined;
1126
+ feedbackType: string;
1127
+ value: string | number;
1129
1128
  comment?: string | null | undefined;
1130
1129
  feedbackUserId?: string | null | undefined;
1131
1130
  sourceId?: string | null | undefined;
1131
+ metadata?: Record<string, unknown> | null | undefined;
1132
1132
  };
1133
1133
  } & ServerContext): Promise<{
1134
1134
  success: boolean;
@@ -1145,15 +1145,7 @@ export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1145
1145
  onValidationError?: import("@mastra/core/server").ValidationErrorHook;
1146
1146
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1147
1147
  feedback: z.ZodObject<{
1148
- runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1149
- value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1150
1148
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1151
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1152
- traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1153
- spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1154
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1155
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1156
- executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1157
1149
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1158
1150
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1159
1151
  parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
@@ -1165,6 +1157,7 @@ export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1165
1157
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1166
1158
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1167
1159
  resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1160
+ runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1168
1161
  sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1169
1162
  threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1170
1163
  requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1175,12 +1168,19 @@ export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1175
1168
  parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1176
1169
  rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1177
1170
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1178
- feedbackType: z.ZodString;
1171
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1172
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1179
1173
  feedbackId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1174
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1175
+ spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1180
1176
  feedbackSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1177
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1178
+ feedbackType: z.ZodString;
1179
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
1181
1180
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1182
1181
  feedbackUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1183
1182
  sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1183
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1184
1184
  }, z.core.$strip>;
1185
1185
  }, z.core.$strip>, z.ZodObject<{
1186
1186
  success: z.ZodBoolean;
@@ -1188,21 +1188,17 @@ export declare const CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRout
1188
1188
  } & {
1189
1189
  readonly _mastraSchemaRoute: true;
1190
1190
  };
1191
- export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1191
+ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1192
1192
  method: string;
1193
1193
  path: `/${string}`;
1194
1194
  responseType: "json";
1195
- streamFormat?: "sse" | "stream";
1195
+ streamFormat?: 'sse' | 'stream';
1196
1196
  sseFlushOnConnect?: boolean;
1197
1197
  handler(params: {
1198
1198
  feedbackType: string;
1199
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
1200
1199
  feedbackSource?: string | undefined;
1200
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
1201
1201
  filters?: {
1202
- feedbackType?: string | string[] | undefined;
1203
- feedbackSource?: string | undefined;
1204
- source?: string | undefined;
1205
- feedbackUserId?: string | undefined;
1206
1202
  timestamp?: {
1207
1203
  start?: Date | undefined;
1208
1204
  end?: Date | undefined;
@@ -1232,8 +1228,12 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1232
1228
  requestId?: string | undefined;
1233
1229
  executionSource?: string | undefined;
1234
1230
  tags?: string[] | undefined;
1231
+ feedbackType?: string | string[] | undefined;
1232
+ feedbackSource?: string | undefined;
1233
+ source?: string | undefined;
1234
+ feedbackUserId?: string | undefined;
1235
1235
  } | undefined;
1236
- comparePeriod?: "previous_period" | "previous_day" | "previous_week" | undefined;
1236
+ comparePeriod?: "previous_day" | "previous_period" | "previous_week" | undefined;
1237
1237
  } & ServerContext): Promise<{
1238
1238
  value: number | null;
1239
1239
  previousValue?: number | null | undefined;
@@ -1253,19 +1253,15 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1253
1253
  feedbackType: z.ZodString;
1254
1254
  feedbackSource: z.ZodOptional<z.ZodString>;
1255
1255
  aggregation: z.ZodEnum<{
1256
- sum: "sum";
1257
1256
  avg: "avg";
1258
- min: "min";
1259
- max: "max";
1260
1257
  count: "count";
1261
1258
  count_distinct: "count_distinct";
1262
1259
  last: "last";
1260
+ max: "max";
1261
+ min: "min";
1262
+ sum: "sum";
1263
1263
  }>;
1264
1264
  filters: z.ZodOptional<z.ZodObject<{
1265
- feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1266
- feedbackSource: z.ZodOptional<z.ZodString>;
1267
- source: z.ZodOptional<z.ZodString>;
1268
- feedbackUserId: z.ZodOptional<z.ZodString>;
1269
1265
  timestamp: z.ZodOptional<z.ZodObject<{
1270
1266
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1271
1267
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -1295,10 +1291,14 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1295
1291
  requestId: z.ZodOptional<z.ZodString>;
1296
1292
  executionSource: z.ZodOptional<z.ZodString>;
1297
1293
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1294
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1295
+ feedbackSource: z.ZodOptional<z.ZodString>;
1296
+ source: z.ZodOptional<z.ZodString>;
1297
+ feedbackUserId: z.ZodOptional<z.ZodString>;
1298
1298
  }, z.core.$strip>>;
1299
1299
  comparePeriod: z.ZodOptional<z.ZodEnum<{
1300
- previous_period: "previous_period";
1301
1300
  previous_day: "previous_day";
1301
+ previous_period: "previous_period";
1302
1302
  previous_week: "previous_week";
1303
1303
  }>>;
1304
1304
  }, z.core.$strip>, z.ZodObject<{
@@ -1309,22 +1309,18 @@ export declare const GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").
1309
1309
  } & {
1310
1310
  readonly _mastraSchemaRoute: true;
1311
1311
  };
1312
- export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1312
+ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1313
1313
  method: string;
1314
1314
  path: `/${string}`;
1315
1315
  responseType: "json";
1316
- streamFormat?: "sse" | "stream";
1316
+ streamFormat?: 'sse' | 'stream';
1317
1317
  sseFlushOnConnect?: boolean;
1318
1318
  handler(params: {
1319
1319
  feedbackType: string;
1320
- groupBy: string[];
1321
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
1322
1320
  feedbackSource?: string | undefined;
1321
+ groupBy: string[];
1322
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
1323
1323
  filters?: {
1324
- feedbackType?: string | string[] | undefined;
1325
- feedbackSource?: string | undefined;
1326
- source?: string | undefined;
1327
- feedbackUserId?: string | undefined;
1328
1324
  timestamp?: {
1329
1325
  start?: Date | undefined;
1330
1326
  end?: Date | undefined;
@@ -1354,6 +1350,10 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1354
1350
  requestId?: string | undefined;
1355
1351
  executionSource?: string | undefined;
1356
1352
  tags?: string[] | undefined;
1353
+ feedbackType?: string | string[] | undefined;
1354
+ feedbackSource?: string | undefined;
1355
+ source?: string | undefined;
1356
+ feedbackUserId?: string | undefined;
1357
1357
  } | undefined;
1358
1358
  } & ServerContext): Promise<{
1359
1359
  groups: {
@@ -1376,19 +1376,15 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1376
1376
  feedbackSource: z.ZodOptional<z.ZodString>;
1377
1377
  groupBy: z.ZodArray<z.ZodString>;
1378
1378
  aggregation: z.ZodEnum<{
1379
- sum: "sum";
1380
1379
  avg: "avg";
1381
- min: "min";
1382
- max: "max";
1383
1380
  count: "count";
1384
1381
  count_distinct: "count_distinct";
1385
1382
  last: "last";
1383
+ max: "max";
1384
+ min: "min";
1385
+ sum: "sum";
1386
1386
  }>;
1387
1387
  filters: z.ZodOptional<z.ZodObject<{
1388
- feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1389
- feedbackSource: z.ZodOptional<z.ZodString>;
1390
- source: z.ZodOptional<z.ZodString>;
1391
- feedbackUserId: z.ZodOptional<z.ZodString>;
1392
1388
  timestamp: z.ZodOptional<z.ZodObject<{
1393
1389
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1394
1390
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -1418,6 +1414,10 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1418
1414
  requestId: z.ZodOptional<z.ZodString>;
1419
1415
  executionSource: z.ZodOptional<z.ZodString>;
1420
1416
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1417
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1418
+ feedbackSource: z.ZodOptional<z.ZodString>;
1419
+ source: z.ZodOptional<z.ZodString>;
1420
+ feedbackUserId: z.ZodOptional<z.ZodString>;
1421
1421
  }, z.core.$strip>>;
1422
1422
  }, z.core.$strip>, z.ZodObject<{
1423
1423
  groups: z.ZodArray<z.ZodObject<{
@@ -1428,22 +1428,18 @@ export declare const GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").
1428
1428
  } & {
1429
1429
  readonly _mastraSchemaRoute: true;
1430
1430
  };
1431
- export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1431
+ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1432
1432
  method: string;
1433
1433
  path: `/${string}`;
1434
1434
  responseType: "json";
1435
- streamFormat?: "sse" | "stream";
1435
+ streamFormat?: 'sse' | 'stream';
1436
1436
  sseFlushOnConnect?: boolean;
1437
1437
  handler(params: {
1438
1438
  feedbackType: string;
1439
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
1440
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
1441
1439
  feedbackSource?: string | undefined;
1440
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
1441
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
1442
1442
  filters?: {
1443
- feedbackType?: string | string[] | undefined;
1444
- feedbackSource?: string | undefined;
1445
- source?: string | undefined;
1446
- feedbackUserId?: string | undefined;
1447
1443
  timestamp?: {
1448
1444
  start?: Date | undefined;
1449
1445
  end?: Date | undefined;
@@ -1473,6 +1469,10 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1473
1469
  requestId?: string | undefined;
1474
1470
  executionSource?: string | undefined;
1475
1471
  tags?: string[] | undefined;
1472
+ feedbackType?: string | string[] | undefined;
1473
+ feedbackSource?: string | undefined;
1474
+ source?: string | undefined;
1475
+ feedbackUserId?: string | undefined;
1476
1476
  } | undefined;
1477
1477
  groupBy?: string[] | undefined;
1478
1478
  } & ServerContext): Promise<{
@@ -1498,26 +1498,22 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1498
1498
  feedbackType: z.ZodString;
1499
1499
  feedbackSource: z.ZodOptional<z.ZodString>;
1500
1500
  interval: z.ZodEnum<{
1501
- "1m": "1m";
1502
- "5m": "5m";
1503
1501
  "15m": "15m";
1504
- "1h": "1h";
1505
1502
  "1d": "1d";
1503
+ "1h": "1h";
1504
+ "1m": "1m";
1505
+ "5m": "5m";
1506
1506
  }>;
1507
1507
  aggregation: z.ZodEnum<{
1508
- sum: "sum";
1509
1508
  avg: "avg";
1510
- min: "min";
1511
- max: "max";
1512
1509
  count: "count";
1513
1510
  count_distinct: "count_distinct";
1514
1511
  last: "last";
1512
+ max: "max";
1513
+ min: "min";
1514
+ sum: "sum";
1515
1515
  }>;
1516
1516
  filters: z.ZodOptional<z.ZodObject<{
1517
- feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1518
- feedbackSource: z.ZodOptional<z.ZodString>;
1519
- source: z.ZodOptional<z.ZodString>;
1520
- feedbackUserId: z.ZodOptional<z.ZodString>;
1521
1517
  timestamp: z.ZodOptional<z.ZodObject<{
1522
1518
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1523
1519
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -1547,6 +1543,10 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1547
1543
  requestId: z.ZodOptional<z.ZodString>;
1548
1544
  executionSource: z.ZodOptional<z.ZodString>;
1549
1545
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1546
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1547
+ feedbackSource: z.ZodOptional<z.ZodString>;
1548
+ source: z.ZodOptional<z.ZodString>;
1549
+ feedbackUserId: z.ZodOptional<z.ZodString>;
1550
1550
  }, z.core.$strip>>;
1551
1551
  groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
1552
1552
  }, z.core.$strip>, z.ZodObject<{
@@ -1561,22 +1561,18 @@ export declare const GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server"
1561
1561
  } & {
1562
1562
  readonly _mastraSchemaRoute: true;
1563
1563
  };
1564
- export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1564
+ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1565
1565
  method: string;
1566
1566
  path: `/${string}`;
1567
1567
  responseType: "json";
1568
- streamFormat?: "sse" | "stream";
1568
+ streamFormat?: 'sse' | 'stream';
1569
1569
  sseFlushOnConnect?: boolean;
1570
1570
  handler(params: {
1571
1571
  feedbackType: string;
1572
- percentiles: number[];
1573
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
1574
1572
  feedbackSource?: string | undefined;
1573
+ percentiles: number[];
1574
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
1575
1575
  filters?: {
1576
- feedbackType?: string | string[] | undefined;
1577
- feedbackSource?: string | undefined;
1578
- source?: string | undefined;
1579
- feedbackUserId?: string | undefined;
1580
1576
  timestamp?: {
1581
1577
  start?: Date | undefined;
1582
1578
  end?: Date | undefined;
@@ -1606,6 +1602,10 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1606
1602
  requestId?: string | undefined;
1607
1603
  executionSource?: string | undefined;
1608
1604
  tags?: string[] | undefined;
1605
+ feedbackType?: string | string[] | undefined;
1606
+ feedbackSource?: string | undefined;
1607
+ source?: string | undefined;
1608
+ feedbackUserId?: string | undefined;
1609
1609
  } | undefined;
1610
1610
  } & ServerContext): Promise<{
1611
1611
  series: {
@@ -1631,17 +1631,13 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1631
1631
  feedbackSource: z.ZodOptional<z.ZodString>;
1632
1632
  percentiles: z.ZodArray<z.ZodNumber>;
1633
1633
  interval: z.ZodEnum<{
1634
- "1m": "1m";
1635
- "5m": "5m";
1636
1634
  "15m": "15m";
1637
- "1h": "1h";
1638
1635
  "1d": "1d";
1636
+ "1h": "1h";
1637
+ "1m": "1m";
1638
+ "5m": "5m";
1639
1639
  }>;
1640
1640
  filters: z.ZodOptional<z.ZodObject<{
1641
- feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1642
- feedbackSource: z.ZodOptional<z.ZodString>;
1643
- source: z.ZodOptional<z.ZodString>;
1644
- feedbackUserId: z.ZodOptional<z.ZodString>;
1645
1641
  timestamp: z.ZodOptional<z.ZodObject<{
1646
1642
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1647
1643
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -1671,6 +1667,10 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1671
1667
  requestId: z.ZodOptional<z.ZodString>;
1672
1668
  executionSource: z.ZodOptional<z.ZodString>;
1673
1669
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1670
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1671
+ feedbackSource: z.ZodOptional<z.ZodString>;
1672
+ source: z.ZodOptional<z.ZodString>;
1673
+ feedbackUserId: z.ZodOptional<z.ZodString>;
1674
1674
  }, z.core.$strip>>;
1675
1675
  }, z.core.$strip>, z.ZodObject<{
1676
1676
  series: z.ZodArray<z.ZodObject<{
@@ -1684,27 +1684,25 @@ export declare const GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server"
1684
1684
  } & {
1685
1685
  readonly _mastraSchemaRoute: true;
1686
1686
  };
1687
- export declare const LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1687
+ export declare const LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1688
1688
  method: string;
1689
1689
  path: `/${string}`;
1690
1690
  responseType: "json";
1691
- streamFormat?: "sse" | "stream";
1691
+ streamFormat?: 'sse' | 'stream';
1692
1692
  sseFlushOnConnect?: boolean;
1693
1693
  handler(params: Record<string, unknown> & ServerContext): Promise<{
1694
+ pagination?: {
1695
+ total: number;
1696
+ page: number;
1697
+ perPage: number | false;
1698
+ hasMore: boolean;
1699
+ } | undefined;
1700
+ delta?: {
1701
+ limit: number;
1702
+ hasMore: boolean;
1703
+ } | undefined;
1704
+ deltaCursor?: string | undefined;
1694
1705
  metrics: {
1695
- labels: Record<string, string>;
1696
- timestamp: Date;
1697
- name: string;
1698
- value: number;
1699
- source?: string | null | undefined;
1700
- provider?: string | null | undefined;
1701
- model?: string | null | undefined;
1702
- estimatedCost?: number | null | undefined;
1703
- costUnit?: string | null | undefined;
1704
- costMetadata?: Record<string, unknown> | null | undefined;
1705
- metadata?: Record<string, unknown> | null | undefined;
1706
- executionSource?: string | null | undefined;
1707
- tags?: string[] | null | undefined;
1708
1706
  entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
1709
1707
  entityId?: string | null | undefined;
1710
1708
  entityName?: string | null | undefined;
@@ -1728,21 +1726,23 @@ export declare const LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute,
1728
1726
  parentEntityVersionId?: string | null | undefined;
1729
1727
  rootEntityVersionId?: string | null | undefined;
1730
1728
  experimentId?: string | null | undefined;
1729
+ executionSource?: string | null | undefined;
1730
+ tags?: string[] | null | undefined;
1731
1731
  metricId?: string | null | undefined;
1732
+ timestamp: Date;
1733
+ name: string;
1734
+ value: number;
1732
1735
  traceId?: string | null | undefined;
1733
1736
  spanId?: string | null | undefined;
1737
+ source?: string | null | undefined;
1738
+ provider?: string | null | undefined;
1739
+ model?: string | null | undefined;
1740
+ estimatedCost?: number | null | undefined;
1741
+ costUnit?: string | null | undefined;
1742
+ costMetadata?: Record<string, unknown> | null | undefined;
1743
+ labels: Record<string, string>;
1744
+ metadata?: Record<string, unknown> | null | undefined;
1734
1745
  }[];
1735
- pagination?: {
1736
- total: number;
1737
- page: number;
1738
- perPage: number | false;
1739
- hasMore: boolean;
1740
- } | undefined;
1741
- delta?: {
1742
- limit: number;
1743
- hasMore: boolean;
1744
- } | undefined;
1745
- deltaCursor?: string | undefined;
1746
1746
  }>;
1747
1747
  pathParamSchema?: z.ZodType;
1748
1748
  queryParamSchema?: z.ZodType;
@@ -1769,16 +1769,6 @@ export declare const LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute,
1769
1769
  }, z.core.$strip>>;
1770
1770
  deltaCursor: z.ZodOptional<z.ZodString>;
1771
1771
  metrics: z.ZodArray<z.ZodObject<{
1772
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1773
- provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1774
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1775
- estimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1776
- costUnit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1777
- costMetadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>>;
1778
- labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1779
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1780
- executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1781
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1782
1772
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
1783
1773
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1784
1774
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1802,35 +1792,38 @@ export declare const LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute,
1802
1792
  parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1803
1793
  rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1804
1794
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1795
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1796
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1805
1797
  metricId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1806
1798
  timestamp: z.ZodDate;
1807
1799
  name: z.ZodString;
1808
1800
  value: z.ZodNumber;
1809
1801
  traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1810
1802
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1803
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1804
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1805
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1806
+ estimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1807
+ costUnit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1808
+ costMetadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>>;
1809
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1810
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1811
1811
  }, z.core.$strip>>;
1812
1812
  }, z.core.$strip>> | undefined;
1813
1813
  } & {
1814
1814
  readonly _mastraSchemaRoute: true;
1815
1815
  };
1816
- export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1816
+ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1817
1817
  method: string;
1818
1818
  path: `/${string}`;
1819
1819
  responseType: "json";
1820
- streamFormat?: "sse" | "stream";
1820
+ streamFormat?: 'sse' | 'stream';
1821
1821
  sseFlushOnConnect?: boolean;
1822
1822
  handler(params: {
1823
1823
  name: string[];
1824
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
1825
- distinctColumn?: "name" | "resourceId" | "model" | "provider" | "threadId" | "entityType" | "entityName" | "parentEntityType" | "parentEntityName" | "rootEntityType" | "rootEntityName" | "environment" | "serviceName" | "executionSource" | undefined;
1824
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
1825
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
1826
1826
  filters?: {
1827
- traceIds?: string[] | undefined;
1828
- name?: string[] | undefined;
1829
- source?: string | undefined;
1830
- provider?: string | undefined;
1831
- model?: string | undefined;
1832
- costUnit?: string | undefined;
1833
- labels?: Record<string, string> | undefined;
1834
1827
  timestamp?: {
1835
1828
  start?: Date | undefined;
1836
1829
  end?: Date | undefined;
@@ -1860,16 +1853,23 @@ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").Ap
1860
1853
  requestId?: string | undefined;
1861
1854
  executionSource?: string | undefined;
1862
1855
  tags?: string[] | undefined;
1856
+ traceIds?: string[] | undefined;
1857
+ name?: string[] | undefined;
1858
+ source?: string | undefined;
1859
+ provider?: string | undefined;
1860
+ model?: string | undefined;
1861
+ costUnit?: string | undefined;
1862
+ labels?: Record<string, string> | undefined;
1863
1863
  } | undefined;
1864
- comparePeriod?: "previous_period" | "previous_day" | "previous_week" | undefined;
1864
+ comparePeriod?: "previous_day" | "previous_period" | "previous_week" | undefined;
1865
1865
  } & ServerContext): Promise<{
1866
1866
  value: number | null;
1867
+ previousValue?: number | null | undefined;
1868
+ changePercent?: number | null | undefined;
1867
1869
  estimatedCost?: number | null | undefined;
1868
1870
  costUnit?: string | null | undefined;
1869
1871
  previousEstimatedCost?: number | null | undefined;
1870
1872
  costChangePercent?: number | null | undefined;
1871
- previousValue?: number | null | undefined;
1872
- changePercent?: number | null | undefined;
1873
1873
  }>;
1874
1874
  pathParamSchema?: z.ZodType;
1875
1875
  queryParamSchema?: z.ZodType;
@@ -1884,38 +1884,31 @@ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").Ap
1884
1884
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
1885
1885
  name: z.ZodArray<z.ZodString>;
1886
1886
  aggregation: z.ZodEnum<{
1887
- sum: "sum";
1888
1887
  avg: "avg";
1889
- min: "min";
1890
- max: "max";
1891
1888
  count: "count";
1892
1889
  count_distinct: "count_distinct";
1893
1890
  last: "last";
1891
+ max: "max";
1892
+ min: "min";
1893
+ sum: "sum";
1894
1894
  }>;
1895
1895
  distinctColumn: z.ZodOptional<z.ZodEnum<{
1896
+ entityName: "entityName";
1896
1897
  entityType: "entityType";
1898
+ environment: "environment";
1897
1899
  executionSource: "executionSource";
1898
- entityName: "entityName";
1899
- parentEntityType: "parentEntityType";
1900
+ model: "model";
1901
+ name: "name";
1900
1902
  parentEntityName: "parentEntityName";
1901
- rootEntityType: "rootEntityType";
1902
- rootEntityName: "rootEntityName";
1903
+ parentEntityType: "parentEntityType";
1904
+ provider: "provider";
1903
1905
  resourceId: "resourceId";
1904
- threadId: "threadId";
1905
- environment: "environment";
1906
+ rootEntityName: "rootEntityName";
1907
+ rootEntityType: "rootEntityType";
1906
1908
  serviceName: "serviceName";
1907
- name: "name";
1908
- provider: "provider";
1909
- model: "model";
1909
+ threadId: "threadId";
1910
1910
  }>>;
1911
1911
  filters: z.ZodOptional<z.ZodObject<{
1912
- traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1913
- name: z.ZodOptional<z.ZodArray<z.ZodString>>;
1914
- source: z.ZodOptional<z.ZodString>;
1915
- provider: z.ZodOptional<z.ZodString>;
1916
- model: z.ZodOptional<z.ZodString>;
1917
- costUnit: z.ZodOptional<z.ZodString>;
1918
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1919
1912
  timestamp: z.ZodOptional<z.ZodObject<{
1920
1913
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1921
1914
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -1945,43 +1938,43 @@ export declare const GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").Ap
1945
1938
  requestId: z.ZodOptional<z.ZodString>;
1946
1939
  executionSource: z.ZodOptional<z.ZodString>;
1947
1940
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1941
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1942
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
1943
+ source: z.ZodOptional<z.ZodString>;
1944
+ provider: z.ZodOptional<z.ZodString>;
1945
+ model: z.ZodOptional<z.ZodString>;
1946
+ costUnit: z.ZodOptional<z.ZodString>;
1947
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1948
1948
  }, z.core.$strip>>;
1949
1949
  comparePeriod: z.ZodOptional<z.ZodEnum<{
1950
- previous_period: "previous_period";
1951
1950
  previous_day: "previous_day";
1951
+ previous_period: "previous_period";
1952
1952
  previous_week: "previous_week";
1953
1953
  }>>;
1954
1954
  }, z.core.$strip>, z.ZodObject<{
1955
+ value: z.ZodNullable<z.ZodNumber>;
1956
+ previousValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1957
+ changePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1955
1958
  estimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1956
1959
  costUnit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1957
1960
  previousEstimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1958
1961
  costChangePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1959
- value: z.ZodNullable<z.ZodNumber>;
1960
- previousValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1961
- changePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1962
1962
  }, z.core.$strip>> | undefined;
1963
1963
  } & {
1964
1964
  readonly _mastraSchemaRoute: true;
1965
1965
  };
1966
- export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
1966
+ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
1967
1967
  method: string;
1968
1968
  path: `/${string}`;
1969
1969
  responseType: "json";
1970
- streamFormat?: "sse" | "stream";
1970
+ streamFormat?: 'sse' | 'stream';
1971
1971
  sseFlushOnConnect?: boolean;
1972
1972
  handler(params: {
1973
1973
  name: string[];
1974
1974
  groupBy: string[];
1975
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
1976
- distinctColumn?: "name" | "resourceId" | "model" | "provider" | "threadId" | "entityType" | "entityName" | "parentEntityType" | "parentEntityName" | "rootEntityType" | "rootEntityName" | "environment" | "serviceName" | "executionSource" | undefined;
1975
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
1976
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
1977
1977
  filters?: {
1978
- traceIds?: string[] | undefined;
1979
- name?: string[] | undefined;
1980
- source?: string | undefined;
1981
- provider?: string | undefined;
1982
- model?: string | undefined;
1983
- costUnit?: string | undefined;
1984
- labels?: Record<string, string> | undefined;
1985
1978
  timestamp?: {
1986
1979
  start?: Date | undefined;
1987
1980
  end?: Date | undefined;
@@ -2011,6 +2004,13 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2011
2004
  requestId?: string | undefined;
2012
2005
  executionSource?: string | undefined;
2013
2006
  tags?: string[] | undefined;
2007
+ traceIds?: string[] | undefined;
2008
+ name?: string[] | undefined;
2009
+ source?: string | undefined;
2010
+ provider?: string | undefined;
2011
+ model?: string | undefined;
2012
+ costUnit?: string | undefined;
2013
+ labels?: Record<string, string> | undefined;
2014
2014
  } | undefined;
2015
2015
  limit?: number | undefined;
2016
2016
  orderDirection?: "ASC" | "DESC" | undefined;
@@ -2036,38 +2036,31 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2036
2036
  name: z.ZodArray<z.ZodString>;
2037
2037
  groupBy: z.ZodArray<z.ZodString>;
2038
2038
  aggregation: z.ZodEnum<{
2039
- sum: "sum";
2040
2039
  avg: "avg";
2041
- min: "min";
2042
- max: "max";
2043
2040
  count: "count";
2044
2041
  count_distinct: "count_distinct";
2045
2042
  last: "last";
2043
+ max: "max";
2044
+ min: "min";
2045
+ sum: "sum";
2046
2046
  }>;
2047
2047
  distinctColumn: z.ZodOptional<z.ZodEnum<{
2048
+ entityName: "entityName";
2048
2049
  entityType: "entityType";
2050
+ environment: "environment";
2049
2051
  executionSource: "executionSource";
2050
- entityName: "entityName";
2051
- parentEntityType: "parentEntityType";
2052
+ model: "model";
2053
+ name: "name";
2052
2054
  parentEntityName: "parentEntityName";
2053
- rootEntityType: "rootEntityType";
2054
- rootEntityName: "rootEntityName";
2055
+ parentEntityType: "parentEntityType";
2056
+ provider: "provider";
2055
2057
  resourceId: "resourceId";
2056
- threadId: "threadId";
2057
- environment: "environment";
2058
+ rootEntityName: "rootEntityName";
2059
+ rootEntityType: "rootEntityType";
2058
2060
  serviceName: "serviceName";
2059
- name: "name";
2060
- provider: "provider";
2061
- model: "model";
2061
+ threadId: "threadId";
2062
2062
  }>>;
2063
2063
  filters: z.ZodOptional<z.ZodObject<{
2064
- traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2065
- name: z.ZodOptional<z.ZodArray<z.ZodString>>;
2066
- source: z.ZodOptional<z.ZodString>;
2067
- provider: z.ZodOptional<z.ZodString>;
2068
- model: z.ZodOptional<z.ZodString>;
2069
- costUnit: z.ZodOptional<z.ZodString>;
2070
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2071
2064
  timestamp: z.ZodOptional<z.ZodObject<{
2072
2065
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2073
2066
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -2097,6 +2090,13 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2097
2090
  requestId: z.ZodOptional<z.ZodString>;
2098
2091
  executionSource: z.ZodOptional<z.ZodString>;
2099
2092
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2093
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2094
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
2095
+ source: z.ZodOptional<z.ZodString>;
2096
+ provider: z.ZodOptional<z.ZodString>;
2097
+ model: z.ZodOptional<z.ZodString>;
2098
+ costUnit: z.ZodOptional<z.ZodString>;
2099
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2100
2100
  }, z.core.$strip>>;
2101
2101
  limit: z.ZodOptional<z.ZodNumber>;
2102
2102
  orderDirection: z.ZodOptional<z.ZodEnum<{
@@ -2114,25 +2114,18 @@ export declare const GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").Ap
2114
2114
  } & {
2115
2115
  readonly _mastraSchemaRoute: true;
2116
2116
  };
2117
- export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2117
+ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2118
2118
  method: string;
2119
2119
  path: `/${string}`;
2120
2120
  responseType: "json";
2121
- streamFormat?: "sse" | "stream";
2121
+ streamFormat?: 'sse' | 'stream';
2122
2122
  sseFlushOnConnect?: boolean;
2123
2123
  handler(params: {
2124
2124
  name: string[];
2125
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
2126
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
2127
- distinctColumn?: "name" | "resourceId" | "model" | "provider" | "threadId" | "entityType" | "entityName" | "parentEntityType" | "parentEntityName" | "rootEntityType" | "rootEntityName" | "environment" | "serviceName" | "executionSource" | undefined;
2125
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
2126
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
2127
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
2128
2128
  filters?: {
2129
- traceIds?: string[] | undefined;
2130
- name?: string[] | undefined;
2131
- source?: string | undefined;
2132
- provider?: string | undefined;
2133
- model?: string | undefined;
2134
- costUnit?: string | undefined;
2135
- labels?: Record<string, string> | undefined;
2136
2129
  timestamp?: {
2137
2130
  start?: Date | undefined;
2138
2131
  end?: Date | undefined;
@@ -2162,17 +2155,24 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2162
2155
  requestId?: string | undefined;
2163
2156
  executionSource?: string | undefined;
2164
2157
  tags?: string[] | undefined;
2158
+ traceIds?: string[] | undefined;
2159
+ name?: string[] | undefined;
2160
+ source?: string | undefined;
2161
+ provider?: string | undefined;
2162
+ model?: string | undefined;
2163
+ costUnit?: string | undefined;
2164
+ labels?: Record<string, string> | undefined;
2165
2165
  } | undefined;
2166
2166
  groupBy?: string[] | undefined;
2167
2167
  } & ServerContext): Promise<{
2168
2168
  series: {
2169
2169
  name: string;
2170
+ costUnit?: string | null | undefined;
2170
2171
  points: {
2171
2172
  timestamp: Date;
2172
2173
  value: number;
2173
2174
  estimatedCost?: number | null | undefined;
2174
2175
  }[];
2175
- costUnit?: string | null | undefined;
2176
2176
  }[];
2177
2177
  }>;
2178
2178
  pathParamSchema?: z.ZodType;
@@ -2188,45 +2188,38 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2188
2188
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2189
2189
  name: z.ZodArray<z.ZodString>;
2190
2190
  interval: z.ZodEnum<{
2191
- "1m": "1m";
2192
- "5m": "5m";
2193
2191
  "15m": "15m";
2194
- "1h": "1h";
2195
2192
  "1d": "1d";
2193
+ "1h": "1h";
2194
+ "1m": "1m";
2195
+ "5m": "5m";
2196
2196
  }>;
2197
2197
  aggregation: z.ZodEnum<{
2198
- sum: "sum";
2199
2198
  avg: "avg";
2200
- min: "min";
2201
- max: "max";
2202
2199
  count: "count";
2203
2200
  count_distinct: "count_distinct";
2204
2201
  last: "last";
2202
+ max: "max";
2203
+ min: "min";
2204
+ sum: "sum";
2205
2205
  }>;
2206
2206
  distinctColumn: z.ZodOptional<z.ZodEnum<{
2207
+ entityName: "entityName";
2207
2208
  entityType: "entityType";
2209
+ environment: "environment";
2208
2210
  executionSource: "executionSource";
2209
- entityName: "entityName";
2210
- parentEntityType: "parentEntityType";
2211
+ model: "model";
2212
+ name: "name";
2211
2213
  parentEntityName: "parentEntityName";
2212
- rootEntityType: "rootEntityType";
2213
- rootEntityName: "rootEntityName";
2214
+ parentEntityType: "parentEntityType";
2215
+ provider: "provider";
2214
2216
  resourceId: "resourceId";
2215
- threadId: "threadId";
2216
- environment: "environment";
2217
+ rootEntityName: "rootEntityName";
2218
+ rootEntityType: "rootEntityType";
2217
2219
  serviceName: "serviceName";
2218
- name: "name";
2219
- provider: "provider";
2220
- model: "model";
2220
+ threadId: "threadId";
2221
2221
  }>>;
2222
2222
  filters: z.ZodOptional<z.ZodObject<{
2223
- traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2224
- name: z.ZodOptional<z.ZodArray<z.ZodString>>;
2225
- source: z.ZodOptional<z.ZodString>;
2226
- provider: z.ZodOptional<z.ZodString>;
2227
- model: z.ZodOptional<z.ZodString>;
2228
- costUnit: z.ZodOptional<z.ZodString>;
2229
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2230
2223
  timestamp: z.ZodOptional<z.ZodObject<{
2231
2224
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2232
2225
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -2256,6 +2249,13 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2256
2249
  requestId: z.ZodOptional<z.ZodString>;
2257
2250
  executionSource: z.ZodOptional<z.ZodString>;
2258
2251
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2252
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2253
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
2254
+ source: z.ZodOptional<z.ZodString>;
2255
+ provider: z.ZodOptional<z.ZodString>;
2256
+ model: z.ZodOptional<z.ZodString>;
2257
+ costUnit: z.ZodOptional<z.ZodString>;
2258
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2259
2259
  }, z.core.$strip>>;
2260
2260
  groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
2261
2261
  }, z.core.$strip>, z.ZodObject<{
@@ -2272,24 +2272,17 @@ export declare const GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").
2272
2272
  } & {
2273
2273
  readonly _mastraSchemaRoute: true;
2274
2274
  };
2275
- export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2275
+ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2276
2276
  method: string;
2277
2277
  path: `/${string}`;
2278
2278
  responseType: "json";
2279
- streamFormat?: "sse" | "stream";
2279
+ streamFormat?: 'sse' | 'stream';
2280
2280
  sseFlushOnConnect?: boolean;
2281
2281
  handler(params: {
2282
2282
  name: string;
2283
2283
  percentiles: number[];
2284
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
2284
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
2285
2285
  filters?: {
2286
- traceIds?: string[] | undefined;
2287
- name?: string[] | undefined;
2288
- source?: string | undefined;
2289
- provider?: string | undefined;
2290
- model?: string | undefined;
2291
- costUnit?: string | undefined;
2292
- labels?: Record<string, string> | undefined;
2293
2286
  timestamp?: {
2294
2287
  start?: Date | undefined;
2295
2288
  end?: Date | undefined;
@@ -2319,6 +2312,13 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2319
2312
  requestId?: string | undefined;
2320
2313
  executionSource?: string | undefined;
2321
2314
  tags?: string[] | undefined;
2315
+ traceIds?: string[] | undefined;
2316
+ name?: string[] | undefined;
2317
+ source?: string | undefined;
2318
+ provider?: string | undefined;
2319
+ model?: string | undefined;
2320
+ costUnit?: string | undefined;
2321
+ labels?: Record<string, string> | undefined;
2322
2322
  } | undefined;
2323
2323
  } & ServerContext): Promise<{
2324
2324
  series: {
@@ -2343,20 +2343,13 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2343
2343
  name: z.ZodString;
2344
2344
  percentiles: z.ZodArray<z.ZodNumber>;
2345
2345
  interval: z.ZodEnum<{
2346
- "1m": "1m";
2347
- "5m": "5m";
2348
2346
  "15m": "15m";
2349
- "1h": "1h";
2350
2347
  "1d": "1d";
2348
+ "1h": "1h";
2349
+ "1m": "1m";
2350
+ "5m": "5m";
2351
2351
  }>;
2352
2352
  filters: z.ZodOptional<z.ZodObject<{
2353
- traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2354
- name: z.ZodOptional<z.ZodArray<z.ZodString>>;
2355
- source: z.ZodOptional<z.ZodString>;
2356
- provider: z.ZodOptional<z.ZodString>;
2357
- model: z.ZodOptional<z.ZodString>;
2358
- costUnit: z.ZodOptional<z.ZodString>;
2359
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2360
2353
  timestamp: z.ZodOptional<z.ZodObject<{
2361
2354
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2362
2355
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -2386,6 +2379,13 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2386
2379
  requestId: z.ZodOptional<z.ZodString>;
2387
2380
  executionSource: z.ZodOptional<z.ZodString>;
2388
2381
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2382
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2383
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
2384
+ source: z.ZodOptional<z.ZodString>;
2385
+ provider: z.ZodOptional<z.ZodString>;
2386
+ model: z.ZodOptional<z.ZodString>;
2387
+ costUnit: z.ZodOptional<z.ZodString>;
2388
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2389
2389
  }, z.core.$strip>>;
2390
2390
  }, z.core.$strip>, z.ZodObject<{
2391
2391
  series: z.ZodArray<z.ZodObject<{
@@ -2399,11 +2399,11 @@ export declare const GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").
2399
2399
  } & {
2400
2400
  readonly _mastraSchemaRoute: true;
2401
2401
  };
2402
- export declare const GET_METRIC_NAMES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2402
+ export declare const GET_METRIC_NAMES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2403
2403
  method: string;
2404
2404
  path: `/${string}`;
2405
2405
  responseType: "json";
2406
- streamFormat?: "sse" | "stream";
2406
+ streamFormat?: 'sse' | 'stream';
2407
2407
  sseFlushOnConnect?: boolean;
2408
2408
  handler(params: Record<string, unknown> & ServerContext): Promise<{
2409
2409
  names: string[];
@@ -2426,11 +2426,11 @@ export declare const GET_METRIC_NAMES: Omit<import("@mastra/core/server").ApiRou
2426
2426
  } & {
2427
2427
  readonly _mastraSchemaRoute: true;
2428
2428
  };
2429
- export declare const GET_METRIC_LABEL_KEYS: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2429
+ export declare const GET_METRIC_LABEL_KEYS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2430
2430
  method: string;
2431
2431
  path: `/${string}`;
2432
2432
  responseType: "json";
2433
- streamFormat?: "sse" | "stream";
2433
+ streamFormat?: 'sse' | 'stream';
2434
2434
  sseFlushOnConnect?: boolean;
2435
2435
  handler(params: Record<string, unknown> & ServerContext): Promise<{
2436
2436
  keys: string[];
@@ -2453,11 +2453,11 @@ export declare const GET_METRIC_LABEL_KEYS: Omit<import("@mastra/core/server").A
2453
2453
  } & {
2454
2454
  readonly _mastraSchemaRoute: true;
2455
2455
  };
2456
- export declare const GET_METRIC_LABEL_VALUES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2456
+ export declare const GET_METRIC_LABEL_VALUES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2457
2457
  method: string;
2458
2458
  path: `/${string}`;
2459
2459
  responseType: "json";
2460
- streamFormat?: "sse" | "stream";
2460
+ streamFormat?: 'sse' | 'stream';
2461
2461
  sseFlushOnConnect?: boolean;
2462
2462
  handler(params: Record<string, unknown> & ServerContext): Promise<{
2463
2463
  values: string[];
@@ -2480,11 +2480,11 @@ export declare const GET_METRIC_LABEL_VALUES: Omit<import("@mastra/core/server")
2480
2480
  } & {
2481
2481
  readonly _mastraSchemaRoute: true;
2482
2482
  };
2483
- export declare const GET_ENTITY_TYPES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2483
+ export declare const GET_ENTITY_TYPES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2484
2484
  method: string;
2485
2485
  path: `/${string}`;
2486
2486
  responseType: "json";
2487
- streamFormat?: "sse" | "stream";
2487
+ streamFormat?: 'sse' | 'stream';
2488
2488
  sseFlushOnConnect?: boolean;
2489
2489
  handler(params: ServerContext): Promise<{
2490
2490
  entityTypes: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType[];
@@ -2505,11 +2505,11 @@ export declare const GET_ENTITY_TYPES: Omit<import("@mastra/core/server").ApiRou
2505
2505
  } & {
2506
2506
  readonly _mastraSchemaRoute: true;
2507
2507
  };
2508
- export declare const GET_ENTITY_NAMES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2508
+ export declare const GET_ENTITY_NAMES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2509
2509
  method: string;
2510
2510
  path: `/${string}`;
2511
2511
  responseType: "json";
2512
- streamFormat?: "sse" | "stream";
2512
+ streamFormat?: 'sse' | 'stream';
2513
2513
  sseFlushOnConnect?: boolean;
2514
2514
  handler(params: Record<string, unknown> & ServerContext): Promise<{
2515
2515
  names: string[];
@@ -2532,11 +2532,11 @@ export declare const GET_ENTITY_NAMES: Omit<import("@mastra/core/server").ApiRou
2532
2532
  } & {
2533
2533
  readonly _mastraSchemaRoute: true;
2534
2534
  };
2535
- export declare const GET_SERVICE_NAMES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2535
+ export declare const GET_SERVICE_NAMES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2536
2536
  method: string;
2537
2537
  path: `/${string}`;
2538
2538
  responseType: "json";
2539
- streamFormat?: "sse" | "stream";
2539
+ streamFormat?: 'sse' | 'stream';
2540
2540
  sseFlushOnConnect?: boolean;
2541
2541
  handler(params: ServerContext): Promise<{
2542
2542
  serviceNames: string[];
@@ -2557,11 +2557,11 @@ export declare const GET_SERVICE_NAMES: Omit<import("@mastra/core/server").ApiRo
2557
2557
  } & {
2558
2558
  readonly _mastraSchemaRoute: true;
2559
2559
  };
2560
- export declare const GET_ENVIRONMENTS: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2560
+ export declare const GET_ENVIRONMENTS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2561
2561
  method: string;
2562
2562
  path: `/${string}`;
2563
2563
  responseType: "json";
2564
- streamFormat?: "sse" | "stream";
2564
+ streamFormat?: 'sse' | 'stream';
2565
2565
  sseFlushOnConnect?: boolean;
2566
2566
  handler(params: ServerContext): Promise<{
2567
2567
  environments: string[];
@@ -2582,11 +2582,11 @@ export declare const GET_ENVIRONMENTS: Omit<import("@mastra/core/server").ApiRou
2582
2582
  } & {
2583
2583
  readonly _mastraSchemaRoute: true;
2584
2584
  };
2585
- export declare const GET_TAGS: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2585
+ export declare const GET_TAGS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2586
2586
  method: string;
2587
2587
  path: `/${string}`;
2588
2588
  responseType: "json";
2589
- streamFormat?: "sse" | "stream";
2589
+ streamFormat?: 'sse' | 'stream';
2590
2590
  sseFlushOnConnect?: boolean;
2591
2591
  handler(params: Record<string, unknown> & ServerContext): Promise<{
2592
2592
  tags: string[];
@@ -2610,21 +2610,25 @@ export declare const GET_TAGS: Omit<import("@mastra/core/server").ApiRoute, "pat
2610
2610
  readonly _mastraSchemaRoute: true;
2611
2611
  };
2612
2612
  export declare const NEW_ROUTES: {
2613
- LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2613
+ LIST_LOGS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2614
2614
  method: string;
2615
2615
  path: `/${string}`;
2616
2616
  responseType: "json";
2617
- streamFormat?: "sse" | "stream";
2617
+ streamFormat?: 'sse' | 'stream';
2618
2618
  sseFlushOnConnect?: boolean;
2619
2619
  handler(params: Record<string, unknown> & ServerContext): Promise<{
2620
+ pagination?: {
2621
+ total: number;
2622
+ page: number;
2623
+ perPage: number | false;
2624
+ hasMore: boolean;
2625
+ } | undefined;
2626
+ delta?: {
2627
+ limit: number;
2628
+ hasMore: boolean;
2629
+ } | undefined;
2630
+ deltaCursor?: string | undefined;
2620
2631
  logs: {
2621
- timestamp: Date;
2622
- level: "error" | "debug" | "info" | "warn" | "fatal";
2623
- message: string;
2624
- source?: string | null | undefined;
2625
- metadata?: Record<string, unknown> | null | undefined;
2626
- executionSource?: string | null | undefined;
2627
- tags?: string[] | null | undefined;
2628
2632
  entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
2629
2633
  entityId?: string | null | undefined;
2630
2634
  entityName?: string | null | undefined;
@@ -2648,22 +2652,18 @@ export declare const NEW_ROUTES: {
2648
2652
  parentEntityVersionId?: string | null | undefined;
2649
2653
  rootEntityVersionId?: string | null | undefined;
2650
2654
  experimentId?: string | null | undefined;
2655
+ executionSource?: string | null | undefined;
2656
+ tags?: string[] | null | undefined;
2651
2657
  logId?: string | null | undefined;
2658
+ timestamp: Date;
2659
+ level: "debug" | "error" | "fatal" | "info" | "warn";
2660
+ message: string;
2652
2661
  data?: Record<string, unknown> | null | undefined;
2653
2662
  traceId?: string | null | undefined;
2654
2663
  spanId?: string | null | undefined;
2664
+ source?: string | null | undefined;
2665
+ metadata?: Record<string, unknown> | null | undefined;
2655
2666
  }[];
2656
- pagination?: {
2657
- total: number;
2658
- page: number;
2659
- perPage: number | false;
2660
- hasMore: boolean;
2661
- } | undefined;
2662
- delta?: {
2663
- limit: number;
2664
- hasMore: boolean;
2665
- } | undefined;
2666
- deltaCursor?: string | undefined;
2667
2667
  }>;
2668
2668
  pathParamSchema?: z.ZodType;
2669
2669
  queryParamSchema?: z.ZodType;
@@ -2690,10 +2690,6 @@ export declare const NEW_ROUTES: {
2690
2690
  }, z.core.$strip>>;
2691
2691
  deltaCursor: z.ZodOptional<z.ZodString>;
2692
2692
  logs: z.ZodArray<z.ZodObject<{
2693
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2694
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2695
- executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2696
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2697
2693
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
2698
2694
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2699
2695
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2717,39 +2713,47 @@ export declare const NEW_ROUTES: {
2717
2713
  parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2718
2714
  rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2719
2715
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2716
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2717
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2720
2718
  logId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2721
2719
  timestamp: z.ZodDate;
2722
2720
  level: z.ZodEnum<{
2723
2721
  debug: "debug";
2724
- info: "info";
2725
- warn: "warn";
2726
2722
  error: "error";
2727
2723
  fatal: "fatal";
2724
+ info: "info";
2725
+ warn: "warn";
2728
2726
  }>;
2729
2727
  message: z.ZodString;
2730
2728
  data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2731
2729
  traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2732
2730
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2731
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2732
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2733
2733
  }, z.core.$strip>>;
2734
2734
  }, z.core.$strip>> | undefined;
2735
2735
  } & {
2736
2736
  readonly _mastraSchemaRoute: true;
2737
2737
  };
2738
- LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2738
+ LIST_SCORES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2739
2739
  method: string;
2740
2740
  path: `/${string}`;
2741
2741
  responseType: "json";
2742
- streamFormat?: "sse" | "stream";
2742
+ streamFormat?: 'sse' | 'stream';
2743
2743
  sseFlushOnConnect?: boolean;
2744
2744
  handler(params: Record<string, unknown> & ServerContext): Promise<{
2745
+ pagination?: {
2746
+ total: number;
2747
+ page: number;
2748
+ perPage: number | false;
2749
+ hasMore: boolean;
2750
+ } | undefined;
2751
+ delta?: {
2752
+ limit: number;
2753
+ hasMore: boolean;
2754
+ } | undefined;
2755
+ deltaCursor?: string | undefined;
2745
2756
  scores: {
2746
- timestamp: Date;
2747
- scorerId: string;
2748
- score: number;
2749
- scoreTraceId?: string | null | undefined;
2750
- metadata?: Record<string, unknown> | null | undefined;
2751
- executionSource?: string | null | undefined;
2752
- tags?: string[] | null | undefined;
2753
2757
  entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
2754
2758
  entityId?: string | null | undefined;
2755
2759
  entityName?: string | null | undefined;
@@ -2773,26 +2777,22 @@ export declare const NEW_ROUTES: {
2773
2777
  parentEntityVersionId?: string | null | undefined;
2774
2778
  rootEntityVersionId?: string | null | undefined;
2775
2779
  experimentId?: string | null | undefined;
2780
+ executionSource?: string | null | undefined;
2781
+ tags?: string[] | null | undefined;
2776
2782
  scoreId?: string | null | undefined;
2783
+ timestamp: Date;
2777
2784
  traceId?: string | null | undefined;
2778
2785
  spanId?: string | null | undefined;
2786
+ scorerId: string;
2779
2787
  scorerName?: string | null | undefined;
2780
2788
  scorerVersion?: string | null | undefined;
2781
2789
  scoreSource?: string | null | undefined;
2782
2790
  source?: string | null | undefined;
2791
+ score: number;
2783
2792
  reason?: string | null | undefined;
2793
+ scoreTraceId?: string | null | undefined;
2794
+ metadata?: Record<string, unknown> | null | undefined;
2784
2795
  }[];
2785
- pagination?: {
2786
- total: number;
2787
- page: number;
2788
- perPage: number | false;
2789
- hasMore: boolean;
2790
- } | undefined;
2791
- delta?: {
2792
- limit: number;
2793
- hasMore: boolean;
2794
- } | undefined;
2795
- deltaCursor?: string | undefined;
2796
2796
  }>;
2797
2797
  pathParamSchema?: z.ZodType;
2798
2798
  queryParamSchema?: z.ZodType;
@@ -2819,10 +2819,6 @@ export declare const NEW_ROUTES: {
2819
2819
  }, z.core.$strip>>;
2820
2820
  deltaCursor: z.ZodOptional<z.ZodString>;
2821
2821
  scores: z.ZodArray<z.ZodObject<{
2822
- scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2823
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2824
- executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2825
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2826
2822
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
2827
2823
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2828
2824
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2846,6 +2842,8 @@ export declare const NEW_ROUTES: {
2846
2842
  parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2847
2843
  rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2848
2844
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2845
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2846
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2849
2847
  scoreId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2850
2848
  timestamp: z.ZodDate;
2851
2849
  traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2857,29 +2855,22 @@ export declare const NEW_ROUTES: {
2857
2855
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2858
2856
  score: z.ZodNumber;
2859
2857
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2858
+ scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2859
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2860
2860
  }, z.core.$strip>>;
2861
2861
  }, z.core.$strip>> | undefined;
2862
2862
  } & {
2863
2863
  readonly _mastraSchemaRoute: true;
2864
2864
  };
2865
- CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2865
+ CREATE_SCORE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2866
2866
  method: string;
2867
2867
  path: `/${string}`;
2868
2868
  responseType: "json";
2869
- streamFormat?: "sse" | "stream";
2869
+ streamFormat?: 'sse' | 'stream';
2870
2870
  sseFlushOnConnect?: boolean;
2871
2871
  handler(params: {
2872
2872
  score: {
2873
- scorerId: string;
2874
- score: number;
2875
- runId?: string | null | undefined;
2876
2873
  entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
2877
- tags?: string[] | null | undefined;
2878
- traceId?: string | null | undefined;
2879
- spanId?: string | null | undefined;
2880
- source?: string | null | undefined;
2881
- metadata?: Record<string, unknown> | null | undefined;
2882
- executionSource?: string | null | undefined;
2883
2874
  entityId?: string | null | undefined;
2884
2875
  entityName?: string | null | undefined;
2885
2876
  parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
@@ -2891,6 +2882,7 @@ export declare const NEW_ROUTES: {
2891
2882
  userId?: string | null | undefined;
2892
2883
  organizationId?: string | null | undefined;
2893
2884
  resourceId?: string | null | undefined;
2885
+ runId?: string | null | undefined;
2894
2886
  sessionId?: string | null | undefined;
2895
2887
  threadId?: string | null | undefined;
2896
2888
  requestId?: string | null | undefined;
@@ -2901,12 +2893,20 @@ export declare const NEW_ROUTES: {
2901
2893
  parentEntityVersionId?: string | null | undefined;
2902
2894
  rootEntityVersionId?: string | null | undefined;
2903
2895
  experimentId?: string | null | undefined;
2896
+ executionSource?: string | null | undefined;
2897
+ tags?: string[] | null | undefined;
2904
2898
  scoreId?: string | null | undefined;
2899
+ traceId?: string | null | undefined;
2900
+ spanId?: string | null | undefined;
2901
+ scorerId: string;
2905
2902
  scorerName?: string | null | undefined;
2906
2903
  scorerVersion?: string | null | undefined;
2907
2904
  scoreSource?: string | null | undefined;
2905
+ source?: string | null | undefined;
2906
+ score: number;
2908
2907
  reason?: string | null | undefined;
2909
2908
  scoreTraceId?: string | null | undefined;
2909
+ metadata?: Record<string, unknown> | null | undefined;
2910
2910
  };
2911
2911
  } & ServerContext): Promise<{
2912
2912
  success: boolean;
@@ -2923,14 +2923,7 @@ export declare const NEW_ROUTES: {
2923
2923
  onValidationError?: import("@mastra/core/server").ValidationErrorHook;
2924
2924
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
2925
2925
  score: z.ZodObject<{
2926
- runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2927
2926
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
2928
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2929
- traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2930
- spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2931
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2932
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2933
- executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2934
2927
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2935
2928
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2936
2929
  parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
@@ -2942,6 +2935,7 @@ export declare const NEW_ROUTES: {
2942
2935
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2943
2936
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2944
2937
  resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2938
+ runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2945
2939
  sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2946
2940
  threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2947
2941
  requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2952,14 +2946,20 @@ export declare const NEW_ROUTES: {
2952
2946
  parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2953
2947
  rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2954
2948
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2955
- scorerId: z.ZodString;
2956
- score: z.ZodNumber;
2949
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2950
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2957
2951
  scoreId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2952
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2953
+ spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2954
+ scorerId: z.ZodString;
2958
2955
  scorerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2959
2956
  scorerVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2960
2957
  scoreSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2958
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2959
+ score: z.ZodNumber;
2961
2960
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2962
2961
  scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2962
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2963
2963
  }, z.core.$strip>;
2964
2964
  }, z.core.$strip>, z.ZodObject<{
2965
2965
  success: z.ZodBoolean;
@@ -2967,23 +2967,16 @@ export declare const NEW_ROUTES: {
2967
2967
  } & {
2968
2968
  readonly _mastraSchemaRoute: true;
2969
2969
  };
2970
- GET_SCORE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
2970
+ GET_SCORE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
2971
2971
  method: string;
2972
2972
  path: `/${string}`;
2973
2973
  responseType: "json";
2974
- streamFormat?: "sse" | "stream";
2974
+ streamFormat?: 'sse' | 'stream';
2975
2975
  sseFlushOnConnect?: boolean;
2976
2976
  handler(params: {
2977
2977
  scoreId: string;
2978
2978
  } & ServerContext): Promise<{
2979
2979
  score: {
2980
- timestamp: Date;
2981
- scorerId: string;
2982
- score: number;
2983
- scoreTraceId?: string | null | undefined;
2984
- metadata?: Record<string, unknown> | null | undefined;
2985
- executionSource?: string | null | undefined;
2986
- tags?: string[] | null | undefined;
2987
2980
  entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
2988
2981
  entityId?: string | null | undefined;
2989
2982
  entityName?: string | null | undefined;
@@ -3007,14 +3000,21 @@ export declare const NEW_ROUTES: {
3007
3000
  parentEntityVersionId?: string | null | undefined;
3008
3001
  rootEntityVersionId?: string | null | undefined;
3009
3002
  experimentId?: string | null | undefined;
3003
+ executionSource?: string | null | undefined;
3004
+ tags?: string[] | null | undefined;
3010
3005
  scoreId?: string | null | undefined;
3006
+ timestamp: Date;
3011
3007
  traceId?: string | null | undefined;
3012
3008
  spanId?: string | null | undefined;
3009
+ scorerId: string;
3013
3010
  scorerName?: string | null | undefined;
3014
3011
  scorerVersion?: string | null | undefined;
3015
3012
  scoreSource?: string | null | undefined;
3016
3013
  source?: string | null | undefined;
3014
+ score: number;
3017
3015
  reason?: string | null | undefined;
3016
+ scoreTraceId?: string | null | undefined;
3017
+ metadata?: Record<string, unknown> | null | undefined;
3018
3018
  } | null;
3019
3019
  }>;
3020
3020
  pathParamSchema?: z.ZodType;
@@ -3031,10 +3031,6 @@ export declare const NEW_ROUTES: {
3031
3031
  scoreId: z.ZodString;
3032
3032
  }, z.core.$strip>, undefined, undefined, z.ZodObject<{
3033
3033
  score: z.ZodNullable<z.ZodObject<{
3034
- scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3035
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3036
- executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3037
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3038
3034
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3039
3035
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3040
3036
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3058,6 +3054,8 @@ export declare const NEW_ROUTES: {
3058
3054
  parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3059
3055
  rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3060
3056
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3057
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3058
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3061
3059
  scoreId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3062
3060
  timestamp: z.ZodDate;
3063
3061
  traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3069,26 +3067,24 @@ export declare const NEW_ROUTES: {
3069
3067
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3070
3068
  score: z.ZodNumber;
3071
3069
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3070
+ scoreTraceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3071
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3072
3072
  }, z.core.$strip>>;
3073
3073
  }, z.core.$strip>> | undefined;
3074
3074
  } & {
3075
3075
  readonly _mastraSchemaRoute: true;
3076
3076
  };
3077
- GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
3077
+ GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
3078
3078
  method: string;
3079
3079
  path: `/${string}`;
3080
3080
  responseType: "json";
3081
- streamFormat?: "sse" | "stream";
3081
+ streamFormat?: 'sse' | 'stream';
3082
3082
  sseFlushOnConnect?: boolean;
3083
3083
  handler(params: {
3084
3084
  scorerId: string;
3085
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
3086
3085
  scoreSource?: string | undefined;
3086
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
3087
3087
  filters?: {
3088
- scorerId?: string | string[] | undefined;
3089
- scoreSource?: string | undefined;
3090
- metadata?: Record<string, unknown> | null | undefined;
3091
- source?: string | undefined;
3092
3088
  timestamp?: {
3093
3089
  start?: Date | undefined;
3094
3090
  end?: Date | undefined;
@@ -3118,8 +3114,12 @@ export declare const NEW_ROUTES: {
3118
3114
  requestId?: string | undefined;
3119
3115
  executionSource?: string | undefined;
3120
3116
  tags?: string[] | undefined;
3117
+ scorerId?: string | string[] | undefined;
3118
+ scoreSource?: string | undefined;
3119
+ metadata?: Record<string, unknown> | null | undefined;
3120
+ source?: string | undefined;
3121
3121
  } | undefined;
3122
- comparePeriod?: "previous_period" | "previous_day" | "previous_week" | undefined;
3122
+ comparePeriod?: "previous_day" | "previous_period" | "previous_week" | undefined;
3123
3123
  } & ServerContext): Promise<{
3124
3124
  value: number | null;
3125
3125
  previousValue?: number | null | undefined;
@@ -3139,19 +3139,15 @@ export declare const NEW_ROUTES: {
3139
3139
  scorerId: z.ZodString;
3140
3140
  scoreSource: z.ZodOptional<z.ZodString>;
3141
3141
  aggregation: z.ZodEnum<{
3142
- sum: "sum";
3143
3142
  avg: "avg";
3144
- min: "min";
3145
- max: "max";
3146
3143
  count: "count";
3147
3144
  count_distinct: "count_distinct";
3148
3145
  last: "last";
3146
+ max: "max";
3147
+ min: "min";
3148
+ sum: "sum";
3149
3149
  }>;
3150
3150
  filters: z.ZodOptional<z.ZodObject<{
3151
- scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3152
- scoreSource: z.ZodOptional<z.ZodString>;
3153
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3154
- source: z.ZodOptional<z.ZodString>;
3155
3151
  timestamp: z.ZodOptional<z.ZodObject<{
3156
3152
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
3157
3153
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -3181,10 +3177,14 @@ export declare const NEW_ROUTES: {
3181
3177
  requestId: z.ZodOptional<z.ZodString>;
3182
3178
  executionSource: z.ZodOptional<z.ZodString>;
3183
3179
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3180
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3181
+ scoreSource: z.ZodOptional<z.ZodString>;
3182
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3183
+ source: z.ZodOptional<z.ZodString>;
3184
3184
  }, z.core.$strip>>;
3185
3185
  comparePeriod: z.ZodOptional<z.ZodEnum<{
3186
- previous_period: "previous_period";
3187
3186
  previous_day: "previous_day";
3187
+ previous_period: "previous_period";
3188
3188
  previous_week: "previous_week";
3189
3189
  }>>;
3190
3190
  }, z.core.$strip>, z.ZodObject<{
@@ -3195,22 +3195,18 @@ export declare const NEW_ROUTES: {
3195
3195
  } & {
3196
3196
  readonly _mastraSchemaRoute: true;
3197
3197
  };
3198
- GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
3198
+ GET_SCORE_BREAKDOWN: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
3199
3199
  method: string;
3200
3200
  path: `/${string}`;
3201
3201
  responseType: "json";
3202
- streamFormat?: "sse" | "stream";
3202
+ streamFormat?: 'sse' | 'stream';
3203
3203
  sseFlushOnConnect?: boolean;
3204
3204
  handler(params: {
3205
3205
  scorerId: string;
3206
- groupBy: string[];
3207
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
3208
3206
  scoreSource?: string | undefined;
3207
+ groupBy: string[];
3208
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
3209
3209
  filters?: {
3210
- scorerId?: string | string[] | undefined;
3211
- scoreSource?: string | undefined;
3212
- metadata?: Record<string, unknown> | null | undefined;
3213
- source?: string | undefined;
3214
3210
  timestamp?: {
3215
3211
  start?: Date | undefined;
3216
3212
  end?: Date | undefined;
@@ -3240,6 +3236,10 @@ export declare const NEW_ROUTES: {
3240
3236
  requestId?: string | undefined;
3241
3237
  executionSource?: string | undefined;
3242
3238
  tags?: string[] | undefined;
3239
+ scorerId?: string | string[] | undefined;
3240
+ scoreSource?: string | undefined;
3241
+ metadata?: Record<string, unknown> | null | undefined;
3242
+ source?: string | undefined;
3243
3243
  } | undefined;
3244
3244
  } & ServerContext): Promise<{
3245
3245
  groups: {
@@ -3262,19 +3262,15 @@ export declare const NEW_ROUTES: {
3262
3262
  scoreSource: z.ZodOptional<z.ZodString>;
3263
3263
  groupBy: z.ZodArray<z.ZodString>;
3264
3264
  aggregation: z.ZodEnum<{
3265
- sum: "sum";
3266
3265
  avg: "avg";
3267
- min: "min";
3268
- max: "max";
3269
3266
  count: "count";
3270
3267
  count_distinct: "count_distinct";
3271
3268
  last: "last";
3269
+ max: "max";
3270
+ min: "min";
3271
+ sum: "sum";
3272
3272
  }>;
3273
3273
  filters: z.ZodOptional<z.ZodObject<{
3274
- scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3275
- scoreSource: z.ZodOptional<z.ZodString>;
3276
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3277
- source: z.ZodOptional<z.ZodString>;
3278
3274
  timestamp: z.ZodOptional<z.ZodObject<{
3279
3275
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
3280
3276
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -3304,6 +3300,10 @@ export declare const NEW_ROUTES: {
3304
3300
  requestId: z.ZodOptional<z.ZodString>;
3305
3301
  executionSource: z.ZodOptional<z.ZodString>;
3306
3302
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3303
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3304
+ scoreSource: z.ZodOptional<z.ZodString>;
3305
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3306
+ source: z.ZodOptional<z.ZodString>;
3307
3307
  }, z.core.$strip>>;
3308
3308
  }, z.core.$strip>, z.ZodObject<{
3309
3309
  groups: z.ZodArray<z.ZodObject<{
@@ -3314,22 +3314,18 @@ export declare const NEW_ROUTES: {
3314
3314
  } & {
3315
3315
  readonly _mastraSchemaRoute: true;
3316
3316
  };
3317
- GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
3317
+ GET_SCORE_TIME_SERIES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
3318
3318
  method: string;
3319
3319
  path: `/${string}`;
3320
3320
  responseType: "json";
3321
- streamFormat?: "sse" | "stream";
3321
+ streamFormat?: 'sse' | 'stream';
3322
3322
  sseFlushOnConnect?: boolean;
3323
3323
  handler(params: {
3324
3324
  scorerId: string;
3325
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
3326
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
3327
3325
  scoreSource?: string | undefined;
3326
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
3327
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
3328
3328
  filters?: {
3329
- scorerId?: string | string[] | undefined;
3330
- scoreSource?: string | undefined;
3331
- metadata?: Record<string, unknown> | null | undefined;
3332
- source?: string | undefined;
3333
3329
  timestamp?: {
3334
3330
  start?: Date | undefined;
3335
3331
  end?: Date | undefined;
@@ -3359,6 +3355,10 @@ export declare const NEW_ROUTES: {
3359
3355
  requestId?: string | undefined;
3360
3356
  executionSource?: string | undefined;
3361
3357
  tags?: string[] | undefined;
3358
+ scorerId?: string | string[] | undefined;
3359
+ scoreSource?: string | undefined;
3360
+ metadata?: Record<string, unknown> | null | undefined;
3361
+ source?: string | undefined;
3362
3362
  } | undefined;
3363
3363
  groupBy?: string[] | undefined;
3364
3364
  } & ServerContext): Promise<{
@@ -3384,26 +3384,22 @@ export declare const NEW_ROUTES: {
3384
3384
  scorerId: z.ZodString;
3385
3385
  scoreSource: z.ZodOptional<z.ZodString>;
3386
3386
  interval: z.ZodEnum<{
3387
- "1m": "1m";
3388
- "5m": "5m";
3389
3387
  "15m": "15m";
3390
- "1h": "1h";
3391
3388
  "1d": "1d";
3389
+ "1h": "1h";
3390
+ "1m": "1m";
3391
+ "5m": "5m";
3392
3392
  }>;
3393
3393
  aggregation: z.ZodEnum<{
3394
- sum: "sum";
3395
3394
  avg: "avg";
3396
- min: "min";
3397
- max: "max";
3398
3395
  count: "count";
3399
3396
  count_distinct: "count_distinct";
3400
3397
  last: "last";
3398
+ max: "max";
3399
+ min: "min";
3400
+ sum: "sum";
3401
3401
  }>;
3402
3402
  filters: z.ZodOptional<z.ZodObject<{
3403
- scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3404
- scoreSource: z.ZodOptional<z.ZodString>;
3405
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3406
- source: z.ZodOptional<z.ZodString>;
3407
3403
  timestamp: z.ZodOptional<z.ZodObject<{
3408
3404
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
3409
3405
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -3433,6 +3429,10 @@ export declare const NEW_ROUTES: {
3433
3429
  requestId: z.ZodOptional<z.ZodString>;
3434
3430
  executionSource: z.ZodOptional<z.ZodString>;
3435
3431
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3432
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3433
+ scoreSource: z.ZodOptional<z.ZodString>;
3434
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3435
+ source: z.ZodOptional<z.ZodString>;
3436
3436
  }, z.core.$strip>>;
3437
3437
  groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
3438
3438
  }, z.core.$strip>, z.ZodObject<{
@@ -3447,22 +3447,18 @@ export declare const NEW_ROUTES: {
3447
3447
  } & {
3448
3448
  readonly _mastraSchemaRoute: true;
3449
3449
  };
3450
- GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
3450
+ GET_SCORE_PERCENTILES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
3451
3451
  method: string;
3452
3452
  path: `/${string}`;
3453
3453
  responseType: "json";
3454
- streamFormat?: "sse" | "stream";
3454
+ streamFormat?: 'sse' | 'stream';
3455
3455
  sseFlushOnConnect?: boolean;
3456
3456
  handler(params: {
3457
3457
  scorerId: string;
3458
- percentiles: number[];
3459
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
3460
3458
  scoreSource?: string | undefined;
3459
+ percentiles: number[];
3460
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
3461
3461
  filters?: {
3462
- scorerId?: string | string[] | undefined;
3463
- scoreSource?: string | undefined;
3464
- metadata?: Record<string, unknown> | null | undefined;
3465
- source?: string | undefined;
3466
3462
  timestamp?: {
3467
3463
  start?: Date | undefined;
3468
3464
  end?: Date | undefined;
@@ -3492,6 +3488,10 @@ export declare const NEW_ROUTES: {
3492
3488
  requestId?: string | undefined;
3493
3489
  executionSource?: string | undefined;
3494
3490
  tags?: string[] | undefined;
3491
+ scorerId?: string | string[] | undefined;
3492
+ scoreSource?: string | undefined;
3493
+ metadata?: Record<string, unknown> | null | undefined;
3494
+ source?: string | undefined;
3495
3495
  } | undefined;
3496
3496
  } & ServerContext): Promise<{
3497
3497
  series: {
@@ -3517,17 +3517,13 @@ export declare const NEW_ROUTES: {
3517
3517
  scoreSource: z.ZodOptional<z.ZodString>;
3518
3518
  percentiles: z.ZodArray<z.ZodNumber>;
3519
3519
  interval: z.ZodEnum<{
3520
- "1m": "1m";
3521
- "5m": "5m";
3522
3520
  "15m": "15m";
3523
- "1h": "1h";
3524
3521
  "1d": "1d";
3522
+ "1h": "1h";
3523
+ "1m": "1m";
3524
+ "5m": "5m";
3525
3525
  }>;
3526
3526
  filters: z.ZodOptional<z.ZodObject<{
3527
- scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3528
- scoreSource: z.ZodOptional<z.ZodString>;
3529
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3530
- source: z.ZodOptional<z.ZodString>;
3531
3527
  timestamp: z.ZodOptional<z.ZodObject<{
3532
3528
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
3533
3529
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -3557,6 +3553,10 @@ export declare const NEW_ROUTES: {
3557
3553
  requestId: z.ZodOptional<z.ZodString>;
3558
3554
  executionSource: z.ZodOptional<z.ZodString>;
3559
3555
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3556
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3557
+ scoreSource: z.ZodOptional<z.ZodString>;
3558
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3559
+ source: z.ZodOptional<z.ZodString>;
3560
3560
  }, z.core.$strip>>;
3561
3561
  }, z.core.$strip>, z.ZodObject<{
3562
3562
  series: z.ZodArray<z.ZodObject<{
@@ -3570,21 +3570,25 @@ export declare const NEW_ROUTES: {
3570
3570
  } & {
3571
3571
  readonly _mastraSchemaRoute: true;
3572
3572
  };
3573
- LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
3573
+ LIST_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
3574
3574
  method: string;
3575
3575
  path: `/${string}`;
3576
3576
  responseType: "json";
3577
- streamFormat?: "sse" | "stream";
3577
+ streamFormat?: 'sse' | 'stream';
3578
3578
  sseFlushOnConnect?: boolean;
3579
3579
  handler(params: Record<string, unknown> & ServerContext): Promise<{
3580
+ pagination?: {
3581
+ total: number;
3582
+ page: number;
3583
+ perPage: number | false;
3584
+ hasMore: boolean;
3585
+ } | undefined;
3586
+ delta?: {
3587
+ limit: number;
3588
+ hasMore: boolean;
3589
+ } | undefined;
3590
+ deltaCursor?: string | undefined;
3580
3591
  feedback: {
3581
- timestamp: Date;
3582
- feedbackType: string;
3583
- value: string | number;
3584
- sourceId?: string | null | undefined;
3585
- metadata?: Record<string, unknown> | null | undefined;
3586
- executionSource?: string | null | undefined;
3587
- tags?: string[] | null | undefined;
3588
3592
  entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3589
3593
  entityId?: string | null | undefined;
3590
3594
  entityName?: string | null | undefined;
@@ -3608,25 +3612,21 @@ export declare const NEW_ROUTES: {
3608
3612
  parentEntityVersionId?: string | null | undefined;
3609
3613
  rootEntityVersionId?: string | null | undefined;
3610
3614
  experimentId?: string | null | undefined;
3615
+ executionSource?: string | null | undefined;
3616
+ tags?: string[] | null | undefined;
3611
3617
  feedbackId?: string | null | undefined;
3618
+ timestamp: Date;
3612
3619
  traceId?: string | null | undefined;
3613
3620
  spanId?: string | null | undefined;
3614
3621
  feedbackSource?: string | null | undefined;
3615
3622
  source?: string | null | undefined;
3623
+ feedbackType: string;
3624
+ value: string | number;
3616
3625
  comment?: string | null | undefined;
3617
3626
  feedbackUserId?: string | null | undefined;
3627
+ sourceId?: string | null | undefined;
3628
+ metadata?: Record<string, unknown> | null | undefined;
3618
3629
  }[];
3619
- pagination?: {
3620
- total: number;
3621
- page: number;
3622
- perPage: number | false;
3623
- hasMore: boolean;
3624
- } | undefined;
3625
- delta?: {
3626
- limit: number;
3627
- hasMore: boolean;
3628
- } | undefined;
3629
- deltaCursor?: string | undefined;
3630
3630
  }>;
3631
3631
  pathParamSchema?: z.ZodType;
3632
3632
  queryParamSchema?: z.ZodType;
@@ -3653,10 +3653,6 @@ export declare const NEW_ROUTES: {
3653
3653
  }, z.core.$strip>>;
3654
3654
  deltaCursor: z.ZodOptional<z.ZodString>;
3655
3655
  feedback: z.ZodArray<z.ZodObject<{
3656
- sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3657
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3658
- executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3659
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3660
3656
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3661
3657
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3662
3658
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3680,6 +3676,8 @@ export declare const NEW_ROUTES: {
3680
3676
  parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3681
3677
  rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3682
3678
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3679
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3680
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3683
3681
  feedbackId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3684
3682
  timestamp: z.ZodDate;
3685
3683
  traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3690,29 +3688,22 @@ export declare const NEW_ROUTES: {
3690
3688
  value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
3691
3689
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3692
3690
  feedbackUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3691
+ sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3692
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3693
3693
  }, z.core.$strip>>;
3694
3694
  }, z.core.$strip>> | undefined;
3695
3695
  } & {
3696
3696
  readonly _mastraSchemaRoute: true;
3697
3697
  };
3698
- CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
3698
+ CREATE_FEEDBACK: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
3699
3699
  method: string;
3700
3700
  path: `/${string}`;
3701
3701
  responseType: "json";
3702
- streamFormat?: "sse" | "stream";
3702
+ streamFormat?: 'sse' | 'stream';
3703
3703
  sseFlushOnConnect?: boolean;
3704
3704
  handler(params: {
3705
3705
  feedback: {
3706
- value: string | number;
3707
- feedbackType: string;
3708
- runId?: string | null | undefined;
3709
3706
  entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
3710
- tags?: string[] | null | undefined;
3711
- traceId?: string | null | undefined;
3712
- spanId?: string | null | undefined;
3713
- source?: string | null | undefined;
3714
- metadata?: Record<string, unknown> | null | undefined;
3715
- executionSource?: string | null | undefined;
3716
3707
  entityId?: string | null | undefined;
3717
3708
  entityName?: string | null | undefined;
3718
3709
  parentEntityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
@@ -3724,6 +3715,7 @@ export declare const NEW_ROUTES: {
3724
3715
  userId?: string | null | undefined;
3725
3716
  organizationId?: string | null | undefined;
3726
3717
  resourceId?: string | null | undefined;
3718
+ runId?: string | null | undefined;
3727
3719
  sessionId?: string | null | undefined;
3728
3720
  threadId?: string | null | undefined;
3729
3721
  requestId?: string | null | undefined;
@@ -3734,11 +3726,19 @@ export declare const NEW_ROUTES: {
3734
3726
  parentEntityVersionId?: string | null | undefined;
3735
3727
  rootEntityVersionId?: string | null | undefined;
3736
3728
  experimentId?: string | null | undefined;
3729
+ executionSource?: string | null | undefined;
3730
+ tags?: string[] | null | undefined;
3737
3731
  feedbackId?: string | null | undefined;
3732
+ traceId?: string | null | undefined;
3733
+ spanId?: string | null | undefined;
3738
3734
  feedbackSource?: string | null | undefined;
3735
+ source?: string | null | undefined;
3736
+ feedbackType: string;
3737
+ value: string | number;
3739
3738
  comment?: string | null | undefined;
3740
3739
  feedbackUserId?: string | null | undefined;
3741
3740
  sourceId?: string | null | undefined;
3741
+ metadata?: Record<string, unknown> | null | undefined;
3742
3742
  };
3743
3743
  } & ServerContext): Promise<{
3744
3744
  success: boolean;
@@ -3755,15 +3755,7 @@ export declare const NEW_ROUTES: {
3755
3755
  onValidationError?: import("@mastra/core/server").ValidationErrorHook;
3756
3756
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
3757
3757
  feedback: z.ZodObject<{
3758
- runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3759
- value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
3760
3758
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
3761
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3762
- traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3763
- spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3764
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3765
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3766
- executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3767
3759
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3768
3760
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3769
3761
  parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
@@ -3775,6 +3767,7 @@ export declare const NEW_ROUTES: {
3775
3767
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3776
3768
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3777
3769
  resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3770
+ runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3778
3771
  sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3779
3772
  threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3780
3773
  requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3785,12 +3778,19 @@ export declare const NEW_ROUTES: {
3785
3778
  parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3786
3779
  rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3787
3780
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3788
- feedbackType: z.ZodString;
3781
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3782
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3789
3783
  feedbackId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3784
+ traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3785
+ spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3790
3786
  feedbackSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3787
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3788
+ feedbackType: z.ZodString;
3789
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
3791
3790
  comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3792
3791
  feedbackUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3793
3792
  sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3793
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3794
3794
  }, z.core.$strip>;
3795
3795
  }, z.core.$strip>, z.ZodObject<{
3796
3796
  success: z.ZodBoolean;
@@ -3798,21 +3798,17 @@ export declare const NEW_ROUTES: {
3798
3798
  } & {
3799
3799
  readonly _mastraSchemaRoute: true;
3800
3800
  };
3801
- GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
3801
+ GET_FEEDBACK_AGGREGATE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
3802
3802
  method: string;
3803
3803
  path: `/${string}`;
3804
3804
  responseType: "json";
3805
- streamFormat?: "sse" | "stream";
3805
+ streamFormat?: 'sse' | 'stream';
3806
3806
  sseFlushOnConnect?: boolean;
3807
3807
  handler(params: {
3808
3808
  feedbackType: string;
3809
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
3810
3809
  feedbackSource?: string | undefined;
3810
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
3811
3811
  filters?: {
3812
- feedbackType?: string | string[] | undefined;
3813
- feedbackSource?: string | undefined;
3814
- source?: string | undefined;
3815
- feedbackUserId?: string | undefined;
3816
3812
  timestamp?: {
3817
3813
  start?: Date | undefined;
3818
3814
  end?: Date | undefined;
@@ -3842,8 +3838,12 @@ export declare const NEW_ROUTES: {
3842
3838
  requestId?: string | undefined;
3843
3839
  executionSource?: string | undefined;
3844
3840
  tags?: string[] | undefined;
3841
+ feedbackType?: string | string[] | undefined;
3842
+ feedbackSource?: string | undefined;
3843
+ source?: string | undefined;
3844
+ feedbackUserId?: string | undefined;
3845
3845
  } | undefined;
3846
- comparePeriod?: "previous_period" | "previous_day" | "previous_week" | undefined;
3846
+ comparePeriod?: "previous_day" | "previous_period" | "previous_week" | undefined;
3847
3847
  } & ServerContext): Promise<{
3848
3848
  value: number | null;
3849
3849
  previousValue?: number | null | undefined;
@@ -3863,19 +3863,15 @@ export declare const NEW_ROUTES: {
3863
3863
  feedbackType: z.ZodString;
3864
3864
  feedbackSource: z.ZodOptional<z.ZodString>;
3865
3865
  aggregation: z.ZodEnum<{
3866
- sum: "sum";
3867
3866
  avg: "avg";
3868
- min: "min";
3869
- max: "max";
3870
3867
  count: "count";
3871
3868
  count_distinct: "count_distinct";
3872
3869
  last: "last";
3870
+ max: "max";
3871
+ min: "min";
3872
+ sum: "sum";
3873
3873
  }>;
3874
3874
  filters: z.ZodOptional<z.ZodObject<{
3875
- feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3876
- feedbackSource: z.ZodOptional<z.ZodString>;
3877
- source: z.ZodOptional<z.ZodString>;
3878
- feedbackUserId: z.ZodOptional<z.ZodString>;
3879
3875
  timestamp: z.ZodOptional<z.ZodObject<{
3880
3876
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
3881
3877
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -3905,10 +3901,14 @@ export declare const NEW_ROUTES: {
3905
3901
  requestId: z.ZodOptional<z.ZodString>;
3906
3902
  executionSource: z.ZodOptional<z.ZodString>;
3907
3903
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3904
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3905
+ feedbackSource: z.ZodOptional<z.ZodString>;
3906
+ source: z.ZodOptional<z.ZodString>;
3907
+ feedbackUserId: z.ZodOptional<z.ZodString>;
3908
3908
  }, z.core.$strip>>;
3909
3909
  comparePeriod: z.ZodOptional<z.ZodEnum<{
3910
- previous_period: "previous_period";
3911
3910
  previous_day: "previous_day";
3911
+ previous_period: "previous_period";
3912
3912
  previous_week: "previous_week";
3913
3913
  }>>;
3914
3914
  }, z.core.$strip>, z.ZodObject<{
@@ -3919,22 +3919,18 @@ export declare const NEW_ROUTES: {
3919
3919
  } & {
3920
3920
  readonly _mastraSchemaRoute: true;
3921
3921
  };
3922
- GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
3922
+ GET_FEEDBACK_BREAKDOWN: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
3923
3923
  method: string;
3924
3924
  path: `/${string}`;
3925
3925
  responseType: "json";
3926
- streamFormat?: "sse" | "stream";
3926
+ streamFormat?: 'sse' | 'stream';
3927
3927
  sseFlushOnConnect?: boolean;
3928
3928
  handler(params: {
3929
3929
  feedbackType: string;
3930
- groupBy: string[];
3931
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
3932
3930
  feedbackSource?: string | undefined;
3931
+ groupBy: string[];
3932
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
3933
3933
  filters?: {
3934
- feedbackType?: string | string[] | undefined;
3935
- feedbackSource?: string | undefined;
3936
- source?: string | undefined;
3937
- feedbackUserId?: string | undefined;
3938
3934
  timestamp?: {
3939
3935
  start?: Date | undefined;
3940
3936
  end?: Date | undefined;
@@ -3964,6 +3960,10 @@ export declare const NEW_ROUTES: {
3964
3960
  requestId?: string | undefined;
3965
3961
  executionSource?: string | undefined;
3966
3962
  tags?: string[] | undefined;
3963
+ feedbackType?: string | string[] | undefined;
3964
+ feedbackSource?: string | undefined;
3965
+ source?: string | undefined;
3966
+ feedbackUserId?: string | undefined;
3967
3967
  } | undefined;
3968
3968
  } & ServerContext): Promise<{
3969
3969
  groups: {
@@ -3986,19 +3986,15 @@ export declare const NEW_ROUTES: {
3986
3986
  feedbackSource: z.ZodOptional<z.ZodString>;
3987
3987
  groupBy: z.ZodArray<z.ZodString>;
3988
3988
  aggregation: z.ZodEnum<{
3989
- sum: "sum";
3990
3989
  avg: "avg";
3991
- min: "min";
3992
- max: "max";
3993
3990
  count: "count";
3994
3991
  count_distinct: "count_distinct";
3995
3992
  last: "last";
3993
+ max: "max";
3994
+ min: "min";
3995
+ sum: "sum";
3996
3996
  }>;
3997
3997
  filters: z.ZodOptional<z.ZodObject<{
3998
- feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3999
- feedbackSource: z.ZodOptional<z.ZodString>;
4000
- source: z.ZodOptional<z.ZodString>;
4001
- feedbackUserId: z.ZodOptional<z.ZodString>;
4002
3998
  timestamp: z.ZodOptional<z.ZodObject<{
4003
3999
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
4004
4000
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -4028,6 +4024,10 @@ export declare const NEW_ROUTES: {
4028
4024
  requestId: z.ZodOptional<z.ZodString>;
4029
4025
  executionSource: z.ZodOptional<z.ZodString>;
4030
4026
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
4027
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
4028
+ feedbackSource: z.ZodOptional<z.ZodString>;
4029
+ source: z.ZodOptional<z.ZodString>;
4030
+ feedbackUserId: z.ZodOptional<z.ZodString>;
4031
4031
  }, z.core.$strip>>;
4032
4032
  }, z.core.$strip>, z.ZodObject<{
4033
4033
  groups: z.ZodArray<z.ZodObject<{
@@ -4038,22 +4038,18 @@ export declare const NEW_ROUTES: {
4038
4038
  } & {
4039
4039
  readonly _mastraSchemaRoute: true;
4040
4040
  };
4041
- GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
4041
+ GET_FEEDBACK_TIME_SERIES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
4042
4042
  method: string;
4043
4043
  path: `/${string}`;
4044
4044
  responseType: "json";
4045
- streamFormat?: "sse" | "stream";
4045
+ streamFormat?: 'sse' | 'stream';
4046
4046
  sseFlushOnConnect?: boolean;
4047
4047
  handler(params: {
4048
4048
  feedbackType: string;
4049
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
4050
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
4051
4049
  feedbackSource?: string | undefined;
4050
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
4051
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
4052
4052
  filters?: {
4053
- feedbackType?: string | string[] | undefined;
4054
- feedbackSource?: string | undefined;
4055
- source?: string | undefined;
4056
- feedbackUserId?: string | undefined;
4057
4053
  timestamp?: {
4058
4054
  start?: Date | undefined;
4059
4055
  end?: Date | undefined;
@@ -4083,6 +4079,10 @@ export declare const NEW_ROUTES: {
4083
4079
  requestId?: string | undefined;
4084
4080
  executionSource?: string | undefined;
4085
4081
  tags?: string[] | undefined;
4082
+ feedbackType?: string | string[] | undefined;
4083
+ feedbackSource?: string | undefined;
4084
+ source?: string | undefined;
4085
+ feedbackUserId?: string | undefined;
4086
4086
  } | undefined;
4087
4087
  groupBy?: string[] | undefined;
4088
4088
  } & ServerContext): Promise<{
@@ -4108,26 +4108,22 @@ export declare const NEW_ROUTES: {
4108
4108
  feedbackType: z.ZodString;
4109
4109
  feedbackSource: z.ZodOptional<z.ZodString>;
4110
4110
  interval: z.ZodEnum<{
4111
- "1m": "1m";
4112
- "5m": "5m";
4113
4111
  "15m": "15m";
4114
- "1h": "1h";
4115
4112
  "1d": "1d";
4113
+ "1h": "1h";
4114
+ "1m": "1m";
4115
+ "5m": "5m";
4116
4116
  }>;
4117
4117
  aggregation: z.ZodEnum<{
4118
- sum: "sum";
4119
4118
  avg: "avg";
4120
- min: "min";
4121
- max: "max";
4122
4119
  count: "count";
4123
4120
  count_distinct: "count_distinct";
4124
4121
  last: "last";
4122
+ max: "max";
4123
+ min: "min";
4124
+ sum: "sum";
4125
4125
  }>;
4126
4126
  filters: z.ZodOptional<z.ZodObject<{
4127
- feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
4128
- feedbackSource: z.ZodOptional<z.ZodString>;
4129
- source: z.ZodOptional<z.ZodString>;
4130
- feedbackUserId: z.ZodOptional<z.ZodString>;
4131
4127
  timestamp: z.ZodOptional<z.ZodObject<{
4132
4128
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
4133
4129
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -4157,6 +4153,10 @@ export declare const NEW_ROUTES: {
4157
4153
  requestId: z.ZodOptional<z.ZodString>;
4158
4154
  executionSource: z.ZodOptional<z.ZodString>;
4159
4155
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
4156
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
4157
+ feedbackSource: z.ZodOptional<z.ZodString>;
4158
+ source: z.ZodOptional<z.ZodString>;
4159
+ feedbackUserId: z.ZodOptional<z.ZodString>;
4160
4160
  }, z.core.$strip>>;
4161
4161
  groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
4162
4162
  }, z.core.$strip>, z.ZodObject<{
@@ -4171,22 +4171,18 @@ export declare const NEW_ROUTES: {
4171
4171
  } & {
4172
4172
  readonly _mastraSchemaRoute: true;
4173
4173
  };
4174
- GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
4174
+ GET_FEEDBACK_PERCENTILES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
4175
4175
  method: string;
4176
4176
  path: `/${string}`;
4177
4177
  responseType: "json";
4178
- streamFormat?: "sse" | "stream";
4178
+ streamFormat?: 'sse' | 'stream';
4179
4179
  sseFlushOnConnect?: boolean;
4180
4180
  handler(params: {
4181
4181
  feedbackType: string;
4182
- percentiles: number[];
4183
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
4184
4182
  feedbackSource?: string | undefined;
4183
+ percentiles: number[];
4184
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
4185
4185
  filters?: {
4186
- feedbackType?: string | string[] | undefined;
4187
- feedbackSource?: string | undefined;
4188
- source?: string | undefined;
4189
- feedbackUserId?: string | undefined;
4190
4186
  timestamp?: {
4191
4187
  start?: Date | undefined;
4192
4188
  end?: Date | undefined;
@@ -4216,6 +4212,10 @@ export declare const NEW_ROUTES: {
4216
4212
  requestId?: string | undefined;
4217
4213
  executionSource?: string | undefined;
4218
4214
  tags?: string[] | undefined;
4215
+ feedbackType?: string | string[] | undefined;
4216
+ feedbackSource?: string | undefined;
4217
+ source?: string | undefined;
4218
+ feedbackUserId?: string | undefined;
4219
4219
  } | undefined;
4220
4220
  } & ServerContext): Promise<{
4221
4221
  series: {
@@ -4241,17 +4241,13 @@ export declare const NEW_ROUTES: {
4241
4241
  feedbackSource: z.ZodOptional<z.ZodString>;
4242
4242
  percentiles: z.ZodArray<z.ZodNumber>;
4243
4243
  interval: z.ZodEnum<{
4244
- "1m": "1m";
4245
- "5m": "5m";
4246
4244
  "15m": "15m";
4247
- "1h": "1h";
4248
4245
  "1d": "1d";
4246
+ "1h": "1h";
4247
+ "1m": "1m";
4248
+ "5m": "5m";
4249
4249
  }>;
4250
4250
  filters: z.ZodOptional<z.ZodObject<{
4251
- feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
4252
- feedbackSource: z.ZodOptional<z.ZodString>;
4253
- source: z.ZodOptional<z.ZodString>;
4254
- feedbackUserId: z.ZodOptional<z.ZodString>;
4255
4251
  timestamp: z.ZodOptional<z.ZodObject<{
4256
4252
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
4257
4253
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -4281,6 +4277,10 @@ export declare const NEW_ROUTES: {
4281
4277
  requestId: z.ZodOptional<z.ZodString>;
4282
4278
  executionSource: z.ZodOptional<z.ZodString>;
4283
4279
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
4280
+ feedbackType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
4281
+ feedbackSource: z.ZodOptional<z.ZodString>;
4282
+ source: z.ZodOptional<z.ZodString>;
4283
+ feedbackUserId: z.ZodOptional<z.ZodString>;
4284
4284
  }, z.core.$strip>>;
4285
4285
  }, z.core.$strip>, z.ZodObject<{
4286
4286
  series: z.ZodArray<z.ZodObject<{
@@ -4294,27 +4294,25 @@ export declare const NEW_ROUTES: {
4294
4294
  } & {
4295
4295
  readonly _mastraSchemaRoute: true;
4296
4296
  };
4297
- LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
4297
+ LIST_METRICS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
4298
4298
  method: string;
4299
4299
  path: `/${string}`;
4300
4300
  responseType: "json";
4301
- streamFormat?: "sse" | "stream";
4301
+ streamFormat?: 'sse' | 'stream';
4302
4302
  sseFlushOnConnect?: boolean;
4303
4303
  handler(params: Record<string, unknown> & ServerContext): Promise<{
4304
+ pagination?: {
4305
+ total: number;
4306
+ page: number;
4307
+ perPage: number | false;
4308
+ hasMore: boolean;
4309
+ } | undefined;
4310
+ delta?: {
4311
+ limit: number;
4312
+ hasMore: boolean;
4313
+ } | undefined;
4314
+ deltaCursor?: string | undefined;
4304
4315
  metrics: {
4305
- labels: Record<string, string>;
4306
- timestamp: Date;
4307
- name: string;
4308
- value: number;
4309
- source?: string | null | undefined;
4310
- provider?: string | null | undefined;
4311
- model?: string | null | undefined;
4312
- estimatedCost?: number | null | undefined;
4313
- costUnit?: string | null | undefined;
4314
- costMetadata?: Record<string, unknown> | null | undefined;
4315
- metadata?: Record<string, unknown> | null | undefined;
4316
- executionSource?: string | null | undefined;
4317
- tags?: string[] | null | undefined;
4318
4316
  entityType?: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined;
4319
4317
  entityId?: string | null | undefined;
4320
4318
  entityName?: string | null | undefined;
@@ -4338,21 +4336,23 @@ export declare const NEW_ROUTES: {
4338
4336
  parentEntityVersionId?: string | null | undefined;
4339
4337
  rootEntityVersionId?: string | null | undefined;
4340
4338
  experimentId?: string | null | undefined;
4339
+ executionSource?: string | null | undefined;
4340
+ tags?: string[] | null | undefined;
4341
4341
  metricId?: string | null | undefined;
4342
+ timestamp: Date;
4343
+ name: string;
4344
+ value: number;
4342
4345
  traceId?: string | null | undefined;
4343
4346
  spanId?: string | null | undefined;
4347
+ source?: string | null | undefined;
4348
+ provider?: string | null | undefined;
4349
+ model?: string | null | undefined;
4350
+ estimatedCost?: number | null | undefined;
4351
+ costUnit?: string | null | undefined;
4352
+ costMetadata?: Record<string, unknown> | null | undefined;
4353
+ labels: Record<string, string>;
4354
+ metadata?: Record<string, unknown> | null | undefined;
4344
4355
  }[];
4345
- pagination?: {
4346
- total: number;
4347
- page: number;
4348
- perPage: number | false;
4349
- hasMore: boolean;
4350
- } | undefined;
4351
- delta?: {
4352
- limit: number;
4353
- hasMore: boolean;
4354
- } | undefined;
4355
- deltaCursor?: string | undefined;
4356
4356
  }>;
4357
4357
  pathParamSchema?: z.ZodType;
4358
4358
  queryParamSchema?: z.ZodType;
@@ -4379,16 +4379,6 @@ export declare const NEW_ROUTES: {
4379
4379
  }, z.core.$strip>>;
4380
4380
  deltaCursor: z.ZodOptional<z.ZodString>;
4381
4381
  metrics: z.ZodArray<z.ZodObject<{
4382
- source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4383
- provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4384
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4385
- estimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4386
- costUnit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4387
- costMetadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>>;
4388
- labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
4389
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4390
- executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4391
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
4392
4382
  entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType>>>;
4393
4383
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4394
4384
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -4412,35 +4402,38 @@ export declare const NEW_ROUTES: {
4412
4402
  parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4413
4403
  rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4414
4404
  experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4405
+ executionSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4406
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
4415
4407
  metricId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4416
4408
  timestamp: z.ZodDate;
4417
4409
  name: z.ZodString;
4418
4410
  value: z.ZodNumber;
4419
4411
  traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4420
4412
  spanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4413
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4414
+ provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4415
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4416
+ estimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4417
+ costUnit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4418
+ costMetadata: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>>;
4419
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
4420
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4421
4421
  }, z.core.$strip>>;
4422
4422
  }, z.core.$strip>> | undefined;
4423
4423
  } & {
4424
4424
  readonly _mastraSchemaRoute: true;
4425
4425
  };
4426
- GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
4426
+ GET_METRIC_AGGREGATE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
4427
4427
  method: string;
4428
4428
  path: `/${string}`;
4429
4429
  responseType: "json";
4430
- streamFormat?: "sse" | "stream";
4430
+ streamFormat?: 'sse' | 'stream';
4431
4431
  sseFlushOnConnect?: boolean;
4432
4432
  handler(params: {
4433
4433
  name: string[];
4434
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
4435
- distinctColumn?: "name" | "resourceId" | "model" | "provider" | "threadId" | "entityType" | "entityName" | "parentEntityType" | "parentEntityName" | "rootEntityType" | "rootEntityName" | "environment" | "serviceName" | "executionSource" | undefined;
4434
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
4435
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
4436
4436
  filters?: {
4437
- traceIds?: string[] | undefined;
4438
- name?: string[] | undefined;
4439
- source?: string | undefined;
4440
- provider?: string | undefined;
4441
- model?: string | undefined;
4442
- costUnit?: string | undefined;
4443
- labels?: Record<string, string> | undefined;
4444
4437
  timestamp?: {
4445
4438
  start?: Date | undefined;
4446
4439
  end?: Date | undefined;
@@ -4470,16 +4463,23 @@ export declare const NEW_ROUTES: {
4470
4463
  requestId?: string | undefined;
4471
4464
  executionSource?: string | undefined;
4472
4465
  tags?: string[] | undefined;
4466
+ traceIds?: string[] | undefined;
4467
+ name?: string[] | undefined;
4468
+ source?: string | undefined;
4469
+ provider?: string | undefined;
4470
+ model?: string | undefined;
4471
+ costUnit?: string | undefined;
4472
+ labels?: Record<string, string> | undefined;
4473
4473
  } | undefined;
4474
- comparePeriod?: "previous_period" | "previous_day" | "previous_week" | undefined;
4474
+ comparePeriod?: "previous_day" | "previous_period" | "previous_week" | undefined;
4475
4475
  } & ServerContext): Promise<{
4476
4476
  value: number | null;
4477
+ previousValue?: number | null | undefined;
4478
+ changePercent?: number | null | undefined;
4477
4479
  estimatedCost?: number | null | undefined;
4478
4480
  costUnit?: string | null | undefined;
4479
4481
  previousEstimatedCost?: number | null | undefined;
4480
4482
  costChangePercent?: number | null | undefined;
4481
- previousValue?: number | null | undefined;
4482
- changePercent?: number | null | undefined;
4483
4483
  }>;
4484
4484
  pathParamSchema?: z.ZodType;
4485
4485
  queryParamSchema?: z.ZodType;
@@ -4494,38 +4494,31 @@ export declare const NEW_ROUTES: {
4494
4494
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4495
4495
  name: z.ZodArray<z.ZodString>;
4496
4496
  aggregation: z.ZodEnum<{
4497
- sum: "sum";
4498
4497
  avg: "avg";
4499
- min: "min";
4500
- max: "max";
4501
4498
  count: "count";
4502
4499
  count_distinct: "count_distinct";
4503
4500
  last: "last";
4501
+ max: "max";
4502
+ min: "min";
4503
+ sum: "sum";
4504
4504
  }>;
4505
4505
  distinctColumn: z.ZodOptional<z.ZodEnum<{
4506
+ entityName: "entityName";
4506
4507
  entityType: "entityType";
4508
+ environment: "environment";
4507
4509
  executionSource: "executionSource";
4508
- entityName: "entityName";
4509
- parentEntityType: "parentEntityType";
4510
+ model: "model";
4511
+ name: "name";
4510
4512
  parentEntityName: "parentEntityName";
4511
- rootEntityType: "rootEntityType";
4512
- rootEntityName: "rootEntityName";
4513
+ parentEntityType: "parentEntityType";
4514
+ provider: "provider";
4513
4515
  resourceId: "resourceId";
4514
- threadId: "threadId";
4515
- environment: "environment";
4516
+ rootEntityName: "rootEntityName";
4517
+ rootEntityType: "rootEntityType";
4516
4518
  serviceName: "serviceName";
4517
- name: "name";
4518
- provider: "provider";
4519
- model: "model";
4519
+ threadId: "threadId";
4520
4520
  }>>;
4521
4521
  filters: z.ZodOptional<z.ZodObject<{
4522
- traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4523
- name: z.ZodOptional<z.ZodArray<z.ZodString>>;
4524
- source: z.ZodOptional<z.ZodString>;
4525
- provider: z.ZodOptional<z.ZodString>;
4526
- model: z.ZodOptional<z.ZodString>;
4527
- costUnit: z.ZodOptional<z.ZodString>;
4528
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4529
4522
  timestamp: z.ZodOptional<z.ZodObject<{
4530
4523
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
4531
4524
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -4555,43 +4548,43 @@ export declare const NEW_ROUTES: {
4555
4548
  requestId: z.ZodOptional<z.ZodString>;
4556
4549
  executionSource: z.ZodOptional<z.ZodString>;
4557
4550
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
4551
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4552
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
4553
+ source: z.ZodOptional<z.ZodString>;
4554
+ provider: z.ZodOptional<z.ZodString>;
4555
+ model: z.ZodOptional<z.ZodString>;
4556
+ costUnit: z.ZodOptional<z.ZodString>;
4557
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4558
4558
  }, z.core.$strip>>;
4559
4559
  comparePeriod: z.ZodOptional<z.ZodEnum<{
4560
- previous_period: "previous_period";
4561
4560
  previous_day: "previous_day";
4561
+ previous_period: "previous_period";
4562
4562
  previous_week: "previous_week";
4563
4563
  }>>;
4564
4564
  }, z.core.$strip>, z.ZodObject<{
4565
+ value: z.ZodNullable<z.ZodNumber>;
4566
+ previousValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4567
+ changePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4565
4568
  estimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4566
4569
  costUnit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4567
4570
  previousEstimatedCost: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4568
4571
  costChangePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4569
- value: z.ZodNullable<z.ZodNumber>;
4570
- previousValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4571
- changePercent: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4572
4572
  }, z.core.$strip>> | undefined;
4573
4573
  } & {
4574
4574
  readonly _mastraSchemaRoute: true;
4575
4575
  };
4576
- GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
4576
+ GET_METRIC_BREAKDOWN: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
4577
4577
  method: string;
4578
4578
  path: `/${string}`;
4579
4579
  responseType: "json";
4580
- streamFormat?: "sse" | "stream";
4580
+ streamFormat?: 'sse' | 'stream';
4581
4581
  sseFlushOnConnect?: boolean;
4582
4582
  handler(params: {
4583
4583
  name: string[];
4584
4584
  groupBy: string[];
4585
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
4586
- distinctColumn?: "name" | "resourceId" | "model" | "provider" | "threadId" | "entityType" | "entityName" | "parentEntityType" | "parentEntityName" | "rootEntityType" | "rootEntityName" | "environment" | "serviceName" | "executionSource" | undefined;
4585
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
4586
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
4587
4587
  filters?: {
4588
- traceIds?: string[] | undefined;
4589
- name?: string[] | undefined;
4590
- source?: string | undefined;
4591
- provider?: string | undefined;
4592
- model?: string | undefined;
4593
- costUnit?: string | undefined;
4594
- labels?: Record<string, string> | undefined;
4595
4588
  timestamp?: {
4596
4589
  start?: Date | undefined;
4597
4590
  end?: Date | undefined;
@@ -4621,6 +4614,13 @@ export declare const NEW_ROUTES: {
4621
4614
  requestId?: string | undefined;
4622
4615
  executionSource?: string | undefined;
4623
4616
  tags?: string[] | undefined;
4617
+ traceIds?: string[] | undefined;
4618
+ name?: string[] | undefined;
4619
+ source?: string | undefined;
4620
+ provider?: string | undefined;
4621
+ model?: string | undefined;
4622
+ costUnit?: string | undefined;
4623
+ labels?: Record<string, string> | undefined;
4624
4624
  } | undefined;
4625
4625
  limit?: number | undefined;
4626
4626
  orderDirection?: "ASC" | "DESC" | undefined;
@@ -4646,38 +4646,31 @@ export declare const NEW_ROUTES: {
4646
4646
  name: z.ZodArray<z.ZodString>;
4647
4647
  groupBy: z.ZodArray<z.ZodString>;
4648
4648
  aggregation: z.ZodEnum<{
4649
- sum: "sum";
4650
4649
  avg: "avg";
4651
- min: "min";
4652
- max: "max";
4653
4650
  count: "count";
4654
4651
  count_distinct: "count_distinct";
4655
4652
  last: "last";
4653
+ max: "max";
4654
+ min: "min";
4655
+ sum: "sum";
4656
4656
  }>;
4657
4657
  distinctColumn: z.ZodOptional<z.ZodEnum<{
4658
+ entityName: "entityName";
4658
4659
  entityType: "entityType";
4660
+ environment: "environment";
4659
4661
  executionSource: "executionSource";
4660
- entityName: "entityName";
4661
- parentEntityType: "parentEntityType";
4662
+ model: "model";
4663
+ name: "name";
4662
4664
  parentEntityName: "parentEntityName";
4663
- rootEntityType: "rootEntityType";
4664
- rootEntityName: "rootEntityName";
4665
+ parentEntityType: "parentEntityType";
4666
+ provider: "provider";
4665
4667
  resourceId: "resourceId";
4666
- threadId: "threadId";
4667
- environment: "environment";
4668
+ rootEntityName: "rootEntityName";
4669
+ rootEntityType: "rootEntityType";
4668
4670
  serviceName: "serviceName";
4669
- name: "name";
4670
- provider: "provider";
4671
- model: "model";
4671
+ threadId: "threadId";
4672
4672
  }>>;
4673
4673
  filters: z.ZodOptional<z.ZodObject<{
4674
- traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4675
- name: z.ZodOptional<z.ZodArray<z.ZodString>>;
4676
- source: z.ZodOptional<z.ZodString>;
4677
- provider: z.ZodOptional<z.ZodString>;
4678
- model: z.ZodOptional<z.ZodString>;
4679
- costUnit: z.ZodOptional<z.ZodString>;
4680
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4681
4674
  timestamp: z.ZodOptional<z.ZodObject<{
4682
4675
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
4683
4676
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -4707,6 +4700,13 @@ export declare const NEW_ROUTES: {
4707
4700
  requestId: z.ZodOptional<z.ZodString>;
4708
4701
  executionSource: z.ZodOptional<z.ZodString>;
4709
4702
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
4703
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4704
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
4705
+ source: z.ZodOptional<z.ZodString>;
4706
+ provider: z.ZodOptional<z.ZodString>;
4707
+ model: z.ZodOptional<z.ZodString>;
4708
+ costUnit: z.ZodOptional<z.ZodString>;
4709
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4710
4710
  }, z.core.$strip>>;
4711
4711
  limit: z.ZodOptional<z.ZodNumber>;
4712
4712
  orderDirection: z.ZodOptional<z.ZodEnum<{
@@ -4724,25 +4724,18 @@ export declare const NEW_ROUTES: {
4724
4724
  } & {
4725
4725
  readonly _mastraSchemaRoute: true;
4726
4726
  };
4727
- GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
4727
+ GET_METRIC_TIME_SERIES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
4728
4728
  method: string;
4729
4729
  path: `/${string}`;
4730
4730
  responseType: "json";
4731
- streamFormat?: "sse" | "stream";
4731
+ streamFormat?: 'sse' | 'stream';
4732
4732
  sseFlushOnConnect?: boolean;
4733
4733
  handler(params: {
4734
4734
  name: string[];
4735
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
4736
- aggregation: "count" | "max" | "min" | "sum" | "avg" | "count_distinct" | "last";
4737
- distinctColumn?: "name" | "resourceId" | "model" | "provider" | "threadId" | "entityType" | "entityName" | "parentEntityType" | "parentEntityName" | "rootEntityType" | "rootEntityName" | "environment" | "serviceName" | "executionSource" | undefined;
4735
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
4736
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
4737
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
4738
4738
  filters?: {
4739
- traceIds?: string[] | undefined;
4740
- name?: string[] | undefined;
4741
- source?: string | undefined;
4742
- provider?: string | undefined;
4743
- model?: string | undefined;
4744
- costUnit?: string | undefined;
4745
- labels?: Record<string, string> | undefined;
4746
4739
  timestamp?: {
4747
4740
  start?: Date | undefined;
4748
4741
  end?: Date | undefined;
@@ -4772,17 +4765,24 @@ export declare const NEW_ROUTES: {
4772
4765
  requestId?: string | undefined;
4773
4766
  executionSource?: string | undefined;
4774
4767
  tags?: string[] | undefined;
4768
+ traceIds?: string[] | undefined;
4769
+ name?: string[] | undefined;
4770
+ source?: string | undefined;
4771
+ provider?: string | undefined;
4772
+ model?: string | undefined;
4773
+ costUnit?: string | undefined;
4774
+ labels?: Record<string, string> | undefined;
4775
4775
  } | undefined;
4776
4776
  groupBy?: string[] | undefined;
4777
4777
  } & ServerContext): Promise<{
4778
4778
  series: {
4779
4779
  name: string;
4780
+ costUnit?: string | null | undefined;
4780
4781
  points: {
4781
4782
  timestamp: Date;
4782
4783
  value: number;
4783
4784
  estimatedCost?: number | null | undefined;
4784
4785
  }[];
4785
- costUnit?: string | null | undefined;
4786
4786
  }[];
4787
4787
  }>;
4788
4788
  pathParamSchema?: z.ZodType;
@@ -4798,45 +4798,38 @@ export declare const NEW_ROUTES: {
4798
4798
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
4799
4799
  name: z.ZodArray<z.ZodString>;
4800
4800
  interval: z.ZodEnum<{
4801
- "1m": "1m";
4802
- "5m": "5m";
4803
4801
  "15m": "15m";
4804
- "1h": "1h";
4805
4802
  "1d": "1d";
4803
+ "1h": "1h";
4804
+ "1m": "1m";
4805
+ "5m": "5m";
4806
4806
  }>;
4807
4807
  aggregation: z.ZodEnum<{
4808
- sum: "sum";
4809
4808
  avg: "avg";
4810
- min: "min";
4811
- max: "max";
4812
4809
  count: "count";
4813
4810
  count_distinct: "count_distinct";
4814
4811
  last: "last";
4812
+ max: "max";
4813
+ min: "min";
4814
+ sum: "sum";
4815
4815
  }>;
4816
4816
  distinctColumn: z.ZodOptional<z.ZodEnum<{
4817
+ entityName: "entityName";
4817
4818
  entityType: "entityType";
4819
+ environment: "environment";
4818
4820
  executionSource: "executionSource";
4819
- entityName: "entityName";
4820
- parentEntityType: "parentEntityType";
4821
+ model: "model";
4822
+ name: "name";
4821
4823
  parentEntityName: "parentEntityName";
4822
- rootEntityType: "rootEntityType";
4823
- rootEntityName: "rootEntityName";
4824
+ parentEntityType: "parentEntityType";
4825
+ provider: "provider";
4824
4826
  resourceId: "resourceId";
4825
- threadId: "threadId";
4826
- environment: "environment";
4827
+ rootEntityName: "rootEntityName";
4828
+ rootEntityType: "rootEntityType";
4827
4829
  serviceName: "serviceName";
4828
- name: "name";
4829
- provider: "provider";
4830
- model: "model";
4830
+ threadId: "threadId";
4831
4831
  }>>;
4832
4832
  filters: z.ZodOptional<z.ZodObject<{
4833
- traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4834
- name: z.ZodOptional<z.ZodArray<z.ZodString>>;
4835
- source: z.ZodOptional<z.ZodString>;
4836
- provider: z.ZodOptional<z.ZodString>;
4837
- model: z.ZodOptional<z.ZodString>;
4838
- costUnit: z.ZodOptional<z.ZodString>;
4839
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4840
4833
  timestamp: z.ZodOptional<z.ZodObject<{
4841
4834
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
4842
4835
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -4866,6 +4859,13 @@ export declare const NEW_ROUTES: {
4866
4859
  requestId: z.ZodOptional<z.ZodString>;
4867
4860
  executionSource: z.ZodOptional<z.ZodString>;
4868
4861
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
4862
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4863
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
4864
+ source: z.ZodOptional<z.ZodString>;
4865
+ provider: z.ZodOptional<z.ZodString>;
4866
+ model: z.ZodOptional<z.ZodString>;
4867
+ costUnit: z.ZodOptional<z.ZodString>;
4868
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4869
4869
  }, z.core.$strip>>;
4870
4870
  groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
4871
4871
  }, z.core.$strip>, z.ZodObject<{
@@ -4882,24 +4882,17 @@ export declare const NEW_ROUTES: {
4882
4882
  } & {
4883
4883
  readonly _mastraSchemaRoute: true;
4884
4884
  };
4885
- GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
4885
+ GET_METRIC_PERCENTILES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
4886
4886
  method: string;
4887
4887
  path: `/${string}`;
4888
4888
  responseType: "json";
4889
- streamFormat?: "sse" | "stream";
4889
+ streamFormat?: 'sse' | 'stream';
4890
4890
  sseFlushOnConnect?: boolean;
4891
4891
  handler(params: {
4892
4892
  name: string;
4893
4893
  percentiles: number[];
4894
- interval: "5m" | "1h" | "1m" | "15m" | "1d";
4894
+ interval: "15m" | "1d" | "1h" | "1m" | "5m";
4895
4895
  filters?: {
4896
- traceIds?: string[] | undefined;
4897
- name?: string[] | undefined;
4898
- source?: string | undefined;
4899
- provider?: string | undefined;
4900
- model?: string | undefined;
4901
- costUnit?: string | undefined;
4902
- labels?: Record<string, string> | undefined;
4903
4896
  timestamp?: {
4904
4897
  start?: Date | undefined;
4905
4898
  end?: Date | undefined;
@@ -4929,6 +4922,13 @@ export declare const NEW_ROUTES: {
4929
4922
  requestId?: string | undefined;
4930
4923
  executionSource?: string | undefined;
4931
4924
  tags?: string[] | undefined;
4925
+ traceIds?: string[] | undefined;
4926
+ name?: string[] | undefined;
4927
+ source?: string | undefined;
4928
+ provider?: string | undefined;
4929
+ model?: string | undefined;
4930
+ costUnit?: string | undefined;
4931
+ labels?: Record<string, string> | undefined;
4932
4932
  } | undefined;
4933
4933
  } & ServerContext): Promise<{
4934
4934
  series: {
@@ -4953,20 +4953,13 @@ export declare const NEW_ROUTES: {
4953
4953
  name: z.ZodString;
4954
4954
  percentiles: z.ZodArray<z.ZodNumber>;
4955
4955
  interval: z.ZodEnum<{
4956
- "1m": "1m";
4957
- "5m": "5m";
4958
4956
  "15m": "15m";
4959
- "1h": "1h";
4960
4957
  "1d": "1d";
4958
+ "1h": "1h";
4959
+ "1m": "1m";
4960
+ "5m": "5m";
4961
4961
  }>;
4962
4962
  filters: z.ZodOptional<z.ZodObject<{
4963
- traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4964
- name: z.ZodOptional<z.ZodArray<z.ZodString>>;
4965
- source: z.ZodOptional<z.ZodString>;
4966
- provider: z.ZodOptional<z.ZodString>;
4967
- model: z.ZodOptional<z.ZodString>;
4968
- costUnit: z.ZodOptional<z.ZodString>;
4969
- labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4970
4963
  timestamp: z.ZodOptional<z.ZodObject<{
4971
4964
  start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
4972
4965
  end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
@@ -4996,6 +4989,13 @@ export declare const NEW_ROUTES: {
4996
4989
  requestId: z.ZodOptional<z.ZodString>;
4997
4990
  executionSource: z.ZodOptional<z.ZodString>;
4998
4991
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
4992
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4993
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
4994
+ source: z.ZodOptional<z.ZodString>;
4995
+ provider: z.ZodOptional<z.ZodString>;
4996
+ model: z.ZodOptional<z.ZodString>;
4997
+ costUnit: z.ZodOptional<z.ZodString>;
4998
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4999
4999
  }, z.core.$strip>>;
5000
5000
  }, z.core.$strip>, z.ZodObject<{
5001
5001
  series: z.ZodArray<z.ZodObject<{
@@ -5009,11 +5009,11 @@ export declare const NEW_ROUTES: {
5009
5009
  } & {
5010
5010
  readonly _mastraSchemaRoute: true;
5011
5011
  };
5012
- GET_METRIC_NAMES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
5012
+ GET_METRIC_NAMES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
5013
5013
  method: string;
5014
5014
  path: `/${string}`;
5015
5015
  responseType: "json";
5016
- streamFormat?: "sse" | "stream";
5016
+ streamFormat?: 'sse' | 'stream';
5017
5017
  sseFlushOnConnect?: boolean;
5018
5018
  handler(params: Record<string, unknown> & ServerContext): Promise<{
5019
5019
  names: string[];
@@ -5036,11 +5036,11 @@ export declare const NEW_ROUTES: {
5036
5036
  } & {
5037
5037
  readonly _mastraSchemaRoute: true;
5038
5038
  };
5039
- GET_METRIC_LABEL_KEYS: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
5039
+ GET_METRIC_LABEL_KEYS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
5040
5040
  method: string;
5041
5041
  path: `/${string}`;
5042
5042
  responseType: "json";
5043
- streamFormat?: "sse" | "stream";
5043
+ streamFormat?: 'sse' | 'stream';
5044
5044
  sseFlushOnConnect?: boolean;
5045
5045
  handler(params: Record<string, unknown> & ServerContext): Promise<{
5046
5046
  keys: string[];
@@ -5063,11 +5063,11 @@ export declare const NEW_ROUTES: {
5063
5063
  } & {
5064
5064
  readonly _mastraSchemaRoute: true;
5065
5065
  };
5066
- GET_METRIC_LABEL_VALUES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
5066
+ GET_METRIC_LABEL_VALUES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
5067
5067
  method: string;
5068
5068
  path: `/${string}`;
5069
5069
  responseType: "json";
5070
- streamFormat?: "sse" | "stream";
5070
+ streamFormat?: 'sse' | 'stream';
5071
5071
  sseFlushOnConnect?: boolean;
5072
5072
  handler(params: Record<string, unknown> & ServerContext): Promise<{
5073
5073
  values: string[];
@@ -5090,11 +5090,11 @@ export declare const NEW_ROUTES: {
5090
5090
  } & {
5091
5091
  readonly _mastraSchemaRoute: true;
5092
5092
  };
5093
- GET_ENTITY_TYPES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
5093
+ GET_ENTITY_TYPES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
5094
5094
  method: string;
5095
5095
  path: `/${string}`;
5096
5096
  responseType: "json";
5097
- streamFormat?: "sse" | "stream";
5097
+ streamFormat?: 'sse' | 'stream';
5098
5098
  sseFlushOnConnect?: boolean;
5099
5099
  handler(params: ServerContext): Promise<{
5100
5100
  entityTypes: import("../../_types/@internal_core/dist/storage/index.d.ts").EntityType[];
@@ -5115,11 +5115,11 @@ export declare const NEW_ROUTES: {
5115
5115
  } & {
5116
5116
  readonly _mastraSchemaRoute: true;
5117
5117
  };
5118
- GET_ENTITY_NAMES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
5118
+ GET_ENTITY_NAMES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
5119
5119
  method: string;
5120
5120
  path: `/${string}`;
5121
5121
  responseType: "json";
5122
- streamFormat?: "sse" | "stream";
5122
+ streamFormat?: 'sse' | 'stream';
5123
5123
  sseFlushOnConnect?: boolean;
5124
5124
  handler(params: Record<string, unknown> & ServerContext): Promise<{
5125
5125
  names: string[];
@@ -5142,11 +5142,11 @@ export declare const NEW_ROUTES: {
5142
5142
  } & {
5143
5143
  readonly _mastraSchemaRoute: true;
5144
5144
  };
5145
- GET_SERVICE_NAMES: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
5145
+ GET_SERVICE_NAMES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
5146
5146
  method: string;
5147
5147
  path: `/${string}`;
5148
5148
  responseType: "json";
5149
- streamFormat?: "sse" | "stream";
5149
+ streamFormat?: 'sse' | 'stream';
5150
5150
  sseFlushOnConnect?: boolean;
5151
5151
  handler(params: ServerContext): Promise<{
5152
5152
  serviceNames: string[];
@@ -5167,11 +5167,11 @@ export declare const NEW_ROUTES: {
5167
5167
  } & {
5168
5168
  readonly _mastraSchemaRoute: true;
5169
5169
  };
5170
- GET_ENVIRONMENTS: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
5170
+ GET_ENVIRONMENTS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
5171
5171
  method: string;
5172
5172
  path: `/${string}`;
5173
5173
  responseType: "json";
5174
- streamFormat?: "sse" | "stream";
5174
+ streamFormat?: 'sse' | 'stream';
5175
5175
  sseFlushOnConnect?: boolean;
5176
5176
  handler(params: ServerContext): Promise<{
5177
5177
  environments: string[];
@@ -5192,11 +5192,11 @@ export declare const NEW_ROUTES: {
5192
5192
  } & {
5193
5193
  readonly _mastraSchemaRoute: true;
5194
5194
  };
5195
- GET_TAGS: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
5195
+ GET_TAGS: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
5196
5196
  method: string;
5197
5197
  path: `/${string}`;
5198
5198
  responseType: "json";
5199
- streamFormat?: "sse" | "stream";
5199
+ streamFormat?: 'sse' | 'stream';
5200
5200
  sseFlushOnConnect?: boolean;
5201
5201
  handler(params: Record<string, unknown> & ServerContext): Promise<{
5202
5202
  tags: string[];