@mastra/mcp-apps-components 0.0.0 → 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,1016 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * The host context key a host sets to the ids of the widgets it has pinned from this dashboard
4
+ * (`[]` for none). The app shows a pin button on each widget only while it holds an array, and
5
+ * follows its value. Set it to `null` to turn pinning off: deleting the key leaves the app with
6
+ * the last ids it got.
7
+ */
8
+ export declare const DASHBOARD_PINNED_WIDGETS_CONTEXT_KEY = "mastra.ai/dashboard-pinned-widgets";
9
+ /**
10
+ * The notification the app sends when the user pins or unpins a widget, with the state they
11
+ * asked for. The host updates `DASHBOARD_PINNED_WIDGETS_CONTEXT_KEY` to match.
12
+ */
13
+ export declare const DASHBOARD_WIDGET_PIN_NOTIFICATION = "mastra.ai/dashboard-widget-pin";
14
+ /**
15
+ * The params of `DASHBOARD_WIDGET_PIN_NOTIFICATION`: the widget as the dashboard renders it, the
16
+ * dashboard's scope, and the range and filters the user had on when they pinned it, as dashboard
17
+ * `defaults`. Together they render the widget on its own as the user saw it. They come from the
18
+ * app's iframe, so hosts parse them before storing or rendering anything.
19
+ */
20
+ export declare const dashboardWidgetPinNotificationParamsSchema: z.ZodObject<{
21
+ widget: z.ZodObject<{
22
+ id: z.ZodString;
23
+ span: z.ZodLiteral<1 | 2 | 3 | 4 | 6 | 12>;
24
+ kind: z.ZodString;
25
+ title: z.ZodOptional<z.ZodString>;
26
+ description: z.ZodOptional<z.ZodString>;
27
+ views: z.ZodArray<z.ZodObject<{
28
+ label: z.ZodOptional<z.ZodString>;
29
+ description: z.ZodOptional<z.ZodString>;
30
+ queries: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
31
+ 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>>>;
32
+ groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
33
+ interval: z.ZodOptional<z.ZodEnum<{
34
+ "15m": "15m";
35
+ "1d": "1d";
36
+ "1h": "1h";
37
+ "1m": "1m";
38
+ "5m": "5m";
39
+ }>>;
40
+ measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
41
+ "cost.avg": "cost.avg";
42
+ "cost.sum": "cost.sum";
43
+ count: "count";
44
+ "duration.avg": "duration.avg";
45
+ "duration.max": "duration.max";
46
+ "duration.min": "duration.min";
47
+ "duration.p50": "duration.p50";
48
+ "duration.p90": "duration.p90";
49
+ "duration.p95": "duration.p95";
50
+ "duration.p99": "duration.p99";
51
+ errorCount: "errorCount";
52
+ errorRate: "errorRate";
53
+ "timeToFirstChunk.avg": "timeToFirstChunk.avg";
54
+ "timeToFirstChunk.count": "timeToFirstChunk.count";
55
+ "timeToFirstChunk.max": "timeToFirstChunk.max";
56
+ "timeToFirstChunk.min": "timeToFirstChunk.min";
57
+ "timeToFirstChunk.p50": "timeToFirstChunk.p50";
58
+ "timeToFirstChunk.p90": "timeToFirstChunk.p90";
59
+ "timeToFirstChunk.p95": "timeToFirstChunk.p95";
60
+ "timeToFirstChunk.p99": "timeToFirstChunk.p99";
61
+ "timeToFirstToken.avg": "timeToFirstToken.avg";
62
+ "timeToFirstToken.count": "timeToFirstToken.count";
63
+ "timeToFirstToken.max": "timeToFirstToken.max";
64
+ "timeToFirstToken.min": "timeToFirstToken.min";
65
+ "timeToFirstToken.p50": "timeToFirstToken.p50";
66
+ "timeToFirstToken.p90": "timeToFirstToken.p90";
67
+ "timeToFirstToken.p95": "timeToFirstToken.p95";
68
+ "timeToFirstToken.p99": "timeToFirstToken.p99";
69
+ "tokens.cached.avg": "tokens.cached.avg";
70
+ "tokens.cached.sum": "tokens.cached.sum";
71
+ "tokens.input.avg": "tokens.input.avg";
72
+ "tokens.input.sum": "tokens.input.sum";
73
+ "tokens.output.avg": "tokens.output.avg";
74
+ "tokens.output.sum": "tokens.output.sum";
75
+ "tokens.reasoning.avg": "tokens.reasoning.avg";
76
+ "tokens.reasoning.sum": "tokens.reasoning.sum";
77
+ "tokens.total.avg": "tokens.total.avg";
78
+ "tokens.total.sum": "tokens.total.sum";
79
+ }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
80
+ 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>>>;
81
+ orderBy: z.ZodDefault<z.ZodObject<{
82
+ field: z.ZodString;
83
+ direction: z.ZodEnum<{
84
+ asc: "asc";
85
+ desc: "desc";
86
+ }>;
87
+ }, z.core.$strict>>;
88
+ limit: z.ZodDefault<z.ZodNumber>;
89
+ source: z.ZodLiteral<"traceAggregate">;
90
+ id: z.ZodOptional<z.ZodString>;
91
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
92
+ }, z.core.$strict>, z.ZodObject<{
93
+ 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>>>;
94
+ groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
95
+ interval: z.ZodOptional<z.ZodEnum<{
96
+ "15m": "15m";
97
+ "1d": "1d";
98
+ "1h": "1h";
99
+ "1m": "1m";
100
+ "5m": "5m";
101
+ }>>;
102
+ measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
103
+ "cost.avg": "cost.avg";
104
+ "cost.sum": "cost.sum";
105
+ count: "count";
106
+ "duration.avg": "duration.avg";
107
+ "duration.max": "duration.max";
108
+ "duration.min": "duration.min";
109
+ "duration.p50": "duration.p50";
110
+ "duration.p90": "duration.p90";
111
+ "duration.p95": "duration.p95";
112
+ "duration.p99": "duration.p99";
113
+ errorCount: "errorCount";
114
+ errorRate: "errorRate";
115
+ "timeToFirstChunk.avg": "timeToFirstChunk.avg";
116
+ "timeToFirstChunk.count": "timeToFirstChunk.count";
117
+ "timeToFirstChunk.max": "timeToFirstChunk.max";
118
+ "timeToFirstChunk.min": "timeToFirstChunk.min";
119
+ "timeToFirstChunk.p50": "timeToFirstChunk.p50";
120
+ "timeToFirstChunk.p90": "timeToFirstChunk.p90";
121
+ "timeToFirstChunk.p95": "timeToFirstChunk.p95";
122
+ "timeToFirstChunk.p99": "timeToFirstChunk.p99";
123
+ "timeToFirstToken.avg": "timeToFirstToken.avg";
124
+ "timeToFirstToken.count": "timeToFirstToken.count";
125
+ "timeToFirstToken.max": "timeToFirstToken.max";
126
+ "timeToFirstToken.min": "timeToFirstToken.min";
127
+ "timeToFirstToken.p50": "timeToFirstToken.p50";
128
+ "timeToFirstToken.p90": "timeToFirstToken.p90";
129
+ "timeToFirstToken.p95": "timeToFirstToken.p95";
130
+ "timeToFirstToken.p99": "timeToFirstToken.p99";
131
+ "tokens.cached.avg": "tokens.cached.avg";
132
+ "tokens.cached.sum": "tokens.cached.sum";
133
+ "tokens.input.avg": "tokens.input.avg";
134
+ "tokens.input.sum": "tokens.input.sum";
135
+ "tokens.output.avg": "tokens.output.avg";
136
+ "tokens.output.sum": "tokens.output.sum";
137
+ "tokens.reasoning.avg": "tokens.reasoning.avg";
138
+ "tokens.reasoning.sum": "tokens.reasoning.sum";
139
+ "tokens.total.avg": "tokens.total.avg";
140
+ "tokens.total.sum": "tokens.total.sum";
141
+ }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
142
+ 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>>>;
143
+ orderBy: z.ZodDefault<z.ZodObject<{
144
+ field: z.ZodString;
145
+ direction: z.ZodEnum<{
146
+ asc: "asc";
147
+ desc: "desc";
148
+ }>;
149
+ }, z.core.$strict>>;
150
+ limit: z.ZodDefault<z.ZodNumber>;
151
+ source: z.ZodLiteral<"spanAggregate">;
152
+ id: z.ZodOptional<z.ZodString>;
153
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
154
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
155
+ name: z.ZodArray<z.ZodString>;
156
+ aggregation: z.ZodEnum<{
157
+ avg: "avg";
158
+ count: "count";
159
+ count_distinct: "count_distinct";
160
+ last: "last";
161
+ max: "max";
162
+ min: "min";
163
+ sum: "sum";
164
+ }>;
165
+ distinctColumn: z.ZodOptional<z.ZodEnum<{
166
+ entityName: "entityName";
167
+ entityType: "entityType";
168
+ environment: "environment";
169
+ executionSource: "executionSource";
170
+ model: "model";
171
+ name: "name";
172
+ parentEntityName: "parentEntityName";
173
+ parentEntityType: "parentEntityType";
174
+ provider: "provider";
175
+ resourceId: "resourceId";
176
+ rootEntityName: "rootEntityName";
177
+ rootEntityType: "rootEntityType";
178
+ serviceName: "serviceName";
179
+ threadId: "threadId";
180
+ }>>;
181
+ source: z.ZodLiteral<"metrics">;
182
+ id: z.ZodOptional<z.ZodString>;
183
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
184
+ request: z.ZodLiteral<"aggregate">;
185
+ filters: z.ZodOptional<z.ZodObject<{
186
+ traceId: z.ZodOptional<z.ZodString>;
187
+ spanId: z.ZodOptional<z.ZodString>;
188
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
189
+ entityName: z.ZodOptional<z.ZodString>;
190
+ entityVersionId: z.ZodOptional<z.ZodString>;
191
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
192
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
193
+ userId: z.ZodOptional<z.ZodString>;
194
+ organizationId: z.ZodOptional<z.ZodString>;
195
+ experimentId: z.ZodOptional<z.ZodString>;
196
+ serviceName: z.ZodOptional<z.ZodString>;
197
+ environment: z.ZodOptional<z.ZodString>;
198
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
199
+ parentEntityName: z.ZodOptional<z.ZodString>;
200
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
201
+ rootEntityName: z.ZodOptional<z.ZodString>;
202
+ resourceId: z.ZodOptional<z.ZodString>;
203
+ runId: z.ZodOptional<z.ZodString>;
204
+ sessionId: z.ZodOptional<z.ZodString>;
205
+ threadId: z.ZodOptional<z.ZodString>;
206
+ requestId: z.ZodOptional<z.ZodString>;
207
+ executionSource: z.ZodOptional<z.ZodString>;
208
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
209
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
210
+ experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
211
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
+ source: z.ZodOptional<z.ZodString>;
213
+ provider: z.ZodOptional<z.ZodString>;
214
+ model: z.ZodOptional<z.ZodString>;
215
+ costUnit: z.ZodOptional<z.ZodString>;
216
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
217
+ }, z.core.$strict>>;
218
+ }, z.core.$strict>, z.ZodObject<{
219
+ name: z.ZodArray<z.ZodString>;
220
+ groupBy: z.ZodArray<z.ZodString>;
221
+ aggregation: z.ZodEnum<{
222
+ avg: "avg";
223
+ count: "count";
224
+ count_distinct: "count_distinct";
225
+ last: "last";
226
+ max: "max";
227
+ min: "min";
228
+ sum: "sum";
229
+ }>;
230
+ distinctColumn: z.ZodOptional<z.ZodEnum<{
231
+ entityName: "entityName";
232
+ entityType: "entityType";
233
+ environment: "environment";
234
+ executionSource: "executionSource";
235
+ model: "model";
236
+ name: "name";
237
+ parentEntityName: "parentEntityName";
238
+ parentEntityType: "parentEntityType";
239
+ provider: "provider";
240
+ resourceId: "resourceId";
241
+ rootEntityName: "rootEntityName";
242
+ rootEntityType: "rootEntityType";
243
+ serviceName: "serviceName";
244
+ threadId: "threadId";
245
+ }>>;
246
+ limit: z.ZodOptional<z.ZodNumber>;
247
+ orderDirection: z.ZodOptional<z.ZodEnum<{
248
+ ASC: "ASC";
249
+ DESC: "DESC";
250
+ }>>;
251
+ source: z.ZodLiteral<"metrics">;
252
+ id: z.ZodOptional<z.ZodString>;
253
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
254
+ request: z.ZodLiteral<"breakdown">;
255
+ filters: z.ZodOptional<z.ZodObject<{
256
+ traceId: z.ZodOptional<z.ZodString>;
257
+ spanId: z.ZodOptional<z.ZodString>;
258
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
259
+ entityName: z.ZodOptional<z.ZodString>;
260
+ entityVersionId: z.ZodOptional<z.ZodString>;
261
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
262
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
263
+ userId: z.ZodOptional<z.ZodString>;
264
+ organizationId: z.ZodOptional<z.ZodString>;
265
+ experimentId: z.ZodOptional<z.ZodString>;
266
+ serviceName: z.ZodOptional<z.ZodString>;
267
+ environment: z.ZodOptional<z.ZodString>;
268
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
269
+ parentEntityName: z.ZodOptional<z.ZodString>;
270
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
271
+ rootEntityName: z.ZodOptional<z.ZodString>;
272
+ resourceId: z.ZodOptional<z.ZodString>;
273
+ runId: z.ZodOptional<z.ZodString>;
274
+ sessionId: z.ZodOptional<z.ZodString>;
275
+ threadId: z.ZodOptional<z.ZodString>;
276
+ requestId: z.ZodOptional<z.ZodString>;
277
+ executionSource: z.ZodOptional<z.ZodString>;
278
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
279
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
280
+ experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
281
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
282
+ source: z.ZodOptional<z.ZodString>;
283
+ provider: z.ZodOptional<z.ZodString>;
284
+ model: z.ZodOptional<z.ZodString>;
285
+ costUnit: z.ZodOptional<z.ZodString>;
286
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
287
+ }, z.core.$strict>>;
288
+ }, z.core.$strict>, z.ZodObject<{
289
+ name: z.ZodArray<z.ZodString>;
290
+ aggregation: z.ZodEnum<{
291
+ avg: "avg";
292
+ count: "count";
293
+ count_distinct: "count_distinct";
294
+ last: "last";
295
+ max: "max";
296
+ min: "min";
297
+ sum: "sum";
298
+ }>;
299
+ distinctColumn: z.ZodOptional<z.ZodEnum<{
300
+ entityName: "entityName";
301
+ entityType: "entityType";
302
+ environment: "environment";
303
+ executionSource: "executionSource";
304
+ model: "model";
305
+ name: "name";
306
+ parentEntityName: "parentEntityName";
307
+ parentEntityType: "parentEntityType";
308
+ provider: "provider";
309
+ resourceId: "resourceId";
310
+ rootEntityName: "rootEntityName";
311
+ rootEntityType: "rootEntityType";
312
+ serviceName: "serviceName";
313
+ threadId: "threadId";
314
+ }>>;
315
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
316
+ source: z.ZodLiteral<"metrics">;
317
+ id: z.ZodOptional<z.ZodString>;
318
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
319
+ request: z.ZodLiteral<"timeSeries">;
320
+ interval: z.ZodOptional<z.ZodEnum<{
321
+ "15m": "15m";
322
+ "1d": "1d";
323
+ "1h": "1h";
324
+ "1m": "1m";
325
+ "5m": "5m";
326
+ }>>;
327
+ filters: z.ZodOptional<z.ZodObject<{
328
+ traceId: z.ZodOptional<z.ZodString>;
329
+ spanId: z.ZodOptional<z.ZodString>;
330
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
331
+ entityName: z.ZodOptional<z.ZodString>;
332
+ entityVersionId: z.ZodOptional<z.ZodString>;
333
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
334
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
335
+ userId: z.ZodOptional<z.ZodString>;
336
+ organizationId: z.ZodOptional<z.ZodString>;
337
+ experimentId: z.ZodOptional<z.ZodString>;
338
+ serviceName: z.ZodOptional<z.ZodString>;
339
+ environment: z.ZodOptional<z.ZodString>;
340
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
341
+ parentEntityName: z.ZodOptional<z.ZodString>;
342
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
343
+ rootEntityName: z.ZodOptional<z.ZodString>;
344
+ resourceId: z.ZodOptional<z.ZodString>;
345
+ runId: z.ZodOptional<z.ZodString>;
346
+ sessionId: z.ZodOptional<z.ZodString>;
347
+ threadId: z.ZodOptional<z.ZodString>;
348
+ requestId: z.ZodOptional<z.ZodString>;
349
+ executionSource: z.ZodOptional<z.ZodString>;
350
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
351
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
352
+ experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
353
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
354
+ source: z.ZodOptional<z.ZodString>;
355
+ provider: z.ZodOptional<z.ZodString>;
356
+ model: z.ZodOptional<z.ZodString>;
357
+ costUnit: z.ZodOptional<z.ZodString>;
358
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
359
+ }, z.core.$strict>>;
360
+ }, z.core.$strict>, z.ZodObject<{
361
+ name: z.ZodString;
362
+ percentiles: z.ZodArray<z.ZodNumber>;
363
+ source: z.ZodLiteral<"metrics">;
364
+ id: z.ZodOptional<z.ZodString>;
365
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
366
+ request: z.ZodLiteral<"percentiles">;
367
+ interval: z.ZodOptional<z.ZodEnum<{
368
+ "15m": "15m";
369
+ "1d": "1d";
370
+ "1h": "1h";
371
+ "1m": "1m";
372
+ "5m": "5m";
373
+ }>>;
374
+ filters: z.ZodOptional<z.ZodObject<{
375
+ traceId: z.ZodOptional<z.ZodString>;
376
+ spanId: z.ZodOptional<z.ZodString>;
377
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
378
+ entityName: z.ZodOptional<z.ZodString>;
379
+ entityVersionId: z.ZodOptional<z.ZodString>;
380
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
381
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
382
+ userId: z.ZodOptional<z.ZodString>;
383
+ organizationId: z.ZodOptional<z.ZodString>;
384
+ experimentId: z.ZodOptional<z.ZodString>;
385
+ serviceName: z.ZodOptional<z.ZodString>;
386
+ environment: z.ZodOptional<z.ZodString>;
387
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
388
+ parentEntityName: z.ZodOptional<z.ZodString>;
389
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
390
+ rootEntityName: z.ZodOptional<z.ZodString>;
391
+ resourceId: z.ZodOptional<z.ZodString>;
392
+ runId: z.ZodOptional<z.ZodString>;
393
+ sessionId: z.ZodOptional<z.ZodString>;
394
+ threadId: z.ZodOptional<z.ZodString>;
395
+ requestId: z.ZodOptional<z.ZodString>;
396
+ executionSource: z.ZodOptional<z.ZodString>;
397
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
398
+ traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
399
+ experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
400
+ name: z.ZodOptional<z.ZodArray<z.ZodString>>;
401
+ source: z.ZodOptional<z.ZodString>;
402
+ provider: z.ZodOptional<z.ZodString>;
403
+ model: z.ZodOptional<z.ZodString>;
404
+ costUnit: z.ZodOptional<z.ZodString>;
405
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
406
+ }, z.core.$strict>>;
407
+ }, z.core.$strict>], "request">, z.ZodDiscriminatedUnion<[z.ZodObject<{
408
+ scoreSource: z.ZodOptional<z.ZodString>;
409
+ aggregation: z.ZodEnum<{
410
+ avg: "avg";
411
+ count: "count";
412
+ count_distinct: "count_distinct";
413
+ last: "last";
414
+ max: "max";
415
+ min: "min";
416
+ sum: "sum";
417
+ }>;
418
+ source: z.ZodLiteral<"scores">;
419
+ id: z.ZodOptional<z.ZodString>;
420
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
421
+ scorerId: z.ZodOptional<z.ZodString>;
422
+ request: z.ZodLiteral<"aggregate">;
423
+ filters: z.ZodOptional<z.ZodObject<{
424
+ traceId: z.ZodOptional<z.ZodString>;
425
+ spanId: z.ZodOptional<z.ZodString>;
426
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
427
+ entityName: z.ZodOptional<z.ZodString>;
428
+ entityVersionId: z.ZodOptional<z.ZodString>;
429
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
430
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
431
+ userId: z.ZodOptional<z.ZodString>;
432
+ organizationId: z.ZodOptional<z.ZodString>;
433
+ experimentId: z.ZodOptional<z.ZodString>;
434
+ serviceName: z.ZodOptional<z.ZodString>;
435
+ environment: z.ZodOptional<z.ZodString>;
436
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
437
+ parentEntityName: z.ZodOptional<z.ZodString>;
438
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
439
+ rootEntityName: z.ZodOptional<z.ZodString>;
440
+ resourceId: z.ZodOptional<z.ZodString>;
441
+ runId: z.ZodOptional<z.ZodString>;
442
+ sessionId: z.ZodOptional<z.ZodString>;
443
+ threadId: z.ZodOptional<z.ZodString>;
444
+ requestId: z.ZodOptional<z.ZodString>;
445
+ executionSource: z.ZodOptional<z.ZodString>;
446
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
447
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
448
+ scoreSource: z.ZodOptional<z.ZodString>;
449
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
450
+ source: z.ZodOptional<z.ZodString>;
451
+ }, z.core.$strict>>;
452
+ }, z.core.$strict>, z.ZodObject<{
453
+ scoreSource: z.ZodOptional<z.ZodString>;
454
+ groupBy: z.ZodArray<z.ZodString>;
455
+ aggregation: z.ZodEnum<{
456
+ avg: "avg";
457
+ count: "count";
458
+ count_distinct: "count_distinct";
459
+ last: "last";
460
+ max: "max";
461
+ min: "min";
462
+ sum: "sum";
463
+ }>;
464
+ source: z.ZodLiteral<"scores">;
465
+ id: z.ZodOptional<z.ZodString>;
466
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
467
+ scorerId: z.ZodOptional<z.ZodString>;
468
+ request: z.ZodLiteral<"breakdown">;
469
+ filters: z.ZodOptional<z.ZodObject<{
470
+ traceId: z.ZodOptional<z.ZodString>;
471
+ spanId: z.ZodOptional<z.ZodString>;
472
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
473
+ entityName: z.ZodOptional<z.ZodString>;
474
+ entityVersionId: z.ZodOptional<z.ZodString>;
475
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
476
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
477
+ userId: z.ZodOptional<z.ZodString>;
478
+ organizationId: z.ZodOptional<z.ZodString>;
479
+ experimentId: z.ZodOptional<z.ZodString>;
480
+ serviceName: z.ZodOptional<z.ZodString>;
481
+ environment: z.ZodOptional<z.ZodString>;
482
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
483
+ parentEntityName: z.ZodOptional<z.ZodString>;
484
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
485
+ rootEntityName: z.ZodOptional<z.ZodString>;
486
+ resourceId: z.ZodOptional<z.ZodString>;
487
+ runId: z.ZodOptional<z.ZodString>;
488
+ sessionId: z.ZodOptional<z.ZodString>;
489
+ threadId: z.ZodOptional<z.ZodString>;
490
+ requestId: z.ZodOptional<z.ZodString>;
491
+ executionSource: z.ZodOptional<z.ZodString>;
492
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
493
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
494
+ scoreSource: z.ZodOptional<z.ZodString>;
495
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
496
+ source: z.ZodOptional<z.ZodString>;
497
+ }, z.core.$strict>>;
498
+ }, z.core.$strict>, z.ZodObject<{
499
+ scoreSource: z.ZodOptional<z.ZodString>;
500
+ aggregation: z.ZodEnum<{
501
+ avg: "avg";
502
+ count: "count";
503
+ count_distinct: "count_distinct";
504
+ last: "last";
505
+ max: "max";
506
+ min: "min";
507
+ sum: "sum";
508
+ }>;
509
+ groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
510
+ source: z.ZodLiteral<"scores">;
511
+ id: z.ZodOptional<z.ZodString>;
512
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
513
+ scorerId: z.ZodOptional<z.ZodString>;
514
+ request: z.ZodLiteral<"timeSeries">;
515
+ interval: z.ZodOptional<z.ZodEnum<{
516
+ "15m": "15m";
517
+ "1d": "1d";
518
+ "1h": "1h";
519
+ "1m": "1m";
520
+ "5m": "5m";
521
+ }>>;
522
+ filters: z.ZodOptional<z.ZodObject<{
523
+ traceId: z.ZodOptional<z.ZodString>;
524
+ spanId: z.ZodOptional<z.ZodString>;
525
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
526
+ entityName: z.ZodOptional<z.ZodString>;
527
+ entityVersionId: z.ZodOptional<z.ZodString>;
528
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
529
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
530
+ userId: z.ZodOptional<z.ZodString>;
531
+ organizationId: z.ZodOptional<z.ZodString>;
532
+ experimentId: z.ZodOptional<z.ZodString>;
533
+ serviceName: z.ZodOptional<z.ZodString>;
534
+ environment: z.ZodOptional<z.ZodString>;
535
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
536
+ parentEntityName: z.ZodOptional<z.ZodString>;
537
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
538
+ rootEntityName: z.ZodOptional<z.ZodString>;
539
+ resourceId: z.ZodOptional<z.ZodString>;
540
+ runId: z.ZodOptional<z.ZodString>;
541
+ sessionId: z.ZodOptional<z.ZodString>;
542
+ threadId: z.ZodOptional<z.ZodString>;
543
+ requestId: z.ZodOptional<z.ZodString>;
544
+ executionSource: z.ZodOptional<z.ZodString>;
545
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
546
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
547
+ scoreSource: z.ZodOptional<z.ZodString>;
548
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
549
+ source: z.ZodOptional<z.ZodString>;
550
+ }, z.core.$strict>>;
551
+ }, z.core.$strict>, z.ZodObject<{
552
+ scoreSource: z.ZodOptional<z.ZodString>;
553
+ percentiles: z.ZodArray<z.ZodNumber>;
554
+ source: z.ZodLiteral<"scores">;
555
+ id: z.ZodOptional<z.ZodString>;
556
+ compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
557
+ scorerId: z.ZodOptional<z.ZodString>;
558
+ request: z.ZodLiteral<"percentiles">;
559
+ interval: z.ZodOptional<z.ZodEnum<{
560
+ "15m": "15m";
561
+ "1d": "1d";
562
+ "1h": "1h";
563
+ "1m": "1m";
564
+ "5m": "5m";
565
+ }>>;
566
+ filters: z.ZodOptional<z.ZodObject<{
567
+ traceId: z.ZodOptional<z.ZodString>;
568
+ spanId: z.ZodOptional<z.ZodString>;
569
+ entityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
570
+ entityName: z.ZodOptional<z.ZodString>;
571
+ entityVersionId: z.ZodOptional<z.ZodString>;
572
+ parentEntityVersionId: z.ZodOptional<z.ZodString>;
573
+ rootEntityVersionId: z.ZodOptional<z.ZodString>;
574
+ userId: z.ZodOptional<z.ZodString>;
575
+ organizationId: z.ZodOptional<z.ZodString>;
576
+ experimentId: z.ZodOptional<z.ZodString>;
577
+ serviceName: z.ZodOptional<z.ZodString>;
578
+ environment: z.ZodOptional<z.ZodString>;
579
+ parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
580
+ parentEntityName: z.ZodOptional<z.ZodString>;
581
+ rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>;
582
+ rootEntityName: z.ZodOptional<z.ZodString>;
583
+ resourceId: z.ZodOptional<z.ZodString>;
584
+ runId: z.ZodOptional<z.ZodString>;
585
+ sessionId: z.ZodOptional<z.ZodString>;
586
+ threadId: z.ZodOptional<z.ZodString>;
587
+ requestId: z.ZodOptional<z.ZodString>;
588
+ executionSource: z.ZodOptional<z.ZodString>;
589
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
590
+ scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
591
+ scoreSource: z.ZodOptional<z.ZodString>;
592
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
593
+ source: z.ZodOptional<z.ZodString>;
594
+ }, z.core.$strict>>;
595
+ }, z.core.$strict>], "request">], "source">, {
596
+ name: string[];
597
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
598
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
599
+ source: "metrics";
600
+ id?: string | undefined;
601
+ compare?: "previousWindow" | undefined;
602
+ request: "aggregate";
603
+ filters?: {
604
+ traceId?: string | undefined;
605
+ spanId?: string | undefined;
606
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
607
+ entityName?: string | undefined;
608
+ entityVersionId?: string | undefined;
609
+ parentEntityVersionId?: string | undefined;
610
+ rootEntityVersionId?: string | undefined;
611
+ userId?: string | undefined;
612
+ organizationId?: string | undefined;
613
+ experimentId?: string | undefined;
614
+ serviceName?: string | undefined;
615
+ environment?: string | undefined;
616
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
617
+ parentEntityName?: string | undefined;
618
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
619
+ rootEntityName?: string | undefined;
620
+ resourceId?: string | undefined;
621
+ runId?: string | undefined;
622
+ sessionId?: string | undefined;
623
+ threadId?: string | undefined;
624
+ requestId?: string | undefined;
625
+ executionSource?: string | undefined;
626
+ tags?: string[] | undefined;
627
+ traceIds?: string[] | undefined;
628
+ experimentIds?: string[] | undefined;
629
+ name?: string[] | undefined;
630
+ source?: string | undefined;
631
+ provider?: string | undefined;
632
+ model?: string | undefined;
633
+ costUnit?: string | undefined;
634
+ labels?: Record<string, string> | undefined;
635
+ } | undefined;
636
+ } | {
637
+ name: string[];
638
+ groupBy: string[];
639
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
640
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
641
+ limit?: number | undefined;
642
+ orderDirection?: "ASC" | "DESC" | undefined;
643
+ source: "metrics";
644
+ id?: string | undefined;
645
+ compare?: "previousWindow" | undefined;
646
+ request: "breakdown";
647
+ filters?: {
648
+ traceId?: string | undefined;
649
+ spanId?: string | undefined;
650
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
651
+ entityName?: string | undefined;
652
+ entityVersionId?: string | undefined;
653
+ parentEntityVersionId?: string | undefined;
654
+ rootEntityVersionId?: string | undefined;
655
+ userId?: string | undefined;
656
+ organizationId?: string | undefined;
657
+ experimentId?: string | undefined;
658
+ serviceName?: string | undefined;
659
+ environment?: string | undefined;
660
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
661
+ parentEntityName?: string | undefined;
662
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
663
+ rootEntityName?: string | undefined;
664
+ resourceId?: string | undefined;
665
+ runId?: string | undefined;
666
+ sessionId?: string | undefined;
667
+ threadId?: string | undefined;
668
+ requestId?: string | undefined;
669
+ executionSource?: string | undefined;
670
+ tags?: string[] | undefined;
671
+ traceIds?: string[] | undefined;
672
+ experimentIds?: string[] | undefined;
673
+ name?: string[] | undefined;
674
+ source?: string | undefined;
675
+ provider?: string | undefined;
676
+ model?: string | undefined;
677
+ costUnit?: string | undefined;
678
+ labels?: Record<string, string> | undefined;
679
+ } | undefined;
680
+ } | {
681
+ name: string[];
682
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
683
+ distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
684
+ groupBy?: string[] | undefined;
685
+ source: "metrics";
686
+ id?: string | undefined;
687
+ compare?: "previousWindow" | undefined;
688
+ request: "timeSeries";
689
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
690
+ filters?: {
691
+ traceId?: string | undefined;
692
+ spanId?: string | undefined;
693
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
694
+ entityName?: string | undefined;
695
+ entityVersionId?: string | undefined;
696
+ parentEntityVersionId?: string | undefined;
697
+ rootEntityVersionId?: string | undefined;
698
+ userId?: string | undefined;
699
+ organizationId?: string | undefined;
700
+ experimentId?: string | undefined;
701
+ serviceName?: string | undefined;
702
+ environment?: string | undefined;
703
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
704
+ parentEntityName?: string | undefined;
705
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
706
+ rootEntityName?: string | undefined;
707
+ resourceId?: string | undefined;
708
+ runId?: string | undefined;
709
+ sessionId?: string | undefined;
710
+ threadId?: string | undefined;
711
+ requestId?: string | undefined;
712
+ executionSource?: string | undefined;
713
+ tags?: string[] | undefined;
714
+ traceIds?: string[] | undefined;
715
+ experimentIds?: string[] | undefined;
716
+ name?: string[] | undefined;
717
+ source?: string | undefined;
718
+ provider?: string | undefined;
719
+ model?: string | undefined;
720
+ costUnit?: string | undefined;
721
+ labels?: Record<string, string> | undefined;
722
+ } | undefined;
723
+ } | {
724
+ name: string;
725
+ percentiles: number[];
726
+ source: "metrics";
727
+ id?: string | undefined;
728
+ compare?: "previousWindow" | undefined;
729
+ request: "percentiles";
730
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
731
+ filters?: {
732
+ traceId?: string | undefined;
733
+ spanId?: string | undefined;
734
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
735
+ entityName?: string | undefined;
736
+ entityVersionId?: string | undefined;
737
+ parentEntityVersionId?: string | undefined;
738
+ rootEntityVersionId?: string | undefined;
739
+ userId?: string | undefined;
740
+ organizationId?: string | undefined;
741
+ experimentId?: string | undefined;
742
+ serviceName?: string | undefined;
743
+ environment?: string | undefined;
744
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
745
+ parentEntityName?: string | undefined;
746
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
747
+ rootEntityName?: string | undefined;
748
+ resourceId?: string | undefined;
749
+ runId?: string | undefined;
750
+ sessionId?: string | undefined;
751
+ threadId?: string | undefined;
752
+ requestId?: string | undefined;
753
+ executionSource?: string | undefined;
754
+ tags?: string[] | undefined;
755
+ traceIds?: string[] | undefined;
756
+ experimentIds?: string[] | undefined;
757
+ name?: string[] | undefined;
758
+ source?: string | undefined;
759
+ provider?: string | undefined;
760
+ model?: string | undefined;
761
+ costUnit?: string | undefined;
762
+ labels?: Record<string, string> | undefined;
763
+ } | undefined;
764
+ } | {
765
+ scoreSource?: string | undefined;
766
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
767
+ source: "scores";
768
+ id?: string | undefined;
769
+ compare?: "previousWindow" | undefined;
770
+ scorerId?: string | undefined;
771
+ request: "aggregate";
772
+ filters?: {
773
+ traceId?: string | undefined;
774
+ spanId?: string | undefined;
775
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
776
+ entityName?: string | undefined;
777
+ entityVersionId?: string | undefined;
778
+ parentEntityVersionId?: string | undefined;
779
+ rootEntityVersionId?: string | undefined;
780
+ userId?: string | undefined;
781
+ organizationId?: string | undefined;
782
+ experimentId?: string | undefined;
783
+ serviceName?: string | undefined;
784
+ environment?: string | undefined;
785
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
786
+ parentEntityName?: string | undefined;
787
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
788
+ rootEntityName?: string | undefined;
789
+ resourceId?: string | undefined;
790
+ runId?: string | undefined;
791
+ sessionId?: string | undefined;
792
+ threadId?: string | undefined;
793
+ requestId?: string | undefined;
794
+ executionSource?: string | undefined;
795
+ tags?: string[] | undefined;
796
+ scorerId?: string | string[] | undefined;
797
+ scoreSource?: string | undefined;
798
+ metadata?: Record<string, unknown> | null | undefined;
799
+ source?: string | undefined;
800
+ } | undefined;
801
+ } | {
802
+ scoreSource?: string | undefined;
803
+ groupBy: string[];
804
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
805
+ source: "scores";
806
+ id?: string | undefined;
807
+ compare?: "previousWindow" | undefined;
808
+ scorerId?: string | undefined;
809
+ request: "breakdown";
810
+ filters?: {
811
+ traceId?: string | undefined;
812
+ spanId?: string | undefined;
813
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
814
+ entityName?: string | undefined;
815
+ entityVersionId?: string | undefined;
816
+ parentEntityVersionId?: string | undefined;
817
+ rootEntityVersionId?: string | undefined;
818
+ userId?: string | undefined;
819
+ organizationId?: string | undefined;
820
+ experimentId?: string | undefined;
821
+ serviceName?: string | undefined;
822
+ environment?: string | undefined;
823
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
824
+ parentEntityName?: string | undefined;
825
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
826
+ rootEntityName?: string | undefined;
827
+ resourceId?: string | undefined;
828
+ runId?: string | undefined;
829
+ sessionId?: string | undefined;
830
+ threadId?: string | undefined;
831
+ requestId?: string | undefined;
832
+ executionSource?: string | undefined;
833
+ tags?: string[] | undefined;
834
+ scorerId?: string | string[] | undefined;
835
+ scoreSource?: string | undefined;
836
+ metadata?: Record<string, unknown> | null | undefined;
837
+ source?: string | undefined;
838
+ } | undefined;
839
+ } | {
840
+ scoreSource?: string | undefined;
841
+ aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
842
+ groupBy?: string[] | undefined;
843
+ source: "scores";
844
+ id?: string | undefined;
845
+ compare?: "previousWindow" | undefined;
846
+ scorerId?: string | undefined;
847
+ request: "timeSeries";
848
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
849
+ filters?: {
850
+ traceId?: string | undefined;
851
+ spanId?: string | undefined;
852
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
853
+ entityName?: string | undefined;
854
+ entityVersionId?: string | undefined;
855
+ parentEntityVersionId?: string | undefined;
856
+ rootEntityVersionId?: string | undefined;
857
+ userId?: string | undefined;
858
+ organizationId?: string | undefined;
859
+ experimentId?: string | undefined;
860
+ serviceName?: string | undefined;
861
+ environment?: string | undefined;
862
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
863
+ parentEntityName?: string | undefined;
864
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
865
+ rootEntityName?: string | undefined;
866
+ resourceId?: string | undefined;
867
+ runId?: string | undefined;
868
+ sessionId?: string | undefined;
869
+ threadId?: string | undefined;
870
+ requestId?: string | undefined;
871
+ executionSource?: string | undefined;
872
+ tags?: string[] | undefined;
873
+ scorerId?: string | string[] | undefined;
874
+ scoreSource?: string | undefined;
875
+ metadata?: Record<string, unknown> | null | undefined;
876
+ source?: string | undefined;
877
+ } | undefined;
878
+ } | {
879
+ scoreSource?: string | undefined;
880
+ percentiles: number[];
881
+ source: "scores";
882
+ id?: string | undefined;
883
+ compare?: "previousWindow" | undefined;
884
+ scorerId?: string | undefined;
885
+ request: "percentiles";
886
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
887
+ filters?: {
888
+ traceId?: string | undefined;
889
+ spanId?: string | undefined;
890
+ entityType?: import("@mastra/core/storage").EntityType | undefined;
891
+ entityName?: string | undefined;
892
+ entityVersionId?: string | undefined;
893
+ parentEntityVersionId?: string | undefined;
894
+ rootEntityVersionId?: string | undefined;
895
+ userId?: string | undefined;
896
+ organizationId?: string | undefined;
897
+ experimentId?: string | undefined;
898
+ serviceName?: string | undefined;
899
+ environment?: string | undefined;
900
+ parentEntityType?: import("@mastra/core/storage").EntityType | undefined;
901
+ parentEntityName?: string | undefined;
902
+ rootEntityType?: import("@mastra/core/storage").EntityType | undefined;
903
+ rootEntityName?: string | undefined;
904
+ resourceId?: string | undefined;
905
+ runId?: string | undefined;
906
+ sessionId?: string | undefined;
907
+ threadId?: string | undefined;
908
+ requestId?: string | undefined;
909
+ executionSource?: string | undefined;
910
+ tags?: string[] | undefined;
911
+ scorerId?: string | string[] | undefined;
912
+ scoreSource?: string | undefined;
913
+ metadata?: Record<string, unknown> | null | undefined;
914
+ source?: string | undefined;
915
+ } | undefined;
916
+ } | {
917
+ where?: import("@mastra/core/storage").TraceQueryPredicate | undefined;
918
+ groupBy?: string[] | undefined;
919
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
920
+ 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}`)[];
921
+ having?: import("@mastra/core/storage").TraceQueryScalarPredicate | undefined;
922
+ orderBy?: {
923
+ field: string;
924
+ direction: "asc" | "desc";
925
+ } | undefined;
926
+ limit?: number | undefined;
927
+ source: "traceAggregate";
928
+ id?: string | undefined;
929
+ compare?: "previousWindow" | undefined;
930
+ } | {
931
+ where?: import("@mastra/core/storage").TraceQueryScalarPredicate | undefined;
932
+ groupBy?: string[] | undefined;
933
+ interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
934
+ 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}`)[];
935
+ having?: import("@mastra/core/storage").TraceQueryScalarPredicate | undefined;
936
+ orderBy?: {
937
+ field: string;
938
+ direction: "asc" | "desc";
939
+ } | undefined;
940
+ limit?: number | undefined;
941
+ source: "spanAggregate";
942
+ id?: string | undefined;
943
+ compare?: "previousWindow" | undefined;
944
+ }>>;
945
+ columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
946
+ id: z.ZodString;
947
+ label: z.ZodOptional<z.ZodString>;
948
+ scope: z.ZodOptional<z.ZodEnum<{
949
+ org: "org";
950
+ project: "project";
951
+ }>>;
952
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
953
+ }, z.core.$strict>>>;
954
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
955
+ drilldown: z.ZodOptional<z.ZodObject<{
956
+ action: z.ZodOptional<z.ZodObject<{
957
+ page: z.ZodEnum<{
958
+ logs: "logs";
959
+ spans: "spans";
960
+ threads: "threads";
961
+ traces: "traces";
962
+ }>;
963
+ 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[]>>;
964
+ }, z.core.$strict>>;
965
+ click: z.ZodOptional<z.ZodObject<{
966
+ page: z.ZodEnum<{
967
+ logs: "logs";
968
+ spans: "spans";
969
+ threads: "threads";
970
+ traces: "traces";
971
+ }>;
972
+ 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[]>>;
973
+ }, z.core.$strict>>;
974
+ }, z.core.$strict>>;
975
+ scope: z.ZodOptional<z.ZodEnum<{
976
+ org: "org";
977
+ project: "project";
978
+ }>>;
979
+ }, z.core.$strict>>;
980
+ drilldown: z.ZodOptional<z.ZodObject<{
981
+ action: z.ZodOptional<z.ZodObject<{
982
+ page: z.ZodEnum<{
983
+ logs: "logs";
984
+ spans: "spans";
985
+ threads: "threads";
986
+ traces: "traces";
987
+ }>;
988
+ 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[]>>;
989
+ }, z.core.$strict>>;
990
+ click: z.ZodOptional<z.ZodObject<{
991
+ page: z.ZodEnum<{
992
+ logs: "logs";
993
+ spans: "spans";
994
+ threads: "threads";
995
+ traces: "traces";
996
+ }>;
997
+ 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[]>>;
998
+ }, z.core.$strict>>;
999
+ }, z.core.$strict>>;
1000
+ scope: z.ZodOptional<z.ZodEnum<{
1001
+ org: "org";
1002
+ project: "project";
1003
+ }>>;
1004
+ }, z.core.$strict>;
1005
+ scope: z.ZodEnum<{
1006
+ org: "org";
1007
+ project: "project";
1008
+ }>;
1009
+ defaults: z.ZodObject<{
1010
+ datePreset: z.ZodOptional<z.ZodString>;
1011
+ 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[]>>;
1012
+ }, z.core.$strict>;
1013
+ isPinned: z.ZodBoolean;
1014
+ }, z.core.$strip>;
1015
+ export type DashboardWidgetPinNotificationParams = z.input<typeof dashboardWidgetPinNotificationParamsSchema>;
1016
+ //# sourceMappingURL=pin.d.ts.map