@mastra/mcp-apps-components 0.0.0-stage → 0.1.0-alpha.0

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.
@@ -0,0 +1,1406 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * What the tool linked to the dashboard app returns as `structuredContent`. The definition is
4
+ * core's dashboard definition; each widget's options are checked by its kind when it renders, so
5
+ * a widget with bad options shows its error in its own cell. The initial time range and filters
6
+ * come from the definition's `defaults`.
7
+ */
8
+ export declare const dashboardRendererInputSchema: z.ZodObject<{
9
+ definition: z.ZodPreprocess<z.ZodObject<{
10
+ schemaVersion: z.ZodLiteral<1>;
11
+ defaults: z.ZodOptional<z.ZodObject<{
12
+ datePreset: z.ZodOptional<z.ZodString>;
13
+ filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<import("@mastra/core/storage").FilterNode, unknown, z.core.$ZodTypeInternals<import("@mastra/core/storage").FilterNode, unknown>>>, import("@mastra/core/storage").FilterNode[]>>;
14
+ }, z.core.$strict>>;
15
+ rows: z.ZodArray<z.ZodObject<{
16
+ widgets: z.ZodArray<z.ZodObject<{
17
+ id: z.ZodString;
18
+ span: z.ZodLiteral<1 | 2 | 3 | 4 | 6 | 12>;
19
+ kind: z.ZodString;
20
+ title: z.ZodOptional<z.ZodString>;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ views: z.ZodArray<z.ZodObject<{
23
+ label: z.ZodOptional<z.ZodString>;
24
+ description: z.ZodOptional<z.ZodString>;
25
+ queries: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
26
+ where: z.ZodOptional<z.ZodType<import("@mastra/core/storage").TraceQueryPredicate, import("@mastra/core/storage").TraceQueryPredicate, z.core.$ZodTypeInternals<import("@mastra/core/storage").TraceQueryPredicate, import("@mastra/core/storage").TraceQueryPredicate>>>;
27
+ groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
28
+ interval: z.ZodOptional<z.ZodEnum<{
29
+ "15m": "15m";
30
+ "1d": "1d";
31
+ "1h": "1h";
32
+ "1m": "1m";
33
+ "5m": "5m";
34
+ }>>;
35
+ measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
36
+ "cost.avg": "cost.avg";
37
+ "cost.sum": "cost.sum";
38
+ count: "count";
39
+ "duration.avg": "duration.avg";
40
+ "duration.max": "duration.max";
41
+ "duration.min": "duration.min";
42
+ "duration.p50": "duration.p50";
43
+ "duration.p90": "duration.p90";
44
+ "duration.p95": "duration.p95";
45
+ "duration.p99": "duration.p99";
46
+ errorCount: "errorCount";
47
+ errorRate: "errorRate";
48
+ "timeToFirstChunk.avg": "timeToFirstChunk.avg";
49
+ "timeToFirstChunk.count": "timeToFirstChunk.count";
50
+ "timeToFirstChunk.max": "timeToFirstChunk.max";
51
+ "timeToFirstChunk.min": "timeToFirstChunk.min";
52
+ "timeToFirstChunk.p50": "timeToFirstChunk.p50";
53
+ "timeToFirstChunk.p90": "timeToFirstChunk.p90";
54
+ "timeToFirstChunk.p95": "timeToFirstChunk.p95";
55
+ "timeToFirstChunk.p99": "timeToFirstChunk.p99";
56
+ "timeToFirstToken.avg": "timeToFirstToken.avg";
57
+ "timeToFirstToken.count": "timeToFirstToken.count";
58
+ "timeToFirstToken.max": "timeToFirstToken.max";
59
+ "timeToFirstToken.min": "timeToFirstToken.min";
60
+ "timeToFirstToken.p50": "timeToFirstToken.p50";
61
+ "timeToFirstToken.p90": "timeToFirstToken.p90";
62
+ "timeToFirstToken.p95": "timeToFirstToken.p95";
63
+ "timeToFirstToken.p99": "timeToFirstToken.p99";
64
+ "tokens.cached.avg": "tokens.cached.avg";
65
+ "tokens.cached.sum": "tokens.cached.sum";
66
+ "tokens.input.avg": "tokens.input.avg";
67
+ "tokens.input.sum": "tokens.input.sum";
68
+ "tokens.output.avg": "tokens.output.avg";
69
+ "tokens.output.sum": "tokens.output.sum";
70
+ "tokens.reasoning.avg": "tokens.reasoning.avg";
71
+ "tokens.reasoning.sum": "tokens.reasoning.sum";
72
+ "tokens.total.avg": "tokens.total.avg";
73
+ "tokens.total.sum": "tokens.total.sum";
74
+ }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
75
+ having: z.ZodOptional<z.ZodType<import("@mastra/core/storage").TraceQueryScalarPredicate, import("@mastra/core/storage").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("@mastra/core/storage").TraceQueryScalarPredicate, import("@mastra/core/storage").TraceQueryScalarPredicate>>>;
76
+ orderBy: z.ZodDefault<z.ZodObject<{
77
+ field: z.ZodString;
78
+ direction: z.ZodEnum<{
79
+ asc: "asc";
80
+ desc: "desc";
81
+ }>;
82
+ }, z.core.$strict>>;
83
+ limit: z.ZodDefault<z.ZodNumber>;
84
+ source: z.ZodLiteral<"traceAggregate">;
85
+ id: z.ZodOptional<z.ZodString>;
86
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
87
+ }, z.core.$strict>, z.ZodObject<{
88
+ where: z.ZodOptional<z.ZodType<import("@mastra/core/storage").TraceQueryScalarPredicate, import("@mastra/core/storage").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("@mastra/core/storage").TraceQueryScalarPredicate, import("@mastra/core/storage").TraceQueryScalarPredicate>>>;
89
+ groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
90
+ interval: z.ZodOptional<z.ZodEnum<{
91
+ "15m": "15m";
92
+ "1d": "1d";
93
+ "1h": "1h";
94
+ "1m": "1m";
95
+ "5m": "5m";
96
+ }>>;
97
+ measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
98
+ "cost.avg": "cost.avg";
99
+ "cost.sum": "cost.sum";
100
+ count: "count";
101
+ "duration.avg": "duration.avg";
102
+ "duration.max": "duration.max";
103
+ "duration.min": "duration.min";
104
+ "duration.p50": "duration.p50";
105
+ "duration.p90": "duration.p90";
106
+ "duration.p95": "duration.p95";
107
+ "duration.p99": "duration.p99";
108
+ errorCount: "errorCount";
109
+ errorRate: "errorRate";
110
+ "timeToFirstChunk.avg": "timeToFirstChunk.avg";
111
+ "timeToFirstChunk.count": "timeToFirstChunk.count";
112
+ "timeToFirstChunk.max": "timeToFirstChunk.max";
113
+ "timeToFirstChunk.min": "timeToFirstChunk.min";
114
+ "timeToFirstChunk.p50": "timeToFirstChunk.p50";
115
+ "timeToFirstChunk.p90": "timeToFirstChunk.p90";
116
+ "timeToFirstChunk.p95": "timeToFirstChunk.p95";
117
+ "timeToFirstChunk.p99": "timeToFirstChunk.p99";
118
+ "timeToFirstToken.avg": "timeToFirstToken.avg";
119
+ "timeToFirstToken.count": "timeToFirstToken.count";
120
+ "timeToFirstToken.max": "timeToFirstToken.max";
121
+ "timeToFirstToken.min": "timeToFirstToken.min";
122
+ "timeToFirstToken.p50": "timeToFirstToken.p50";
123
+ "timeToFirstToken.p90": "timeToFirstToken.p90";
124
+ "timeToFirstToken.p95": "timeToFirstToken.p95";
125
+ "timeToFirstToken.p99": "timeToFirstToken.p99";
126
+ "tokens.cached.avg": "tokens.cached.avg";
127
+ "tokens.cached.sum": "tokens.cached.sum";
128
+ "tokens.input.avg": "tokens.input.avg";
129
+ "tokens.input.sum": "tokens.input.sum";
130
+ "tokens.output.avg": "tokens.output.avg";
131
+ "tokens.output.sum": "tokens.output.sum";
132
+ "tokens.reasoning.avg": "tokens.reasoning.avg";
133
+ "tokens.reasoning.sum": "tokens.reasoning.sum";
134
+ "tokens.total.avg": "tokens.total.avg";
135
+ "tokens.total.sum": "tokens.total.sum";
136
+ }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
137
+ having: z.ZodOptional<z.ZodType<import("@mastra/core/storage").TraceQueryScalarPredicate, import("@mastra/core/storage").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("@mastra/core/storage").TraceQueryScalarPredicate, import("@mastra/core/storage").TraceQueryScalarPredicate>>>;
138
+ orderBy: z.ZodDefault<z.ZodObject<{
139
+ field: z.ZodString;
140
+ direction: z.ZodEnum<{
141
+ asc: "asc";
142
+ desc: "desc";
143
+ }>;
144
+ }, z.core.$strict>>;
145
+ limit: z.ZodDefault<z.ZodNumber>;
146
+ source: z.ZodLiteral<"spanAggregate">;
147
+ id: z.ZodOptional<z.ZodString>;
148
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
149
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
150
+ name: z.ZodArray<z.ZodString>;
151
+ aggregation: z.ZodEnum<{
152
+ avg: "avg";
153
+ count: "count";
154
+ count_distinct: "count_distinct";
155
+ last: "last";
156
+ max: "max";
157
+ min: "min";
158
+ sum: "sum";
159
+ }>;
160
+ distinctColumn: z.ZodOptional<z.ZodEnum<{
161
+ entityName: "entityName";
162
+ entityType: "entityType";
163
+ environment: "environment";
164
+ executionSource: "executionSource";
165
+ model: "model";
166
+ name: "name";
167
+ parentEntityName: "parentEntityName";
168
+ parentEntityType: "parentEntityType";
169
+ provider: "provider";
170
+ resourceId: "resourceId";
171
+ rootEntityName: "rootEntityName";
172
+ rootEntityType: "rootEntityType";
173
+ serviceName: "serviceName";
174
+ threadId: "threadId";
175
+ }>>;
176
+ source: z.ZodLiteral<"metrics">;
177
+ id: z.ZodOptional<z.ZodString>;
178
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
179
+ request: z.ZodLiteral<"aggregate">;
180
+ filters: z.ZodOptional<z.ZodObject<{
181
+ traceId: z.ZodOptional<z.ZodString>;
182
+ spanId: z.ZodOptional<z.ZodString>;
183
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
184
+ entityName: z.ZodOptional<z.ZodString>;
185
+ entityVersionId: z.ZodOptional<z.ZodString>;
186
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
187
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
188
+ userId: z.ZodOptional<z.ZodString>;
189
+ organizationId: z.ZodOptional<z.ZodString>;
190
+ experimentId: z.ZodOptional<z.ZodString>;
191
+ serviceName: z.ZodOptional<z.ZodString>;
192
+ environment: z.ZodOptional<z.ZodString>;
193
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
194
+ parentEntityName: z.ZodOptional<z.ZodString>;
195
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
196
+ rootEntityName: z.ZodOptional<z.ZodString>;
197
+ resourceId: z.ZodOptional<z.ZodString>;
198
+ runId: z.ZodOptional<z.ZodString>;
199
+ sessionId: z.ZodOptional<z.ZodString>;
200
+ threadId: z.ZodOptional<z.ZodString>;
201
+ requestId: z.ZodOptional<z.ZodString>;
202
+ executionSource: z.ZodOptional<z.ZodString>;
203
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
204
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
205
+ experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
206
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
207
+ source: z.ZodOptional<z.ZodString>;
208
+ provider: z.ZodOptional<z.ZodString>;
209
+ model: z.ZodOptional<z.ZodString>;
210
+ costUnit: z.ZodOptional<z.ZodString>;
211
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
212
+ }, z.core.$strict>>;
213
+ }, z.core.$strict>, z.ZodObject<{
214
+ name: z.ZodArray<z.ZodString>;
215
+ groupBy: z.ZodArray<z.ZodString>;
216
+ aggregation: z.ZodEnum<{
217
+ avg: "avg";
218
+ count: "count";
219
+ count_distinct: "count_distinct";
220
+ last: "last";
221
+ max: "max";
222
+ min: "min";
223
+ sum: "sum";
224
+ }>;
225
+ distinctColumn: z.ZodOptional<z.ZodEnum<{
226
+ entityName: "entityName";
227
+ entityType: "entityType";
228
+ environment: "environment";
229
+ executionSource: "executionSource";
230
+ model: "model";
231
+ name: "name";
232
+ parentEntityName: "parentEntityName";
233
+ parentEntityType: "parentEntityType";
234
+ provider: "provider";
235
+ resourceId: "resourceId";
236
+ rootEntityName: "rootEntityName";
237
+ rootEntityType: "rootEntityType";
238
+ serviceName: "serviceName";
239
+ threadId: "threadId";
240
+ }>>;
241
+ limit: z.ZodOptional<z.ZodNumber>;
242
+ orderDirection: z.ZodOptional<z.ZodEnum<{
243
+ ASC: "ASC";
244
+ DESC: "DESC";
245
+ }>>;
246
+ source: z.ZodLiteral<"metrics">;
247
+ id: z.ZodOptional<z.ZodString>;
248
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
249
+ request: z.ZodLiteral<"breakdown">;
250
+ filters: z.ZodOptional<z.ZodObject<{
251
+ traceId: z.ZodOptional<z.ZodString>;
252
+ spanId: z.ZodOptional<z.ZodString>;
253
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
254
+ entityName: z.ZodOptional<z.ZodString>;
255
+ entityVersionId: z.ZodOptional<z.ZodString>;
256
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
257
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
258
+ userId: z.ZodOptional<z.ZodString>;
259
+ organizationId: z.ZodOptional<z.ZodString>;
260
+ experimentId: z.ZodOptional<z.ZodString>;
261
+ serviceName: z.ZodOptional<z.ZodString>;
262
+ environment: z.ZodOptional<z.ZodString>;
263
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
264
+ parentEntityName: z.ZodOptional<z.ZodString>;
265
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
266
+ rootEntityName: z.ZodOptional<z.ZodString>;
267
+ resourceId: z.ZodOptional<z.ZodString>;
268
+ runId: z.ZodOptional<z.ZodString>;
269
+ sessionId: z.ZodOptional<z.ZodString>;
270
+ threadId: z.ZodOptional<z.ZodString>;
271
+ requestId: z.ZodOptional<z.ZodString>;
272
+ executionSource: z.ZodOptional<z.ZodString>;
273
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
274
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
275
+ experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
276
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
277
+ source: z.ZodOptional<z.ZodString>;
278
+ provider: z.ZodOptional<z.ZodString>;
279
+ model: z.ZodOptional<z.ZodString>;
280
+ costUnit: z.ZodOptional<z.ZodString>;
281
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
282
+ }, z.core.$strict>>;
283
+ }, z.core.$strict>, z.ZodObject<{
284
+ name: z.ZodArray<z.ZodString>;
285
+ aggregation: z.ZodEnum<{
286
+ avg: "avg";
287
+ count: "count";
288
+ count_distinct: "count_distinct";
289
+ last: "last";
290
+ max: "max";
291
+ min: "min";
292
+ sum: "sum";
293
+ }>;
294
+ distinctColumn: z.ZodOptional<z.ZodEnum<{
295
+ entityName: "entityName";
296
+ entityType: "entityType";
297
+ environment: "environment";
298
+ executionSource: "executionSource";
299
+ model: "model";
300
+ name: "name";
301
+ parentEntityName: "parentEntityName";
302
+ parentEntityType: "parentEntityType";
303
+ provider: "provider";
304
+ resourceId: "resourceId";
305
+ rootEntityName: "rootEntityName";
306
+ rootEntityType: "rootEntityType";
307
+ serviceName: "serviceName";
308
+ threadId: "threadId";
309
+ }>>;
310
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
311
+ source: z.ZodLiteral<"metrics">;
312
+ id: z.ZodOptional<z.ZodString>;
313
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
314
+ request: z.ZodLiteral<"timeSeries">;
315
+ interval: z.ZodOptional<z.ZodEnum<{
316
+ "15m": "15m";
317
+ "1d": "1d";
318
+ "1h": "1h";
319
+ "1m": "1m";
320
+ "5m": "5m";
321
+ }>>;
322
+ filters: z.ZodOptional<z.ZodObject<{
323
+ traceId: z.ZodOptional<z.ZodString>;
324
+ spanId: z.ZodOptional<z.ZodString>;
325
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
326
+ entityName: z.ZodOptional<z.ZodString>;
327
+ entityVersionId: z.ZodOptional<z.ZodString>;
328
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
329
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
330
+ userId: z.ZodOptional<z.ZodString>;
331
+ organizationId: z.ZodOptional<z.ZodString>;
332
+ experimentId: z.ZodOptional<z.ZodString>;
333
+ serviceName: z.ZodOptional<z.ZodString>;
334
+ environment: z.ZodOptional<z.ZodString>;
335
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
336
+ parentEntityName: z.ZodOptional<z.ZodString>;
337
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
338
+ rootEntityName: z.ZodOptional<z.ZodString>;
339
+ resourceId: z.ZodOptional<z.ZodString>;
340
+ runId: z.ZodOptional<z.ZodString>;
341
+ sessionId: z.ZodOptional<z.ZodString>;
342
+ threadId: z.ZodOptional<z.ZodString>;
343
+ requestId: z.ZodOptional<z.ZodString>;
344
+ executionSource: z.ZodOptional<z.ZodString>;
345
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
346
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
347
+ experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
348
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
349
+ source: z.ZodOptional<z.ZodString>;
350
+ provider: z.ZodOptional<z.ZodString>;
351
+ model: z.ZodOptional<z.ZodString>;
352
+ costUnit: z.ZodOptional<z.ZodString>;
353
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
354
+ }, z.core.$strict>>;
355
+ }, z.core.$strict>, z.ZodObject<{
356
+ name: z.ZodString;
357
+ percentiles: z.ZodArray<z.ZodNumber>;
358
+ source: z.ZodLiteral<"metrics">;
359
+ id: z.ZodOptional<z.ZodString>;
360
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
361
+ request: z.ZodLiteral<"percentiles">;
362
+ interval: z.ZodOptional<z.ZodEnum<{
363
+ "15m": "15m";
364
+ "1d": "1d";
365
+ "1h": "1h";
366
+ "1m": "1m";
367
+ "5m": "5m";
368
+ }>>;
369
+ filters: z.ZodOptional<z.ZodObject<{
370
+ traceId: z.ZodOptional<z.ZodString>;
371
+ spanId: z.ZodOptional<z.ZodString>;
372
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
373
+ entityName: z.ZodOptional<z.ZodString>;
374
+ entityVersionId: z.ZodOptional<z.ZodString>;
375
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
376
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
377
+ userId: z.ZodOptional<z.ZodString>;
378
+ organizationId: z.ZodOptional<z.ZodString>;
379
+ experimentId: z.ZodOptional<z.ZodString>;
380
+ serviceName: z.ZodOptional<z.ZodString>;
381
+ environment: z.ZodOptional<z.ZodString>;
382
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
383
+ parentEntityName: z.ZodOptional<z.ZodString>;
384
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
385
+ rootEntityName: z.ZodOptional<z.ZodString>;
386
+ resourceId: z.ZodOptional<z.ZodString>;
387
+ runId: z.ZodOptional<z.ZodString>;
388
+ sessionId: z.ZodOptional<z.ZodString>;
389
+ threadId: z.ZodOptional<z.ZodString>;
390
+ requestId: z.ZodOptional<z.ZodString>;
391
+ executionSource: z.ZodOptional<z.ZodString>;
392
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
393
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
394
+ experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
395
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
396
+ source: z.ZodOptional<z.ZodString>;
397
+ provider: z.ZodOptional<z.ZodString>;
398
+ model: z.ZodOptional<z.ZodString>;
399
+ costUnit: z.ZodOptional<z.ZodString>;
400
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
401
+ }, z.core.$strict>>;
402
+ }, z.core.$strict>], "request">, z.ZodDiscriminatedUnion<[z.ZodObject<{
403
+ scoreSource: z.ZodOptional<z.ZodString>;
404
+ aggregation: z.ZodEnum<{
405
+ avg: "avg";
406
+ count: "count";
407
+ count_distinct: "count_distinct";
408
+ last: "last";
409
+ max: "max";
410
+ min: "min";
411
+ sum: "sum";
412
+ }>;
413
+ source: z.ZodLiteral<"scores">;
414
+ id: z.ZodOptional<z.ZodString>;
415
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
416
+ scorerId: z.ZodOptional<z.ZodString>;
417
+ request: z.ZodLiteral<"aggregate">;
418
+ filters: z.ZodOptional<z.ZodObject<{
419
+ traceId: z.ZodOptional<z.ZodString>;
420
+ spanId: z.ZodOptional<z.ZodString>;
421
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
422
+ entityName: z.ZodOptional<z.ZodString>;
423
+ entityVersionId: z.ZodOptional<z.ZodString>;
424
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
425
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
426
+ userId: z.ZodOptional<z.ZodString>;
427
+ organizationId: z.ZodOptional<z.ZodString>;
428
+ experimentId: z.ZodOptional<z.ZodString>;
429
+ serviceName: z.ZodOptional<z.ZodString>;
430
+ environment: z.ZodOptional<z.ZodString>;
431
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
432
+ parentEntityName: z.ZodOptional<z.ZodString>;
433
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
434
+ rootEntityName: z.ZodOptional<z.ZodString>;
435
+ resourceId: z.ZodOptional<z.ZodString>;
436
+ runId: z.ZodOptional<z.ZodString>;
437
+ sessionId: z.ZodOptional<z.ZodString>;
438
+ threadId: z.ZodOptional<z.ZodString>;
439
+ requestId: z.ZodOptional<z.ZodString>;
440
+ executionSource: z.ZodOptional<z.ZodString>;
441
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
442
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
443
+ scoreSource: z.ZodOptional<z.ZodString>;
444
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
445
+ source: z.ZodOptional<z.ZodString>;
446
+ }, z.core.$strict>>;
447
+ }, z.core.$strict>, z.ZodObject<{
448
+ scoreSource: z.ZodOptional<z.ZodString>;
449
+ groupBy: z.ZodArray<z.ZodString>;
450
+ aggregation: z.ZodEnum<{
451
+ avg: "avg";
452
+ count: "count";
453
+ count_distinct: "count_distinct";
454
+ last: "last";
455
+ max: "max";
456
+ min: "min";
457
+ sum: "sum";
458
+ }>;
459
+ source: z.ZodLiteral<"scores">;
460
+ id: z.ZodOptional<z.ZodString>;
461
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
462
+ scorerId: z.ZodOptional<z.ZodString>;
463
+ request: z.ZodLiteral<"breakdown">;
464
+ filters: z.ZodOptional<z.ZodObject<{
465
+ traceId: z.ZodOptional<z.ZodString>;
466
+ spanId: z.ZodOptional<z.ZodString>;
467
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
468
+ entityName: z.ZodOptional<z.ZodString>;
469
+ entityVersionId: z.ZodOptional<z.ZodString>;
470
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
471
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
472
+ userId: z.ZodOptional<z.ZodString>;
473
+ organizationId: z.ZodOptional<z.ZodString>;
474
+ experimentId: z.ZodOptional<z.ZodString>;
475
+ serviceName: z.ZodOptional<z.ZodString>;
476
+ environment: z.ZodOptional<z.ZodString>;
477
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
478
+ parentEntityName: z.ZodOptional<z.ZodString>;
479
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
480
+ rootEntityName: z.ZodOptional<z.ZodString>;
481
+ resourceId: z.ZodOptional<z.ZodString>;
482
+ runId: z.ZodOptional<z.ZodString>;
483
+ sessionId: z.ZodOptional<z.ZodString>;
484
+ threadId: z.ZodOptional<z.ZodString>;
485
+ requestId: z.ZodOptional<z.ZodString>;
486
+ executionSource: z.ZodOptional<z.ZodString>;
487
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
488
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
489
+ scoreSource: z.ZodOptional<z.ZodString>;
490
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
491
+ source: z.ZodOptional<z.ZodString>;
492
+ }, z.core.$strict>>;
493
+ }, z.core.$strict>, z.ZodObject<{
494
+ scoreSource: z.ZodOptional<z.ZodString>;
495
+ aggregation: z.ZodEnum<{
496
+ avg: "avg";
497
+ count: "count";
498
+ count_distinct: "count_distinct";
499
+ last: "last";
500
+ max: "max";
501
+ min: "min";
502
+ sum: "sum";
503
+ }>;
504
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
505
+ source: z.ZodLiteral<"scores">;
506
+ id: z.ZodOptional<z.ZodString>;
507
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
508
+ scorerId: z.ZodOptional<z.ZodString>;
509
+ request: z.ZodLiteral<"timeSeries">;
510
+ interval: z.ZodOptional<z.ZodEnum<{
511
+ "15m": "15m";
512
+ "1d": "1d";
513
+ "1h": "1h";
514
+ "1m": "1m";
515
+ "5m": "5m";
516
+ }>>;
517
+ filters: z.ZodOptional<z.ZodObject<{
518
+ traceId: z.ZodOptional<z.ZodString>;
519
+ spanId: z.ZodOptional<z.ZodString>;
520
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
521
+ entityName: z.ZodOptional<z.ZodString>;
522
+ entityVersionId: z.ZodOptional<z.ZodString>;
523
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
524
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
525
+ userId: z.ZodOptional<z.ZodString>;
526
+ organizationId: z.ZodOptional<z.ZodString>;
527
+ experimentId: z.ZodOptional<z.ZodString>;
528
+ serviceName: z.ZodOptional<z.ZodString>;
529
+ environment: z.ZodOptional<z.ZodString>;
530
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
531
+ parentEntityName: z.ZodOptional<z.ZodString>;
532
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
533
+ rootEntityName: z.ZodOptional<z.ZodString>;
534
+ resourceId: z.ZodOptional<z.ZodString>;
535
+ runId: z.ZodOptional<z.ZodString>;
536
+ sessionId: z.ZodOptional<z.ZodString>;
537
+ threadId: z.ZodOptional<z.ZodString>;
538
+ requestId: z.ZodOptional<z.ZodString>;
539
+ executionSource: z.ZodOptional<z.ZodString>;
540
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
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
+ }, z.core.$strict>>;
546
+ }, z.core.$strict>, z.ZodObject<{
547
+ scoreSource: z.ZodOptional<z.ZodString>;
548
+ percentiles: z.ZodArray<z.ZodNumber>;
549
+ source: z.ZodLiteral<"scores">;
550
+ id: z.ZodOptional<z.ZodString>;
551
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
552
+ scorerId: z.ZodOptional<z.ZodString>;
553
+ request: z.ZodLiteral<"percentiles">;
554
+ interval: z.ZodOptional<z.ZodEnum<{
555
+ "15m": "15m";
556
+ "1d": "1d";
557
+ "1h": "1h";
558
+ "1m": "1m";
559
+ "5m": "5m";
560
+ }>>;
561
+ filters: z.ZodOptional<z.ZodObject<{
562
+ traceId: z.ZodOptional<z.ZodString>;
563
+ spanId: z.ZodOptional<z.ZodString>;
564
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
565
+ entityName: z.ZodOptional<z.ZodString>;
566
+ entityVersionId: z.ZodOptional<z.ZodString>;
567
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
568
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
569
+ userId: z.ZodOptional<z.ZodString>;
570
+ organizationId: z.ZodOptional<z.ZodString>;
571
+ experimentId: z.ZodOptional<z.ZodString>;
572
+ serviceName: z.ZodOptional<z.ZodString>;
573
+ environment: z.ZodOptional<z.ZodString>;
574
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
575
+ parentEntityName: z.ZodOptional<z.ZodString>;
576
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
577
+ rootEntityName: z.ZodOptional<z.ZodString>;
578
+ resourceId: z.ZodOptional<z.ZodString>;
579
+ runId: z.ZodOptional<z.ZodString>;
580
+ sessionId: z.ZodOptional<z.ZodString>;
581
+ threadId: z.ZodOptional<z.ZodString>;
582
+ requestId: z.ZodOptional<z.ZodString>;
583
+ executionSource: z.ZodOptional<z.ZodString>;
584
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
585
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
586
+ scoreSource: z.ZodOptional<z.ZodString>;
587
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
588
+ source: z.ZodOptional<z.ZodString>;
589
+ }, z.core.$strict>>;
590
+ }, z.core.$strict>], "request">], "source">, {
591
+ name: string[];
592
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
593
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
594
+ source: "metrics";
595
+ id?: string | undefined;
596
+ compare?: "previousWindow" | undefined;
597
+ request: "aggregate";
598
+ filters?: {
599
+ traceId?: string | undefined;
600
+ spanId?: string | undefined;
601
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
602
+ entityName?: string | undefined;
603
+ entityVersionId?: string | undefined;
604
+ parentEntityVersionId?: string | undefined;
605
+ rootEntityVersionId?: string | undefined;
606
+ userId?: string | undefined;
607
+ organizationId?: string | undefined;
608
+ experimentId?: string | undefined;
609
+ serviceName?: string | undefined;
610
+ environment?: string | undefined;
611
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
612
+ parentEntityName?: string | undefined;
613
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
614
+ rootEntityName?: string | undefined;
615
+ resourceId?: string | undefined;
616
+ runId?: string | undefined;
617
+ sessionId?: string | undefined;
618
+ threadId?: string | undefined;
619
+ requestId?: string | undefined;
620
+ executionSource?: string | undefined;
621
+ tags?: string[] | undefined;
622
+ traceIds?: string[] | undefined;
623
+ experimentIds?: string[] | undefined;
624
+ name?: string[] | undefined;
625
+ source?: string | undefined;
626
+ provider?: string | undefined;
627
+ model?: string | undefined;
628
+ costUnit?: string | undefined;
629
+ labels?: Record<string, string> | undefined;
630
+ } | undefined;
631
+ } | {
632
+ name: string[];
633
+ groupBy: string[];
634
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
635
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
636
+ limit?: number | undefined;
637
+ orderDirection?: "ASC" | "DESC" | undefined;
638
+ source: "metrics";
639
+ id?: string | undefined;
640
+ compare?: "previousWindow" | undefined;
641
+ request: "breakdown";
642
+ filters?: {
643
+ traceId?: string | undefined;
644
+ spanId?: string | undefined;
645
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
646
+ entityName?: string | undefined;
647
+ entityVersionId?: string | undefined;
648
+ parentEntityVersionId?: string | undefined;
649
+ rootEntityVersionId?: string | undefined;
650
+ userId?: string | undefined;
651
+ organizationId?: string | undefined;
652
+ experimentId?: string | undefined;
653
+ serviceName?: string | undefined;
654
+ environment?: string | undefined;
655
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
656
+ parentEntityName?: string | undefined;
657
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
658
+ rootEntityName?: string | undefined;
659
+ resourceId?: string | undefined;
660
+ runId?: string | undefined;
661
+ sessionId?: string | undefined;
662
+ threadId?: string | undefined;
663
+ requestId?: string | undefined;
664
+ executionSource?: string | undefined;
665
+ tags?: string[] | undefined;
666
+ traceIds?: string[] | undefined;
667
+ experimentIds?: string[] | undefined;
668
+ name?: string[] | undefined;
669
+ source?: string | undefined;
670
+ provider?: string | undefined;
671
+ model?: string | undefined;
672
+ costUnit?: string | undefined;
673
+ labels?: Record<string, string> | undefined;
674
+ } | undefined;
675
+ } | {
676
+ name: string[];
677
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
678
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
679
+ groupBy?: string[] | undefined;
680
+ source: "metrics";
681
+ id?: string | undefined;
682
+ compare?: "previousWindow" | undefined;
683
+ request: "timeSeries";
684
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
685
+ filters?: {
686
+ traceId?: string | undefined;
687
+ spanId?: string | undefined;
688
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
689
+ entityName?: string | undefined;
690
+ entityVersionId?: string | undefined;
691
+ parentEntityVersionId?: string | undefined;
692
+ rootEntityVersionId?: string | undefined;
693
+ userId?: string | undefined;
694
+ organizationId?: string | undefined;
695
+ experimentId?: string | undefined;
696
+ serviceName?: string | undefined;
697
+ environment?: string | undefined;
698
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
699
+ parentEntityName?: string | undefined;
700
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
701
+ rootEntityName?: string | undefined;
702
+ resourceId?: string | undefined;
703
+ runId?: string | undefined;
704
+ sessionId?: string | undefined;
705
+ threadId?: string | undefined;
706
+ requestId?: string | undefined;
707
+ executionSource?: string | undefined;
708
+ tags?: string[] | undefined;
709
+ traceIds?: string[] | undefined;
710
+ experimentIds?: string[] | undefined;
711
+ name?: string[] | undefined;
712
+ source?: string | undefined;
713
+ provider?: string | undefined;
714
+ model?: string | undefined;
715
+ costUnit?: string | undefined;
716
+ labels?: Record<string, string> | undefined;
717
+ } | undefined;
718
+ } | {
719
+ name: string;
720
+ percentiles: number[];
721
+ source: "metrics";
722
+ id?: string | undefined;
723
+ compare?: "previousWindow" | undefined;
724
+ request: "percentiles";
725
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
726
+ filters?: {
727
+ traceId?: string | undefined;
728
+ spanId?: string | undefined;
729
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
730
+ entityName?: string | undefined;
731
+ entityVersionId?: string | undefined;
732
+ parentEntityVersionId?: string | undefined;
733
+ rootEntityVersionId?: string | undefined;
734
+ userId?: string | undefined;
735
+ organizationId?: string | undefined;
736
+ experimentId?: string | undefined;
737
+ serviceName?: string | undefined;
738
+ environment?: string | undefined;
739
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
740
+ parentEntityName?: string | undefined;
741
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
742
+ rootEntityName?: string | undefined;
743
+ resourceId?: string | undefined;
744
+ runId?: string | undefined;
745
+ sessionId?: string | undefined;
746
+ threadId?: string | undefined;
747
+ requestId?: string | undefined;
748
+ executionSource?: string | undefined;
749
+ tags?: string[] | undefined;
750
+ traceIds?: string[] | undefined;
751
+ experimentIds?: string[] | undefined;
752
+ name?: string[] | undefined;
753
+ source?: string | undefined;
754
+ provider?: string | undefined;
755
+ model?: string | undefined;
756
+ costUnit?: string | undefined;
757
+ labels?: Record<string, string> | undefined;
758
+ } | undefined;
759
+ } | {
760
+ scoreSource?: string | undefined;
761
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
762
+ source: "scores";
763
+ id?: string | undefined;
764
+ compare?: "previousWindow" | undefined;
765
+ scorerId?: string | undefined;
766
+ request: "aggregate";
767
+ filters?: {
768
+ traceId?: string | undefined;
769
+ spanId?: string | undefined;
770
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
771
+ entityName?: string | undefined;
772
+ entityVersionId?: string | undefined;
773
+ parentEntityVersionId?: string | undefined;
774
+ rootEntityVersionId?: string | undefined;
775
+ userId?: string | undefined;
776
+ organizationId?: string | undefined;
777
+ experimentId?: string | undefined;
778
+ serviceName?: string | undefined;
779
+ environment?: string | undefined;
780
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
781
+ parentEntityName?: string | undefined;
782
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
783
+ rootEntityName?: string | undefined;
784
+ resourceId?: string | undefined;
785
+ runId?: string | undefined;
786
+ sessionId?: string | undefined;
787
+ threadId?: string | undefined;
788
+ requestId?: string | undefined;
789
+ executionSource?: string | undefined;
790
+ tags?: string[] | undefined;
791
+ scorerId?: string | string[] | undefined;
792
+ scoreSource?: string | undefined;
793
+ metadata?: Record<string, unknown> | null | undefined;
794
+ source?: string | undefined;
795
+ } | undefined;
796
+ } | {
797
+ scoreSource?: string | undefined;
798
+ groupBy: string[];
799
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
800
+ source: "scores";
801
+ id?: string | undefined;
802
+ compare?: "previousWindow" | undefined;
803
+ scorerId?: string | undefined;
804
+ request: "breakdown";
805
+ filters?: {
806
+ traceId?: string | undefined;
807
+ spanId?: string | undefined;
808
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
809
+ entityName?: string | undefined;
810
+ entityVersionId?: string | undefined;
811
+ parentEntityVersionId?: string | undefined;
812
+ rootEntityVersionId?: string | undefined;
813
+ userId?: string | undefined;
814
+ organizationId?: string | undefined;
815
+ experimentId?: string | undefined;
816
+ serviceName?: string | undefined;
817
+ environment?: string | undefined;
818
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
819
+ parentEntityName?: string | undefined;
820
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
821
+ rootEntityName?: string | undefined;
822
+ resourceId?: string | undefined;
823
+ runId?: string | undefined;
824
+ sessionId?: string | undefined;
825
+ threadId?: string | undefined;
826
+ requestId?: string | undefined;
827
+ executionSource?: string | undefined;
828
+ tags?: string[] | undefined;
829
+ scorerId?: string | string[] | undefined;
830
+ scoreSource?: string | undefined;
831
+ metadata?: Record<string, unknown> | null | undefined;
832
+ source?: string | undefined;
833
+ } | undefined;
834
+ } | {
835
+ scoreSource?: string | undefined;
836
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
837
+ groupBy?: string[] | undefined;
838
+ source: "scores";
839
+ id?: string | undefined;
840
+ compare?: "previousWindow" | undefined;
841
+ scorerId?: string | undefined;
842
+ request: "timeSeries";
843
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
844
+ filters?: {
845
+ traceId?: string | undefined;
846
+ spanId?: string | undefined;
847
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
848
+ entityName?: string | undefined;
849
+ entityVersionId?: string | undefined;
850
+ parentEntityVersionId?: string | undefined;
851
+ rootEntityVersionId?: string | undefined;
852
+ userId?: string | undefined;
853
+ organizationId?: string | undefined;
854
+ experimentId?: string | undefined;
855
+ serviceName?: string | undefined;
856
+ environment?: string | undefined;
857
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
858
+ parentEntityName?: string | undefined;
859
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
860
+ rootEntityName?: string | undefined;
861
+ resourceId?: string | undefined;
862
+ runId?: string | undefined;
863
+ sessionId?: string | undefined;
864
+ threadId?: string | undefined;
865
+ requestId?: string | undefined;
866
+ executionSource?: string | undefined;
867
+ tags?: string[] | undefined;
868
+ scorerId?: string | string[] | undefined;
869
+ scoreSource?: string | undefined;
870
+ metadata?: Record<string, unknown> | null | undefined;
871
+ source?: string | undefined;
872
+ } | undefined;
873
+ } | {
874
+ scoreSource?: string | undefined;
875
+ percentiles: number[];
876
+ source: "scores";
877
+ id?: string | undefined;
878
+ compare?: "previousWindow" | undefined;
879
+ scorerId?: string | undefined;
880
+ request: "percentiles";
881
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
882
+ filters?: {
883
+ traceId?: string | undefined;
884
+ spanId?: string | undefined;
885
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
886
+ entityName?: string | undefined;
887
+ entityVersionId?: string | undefined;
888
+ parentEntityVersionId?: string | undefined;
889
+ rootEntityVersionId?: string | undefined;
890
+ userId?: string | undefined;
891
+ organizationId?: string | undefined;
892
+ experimentId?: string | undefined;
893
+ serviceName?: string | undefined;
894
+ environment?: string | undefined;
895
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
896
+ parentEntityName?: string | undefined;
897
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
898
+ rootEntityName?: string | undefined;
899
+ resourceId?: string | undefined;
900
+ runId?: string | undefined;
901
+ sessionId?: string | undefined;
902
+ threadId?: string | undefined;
903
+ requestId?: string | undefined;
904
+ executionSource?: string | undefined;
905
+ tags?: string[] | undefined;
906
+ scorerId?: string | string[] | undefined;
907
+ scoreSource?: string | undefined;
908
+ metadata?: Record<string, unknown> | null | undefined;
909
+ source?: string | undefined;
910
+ } | undefined;
911
+ } | {
912
+ where?: import("@mastra/core/storage").TraceQueryPredicate | undefined;
913
+ groupBy?: string[] | undefined;
914
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
915
+ measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
916
+ having?: import("@mastra/core/storage").TraceQueryScalarPredicate | undefined;
917
+ orderBy?: {
918
+ field: string;
919
+ direction: "asc" | "desc";
920
+ } | undefined;
921
+ limit?: number | undefined;
922
+ source: "traceAggregate";
923
+ id?: string | undefined;
924
+ compare?: "previousWindow" | undefined;
925
+ } | {
926
+ where?: import("@mastra/core/storage").TraceQueryScalarPredicate | undefined;
927
+ groupBy?: string[] | undefined;
928
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
929
+ measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
930
+ having?: import("@mastra/core/storage").TraceQueryScalarPredicate | undefined;
931
+ orderBy?: {
932
+ field: string;
933
+ direction: "asc" | "desc";
934
+ } | undefined;
935
+ limit?: number | undefined;
936
+ source: "spanAggregate";
937
+ id?: string | undefined;
938
+ compare?: "previousWindow" | undefined;
939
+ }>>;
940
+ columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
941
+ id: z.ZodString;
942
+ label: z.ZodOptional<z.ZodString>;
943
+ scope: z.ZodOptional<z.ZodEnum<{
944
+ org: "org";
945
+ project: "project";
946
+ }>>;
947
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
948
+ }, z.core.$strict>>>;
949
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
950
+ drilldown: z.ZodOptional<z.ZodObject<{
951
+ action: z.ZodOptional<z.ZodObject<{
952
+ page: z.ZodEnum<{
953
+ logs: "logs";
954
+ spans: "spans";
955
+ threads: "threads";
956
+ traces: "traces";
957
+ }>;
958
+ filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<import("@mastra/core/storage").FilterNode, unknown, z.core.$ZodTypeInternals<import("@mastra/core/storage").FilterNode, unknown>>>, import("@mastra/core/storage").FilterNode[]>>;
959
+ }, z.core.$strict>>;
960
+ click: z.ZodOptional<z.ZodObject<{
961
+ page: z.ZodEnum<{
962
+ logs: "logs";
963
+ spans: "spans";
964
+ threads: "threads";
965
+ traces: "traces";
966
+ }>;
967
+ filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<import("@mastra/core/storage").FilterNode, unknown, z.core.$ZodTypeInternals<import("@mastra/core/storage").FilterNode, unknown>>>, import("@mastra/core/storage").FilterNode[]>>;
968
+ }, z.core.$strict>>;
969
+ }, z.core.$strict>>;
970
+ scope: z.ZodOptional<z.ZodEnum<{
971
+ org: "org";
972
+ project: "project";
973
+ }>>;
974
+ }, z.core.$strict>>;
975
+ drilldown: z.ZodOptional<z.ZodObject<{
976
+ action: z.ZodOptional<z.ZodObject<{
977
+ page: z.ZodEnum<{
978
+ logs: "logs";
979
+ spans: "spans";
980
+ threads: "threads";
981
+ traces: "traces";
982
+ }>;
983
+ filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<import("@mastra/core/storage").FilterNode, unknown, z.core.$ZodTypeInternals<import("@mastra/core/storage").FilterNode, unknown>>>, import("@mastra/core/storage").FilterNode[]>>;
984
+ }, z.core.$strict>>;
985
+ click: z.ZodOptional<z.ZodObject<{
986
+ page: z.ZodEnum<{
987
+ logs: "logs";
988
+ spans: "spans";
989
+ threads: "threads";
990
+ traces: "traces";
991
+ }>;
992
+ filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<import("@mastra/core/storage").FilterNode, unknown, z.core.$ZodTypeInternals<import("@mastra/core/storage").FilterNode, unknown>>>, import("@mastra/core/storage").FilterNode[]>>;
993
+ }, z.core.$strict>>;
994
+ }, z.core.$strict>>;
995
+ scope: z.ZodOptional<z.ZodEnum<{
996
+ org: "org";
997
+ project: "project";
998
+ }>>;
999
+ }, z.core.$strict>>;
1000
+ }, z.core.$strict>>;
1001
+ }, z.core.$strict>, {
1002
+ schemaVersion: 1;
1003
+ defaults?: {
1004
+ datePreset?: string | undefined;
1005
+ filters?: import("@mastra/core/storage").FilterNode[] | undefined;
1006
+ } | undefined;
1007
+ rows: {
1008
+ widgets: {
1009
+ id: string;
1010
+ span: 1 | 2 | 3 | 4 | 6 | 12;
1011
+ kind: string;
1012
+ title?: string | undefined;
1013
+ description?: string | undefined;
1014
+ views: {
1015
+ label?: string | undefined;
1016
+ description?: string | undefined;
1017
+ queries: ({
1018
+ name: string[];
1019
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
1020
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
1021
+ source: "metrics";
1022
+ id?: string | undefined;
1023
+ compare?: "previousWindow" | undefined;
1024
+ request: "aggregate";
1025
+ filters?: {
1026
+ traceId?: string | undefined;
1027
+ spanId?: string | undefined;
1028
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
1029
+ entityName?: string | undefined;
1030
+ entityVersionId?: string | undefined;
1031
+ parentEntityVersionId?: string | undefined;
1032
+ rootEntityVersionId?: string | undefined;
1033
+ userId?: string | undefined;
1034
+ organizationId?: string | undefined;
1035
+ experimentId?: string | undefined;
1036
+ serviceName?: string | undefined;
1037
+ environment?: string | undefined;
1038
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
1039
+ parentEntityName?: string | undefined;
1040
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
1041
+ rootEntityName?: string | undefined;
1042
+ resourceId?: string | undefined;
1043
+ runId?: string | undefined;
1044
+ sessionId?: string | undefined;
1045
+ threadId?: string | undefined;
1046
+ requestId?: string | undefined;
1047
+ executionSource?: string | undefined;
1048
+ tags?: string[] | undefined;
1049
+ traceIds?: string[] | undefined;
1050
+ experimentIds?: string[] | undefined;
1051
+ name?: string[] | undefined;
1052
+ source?: string | undefined;
1053
+ provider?: string | undefined;
1054
+ model?: string | undefined;
1055
+ costUnit?: string | undefined;
1056
+ labels?: Record<string, string> | undefined;
1057
+ } | undefined;
1058
+ } | {
1059
+ name: string[];
1060
+ groupBy: string[];
1061
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
1062
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
1063
+ limit?: number | undefined;
1064
+ orderDirection?: "ASC" | "DESC" | undefined;
1065
+ source: "metrics";
1066
+ id?: string | undefined;
1067
+ compare?: "previousWindow" | undefined;
1068
+ request: "breakdown";
1069
+ filters?: {
1070
+ traceId?: string | undefined;
1071
+ spanId?: string | undefined;
1072
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
1073
+ entityName?: string | undefined;
1074
+ entityVersionId?: string | undefined;
1075
+ parentEntityVersionId?: string | undefined;
1076
+ rootEntityVersionId?: string | undefined;
1077
+ userId?: string | undefined;
1078
+ organizationId?: string | undefined;
1079
+ experimentId?: string | undefined;
1080
+ serviceName?: string | undefined;
1081
+ environment?: string | undefined;
1082
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
1083
+ parentEntityName?: string | undefined;
1084
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
1085
+ rootEntityName?: string | undefined;
1086
+ resourceId?: string | undefined;
1087
+ runId?: string | undefined;
1088
+ sessionId?: string | undefined;
1089
+ threadId?: string | undefined;
1090
+ requestId?: string | undefined;
1091
+ executionSource?: string | undefined;
1092
+ tags?: string[] | undefined;
1093
+ traceIds?: string[] | undefined;
1094
+ experimentIds?: string[] | undefined;
1095
+ name?: string[] | undefined;
1096
+ source?: string | undefined;
1097
+ provider?: string | undefined;
1098
+ model?: string | undefined;
1099
+ costUnit?: string | undefined;
1100
+ labels?: Record<string, string> | undefined;
1101
+ } | undefined;
1102
+ } | {
1103
+ name: string[];
1104
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
1105
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
1106
+ groupBy?: string[] | undefined;
1107
+ source: "metrics";
1108
+ id?: string | undefined;
1109
+ compare?: "previousWindow" | undefined;
1110
+ request: "timeSeries";
1111
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
1112
+ filters?: {
1113
+ traceId?: string | undefined;
1114
+ spanId?: string | undefined;
1115
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
1116
+ entityName?: string | undefined;
1117
+ entityVersionId?: string | undefined;
1118
+ parentEntityVersionId?: string | undefined;
1119
+ rootEntityVersionId?: string | undefined;
1120
+ userId?: string | undefined;
1121
+ organizationId?: string | undefined;
1122
+ experimentId?: string | undefined;
1123
+ serviceName?: string | undefined;
1124
+ environment?: string | undefined;
1125
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
1126
+ parentEntityName?: string | undefined;
1127
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
1128
+ rootEntityName?: string | undefined;
1129
+ resourceId?: string | undefined;
1130
+ runId?: string | undefined;
1131
+ sessionId?: string | undefined;
1132
+ threadId?: string | undefined;
1133
+ requestId?: string | undefined;
1134
+ executionSource?: string | undefined;
1135
+ tags?: string[] | undefined;
1136
+ traceIds?: string[] | undefined;
1137
+ experimentIds?: string[] | undefined;
1138
+ name?: string[] | undefined;
1139
+ source?: string | undefined;
1140
+ provider?: string | undefined;
1141
+ model?: string | undefined;
1142
+ costUnit?: string | undefined;
1143
+ labels?: Record<string, string> | undefined;
1144
+ } | undefined;
1145
+ } | {
1146
+ name: string;
1147
+ percentiles: number[];
1148
+ source: "metrics";
1149
+ id?: string | undefined;
1150
+ compare?: "previousWindow" | undefined;
1151
+ request: "percentiles";
1152
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
1153
+ filters?: {
1154
+ traceId?: string | undefined;
1155
+ spanId?: string | undefined;
1156
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
1157
+ entityName?: string | undefined;
1158
+ entityVersionId?: string | undefined;
1159
+ parentEntityVersionId?: string | undefined;
1160
+ rootEntityVersionId?: string | undefined;
1161
+ userId?: string | undefined;
1162
+ organizationId?: string | undefined;
1163
+ experimentId?: string | undefined;
1164
+ serviceName?: string | undefined;
1165
+ environment?: string | undefined;
1166
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
1167
+ parentEntityName?: string | undefined;
1168
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
1169
+ rootEntityName?: string | undefined;
1170
+ resourceId?: string | undefined;
1171
+ runId?: string | undefined;
1172
+ sessionId?: string | undefined;
1173
+ threadId?: string | undefined;
1174
+ requestId?: string | undefined;
1175
+ executionSource?: string | undefined;
1176
+ tags?: string[] | undefined;
1177
+ traceIds?: string[] | undefined;
1178
+ experimentIds?: string[] | undefined;
1179
+ name?: string[] | undefined;
1180
+ source?: string | undefined;
1181
+ provider?: string | undefined;
1182
+ model?: string | undefined;
1183
+ costUnit?: string | undefined;
1184
+ labels?: Record<string, string> | undefined;
1185
+ } | undefined;
1186
+ } | {
1187
+ scoreSource?: string | undefined;
1188
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
1189
+ source: "scores";
1190
+ id?: string | undefined;
1191
+ compare?: "previousWindow" | undefined;
1192
+ scorerId?: string | undefined;
1193
+ request: "aggregate";
1194
+ filters?: {
1195
+ traceId?: string | undefined;
1196
+ spanId?: string | undefined;
1197
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
1198
+ entityName?: string | undefined;
1199
+ entityVersionId?: string | undefined;
1200
+ parentEntityVersionId?: string | undefined;
1201
+ rootEntityVersionId?: string | undefined;
1202
+ userId?: string | undefined;
1203
+ organizationId?: string | undefined;
1204
+ experimentId?: string | undefined;
1205
+ serviceName?: string | undefined;
1206
+ environment?: string | undefined;
1207
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
1208
+ parentEntityName?: string | undefined;
1209
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
1210
+ rootEntityName?: string | undefined;
1211
+ resourceId?: string | undefined;
1212
+ runId?: string | undefined;
1213
+ sessionId?: string | undefined;
1214
+ threadId?: string | undefined;
1215
+ requestId?: string | undefined;
1216
+ executionSource?: string | undefined;
1217
+ tags?: string[] | undefined;
1218
+ scorerId?: string | string[] | undefined;
1219
+ scoreSource?: string | undefined;
1220
+ metadata?: Record<string, unknown> | null | undefined;
1221
+ source?: string | undefined;
1222
+ } | undefined;
1223
+ } | {
1224
+ scoreSource?: string | undefined;
1225
+ groupBy: string[];
1226
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
1227
+ source: "scores";
1228
+ id?: string | undefined;
1229
+ compare?: "previousWindow" | undefined;
1230
+ scorerId?: string | undefined;
1231
+ request: "breakdown";
1232
+ filters?: {
1233
+ traceId?: string | undefined;
1234
+ spanId?: string | undefined;
1235
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
1236
+ entityName?: string | undefined;
1237
+ entityVersionId?: string | undefined;
1238
+ parentEntityVersionId?: string | undefined;
1239
+ rootEntityVersionId?: string | undefined;
1240
+ userId?: string | undefined;
1241
+ organizationId?: string | undefined;
1242
+ experimentId?: string | undefined;
1243
+ serviceName?: string | undefined;
1244
+ environment?: string | undefined;
1245
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
1246
+ parentEntityName?: string | undefined;
1247
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
1248
+ rootEntityName?: string | undefined;
1249
+ resourceId?: string | undefined;
1250
+ runId?: string | undefined;
1251
+ sessionId?: string | undefined;
1252
+ threadId?: string | undefined;
1253
+ requestId?: string | undefined;
1254
+ executionSource?: string | undefined;
1255
+ tags?: string[] | undefined;
1256
+ scorerId?: string | string[] | undefined;
1257
+ scoreSource?: string | undefined;
1258
+ metadata?: Record<string, unknown> | null | undefined;
1259
+ source?: string | undefined;
1260
+ } | undefined;
1261
+ } | {
1262
+ scoreSource?: string | undefined;
1263
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
1264
+ groupBy?: string[] | undefined;
1265
+ source: "scores";
1266
+ id?: string | undefined;
1267
+ compare?: "previousWindow" | undefined;
1268
+ scorerId?: string | undefined;
1269
+ request: "timeSeries";
1270
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
1271
+ filters?: {
1272
+ traceId?: string | undefined;
1273
+ spanId?: string | undefined;
1274
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
1275
+ entityName?: string | undefined;
1276
+ entityVersionId?: string | undefined;
1277
+ parentEntityVersionId?: string | undefined;
1278
+ rootEntityVersionId?: string | undefined;
1279
+ userId?: string | undefined;
1280
+ organizationId?: string | undefined;
1281
+ experimentId?: string | undefined;
1282
+ serviceName?: string | undefined;
1283
+ environment?: string | undefined;
1284
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
1285
+ parentEntityName?: string | undefined;
1286
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
1287
+ rootEntityName?: string | undefined;
1288
+ resourceId?: string | undefined;
1289
+ runId?: string | undefined;
1290
+ sessionId?: string | undefined;
1291
+ threadId?: string | undefined;
1292
+ requestId?: string | undefined;
1293
+ executionSource?: string | undefined;
1294
+ tags?: string[] | undefined;
1295
+ scorerId?: string | string[] | undefined;
1296
+ scoreSource?: string | undefined;
1297
+ metadata?: Record<string, unknown> | null | undefined;
1298
+ source?: string | undefined;
1299
+ } | undefined;
1300
+ } | {
1301
+ scoreSource?: string | undefined;
1302
+ percentiles: number[];
1303
+ source: "scores";
1304
+ id?: string | undefined;
1305
+ compare?: "previousWindow" | undefined;
1306
+ scorerId?: string | undefined;
1307
+ request: "percentiles";
1308
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
1309
+ filters?: {
1310
+ traceId?: string | undefined;
1311
+ spanId?: string | undefined;
1312
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
1313
+ entityName?: string | undefined;
1314
+ entityVersionId?: string | undefined;
1315
+ parentEntityVersionId?: string | undefined;
1316
+ rootEntityVersionId?: string | undefined;
1317
+ userId?: string | undefined;
1318
+ organizationId?: string | undefined;
1319
+ experimentId?: string | undefined;
1320
+ serviceName?: string | undefined;
1321
+ environment?: string | undefined;
1322
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
1323
+ parentEntityName?: string | undefined;
1324
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
1325
+ rootEntityName?: string | undefined;
1326
+ resourceId?: string | undefined;
1327
+ runId?: string | undefined;
1328
+ sessionId?: string | undefined;
1329
+ threadId?: string | undefined;
1330
+ requestId?: string | undefined;
1331
+ executionSource?: string | undefined;
1332
+ tags?: string[] | undefined;
1333
+ scorerId?: string | string[] | undefined;
1334
+ scoreSource?: string | undefined;
1335
+ metadata?: Record<string, unknown> | null | undefined;
1336
+ source?: string | undefined;
1337
+ } | undefined;
1338
+ } | {
1339
+ where?: import("@mastra/core/storage").TraceQueryPredicate | undefined;
1340
+ groupBy?: string[] | undefined;
1341
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
1342
+ measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
1343
+ having?: import("@mastra/core/storage").TraceQueryScalarPredicate | undefined;
1344
+ orderBy?: {
1345
+ field: string;
1346
+ direction: "asc" | "desc";
1347
+ } | undefined;
1348
+ limit?: number | undefined;
1349
+ source: "traceAggregate";
1350
+ id?: string | undefined;
1351
+ compare?: "previousWindow" | undefined;
1352
+ } | {
1353
+ where?: import("@mastra/core/storage").TraceQueryScalarPredicate | undefined;
1354
+ groupBy?: string[] | undefined;
1355
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
1356
+ measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
1357
+ having?: import("@mastra/core/storage").TraceQueryScalarPredicate | undefined;
1358
+ orderBy?: {
1359
+ field: string;
1360
+ direction: "asc" | "desc";
1361
+ } | undefined;
1362
+ limit?: number | undefined;
1363
+ source: "spanAggregate";
1364
+ id?: string | undefined;
1365
+ compare?: "previousWindow" | undefined;
1366
+ })[];
1367
+ columns?: {
1368
+ id: string;
1369
+ label?: string | undefined;
1370
+ scope?: "org" | "project" | undefined;
1371
+ options?: Record<string, unknown> | undefined;
1372
+ }[] | undefined;
1373
+ options?: Record<string, unknown> | undefined;
1374
+ drilldown?: {
1375
+ action?: {
1376
+ page: "logs" | "spans" | "threads" | "traces";
1377
+ filters?: import("@mastra/core/storage").FilterNode[] | undefined;
1378
+ } | undefined;
1379
+ click?: {
1380
+ page: "logs" | "spans" | "threads" | "traces";
1381
+ filters?: import("@mastra/core/storage").FilterNode[] | undefined;
1382
+ } | undefined;
1383
+ } | undefined;
1384
+ scope?: "org" | "project" | undefined;
1385
+ }[];
1386
+ drilldown?: {
1387
+ action?: {
1388
+ page: "logs" | "spans" | "threads" | "traces";
1389
+ filters?: import("@mastra/core/storage").FilterNode[] | undefined;
1390
+ } | undefined;
1391
+ click?: {
1392
+ page: "logs" | "spans" | "threads" | "traces";
1393
+ filters?: import("@mastra/core/storage").FilterNode[] | undefined;
1394
+ } | undefined;
1395
+ } | undefined;
1396
+ scope?: "org" | "project" | undefined;
1397
+ }[];
1398
+ }[];
1399
+ }>;
1400
+ scope: z.ZodDefault<z.ZodEnum<{
1401
+ org: "org";
1402
+ project: "project";
1403
+ }>>;
1404
+ }, z.core.$strip>;
1405
+ export type DashboardRendererInput = z.output<typeof dashboardRendererInputSchema>;
1406
+ //# sourceMappingURL=input.d.ts.map