import { z } from 'zod/v4'; import { SpanType } from '../../../observability/types/index.js'; import { traceIdField, spanIdField } from '../shared.js'; export { traceIdField, spanIdField }; /** Derived status of a trace, computed from the root span's error and endedAt fields. */ export declare enum TraceStatus { SUCCESS = "success", ERROR = "error", RUNNING = "running" } /** Shape containing trace and span identifier fields */ export declare const spanIds: { readonly traceId: z.ZodString; readonly spanId: z.ZodString; }; /** Schema for span identifiers (traceId and spanId) */ export declare const spanIdsSchema: z.ZodObject<{ traceId: z.ZodString; spanId: z.ZodString; }, z.core.$strip>; /** Span identifier pair (traceId and spanId) */ export type SpanIds = z.infer; /** Schema for a complete span record as stored in the database */ export declare const spanRecordSchema: z.ZodObject<{ createdAt: z.ZodDate; updatedAt: z.ZodNullable; experimentId: z.ZodOptional>; attributes: z.ZodOptional>>; links: z.ZodOptional>>; input: z.ZodOptional>; output: z.ZodOptional>; error: z.ZodOptional>; endedAt: z.ZodOptional>; requestContext: z.ZodOptional>>; metadata: z.ZodOptional>>; tags: z.ZodOptional>>; source: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; name: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; traceId: z.ZodString; spanId: z.ZodString; }, z.core.$strip>; /** Complete span record as stored in the database */ export type SpanRecord = z.infer; /** * Computes the trace status from a root span's error and endedAt fields. * - ERROR: if error is present (regardless of endedAt) * - RUNNING: if endedAt is null/undefined and no error * - SUCCESS: if endedAt is present and no error */ export declare function computeTraceStatus(span: { error?: unknown; endedAt?: Date | string | null; }): TraceStatus; /** Schema for a trace span (root span with computed status) */ export declare const traceSpanSchema: z.ZodObject<{ createdAt: z.ZodDate; updatedAt: z.ZodNullable; experimentId: z.ZodOptional>; attributes: z.ZodOptional>>; links: z.ZodOptional>>; input: z.ZodOptional>; output: z.ZodOptional>; error: z.ZodOptional>; endedAt: z.ZodOptional>; requestContext: z.ZodOptional>>; metadata: z.ZodOptional>>; tags: z.ZodOptional>>; source: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; name: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; traceId: z.ZodString; spanId: z.ZodString; status: z.ZodEnum; }, z.core.$strip>; /** Trace span (root span with computed status) */ export type TraceSpan = z.infer; /** * Converts a SpanRecord to a TraceSpan by adding computed status. * Used when returning root spans from listTraces. */ export declare function toTraceSpan(span: SpanRecord): TraceSpan; /** * Converts an array of SpanRecords to TraceSpans by adding computed status. * Used when returning root spans from listTraces. */ export declare function toTraceSpans(spans: SpanRecord[]): TraceSpan[]; /** * Schema for creating a span (without db timestamps) */ export declare const createSpanRecordSchema: z.ZodObject<{ error: z.ZodOptional>; attributes: z.ZodOptional>>; requestContext: z.ZodOptional>>; name: z.ZodString; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; input: z.ZodOptional>; metadata: z.ZodOptional>>; traceId: z.ZodString; output: z.ZodOptional>; spanId: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; experimentId: z.ZodOptional>; links: z.ZodOptional>>; endedAt: z.ZodOptional>; tags: z.ZodOptional>>; source: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; }, z.core.$strip>; /** Span record for creation (excludes db timestamps) */ export type CreateSpanRecord = z.infer; /** * Schema for createSpan operation arguments */ export declare const createSpanArgsSchema: z.ZodObject<{ span: z.ZodObject<{ error: z.ZodOptional>; attributes: z.ZodOptional>>; requestContext: z.ZodOptional>>; name: z.ZodString; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; input: z.ZodOptional>; metadata: z.ZodOptional>>; traceId: z.ZodString; output: z.ZodOptional>; spanId: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; experimentId: z.ZodOptional>; links: z.ZodOptional>>; endedAt: z.ZodOptional>; tags: z.ZodOptional>>; source: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; /** Arguments for creating a single span */ export type CreateSpanArgs = z.infer; /** * Schema for batchCreateSpans operation arguments */ export declare const batchCreateSpansArgsSchema: z.ZodObject<{ records: z.ZodArray>; attributes: z.ZodOptional>>; requestContext: z.ZodOptional>>; name: z.ZodString; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; input: z.ZodOptional>; metadata: z.ZodOptional>>; traceId: z.ZodString; output: z.ZodOptional>; spanId: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; experimentId: z.ZodOptional>; links: z.ZodOptional>>; endedAt: z.ZodOptional>; tags: z.ZodOptional>>; source: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; /** Arguments for batch creating multiple spans */ export type BatchCreateSpansArgs = z.infer; /** * Schema for getSpan operation arguments */ export declare const getSpanArgsSchema: z.ZodObject<{ traceId: z.ZodString; spanId: z.ZodString; }, z.core.$strip>; /** Arguments for retrieving a single span */ export type GetSpanArgs = z.infer; /** * Response schema for getSpan operation */ export declare const getSpanResponseSchema: z.ZodObject<{ span: z.ZodObject<{ createdAt: z.ZodDate; updatedAt: z.ZodNullable; experimentId: z.ZodOptional>; attributes: z.ZodOptional>>; links: z.ZodOptional>>; input: z.ZodOptional>; output: z.ZodOptional>; error: z.ZodOptional>; endedAt: z.ZodOptional>; requestContext: z.ZodOptional>>; metadata: z.ZodOptional>>; tags: z.ZodOptional>>; source: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; name: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; traceId: z.ZodString; spanId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; /** Response containing a single span */ export type GetSpanResponse = z.infer; /** * Schema for getSpans (batch) operation arguments. * * Fetches multiple spans in a trace by spanId in one call. Used to power the * progressive-disclosure path in {@link getBranchArgsSchema}: walk the * lightweight {@link getStructureResponseSchema} to find which spanIds belong * to a branch, then fetch only those with full data instead of pulling the * entire trace. */ export declare const getSpansArgsSchema: z.ZodObject<{ traceId: z.ZodString; spanIds: z.ZodArray; }, z.core.$strip>; /** Arguments for batch-fetching spans by spanId */ export type GetSpansArgs = z.infer; /** Response schema for getSpans operation */ export declare const getSpansResponseSchema: z.ZodObject<{ traceId: z.ZodString; spans: z.ZodArray; experimentId: z.ZodOptional>; attributes: z.ZodOptional>>; links: z.ZodOptional>>; input: z.ZodOptional>; output: z.ZodOptional>; error: z.ZodOptional>; endedAt: z.ZodOptional>; requestContext: z.ZodOptional>>; metadata: z.ZodOptional>>; tags: z.ZodOptional>>; source: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; name: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; traceId: z.ZodString; spanId: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; /** Response containing the requested spans (order is not guaranteed) */ export type GetSpansResponse = z.infer; /** * Schema for getRootSpan operation arguments */ export declare const getRootSpanArgsSchema: z.ZodObject<{ traceId: z.ZodString; }, z.core.$strip>; /** Arguments for retrieving a root span */ export type GetRootSpanArgs = z.infer; /** * Response schema for getRootSpan operation */ export declare const getRootSpanResponseSchema: z.ZodObject<{ span: z.ZodObject<{ createdAt: z.ZodDate; updatedAt: z.ZodNullable; experimentId: z.ZodOptional>; attributes: z.ZodOptional>>; links: z.ZodOptional>>; input: z.ZodOptional>; output: z.ZodOptional>; error: z.ZodOptional>; endedAt: z.ZodOptional>; requestContext: z.ZodOptional>>; metadata: z.ZodOptional>>; tags: z.ZodOptional>>; source: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; name: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; traceId: z.ZodString; spanId: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; /** Response containing a single root span */ export type GetRootSpanResponse = z.infer; /** * Schema for getTrace operation arguments */ export declare const getTraceArgsSchema: z.ZodObject<{ traceId: z.ZodString; }, z.core.$strip>; /** Arguments for retrieving a single trace */ export type GetTraceArgs = z.infer; /** * Response schema for getTrace operation */ export declare const getTraceResponseSchema: z.ZodObject<{ traceId: z.ZodString; spans: z.ZodArray; experimentId: z.ZodOptional>; attributes: z.ZodOptional>>; links: z.ZodOptional>>; input: z.ZodOptional>; output: z.ZodOptional>; error: z.ZodOptional>; endedAt: z.ZodOptional>; requestContext: z.ZodOptional>>; metadata: z.ZodOptional>>; tags: z.ZodOptional>>; source: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; name: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; traceId: z.ZodString; spanId: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; /** Response containing a trace with all its spans */ export type GetTraceResponse = z.infer; /** Alias for GetTraceResponse -- a trace with all its spans. */ export type TraceRecord = GetTraceResponse; /** * Schema for getBranch operation arguments. * * Returns the subtree rooted at `spanId`. When `depth` is omitted the full * descendant subtree is returned; with a finite `depth` only that many levels * below the anchor are returned (depth: 0 → only the anchor span; depth: 1 → * anchor plus immediate children; etc). */ export declare const getBranchArgsSchema: z.ZodObject<{ traceId: z.ZodString; spanId: z.ZodString; depth: z.ZodOptional>; }, z.core.$strip>; /** Arguments for retrieving the subtree rooted at a span */ export type GetBranchArgs = z.input; /** * Response schema for getBranch operation. Mirrors getTrace -- a flat list of * spans, traversal-agnostic. The anchor span is included as the first matching * span; callers reconstruct the tree via parentSpanId. */ export declare const getBranchResponseSchema: z.ZodObject<{ traceId: z.ZodString; spans: z.ZodArray; experimentId: z.ZodOptional>; attributes: z.ZodOptional>>; links: z.ZodOptional>>; input: z.ZodOptional>; output: z.ZodOptional>; error: z.ZodOptional>; endedAt: z.ZodOptional>; requestContext: z.ZodOptional>>; metadata: z.ZodOptional>>; tags: z.ZodOptional>>; source: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; name: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; traceId: z.ZodString; spanId: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; /** Response containing the subtree rooted at a span */ export type GetBranchResponse = z.infer; /** * Extracts the subtree rooted at `anchorSpanId` from a flat list of trace * spans. The anchor itself is included as the first element; descendants are * walked via `parentSpanId` and returned sorted by `startedAt` ascending after * the anchor. When `maxDepth` is provided, only that many levels of * descendants are returned (anchor counts as depth 0). * * Cycles in `parentSpanId` (which shouldn't happen in well-formed traces but * could surface from corrupted data) are handled by tracking visited spanIds * and skipping any span seen during this walk. * * Returns an empty array if the anchor isn't in the input. * * Generic over the span shape so it works on both full {@link SpanRecord} * lists (e.g. result of `getTrace`) and lightweight skeletons (result of * `getStructure`). */ export declare function extractBranchSpans(spans: T[], anchorSpanId: string, maxDepth?: number): T[]; /** * Lightweight span record containing only the fields needed for timeline rendering. * Excludes heavy fields: input, output, attributes, metadata, tags, links. * This reduces per-span payload from ~17KB to ~370 bytes (~97% reduction). */ export declare const lightSpanRecordSchema: z.ZodObject<{ createdAt: z.ZodDate; updatedAt: z.ZodNullable; name: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; endedAt: z.ZodOptional>; error: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; traceId: z.ZodString; spanId: z.ZodString; }, z.core.$strip>; /** Lightweight span record for timeline rendering */ export type LightSpanRecord = z.infer; /** * Response schema for getStructure operation. * Returns a trace with lightweight spans (only fields needed for timeline). */ export declare const getStructureResponseSchema: z.ZodObject<{ traceId: z.ZodString; spans: z.ZodArray; name: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; endedAt: z.ZodOptional>; error: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; traceId: z.ZodString; spanId: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; /** Response containing a trace with lightweight spans for timeline rendering */ export type GetStructureResponse = z.infer; /** @deprecated Use {@link getStructureResponseSchema} instead. */ export declare const getTraceLightResponseSchema: z.ZodObject<{ traceId: z.ZodString; spans: z.ZodArray; name: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; endedAt: z.ZodOptional>; error: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; traceId: z.ZodString; spanId: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; /** @deprecated Use {@link GetStructureResponse} instead. */ export type GetTraceLightResponse = GetStructureResponse; /** Schema for filtering traces in list queries */ export declare const tracesFilterSchema: z.ZodObject<{ status: z.ZodOptional>; hasChildError: z.ZodOptional>; metadata: z.ZodOptional>>; tags: z.ZodOptional>>; source: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; experimentId: z.ZodOptional>; startedAt: z.ZodOptional>; end: z.ZodOptional>; startExclusive: z.ZodOptional; endExclusive: z.ZodOptional; }, z.core.$strip>>; endedAt: z.ZodOptional>; end: z.ZodOptional>; startExclusive: z.ZodOptional; endExclusive: z.ZodOptional; }, z.core.$strip>>; spanType: z.ZodOptional>; traceId: z.ZodOptional; }, z.core.$strip>; /** * Fields available for ordering trace results */ export declare const tracesOrderByFieldSchema: z.ZodEnum<{ startedAt: "startedAt"; endedAt: "endedAt"; }>; /** * Order by configuration for trace queries * Follows the existing StorageOrderBy pattern * Defaults to startedAt desc (newest first) */ export declare const tracesOrderBySchema: z.ZodObject<{ field: z.ZodDefault>; direction: z.ZodDefault>; }, z.core.$strip>; /** * Arguments for listing traces */ export declare const listTracesArgsSchema: z.ZodPipe>; filters: z.ZodOptional>; hasChildError: z.ZodOptional>; metadata: z.ZodOptional>>; tags: z.ZodOptional>>; source: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; experimentId: z.ZodOptional>; startedAt: z.ZodOptional>; end: z.ZodOptional>; startExclusive: z.ZodOptional; endExclusive: z.ZodOptional; }, z.core.$strip>>; endedAt: z.ZodOptional>; end: z.ZodOptional>; startExclusive: z.ZodOptional; endExclusive: z.ZodOptional; }, z.core.$strip>>; spanType: z.ZodOptional>; traceId: z.ZodOptional; }, z.core.$strip>>; pagination: z.ZodOptional>>; perPage: z.ZodDefault>>; }, z.core.$strip>>; orderBy: z.ZodOptional>; direction: z.ZodDefault>; }, z.core.$strip>>; after: z.ZodOptional; limit: z.ZodOptional>; }, z.core.$strict>, z.ZodTransform<{ mode: "page" | "delta"; filters: { status?: TraceStatus | undefined; hasChildError?: boolean | undefined; metadata?: Record | null | undefined; tags?: string[] | null | undefined; source?: string | null | undefined; entityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined; entityId?: string | null | undefined; entityName?: string | null | undefined; parentEntityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined; parentEntityId?: string | null | undefined; parentEntityName?: string | null | undefined; rootEntityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined; rootEntityId?: string | null | undefined; rootEntityName?: string | null | undefined; userId?: string | null | undefined; organizationId?: string | null | undefined; resourceId?: string | null | undefined; runId?: string | null | undefined; sessionId?: string | null | undefined; threadId?: string | null | undefined; requestId?: string | null | undefined; environment?: string | null | undefined; serviceName?: string | null | undefined; scope?: Record | null | undefined; entityVersionId?: string | null | undefined; parentEntityVersionId?: string | null | undefined; rootEntityVersionId?: string | null | undefined; experimentId?: string | null | undefined; startedAt?: { start?: Date | undefined; end?: Date | undefined; startExclusive?: boolean | undefined; endExclusive?: boolean | undefined; } | undefined; endedAt?: { start?: Date | undefined; end?: Date | undefined; startExclusive?: boolean | undefined; endExclusive?: boolean | undefined; } | undefined; spanType?: SpanType | undefined; traceId?: string | undefined; } | undefined; pagination: { page: number; perPage: number; }; orderBy: { field: "startedAt" | "endedAt"; direction: "ASC" | "DESC"; }; after: import("../../../_types/@internal_core/dist/storage/index.d.ts").DeltaCursor | undefined; limit: number; }, { mode?: "page" | "delta" | undefined; filters?: { status?: TraceStatus | undefined; hasChildError?: boolean | undefined; metadata?: Record | null | undefined; tags?: string[] | null | undefined; source?: string | null | undefined; entityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined; entityId?: string | null | undefined; entityName?: string | null | undefined; parentEntityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined; parentEntityId?: string | null | undefined; parentEntityName?: string | null | undefined; rootEntityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined; rootEntityId?: string | null | undefined; rootEntityName?: string | null | undefined; userId?: string | null | undefined; organizationId?: string | null | undefined; resourceId?: string | null | undefined; runId?: string | null | undefined; sessionId?: string | null | undefined; threadId?: string | null | undefined; requestId?: string | null | undefined; environment?: string | null | undefined; serviceName?: string | null | undefined; scope?: Record | null | undefined; entityVersionId?: string | null | undefined; parentEntityVersionId?: string | null | undefined; rootEntityVersionId?: string | null | undefined; experimentId?: string | null | undefined; startedAt?: { start?: Date | undefined; end?: Date | undefined; startExclusive?: boolean | undefined; endExclusive?: boolean | undefined; } | undefined; endedAt?: { start?: Date | undefined; end?: Date | undefined; startExclusive?: boolean | undefined; endExclusive?: boolean | undefined; } | undefined; spanType?: SpanType | undefined; traceId?: string | undefined; } | undefined; pagination?: { page: number; perPage: number; } | undefined; orderBy?: { field: "startedAt" | "endedAt"; direction: "ASC" | "DESC"; } | undefined; after?: string | undefined; limit?: number | undefined; }>>; /** Arguments for listing traces with optional filters, pagination, and ordering */ export type ListTracesArgs = z.input; /** Schema for listTraces operation response */ export declare const listTracesResponseSchema: z.ZodObject<{ pagination: z.ZodOptional]>; hasMore: z.ZodBoolean; }, z.core.$strip>>; delta: z.ZodOptional>; deltaCursor: z.ZodOptional; spans: z.ZodArray; experimentId: z.ZodOptional>; attributes: z.ZodOptional>>; links: z.ZodOptional>>; input: z.ZodOptional>; output: z.ZodOptional>; error: z.ZodOptional>; endedAt: z.ZodOptional>; requestContext: z.ZodOptional>>; metadata: z.ZodOptional>>; tags: z.ZodOptional>>; source: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; name: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; traceId: z.ZodString; spanId: z.ZodString; status: z.ZodEnum; }, z.core.$strip>>; }, z.core.$strip>; /** Response containing paginated root spans with computed status. Trace delta mode returns only new trace rows. */ export type ListTracesResponse = z.infer; /** Schema for listTracesLight operation response */ export declare const listTracesLightResponseSchema: z.ZodObject<{ pagination: z.ZodObject<{ total: z.ZodNumber; page: z.ZodNumber; perPage: z.ZodUnion]>; hasMore: z.ZodBoolean; }, z.core.$strip>; spans: z.ZodArray; name: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; endedAt: z.ZodOptional>; error: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; traceId: z.ZodString; spanId: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; /** Response containing paginated lightweight root spans */ export type ListTracesLightResponse = z.infer; /** * Span types that anchor a listable trace branch -- the spans a user thinks * about when looking for a specific run (agent/workflow/tool/etc.), * regardless of whether the entity ran as the root of its trace or nested * under a parent. Each row in {@link listBranchesArgsSchema} corresponds to * one such anchor span; the subtree below it is fetched via * {@link getBranchArgsSchema}. * * Excludes sub-operation spans (model_step, workflow_step, scorer_step, * memory_operation, rag_*, etc.) which are internal to a containing branch * rather than separately listable. */ export declare const BRANCH_SPAN_TYPES: readonly [SpanType.AGENT_RUN, SpanType.WORKFLOW_RUN, SpanType.PROCESSOR_RUN, SpanType.SCORER_RUN, SpanType.RAG_INGESTION, SpanType.TOOL_CALL, SpanType.MCP_TOOL_CALL]; /** Set form of {@link BRANCH_SPAN_TYPES} for fast membership checks. */ export declare const BRANCH_SPAN_TYPE_SET: ReadonlySet; /** Schema for filtering branch anchor spans in list queries. */ export declare const branchesFilterSchema: z.ZodObject<{ status: z.ZodOptional>; metadata: z.ZodOptional>>; tags: z.ZodOptional>>; source: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; experimentId: z.ZodOptional>; startedAt: z.ZodOptional>; end: z.ZodOptional>; startExclusive: z.ZodOptional; endExclusive: z.ZodOptional; }, z.core.$strip>>; endedAt: z.ZodOptional>; end: z.ZodOptional>; startExclusive: z.ZodOptional; endExclusive: z.ZodOptional; }, z.core.$strip>>; spanType: z.ZodOptional>; traceId: z.ZodOptional; }, z.core.$strip>; export declare const branchesOrderByFieldSchema: z.ZodEnum<{ startedAt: "startedAt"; endedAt: "endedAt"; }>; export declare const branchesOrderBySchema: z.ZodObject<{ field: z.ZodDefault>; direction: z.ZodDefault>; }, z.core.$strip>; /** * Arguments for listing trace branches. * * Each row is a single branch anchor span ({@link BRANCH_SPAN_TYPES}), * including ones nested under a different root entity. Use this when you * want every run of a given agent/processor/tool regardless of how it was * triggered. Use {@link listTracesArgsSchema} when you want one row per * trace, and {@link getBranchArgsSchema} to expand a single branch into its * subtree. */ export declare const listBranchesArgsSchema: z.ZodPipe>; filters: z.ZodOptional>; metadata: z.ZodOptional>>; tags: z.ZodOptional>>; source: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; experimentId: z.ZodOptional>; startedAt: z.ZodOptional>; end: z.ZodOptional>; startExclusive: z.ZodOptional; endExclusive: z.ZodOptional; }, z.core.$strip>>; endedAt: z.ZodOptional>; end: z.ZodOptional>; startExclusive: z.ZodOptional; endExclusive: z.ZodOptional; }, z.core.$strip>>; spanType: z.ZodOptional>; traceId: z.ZodOptional; }, z.core.$strip>>; pagination: z.ZodOptional>>; perPage: z.ZodDefault>>; }, z.core.$strip>>; orderBy: z.ZodOptional>; direction: z.ZodDefault>; }, z.core.$strip>>; after: z.ZodOptional; limit: z.ZodOptional>; }, z.core.$strict>, z.ZodTransform<{ mode: "page" | "delta"; filters: { status?: TraceStatus | undefined; metadata?: Record | null | undefined; tags?: string[] | null | undefined; source?: string | null | undefined; entityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined; entityId?: string | null | undefined; entityName?: string | null | undefined; parentEntityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined; parentEntityId?: string | null | undefined; parentEntityName?: string | null | undefined; rootEntityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined; rootEntityId?: string | null | undefined; rootEntityName?: string | null | undefined; userId?: string | null | undefined; organizationId?: string | null | undefined; resourceId?: string | null | undefined; runId?: string | null | undefined; sessionId?: string | null | undefined; threadId?: string | null | undefined; requestId?: string | null | undefined; environment?: string | null | undefined; serviceName?: string | null | undefined; scope?: Record | null | undefined; entityVersionId?: string | null | undefined; parentEntityVersionId?: string | null | undefined; rootEntityVersionId?: string | null | undefined; experimentId?: string | null | undefined; startedAt?: { start?: Date | undefined; end?: Date | undefined; startExclusive?: boolean | undefined; endExclusive?: boolean | undefined; } | undefined; endedAt?: { start?: Date | undefined; end?: Date | undefined; startExclusive?: boolean | undefined; endExclusive?: boolean | undefined; } | undefined; spanType?: SpanType | undefined; traceId?: string | undefined; } | undefined; pagination: { page: number; perPage: number; }; orderBy: { field: "startedAt" | "endedAt"; direction: "ASC" | "DESC"; }; after: import("../../../_types/@internal_core/dist/storage/index.d.ts").DeltaCursor | undefined; limit: number; }, { mode?: "page" | "delta" | undefined; filters?: { status?: TraceStatus | undefined; metadata?: Record | null | undefined; tags?: string[] | null | undefined; source?: string | null | undefined; entityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined; entityId?: string | null | undefined; entityName?: string | null | undefined; parentEntityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined; parentEntityId?: string | null | undefined; parentEntityName?: string | null | undefined; rootEntityType?: import("../../../_types/@internal_core/dist/storage/index.d.ts").EntityType | null | undefined; rootEntityId?: string | null | undefined; rootEntityName?: string | null | undefined; userId?: string | null | undefined; organizationId?: string | null | undefined; resourceId?: string | null | undefined; runId?: string | null | undefined; sessionId?: string | null | undefined; threadId?: string | null | undefined; requestId?: string | null | undefined; environment?: string | null | undefined; serviceName?: string | null | undefined; scope?: Record | null | undefined; entityVersionId?: string | null | undefined; parentEntityVersionId?: string | null | undefined; rootEntityVersionId?: string | null | undefined; experimentId?: string | null | undefined; startedAt?: { start?: Date | undefined; end?: Date | undefined; startExclusive?: boolean | undefined; endExclusive?: boolean | undefined; } | undefined; endedAt?: { start?: Date | undefined; end?: Date | undefined; startExclusive?: boolean | undefined; endExclusive?: boolean | undefined; } | undefined; spanType?: SpanType | undefined; traceId?: string | undefined; } | undefined; pagination?: { page: number; perPage: number; } | undefined; orderBy?: { field: "startedAt" | "endedAt"; direction: "ASC" | "DESC"; } | undefined; after?: string | undefined; limit?: number | undefined; }>>; /** Arguments for listing branches with optional filters, pagination, and ordering */ export type ListBranchesArgs = z.input; /** * Schema for listBranches operation response. Each row is a single branch * anchor span -- repeated runs of the same entity within one parent trace * surface as separate rows. */ export declare const listBranchesResponseSchema: z.ZodObject<{ pagination: z.ZodOptional]>; hasMore: z.ZodBoolean; }, z.core.$strip>>; delta: z.ZodOptional>; deltaCursor: z.ZodOptional; branches: z.ZodArray; experimentId: z.ZodOptional>; attributes: z.ZodOptional>>; links: z.ZodOptional>>; input: z.ZodOptional>; output: z.ZodOptional>; error: z.ZodOptional>; endedAt: z.ZodOptional>; requestContext: z.ZodOptional>>; metadata: z.ZodOptional>>; tags: z.ZodOptional>>; source: z.ZodOptional>; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; name: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; traceId: z.ZodString; spanId: z.ZodString; status: z.ZodEnum; }, z.core.$strip>>; }, z.core.$strip>; /** Response containing paginated branch anchor spans with computed status. Branch delta mode returns only new branch rows. */ export type ListBranchesResponse = z.infer; /** * Schema for updating a span (without db timestamps and span IDs) */ export declare const updateSpanRecordSchema: z.ZodObject<{ error: z.ZodOptional>; attributes: z.ZodOptional>>; requestContext: z.ZodOptional>>; name: z.ZodString; entityType: z.ZodOptional>>; entityId: z.ZodOptional>; entityName: z.ZodOptional>; input: z.ZodOptional>; metadata: z.ZodOptional>>; output: z.ZodOptional>; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; experimentId: z.ZodOptional>; links: z.ZodOptional>>; endedAt: z.ZodOptional>; tags: z.ZodOptional>>; source: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityId: z.ZodOptional>; parentEntityName: z.ZodOptional>; rootEntityType: z.ZodOptional>>; rootEntityId: z.ZodOptional>; rootEntityName: z.ZodOptional>; userId: z.ZodOptional>; organizationId: z.ZodOptional>; resourceId: z.ZodOptional>; runId: z.ZodOptional>; sessionId: z.ZodOptional>; threadId: z.ZodOptional>; requestId: z.ZodOptional>; environment: z.ZodOptional>; serviceName: z.ZodOptional>; scope: z.ZodOptional>>; entityVersionId: z.ZodOptional>; parentEntityVersionId: z.ZodOptional>; rootEntityVersionId: z.ZodOptional>; }, z.core.$strip>; /** Partial span data for updates (excludes db timestamps and span IDs) */ export type UpdateSpanRecord = z.infer; /** * Schema for updateSpan operation arguments */ export declare const updateSpanArgsSchema: z.ZodObject<{ spanId: z.ZodString; traceId: z.ZodString; updates: z.ZodObject<{ error: z.ZodOptional>>; attributes: z.ZodOptional>>>; requestContext: z.ZodOptional>>>; name: z.ZodOptional; entityType: z.ZodOptional>>>; entityId: z.ZodOptional>>; entityName: z.ZodOptional>>; input: z.ZodOptional>>; metadata: z.ZodOptional>>>; output: z.ZodOptional>>; spanType: z.ZodOptional>; isEvent: z.ZodOptional; startedAt: z.ZodOptional; parentSpanId: z.ZodOptional>>; experimentId: z.ZodOptional>>; links: z.ZodOptional>>>; endedAt: z.ZodOptional>>; tags: z.ZodOptional>>>; source: z.ZodOptional>>; parentEntityType: z.ZodOptional>>>; parentEntityId: z.ZodOptional>>; parentEntityName: z.ZodOptional>>; rootEntityType: z.ZodOptional>>>; rootEntityId: z.ZodOptional>>; rootEntityName: z.ZodOptional>>; userId: z.ZodOptional>>; organizationId: z.ZodOptional>>; resourceId: z.ZodOptional>>; runId: z.ZodOptional>>; sessionId: z.ZodOptional>>; threadId: z.ZodOptional>>; requestId: z.ZodOptional>>; environment: z.ZodOptional>>; serviceName: z.ZodOptional>>; scope: z.ZodOptional>>>; entityVersionId: z.ZodOptional>>; parentEntityVersionId: z.ZodOptional>>; rootEntityVersionId: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>; /** Arguments for updating a single span */ export type UpdateSpanArgs = z.infer; /** * Schema for batchUpdateSpans operation arguments */ export declare const batchUpdateSpansArgsSchema: z.ZodObject<{ records: z.ZodArray>>; attributes: z.ZodOptional>>>; requestContext: z.ZodOptional>>>; name: z.ZodOptional; entityType: z.ZodOptional>>>; entityId: z.ZodOptional>>; entityName: z.ZodOptional>>; input: z.ZodOptional>>; metadata: z.ZodOptional>>>; output: z.ZodOptional>>; spanType: z.ZodOptional>; isEvent: z.ZodOptional; startedAt: z.ZodOptional; parentSpanId: z.ZodOptional>>; experimentId: z.ZodOptional>>; links: z.ZodOptional>>>; endedAt: z.ZodOptional>>; tags: z.ZodOptional>>>; source: z.ZodOptional>>; parentEntityType: z.ZodOptional>>>; parentEntityId: z.ZodOptional>>; parentEntityName: z.ZodOptional>>; rootEntityType: z.ZodOptional>>>; rootEntityId: z.ZodOptional>>; rootEntityName: z.ZodOptional>>; userId: z.ZodOptional>>; organizationId: z.ZodOptional>>; resourceId: z.ZodOptional>>; runId: z.ZodOptional>>; sessionId: z.ZodOptional>>; threadId: z.ZodOptional>>; requestId: z.ZodOptional>>; environment: z.ZodOptional>>; serviceName: z.ZodOptional>>; scope: z.ZodOptional>>>; entityVersionId: z.ZodOptional>>; parentEntityVersionId: z.ZodOptional>>; rootEntityVersionId: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>>; }, z.core.$strip>; /** Arguments for batch updating multiple spans */ export type BatchUpdateSpansArgs = z.infer; /** * Schema for batchDeleteTraces operation arguments */ export declare const batchDeleteTracesArgsSchema: z.ZodObject<{ traceIds: z.ZodArray; }, z.core.$strip>; /** Arguments for batch deleting multiple traces */ export type BatchDeleteTracesArgs = z.infer; /** Schema for listScoresBySpan operation response */ export declare const listScoresBySpanResponseSchema: z.ZodObject<{ pagination: z.ZodObject<{ total: z.ZodNumber; page: z.ZodNumber; perPage: z.ZodUnion]>; hasMore: z.ZodBoolean; }, z.core.$strip>; scores: z.ZodArray; id: z.ZodString; scorerId: z.ZodString; entityId: z.ZodString; runId: z.ZodString; input: z.ZodOptional; output: z.ZodUnknown; additionalContext: z.ZodOptional>; requestContext: z.ZodOptional>; extractStepResult: z.ZodOptional>; extractPrompt: z.ZodOptional; score: z.ZodNumber; analyzeStepResult: z.ZodOptional>; analyzePrompt: z.ZodOptional; reason: z.ZodOptional; reasonPrompt: z.ZodOptional; scorer: z.ZodRecord; metadata: z.ZodOptional>; source: z.ZodEnum<{ LIVE: "LIVE"; TEST: "TEST"; }>; entity: z.ZodRecord; entityType: z.ZodOptional>; structuredOutput: z.ZodOptional; traceId: z.ZodOptional; spanId: z.ZodOptional; resourceId: z.ZodOptional; threadId: z.ZodOptional; preprocessStepResult: z.ZodOptional>; preprocessPrompt: z.ZodOptional; generateScorePrompt: z.ZodOptional; generateReasonPrompt: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; /** Schema for scoreTraces operation request */ export declare const scoreTracesRequestSchema: z.ZodObject<{ scorerName: z.ZodString; targets: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>; /** Request to score traces using a specific scorer */ export type ScoreTracesRequest = z.infer; /** Schema for scoreTraces operation response */ export declare const scoreTracesResponseSchema: z.ZodObject<{ status: z.ZodString; message: z.ZodString; traceCount: z.ZodNumber; }, z.core.$strip>; /** Response from scoring traces */ export type ScoreTracesResponse = z.infer; //# sourceMappingURL=tracing.d.ts.map