@mastra/playground-ui 23.0.2 → 24.0.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.
Files changed (85) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/index.cjs.js +4254 -13
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.css +354 -84
  5. package/dist/index.es.js +4137 -16
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/src/domains/logs/components/index.d.ts +6 -0
  8. package/dist/src/domains/logs/components/log-details-view.d.ts +12 -0
  9. package/dist/src/domains/logs/components/logs-error-content.d.ts +14 -0
  10. package/dist/src/domains/logs/components/logs-layout.d.ts +19 -0
  11. package/dist/src/domains/logs/components/logs-list-view.d.ts +20 -0
  12. package/dist/src/domains/logs/components/logs-toolbar.d.ts +13 -0
  13. package/dist/src/domains/logs/components/no-logs-info.d.ts +1 -0
  14. package/dist/src/domains/logs/hooks/index.d.ts +4 -0
  15. package/dist/src/domains/logs/hooks/use-logs-filter-persistence.d.ts +22 -0
  16. package/dist/src/domains/logs/hooks/use-logs-list-navigation.d.ts +22 -0
  17. package/dist/src/domains/logs/hooks/use-logs-url-state.d.ts +38 -0
  18. package/dist/src/domains/logs/hooks/use-logs.d.ts +1271 -0
  19. package/dist/src/domains/logs/index.d.ts +4 -0
  20. package/dist/src/domains/logs/log-filters.d.ts +109 -0
  21. package/dist/src/domains/logs/types.d.ts +35 -0
  22. package/dist/src/domains/metrics/components/bar-list.d.ts +21 -0
  23. package/dist/src/domains/metrics/components/date-range-selector.d.ts +1 -0
  24. package/dist/src/domains/metrics/components/index.d.ts +9 -0
  25. package/dist/src/domains/metrics/components/kpi-card-view.d.ts +9 -0
  26. package/dist/src/domains/metrics/components/latency-card-view.d.ts +11 -0
  27. package/dist/src/domains/metrics/components/metrics-utils.d.ts +15 -0
  28. package/dist/src/domains/metrics/components/model-usage-cost-card-view.d.ts +7 -0
  29. package/dist/src/domains/metrics/components/scores-card-view.d.ts +12 -0
  30. package/dist/src/domains/metrics/components/token-usage-by-agent-card-view.d.ts +7 -0
  31. package/dist/src/domains/metrics/components/traces-volume-card-view.d.ts +11 -0
  32. package/dist/src/domains/metrics/hooks/index.d.ts +12 -0
  33. package/dist/src/domains/metrics/hooks/use-agent-runs-kpi-metrics.d.ts +10 -0
  34. package/dist/src/domains/metrics/hooks/use-avg-score-kpi-metrics.d.ts +10 -0
  35. package/dist/src/domains/metrics/hooks/use-latency-metrics.d.ts +11 -0
  36. package/dist/src/domains/metrics/hooks/use-metrics-filters.d.ts +9 -0
  37. package/dist/src/domains/metrics/hooks/use-metrics.d.ts +43 -0
  38. package/dist/src/domains/metrics/hooks/use-model-cost-kpi-metrics.d.ts +7 -0
  39. package/dist/src/domains/metrics/hooks/use-model-usage-cost-metrics.d.ts +10 -0
  40. package/dist/src/domains/metrics/hooks/use-scores-metrics.d.ts +22 -0
  41. package/dist/src/domains/metrics/hooks/use-token-usage-by-agent-metrics.d.ts +9 -0
  42. package/dist/src/domains/metrics/hooks/use-total-tokens-kpi-metrics.d.ts +6 -0
  43. package/dist/src/domains/metrics/hooks/use-trace-volume-metrics.d.ts +10 -0
  44. package/dist/src/domains/metrics/index.d.ts +2 -0
  45. package/dist/src/domains/traces/components/format-hierarchical-spans.d.ts +12 -0
  46. package/dist/src/domains/traces/components/index.d.ts +18 -0
  47. package/dist/src/domains/traces/components/shared.d.ts +3 -0
  48. package/dist/src/domains/traces/components/span-data-panel-view.d.ts +26 -0
  49. package/dist/src/domains/traces/components/span-details-view.d.ts +14 -0
  50. package/dist/src/domains/traces/components/span-token-usage.d.ts +22 -0
  51. package/dist/src/domains/traces/components/timeline-expand-col.d.ts +12 -0
  52. package/dist/src/domains/traces/components/timeline-name-col.d.ts +15 -0
  53. package/dist/src/domains/traces/components/timeline-structure-sign.d.ts +5 -0
  54. package/dist/src/domains/traces/components/timeline-timing-col.d.ts +12 -0
  55. package/dist/src/domains/traces/components/trace-data-panel-view.d.ts +28 -0
  56. package/dist/src/domains/traces/components/trace-details-view.d.ts +18 -0
  57. package/dist/src/domains/traces/components/trace-keys-and-values.d.ts +16 -0
  58. package/dist/src/domains/traces/components/trace-timeline-span.d.ts +18 -0
  59. package/dist/src/domains/traces/components/trace-timeline.d.ts +15 -0
  60. package/dist/src/domains/traces/components/traces-error-content.d.ts +16 -0
  61. package/dist/src/domains/traces/components/traces-layout.d.ts +18 -0
  62. package/dist/src/domains/traces/components/traces-list-view.d.ts +39 -0
  63. package/dist/src/domains/traces/components/traces-toolbar.d.ts +19 -0
  64. package/dist/src/domains/traces/hooks/get-all-span-ids.d.ts +3 -0
  65. package/dist/src/domains/traces/hooks/index.d.ts +13 -0
  66. package/dist/src/domains/traces/hooks/use-entity-names.d.ts +7 -0
  67. package/dist/src/domains/traces/hooks/use-environments.d.ts +1 -0
  68. package/dist/src/domains/traces/hooks/use-service-names.d.ts +1 -0
  69. package/dist/src/domains/traces/hooks/use-span-detail.d.ts +46 -0
  70. package/dist/src/domains/traces/hooks/use-tags.d.ts +1 -0
  71. package/dist/src/domains/traces/hooks/use-trace-filter-persistence.d.ts +31 -0
  72. package/dist/src/domains/traces/hooks/use-trace-light-spans.d.ts +19 -0
  73. package/dist/src/domains/traces/hooks/use-trace-list-navigation.d.ts +12 -0
  74. package/dist/src/domains/traces/hooks/use-trace-span-navigation.d.ts +10 -0
  75. package/dist/src/domains/traces/hooks/use-trace-spans.d.ts +47 -0
  76. package/dist/src/domains/traces/hooks/use-trace-url-state.d.ts +53 -0
  77. package/dist/src/domains/traces/hooks/use-traces.d.ts +1549 -0
  78. package/dist/src/domains/traces/index.d.ts +8 -0
  79. package/dist/src/domains/traces/trace-filters.d.ts +121 -0
  80. package/dist/src/domains/traces/types.d.ts +35 -0
  81. package/dist/src/domains/traces/utils/group-traces-by-thread.d.ts +20 -0
  82. package/dist/src/domains/traces/utils/index.d.ts +2 -0
  83. package/dist/src/domains/traces/utils/span-utils.d.ts +15 -0
  84. package/dist/src/index.d.ts +3 -0
  85. package/package.json +12 -9
@@ -0,0 +1,1549 @@
1
+ import { ListTracesArgs, ListTracesResponse } from '@mastra/core/storage';
2
+ export declare const TRACES_PER_PAGE = 25;
3
+ export interface TracesFilters {
4
+ filters?: ListTracesArgs['filters'];
5
+ }
6
+ /** Returns the next page number if the server indicates more pages are available. */
7
+ export declare function getTracesNextPageParam(lastPage: ListTracesResponse | undefined, _allPages: unknown, lastPageParam: number): number | undefined;
8
+ type TracesPageResponse = ListTracesResponse & {
9
+ threadTitles?: Record<string, string>;
10
+ };
11
+ /** Deduplicates traces by traceId across all loaded pages, keeping the first occurrence.
12
+ * Also merges threadTitles from all pages for thread grouping display. */
13
+ export declare function selectUniqueTraces(data: {
14
+ pages: TracesPageResponse[];
15
+ }): {
16
+ spans: {
17
+ createdAt: Date;
18
+ updatedAt: Date | null;
19
+ name: string;
20
+ spanType: import('@mastra/core/observability').SpanType;
21
+ isEvent: boolean;
22
+ startedAt: Date;
23
+ traceId: string;
24
+ spanId: string;
25
+ status: import('@mastra/core/storage').TraceStatus;
26
+ experimentId?: string | null | undefined;
27
+ attributes?: Record<string, unknown> | null | undefined;
28
+ links?: unknown[] | null | undefined;
29
+ input?: unknown;
30
+ output?: unknown;
31
+ error?: unknown;
32
+ endedAt?: Date | null | undefined;
33
+ requestContext?: Record<string, unknown> | null | undefined;
34
+ metadata?: Record<string, unknown> | null | undefined;
35
+ tags?: string[] | null | undefined;
36
+ source?: string | null | undefined;
37
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
38
+ entityId?: string | null | undefined;
39
+ entityName?: string | null | undefined;
40
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
41
+ parentEntityId?: string | null | undefined;
42
+ parentEntityName?: string | null | undefined;
43
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
44
+ rootEntityId?: string | null | undefined;
45
+ rootEntityName?: string | null | undefined;
46
+ userId?: string | null | undefined;
47
+ organizationId?: string | null | undefined;
48
+ resourceId?: string | null | undefined;
49
+ runId?: string | null | undefined;
50
+ sessionId?: string | null | undefined;
51
+ threadId?: string | null | undefined;
52
+ requestId?: string | null | undefined;
53
+ environment?: string | null | undefined;
54
+ serviceName?: string | null | undefined;
55
+ scope?: Record<string, unknown> | null | undefined;
56
+ entityVersionId?: string | null | undefined;
57
+ parentEntityVersionId?: string | null | undefined;
58
+ rootEntityVersionId?: string | null | undefined;
59
+ parentSpanId?: string | null | undefined;
60
+ }[];
61
+ threadTitles: Record<string, string>;
62
+ };
63
+ export declare const useTraces: ({ filters }: TracesFilters) => {
64
+ setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
65
+ data: {
66
+ spans: {
67
+ createdAt: Date;
68
+ updatedAt: Date | null;
69
+ name: string;
70
+ spanType: import('@mastra/core/observability').SpanType;
71
+ isEvent: boolean;
72
+ startedAt: Date;
73
+ traceId: string;
74
+ spanId: string;
75
+ status: import('@mastra/core/storage').TraceStatus;
76
+ experimentId?: string | null | undefined;
77
+ attributes?: Record<string, unknown> | null | undefined;
78
+ links?: unknown[] | null | undefined;
79
+ input?: unknown;
80
+ output?: unknown;
81
+ error?: unknown;
82
+ endedAt?: Date | null | undefined;
83
+ requestContext?: Record<string, unknown> | null | undefined;
84
+ metadata?: Record<string, unknown> | null | undefined;
85
+ tags?: string[] | null | undefined;
86
+ source?: string | null | undefined;
87
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
88
+ entityId?: string | null | undefined;
89
+ entityName?: string | null | undefined;
90
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
91
+ parentEntityId?: string | null | undefined;
92
+ parentEntityName?: string | null | undefined;
93
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
94
+ rootEntityId?: string | null | undefined;
95
+ rootEntityName?: string | null | undefined;
96
+ userId?: string | null | undefined;
97
+ organizationId?: string | null | undefined;
98
+ resourceId?: string | null | undefined;
99
+ runId?: string | null | undefined;
100
+ sessionId?: string | null | undefined;
101
+ threadId?: string | null | undefined;
102
+ requestId?: string | null | undefined;
103
+ environment?: string | null | undefined;
104
+ serviceName?: string | null | undefined;
105
+ scope?: Record<string, unknown> | null | undefined;
106
+ entityVersionId?: string | null | undefined;
107
+ parentEntityVersionId?: string | null | undefined;
108
+ rootEntityVersionId?: string | null | undefined;
109
+ parentSpanId?: string | null | undefined;
110
+ }[];
111
+ threadTitles: Record<string, string>;
112
+ };
113
+ error: Error;
114
+ isError: true;
115
+ isPending: false;
116
+ isLoading: false;
117
+ isLoadingError: false;
118
+ isRefetchError: true;
119
+ isSuccess: false;
120
+ isPlaceholderData: false;
121
+ status: "error";
122
+ fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
123
+ spans: {
124
+ createdAt: Date;
125
+ updatedAt: Date | null;
126
+ name: string;
127
+ spanType: import('@mastra/core/observability').SpanType;
128
+ isEvent: boolean;
129
+ startedAt: Date;
130
+ traceId: string;
131
+ spanId: string;
132
+ status: import('@mastra/core/storage').TraceStatus;
133
+ experimentId?: string | null | undefined;
134
+ attributes?: Record<string, unknown> | null | undefined;
135
+ links?: unknown[] | null | undefined;
136
+ input?: unknown;
137
+ output?: unknown;
138
+ error?: unknown;
139
+ endedAt?: Date | null | undefined;
140
+ requestContext?: Record<string, unknown> | null | undefined;
141
+ metadata?: Record<string, unknown> | null | undefined;
142
+ tags?: string[] | null | undefined;
143
+ source?: string | null | undefined;
144
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
145
+ entityId?: string | null | undefined;
146
+ entityName?: string | null | undefined;
147
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
148
+ parentEntityId?: string | null | undefined;
149
+ parentEntityName?: string | null | undefined;
150
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
151
+ rootEntityId?: string | null | undefined;
152
+ rootEntityName?: string | null | undefined;
153
+ userId?: string | null | undefined;
154
+ organizationId?: string | null | undefined;
155
+ resourceId?: string | null | undefined;
156
+ runId?: string | null | undefined;
157
+ sessionId?: string | null | undefined;
158
+ threadId?: string | null | undefined;
159
+ requestId?: string | null | undefined;
160
+ environment?: string | null | undefined;
161
+ serviceName?: string | null | undefined;
162
+ scope?: Record<string, unknown> | null | undefined;
163
+ entityVersionId?: string | null | undefined;
164
+ parentEntityVersionId?: string | null | undefined;
165
+ rootEntityVersionId?: string | null | undefined;
166
+ parentSpanId?: string | null | undefined;
167
+ }[];
168
+ threadTitles: Record<string, string>;
169
+ }, Error>>;
170
+ fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
171
+ spans: {
172
+ createdAt: Date;
173
+ updatedAt: Date | null;
174
+ name: string;
175
+ spanType: import('@mastra/core/observability').SpanType;
176
+ isEvent: boolean;
177
+ startedAt: Date;
178
+ traceId: string;
179
+ spanId: string;
180
+ status: import('@mastra/core/storage').TraceStatus;
181
+ experimentId?: string | null | undefined;
182
+ attributes?: Record<string, unknown> | null | undefined;
183
+ links?: unknown[] | null | undefined;
184
+ input?: unknown;
185
+ output?: unknown;
186
+ error?: unknown;
187
+ endedAt?: Date | null | undefined;
188
+ requestContext?: Record<string, unknown> | null | undefined;
189
+ metadata?: Record<string, unknown> | null | undefined;
190
+ tags?: string[] | null | undefined;
191
+ source?: string | null | undefined;
192
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
193
+ entityId?: string | null | undefined;
194
+ entityName?: string | null | undefined;
195
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
196
+ parentEntityId?: string | null | undefined;
197
+ parentEntityName?: string | null | undefined;
198
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
199
+ rootEntityId?: string | null | undefined;
200
+ rootEntityName?: string | null | undefined;
201
+ userId?: string | null | undefined;
202
+ organizationId?: string | null | undefined;
203
+ resourceId?: string | null | undefined;
204
+ runId?: string | null | undefined;
205
+ sessionId?: string | null | undefined;
206
+ threadId?: string | null | undefined;
207
+ requestId?: string | null | undefined;
208
+ environment?: string | null | undefined;
209
+ serviceName?: string | null | undefined;
210
+ scope?: Record<string, unknown> | null | undefined;
211
+ entityVersionId?: string | null | undefined;
212
+ parentEntityVersionId?: string | null | undefined;
213
+ rootEntityVersionId?: string | null | undefined;
214
+ parentSpanId?: string | null | undefined;
215
+ }[];
216
+ threadTitles: Record<string, string>;
217
+ }, Error>>;
218
+ hasNextPage: boolean;
219
+ hasPreviousPage: boolean;
220
+ isFetchNextPageError: boolean;
221
+ isFetchingNextPage: boolean;
222
+ isFetchPreviousPageError: boolean;
223
+ isFetchingPreviousPage: boolean;
224
+ dataUpdatedAt: number;
225
+ errorUpdatedAt: number;
226
+ failureCount: number;
227
+ failureReason: Error | null;
228
+ errorUpdateCount: number;
229
+ isFetched: boolean;
230
+ isFetchedAfterMount: boolean;
231
+ isFetching: boolean;
232
+ isInitialLoading: boolean;
233
+ isPaused: boolean;
234
+ isRefetching: boolean;
235
+ isStale: boolean;
236
+ isEnabled: boolean;
237
+ refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
238
+ spans: {
239
+ createdAt: Date;
240
+ updatedAt: Date | null;
241
+ name: string;
242
+ spanType: import('@mastra/core/observability').SpanType;
243
+ isEvent: boolean;
244
+ startedAt: Date;
245
+ traceId: string;
246
+ spanId: string;
247
+ status: import('@mastra/core/storage').TraceStatus;
248
+ experimentId?: string | null | undefined;
249
+ attributes?: Record<string, unknown> | null | undefined;
250
+ links?: unknown[] | null | undefined;
251
+ input?: unknown;
252
+ output?: unknown;
253
+ error?: unknown;
254
+ endedAt?: Date | null | undefined;
255
+ requestContext?: Record<string, unknown> | null | undefined;
256
+ metadata?: Record<string, unknown> | null | undefined;
257
+ tags?: string[] | null | undefined;
258
+ source?: string | null | undefined;
259
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
260
+ entityId?: string | null | undefined;
261
+ entityName?: string | null | undefined;
262
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
263
+ parentEntityId?: string | null | undefined;
264
+ parentEntityName?: string | null | undefined;
265
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
266
+ rootEntityId?: string | null | undefined;
267
+ rootEntityName?: string | null | undefined;
268
+ userId?: string | null | undefined;
269
+ organizationId?: string | null | undefined;
270
+ resourceId?: string | null | undefined;
271
+ runId?: string | null | undefined;
272
+ sessionId?: string | null | undefined;
273
+ threadId?: string | null | undefined;
274
+ requestId?: string | null | undefined;
275
+ environment?: string | null | undefined;
276
+ serviceName?: string | null | undefined;
277
+ scope?: Record<string, unknown> | null | undefined;
278
+ entityVersionId?: string | null | undefined;
279
+ parentEntityVersionId?: string | null | undefined;
280
+ rootEntityVersionId?: string | null | undefined;
281
+ parentSpanId?: string | null | undefined;
282
+ }[];
283
+ threadTitles: Record<string, string>;
284
+ }, Error>>;
285
+ fetchStatus: import('@tanstack/react-query').FetchStatus;
286
+ promise: Promise<{
287
+ spans: {
288
+ createdAt: Date;
289
+ updatedAt: Date | null;
290
+ name: string;
291
+ spanType: import('@mastra/core/observability').SpanType;
292
+ isEvent: boolean;
293
+ startedAt: Date;
294
+ traceId: string;
295
+ spanId: string;
296
+ status: import('@mastra/core/storage').TraceStatus;
297
+ experimentId?: string | null | undefined;
298
+ attributes?: Record<string, unknown> | null | undefined;
299
+ links?: unknown[] | null | undefined;
300
+ input?: unknown;
301
+ output?: unknown;
302
+ error?: unknown;
303
+ endedAt?: Date | null | undefined;
304
+ requestContext?: Record<string, unknown> | null | undefined;
305
+ metadata?: Record<string, unknown> | null | undefined;
306
+ tags?: string[] | null | undefined;
307
+ source?: string | null | undefined;
308
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
309
+ entityId?: string | null | undefined;
310
+ entityName?: string | null | undefined;
311
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
312
+ parentEntityId?: string | null | undefined;
313
+ parentEntityName?: string | null | undefined;
314
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
315
+ rootEntityId?: string | null | undefined;
316
+ rootEntityName?: string | null | undefined;
317
+ userId?: string | null | undefined;
318
+ organizationId?: string | null | undefined;
319
+ resourceId?: string | null | undefined;
320
+ runId?: string | null | undefined;
321
+ sessionId?: string | null | undefined;
322
+ threadId?: string | null | undefined;
323
+ requestId?: string | null | undefined;
324
+ environment?: string | null | undefined;
325
+ serviceName?: string | null | undefined;
326
+ scope?: Record<string, unknown> | null | undefined;
327
+ entityVersionId?: string | null | undefined;
328
+ parentEntityVersionId?: string | null | undefined;
329
+ rootEntityVersionId?: string | null | undefined;
330
+ parentSpanId?: string | null | undefined;
331
+ }[];
332
+ threadTitles: Record<string, string>;
333
+ }>;
334
+ } | {
335
+ setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
336
+ data: {
337
+ spans: {
338
+ createdAt: Date;
339
+ updatedAt: Date | null;
340
+ name: string;
341
+ spanType: import('@mastra/core/observability').SpanType;
342
+ isEvent: boolean;
343
+ startedAt: Date;
344
+ traceId: string;
345
+ spanId: string;
346
+ status: import('@mastra/core/storage').TraceStatus;
347
+ experimentId?: string | null | undefined;
348
+ attributes?: Record<string, unknown> | null | undefined;
349
+ links?: unknown[] | null | undefined;
350
+ input?: unknown;
351
+ output?: unknown;
352
+ error?: unknown;
353
+ endedAt?: Date | null | undefined;
354
+ requestContext?: Record<string, unknown> | null | undefined;
355
+ metadata?: Record<string, unknown> | null | undefined;
356
+ tags?: string[] | null | undefined;
357
+ source?: string | null | undefined;
358
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
359
+ entityId?: string | null | undefined;
360
+ entityName?: string | null | undefined;
361
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
362
+ parentEntityId?: string | null | undefined;
363
+ parentEntityName?: string | null | undefined;
364
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
365
+ rootEntityId?: string | null | undefined;
366
+ rootEntityName?: string | null | undefined;
367
+ userId?: string | null | undefined;
368
+ organizationId?: string | null | undefined;
369
+ resourceId?: string | null | undefined;
370
+ runId?: string | null | undefined;
371
+ sessionId?: string | null | undefined;
372
+ threadId?: string | null | undefined;
373
+ requestId?: string | null | undefined;
374
+ environment?: string | null | undefined;
375
+ serviceName?: string | null | undefined;
376
+ scope?: Record<string, unknown> | null | undefined;
377
+ entityVersionId?: string | null | undefined;
378
+ parentEntityVersionId?: string | null | undefined;
379
+ rootEntityVersionId?: string | null | undefined;
380
+ parentSpanId?: string | null | undefined;
381
+ }[];
382
+ threadTitles: Record<string, string>;
383
+ };
384
+ error: null;
385
+ isError: false;
386
+ isPending: false;
387
+ isLoading: false;
388
+ isLoadingError: false;
389
+ isRefetchError: false;
390
+ isFetchNextPageError: false;
391
+ isFetchPreviousPageError: false;
392
+ isSuccess: true;
393
+ isPlaceholderData: false;
394
+ status: "success";
395
+ fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
396
+ spans: {
397
+ createdAt: Date;
398
+ updatedAt: Date | null;
399
+ name: string;
400
+ spanType: import('@mastra/core/observability').SpanType;
401
+ isEvent: boolean;
402
+ startedAt: Date;
403
+ traceId: string;
404
+ spanId: string;
405
+ status: import('@mastra/core/storage').TraceStatus;
406
+ experimentId?: string | null | undefined;
407
+ attributes?: Record<string, unknown> | null | undefined;
408
+ links?: unknown[] | null | undefined;
409
+ input?: unknown;
410
+ output?: unknown;
411
+ error?: unknown;
412
+ endedAt?: Date | null | undefined;
413
+ requestContext?: Record<string, unknown> | null | undefined;
414
+ metadata?: Record<string, unknown> | null | undefined;
415
+ tags?: string[] | null | undefined;
416
+ source?: string | null | undefined;
417
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
418
+ entityId?: string | null | undefined;
419
+ entityName?: string | null | undefined;
420
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
421
+ parentEntityId?: string | null | undefined;
422
+ parentEntityName?: string | null | undefined;
423
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
424
+ rootEntityId?: string | null | undefined;
425
+ rootEntityName?: string | null | undefined;
426
+ userId?: string | null | undefined;
427
+ organizationId?: string | null | undefined;
428
+ resourceId?: string | null | undefined;
429
+ runId?: string | null | undefined;
430
+ sessionId?: string | null | undefined;
431
+ threadId?: string | null | undefined;
432
+ requestId?: string | null | undefined;
433
+ environment?: string | null | undefined;
434
+ serviceName?: string | null | undefined;
435
+ scope?: Record<string, unknown> | null | undefined;
436
+ entityVersionId?: string | null | undefined;
437
+ parentEntityVersionId?: string | null | undefined;
438
+ rootEntityVersionId?: string | null | undefined;
439
+ parentSpanId?: string | null | undefined;
440
+ }[];
441
+ threadTitles: Record<string, string>;
442
+ }, Error>>;
443
+ fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
444
+ spans: {
445
+ createdAt: Date;
446
+ updatedAt: Date | null;
447
+ name: string;
448
+ spanType: import('@mastra/core/observability').SpanType;
449
+ isEvent: boolean;
450
+ startedAt: Date;
451
+ traceId: string;
452
+ spanId: string;
453
+ status: import('@mastra/core/storage').TraceStatus;
454
+ experimentId?: string | null | undefined;
455
+ attributes?: Record<string, unknown> | null | undefined;
456
+ links?: unknown[] | null | undefined;
457
+ input?: unknown;
458
+ output?: unknown;
459
+ error?: unknown;
460
+ endedAt?: Date | null | undefined;
461
+ requestContext?: Record<string, unknown> | null | undefined;
462
+ metadata?: Record<string, unknown> | null | undefined;
463
+ tags?: string[] | null | undefined;
464
+ source?: string | null | undefined;
465
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
466
+ entityId?: string | null | undefined;
467
+ entityName?: string | null | undefined;
468
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
469
+ parentEntityId?: string | null | undefined;
470
+ parentEntityName?: string | null | undefined;
471
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
472
+ rootEntityId?: string | null | undefined;
473
+ rootEntityName?: string | null | undefined;
474
+ userId?: string | null | undefined;
475
+ organizationId?: string | null | undefined;
476
+ resourceId?: string | null | undefined;
477
+ runId?: string | null | undefined;
478
+ sessionId?: string | null | undefined;
479
+ threadId?: string | null | undefined;
480
+ requestId?: string | null | undefined;
481
+ environment?: string | null | undefined;
482
+ serviceName?: string | null | undefined;
483
+ scope?: Record<string, unknown> | null | undefined;
484
+ entityVersionId?: string | null | undefined;
485
+ parentEntityVersionId?: string | null | undefined;
486
+ rootEntityVersionId?: string | null | undefined;
487
+ parentSpanId?: string | null | undefined;
488
+ }[];
489
+ threadTitles: Record<string, string>;
490
+ }, Error>>;
491
+ hasNextPage: boolean;
492
+ hasPreviousPage: boolean;
493
+ isFetchingNextPage: boolean;
494
+ isFetchingPreviousPage: boolean;
495
+ dataUpdatedAt: number;
496
+ errorUpdatedAt: number;
497
+ failureCount: number;
498
+ failureReason: Error | null;
499
+ errorUpdateCount: number;
500
+ isFetched: boolean;
501
+ isFetchedAfterMount: boolean;
502
+ isFetching: boolean;
503
+ isInitialLoading: boolean;
504
+ isPaused: boolean;
505
+ isRefetching: boolean;
506
+ isStale: boolean;
507
+ isEnabled: boolean;
508
+ refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
509
+ spans: {
510
+ createdAt: Date;
511
+ updatedAt: Date | null;
512
+ name: string;
513
+ spanType: import('@mastra/core/observability').SpanType;
514
+ isEvent: boolean;
515
+ startedAt: Date;
516
+ traceId: string;
517
+ spanId: string;
518
+ status: import('@mastra/core/storage').TraceStatus;
519
+ experimentId?: string | null | undefined;
520
+ attributes?: Record<string, unknown> | null | undefined;
521
+ links?: unknown[] | null | undefined;
522
+ input?: unknown;
523
+ output?: unknown;
524
+ error?: unknown;
525
+ endedAt?: Date | null | undefined;
526
+ requestContext?: Record<string, unknown> | null | undefined;
527
+ metadata?: Record<string, unknown> | null | undefined;
528
+ tags?: string[] | null | undefined;
529
+ source?: string | null | undefined;
530
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
531
+ entityId?: string | null | undefined;
532
+ entityName?: string | null | undefined;
533
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
534
+ parentEntityId?: string | null | undefined;
535
+ parentEntityName?: string | null | undefined;
536
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
537
+ rootEntityId?: string | null | undefined;
538
+ rootEntityName?: string | null | undefined;
539
+ userId?: string | null | undefined;
540
+ organizationId?: string | null | undefined;
541
+ resourceId?: string | null | undefined;
542
+ runId?: string | null | undefined;
543
+ sessionId?: string | null | undefined;
544
+ threadId?: string | null | undefined;
545
+ requestId?: string | null | undefined;
546
+ environment?: string | null | undefined;
547
+ serviceName?: string | null | undefined;
548
+ scope?: Record<string, unknown> | null | undefined;
549
+ entityVersionId?: string | null | undefined;
550
+ parentEntityVersionId?: string | null | undefined;
551
+ rootEntityVersionId?: string | null | undefined;
552
+ parentSpanId?: string | null | undefined;
553
+ }[];
554
+ threadTitles: Record<string, string>;
555
+ }, Error>>;
556
+ fetchStatus: import('@tanstack/react-query').FetchStatus;
557
+ promise: Promise<{
558
+ spans: {
559
+ createdAt: Date;
560
+ updatedAt: Date | null;
561
+ name: string;
562
+ spanType: import('@mastra/core/observability').SpanType;
563
+ isEvent: boolean;
564
+ startedAt: Date;
565
+ traceId: string;
566
+ spanId: string;
567
+ status: import('@mastra/core/storage').TraceStatus;
568
+ experimentId?: string | null | undefined;
569
+ attributes?: Record<string, unknown> | null | undefined;
570
+ links?: unknown[] | null | undefined;
571
+ input?: unknown;
572
+ output?: unknown;
573
+ error?: unknown;
574
+ endedAt?: Date | null | undefined;
575
+ requestContext?: Record<string, unknown> | null | undefined;
576
+ metadata?: Record<string, unknown> | null | undefined;
577
+ tags?: string[] | null | undefined;
578
+ source?: string | null | undefined;
579
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
580
+ entityId?: string | null | undefined;
581
+ entityName?: string | null | undefined;
582
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
583
+ parentEntityId?: string | null | undefined;
584
+ parentEntityName?: string | null | undefined;
585
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
586
+ rootEntityId?: string | null | undefined;
587
+ rootEntityName?: string | null | undefined;
588
+ userId?: string | null | undefined;
589
+ organizationId?: string | null | undefined;
590
+ resourceId?: string | null | undefined;
591
+ runId?: string | null | undefined;
592
+ sessionId?: string | null | undefined;
593
+ threadId?: string | null | undefined;
594
+ requestId?: string | null | undefined;
595
+ environment?: string | null | undefined;
596
+ serviceName?: string | null | undefined;
597
+ scope?: Record<string, unknown> | null | undefined;
598
+ entityVersionId?: string | null | undefined;
599
+ parentEntityVersionId?: string | null | undefined;
600
+ rootEntityVersionId?: string | null | undefined;
601
+ parentSpanId?: string | null | undefined;
602
+ }[];
603
+ threadTitles: Record<string, string>;
604
+ }>;
605
+ } | {
606
+ setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
607
+ data: undefined;
608
+ error: Error;
609
+ isError: true;
610
+ isPending: false;
611
+ isLoading: false;
612
+ isLoadingError: true;
613
+ isRefetchError: false;
614
+ isFetchNextPageError: false;
615
+ isFetchPreviousPageError: false;
616
+ isSuccess: false;
617
+ isPlaceholderData: false;
618
+ status: "error";
619
+ fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
620
+ spans: {
621
+ createdAt: Date;
622
+ updatedAt: Date | null;
623
+ name: string;
624
+ spanType: import('@mastra/core/observability').SpanType;
625
+ isEvent: boolean;
626
+ startedAt: Date;
627
+ traceId: string;
628
+ spanId: string;
629
+ status: import('@mastra/core/storage').TraceStatus;
630
+ experimentId?: string | null | undefined;
631
+ attributes?: Record<string, unknown> | null | undefined;
632
+ links?: unknown[] | null | undefined;
633
+ input?: unknown;
634
+ output?: unknown;
635
+ error?: unknown;
636
+ endedAt?: Date | null | undefined;
637
+ requestContext?: Record<string, unknown> | null | undefined;
638
+ metadata?: Record<string, unknown> | null | undefined;
639
+ tags?: string[] | null | undefined;
640
+ source?: string | null | undefined;
641
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
642
+ entityId?: string | null | undefined;
643
+ entityName?: string | null | undefined;
644
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
645
+ parentEntityId?: string | null | undefined;
646
+ parentEntityName?: string | null | undefined;
647
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
648
+ rootEntityId?: string | null | undefined;
649
+ rootEntityName?: string | null | undefined;
650
+ userId?: string | null | undefined;
651
+ organizationId?: string | null | undefined;
652
+ resourceId?: string | null | undefined;
653
+ runId?: string | null | undefined;
654
+ sessionId?: string | null | undefined;
655
+ threadId?: string | null | undefined;
656
+ requestId?: string | null | undefined;
657
+ environment?: string | null | undefined;
658
+ serviceName?: string | null | undefined;
659
+ scope?: Record<string, unknown> | null | undefined;
660
+ entityVersionId?: string | null | undefined;
661
+ parentEntityVersionId?: string | null | undefined;
662
+ rootEntityVersionId?: string | null | undefined;
663
+ parentSpanId?: string | null | undefined;
664
+ }[];
665
+ threadTitles: Record<string, string>;
666
+ }, Error>>;
667
+ fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
668
+ spans: {
669
+ createdAt: Date;
670
+ updatedAt: Date | null;
671
+ name: string;
672
+ spanType: import('@mastra/core/observability').SpanType;
673
+ isEvent: boolean;
674
+ startedAt: Date;
675
+ traceId: string;
676
+ spanId: string;
677
+ status: import('@mastra/core/storage').TraceStatus;
678
+ experimentId?: string | null | undefined;
679
+ attributes?: Record<string, unknown> | null | undefined;
680
+ links?: unknown[] | null | undefined;
681
+ input?: unknown;
682
+ output?: unknown;
683
+ error?: unknown;
684
+ endedAt?: Date | null | undefined;
685
+ requestContext?: Record<string, unknown> | null | undefined;
686
+ metadata?: Record<string, unknown> | null | undefined;
687
+ tags?: string[] | null | undefined;
688
+ source?: string | null | undefined;
689
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
690
+ entityId?: string | null | undefined;
691
+ entityName?: string | null | undefined;
692
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
693
+ parentEntityId?: string | null | undefined;
694
+ parentEntityName?: string | null | undefined;
695
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
696
+ rootEntityId?: string | null | undefined;
697
+ rootEntityName?: string | null | undefined;
698
+ userId?: string | null | undefined;
699
+ organizationId?: string | null | undefined;
700
+ resourceId?: string | null | undefined;
701
+ runId?: string | null | undefined;
702
+ sessionId?: string | null | undefined;
703
+ threadId?: string | null | undefined;
704
+ requestId?: string | null | undefined;
705
+ environment?: string | null | undefined;
706
+ serviceName?: string | null | undefined;
707
+ scope?: Record<string, unknown> | null | undefined;
708
+ entityVersionId?: string | null | undefined;
709
+ parentEntityVersionId?: string | null | undefined;
710
+ rootEntityVersionId?: string | null | undefined;
711
+ parentSpanId?: string | null | undefined;
712
+ }[];
713
+ threadTitles: Record<string, string>;
714
+ }, Error>>;
715
+ hasNextPage: boolean;
716
+ hasPreviousPage: boolean;
717
+ isFetchingNextPage: boolean;
718
+ isFetchingPreviousPage: boolean;
719
+ dataUpdatedAt: number;
720
+ errorUpdatedAt: number;
721
+ failureCount: number;
722
+ failureReason: Error | null;
723
+ errorUpdateCount: number;
724
+ isFetched: boolean;
725
+ isFetchedAfterMount: boolean;
726
+ isFetching: boolean;
727
+ isInitialLoading: boolean;
728
+ isPaused: boolean;
729
+ isRefetching: boolean;
730
+ isStale: boolean;
731
+ isEnabled: boolean;
732
+ refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
733
+ spans: {
734
+ createdAt: Date;
735
+ updatedAt: Date | null;
736
+ name: string;
737
+ spanType: import('@mastra/core/observability').SpanType;
738
+ isEvent: boolean;
739
+ startedAt: Date;
740
+ traceId: string;
741
+ spanId: string;
742
+ status: import('@mastra/core/storage').TraceStatus;
743
+ experimentId?: string | null | undefined;
744
+ attributes?: Record<string, unknown> | null | undefined;
745
+ links?: unknown[] | null | undefined;
746
+ input?: unknown;
747
+ output?: unknown;
748
+ error?: unknown;
749
+ endedAt?: Date | null | undefined;
750
+ requestContext?: Record<string, unknown> | null | undefined;
751
+ metadata?: Record<string, unknown> | null | undefined;
752
+ tags?: string[] | null | undefined;
753
+ source?: string | null | undefined;
754
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
755
+ entityId?: string | null | undefined;
756
+ entityName?: string | null | undefined;
757
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
758
+ parentEntityId?: string | null | undefined;
759
+ parentEntityName?: string | null | undefined;
760
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
761
+ rootEntityId?: string | null | undefined;
762
+ rootEntityName?: string | null | undefined;
763
+ userId?: string | null | undefined;
764
+ organizationId?: string | null | undefined;
765
+ resourceId?: string | null | undefined;
766
+ runId?: string | null | undefined;
767
+ sessionId?: string | null | undefined;
768
+ threadId?: string | null | undefined;
769
+ requestId?: string | null | undefined;
770
+ environment?: string | null | undefined;
771
+ serviceName?: string | null | undefined;
772
+ scope?: Record<string, unknown> | null | undefined;
773
+ entityVersionId?: string | null | undefined;
774
+ parentEntityVersionId?: string | null | undefined;
775
+ rootEntityVersionId?: string | null | undefined;
776
+ parentSpanId?: string | null | undefined;
777
+ }[];
778
+ threadTitles: Record<string, string>;
779
+ }, Error>>;
780
+ fetchStatus: import('@tanstack/react-query').FetchStatus;
781
+ promise: Promise<{
782
+ spans: {
783
+ createdAt: Date;
784
+ updatedAt: Date | null;
785
+ name: string;
786
+ spanType: import('@mastra/core/observability').SpanType;
787
+ isEvent: boolean;
788
+ startedAt: Date;
789
+ traceId: string;
790
+ spanId: string;
791
+ status: import('@mastra/core/storage').TraceStatus;
792
+ experimentId?: string | null | undefined;
793
+ attributes?: Record<string, unknown> | null | undefined;
794
+ links?: unknown[] | null | undefined;
795
+ input?: unknown;
796
+ output?: unknown;
797
+ error?: unknown;
798
+ endedAt?: Date | null | undefined;
799
+ requestContext?: Record<string, unknown> | null | undefined;
800
+ metadata?: Record<string, unknown> | null | undefined;
801
+ tags?: string[] | null | undefined;
802
+ source?: string | null | undefined;
803
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
804
+ entityId?: string | null | undefined;
805
+ entityName?: string | null | undefined;
806
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
807
+ parentEntityId?: string | null | undefined;
808
+ parentEntityName?: string | null | undefined;
809
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
810
+ rootEntityId?: string | null | undefined;
811
+ rootEntityName?: string | null | undefined;
812
+ userId?: string | null | undefined;
813
+ organizationId?: string | null | undefined;
814
+ resourceId?: string | null | undefined;
815
+ runId?: string | null | undefined;
816
+ sessionId?: string | null | undefined;
817
+ threadId?: string | null | undefined;
818
+ requestId?: string | null | undefined;
819
+ environment?: string | null | undefined;
820
+ serviceName?: string | null | undefined;
821
+ scope?: Record<string, unknown> | null | undefined;
822
+ entityVersionId?: string | null | undefined;
823
+ parentEntityVersionId?: string | null | undefined;
824
+ rootEntityVersionId?: string | null | undefined;
825
+ parentSpanId?: string | null | undefined;
826
+ }[];
827
+ threadTitles: Record<string, string>;
828
+ }>;
829
+ } | {
830
+ setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
831
+ data: undefined;
832
+ error: null;
833
+ isError: false;
834
+ isPending: true;
835
+ isLoading: true;
836
+ isLoadingError: false;
837
+ isRefetchError: false;
838
+ isFetchNextPageError: false;
839
+ isFetchPreviousPageError: false;
840
+ isSuccess: false;
841
+ isPlaceholderData: false;
842
+ status: "pending";
843
+ fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
844
+ spans: {
845
+ createdAt: Date;
846
+ updatedAt: Date | null;
847
+ name: string;
848
+ spanType: import('@mastra/core/observability').SpanType;
849
+ isEvent: boolean;
850
+ startedAt: Date;
851
+ traceId: string;
852
+ spanId: string;
853
+ status: import('@mastra/core/storage').TraceStatus;
854
+ experimentId?: string | null | undefined;
855
+ attributes?: Record<string, unknown> | null | undefined;
856
+ links?: unknown[] | null | undefined;
857
+ input?: unknown;
858
+ output?: unknown;
859
+ error?: unknown;
860
+ endedAt?: Date | null | undefined;
861
+ requestContext?: Record<string, unknown> | null | undefined;
862
+ metadata?: Record<string, unknown> | null | undefined;
863
+ tags?: string[] | null | undefined;
864
+ source?: string | null | undefined;
865
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
866
+ entityId?: string | null | undefined;
867
+ entityName?: string | null | undefined;
868
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
869
+ parentEntityId?: string | null | undefined;
870
+ parentEntityName?: string | null | undefined;
871
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
872
+ rootEntityId?: string | null | undefined;
873
+ rootEntityName?: string | null | undefined;
874
+ userId?: string | null | undefined;
875
+ organizationId?: string | null | undefined;
876
+ resourceId?: string | null | undefined;
877
+ runId?: string | null | undefined;
878
+ sessionId?: string | null | undefined;
879
+ threadId?: string | null | undefined;
880
+ requestId?: string | null | undefined;
881
+ environment?: string | null | undefined;
882
+ serviceName?: string | null | undefined;
883
+ scope?: Record<string, unknown> | null | undefined;
884
+ entityVersionId?: string | null | undefined;
885
+ parentEntityVersionId?: string | null | undefined;
886
+ rootEntityVersionId?: string | null | undefined;
887
+ parentSpanId?: string | null | undefined;
888
+ }[];
889
+ threadTitles: Record<string, string>;
890
+ }, Error>>;
891
+ fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
892
+ spans: {
893
+ createdAt: Date;
894
+ updatedAt: Date | null;
895
+ name: string;
896
+ spanType: import('@mastra/core/observability').SpanType;
897
+ isEvent: boolean;
898
+ startedAt: Date;
899
+ traceId: string;
900
+ spanId: string;
901
+ status: import('@mastra/core/storage').TraceStatus;
902
+ experimentId?: string | null | undefined;
903
+ attributes?: Record<string, unknown> | null | undefined;
904
+ links?: unknown[] | null | undefined;
905
+ input?: unknown;
906
+ output?: unknown;
907
+ error?: unknown;
908
+ endedAt?: Date | null | undefined;
909
+ requestContext?: Record<string, unknown> | null | undefined;
910
+ metadata?: Record<string, unknown> | null | undefined;
911
+ tags?: string[] | null | undefined;
912
+ source?: string | null | undefined;
913
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
914
+ entityId?: string | null | undefined;
915
+ entityName?: string | null | undefined;
916
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
917
+ parentEntityId?: string | null | undefined;
918
+ parentEntityName?: string | null | undefined;
919
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
920
+ rootEntityId?: string | null | undefined;
921
+ rootEntityName?: string | null | undefined;
922
+ userId?: string | null | undefined;
923
+ organizationId?: string | null | undefined;
924
+ resourceId?: string | null | undefined;
925
+ runId?: string | null | undefined;
926
+ sessionId?: string | null | undefined;
927
+ threadId?: string | null | undefined;
928
+ requestId?: string | null | undefined;
929
+ environment?: string | null | undefined;
930
+ serviceName?: string | null | undefined;
931
+ scope?: Record<string, unknown> | null | undefined;
932
+ entityVersionId?: string | null | undefined;
933
+ parentEntityVersionId?: string | null | undefined;
934
+ rootEntityVersionId?: string | null | undefined;
935
+ parentSpanId?: string | null | undefined;
936
+ }[];
937
+ threadTitles: Record<string, string>;
938
+ }, Error>>;
939
+ hasNextPage: boolean;
940
+ hasPreviousPage: boolean;
941
+ isFetchingNextPage: boolean;
942
+ isFetchingPreviousPage: boolean;
943
+ dataUpdatedAt: number;
944
+ errorUpdatedAt: number;
945
+ failureCount: number;
946
+ failureReason: Error | null;
947
+ errorUpdateCount: number;
948
+ isFetched: boolean;
949
+ isFetchedAfterMount: boolean;
950
+ isFetching: boolean;
951
+ isInitialLoading: boolean;
952
+ isPaused: boolean;
953
+ isRefetching: boolean;
954
+ isStale: boolean;
955
+ isEnabled: boolean;
956
+ refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
957
+ spans: {
958
+ createdAt: Date;
959
+ updatedAt: Date | null;
960
+ name: string;
961
+ spanType: import('@mastra/core/observability').SpanType;
962
+ isEvent: boolean;
963
+ startedAt: Date;
964
+ traceId: string;
965
+ spanId: string;
966
+ status: import('@mastra/core/storage').TraceStatus;
967
+ experimentId?: string | null | undefined;
968
+ attributes?: Record<string, unknown> | null | undefined;
969
+ links?: unknown[] | null | undefined;
970
+ input?: unknown;
971
+ output?: unknown;
972
+ error?: unknown;
973
+ endedAt?: Date | null | undefined;
974
+ requestContext?: Record<string, unknown> | null | undefined;
975
+ metadata?: Record<string, unknown> | null | undefined;
976
+ tags?: string[] | null | undefined;
977
+ source?: string | null | undefined;
978
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
979
+ entityId?: string | null | undefined;
980
+ entityName?: string | null | undefined;
981
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
982
+ parentEntityId?: string | null | undefined;
983
+ parentEntityName?: string | null | undefined;
984
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
985
+ rootEntityId?: string | null | undefined;
986
+ rootEntityName?: string | null | undefined;
987
+ userId?: string | null | undefined;
988
+ organizationId?: string | null | undefined;
989
+ resourceId?: string | null | undefined;
990
+ runId?: string | null | undefined;
991
+ sessionId?: string | null | undefined;
992
+ threadId?: string | null | undefined;
993
+ requestId?: string | null | undefined;
994
+ environment?: string | null | undefined;
995
+ serviceName?: string | null | undefined;
996
+ scope?: Record<string, unknown> | null | undefined;
997
+ entityVersionId?: string | null | undefined;
998
+ parentEntityVersionId?: string | null | undefined;
999
+ rootEntityVersionId?: string | null | undefined;
1000
+ parentSpanId?: string | null | undefined;
1001
+ }[];
1002
+ threadTitles: Record<string, string>;
1003
+ }, Error>>;
1004
+ fetchStatus: import('@tanstack/react-query').FetchStatus;
1005
+ promise: Promise<{
1006
+ spans: {
1007
+ createdAt: Date;
1008
+ updatedAt: Date | null;
1009
+ name: string;
1010
+ spanType: import('@mastra/core/observability').SpanType;
1011
+ isEvent: boolean;
1012
+ startedAt: Date;
1013
+ traceId: string;
1014
+ spanId: string;
1015
+ status: import('@mastra/core/storage').TraceStatus;
1016
+ experimentId?: string | null | undefined;
1017
+ attributes?: Record<string, unknown> | null | undefined;
1018
+ links?: unknown[] | null | undefined;
1019
+ input?: unknown;
1020
+ output?: unknown;
1021
+ error?: unknown;
1022
+ endedAt?: Date | null | undefined;
1023
+ requestContext?: Record<string, unknown> | null | undefined;
1024
+ metadata?: Record<string, unknown> | null | undefined;
1025
+ tags?: string[] | null | undefined;
1026
+ source?: string | null | undefined;
1027
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1028
+ entityId?: string | null | undefined;
1029
+ entityName?: string | null | undefined;
1030
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1031
+ parentEntityId?: string | null | undefined;
1032
+ parentEntityName?: string | null | undefined;
1033
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1034
+ rootEntityId?: string | null | undefined;
1035
+ rootEntityName?: string | null | undefined;
1036
+ userId?: string | null | undefined;
1037
+ organizationId?: string | null | undefined;
1038
+ resourceId?: string | null | undefined;
1039
+ runId?: string | null | undefined;
1040
+ sessionId?: string | null | undefined;
1041
+ threadId?: string | null | undefined;
1042
+ requestId?: string | null | undefined;
1043
+ environment?: string | null | undefined;
1044
+ serviceName?: string | null | undefined;
1045
+ scope?: Record<string, unknown> | null | undefined;
1046
+ entityVersionId?: string | null | undefined;
1047
+ parentEntityVersionId?: string | null | undefined;
1048
+ rootEntityVersionId?: string | null | undefined;
1049
+ parentSpanId?: string | null | undefined;
1050
+ }[];
1051
+ threadTitles: Record<string, string>;
1052
+ }>;
1053
+ } | {
1054
+ setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
1055
+ data: undefined;
1056
+ error: null;
1057
+ isError: false;
1058
+ isPending: true;
1059
+ isLoadingError: false;
1060
+ isRefetchError: false;
1061
+ isFetchNextPageError: false;
1062
+ isFetchPreviousPageError: false;
1063
+ isSuccess: false;
1064
+ isPlaceholderData: false;
1065
+ status: "pending";
1066
+ fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
1067
+ spans: {
1068
+ createdAt: Date;
1069
+ updatedAt: Date | null;
1070
+ name: string;
1071
+ spanType: import('@mastra/core/observability').SpanType;
1072
+ isEvent: boolean;
1073
+ startedAt: Date;
1074
+ traceId: string;
1075
+ spanId: string;
1076
+ status: import('@mastra/core/storage').TraceStatus;
1077
+ experimentId?: string | null | undefined;
1078
+ attributes?: Record<string, unknown> | null | undefined;
1079
+ links?: unknown[] | null | undefined;
1080
+ input?: unknown;
1081
+ output?: unknown;
1082
+ error?: unknown;
1083
+ endedAt?: Date | null | undefined;
1084
+ requestContext?: Record<string, unknown> | null | undefined;
1085
+ metadata?: Record<string, unknown> | null | undefined;
1086
+ tags?: string[] | null | undefined;
1087
+ source?: string | null | undefined;
1088
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1089
+ entityId?: string | null | undefined;
1090
+ entityName?: string | null | undefined;
1091
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1092
+ parentEntityId?: string | null | undefined;
1093
+ parentEntityName?: string | null | undefined;
1094
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1095
+ rootEntityId?: string | null | undefined;
1096
+ rootEntityName?: string | null | undefined;
1097
+ userId?: string | null | undefined;
1098
+ organizationId?: string | null | undefined;
1099
+ resourceId?: string | null | undefined;
1100
+ runId?: string | null | undefined;
1101
+ sessionId?: string | null | undefined;
1102
+ threadId?: string | null | undefined;
1103
+ requestId?: string | null | undefined;
1104
+ environment?: string | null | undefined;
1105
+ serviceName?: string | null | undefined;
1106
+ scope?: Record<string, unknown> | null | undefined;
1107
+ entityVersionId?: string | null | undefined;
1108
+ parentEntityVersionId?: string | null | undefined;
1109
+ rootEntityVersionId?: string | null | undefined;
1110
+ parentSpanId?: string | null | undefined;
1111
+ }[];
1112
+ threadTitles: Record<string, string>;
1113
+ }, Error>>;
1114
+ fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
1115
+ spans: {
1116
+ createdAt: Date;
1117
+ updatedAt: Date | null;
1118
+ name: string;
1119
+ spanType: import('@mastra/core/observability').SpanType;
1120
+ isEvent: boolean;
1121
+ startedAt: Date;
1122
+ traceId: string;
1123
+ spanId: string;
1124
+ status: import('@mastra/core/storage').TraceStatus;
1125
+ experimentId?: string | null | undefined;
1126
+ attributes?: Record<string, unknown> | null | undefined;
1127
+ links?: unknown[] | null | undefined;
1128
+ input?: unknown;
1129
+ output?: unknown;
1130
+ error?: unknown;
1131
+ endedAt?: Date | null | undefined;
1132
+ requestContext?: Record<string, unknown> | null | undefined;
1133
+ metadata?: Record<string, unknown> | null | undefined;
1134
+ tags?: string[] | null | undefined;
1135
+ source?: string | null | undefined;
1136
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1137
+ entityId?: string | null | undefined;
1138
+ entityName?: string | null | undefined;
1139
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1140
+ parentEntityId?: string | null | undefined;
1141
+ parentEntityName?: string | null | undefined;
1142
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1143
+ rootEntityId?: string | null | undefined;
1144
+ rootEntityName?: string | null | undefined;
1145
+ userId?: string | null | undefined;
1146
+ organizationId?: string | null | undefined;
1147
+ resourceId?: string | null | undefined;
1148
+ runId?: string | null | undefined;
1149
+ sessionId?: string | null | undefined;
1150
+ threadId?: string | null | undefined;
1151
+ requestId?: string | null | undefined;
1152
+ environment?: string | null | undefined;
1153
+ serviceName?: string | null | undefined;
1154
+ scope?: Record<string, unknown> | null | undefined;
1155
+ entityVersionId?: string | null | undefined;
1156
+ parentEntityVersionId?: string | null | undefined;
1157
+ rootEntityVersionId?: string | null | undefined;
1158
+ parentSpanId?: string | null | undefined;
1159
+ }[];
1160
+ threadTitles: Record<string, string>;
1161
+ }, Error>>;
1162
+ hasNextPage: boolean;
1163
+ hasPreviousPage: boolean;
1164
+ isFetchingNextPage: boolean;
1165
+ isFetchingPreviousPage: boolean;
1166
+ dataUpdatedAt: number;
1167
+ errorUpdatedAt: number;
1168
+ failureCount: number;
1169
+ failureReason: Error | null;
1170
+ errorUpdateCount: number;
1171
+ isFetched: boolean;
1172
+ isFetchedAfterMount: boolean;
1173
+ isFetching: boolean;
1174
+ isLoading: boolean;
1175
+ isInitialLoading: boolean;
1176
+ isPaused: boolean;
1177
+ isRefetching: boolean;
1178
+ isStale: boolean;
1179
+ isEnabled: boolean;
1180
+ refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
1181
+ spans: {
1182
+ createdAt: Date;
1183
+ updatedAt: Date | null;
1184
+ name: string;
1185
+ spanType: import('@mastra/core/observability').SpanType;
1186
+ isEvent: boolean;
1187
+ startedAt: Date;
1188
+ traceId: string;
1189
+ spanId: string;
1190
+ status: import('@mastra/core/storage').TraceStatus;
1191
+ experimentId?: string | null | undefined;
1192
+ attributes?: Record<string, unknown> | null | undefined;
1193
+ links?: unknown[] | null | undefined;
1194
+ input?: unknown;
1195
+ output?: unknown;
1196
+ error?: unknown;
1197
+ endedAt?: Date | null | undefined;
1198
+ requestContext?: Record<string, unknown> | null | undefined;
1199
+ metadata?: Record<string, unknown> | null | undefined;
1200
+ tags?: string[] | null | undefined;
1201
+ source?: string | null | undefined;
1202
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1203
+ entityId?: string | null | undefined;
1204
+ entityName?: string | null | undefined;
1205
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1206
+ parentEntityId?: string | null | undefined;
1207
+ parentEntityName?: string | null | undefined;
1208
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1209
+ rootEntityId?: string | null | undefined;
1210
+ rootEntityName?: string | null | undefined;
1211
+ userId?: string | null | undefined;
1212
+ organizationId?: string | null | undefined;
1213
+ resourceId?: string | null | undefined;
1214
+ runId?: string | null | undefined;
1215
+ sessionId?: string | null | undefined;
1216
+ threadId?: string | null | undefined;
1217
+ requestId?: string | null | undefined;
1218
+ environment?: string | null | undefined;
1219
+ serviceName?: string | null | undefined;
1220
+ scope?: Record<string, unknown> | null | undefined;
1221
+ entityVersionId?: string | null | undefined;
1222
+ parentEntityVersionId?: string | null | undefined;
1223
+ rootEntityVersionId?: string | null | undefined;
1224
+ parentSpanId?: string | null | undefined;
1225
+ }[];
1226
+ threadTitles: Record<string, string>;
1227
+ }, Error>>;
1228
+ fetchStatus: import('@tanstack/react-query').FetchStatus;
1229
+ promise: Promise<{
1230
+ spans: {
1231
+ createdAt: Date;
1232
+ updatedAt: Date | null;
1233
+ name: string;
1234
+ spanType: import('@mastra/core/observability').SpanType;
1235
+ isEvent: boolean;
1236
+ startedAt: Date;
1237
+ traceId: string;
1238
+ spanId: string;
1239
+ status: import('@mastra/core/storage').TraceStatus;
1240
+ experimentId?: string | null | undefined;
1241
+ attributes?: Record<string, unknown> | null | undefined;
1242
+ links?: unknown[] | null | undefined;
1243
+ input?: unknown;
1244
+ output?: unknown;
1245
+ error?: unknown;
1246
+ endedAt?: Date | null | undefined;
1247
+ requestContext?: Record<string, unknown> | null | undefined;
1248
+ metadata?: Record<string, unknown> | null | undefined;
1249
+ tags?: string[] | null | undefined;
1250
+ source?: string | null | undefined;
1251
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1252
+ entityId?: string | null | undefined;
1253
+ entityName?: string | null | undefined;
1254
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1255
+ parentEntityId?: string | null | undefined;
1256
+ parentEntityName?: string | null | undefined;
1257
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1258
+ rootEntityId?: string | null | undefined;
1259
+ rootEntityName?: string | null | undefined;
1260
+ userId?: string | null | undefined;
1261
+ organizationId?: string | null | undefined;
1262
+ resourceId?: string | null | undefined;
1263
+ runId?: string | null | undefined;
1264
+ sessionId?: string | null | undefined;
1265
+ threadId?: string | null | undefined;
1266
+ requestId?: string | null | undefined;
1267
+ environment?: string | null | undefined;
1268
+ serviceName?: string | null | undefined;
1269
+ scope?: Record<string, unknown> | null | undefined;
1270
+ entityVersionId?: string | null | undefined;
1271
+ parentEntityVersionId?: string | null | undefined;
1272
+ rootEntityVersionId?: string | null | undefined;
1273
+ parentSpanId?: string | null | undefined;
1274
+ }[];
1275
+ threadTitles: Record<string, string>;
1276
+ }>;
1277
+ } | {
1278
+ setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
1279
+ data: {
1280
+ spans: {
1281
+ createdAt: Date;
1282
+ updatedAt: Date | null;
1283
+ name: string;
1284
+ spanType: import('@mastra/core/observability').SpanType;
1285
+ isEvent: boolean;
1286
+ startedAt: Date;
1287
+ traceId: string;
1288
+ spanId: string;
1289
+ status: import('@mastra/core/storage').TraceStatus;
1290
+ experimentId?: string | null | undefined;
1291
+ attributes?: Record<string, unknown> | null | undefined;
1292
+ links?: unknown[] | null | undefined;
1293
+ input?: unknown;
1294
+ output?: unknown;
1295
+ error?: unknown;
1296
+ endedAt?: Date | null | undefined;
1297
+ requestContext?: Record<string, unknown> | null | undefined;
1298
+ metadata?: Record<string, unknown> | null | undefined;
1299
+ tags?: string[] | null | undefined;
1300
+ source?: string | null | undefined;
1301
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1302
+ entityId?: string | null | undefined;
1303
+ entityName?: string | null | undefined;
1304
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1305
+ parentEntityId?: string | null | undefined;
1306
+ parentEntityName?: string | null | undefined;
1307
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1308
+ rootEntityId?: string | null | undefined;
1309
+ rootEntityName?: string | null | undefined;
1310
+ userId?: string | null | undefined;
1311
+ organizationId?: string | null | undefined;
1312
+ resourceId?: string | null | undefined;
1313
+ runId?: string | null | undefined;
1314
+ sessionId?: string | null | undefined;
1315
+ threadId?: string | null | undefined;
1316
+ requestId?: string | null | undefined;
1317
+ environment?: string | null | undefined;
1318
+ serviceName?: string | null | undefined;
1319
+ scope?: Record<string, unknown> | null | undefined;
1320
+ entityVersionId?: string | null | undefined;
1321
+ parentEntityVersionId?: string | null | undefined;
1322
+ rootEntityVersionId?: string | null | undefined;
1323
+ parentSpanId?: string | null | undefined;
1324
+ }[];
1325
+ threadTitles: Record<string, string>;
1326
+ };
1327
+ isError: false;
1328
+ error: null;
1329
+ isPending: false;
1330
+ isLoading: false;
1331
+ isLoadingError: false;
1332
+ isRefetchError: false;
1333
+ isSuccess: true;
1334
+ isPlaceholderData: true;
1335
+ isFetchNextPageError: false;
1336
+ isFetchPreviousPageError: false;
1337
+ status: "success";
1338
+ fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
1339
+ spans: {
1340
+ createdAt: Date;
1341
+ updatedAt: Date | null;
1342
+ name: string;
1343
+ spanType: import('@mastra/core/observability').SpanType;
1344
+ isEvent: boolean;
1345
+ startedAt: Date;
1346
+ traceId: string;
1347
+ spanId: string;
1348
+ status: import('@mastra/core/storage').TraceStatus;
1349
+ experimentId?: string | null | undefined;
1350
+ attributes?: Record<string, unknown> | null | undefined;
1351
+ links?: unknown[] | null | undefined;
1352
+ input?: unknown;
1353
+ output?: unknown;
1354
+ error?: unknown;
1355
+ endedAt?: Date | null | undefined;
1356
+ requestContext?: Record<string, unknown> | null | undefined;
1357
+ metadata?: Record<string, unknown> | null | undefined;
1358
+ tags?: string[] | null | undefined;
1359
+ source?: string | null | undefined;
1360
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1361
+ entityId?: string | null | undefined;
1362
+ entityName?: string | null | undefined;
1363
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1364
+ parentEntityId?: string | null | undefined;
1365
+ parentEntityName?: string | null | undefined;
1366
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1367
+ rootEntityId?: string | null | undefined;
1368
+ rootEntityName?: string | null | undefined;
1369
+ userId?: string | null | undefined;
1370
+ organizationId?: string | null | undefined;
1371
+ resourceId?: string | null | undefined;
1372
+ runId?: string | null | undefined;
1373
+ sessionId?: string | null | undefined;
1374
+ threadId?: string | null | undefined;
1375
+ requestId?: string | null | undefined;
1376
+ environment?: string | null | undefined;
1377
+ serviceName?: string | null | undefined;
1378
+ scope?: Record<string, unknown> | null | undefined;
1379
+ entityVersionId?: string | null | undefined;
1380
+ parentEntityVersionId?: string | null | undefined;
1381
+ rootEntityVersionId?: string | null | undefined;
1382
+ parentSpanId?: string | null | undefined;
1383
+ }[];
1384
+ threadTitles: Record<string, string>;
1385
+ }, Error>>;
1386
+ fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
1387
+ spans: {
1388
+ createdAt: Date;
1389
+ updatedAt: Date | null;
1390
+ name: string;
1391
+ spanType: import('@mastra/core/observability').SpanType;
1392
+ isEvent: boolean;
1393
+ startedAt: Date;
1394
+ traceId: string;
1395
+ spanId: string;
1396
+ status: import('@mastra/core/storage').TraceStatus;
1397
+ experimentId?: string | null | undefined;
1398
+ attributes?: Record<string, unknown> | null | undefined;
1399
+ links?: unknown[] | null | undefined;
1400
+ input?: unknown;
1401
+ output?: unknown;
1402
+ error?: unknown;
1403
+ endedAt?: Date | null | undefined;
1404
+ requestContext?: Record<string, unknown> | null | undefined;
1405
+ metadata?: Record<string, unknown> | null | undefined;
1406
+ tags?: string[] | null | undefined;
1407
+ source?: string | null | undefined;
1408
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1409
+ entityId?: string | null | undefined;
1410
+ entityName?: string | null | undefined;
1411
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1412
+ parentEntityId?: string | null | undefined;
1413
+ parentEntityName?: string | null | undefined;
1414
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1415
+ rootEntityId?: string | null | undefined;
1416
+ rootEntityName?: string | null | undefined;
1417
+ userId?: string | null | undefined;
1418
+ organizationId?: string | null | undefined;
1419
+ resourceId?: string | null | undefined;
1420
+ runId?: string | null | undefined;
1421
+ sessionId?: string | null | undefined;
1422
+ threadId?: string | null | undefined;
1423
+ requestId?: string | null | undefined;
1424
+ environment?: string | null | undefined;
1425
+ serviceName?: string | null | undefined;
1426
+ scope?: Record<string, unknown> | null | undefined;
1427
+ entityVersionId?: string | null | undefined;
1428
+ parentEntityVersionId?: string | null | undefined;
1429
+ rootEntityVersionId?: string | null | undefined;
1430
+ parentSpanId?: string | null | undefined;
1431
+ }[];
1432
+ threadTitles: Record<string, string>;
1433
+ }, Error>>;
1434
+ hasNextPage: boolean;
1435
+ hasPreviousPage: boolean;
1436
+ isFetchingNextPage: boolean;
1437
+ isFetchingPreviousPage: boolean;
1438
+ dataUpdatedAt: number;
1439
+ errorUpdatedAt: number;
1440
+ failureCount: number;
1441
+ failureReason: Error | null;
1442
+ errorUpdateCount: number;
1443
+ isFetched: boolean;
1444
+ isFetchedAfterMount: boolean;
1445
+ isFetching: boolean;
1446
+ isInitialLoading: boolean;
1447
+ isPaused: boolean;
1448
+ isRefetching: boolean;
1449
+ isStale: boolean;
1450
+ isEnabled: boolean;
1451
+ refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
1452
+ spans: {
1453
+ createdAt: Date;
1454
+ updatedAt: Date | null;
1455
+ name: string;
1456
+ spanType: import('@mastra/core/observability').SpanType;
1457
+ isEvent: boolean;
1458
+ startedAt: Date;
1459
+ traceId: string;
1460
+ spanId: string;
1461
+ status: import('@mastra/core/storage').TraceStatus;
1462
+ experimentId?: string | null | undefined;
1463
+ attributes?: Record<string, unknown> | null | undefined;
1464
+ links?: unknown[] | null | undefined;
1465
+ input?: unknown;
1466
+ output?: unknown;
1467
+ error?: unknown;
1468
+ endedAt?: Date | null | undefined;
1469
+ requestContext?: Record<string, unknown> | null | undefined;
1470
+ metadata?: Record<string, unknown> | null | undefined;
1471
+ tags?: string[] | null | undefined;
1472
+ source?: string | null | undefined;
1473
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1474
+ entityId?: string | null | undefined;
1475
+ entityName?: string | null | undefined;
1476
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1477
+ parentEntityId?: string | null | undefined;
1478
+ parentEntityName?: string | null | undefined;
1479
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1480
+ rootEntityId?: string | null | undefined;
1481
+ rootEntityName?: string | null | undefined;
1482
+ userId?: string | null | undefined;
1483
+ organizationId?: string | null | undefined;
1484
+ resourceId?: string | null | undefined;
1485
+ runId?: string | null | undefined;
1486
+ sessionId?: string | null | undefined;
1487
+ threadId?: string | null | undefined;
1488
+ requestId?: string | null | undefined;
1489
+ environment?: string | null | undefined;
1490
+ serviceName?: string | null | undefined;
1491
+ scope?: Record<string, unknown> | null | undefined;
1492
+ entityVersionId?: string | null | undefined;
1493
+ parentEntityVersionId?: string | null | undefined;
1494
+ rootEntityVersionId?: string | null | undefined;
1495
+ parentSpanId?: string | null | undefined;
1496
+ }[];
1497
+ threadTitles: Record<string, string>;
1498
+ }, Error>>;
1499
+ fetchStatus: import('@tanstack/react-query').FetchStatus;
1500
+ promise: Promise<{
1501
+ spans: {
1502
+ createdAt: Date;
1503
+ updatedAt: Date | null;
1504
+ name: string;
1505
+ spanType: import('@mastra/core/observability').SpanType;
1506
+ isEvent: boolean;
1507
+ startedAt: Date;
1508
+ traceId: string;
1509
+ spanId: string;
1510
+ status: import('@mastra/core/storage').TraceStatus;
1511
+ experimentId?: string | null | undefined;
1512
+ attributes?: Record<string, unknown> | null | undefined;
1513
+ links?: unknown[] | null | undefined;
1514
+ input?: unknown;
1515
+ output?: unknown;
1516
+ error?: unknown;
1517
+ endedAt?: Date | null | undefined;
1518
+ requestContext?: Record<string, unknown> | null | undefined;
1519
+ metadata?: Record<string, unknown> | null | undefined;
1520
+ tags?: string[] | null | undefined;
1521
+ source?: string | null | undefined;
1522
+ entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1523
+ entityId?: string | null | undefined;
1524
+ entityName?: string | null | undefined;
1525
+ parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1526
+ parentEntityId?: string | null | undefined;
1527
+ parentEntityName?: string | null | undefined;
1528
+ rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1529
+ rootEntityId?: string | null | undefined;
1530
+ rootEntityName?: string | null | undefined;
1531
+ userId?: string | null | undefined;
1532
+ organizationId?: string | null | undefined;
1533
+ resourceId?: string | null | undefined;
1534
+ runId?: string | null | undefined;
1535
+ sessionId?: string | null | undefined;
1536
+ threadId?: string | null | undefined;
1537
+ requestId?: string | null | undefined;
1538
+ environment?: string | null | undefined;
1539
+ serviceName?: string | null | undefined;
1540
+ scope?: Record<string, unknown> | null | undefined;
1541
+ entityVersionId?: string | null | undefined;
1542
+ parentEntityVersionId?: string | null | undefined;
1543
+ rootEntityVersionId?: string | null | undefined;
1544
+ parentSpanId?: string | null | undefined;
1545
+ }[];
1546
+ threadTitles: Record<string, string>;
1547
+ }>;
1548
+ };
1549
+ export {};