@mastra/playground-ui 30.0.2-alpha.2 → 31.0.0-alpha.3

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 (27) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/dist/index.cjs.js +233 -75
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.css +201 -27
  5. package/dist/index.es.js +227 -70
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/src/domains/logs/hooks/use-logs.d.ts +13 -1267
  8. package/dist/src/domains/traces/hooks/use-branch.d.ts +5 -46
  9. package/dist/src/domains/traces/hooks/use-span-detail.d.ts +6 -44
  10. package/dist/src/domains/traces/hooks/use-trace-light-spans.d.ts +5 -18
  11. package/dist/src/domains/traces/hooks/use-trace-spans.d.ts +5 -46
  12. package/dist/src/domains/traces/hooks/use-traces.d.ts +15 -1539
  13. package/dist/src/ds/components/ButtonsGroup/buttons-group.stories.d.ts +30 -0
  14. package/dist/src/ds/components/Command/command.d.ts +7 -72
  15. package/dist/src/ds/components/FormFieldBlocks/fields/search-field-block.d.ts +2 -1
  16. package/dist/src/ds/components/Input/input.d.ts +3 -3
  17. package/dist/src/ds/components/Input/input.stories.d.ts +4 -0
  18. package/dist/src/ds/components/InputGroup/input-group.d.ts +7 -2
  19. package/dist/src/ds/components/InputGroup/input-group.stories.d.ts +3 -0
  20. package/dist/src/ds/components/ListSearch/list-search.d.ts +2 -1
  21. package/dist/src/ds/components/Searchbar/searchbar.d.ts +4 -1
  22. package/dist/src/ds/components/Searchbar/searchbar.stories.d.ts +3 -0
  23. package/dist/src/ds/components/Textarea/textarea.d.ts +3 -3
  24. package/dist/src/ds/components/Textarea/textarea.stories.d.ts +1 -0
  25. package/dist/src/ds/primitives/form-element.d.ts +6 -4
  26. package/dist/src/lib/formatting.d.ts +1 -0
  27. package/package.json +6 -6
@@ -1,1271 +1,17 @@
1
1
  import { ListLogsArgs } from '@mastra/core/storage';
2
- export interface LogsFilters {
3
- filters?: ListLogsArgs['filters'];
4
- }
5
- export declare const useLogs: ({ filters }?: LogsFilters) => {
6
- data: {
7
- timestamp: Date;
8
- level: "error" | "info" | "debug" | "warn" | "fatal";
9
- message: string;
10
- source?: string | null | undefined;
11
- metadata?: Record<string, unknown> | null | undefined;
12
- executionSource?: string | null | undefined;
13
- tags?: string[] | null | undefined;
14
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
15
- entityId?: string | null | undefined;
16
- entityName?: string | null | undefined;
17
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
18
- parentEntityId?: string | null | undefined;
19
- parentEntityName?: string | null | undefined;
20
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
21
- rootEntityId?: string | null | undefined;
22
- rootEntityName?: string | null | undefined;
23
- userId?: string | null | undefined;
24
- organizationId?: string | null | undefined;
25
- resourceId?: string | null | undefined;
26
- runId?: string | null | undefined;
27
- sessionId?: string | null | undefined;
28
- threadId?: string | null | undefined;
29
- requestId?: string | null | undefined;
30
- environment?: string | null | undefined;
31
- serviceName?: string | null | undefined;
32
- scope?: Record<string, unknown> | null | undefined;
33
- entityVersionId?: string | null | undefined;
34
- parentEntityVersionId?: string | null | undefined;
35
- rootEntityVersionId?: string | null | undefined;
36
- experimentId?: string | null | undefined;
37
- logId?: string | null | undefined;
38
- data?: Record<string, unknown> | null | undefined;
39
- traceId?: string | null | undefined;
40
- spanId?: string | null | undefined;
41
- }[] | undefined;
42
- setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
43
- error: Error;
44
- isError: true;
45
- isPending: false;
46
- isLoading: false;
47
- isLoadingError: false;
48
- isRefetchError: true;
49
- isSuccess: false;
50
- isPlaceholderData: false;
51
- status: "error";
52
- fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
53
- timestamp: Date;
54
- level: "error" | "info" | "debug" | "warn" | "fatal";
55
- message: string;
56
- source?: string | null | undefined;
57
- metadata?: Record<string, unknown> | null | undefined;
58
- executionSource?: string | null | undefined;
59
- tags?: string[] | null | undefined;
60
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
61
- entityId?: string | null | undefined;
62
- entityName?: string | null | undefined;
63
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
64
- parentEntityId?: string | null | undefined;
65
- parentEntityName?: string | null | undefined;
66
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
67
- rootEntityId?: string | null | undefined;
68
- rootEntityName?: string | null | undefined;
69
- userId?: string | null | undefined;
70
- organizationId?: string | null | undefined;
71
- resourceId?: string | null | undefined;
72
- runId?: string | null | undefined;
73
- sessionId?: string | null | undefined;
74
- threadId?: string | null | undefined;
75
- requestId?: string | null | undefined;
76
- environment?: string | null | undefined;
77
- serviceName?: string | null | undefined;
78
- scope?: Record<string, unknown> | null | undefined;
79
- entityVersionId?: string | null | undefined;
80
- parentEntityVersionId?: string | null | undefined;
81
- rootEntityVersionId?: string | null | undefined;
82
- experimentId?: string | null | undefined;
83
- logId?: string | null | undefined;
84
- data?: Record<string, unknown> | null | undefined;
85
- traceId?: string | null | undefined;
86
- spanId?: string | null | undefined;
87
- }[], Error>>;
88
- fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
89
- timestamp: Date;
90
- level: "error" | "info" | "debug" | "warn" | "fatal";
91
- message: string;
92
- source?: string | null | undefined;
93
- metadata?: Record<string, unknown> | null | undefined;
94
- executionSource?: string | null | undefined;
95
- tags?: string[] | null | undefined;
96
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
97
- entityId?: string | null | undefined;
98
- entityName?: string | null | undefined;
99
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
100
- parentEntityId?: string | null | undefined;
101
- parentEntityName?: string | null | undefined;
102
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
103
- rootEntityId?: string | null | undefined;
104
- rootEntityName?: string | null | undefined;
105
- userId?: string | null | undefined;
106
- organizationId?: string | null | undefined;
107
- resourceId?: string | null | undefined;
108
- runId?: string | null | undefined;
109
- sessionId?: string | null | undefined;
110
- threadId?: string | null | undefined;
111
- requestId?: string | null | undefined;
112
- environment?: string | null | undefined;
113
- serviceName?: string | null | undefined;
114
- scope?: Record<string, unknown> | null | undefined;
115
- entityVersionId?: string | null | undefined;
116
- parentEntityVersionId?: string | null | undefined;
117
- rootEntityVersionId?: string | null | undefined;
118
- experimentId?: string | null | undefined;
119
- logId?: string | null | undefined;
120
- data?: Record<string, unknown> | null | undefined;
121
- traceId?: string | null | undefined;
122
- spanId?: string | null | undefined;
123
- }[], Error>>;
124
- hasNextPage: boolean;
125
- hasPreviousPage: boolean;
126
- isFetchNextPageError: boolean;
127
- isFetchingNextPage: boolean;
128
- isFetchPreviousPageError: boolean;
129
- isFetchingPreviousPage: boolean;
130
- dataUpdatedAt: number;
131
- errorUpdatedAt: number;
132
- failureCount: number;
133
- failureReason: Error | null;
134
- errorUpdateCount: number;
135
- isFetched: boolean;
136
- isFetchedAfterMount: boolean;
137
- isFetching: boolean;
138
- isInitialLoading: boolean;
139
- isPaused: boolean;
140
- isRefetching: boolean;
141
- isStale: boolean;
142
- isEnabled: boolean;
143
- refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
144
- timestamp: Date;
145
- level: "error" | "info" | "debug" | "warn" | "fatal";
146
- message: string;
147
- source?: string | null | undefined;
148
- metadata?: Record<string, unknown> | null | undefined;
149
- executionSource?: string | null | undefined;
150
- tags?: string[] | null | undefined;
151
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
152
- entityId?: string | null | undefined;
153
- entityName?: string | null | undefined;
154
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
155
- parentEntityId?: string | null | undefined;
156
- parentEntityName?: string | null | undefined;
157
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
158
- rootEntityId?: string | null | undefined;
159
- rootEntityName?: string | null | undefined;
160
- userId?: string | null | undefined;
161
- organizationId?: string | null | undefined;
162
- resourceId?: string | null | undefined;
163
- runId?: string | null | undefined;
164
- sessionId?: string | null | undefined;
165
- threadId?: string | null | undefined;
166
- requestId?: string | null | undefined;
167
- environment?: string | null | undefined;
168
- serviceName?: string | null | undefined;
169
- scope?: Record<string, unknown> | null | undefined;
170
- entityVersionId?: string | null | undefined;
171
- parentEntityVersionId?: string | null | undefined;
172
- rootEntityVersionId?: string | null | undefined;
173
- experimentId?: string | null | undefined;
174
- logId?: string | null | undefined;
175
- data?: Record<string, unknown> | null | undefined;
176
- traceId?: string | null | undefined;
177
- spanId?: string | null | undefined;
178
- }[], Error>>;
179
- fetchStatus: import('@tanstack/react-query').FetchStatus;
180
- promise: Promise<{
181
- timestamp: Date;
182
- level: "error" | "info" | "debug" | "warn" | "fatal";
183
- message: string;
184
- source?: string | null | undefined;
185
- metadata?: Record<string, unknown> | null | undefined;
186
- executionSource?: string | null | undefined;
187
- tags?: string[] | null | undefined;
188
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
189
- entityId?: string | null | undefined;
190
- entityName?: string | null | undefined;
191
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
192
- parentEntityId?: string | null | undefined;
193
- parentEntityName?: string | null | undefined;
194
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
195
- rootEntityId?: string | null | undefined;
196
- rootEntityName?: string | null | undefined;
197
- userId?: string | null | undefined;
198
- organizationId?: string | null | undefined;
199
- resourceId?: string | null | undefined;
200
- runId?: string | null | undefined;
201
- sessionId?: string | null | undefined;
202
- threadId?: string | null | undefined;
203
- requestId?: string | null | undefined;
204
- environment?: string | null | undefined;
205
- serviceName?: string | null | undefined;
206
- scope?: Record<string, unknown> | null | undefined;
207
- entityVersionId?: string | null | undefined;
208
- parentEntityVersionId?: string | null | undefined;
209
- rootEntityVersionId?: string | null | undefined;
210
- experimentId?: string | null | undefined;
211
- logId?: string | null | undefined;
212
- data?: Record<string, unknown> | null | undefined;
213
- traceId?: string | null | undefined;
214
- spanId?: string | null | undefined;
215
- }[]>;
216
- } | {
217
- data: {
218
- timestamp: Date;
219
- level: "error" | "info" | "debug" | "warn" | "fatal";
220
- message: string;
221
- source?: string | null | undefined;
222
- metadata?: Record<string, unknown> | null | undefined;
223
- executionSource?: string | null | undefined;
224
- tags?: string[] | null | undefined;
225
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
226
- entityId?: string | null | undefined;
227
- entityName?: string | null | undefined;
228
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
229
- parentEntityId?: string | null | undefined;
230
- parentEntityName?: string | null | undefined;
231
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
232
- rootEntityId?: string | null | undefined;
233
- rootEntityName?: string | null | undefined;
234
- userId?: string | null | undefined;
235
- organizationId?: string | null | undefined;
236
- resourceId?: string | null | undefined;
237
- runId?: string | null | undefined;
238
- sessionId?: string | null | undefined;
239
- threadId?: string | null | undefined;
240
- requestId?: string | null | undefined;
241
- environment?: string | null | undefined;
242
- serviceName?: string | null | undefined;
243
- scope?: Record<string, unknown> | null | undefined;
244
- entityVersionId?: string | null | undefined;
245
- parentEntityVersionId?: string | null | undefined;
246
- rootEntityVersionId?: string | null | undefined;
247
- experimentId?: string | null | undefined;
248
- logId?: string | null | undefined;
249
- data?: Record<string, unknown> | null | undefined;
250
- traceId?: string | null | undefined;
251
- spanId?: string | null | undefined;
252
- }[] | undefined;
253
- setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
254
- error: null;
255
- isError: false;
256
- isPending: false;
257
- isLoading: false;
258
- isLoadingError: false;
259
- isRefetchError: false;
260
- isFetchNextPageError: false;
261
- isFetchPreviousPageError: false;
262
- isSuccess: true;
263
- isPlaceholderData: false;
264
- status: "success";
265
- fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
266
- timestamp: Date;
267
- level: "error" | "info" | "debug" | "warn" | "fatal";
268
- message: string;
269
- source?: string | null | undefined;
270
- metadata?: Record<string, unknown> | null | undefined;
271
- executionSource?: string | null | undefined;
272
- tags?: string[] | null | undefined;
273
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
274
- entityId?: string | null | undefined;
275
- entityName?: string | null | undefined;
276
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
277
- parentEntityId?: string | null | undefined;
278
- parentEntityName?: string | null | undefined;
279
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
280
- rootEntityId?: string | null | undefined;
281
- rootEntityName?: string | null | undefined;
282
- userId?: string | null | undefined;
283
- organizationId?: string | null | undefined;
284
- resourceId?: string | null | undefined;
285
- runId?: string | null | undefined;
286
- sessionId?: string | null | undefined;
287
- threadId?: string | null | undefined;
288
- requestId?: string | null | undefined;
289
- environment?: string | null | undefined;
290
- serviceName?: string | null | undefined;
291
- scope?: Record<string, unknown> | null | undefined;
292
- entityVersionId?: string | null | undefined;
293
- parentEntityVersionId?: string | null | undefined;
294
- rootEntityVersionId?: string | null | undefined;
295
- experimentId?: string | null | undefined;
296
- logId?: string | null | undefined;
297
- data?: Record<string, unknown> | null | undefined;
298
- traceId?: string | null | undefined;
299
- spanId?: string | null | undefined;
300
- }[], Error>>;
301
- fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
302
- timestamp: Date;
303
- level: "error" | "info" | "debug" | "warn" | "fatal";
304
- message: string;
305
- source?: string | null | undefined;
306
- metadata?: Record<string, unknown> | null | undefined;
307
- executionSource?: string | null | undefined;
308
- tags?: string[] | null | undefined;
309
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
310
- entityId?: string | null | undefined;
311
- entityName?: string | null | undefined;
312
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
313
- parentEntityId?: string | null | undefined;
314
- parentEntityName?: string | null | undefined;
315
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
316
- rootEntityId?: string | null | undefined;
317
- rootEntityName?: string | null | undefined;
318
- userId?: string | null | undefined;
319
- organizationId?: string | null | undefined;
320
- resourceId?: string | null | undefined;
321
- runId?: string | null | undefined;
322
- sessionId?: string | null | undefined;
323
- threadId?: string | null | undefined;
324
- requestId?: string | null | undefined;
325
- environment?: string | null | undefined;
326
- serviceName?: string | null | undefined;
327
- scope?: Record<string, unknown> | null | undefined;
328
- entityVersionId?: string | null | undefined;
329
- parentEntityVersionId?: string | null | undefined;
330
- rootEntityVersionId?: string | null | undefined;
331
- experimentId?: string | null | undefined;
332
- logId?: string | null | undefined;
333
- data?: Record<string, unknown> | null | undefined;
334
- traceId?: string | null | undefined;
335
- spanId?: string | null | undefined;
336
- }[], Error>>;
337
- hasNextPage: boolean;
338
- hasPreviousPage: boolean;
339
- isFetchingNextPage: boolean;
340
- isFetchingPreviousPage: boolean;
341
- dataUpdatedAt: number;
342
- errorUpdatedAt: number;
343
- failureCount: number;
344
- failureReason: Error | null;
345
- errorUpdateCount: number;
346
- isFetched: boolean;
347
- isFetchedAfterMount: boolean;
348
- isFetching: boolean;
349
- isInitialLoading: boolean;
350
- isPaused: boolean;
351
- isRefetching: boolean;
352
- isStale: boolean;
353
- isEnabled: boolean;
354
- refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
355
- timestamp: Date;
356
- level: "error" | "info" | "debug" | "warn" | "fatal";
357
- message: string;
358
- source?: string | null | undefined;
359
- metadata?: Record<string, unknown> | null | undefined;
360
- executionSource?: string | null | undefined;
361
- tags?: string[] | null | undefined;
362
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
363
- entityId?: string | null | undefined;
364
- entityName?: string | null | undefined;
365
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
366
- parentEntityId?: string | null | undefined;
367
- parentEntityName?: string | null | undefined;
368
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
369
- rootEntityId?: string | null | undefined;
370
- rootEntityName?: string | null | undefined;
371
- userId?: string | null | undefined;
372
- organizationId?: string | null | undefined;
373
- resourceId?: string | null | undefined;
374
- runId?: string | null | undefined;
375
- sessionId?: string | null | undefined;
376
- threadId?: string | null | undefined;
377
- requestId?: string | null | undefined;
378
- environment?: string | null | undefined;
379
- serviceName?: string | null | undefined;
380
- scope?: Record<string, unknown> | null | undefined;
381
- entityVersionId?: string | null | undefined;
382
- parentEntityVersionId?: string | null | undefined;
383
- rootEntityVersionId?: string | null | undefined;
384
- experimentId?: string | null | undefined;
385
- logId?: string | null | undefined;
386
- data?: Record<string, unknown> | null | undefined;
387
- traceId?: string | null | undefined;
388
- spanId?: string | null | undefined;
389
- }[], Error>>;
390
- fetchStatus: import('@tanstack/react-query').FetchStatus;
391
- promise: Promise<{
392
- timestamp: Date;
393
- level: "error" | "info" | "debug" | "warn" | "fatal";
394
- message: string;
395
- source?: string | null | undefined;
396
- metadata?: Record<string, unknown> | null | undefined;
397
- executionSource?: string | null | undefined;
398
- tags?: string[] | null | undefined;
399
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
400
- entityId?: string | null | undefined;
401
- entityName?: string | null | undefined;
402
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
403
- parentEntityId?: string | null | undefined;
404
- parentEntityName?: string | null | undefined;
405
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
406
- rootEntityId?: string | null | undefined;
407
- rootEntityName?: string | null | undefined;
408
- userId?: string | null | undefined;
409
- organizationId?: string | null | undefined;
410
- resourceId?: string | null | undefined;
411
- runId?: string | null | undefined;
412
- sessionId?: string | null | undefined;
413
- threadId?: string | null | undefined;
414
- requestId?: string | null | undefined;
415
- environment?: string | null | undefined;
416
- serviceName?: string | null | undefined;
417
- scope?: Record<string, unknown> | null | undefined;
418
- entityVersionId?: string | null | undefined;
419
- parentEntityVersionId?: string | null | undefined;
420
- rootEntityVersionId?: string | null | undefined;
421
- experimentId?: string | null | undefined;
422
- logId?: string | null | undefined;
423
- data?: Record<string, unknown> | null | undefined;
424
- traceId?: string | null | undefined;
425
- spanId?: string | null | undefined;
426
- }[]>;
427
- } | {
428
- data: {
429
- timestamp: Date;
430
- level: "error" | "info" | "debug" | "warn" | "fatal";
431
- message: string;
432
- source?: string | null | undefined;
433
- metadata?: Record<string, unknown> | null | undefined;
434
- executionSource?: string | null | undefined;
435
- tags?: string[] | null | undefined;
436
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
437
- entityId?: string | null | undefined;
438
- entityName?: string | null | undefined;
439
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
440
- parentEntityId?: string | null | undefined;
441
- parentEntityName?: string | null | undefined;
442
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
443
- rootEntityId?: string | null | undefined;
444
- rootEntityName?: string | null | undefined;
445
- userId?: string | null | undefined;
446
- organizationId?: string | null | undefined;
447
- resourceId?: string | null | undefined;
448
- runId?: string | null | undefined;
449
- sessionId?: string | null | undefined;
450
- threadId?: string | null | undefined;
451
- requestId?: string | null | undefined;
452
- environment?: string | null | undefined;
453
- serviceName?: string | null | undefined;
454
- scope?: Record<string, unknown> | null | undefined;
455
- entityVersionId?: string | null | undefined;
456
- parentEntityVersionId?: string | null | undefined;
457
- rootEntityVersionId?: string | null | undefined;
458
- experimentId?: string | null | undefined;
459
- logId?: string | null | undefined;
460
- data?: Record<string, unknown> | null | undefined;
461
- traceId?: string | null | undefined;
462
- spanId?: string | null | undefined;
463
- }[] | undefined;
464
- setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
465
- error: Error;
466
- isError: true;
467
- isPending: false;
468
- isLoading: false;
469
- isLoadingError: true;
470
- isRefetchError: false;
471
- isFetchNextPageError: false;
472
- isFetchPreviousPageError: false;
473
- isSuccess: false;
474
- isPlaceholderData: false;
475
- status: "error";
476
- fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
477
- timestamp: Date;
478
- level: "error" | "info" | "debug" | "warn" | "fatal";
479
- message: string;
480
- source?: string | null | undefined;
481
- metadata?: Record<string, unknown> | null | undefined;
482
- executionSource?: string | null | undefined;
483
- tags?: string[] | null | undefined;
484
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
485
- entityId?: string | null | undefined;
486
- entityName?: string | null | undefined;
487
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
488
- parentEntityId?: string | null | undefined;
489
- parentEntityName?: string | null | undefined;
490
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
491
- rootEntityId?: string | null | undefined;
492
- rootEntityName?: string | null | undefined;
493
- userId?: string | null | undefined;
494
- organizationId?: string | null | undefined;
495
- resourceId?: string | null | undefined;
496
- runId?: string | null | undefined;
497
- sessionId?: string | null | undefined;
498
- threadId?: string | null | undefined;
499
- requestId?: string | null | undefined;
500
- environment?: string | null | undefined;
501
- serviceName?: string | null | undefined;
502
- scope?: Record<string, unknown> | null | undefined;
503
- entityVersionId?: string | null | undefined;
504
- parentEntityVersionId?: string | null | undefined;
505
- rootEntityVersionId?: string | null | undefined;
506
- experimentId?: string | null | undefined;
507
- logId?: string | null | undefined;
508
- data?: Record<string, unknown> | null | undefined;
509
- traceId?: string | null | undefined;
510
- spanId?: string | null | undefined;
511
- }[], Error>>;
512
- fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
513
- timestamp: Date;
514
- level: "error" | "info" | "debug" | "warn" | "fatal";
515
- message: string;
516
- source?: string | null | undefined;
517
- metadata?: Record<string, unknown> | null | undefined;
518
- executionSource?: string | null | undefined;
519
- tags?: string[] | null | undefined;
520
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
521
- entityId?: string | null | undefined;
522
- entityName?: string | null | undefined;
523
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
524
- parentEntityId?: string | null | undefined;
525
- parentEntityName?: string | null | undefined;
526
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
527
- rootEntityId?: string | null | undefined;
528
- rootEntityName?: string | null | undefined;
529
- userId?: string | null | undefined;
530
- organizationId?: string | null | undefined;
531
- resourceId?: string | null | undefined;
532
- runId?: string | null | undefined;
533
- sessionId?: string | null | undefined;
534
- threadId?: string | null | undefined;
535
- requestId?: string | null | undefined;
536
- environment?: string | null | undefined;
537
- serviceName?: string | null | undefined;
538
- scope?: Record<string, unknown> | null | undefined;
539
- entityVersionId?: string | null | undefined;
540
- parentEntityVersionId?: string | null | undefined;
541
- rootEntityVersionId?: string | null | undefined;
542
- experimentId?: string | null | undefined;
543
- logId?: string | null | undefined;
544
- data?: Record<string, unknown> | null | undefined;
545
- traceId?: string | null | undefined;
546
- spanId?: string | null | undefined;
547
- }[], Error>>;
548
- hasNextPage: boolean;
549
- hasPreviousPage: boolean;
550
- isFetchingNextPage: boolean;
551
- isFetchingPreviousPage: boolean;
552
- dataUpdatedAt: number;
553
- errorUpdatedAt: number;
554
- failureCount: number;
555
- failureReason: Error | null;
556
- errorUpdateCount: number;
557
- isFetched: boolean;
558
- isFetchedAfterMount: boolean;
559
- isFetching: boolean;
560
- isInitialLoading: boolean;
561
- isPaused: boolean;
562
- isRefetching: boolean;
563
- isStale: boolean;
564
- isEnabled: boolean;
565
- refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
566
- timestamp: Date;
567
- level: "error" | "info" | "debug" | "warn" | "fatal";
568
- message: string;
569
- source?: string | null | undefined;
570
- metadata?: Record<string, unknown> | null | undefined;
571
- executionSource?: string | null | undefined;
572
- tags?: string[] | null | undefined;
573
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
574
- entityId?: string | null | undefined;
575
- entityName?: string | null | undefined;
576
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
577
- parentEntityId?: string | null | undefined;
578
- parentEntityName?: string | null | undefined;
579
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
580
- rootEntityId?: string | null | undefined;
581
- rootEntityName?: string | null | undefined;
582
- userId?: string | null | undefined;
583
- organizationId?: string | null | undefined;
584
- resourceId?: string | null | undefined;
585
- runId?: string | null | undefined;
586
- sessionId?: string | null | undefined;
587
- threadId?: string | null | undefined;
588
- requestId?: string | null | undefined;
589
- environment?: string | null | undefined;
590
- serviceName?: string | null | undefined;
591
- scope?: Record<string, unknown> | null | undefined;
592
- entityVersionId?: string | null | undefined;
593
- parentEntityVersionId?: string | null | undefined;
594
- rootEntityVersionId?: string | null | undefined;
595
- experimentId?: string | null | undefined;
596
- logId?: string | null | undefined;
597
- data?: Record<string, unknown> | null | undefined;
598
- traceId?: string | null | undefined;
599
- spanId?: string | null | undefined;
600
- }[], Error>>;
601
- fetchStatus: import('@tanstack/react-query').FetchStatus;
602
- promise: Promise<{
603
- timestamp: Date;
604
- level: "error" | "info" | "debug" | "warn" | "fatal";
605
- message: string;
606
- source?: string | null | undefined;
607
- metadata?: Record<string, unknown> | null | undefined;
608
- executionSource?: string | null | undefined;
609
- tags?: string[] | null | undefined;
610
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
611
- entityId?: string | null | undefined;
612
- entityName?: string | null | undefined;
613
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
614
- parentEntityId?: string | null | undefined;
615
- parentEntityName?: string | null | undefined;
616
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
617
- rootEntityId?: string | null | undefined;
618
- rootEntityName?: string | null | undefined;
619
- userId?: string | null | undefined;
620
- organizationId?: string | null | undefined;
621
- resourceId?: string | null | undefined;
622
- runId?: string | null | undefined;
623
- sessionId?: string | null | undefined;
624
- threadId?: string | null | undefined;
625
- requestId?: string | null | undefined;
626
- environment?: string | null | undefined;
627
- serviceName?: string | null | undefined;
628
- scope?: Record<string, unknown> | null | undefined;
629
- entityVersionId?: string | null | undefined;
630
- parentEntityVersionId?: string | null | undefined;
631
- rootEntityVersionId?: string | null | undefined;
632
- experimentId?: string | null | undefined;
633
- logId?: string | null | undefined;
634
- data?: Record<string, unknown> | null | undefined;
635
- traceId?: string | null | undefined;
636
- spanId?: string | null | undefined;
637
- }[]>;
638
- } | {
639
- data: {
640
- timestamp: Date;
641
- level: "error" | "info" | "debug" | "warn" | "fatal";
642
- message: string;
643
- source?: string | null | undefined;
644
- metadata?: Record<string, unknown> | null | undefined;
645
- executionSource?: string | null | undefined;
646
- tags?: string[] | null | undefined;
647
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
648
- entityId?: string | null | undefined;
649
- entityName?: string | null | undefined;
650
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
651
- parentEntityId?: string | null | undefined;
652
- parentEntityName?: string | null | undefined;
653
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
654
- rootEntityId?: string | null | undefined;
655
- rootEntityName?: string | null | undefined;
656
- userId?: string | null | undefined;
657
- organizationId?: string | null | undefined;
658
- resourceId?: string | null | undefined;
659
- runId?: string | null | undefined;
660
- sessionId?: string | null | undefined;
661
- threadId?: string | null | undefined;
662
- requestId?: string | null | undefined;
663
- environment?: string | null | undefined;
664
- serviceName?: string | null | undefined;
665
- scope?: Record<string, unknown> | null | undefined;
666
- entityVersionId?: string | null | undefined;
667
- parentEntityVersionId?: string | null | undefined;
668
- rootEntityVersionId?: string | null | undefined;
669
- experimentId?: string | null | undefined;
670
- logId?: string | null | undefined;
671
- data?: Record<string, unknown> | null | undefined;
672
- traceId?: string | null | undefined;
673
- spanId?: string | null | undefined;
674
- }[] | undefined;
675
- setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
676
- error: null;
677
- isError: false;
678
- isPending: true;
679
- isLoading: true;
680
- isLoadingError: false;
681
- isRefetchError: false;
682
- isFetchNextPageError: false;
683
- isFetchPreviousPageError: false;
684
- isSuccess: false;
685
- isPlaceholderData: false;
686
- status: "pending";
687
- fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
688
- timestamp: Date;
689
- level: "error" | "info" | "debug" | "warn" | "fatal";
690
- message: string;
691
- source?: string | null | undefined;
692
- metadata?: Record<string, unknown> | null | undefined;
693
- executionSource?: string | null | undefined;
694
- tags?: string[] | null | undefined;
695
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
696
- entityId?: string | null | undefined;
697
- entityName?: string | null | undefined;
698
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
699
- parentEntityId?: string | null | undefined;
700
- parentEntityName?: string | null | undefined;
701
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
702
- rootEntityId?: string | null | undefined;
703
- rootEntityName?: string | null | undefined;
704
- userId?: string | null | undefined;
705
- organizationId?: string | null | undefined;
706
- resourceId?: string | null | undefined;
707
- runId?: string | null | undefined;
708
- sessionId?: string | null | undefined;
709
- threadId?: string | null | undefined;
710
- requestId?: string | null | undefined;
711
- environment?: string | null | undefined;
712
- serviceName?: string | null | undefined;
713
- scope?: Record<string, unknown> | null | undefined;
714
- entityVersionId?: string | null | undefined;
715
- parentEntityVersionId?: string | null | undefined;
716
- rootEntityVersionId?: string | null | undefined;
717
- experimentId?: string | null | undefined;
718
- logId?: string | null | undefined;
719
- data?: Record<string, unknown> | null | undefined;
720
- traceId?: string | null | undefined;
721
- spanId?: string | null | undefined;
722
- }[], Error>>;
723
- fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
724
- timestamp: Date;
725
- level: "error" | "info" | "debug" | "warn" | "fatal";
726
- message: string;
727
- source?: string | null | undefined;
728
- metadata?: Record<string, unknown> | null | undefined;
729
- executionSource?: string | null | undefined;
730
- tags?: string[] | null | undefined;
731
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
732
- entityId?: string | null | undefined;
733
- entityName?: string | null | undefined;
734
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
735
- parentEntityId?: string | null | undefined;
736
- parentEntityName?: string | null | undefined;
737
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
738
- rootEntityId?: string | null | undefined;
739
- rootEntityName?: string | null | undefined;
740
- userId?: string | null | undefined;
741
- organizationId?: string | null | undefined;
742
- resourceId?: string | null | undefined;
743
- runId?: string | null | undefined;
744
- sessionId?: string | null | undefined;
745
- threadId?: string | null | undefined;
746
- requestId?: string | null | undefined;
747
- environment?: string | null | undefined;
748
- serviceName?: string | null | undefined;
749
- scope?: Record<string, unknown> | null | undefined;
750
- entityVersionId?: string | null | undefined;
751
- parentEntityVersionId?: string | null | undefined;
752
- rootEntityVersionId?: string | null | undefined;
753
- experimentId?: string | null | undefined;
754
- logId?: string | null | undefined;
755
- data?: Record<string, unknown> | null | undefined;
756
- traceId?: string | null | undefined;
757
- spanId?: string | null | undefined;
758
- }[], Error>>;
2
+ import { LogRecord } from '../types';
3
+ interface UseLogsReturn {
4
+ data: LogRecord[] | undefined;
759
5
  hasNextPage: boolean;
760
- hasPreviousPage: boolean;
761
6
  isFetchingNextPage: boolean;
762
- isFetchingPreviousPage: boolean;
763
- dataUpdatedAt: number;
764
- errorUpdatedAt: number;
765
- failureCount: number;
766
- failureReason: Error | null;
767
- errorUpdateCount: number;
768
- isFetched: boolean;
769
- isFetchedAfterMount: boolean;
770
- isFetching: boolean;
771
- isInitialLoading: boolean;
772
- isPaused: boolean;
773
- isRefetching: boolean;
774
- isStale: boolean;
775
- isEnabled: boolean;
776
- refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
777
- timestamp: Date;
778
- level: "error" | "info" | "debug" | "warn" | "fatal";
779
- message: string;
780
- source?: string | null | undefined;
781
- metadata?: Record<string, unknown> | null | undefined;
782
- executionSource?: string | null | undefined;
783
- tags?: string[] | null | undefined;
784
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
785
- entityId?: string | null | undefined;
786
- entityName?: string | null | undefined;
787
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
788
- parentEntityId?: string | null | undefined;
789
- parentEntityName?: string | null | undefined;
790
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
791
- rootEntityId?: string | null | undefined;
792
- rootEntityName?: string | null | undefined;
793
- userId?: string | null | undefined;
794
- organizationId?: string | null | undefined;
795
- resourceId?: string | null | undefined;
796
- runId?: string | null | undefined;
797
- sessionId?: string | null | undefined;
798
- threadId?: string | null | undefined;
799
- requestId?: string | null | undefined;
800
- environment?: string | null | undefined;
801
- serviceName?: string | null | undefined;
802
- scope?: Record<string, unknown> | null | undefined;
803
- entityVersionId?: string | null | undefined;
804
- parentEntityVersionId?: string | null | undefined;
805
- rootEntityVersionId?: string | null | undefined;
806
- experimentId?: string | null | undefined;
807
- logId?: string | null | undefined;
808
- data?: Record<string, unknown> | null | undefined;
809
- traceId?: string | null | undefined;
810
- spanId?: string | null | undefined;
811
- }[], Error>>;
812
- fetchStatus: import('@tanstack/react-query').FetchStatus;
813
- promise: Promise<{
814
- timestamp: Date;
815
- level: "error" | "info" | "debug" | "warn" | "fatal";
816
- message: string;
817
- source?: string | null | undefined;
818
- metadata?: Record<string, unknown> | null | undefined;
819
- executionSource?: string | null | undefined;
820
- tags?: string[] | null | undefined;
821
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
822
- entityId?: string | null | undefined;
823
- entityName?: string | null | undefined;
824
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
825
- parentEntityId?: string | null | undefined;
826
- parentEntityName?: string | null | undefined;
827
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
828
- rootEntityId?: string | null | undefined;
829
- rootEntityName?: string | null | undefined;
830
- userId?: string | null | undefined;
831
- organizationId?: string | null | undefined;
832
- resourceId?: string | null | undefined;
833
- runId?: string | null | undefined;
834
- sessionId?: string | null | undefined;
835
- threadId?: string | null | undefined;
836
- requestId?: string | null | undefined;
837
- environment?: string | null | undefined;
838
- serviceName?: string | null | undefined;
839
- scope?: Record<string, unknown> | null | undefined;
840
- entityVersionId?: string | null | undefined;
841
- parentEntityVersionId?: string | null | undefined;
842
- rootEntityVersionId?: string | null | undefined;
843
- experimentId?: string | null | undefined;
844
- logId?: string | null | undefined;
845
- data?: Record<string, unknown> | null | undefined;
846
- traceId?: string | null | undefined;
847
- spanId?: string | null | undefined;
848
- }[]>;
849
- } | {
850
- data: {
851
- timestamp: Date;
852
- level: "error" | "info" | "debug" | "warn" | "fatal";
853
- message: string;
854
- source?: string | null | undefined;
855
- metadata?: Record<string, unknown> | null | undefined;
856
- executionSource?: string | null | undefined;
857
- tags?: string[] | null | undefined;
858
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
859
- entityId?: string | null | undefined;
860
- entityName?: string | null | undefined;
861
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
862
- parentEntityId?: string | null | undefined;
863
- parentEntityName?: string | null | undefined;
864
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
865
- rootEntityId?: string | null | undefined;
866
- rootEntityName?: string | null | undefined;
867
- userId?: string | null | undefined;
868
- organizationId?: string | null | undefined;
869
- resourceId?: string | null | undefined;
870
- runId?: string | null | undefined;
871
- sessionId?: string | null | undefined;
872
- threadId?: string | null | undefined;
873
- requestId?: string | null | undefined;
874
- environment?: string | null | undefined;
875
- serviceName?: string | null | undefined;
876
- scope?: Record<string, unknown> | null | undefined;
877
- entityVersionId?: string | null | undefined;
878
- parentEntityVersionId?: string | null | undefined;
879
- rootEntityVersionId?: string | null | undefined;
880
- experimentId?: string | null | undefined;
881
- logId?: string | null | undefined;
882
- data?: Record<string, unknown> | null | undefined;
883
- traceId?: string | null | undefined;
884
- spanId?: string | null | undefined;
885
- }[] | undefined;
886
- setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
887
- error: null;
888
- isError: false;
889
- isPending: true;
890
- isLoadingError: false;
891
- isRefetchError: false;
892
- isFetchNextPageError: false;
893
- isFetchPreviousPageError: false;
894
- isSuccess: false;
895
- isPlaceholderData: false;
896
- status: "pending";
897
- fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
898
- timestamp: Date;
899
- level: "error" | "info" | "debug" | "warn" | "fatal";
900
- message: string;
901
- source?: string | null | undefined;
902
- metadata?: Record<string, unknown> | null | undefined;
903
- executionSource?: string | null | undefined;
904
- tags?: string[] | null | undefined;
905
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
906
- entityId?: string | null | undefined;
907
- entityName?: string | null | undefined;
908
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
909
- parentEntityId?: string | null | undefined;
910
- parentEntityName?: string | null | undefined;
911
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
912
- rootEntityId?: string | null | undefined;
913
- rootEntityName?: string | null | undefined;
914
- userId?: string | null | undefined;
915
- organizationId?: string | null | undefined;
916
- resourceId?: string | null | undefined;
917
- runId?: string | null | undefined;
918
- sessionId?: string | null | undefined;
919
- threadId?: string | null | undefined;
920
- requestId?: string | null | undefined;
921
- environment?: string | null | undefined;
922
- serviceName?: string | null | undefined;
923
- scope?: Record<string, unknown> | null | undefined;
924
- entityVersionId?: string | null | undefined;
925
- parentEntityVersionId?: string | null | undefined;
926
- rootEntityVersionId?: string | null | undefined;
927
- experimentId?: string | null | undefined;
928
- logId?: string | null | undefined;
929
- data?: Record<string, unknown> | null | undefined;
930
- traceId?: string | null | undefined;
931
- spanId?: string | null | undefined;
932
- }[], Error>>;
933
- fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
934
- timestamp: Date;
935
- level: "error" | "info" | "debug" | "warn" | "fatal";
936
- message: string;
937
- source?: string | null | undefined;
938
- metadata?: Record<string, unknown> | null | undefined;
939
- executionSource?: string | null | undefined;
940
- tags?: string[] | null | undefined;
941
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
942
- entityId?: string | null | undefined;
943
- entityName?: string | null | undefined;
944
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
945
- parentEntityId?: string | null | undefined;
946
- parentEntityName?: string | null | undefined;
947
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
948
- rootEntityId?: string | null | undefined;
949
- rootEntityName?: string | null | undefined;
950
- userId?: string | null | undefined;
951
- organizationId?: string | null | undefined;
952
- resourceId?: string | null | undefined;
953
- runId?: string | null | undefined;
954
- sessionId?: string | null | undefined;
955
- threadId?: string | null | undefined;
956
- requestId?: string | null | undefined;
957
- environment?: string | null | undefined;
958
- serviceName?: string | null | undefined;
959
- scope?: Record<string, unknown> | null | undefined;
960
- entityVersionId?: string | null | undefined;
961
- parentEntityVersionId?: string | null | undefined;
962
- rootEntityVersionId?: string | null | undefined;
963
- experimentId?: string | null | undefined;
964
- logId?: string | null | undefined;
965
- data?: Record<string, unknown> | null | undefined;
966
- traceId?: string | null | undefined;
967
- spanId?: string | null | undefined;
968
- }[], Error>>;
969
- hasNextPage: boolean;
970
- hasPreviousPage: boolean;
971
- isFetchingNextPage: boolean;
972
- isFetchingPreviousPage: boolean;
973
- dataUpdatedAt: number;
974
- errorUpdatedAt: number;
975
- failureCount: number;
976
- failureReason: Error | null;
977
- errorUpdateCount: number;
978
- isFetched: boolean;
979
- isFetchedAfterMount: boolean;
980
- isFetching: boolean;
7
+ fetchNextPage: () => void;
981
8
  isLoading: boolean;
982
- isInitialLoading: boolean;
983
- isPaused: boolean;
984
- isRefetching: boolean;
985
- isStale: boolean;
986
- isEnabled: boolean;
987
- refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
988
- timestamp: Date;
989
- level: "error" | "info" | "debug" | "warn" | "fatal";
990
- message: string;
991
- source?: string | null | undefined;
992
- metadata?: Record<string, unknown> | null | undefined;
993
- executionSource?: string | null | undefined;
994
- tags?: string[] | null | undefined;
995
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
996
- entityId?: string | null | undefined;
997
- entityName?: string | null | undefined;
998
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
999
- parentEntityId?: string | null | undefined;
1000
- parentEntityName?: string | null | undefined;
1001
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1002
- rootEntityId?: string | null | undefined;
1003
- rootEntityName?: string | null | undefined;
1004
- userId?: string | null | undefined;
1005
- organizationId?: string | null | undefined;
1006
- resourceId?: string | null | undefined;
1007
- runId?: string | null | undefined;
1008
- sessionId?: string | null | undefined;
1009
- threadId?: string | null | undefined;
1010
- requestId?: string | null | undefined;
1011
- environment?: string | null | undefined;
1012
- serviceName?: string | null | undefined;
1013
- scope?: Record<string, unknown> | null | undefined;
1014
- entityVersionId?: string | null | undefined;
1015
- parentEntityVersionId?: string | null | undefined;
1016
- rootEntityVersionId?: string | null | undefined;
1017
- experimentId?: string | null | undefined;
1018
- logId?: string | null | undefined;
1019
- data?: Record<string, unknown> | null | undefined;
1020
- traceId?: string | null | undefined;
1021
- spanId?: string | null | undefined;
1022
- }[], Error>>;
1023
- fetchStatus: import('@tanstack/react-query').FetchStatus;
1024
- promise: Promise<{
1025
- timestamp: Date;
1026
- level: "error" | "info" | "debug" | "warn" | "fatal";
1027
- message: string;
1028
- source?: string | null | undefined;
1029
- metadata?: Record<string, unknown> | null | undefined;
1030
- executionSource?: string | null | undefined;
1031
- tags?: string[] | null | undefined;
1032
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1033
- entityId?: string | null | undefined;
1034
- entityName?: string | null | undefined;
1035
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1036
- parentEntityId?: string | null | undefined;
1037
- parentEntityName?: string | null | undefined;
1038
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1039
- rootEntityId?: string | null | undefined;
1040
- rootEntityName?: string | null | undefined;
1041
- userId?: string | null | undefined;
1042
- organizationId?: string | null | undefined;
1043
- resourceId?: string | null | undefined;
1044
- runId?: string | null | undefined;
1045
- sessionId?: string | null | undefined;
1046
- threadId?: string | null | undefined;
1047
- requestId?: string | null | undefined;
1048
- environment?: string | null | undefined;
1049
- serviceName?: string | null | undefined;
1050
- scope?: Record<string, unknown> | null | undefined;
1051
- entityVersionId?: string | null | undefined;
1052
- parentEntityVersionId?: string | null | undefined;
1053
- rootEntityVersionId?: string | null | undefined;
1054
- experimentId?: string | null | undefined;
1055
- logId?: string | null | undefined;
1056
- data?: Record<string, unknown> | null | undefined;
1057
- traceId?: string | null | undefined;
1058
- spanId?: string | null | undefined;
1059
- }[]>;
1060
- } | {
1061
- data: {
1062
- timestamp: Date;
1063
- level: "error" | "info" | "debug" | "warn" | "fatal";
1064
- message: string;
1065
- source?: string | null | undefined;
1066
- metadata?: Record<string, unknown> | null | undefined;
1067
- executionSource?: string | null | undefined;
1068
- tags?: string[] | null | undefined;
1069
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1070
- entityId?: string | null | undefined;
1071
- entityName?: string | null | undefined;
1072
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1073
- parentEntityId?: string | null | undefined;
1074
- parentEntityName?: string | null | undefined;
1075
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1076
- rootEntityId?: string | null | undefined;
1077
- rootEntityName?: string | null | undefined;
1078
- userId?: string | null | undefined;
1079
- organizationId?: string | null | undefined;
1080
- resourceId?: string | null | undefined;
1081
- runId?: string | null | undefined;
1082
- sessionId?: string | null | undefined;
1083
- threadId?: string | null | undefined;
1084
- requestId?: string | null | undefined;
1085
- environment?: string | null | undefined;
1086
- serviceName?: string | null | undefined;
1087
- scope?: Record<string, unknown> | null | undefined;
1088
- entityVersionId?: string | null | undefined;
1089
- parentEntityVersionId?: string | null | undefined;
1090
- rootEntityVersionId?: string | null | undefined;
1091
- experimentId?: string | null | undefined;
1092
- logId?: string | null | undefined;
1093
- data?: Record<string, unknown> | null | undefined;
1094
- traceId?: string | null | undefined;
1095
- spanId?: string | null | undefined;
1096
- }[] | undefined;
1097
- setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
1098
- isError: false;
1099
- error: null;
1100
- isPending: false;
1101
- isLoading: false;
1102
- isLoadingError: false;
1103
- isRefetchError: false;
1104
- isSuccess: true;
1105
- isPlaceholderData: true;
1106
- isFetchNextPageError: false;
1107
- isFetchPreviousPageError: false;
1108
- status: "success";
1109
- fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
1110
- timestamp: Date;
1111
- level: "error" | "info" | "debug" | "warn" | "fatal";
1112
- message: string;
1113
- source?: string | null | undefined;
1114
- metadata?: Record<string, unknown> | null | undefined;
1115
- executionSource?: string | null | undefined;
1116
- tags?: string[] | null | undefined;
1117
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1118
- entityId?: string | null | undefined;
1119
- entityName?: string | null | undefined;
1120
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1121
- parentEntityId?: string | null | undefined;
1122
- parentEntityName?: string | null | undefined;
1123
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1124
- rootEntityId?: string | null | undefined;
1125
- rootEntityName?: string | null | undefined;
1126
- userId?: string | null | undefined;
1127
- organizationId?: string | null | undefined;
1128
- resourceId?: string | null | undefined;
1129
- runId?: string | null | undefined;
1130
- sessionId?: string | null | undefined;
1131
- threadId?: string | null | undefined;
1132
- requestId?: string | null | undefined;
1133
- environment?: string | null | undefined;
1134
- serviceName?: string | null | undefined;
1135
- scope?: Record<string, unknown> | null | undefined;
1136
- entityVersionId?: string | null | undefined;
1137
- parentEntityVersionId?: string | null | undefined;
1138
- rootEntityVersionId?: string | null | undefined;
1139
- experimentId?: string | null | undefined;
1140
- logId?: string | null | undefined;
1141
- data?: Record<string, unknown> | null | undefined;
1142
- traceId?: string | null | undefined;
1143
- spanId?: string | null | undefined;
1144
- }[], Error>>;
1145
- fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
1146
- timestamp: Date;
1147
- level: "error" | "info" | "debug" | "warn" | "fatal";
1148
- message: string;
1149
- source?: string | null | undefined;
1150
- metadata?: Record<string, unknown> | null | undefined;
1151
- executionSource?: string | null | undefined;
1152
- tags?: string[] | null | undefined;
1153
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1154
- entityId?: string | null | undefined;
1155
- entityName?: string | null | undefined;
1156
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1157
- parentEntityId?: string | null | undefined;
1158
- parentEntityName?: string | null | undefined;
1159
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1160
- rootEntityId?: string | null | undefined;
1161
- rootEntityName?: string | null | undefined;
1162
- userId?: string | null | undefined;
1163
- organizationId?: string | null | undefined;
1164
- resourceId?: string | null | undefined;
1165
- runId?: string | null | undefined;
1166
- sessionId?: string | null | undefined;
1167
- threadId?: string | null | undefined;
1168
- requestId?: string | null | undefined;
1169
- environment?: string | null | undefined;
1170
- serviceName?: string | null | undefined;
1171
- scope?: Record<string, unknown> | null | undefined;
1172
- entityVersionId?: string | null | undefined;
1173
- parentEntityVersionId?: string | null | undefined;
1174
- rootEntityVersionId?: string | null | undefined;
1175
- experimentId?: string | null | undefined;
1176
- logId?: string | null | undefined;
1177
- data?: Record<string, unknown> | null | undefined;
1178
- traceId?: string | null | undefined;
1179
- spanId?: string | null | undefined;
1180
- }[], Error>>;
1181
- hasNextPage: boolean;
1182
- hasPreviousPage: boolean;
1183
- isFetchingNextPage: boolean;
1184
- isFetchingPreviousPage: boolean;
1185
- dataUpdatedAt: number;
1186
- errorUpdatedAt: number;
1187
- failureCount: number;
1188
- failureReason: Error | null;
1189
- errorUpdateCount: number;
1190
- isFetched: boolean;
1191
- isFetchedAfterMount: boolean;
1192
- isFetching: boolean;
1193
- isInitialLoading: boolean;
1194
- isPaused: boolean;
1195
- isRefetching: boolean;
1196
- isStale: boolean;
1197
- isEnabled: boolean;
1198
- refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
1199
- timestamp: Date;
1200
- level: "error" | "info" | "debug" | "warn" | "fatal";
1201
- message: string;
1202
- source?: string | null | undefined;
1203
- metadata?: Record<string, unknown> | null | undefined;
1204
- executionSource?: string | null | undefined;
1205
- tags?: string[] | null | undefined;
1206
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1207
- entityId?: string | null | undefined;
1208
- entityName?: string | null | undefined;
1209
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1210
- parentEntityId?: string | null | undefined;
1211
- parentEntityName?: string | null | undefined;
1212
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1213
- rootEntityId?: string | null | undefined;
1214
- rootEntityName?: string | null | undefined;
1215
- userId?: string | null | undefined;
1216
- organizationId?: string | null | undefined;
1217
- resourceId?: string | null | undefined;
1218
- runId?: string | null | undefined;
1219
- sessionId?: string | null | undefined;
1220
- threadId?: string | null | undefined;
1221
- requestId?: string | null | undefined;
1222
- environment?: string | null | undefined;
1223
- serviceName?: string | null | undefined;
1224
- scope?: Record<string, unknown> | null | undefined;
1225
- entityVersionId?: string | null | undefined;
1226
- parentEntityVersionId?: string | null | undefined;
1227
- rootEntityVersionId?: string | null | undefined;
1228
- experimentId?: string | null | undefined;
1229
- logId?: string | null | undefined;
1230
- data?: Record<string, unknown> | null | undefined;
1231
- traceId?: string | null | undefined;
1232
- spanId?: string | null | undefined;
1233
- }[], Error>>;
1234
- fetchStatus: import('@tanstack/react-query').FetchStatus;
1235
- promise: Promise<{
1236
- timestamp: Date;
1237
- level: "error" | "info" | "debug" | "warn" | "fatal";
1238
- message: string;
1239
- source?: string | null | undefined;
1240
- metadata?: Record<string, unknown> | null | undefined;
1241
- executionSource?: string | null | undefined;
1242
- tags?: string[] | null | undefined;
1243
- entityType?: import('@mastra/core/storage').EntityType | null | undefined;
1244
- entityId?: string | null | undefined;
1245
- entityName?: string | null | undefined;
1246
- parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1247
- parentEntityId?: string | null | undefined;
1248
- parentEntityName?: string | null | undefined;
1249
- rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
1250
- rootEntityId?: string | null | undefined;
1251
- rootEntityName?: string | null | undefined;
1252
- userId?: string | null | undefined;
1253
- organizationId?: string | null | undefined;
1254
- resourceId?: string | null | undefined;
1255
- runId?: string | null | undefined;
1256
- sessionId?: string | null | undefined;
1257
- threadId?: string | null | undefined;
1258
- requestId?: string | null | undefined;
1259
- environment?: string | null | undefined;
1260
- serviceName?: string | null | undefined;
1261
- scope?: Record<string, unknown> | null | undefined;
1262
- entityVersionId?: string | null | undefined;
1263
- parentEntityVersionId?: string | null | undefined;
1264
- rootEntityVersionId?: string | null | undefined;
1265
- experimentId?: string | null | undefined;
1266
- logId?: string | null | undefined;
1267
- data?: Record<string, unknown> | null | undefined;
1268
- traceId?: string | null | undefined;
1269
- spanId?: string | null | undefined;
1270
- }[]>;
1271
- };
9
+ isError: boolean;
10
+ error: Error | null;
11
+ setEndOfListElement: (node: HTMLDivElement | null) => void;
12
+ }
13
+ export interface LogsFilters {
14
+ filters?: ListLogsArgs['filters'];
15
+ }
16
+ export declare const useLogs: (props?: LogsFilters) => UseLogsReturn;
17
+ export {};