import type { SpanRecord } from '@mastra/core/storage'; import type { Serialized } from '../types.js'; export type TracePageRequest = { mode?: 'context'; readToken?: string; anchorSpanId?: string; depth?: number; spanIds?: string[]; search?: string; ancestors?: boolean; flattenResumes?: boolean; includeFamilySummary?: boolean; include?: 'structure' | 'full'; limit?: number; maxBytes?: number; } | { cursor: string; }; export type GetTracePageArgs = TracePageRequest & { traceId: string; }; export type TracePageNode = Pick, 'traceId' | 'spanId' | 'parentSpanId' | 'name' | 'spanType' | 'isEvent' | 'startedAt' | 'endedAt' | 'entityType' | 'entityId' | 'entityName' | 'model' | 'provider' | 'outcome' | 'stopReason' | 'stopReasonContext' | 'errorCount' | 'externalParentSpanId' | 'resumedFromSpanId' | 'timeToFirstChunkMs' | 'inputPreview' | 'outputPreview' | 'errorPreview' | 'timeToFirstTokenMs'> & { executionFamilyId?: string; displayParentSpanId?: string | null; familySummary?: Pick, 'startedAt' | 'endedAt' | 'outcome' | 'stopReason' | 'stopReasonContext' | 'outputPreview' | 'errorPreview'> & { initialSpanId: string; currentSpanId: string; executionCount: number; originalAvailable: boolean; }; status: 'success' | 'error' | 'running'; childCount: number | null; match: boolean; parentState: 'root' | 'available' | 'unavailable' | 'not-requested'; details?: Omit, 'scope' | 'links'>; }; export interface TracePageResponse { traceId: string; nodes: TracePageNode[]; traceContext?: { readToken: string; lowerEndedAt: string; upperEndedAt: string; roots: (Pick, 'experimentId' | 'userId' | 'organizationId' | 'resourceId' | 'runId' | 'sessionId' | 'threadId' | 'requestId' | 'environment' | 'source' | 'serviceName' | 'tags'> & { spanId: string; projectId?: string | null; })[]; }; missingSpanIds: string[]; nextCursor?: string; ancestorPaths: 'not-requested' | 'continued' | 'complete' | 'unavailable'; } //# sourceMappingURL=trace-page-types.d.ts.map