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: SpanRecord): 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>; runId: z.ZodOptional>; requestContext: z.ZodOptional>>; input: z.ZodOptional>; source: z.ZodOptional>; threadId: z.ZodOptional>; resourceId: z.ZodOptional>; output: z.ZodOptional>; metadata: z.ZodOptional>>; name: z.ZodString; traceId: z.ZodString; spanId: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; experimentId: z.ZodOptional>; attributes: z.ZodOptional>>; links: z.ZodOptional>>; endedAt: z.ZodOptional>; tags: 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>; sessionId: 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>; runId: z.ZodOptional>; requestContext: z.ZodOptional>>; input: z.ZodOptional>; source: z.ZodOptional>; threadId: z.ZodOptional>; resourceId: z.ZodOptional>; output: z.ZodOptional>; metadata: z.ZodOptional>>; name: z.ZodString; traceId: z.ZodString; spanId: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; experimentId: z.ZodOptional>; attributes: z.ZodOptional>>; links: z.ZodOptional>>; endedAt: z.ZodOptional>; tags: 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>; sessionId: 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>; runId: z.ZodOptional>; requestContext: z.ZodOptional>>; input: z.ZodOptional>; source: z.ZodOptional>; threadId: z.ZodOptional>; resourceId: z.ZodOptional>; output: z.ZodOptional>; metadata: z.ZodOptional>>; name: z.ZodString; traceId: z.ZodString; spanId: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; experimentId: z.ZodOptional>; attributes: z.ZodOptional>>; links: z.ZodOptional>>; endedAt: z.ZodOptional>; tags: 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>; sessionId: 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 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 filtering traces in list queries */ export declare const tracesFilterSchema: z.ZodObject<{ status: z.ZodOptional>; hasChildError: z.ZodOptional, z.ZodBoolean>>; 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>; }, 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.ZodObject<{ filters: z.ZodOptional>; hasChildError: z.ZodOptional, z.ZodBoolean>>; 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>; }, z.core.$strip>>; pagination: z.ZodDefault>>; perPage: z.ZodDefault>>; }, z.core.$strip>>; orderBy: z.ZodDefault>; direction: z.ZodDefault>; }, z.core.$strip>>; }, z.core.$strip>; /** 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.ZodObject<{ total: z.ZodNumber; page: z.ZodNumber; perPage: z.ZodUnion]>; hasMore: z.ZodBoolean; }, z.core.$strip>; 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 */ export type ListTracesResponse = z.infer; /** * Schema for updating a span (without db timestamps and span IDs) */ export declare const updateSpanRecordSchema: z.ZodObject<{ error: z.ZodOptional>; runId: z.ZodOptional>; requestContext: z.ZodOptional>>; input: z.ZodOptional>; source: z.ZodOptional>; threadId: z.ZodOptional>; resourceId: z.ZodOptional>; output: z.ZodOptional>; metadata: z.ZodOptional>>; name: z.ZodString; spanType: z.ZodEnum; isEvent: z.ZodBoolean; startedAt: z.ZodDate; parentSpanId: z.ZodOptional>; experimentId: z.ZodOptional>; attributes: z.ZodOptional>>; links: z.ZodOptional>>; endedAt: z.ZodOptional>; tags: 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>; sessionId: 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>>; runId: z.ZodOptional>>; requestContext: z.ZodOptional>>>; input: z.ZodOptional>>; source: z.ZodOptional>>; threadId: z.ZodOptional>>; resourceId: z.ZodOptional>>; output: z.ZodOptional>>; metadata: z.ZodOptional>>>; name: z.ZodOptional; spanType: z.ZodOptional>; isEvent: z.ZodOptional; startedAt: z.ZodOptional; parentSpanId: z.ZodOptional>>; experimentId: z.ZodOptional>>; attributes: z.ZodOptional>>>; links: z.ZodOptional>>>; endedAt: z.ZodOptional>>; tags: 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>>; sessionId: 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>>; runId: z.ZodOptional>>; requestContext: z.ZodOptional>>>; input: z.ZodOptional>>; source: z.ZodOptional>>; threadId: z.ZodOptional>>; resourceId: z.ZodOptional>>; output: z.ZodOptional>>; metadata: z.ZodOptional>>>; name: z.ZodOptional; spanType: z.ZodOptional>; isEvent: z.ZodOptional; startedAt: z.ZodOptional; parentSpanId: z.ZodOptional>>; experimentId: z.ZodOptional>>; attributes: z.ZodOptional>>>; links: z.ZodOptional>>>; endedAt: z.ZodOptional>>; tags: 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>>; sessionId: 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