UNPKG

@mastra/core

Version:
6,924 lines • 394 kB
import { z } from 'zod/v4';
import type { FilterNode } from '../saved-views/filter-node.js';
/**
 * Stored definition of a custom dashboard: rows of widgets on a 12-column grid, each widget
 * describing its own queries and presentation.
 *
 * Queries reuse the observability request schemas minus what the page supplies at run time: the
 * time range always, and `interval` for time series (the renderer derives it from the range).
 * The page's filters are intersected with each query's own: `where` is ANDed, and a metrics or scores
 * filter field set by both must agree (arrays intersect). A contradiction yields no data.
 *
 * Core owns the common widget shape and the query sources. A widget's `kind` is any non-empty string
 * and `options` stay opaque here: each kind validates its own options where it renders, so a new kind
 * needs no core change or storage deploy. A new query source is one more entry in the `source` union.
 *
 * Two schemas share the same limits:
 * - `dashboardDefinitionSchema` validates everything; the renderer parses with it.
 * - `dashboardDefinitionEnvelopeSchema` validates only what storage needs (version, limits, unique
 *   widget ids, every widget has `kind` and `views`), so new widget kinds or query fields don't
 *   require the storing service to upgrade.
 */
/** Every version storage accepts; `migrateDashboardDefinition` upgrades each to the current one. */
export declare const DASHBOARD_SCHEMA_VERSIONS: readonly [1];
export declare const DASHBOARD_SCHEMA_VERSION = 1;
export declare const DASHBOARD_MAX_WIDGETS = 20;
export declare const DASHBOARD_MAX_QUERIES_PER_VIEW = 8;
/** Limit on the UTF-8 size of the JSON-serialized definition. */
export declare const DASHBOARD_MAX_BYTES: number;
export declare const DASHBOARD_WIDGET_SPANS: readonly [1, 2, 3, 4, 6, 12];
/** Kinds the built-in renderer ships. Not enforced: `kind` accepts any non-empty string. */
export declare const DASHBOARD_WIDGET_KINDS: readonly ['kpis', 'table', 'timeseries', 'scores'];
export declare const DASHBOARD_SCOPES: readonly ['org', 'project'];
export declare const DASHBOARD_DRILLDOWN_PAGES: readonly ['traces', 'spans', 'logs', 'threads'];
declare const dashboardQueryUnionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    where: z.ZodOptional<z.ZodType<import("../..").TraceQueryPredicate, import("../..").TraceQueryPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryPredicate, import("../..").TraceQueryPredicate>>>;
    groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
    interval: z.ZodOptional<z.ZodEnum<{
        "15m": "15m";
        "1d": "1d";
        "1h": "1h";
        "1m": "1m";
        "5m": "5m";
    }>>;
    measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
        "cost.avg": "cost.avg";
        "cost.sum": "cost.sum";
        count: "count";
        "duration.avg": "duration.avg";
        "duration.max": "duration.max";
        "duration.min": "duration.min";
        "duration.p50": "duration.p50";
        "duration.p90": "duration.p90";
        "duration.p95": "duration.p95";
        "duration.p99": "duration.p99";
        errorCount: "errorCount";
        errorRate: "errorRate";
        "timeToFirstChunk.avg": "timeToFirstChunk.avg";
        "timeToFirstChunk.count": "timeToFirstChunk.count";
        "timeToFirstChunk.max": "timeToFirstChunk.max";
        "timeToFirstChunk.min": "timeToFirstChunk.min";
        "timeToFirstChunk.p50": "timeToFirstChunk.p50";
        "timeToFirstChunk.p90": "timeToFirstChunk.p90";
        "timeToFirstChunk.p95": "timeToFirstChunk.p95";
        "timeToFirstChunk.p99": "timeToFirstChunk.p99";
        "timeToFirstToken.avg": "timeToFirstToken.avg";
        "timeToFirstToken.count": "timeToFirstToken.count";
        "timeToFirstToken.max": "timeToFirstToken.max";
        "timeToFirstToken.min": "timeToFirstToken.min";
        "timeToFirstToken.p50": "timeToFirstToken.p50";
        "timeToFirstToken.p90": "timeToFirstToken.p90";
        "timeToFirstToken.p95": "timeToFirstToken.p95";
        "timeToFirstToken.p99": "timeToFirstToken.p99";
        "tokens.cached.avg": "tokens.cached.avg";
        "tokens.cached.sum": "tokens.cached.sum";
        "tokens.input.avg": "tokens.input.avg";
        "tokens.input.sum": "tokens.input.sum";
        "tokens.output.avg": "tokens.output.avg";
        "tokens.output.sum": "tokens.output.sum";
        "tokens.reasoning.avg": "tokens.reasoning.avg";
        "tokens.reasoning.sum": "tokens.reasoning.sum";
        "tokens.total.avg": "tokens.total.avg";
        "tokens.total.sum": "tokens.total.sum";
    }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
    having: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
    orderBy: z.ZodDefault<z.ZodObject<{
        field: z.ZodString;
        direction: z.ZodEnum<{
            asc: "asc";
            desc: "desc";
        }>;
    }, z.core.$strict>>;
    limit: z.ZodDefault<z.ZodNumber>;
    source: z.ZodLiteral<"traceAggregate">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
}, z.core.$strict>, z.ZodObject<{
    where: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
    groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
    interval: z.ZodOptional<z.ZodEnum<{
        "15m": "15m";
        "1d": "1d";
        "1h": "1h";
        "1m": "1m";
        "5m": "5m";
    }>>;
    measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
        "cost.avg": "cost.avg";
        "cost.sum": "cost.sum";
        count: "count";
        "duration.avg": "duration.avg";
        "duration.max": "duration.max";
        "duration.min": "duration.min";
        "duration.p50": "duration.p50";
        "duration.p90": "duration.p90";
        "duration.p95": "duration.p95";
        "duration.p99": "duration.p99";
        errorCount: "errorCount";
        errorRate: "errorRate";
        "timeToFirstChunk.avg": "timeToFirstChunk.avg";
        "timeToFirstChunk.count": "timeToFirstChunk.count";
        "timeToFirstChunk.max": "timeToFirstChunk.max";
        "timeToFirstChunk.min": "timeToFirstChunk.min";
        "timeToFirstChunk.p50": "timeToFirstChunk.p50";
        "timeToFirstChunk.p90": "timeToFirstChunk.p90";
        "timeToFirstChunk.p95": "timeToFirstChunk.p95";
        "timeToFirstChunk.p99": "timeToFirstChunk.p99";
        "timeToFirstToken.avg": "timeToFirstToken.avg";
        "timeToFirstToken.count": "timeToFirstToken.count";
        "timeToFirstToken.max": "timeToFirstToken.max";
        "timeToFirstToken.min": "timeToFirstToken.min";
        "timeToFirstToken.p50": "timeToFirstToken.p50";
        "timeToFirstToken.p90": "timeToFirstToken.p90";
        "timeToFirstToken.p95": "timeToFirstToken.p95";
        "timeToFirstToken.p99": "timeToFirstToken.p99";
        "tokens.cached.avg": "tokens.cached.avg";
        "tokens.cached.sum": "tokens.cached.sum";
        "tokens.input.avg": "tokens.input.avg";
        "tokens.input.sum": "tokens.input.sum";
        "tokens.output.avg": "tokens.output.avg";
        "tokens.output.sum": "tokens.output.sum";
        "tokens.reasoning.avg": "tokens.reasoning.avg";
        "tokens.reasoning.sum": "tokens.reasoning.sum";
        "tokens.total.avg": "tokens.total.avg";
        "tokens.total.sum": "tokens.total.sum";
    }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
    having: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
    orderBy: z.ZodDefault<z.ZodObject<{
        field: z.ZodString;
        direction: z.ZodEnum<{
            asc: "asc";
            desc: "desc";
        }>;
    }, z.core.$strict>>;
    limit: z.ZodDefault<z.ZodNumber>;
    source: z.ZodLiteral<"spanAggregate">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
    name: z.ZodArray<z.ZodString>;
    aggregation: z.ZodEnum<{
        avg: "avg";
        count: "count";
        count_distinct: "count_distinct";
        last: "last";
        max: "max";
        min: "min";
        sum: "sum";
    }>;
    distinctColumn: z.ZodOptional<z.ZodEnum<{
        entityName: "entityName";
        entityType: "entityType";
        environment: "environment";
        executionSource: "executionSource";
        model: "model";
        name: "name";
        parentEntityName: "parentEntityName";
        parentEntityType: "parentEntityType";
        provider: "provider";
        resourceId: "resourceId";
        rootEntityName: "rootEntityName";
        rootEntityType: "rootEntityType";
        serviceName: "serviceName";
        threadId: "threadId";
    }>>;
    source: z.ZodLiteral<"metrics">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    request: z.ZodLiteral<"aggregate">;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
        source: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
        model: z.ZodOptional<z.ZodString>;
        costUnit: z.ZodOptional<z.ZodString>;
        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    name: z.ZodArray<z.ZodString>;
    groupBy: z.ZodArray<z.ZodString>;
    aggregation: z.ZodEnum<{
        avg: "avg";
        count: "count";
        count_distinct: "count_distinct";
        last: "last";
        max: "max";
        min: "min";
        sum: "sum";
    }>;
    distinctColumn: z.ZodOptional<z.ZodEnum<{
        entityName: "entityName";
        entityType: "entityType";
        environment: "environment";
        executionSource: "executionSource";
        model: "model";
        name: "name";
        parentEntityName: "parentEntityName";
        parentEntityType: "parentEntityType";
        provider: "provider";
        resourceId: "resourceId";
        rootEntityName: "rootEntityName";
        rootEntityType: "rootEntityType";
        serviceName: "serviceName";
        threadId: "threadId";
    }>>;
    limit: z.ZodOptional<z.ZodNumber>;
    orderDirection: z.ZodOptional<z.ZodEnum<{
        ASC: "ASC";
        DESC: "DESC";
    }>>;
    source: z.ZodLiteral<"metrics">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    request: z.ZodLiteral<"breakdown">;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
        source: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
        model: z.ZodOptional<z.ZodString>;
        costUnit: z.ZodOptional<z.ZodString>;
        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    name: z.ZodArray<z.ZodString>;
    aggregation: z.ZodEnum<{
        avg: "avg";
        count: "count";
        count_distinct: "count_distinct";
        last: "last";
        max: "max";
        min: "min";
        sum: "sum";
    }>;
    distinctColumn: z.ZodOptional<z.ZodEnum<{
        entityName: "entityName";
        entityType: "entityType";
        environment: "environment";
        executionSource: "executionSource";
        model: "model";
        name: "name";
        parentEntityName: "parentEntityName";
        parentEntityType: "parentEntityType";
        provider: "provider";
        resourceId: "resourceId";
        rootEntityName: "rootEntityName";
        rootEntityType: "rootEntityType";
        serviceName: "serviceName";
        threadId: "threadId";
    }>>;
    groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
    source: z.ZodLiteral<"metrics">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    request: z.ZodLiteral<"timeSeries">;
    interval: z.ZodOptional<z.ZodEnum<{
        "15m": "15m";
        "1d": "1d";
        "1h": "1h";
        "1m": "1m";
        "5m": "5m";
    }>>;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
        source: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
        model: z.ZodOptional<z.ZodString>;
        costUnit: z.ZodOptional<z.ZodString>;
        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    name: z.ZodString;
    percentiles: z.ZodArray<z.ZodNumber>;
    source: z.ZodLiteral<"metrics">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    request: z.ZodLiteral<"percentiles">;
    interval: z.ZodOptional<z.ZodEnum<{
        "15m": "15m";
        "1d": "1d";
        "1h": "1h";
        "1m": "1m";
        "5m": "5m";
    }>>;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
        source: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
        model: z.ZodOptional<z.ZodString>;
        costUnit: z.ZodOptional<z.ZodString>;
        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    }, z.core.$strict>>;
}, z.core.$strict>], "request">, z.ZodDiscriminatedUnion<[z.ZodObject<{
    scoreSource: z.ZodOptional<z.ZodString>;
    aggregation: z.ZodEnum<{
        avg: "avg";
        count: "count";
        count_distinct: "count_distinct";
        last: "last";
        max: "max";
        min: "min";
        sum: "sum";
    }>;
    source: z.ZodLiteral<"scores">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    scorerId: z.ZodOptional<z.ZodString>;
    request: z.ZodLiteral<"aggregate">;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
        scoreSource: z.ZodOptional<z.ZodString>;
        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        source: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    scoreSource: z.ZodOptional<z.ZodString>;
    groupBy: z.ZodArray<z.ZodString>;
    aggregation: z.ZodEnum<{
        avg: "avg";
        count: "count";
        count_distinct: "count_distinct";
        last: "last";
        max: "max";
        min: "min";
        sum: "sum";
    }>;
    source: z.ZodLiteral<"scores">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    scorerId: z.ZodOptional<z.ZodString>;
    request: z.ZodLiteral<"breakdown">;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
        scoreSource: z.ZodOptional<z.ZodString>;
        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        source: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    scoreSource: z.ZodOptional<z.ZodString>;
    aggregation: z.ZodEnum<{
        avg: "avg";
        count: "count";
        count_distinct: "count_distinct";
        last: "last";
        max: "max";
        min: "min";
        sum: "sum";
    }>;
    groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
    source: z.ZodLiteral<"scores">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    scorerId: z.ZodOptional<z.ZodString>;
    request: z.ZodLiteral<"timeSeries">;
    interval: z.ZodOptional<z.ZodEnum<{
        "15m": "15m";
        "1d": "1d";
        "1h": "1h";
        "1m": "1m";
        "5m": "5m";
    }>>;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
        scoreSource: z.ZodOptional<z.ZodString>;
        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        source: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    scoreSource: z.ZodOptional<z.ZodString>;
    percentiles: z.ZodArray<z.ZodNumber>;
    source: z.ZodLiteral<"scores">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    scorerId: z.ZodOptional<z.ZodString>;
    request: z.ZodLiteral<"percentiles">;
    interval: z.ZodOptional<z.ZodEnum<{
        "15m": "15m";
        "1d": "1d";
        "1h": "1h";
        "1m": "1m";
        "5m": "5m";
    }>>;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
        scoreSource: z.ZodOptional<z.ZodString>;
        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        source: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>], "request">], "source">;
export declare const dashboardQuerySchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
    where: z.ZodOptional<z.ZodType<import("../..").TraceQueryPredicate, import("../..").TraceQueryPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryPredicate, import("../..").TraceQueryPredicate>>>;
    groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
    interval: z.ZodOptional<z.ZodEnum<{
        "15m": "15m";
        "1d": "1d";
        "1h": "1h";
        "1m": "1m";
        "5m": "5m";
    }>>;
    measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
        "cost.avg": "cost.avg";
        "cost.sum": "cost.sum";
        count: "count";
        "duration.avg": "duration.avg";
        "duration.max": "duration.max";
        "duration.min": "duration.min";
        "duration.p50": "duration.p50";
        "duration.p90": "duration.p90";
        "duration.p95": "duration.p95";
        "duration.p99": "duration.p99";
        errorCount: "errorCount";
        errorRate: "errorRate";
        "timeToFirstChunk.avg": "timeToFirstChunk.avg";
        "timeToFirstChunk.count": "timeToFirstChunk.count";
        "timeToFirstChunk.max": "timeToFirstChunk.max";
        "timeToFirstChunk.min": "timeToFirstChunk.min";
        "timeToFirstChunk.p50": "timeToFirstChunk.p50";
        "timeToFirstChunk.p90": "timeToFirstChunk.p90";
        "timeToFirstChunk.p95": "timeToFirstChunk.p95";
        "timeToFirstChunk.p99": "timeToFirstChunk.p99";
        "timeToFirstToken.avg": "timeToFirstToken.avg";
        "timeToFirstToken.count": "timeToFirstToken.count";
        "timeToFirstToken.max": "timeToFirstToken.max";
        "timeToFirstToken.min": "timeToFirstToken.min";
        "timeToFirstToken.p50": "timeToFirstToken.p50";
        "timeToFirstToken.p90": "timeToFirstToken.p90";
        "timeToFirstToken.p95": "timeToFirstToken.p95";
        "timeToFirstToken.p99": "timeToFirstToken.p99";
        "tokens.cached.avg": "tokens.cached.avg";
        "tokens.cached.sum": "tokens.cached.sum";
        "tokens.input.avg": "tokens.input.avg";
        "tokens.input.sum": "tokens.input.sum";
        "tokens.output.avg": "tokens.output.avg";
        "tokens.output.sum": "tokens.output.sum";
        "tokens.reasoning.avg": "tokens.reasoning.avg";
        "tokens.reasoning.sum": "tokens.reasoning.sum";
        "tokens.total.avg": "tokens.total.avg";
        "tokens.total.sum": "tokens.total.sum";
    }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
    having: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
    orderBy: z.ZodDefault<z.ZodObject<{
        field: z.ZodString;
        direction: z.ZodEnum<{
            asc: "asc";
            desc: "desc";
        }>;
    }, z.core.$strict>>;
    limit: z.ZodDefault<z.ZodNumber>;
    source: z.ZodLiteral<"traceAggregate">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
}, z.core.$strict>, z.ZodObject<{
    where: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
    groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
    interval: z.ZodOptional<z.ZodEnum<{
        "15m": "15m";
        "1d": "1d";
        "1h": "1h";
        "1m": "1m";
        "5m": "5m";
    }>>;
    measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
        "cost.avg": "cost.avg";
        "cost.sum": "cost.sum";
        count: "count";
        "duration.avg": "duration.avg";
        "duration.max": "duration.max";
        "duration.min": "duration.min";
        "duration.p50": "duration.p50";
        "duration.p90": "duration.p90";
        "duration.p95": "duration.p95";
        "duration.p99": "duration.p99";
        errorCount: "errorCount";
        errorRate: "errorRate";
        "timeToFirstChunk.avg": "timeToFirstChunk.avg";
        "timeToFirstChunk.count": "timeToFirstChunk.count";
        "timeToFirstChunk.max": "timeToFirstChunk.max";
        "timeToFirstChunk.min": "timeToFirstChunk.min";
        "timeToFirstChunk.p50": "timeToFirstChunk.p50";
        "timeToFirstChunk.p90": "timeToFirstChunk.p90";
        "timeToFirstChunk.p95": "timeToFirstChunk.p95";
        "timeToFirstChunk.p99": "timeToFirstChunk.p99";
        "timeToFirstToken.avg": "timeToFirstToken.avg";
        "timeToFirstToken.count": "timeToFirstToken.count";
        "timeToFirstToken.max": "timeToFirstToken.max";
        "timeToFirstToken.min": "timeToFirstToken.min";
        "timeToFirstToken.p50": "timeToFirstToken.p50";
        "timeToFirstToken.p90": "timeToFirstToken.p90";
        "timeToFirstToken.p95": "timeToFirstToken.p95";
        "timeToFirstToken.p99": "timeToFirstToken.p99";
        "tokens.cached.avg": "tokens.cached.avg";
        "tokens.cached.sum": "tokens.cached.sum";
        "tokens.input.avg": "tokens.input.avg";
        "tokens.input.sum": "tokens.input.sum";
        "tokens.output.avg": "tokens.output.avg";
        "tokens.output.sum": "tokens.output.sum";
        "tokens.reasoning.avg": "tokens.reasoning.avg";
        "tokens.reasoning.sum": "tokens.reasoning.sum";
        "tokens.total.avg": "tokens.total.avg";
        "tokens.total.sum": "tokens.total.sum";
    }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
    having: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
    orderBy: z.ZodDefault<z.ZodObject<{
        field: z.ZodString;
        direction: z.ZodEnum<{
            asc: "asc";
            desc: "desc";
        }>;
    }, z.core.$strict>>;
    limit: z.ZodDefault<z.ZodNumber>;
    source: z.ZodLiteral<"spanAggregate">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
    name: z.ZodArray<z.ZodString>;
    aggregation: z.ZodEnum<{
        avg: "avg";
        count: "count";
        count_distinct: "count_distinct";
        last: "last";
        max: "max";
        min: "min";
        sum: "sum";
    }>;
    distinctColumn: z.ZodOptional<z.ZodEnum<{
        entityName: "entityName";
        entityType: "entityType";
        environment: "environment";
        executionSource: "executionSource";
        model: "model";
        name: "name";
        parentEntityName: "parentEntityName";
        parentEntityType: "parentEntityType";
        provider: "provider";
        resourceId: "resourceId";
        rootEntityName: "rootEntityName";
        rootEntityType: "rootEntityType";
        serviceName: "serviceName";
        threadId: "threadId";
    }>>;
    source: z.ZodLiteral<"metrics">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    request: z.ZodLiteral<"aggregate">;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
        source: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
        model: z.ZodOptional<z.ZodString>;
        costUnit: z.ZodOptional<z.ZodString>;
        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    name: z.ZodArray<z.ZodString>;
    groupBy: z.ZodArray<z.ZodString>;
    aggregation: z.ZodEnum<{
        avg: "avg";
        count: "count";
        count_distinct: "count_distinct";
        last: "last";
        max: "max";
        min: "min";
        sum: "sum";
    }>;
    distinctColumn: z.ZodOptional<z.ZodEnum<{
        entityName: "entityName";
        entityType: "entityType";
        environment: "environment";
        executionSource: "executionSource";
        model: "model";
        name: "name";
        parentEntityName: "parentEntityName";
        parentEntityType: "parentEntityType";
        provider: "provider";
        resourceId: "resourceId";
        rootEntityName: "rootEntityName";
        rootEntityType: "rootEntityType";
        serviceName: "serviceName";
        threadId: "threadId";
    }>>;
    limit: z.ZodOptional<z.ZodNumber>;
    orderDirection: z.ZodOptional<z.ZodEnum<{
        ASC: "ASC";
        DESC: "DESC";
    }>>;
    source: z.ZodLiteral<"metrics">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    request: z.ZodLiteral<"breakdown">;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
        source: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
        model: z.ZodOptional<z.ZodString>;
        costUnit: z.ZodOptional<z.ZodString>;
        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    name: z.ZodArray<z.ZodString>;
    aggregation: z.ZodEnum<{
        avg: "avg";
        count: "count";
        count_distinct: "count_distinct";
        last: "last";
        max: "max";
        min: "min";
        sum: "sum";
    }>;
    distinctColumn: z.ZodOptional<z.ZodEnum<{
        entityName: "entityName";
        entityType: "entityType";
        environment: "environment";
        executionSource: "executionSource";
        model: "model";
        name: "name";
        parentEntityName: "parentEntityName";
        parentEntityType: "parentEntityType";
        provider: "provider";
        resourceId: "resourceId";
        rootEntityName: "rootEntityName";
        rootEntityType: "rootEntityType";
        serviceName: "serviceName";
        threadId: "threadId";
    }>>;
    groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
    source: z.ZodLiteral<"metrics">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    request: z.ZodLiteral<"timeSeries">;
    interval: z.ZodOptional<z.ZodEnum<{
        "15m": "15m";
        "1d": "1d";
        "1h": "1h";
        "1m": "1m";
        "5m": "5m";
    }>>;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
        source: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
        model: z.ZodOptional<z.ZodString>;
        costUnit: z.ZodOptional<z.ZodString>;
        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    name: z.ZodString;
    percentiles: z.ZodArray<z.ZodNumber>;
    source: z.ZodLiteral<"metrics">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    request: z.ZodLiteral<"percentiles">;
    interval: z.ZodOptional<z.ZodEnum<{
        "15m": "15m";
        "1d": "1d";
        "1h": "1h";
        "1m": "1m";
        "5m": "5m";
    }>>;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
        source: z.ZodOptional<z.ZodString>;
        provider: z.ZodOptional<z.ZodString>;
        model: z.ZodOptional<z.ZodString>;
        costUnit: z.ZodOptional<z.ZodString>;
        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
    }, z.core.$strict>>;
}, z.core.$strict>], "request">, z.ZodDiscriminatedUnion<[z.ZodObject<{
    scoreSource: z.ZodOptional<z.ZodString>;
    aggregation: z.ZodEnum<{
        avg: "avg";
        count: "count";
        count_distinct: "count_distinct";
        last: "last";
        max: "max";
        min: "min";
        sum: "sum";
    }>;
    source: z.ZodLiteral<"scores">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    scorerId: z.ZodOptional<z.ZodString>;
    request: z.ZodLiteral<"aggregate">;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
        scoreSource: z.ZodOptional<z.ZodString>;
        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        source: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    scoreSource: z.ZodOptional<z.ZodString>;
    groupBy: z.ZodArray<z.ZodString>;
    aggregation: z.ZodEnum<{
        avg: "avg";
        count: "count";
        count_distinct: "count_distinct";
        last: "last";
        max: "max";
        min: "min";
        sum: "sum";
    }>;
    source: z.ZodLiteral<"scores">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    scorerId: z.ZodOptional<z.ZodString>;
    request: z.ZodLiteral<"breakdown">;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
        scoreSource: z.ZodOptional<z.ZodString>;
        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        source: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    scoreSource: z.ZodOptional<z.ZodString>;
    aggregation: z.ZodEnum<{
        avg: "avg";
        count: "count";
        count_distinct: "count_distinct";
        last: "last";
        max: "max";
        min: "min";
        sum: "sum";
    }>;
    groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
    source: z.ZodLiteral<"scores">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    scorerId: z.ZodOptional<z.ZodString>;
    request: z.ZodLiteral<"timeSeries">;
    interval: z.ZodOptional<z.ZodEnum<{
        "15m": "15m";
        "1d": "1d";
        "1h": "1h";
        "1m": "1m";
        "5m": "5m";
    }>>;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
        scoreSource: z.ZodOptional<z.ZodString>;
        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        source: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
    scoreSource: z.ZodOptional<z.ZodString>;
    percentiles: z.ZodArray<z.ZodNumber>;
    source: z.ZodLiteral<"scores">;
    id: z.ZodOptional<z.ZodString>;
    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    scorerId: z.ZodOptional<z.ZodString>;
    request: z.ZodLiteral<"percentiles">;
    interval: z.ZodOptional<z.ZodEnum<{
        "15m": "15m";
        "1d": "1d";
        "1h": "1h";
        "1m": "1m";
        "5m": "5m";
    }>>;
    filters: z.ZodOptional<z.ZodObject<{
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        entityName: z.ZodOptional<z.ZodString>;
        entityVersionId: z.ZodOptional<z.ZodString>;
        parentEntityVersionId: z.ZodOptional<z.ZodString>;
        rootEntityVersionId: z.ZodOptional<z.ZodString>;
        userId: z.ZodOptional<z.ZodString>;
        organizationId: z.ZodOptional<z.ZodString>;
        experimentId: z.ZodOptional<z.ZodString>;
        serviceName: z.ZodOptional<z.ZodString>;
        environment: z.ZodOptional<z.ZodString>;
        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        parentEntityName: z.ZodOptional<z.ZodString>;
        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
        rootEntityName: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        runId: z.ZodOptional<z.ZodString>;
        sessionId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        requestId: z.ZodOptional<z.ZodString>;
        executionSource: z.ZodOptional<z.ZodString>;
        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
        scoreSource: z.ZodOptional<z.ZodString>;
        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        source: z.ZodOptional<z.ZodString>;
    }, z.core.$strict>>;
}, z.core.$strict>], "request">], "source">, {
    name: string[];
    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
    distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
    source: "metrics";
    id?: string | undefined;
    compare?: "previousWindow" | undefined;
    request: "aggregate";
    filters?: {
        traceId?: string | undefined;
        spanId?: string | undefined;
        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        entityName?: string | undefined;
        entityVersionId?: string | undefined;
        parentEntityVersionId?: string | undefined;
        rootEntityVersionId?: string | undefined;
        userId?: string | undefined;
        organizationId?: string | undefined;
        experimentId?: string | undefined;
        serviceName?: string | undefined;
        environment?: string | undefined;
        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        parentEntityName?: string | undefined;
        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        rootEntityName?: string | undefined;
        resourceId?: string | undefined;
        runId?: string | undefined;
        sessionId?: string | undefined;
        threadId?: string | undefined;
        requestId?: string | undefined;
        executionSource?: string | undefined;
        tags?: string[] | undefined;
        traceIds?: string[] | undefined;
        experimentIds?: string[] | undefined;
        name?: string[] | undefined;
        source?: string | undefined;
        provider?: string | undefined;
        model?: string | undefined;
        costUnit?: string | undefined;
        labels?: Record<string, string> | undefined;
    } | undefined;
} | {
    name: string[];
    groupBy: string[];
    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
    distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
    limit?: number | undefined;
    orderDirection?: "ASC" | "DESC" | undefined;
    source: "metrics";
    id?: string | undefined;
    compare?: "previousWindow" | undefined;
    request: "breakdown";
    filters?: {
        traceId?: string | undefined;
        spanId?: string | undefined;
        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        entityName?: string | undefined;
        entityVersionId?: string | undefined;
        parentEntityVersionId?: string | undefined;
        rootEntityVersionId?: string | undefined;
        userId?: string | undefined;
        organizationId?: string | undefined;
        experimentId?: string | undefined;
        serviceName?: string | undefined;
        environment?: string | undefined;
        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        parentEntityName?: string | undefined;
        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        rootEntityName?: string | undefined;
        resourceId?: string | undefined;
        runId?: string | undefined;
        sessionId?: string | undefined;
        threadId?: string | undefined;
        requestId?: string | undefined;
        executionSource?: string | undefined;
        tags?: string[] | undefined;
        traceIds?: string[] | undefined;
        experimentIds?: string[] | undefined;
        name?: string[] | undefined;
        source?: string | undefined;
        provider?: string | undefined;
        model?: string | undefined;
        costUnit?: string | undefined;
        labels?: Record<string, string> | undefined;
    } | undefined;
} | {
    name: string[];
    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
    distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
    groupBy?: string[] | undefined;
    source: "metrics";
    id?: string | undefined;
    compare?: "previousWindow" | undefined;
    request: "timeSeries";
    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
    filters?: {
        traceId?: string | undefined;
        spanId?: string | undefined;
        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        entityName?: string | undefined;
        entityVersionId?: string | undefined;
        parentEntityVersionId?: string | undefined;
        rootEntityVersionId?: string | undefined;
        userId?: string | undefined;
        organizationId?: string | undefined;
        experimentId?: string | undefined;
        serviceName?: string | undefined;
        environment?: string | undefined;
        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        parentEntityName?: string | undefined;
        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        rootEntityName?: string | undefined;
        resourceId?: string | undefined;
        runId?: string | undefined;
        sessionId?: string | undefined;
        threadId?: string | undefined;
        requestId?: string | undefined;
        executionSource?: string | undefined;
        tags?: string[] | undefined;
        traceIds?: string[] | undefined;
        experimentIds?: string[] | undefined;
        name?: string[] | undefined;
        source?: string | undefined;
        provider?: string | undefined;
        model?: string | undefined;
        costUnit?: string | undefined;
        labels?: Record<string, string> | undefined;
    } | undefined;
} | {
    name: string;
    percentiles: number[];
    source: "metrics";
    id?: string | undefined;
    compare?: "previousWindow" | undefined;
    request: "percentiles";
    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
    filters?: {
        traceId?: string | undefined;
        spanId?: string | undefined;
        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        entityName?: string | undefined;
        entityVersionId?: string | undefined;
        parentEntityVersionId?: string | undefined;
        rootEntityVersionId?: string | undefined;
        userId?: string | undefined;
        organizationId?: string | undefined;
        experimentId?: string | undefined;
        serviceName?: string | undefined;
        environment?: string | undefined;
        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        parentEntityName?: string | undefined;
        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        rootEntityName?: string | undefined;
        resourceId?: string | undefined;
        runId?: string | undefined;
        sessionId?: string | undefined;
        threadId?: string | undefined;
        requestId?: string | undefined;
        executionSource?: string | undefined;
        tags?: string[] | undefined;
        traceIds?: string[] | undefined;
        experimentIds?: string[] | undefined;
        name?: string[] | undefined;
        source?: string | undefined;
        provider?: string | undefined;
        model?: string | undefined;
        costUnit?: string | undefined;
        labels?: Record<string, string> | undefined;
    } | undefined;
} | {
    scoreSource?: string | undefined;
    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
    source: "scores";
    id?: string | undefined;
    compare?: "previousWindow" | undefined;
    scorerId?: string | undefined;
    request: "aggregate";
    filters?: {
        traceId?: string | undefined;
        spanId?: string | undefined;
        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        entityName?: string | undefined;
        entityVersionId?: string | undefined;
        parentEntityVersionId?: string | undefined;
        rootEntityVersionId?: string | undefined;
        userId?: string | undefined;
        organizationId?: string | undefined;
        experimentId?: string | undefined;
        serviceName?: string | undefined;
        environment?: string | undefined;
        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        parentEntityName?: string | undefined;
        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        rootEntityName?: string | undefined;
        resourceId?: string | undefined;
        runId?: string | undefined;
        sessionId?: string | undefined;
        threadId?: string | undefined;
        requestId?: string | undefined;
        executionSource?: string | undefined;
        tags?: string[] | undefined;
        scorerId?: string | string[] | undefined;
        scoreSource?: string | undefined;
        metadata?: Record<string, unknown> | null | undefined;
        source?: string | undefined;
    } | undefined;
} | {
    scoreSource?: string | undefined;
    groupBy: string[];
    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
    source: "scores";
    id?: string | undefined;
    compare?: "previousWindow" | undefined;
    scorerId?: string | undefined;
    request: "breakdown";
    filters?: {
        traceId?: string | undefined;
        spanId?: string | undefined;
        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        entityName?: string | undefined;
        entityVersionId?: string | undefined;
        parentEntityVersionId?: string | undefined;
        rootEntityVersionId?: string | undefined;
        userId?: string | undefined;
        organizationId?: string | undefined;
        experimentId?: string | undefined;
        serviceName?: string | undefined;
        environment?: string | undefined;
        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        parentEntityName?: string | undefined;
        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        rootEntityName?: string | undefined;
        resourceId?: string | undefined;
        runId?: string | undefined;
        sessionId?: string | undefined;
        threadId?: string | undefined;
        requestId?: string | undefined;
        executionSource?: string | undefined;
        tags?: string[] | undefined;
        scorerId?: string | string[] | undefined;
        scoreSource?: string | undefined;
        metadata?: Record<string, unknown> | null | undefined;
        source?: string | undefined;
    } | undefined;
} | {
    scoreSource?: string | undefined;
    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
    groupBy?: string[] | undefined;
    source: "scores";
    id?: string | undefined;
    compare?: "previousWindow" | undefined;
    scorerId?: string | undefined;
    request: "timeSeries";
    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
    filters?: {
        traceId?: string | undefined;
        spanId?: string | undefined;
        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        entityName?: string | undefined;
        entityVersionId?: string | undefined;
        parentEntityVersionId?: string | undefined;
        rootEntityVersionId?: string | undefined;
        userId?: string | undefined;
        organizationId?: string | undefined;
        experimentId?: string | undefined;
        serviceName?: string | undefined;
        environment?: string | undefined;
        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        parentEntityName?: string | undefined;
        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        rootEntityName?: string | undefined;
        resourceId?: string | undefined;
        runId?: string | undefined;
        sessionId?: string | undefined;
        threadId?: string | undefined;
        requestId?: string | undefined;
        executionSource?: string | undefined;
        tags?: string[] | undefined;
        scorerId?: string | string[] | undefined;
        scoreSource?: string | undefined;
        metadata?: Record<string, unknown> | null | undefined;
        source?: string | undefined;
    } | undefined;
} | {
    scoreSource?: string | undefined;
    percentiles: number[];
    source: "scores";
    id?: string | undefined;
    compare?: "previousWindow" | undefined;
    scorerId?: string | undefined;
    request: "percentiles";
    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
    filters?: {
        traceId?: string | undefined;
        spanId?: string | undefined;
        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        entityName?: string | undefined;
        entityVersionId?: string | undefined;
        parentEntityVersionId?: string | undefined;
        rootEntityVersionId?: string | undefined;
        userId?: string | undefined;
        organizationId?: string | undefined;
        experimentId?: string | undefined;
        serviceName?: string | undefined;
        environment?: string | undefined;
        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        parentEntityName?: string | undefined;
        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
        rootEntityName?: string | undefined;
        resourceId?: string | undefined;
        runId?: string | undefined;
        sessionId?: string | undefined;
        threadId?: string | undefined;
        requestId?: string | undefined;
        executionSource?: string | undefined;
        tags?: string[] | undefined;
        scorerId?: string | string[] | undefined;
        scoreSource?: string | undefined;
        metadata?: Record<string, unknown> | null | undefined;
        source?: string | undefined;
    } | undefined;
} | {
    where?: import("../..").TraceQueryPredicate | undefined;
    groupBy?: string[] | undefined;
    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
    measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
    having?: import("../..").TraceQueryScalarPredicate | undefined;
    orderBy?: {
        field: string;
        direction: "asc" | "desc";
    } | undefined;
    limit?: number | undefined;
    source: "traceAggregate";
    id?: string | undefined;
    compare?: "previousWindow" | undefined;
} | {
    where?: import("../..").TraceQueryScalarPredicate | undefined;
    groupBy?: string[] | undefined;
    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
    measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
    having?: import("../..").TraceQueryScalarPredicate | undefined;
    orderBy?: {
        field: string;
        direction: "asc" | "desc";
    } | undefined;
    limit?: number | undefined;
    source: "spanAggregate";
    id?: string | undefined;
    compare?: "previousWindow" | undefined;
}>;
/** Deepest nesting of filter groups. Checked before parsing so a deep tree fails instead of overflowing the stack. */
export declare const DASHBOARD_MAX_FILTER_DEPTH = 12;
export declare const dashboardColumnSchema: z.ZodObject<{
    id: z.ZodString;
    label: z.ZodOptional<z.ZodString>;
    scope: z.ZodOptional<z.ZodEnum<{
        org: "org";
        project: "project";
    }>>;
    options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, z.core.$strict>;
export declare const dashboardDrilldownTargetSchema: z.ZodObject<{
    page: z.ZodEnum<{
        logs: "logs";
        spans: "spans";
        threads: "threads";
        traces: "traces";
    }>;
    filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
}, z.core.$strict>;
export declare const dashboardDrilldownSchema: z.ZodObject<{
    action: z.ZodOptional<z.ZodObject<{
        page: z.ZodEnum<{
            logs: "logs";
            spans: "spans";
            threads: "threads";
            traces: "traces";
        }>;
        filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
    }, z.core.$strict>>;
    click: z.ZodOptional<z.ZodObject<{
        page: z.ZodEnum<{
            logs: "logs";
            spans: "spans";
            threads: "threads";
            traces: "traces";
        }>;
        filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
    }, z.core.$strict>>;
}, z.core.$strict>;
export declare const dashboardWidgetViewSchema: z.ZodObject<{
    label: z.ZodOptional<z.ZodString>;
    description: z.ZodOptional<z.ZodString>;
    queries: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
        where: z.ZodOptional<z.ZodType<import("../..").TraceQueryPredicate, import("../..").TraceQueryPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryPredicate, import("../..").TraceQueryPredicate>>>;
        groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
        interval: z.ZodOptional<z.ZodEnum<{
            "15m": "15m";
            "1d": "1d";
            "1h": "1h";
            "1m": "1m";
            "5m": "5m";
        }>>;
        measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
            "cost.avg": "cost.avg";
            "cost.sum": "cost.sum";
            count: "count";
            "duration.avg": "duration.avg";
            "duration.max": "duration.max";
            "duration.min": "duration.min";
            "duration.p50": "duration.p50";
            "duration.p90": "duration.p90";
            "duration.p95": "duration.p95";
            "duration.p99": "duration.p99";
            errorCount: "errorCount";
            errorRate: "errorRate";
            "timeToFirstChunk.avg": "timeToFirstChunk.avg";
            "timeToFirstChunk.count": "timeToFirstChunk.count";
            "timeToFirstChunk.max": "timeToFirstChunk.max";
            "timeToFirstChunk.min": "timeToFirstChunk.min";
            "timeToFirstChunk.p50": "timeToFirstChunk.p50";
            "timeToFirstChunk.p90": "timeToFirstChunk.p90";
            "timeToFirstChunk.p95": "timeToFirstChunk.p95";
            "timeToFirstChunk.p99": "timeToFirstChunk.p99";
            "timeToFirstToken.avg": "timeToFirstToken.avg";
            "timeToFirstToken.count": "timeToFirstToken.count";
            "timeToFirstToken.max": "timeToFirstToken.max";
            "timeToFirstToken.min": "timeToFirstToken.min";
            "timeToFirstToken.p50": "timeToFirstToken.p50";
            "timeToFirstToken.p90": "timeToFirstToken.p90";
            "timeToFirstToken.p95": "timeToFirstToken.p95";
            "timeToFirstToken.p99": "timeToFirstToken.p99";
            "tokens.cached.avg": "tokens.cached.avg";
            "tokens.cached.sum": "tokens.cached.sum";
            "tokens.input.avg": "tokens.input.avg";
            "tokens.input.sum": "tokens.input.sum";
            "tokens.output.avg": "tokens.output.avg";
            "tokens.output.sum": "tokens.output.sum";
            "tokens.reasoning.avg": "tokens.reasoning.avg";
            "tokens.reasoning.sum": "tokens.reasoning.sum";
            "tokens.total.avg": "tokens.total.avg";
            "tokens.total.sum": "tokens.total.sum";
        }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
        having: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
        orderBy: z.ZodDefault<z.ZodObject<{
            field: z.ZodString;
            direction: z.ZodEnum<{
                asc: "asc";
                desc: "desc";
            }>;
        }, z.core.$strict>>;
        limit: z.ZodDefault<z.ZodNumber>;
        source: z.ZodLiteral<"traceAggregate">;
        id: z.ZodOptional<z.ZodString>;
        compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    }, z.core.$strict>, z.ZodObject<{
        where: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
        groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
        interval: z.ZodOptional<z.ZodEnum<{
            "15m": "15m";
            "1d": "1d";
            "1h": "1h";
            "1m": "1m";
            "5m": "5m";
        }>>;
        measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
            "cost.avg": "cost.avg";
            "cost.sum": "cost.sum";
            count: "count";
            "duration.avg": "duration.avg";
            "duration.max": "duration.max";
            "duration.min": "duration.min";
            "duration.p50": "duration.p50";
            "duration.p90": "duration.p90";
            "duration.p95": "duration.p95";
            "duration.p99": "duration.p99";
            errorCount: "errorCount";
            errorRate: "errorRate";
            "timeToFirstChunk.avg": "timeToFirstChunk.avg";
            "timeToFirstChunk.count": "timeToFirstChunk.count";
            "timeToFirstChunk.max": "timeToFirstChunk.max";
            "timeToFirstChunk.min": "timeToFirstChunk.min";
            "timeToFirstChunk.p50": "timeToFirstChunk.p50";
            "timeToFirstChunk.p90": "timeToFirstChunk.p90";
            "timeToFirstChunk.p95": "timeToFirstChunk.p95";
            "timeToFirstChunk.p99": "timeToFirstChunk.p99";
            "timeToFirstToken.avg": "timeToFirstToken.avg";
            "timeToFirstToken.count": "timeToFirstToken.count";
            "timeToFirstToken.max": "timeToFirstToken.max";
            "timeToFirstToken.min": "timeToFirstToken.min";
            "timeToFirstToken.p50": "timeToFirstToken.p50";
            "timeToFirstToken.p90": "timeToFirstToken.p90";
            "timeToFirstToken.p95": "timeToFirstToken.p95";
            "timeToFirstToken.p99": "timeToFirstToken.p99";
            "tokens.cached.avg": "tokens.cached.avg";
            "tokens.cached.sum": "tokens.cached.sum";
            "tokens.input.avg": "tokens.input.avg";
            "tokens.input.sum": "tokens.input.sum";
            "tokens.output.avg": "tokens.output.avg";
            "tokens.output.sum": "tokens.output.sum";
            "tokens.reasoning.avg": "tokens.reasoning.avg";
            "tokens.reasoning.sum": "tokens.reasoning.sum";
            "tokens.total.avg": "tokens.total.avg";
            "tokens.total.sum": "tokens.total.sum";
        }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
        having: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
        orderBy: z.ZodDefault<z.ZodObject<{
            field: z.ZodString;
            direction: z.ZodEnum<{
                asc: "asc";
                desc: "desc";
            }>;
        }, z.core.$strict>>;
        limit: z.ZodDefault<z.ZodNumber>;
        source: z.ZodLiteral<"spanAggregate">;
        id: z.ZodOptional<z.ZodString>;
        compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
    }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
        name: z.ZodArray<z.ZodString>;
        aggregation: z.ZodEnum<{
            avg: "avg";
            count: "count";
            count_distinct: "count_distinct";
            last: "last";
            max: "max";
            min: "min";
            sum: "sum";
        }>;
        distinctColumn: z.ZodOptional<z.ZodEnum<{
            entityName: "entityName";
            entityType: "entityType";
            environment: "environment";
            executionSource: "executionSource";
            model: "model";
            name: "name";
            parentEntityName: "parentEntityName";
            parentEntityType: "parentEntityType";
            provider: "provider";
            resourceId: "resourceId";
            rootEntityName: "rootEntityName";
            rootEntityType: "rootEntityType";
            serviceName: "serviceName";
            threadId: "threadId";
        }>>;
        source: z.ZodLiteral<"metrics">;
        id: z.ZodOptional<z.ZodString>;
        compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
        request: z.ZodLiteral<"aggregate">;
        filters: z.ZodOptional<z.ZodObject<{
            traceId: z.ZodOptional<z.ZodString>;
            spanId: z.ZodOptional<z.ZodString>;
            entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            entityName: z.ZodOptional<z.ZodString>;
            entityVersionId: z.ZodOptional<z.ZodString>;
            parentEntityVersionId: z.ZodOptional<z.ZodString>;
            rootEntityVersionId: z.ZodOptional<z.ZodString>;
            userId: z.ZodOptional<z.ZodString>;
            organizationId: z.ZodOptional<z.ZodString>;
            experimentId: z.ZodOptional<z.ZodString>;
            serviceName: z.ZodOptional<z.ZodString>;
            environment: z.ZodOptional<z.ZodString>;
            parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            parentEntityName: z.ZodOptional<z.ZodString>;
            rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            rootEntityName: z.ZodOptional<z.ZodString>;
            resourceId: z.ZodOptional<z.ZodString>;
            runId: z.ZodOptional<z.ZodString>;
            sessionId: z.ZodOptional<z.ZodString>;
            threadId: z.ZodOptional<z.ZodString>;
            requestId: z.ZodOptional<z.ZodString>;
            executionSource: z.ZodOptional<z.ZodString>;
            tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
            traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
            experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
            name: z.ZodOptional<z.ZodArray<z.ZodString>>;
            source: z.ZodOptional<z.ZodString>;
            provider: z.ZodOptional<z.ZodString>;
            model: z.ZodOptional<z.ZodString>;
            costUnit: z.ZodOptional<z.ZodString>;
            labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        }, z.core.$strict>>;
    }, z.core.$strict>, z.ZodObject<{
        name: z.ZodArray<z.ZodString>;
        groupBy: z.ZodArray<z.ZodString>;
        aggregation: z.ZodEnum<{
            avg: "avg";
            count: "count";
            count_distinct: "count_distinct";
            last: "last";
            max: "max";
            min: "min";
            sum: "sum";
        }>;
        distinctColumn: z.ZodOptional<z.ZodEnum<{
            entityName: "entityName";
            entityType: "entityType";
            environment: "environment";
            executionSource: "executionSource";
            model: "model";
            name: "name";
            parentEntityName: "parentEntityName";
            parentEntityType: "parentEntityType";
            provider: "provider";
            resourceId: "resourceId";
            rootEntityName: "rootEntityName";
            rootEntityType: "rootEntityType";
            serviceName: "serviceName";
            threadId: "threadId";
        }>>;
        limit: z.ZodOptional<z.ZodNumber>;
        orderDirection: z.ZodOptional<z.ZodEnum<{
            ASC: "ASC";
            DESC: "DESC";
        }>>;
        source: z.ZodLiteral<"metrics">;
        id: z.ZodOptional<z.ZodString>;
        compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
        request: z.ZodLiteral<"breakdown">;
        filters: z.ZodOptional<z.ZodObject<{
            traceId: z.ZodOptional<z.ZodString>;
            spanId: z.ZodOptional<z.ZodString>;
            entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            entityName: z.ZodOptional<z.ZodString>;
            entityVersionId: z.ZodOptional<z.ZodString>;
            parentEntityVersionId: z.ZodOptional<z.ZodString>;
            rootEntityVersionId: z.ZodOptional<z.ZodString>;
            userId: z.ZodOptional<z.ZodString>;
            organizationId: z.ZodOptional<z.ZodString>;
            experimentId: z.ZodOptional<z.ZodString>;
            serviceName: z.ZodOptional<z.ZodString>;
            environment: z.ZodOptional<z.ZodString>;
            parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            parentEntityName: z.ZodOptional<z.ZodString>;
            rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            rootEntityName: z.ZodOptional<z.ZodString>;
            resourceId: z.ZodOptional<z.ZodString>;
            runId: z.ZodOptional<z.ZodString>;
            sessionId: z.ZodOptional<z.ZodString>;
            threadId: z.ZodOptional<z.ZodString>;
            requestId: z.ZodOptional<z.ZodString>;
            executionSource: z.ZodOptional<z.ZodString>;
            tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
            traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
            experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
            name: z.ZodOptional<z.ZodArray<z.ZodString>>;
            source: z.ZodOptional<z.ZodString>;
            provider: z.ZodOptional<z.ZodString>;
            model: z.ZodOptional<z.ZodString>;
            costUnit: z.ZodOptional<z.ZodString>;
            labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        }, z.core.$strict>>;
    }, z.core.$strict>, z.ZodObject<{
        name: z.ZodArray<z.ZodString>;
        aggregation: z.ZodEnum<{
            avg: "avg";
            count: "count";
            count_distinct: "count_distinct";
            last: "last";
            max: "max";
            min: "min";
            sum: "sum";
        }>;
        distinctColumn: z.ZodOptional<z.ZodEnum<{
            entityName: "entityName";
            entityType: "entityType";
            environment: "environment";
            executionSource: "executionSource";
            model: "model";
            name: "name";
            parentEntityName: "parentEntityName";
            parentEntityType: "parentEntityType";
            provider: "provider";
            resourceId: "resourceId";
            rootEntityName: "rootEntityName";
            rootEntityType: "rootEntityType";
            serviceName: "serviceName";
            threadId: "threadId";
        }>>;
        groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
        source: z.ZodLiteral<"metrics">;
        id: z.ZodOptional<z.ZodString>;
        compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
        request: z.ZodLiteral<"timeSeries">;
        interval: z.ZodOptional<z.ZodEnum<{
            "15m": "15m";
            "1d": "1d";
            "1h": "1h";
            "1m": "1m";
            "5m": "5m";
        }>>;
        filters: z.ZodOptional<z.ZodObject<{
            traceId: z.ZodOptional<z.ZodString>;
            spanId: z.ZodOptional<z.ZodString>;
            entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            entityName: z.ZodOptional<z.ZodString>;
            entityVersionId: z.ZodOptional<z.ZodString>;
            parentEntityVersionId: z.ZodOptional<z.ZodString>;
            rootEntityVersionId: z.ZodOptional<z.ZodString>;
            userId: z.ZodOptional<z.ZodString>;
            organizationId: z.ZodOptional<z.ZodString>;
            experimentId: z.ZodOptional<z.ZodString>;
            serviceName: z.ZodOptional<z.ZodString>;
            environment: z.ZodOptional<z.ZodString>;
            parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            parentEntityName: z.ZodOptional<z.ZodString>;
            rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            rootEntityName: z.ZodOptional<z.ZodString>;
            resourceId: z.ZodOptional<z.ZodString>;
            runId: z.ZodOptional<z.ZodString>;
            sessionId: z.ZodOptional<z.ZodString>;
            threadId: z.ZodOptional<z.ZodString>;
            requestId: z.ZodOptional<z.ZodString>;
            executionSource: z.ZodOptional<z.ZodString>;
            tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
            traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
            experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
            name: z.ZodOptional<z.ZodArray<z.ZodString>>;
            source: z.ZodOptional<z.ZodString>;
            provider: z.ZodOptional<z.ZodString>;
            model: z.ZodOptional<z.ZodString>;
            costUnit: z.ZodOptional<z.ZodString>;
            labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        }, z.core.$strict>>;
    }, z.core.$strict>, z.ZodObject<{
        name: z.ZodString;
        percentiles: z.ZodArray<z.ZodNumber>;
        source: z.ZodLiteral<"metrics">;
        id: z.ZodOptional<z.ZodString>;
        compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
        request: z.ZodLiteral<"percentiles">;
        interval: z.ZodOptional<z.ZodEnum<{
            "15m": "15m";
            "1d": "1d";
            "1h": "1h";
            "1m": "1m";
            "5m": "5m";
        }>>;
        filters: z.ZodOptional<z.ZodObject<{
            traceId: z.ZodOptional<z.ZodString>;
            spanId: z.ZodOptional<z.ZodString>;
            entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            entityName: z.ZodOptional<z.ZodString>;
            entityVersionId: z.ZodOptional<z.ZodString>;
            parentEntityVersionId: z.ZodOptional<z.ZodString>;
            rootEntityVersionId: z.ZodOptional<z.ZodString>;
            userId: z.ZodOptional<z.ZodString>;
            organizationId: z.ZodOptional<z.ZodString>;
            experimentId: z.ZodOptional<z.ZodString>;
            serviceName: z.ZodOptional<z.ZodString>;
            environment: z.ZodOptional<z.ZodString>;
            parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            parentEntityName: z.ZodOptional<z.ZodString>;
            rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            rootEntityName: z.ZodOptional<z.ZodString>;
            resourceId: z.ZodOptional<z.ZodString>;
            runId: z.ZodOptional<z.ZodString>;
            sessionId: z.ZodOptional<z.ZodString>;
            threadId: z.ZodOptional<z.ZodString>;
            requestId: z.ZodOptional<z.ZodString>;
            executionSource: z.ZodOptional<z.ZodString>;
            tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
            traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
            experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
            name: z.ZodOptional<z.ZodArray<z.ZodString>>;
            source: z.ZodOptional<z.ZodString>;
            provider: z.ZodOptional<z.ZodString>;
            model: z.ZodOptional<z.ZodString>;
            costUnit: z.ZodOptional<z.ZodString>;
            labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
        }, z.core.$strict>>;
    }, z.core.$strict>], "request">, z.ZodDiscriminatedUnion<[z.ZodObject<{
        scoreSource: z.ZodOptional<z.ZodString>;
        aggregation: z.ZodEnum<{
            avg: "avg";
            count: "count";
            count_distinct: "count_distinct";
            last: "last";
            max: "max";
            min: "min";
            sum: "sum";
        }>;
        source: z.ZodLiteral<"scores">;
        id: z.ZodOptional<z.ZodString>;
        compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
        scorerId: z.ZodOptional<z.ZodString>;
        request: z.ZodLiteral<"aggregate">;
        filters: z.ZodOptional<z.ZodObject<{
            traceId: z.ZodOptional<z.ZodString>;
            spanId: z.ZodOptional<z.ZodString>;
            entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            entityName: z.ZodOptional<z.ZodString>;
            entityVersionId: z.ZodOptional<z.ZodString>;
            parentEntityVersionId: z.ZodOptional<z.ZodString>;
            rootEntityVersionId: z.ZodOptional<z.ZodString>;
            userId: z.ZodOptional<z.ZodString>;
            organizationId: z.ZodOptional<z.ZodString>;
            experimentId: z.ZodOptional<z.ZodString>;
            serviceName: z.ZodOptional<z.ZodString>;
            environment: z.ZodOptional<z.ZodString>;
            parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            parentEntityName: z.ZodOptional<z.ZodString>;
            rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            rootEntityName: z.ZodOptional<z.ZodString>;
            resourceId: z.ZodOptional<z.ZodString>;
            runId: z.ZodOptional<z.ZodString>;
            sessionId: z.ZodOptional<z.ZodString>;
            threadId: z.ZodOptional<z.ZodString>;
            requestId: z.ZodOptional<z.ZodString>;
            executionSource: z.ZodOptional<z.ZodString>;
            tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
            scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
            scoreSource: z.ZodOptional<z.ZodString>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
            source: z.ZodOptional<z.ZodString>;
        }, z.core.$strict>>;
    }, z.core.$strict>, z.ZodObject<{
        scoreSource: z.ZodOptional<z.ZodString>;
        groupBy: z.ZodArray<z.ZodString>;
        aggregation: z.ZodEnum<{
            avg: "avg";
            count: "count";
            count_distinct: "count_distinct";
            last: "last";
            max: "max";
            min: "min";
            sum: "sum";
        }>;
        source: z.ZodLiteral<"scores">;
        id: z.ZodOptional<z.ZodString>;
        compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
        scorerId: z.ZodOptional<z.ZodString>;
        request: z.ZodLiteral<"breakdown">;
        filters: z.ZodOptional<z.ZodObject<{
            traceId: z.ZodOptional<z.ZodString>;
            spanId: z.ZodOptional<z.ZodString>;
            entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            entityName: z.ZodOptional<z.ZodString>;
            entityVersionId: z.ZodOptional<z.ZodString>;
            parentEntityVersionId: z.ZodOptional<z.ZodString>;
            rootEntityVersionId: z.ZodOptional<z.ZodString>;
            userId: z.ZodOptional<z.ZodString>;
            organizationId: z.ZodOptional<z.ZodString>;
            experimentId: z.ZodOptional<z.ZodString>;
            serviceName: z.ZodOptional<z.ZodString>;
            environment: z.ZodOptional<z.ZodString>;
            parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            parentEntityName: z.ZodOptional<z.ZodString>;
            rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            rootEntityName: z.ZodOptional<z.ZodString>;
            resourceId: z.ZodOptional<z.ZodString>;
            runId: z.ZodOptional<z.ZodString>;
            sessionId: z.ZodOptional<z.ZodString>;
            threadId: z.ZodOptional<z.ZodString>;
            requestId: z.ZodOptional<z.ZodString>;
            executionSource: z.ZodOptional<z.ZodString>;
            tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
            scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
            scoreSource: z.ZodOptional<z.ZodString>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
            source: z.ZodOptional<z.ZodString>;
        }, z.core.$strict>>;
    }, z.core.$strict>, z.ZodObject<{
        scoreSource: z.ZodOptional<z.ZodString>;
        aggregation: z.ZodEnum<{
            avg: "avg";
            count: "count";
            count_distinct: "count_distinct";
            last: "last";
            max: "max";
            min: "min";
            sum: "sum";
        }>;
        groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
        source: z.ZodLiteral<"scores">;
        id: z.ZodOptional<z.ZodString>;
        compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
        scorerId: z.ZodOptional<z.ZodString>;
        request: z.ZodLiteral<"timeSeries">;
        interval: z.ZodOptional<z.ZodEnum<{
            "15m": "15m";
            "1d": "1d";
            "1h": "1h";
            "1m": "1m";
            "5m": "5m";
        }>>;
        filters: z.ZodOptional<z.ZodObject<{
            traceId: z.ZodOptional<z.ZodString>;
            spanId: z.ZodOptional<z.ZodString>;
            entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            entityName: z.ZodOptional<z.ZodString>;
            entityVersionId: z.ZodOptional<z.ZodString>;
            parentEntityVersionId: z.ZodOptional<z.ZodString>;
            rootEntityVersionId: z.ZodOptional<z.ZodString>;
            userId: z.ZodOptional<z.ZodString>;
            organizationId: z.ZodOptional<z.ZodString>;
            experimentId: z.ZodOptional<z.ZodString>;
            serviceName: z.ZodOptional<z.ZodString>;
            environment: z.ZodOptional<z.ZodString>;
            parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            parentEntityName: z.ZodOptional<z.ZodString>;
            rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            rootEntityName: z.ZodOptional<z.ZodString>;
            resourceId: z.ZodOptional<z.ZodString>;
            runId: z.ZodOptional<z.ZodString>;
            sessionId: z.ZodOptional<z.ZodString>;
            threadId: z.ZodOptional<z.ZodString>;
            requestId: z.ZodOptional<z.ZodString>;
            executionSource: z.ZodOptional<z.ZodString>;
            tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
            scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
            scoreSource: z.ZodOptional<z.ZodString>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
            source: z.ZodOptional<z.ZodString>;
        }, z.core.$strict>>;
    }, z.core.$strict>, z.ZodObject<{
        scoreSource: z.ZodOptional<z.ZodString>;
        percentiles: z.ZodArray<z.ZodNumber>;
        source: z.ZodLiteral<"scores">;
        id: z.ZodOptional<z.ZodString>;
        compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
        scorerId: z.ZodOptional<z.ZodString>;
        request: z.ZodLiteral<"percentiles">;
        interval: z.ZodOptional<z.ZodEnum<{
            "15m": "15m";
            "1d": "1d";
            "1h": "1h";
            "1m": "1m";
            "5m": "5m";
        }>>;
        filters: z.ZodOptional<z.ZodObject<{
            traceId: z.ZodOptional<z.ZodString>;
            spanId: z.ZodOptional<z.ZodString>;
            entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            entityName: z.ZodOptional<z.ZodString>;
            entityVersionId: z.ZodOptional<z.ZodString>;
            parentEntityVersionId: z.ZodOptional<z.ZodString>;
            rootEntityVersionId: z.ZodOptional<z.ZodString>;
            userId: z.ZodOptional<z.ZodString>;
            organizationId: z.ZodOptional<z.ZodString>;
            experimentId: z.ZodOptional<z.ZodString>;
            serviceName: z.ZodOptional<z.ZodString>;
            environment: z.ZodOptional<z.ZodString>;
            parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            parentEntityName: z.ZodOptional<z.ZodString>;
            rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
            rootEntityName: z.ZodOptional<z.ZodString>;
            resourceId: z.ZodOptional<z.ZodString>;
            runId: z.ZodOptional<z.ZodString>;
            sessionId: z.ZodOptional<z.ZodString>;
            threadId: z.ZodOptional<z.ZodString>;
            requestId: z.ZodOptional<z.ZodString>;
            executionSource: z.ZodOptional<z.ZodString>;
            tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
            scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
            scoreSource: z.ZodOptional<z.ZodString>;
            metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
            source: z.ZodOptional<z.ZodString>;
        }, z.core.$strict>>;
    }, z.core.$strict>], "request">], "source">, {
        name: string[];
        aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
        distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
        source: "metrics";
        id?: string | undefined;
        compare?: "previousWindow" | undefined;
        request: "aggregate";
        filters?: {
            traceId?: string | undefined;
            spanId?: string | undefined;
            entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            entityName?: string | undefined;
            entityVersionId?: string | undefined;
            parentEntityVersionId?: string | undefined;
            rootEntityVersionId?: string | undefined;
            userId?: string | undefined;
            organizationId?: string | undefined;
            experimentId?: string | undefined;
            serviceName?: string | undefined;
            environment?: string | undefined;
            parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            parentEntityName?: string | undefined;
            rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            rootEntityName?: string | undefined;
            resourceId?: string | undefined;
            runId?: string | undefined;
            sessionId?: string | undefined;
            threadId?: string | undefined;
            requestId?: string | undefined;
            executionSource?: string | undefined;
            tags?: string[] | undefined;
            traceIds?: string[] | undefined;
            experimentIds?: string[] | undefined;
            name?: string[] | undefined;
            source?: string | undefined;
            provider?: string | undefined;
            model?: string | undefined;
            costUnit?: string | undefined;
            labels?: Record<string, string> | undefined;
        } | undefined;
    } | {
        name: string[];
        groupBy: string[];
        aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
        distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
        limit?: number | undefined;
        orderDirection?: "ASC" | "DESC" | undefined;
        source: "metrics";
        id?: string | undefined;
        compare?: "previousWindow" | undefined;
        request: "breakdown";
        filters?: {
            traceId?: string | undefined;
            spanId?: string | undefined;
            entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            entityName?: string | undefined;
            entityVersionId?: string | undefined;
            parentEntityVersionId?: string | undefined;
            rootEntityVersionId?: string | undefined;
            userId?: string | undefined;
            organizationId?: string | undefined;
            experimentId?: string | undefined;
            serviceName?: string | undefined;
            environment?: string | undefined;
            parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            parentEntityName?: string | undefined;
            rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            rootEntityName?: string | undefined;
            resourceId?: string | undefined;
            runId?: string | undefined;
            sessionId?: string | undefined;
            threadId?: string | undefined;
            requestId?: string | undefined;
            executionSource?: string | undefined;
            tags?: string[] | undefined;
            traceIds?: string[] | undefined;
            experimentIds?: string[] | undefined;
            name?: string[] | undefined;
            source?: string | undefined;
            provider?: string | undefined;
            model?: string | undefined;
            costUnit?: string | undefined;
            labels?: Record<string, string> | undefined;
        } | undefined;
    } | {
        name: string[];
        aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
        distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
        groupBy?: string[] | undefined;
        source: "metrics";
        id?: string | undefined;
        compare?: "previousWindow" | undefined;
        request: "timeSeries";
        interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
        filters?: {
            traceId?: string | undefined;
            spanId?: string | undefined;
            entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            entityName?: string | undefined;
            entityVersionId?: string | undefined;
            parentEntityVersionId?: string | undefined;
            rootEntityVersionId?: string | undefined;
            userId?: string | undefined;
            organizationId?: string | undefined;
            experimentId?: string | undefined;
            serviceName?: string | undefined;
            environment?: string | undefined;
            parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            parentEntityName?: string | undefined;
            rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            rootEntityName?: string | undefined;
            resourceId?: string | undefined;
            runId?: string | undefined;
            sessionId?: string | undefined;
            threadId?: string | undefined;
            requestId?: string | undefined;
            executionSource?: string | undefined;
            tags?: string[] | undefined;
            traceIds?: string[] | undefined;
            experimentIds?: string[] | undefined;
            name?: string[] | undefined;
            source?: string | undefined;
            provider?: string | undefined;
            model?: string | undefined;
            costUnit?: string | undefined;
            labels?: Record<string, string> | undefined;
        } | undefined;
    } | {
        name: string;
        percentiles: number[];
        source: "metrics";
        id?: string | undefined;
        compare?: "previousWindow" | undefined;
        request: "percentiles";
        interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
        filters?: {
            traceId?: string | undefined;
            spanId?: string | undefined;
            entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            entityName?: string | undefined;
            entityVersionId?: string | undefined;
            parentEntityVersionId?: string | undefined;
            rootEntityVersionId?: string | undefined;
            userId?: string | undefined;
            organizationId?: string | undefined;
            experimentId?: string | undefined;
            serviceName?: string | undefined;
            environment?: string | undefined;
            parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            parentEntityName?: string | undefined;
            rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            rootEntityName?: string | undefined;
            resourceId?: string | undefined;
            runId?: string | undefined;
            sessionId?: string | undefined;
            threadId?: string | undefined;
            requestId?: string | undefined;
            executionSource?: string | undefined;
            tags?: string[] | undefined;
            traceIds?: string[] | undefined;
            experimentIds?: string[] | undefined;
            name?: string[] | undefined;
            source?: string | undefined;
            provider?: string | undefined;
            model?: string | undefined;
            costUnit?: string | undefined;
            labels?: Record<string, string> | undefined;
        } | undefined;
    } | {
        scoreSource?: string | undefined;
        aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
        source: "scores";
        id?: string | undefined;
        compare?: "previousWindow" | undefined;
        scorerId?: string | undefined;
        request: "aggregate";
        filters?: {
            traceId?: string | undefined;
            spanId?: string | undefined;
            entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            entityName?: string | undefined;
            entityVersionId?: string | undefined;
            parentEntityVersionId?: string | undefined;
            rootEntityVersionId?: string | undefined;
            userId?: string | undefined;
            organizationId?: string | undefined;
            experimentId?: string | undefined;
            serviceName?: string | undefined;
            environment?: string | undefined;
            parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            parentEntityName?: string | undefined;
            rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            rootEntityName?: string | undefined;
            resourceId?: string | undefined;
            runId?: string | undefined;
            sessionId?: string | undefined;
            threadId?: string | undefined;
            requestId?: string | undefined;
            executionSource?: string | undefined;
            tags?: string[] | undefined;
            scorerId?: string | string[] | undefined;
            scoreSource?: string | undefined;
            metadata?: Record<string, unknown> | null | undefined;
            source?: string | undefined;
        } | undefined;
    } | {
        scoreSource?: string | undefined;
        groupBy: string[];
        aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
        source: "scores";
        id?: string | undefined;
        compare?: "previousWindow" | undefined;
        scorerId?: string | undefined;
        request: "breakdown";
        filters?: {
            traceId?: string | undefined;
            spanId?: string | undefined;
            entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            entityName?: string | undefined;
            entityVersionId?: string | undefined;
            parentEntityVersionId?: string | undefined;
            rootEntityVersionId?: string | undefined;
            userId?: string | undefined;
            organizationId?: string | undefined;
            experimentId?: string | undefined;
            serviceName?: string | undefined;
            environment?: string | undefined;
            parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            parentEntityName?: string | undefined;
            rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            rootEntityName?: string | undefined;
            resourceId?: string | undefined;
            runId?: string | undefined;
            sessionId?: string | undefined;
            threadId?: string | undefined;
            requestId?: string | undefined;
            executionSource?: string | undefined;
            tags?: string[] | undefined;
            scorerId?: string | string[] | undefined;
            scoreSource?: string | undefined;
            metadata?: Record<string, unknown> | null | undefined;
            source?: string | undefined;
        } | undefined;
    } | {
        scoreSource?: string | undefined;
        aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
        groupBy?: string[] | undefined;
        source: "scores";
        id?: string | undefined;
        compare?: "previousWindow" | undefined;
        scorerId?: string | undefined;
        request: "timeSeries";
        interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
        filters?: {
            traceId?: string | undefined;
            spanId?: string | undefined;
            entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            entityName?: string | undefined;
            entityVersionId?: string | undefined;
            parentEntityVersionId?: string | undefined;
            rootEntityVersionId?: string | undefined;
            userId?: string | undefined;
            organizationId?: string | undefined;
            experimentId?: string | undefined;
            serviceName?: string | undefined;
            environment?: string | undefined;
            parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            parentEntityName?: string | undefined;
            rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            rootEntityName?: string | undefined;
            resourceId?: string | undefined;
            runId?: string | undefined;
            sessionId?: string | undefined;
            threadId?: string | undefined;
            requestId?: string | undefined;
            executionSource?: string | undefined;
            tags?: string[] | undefined;
            scorerId?: string | string[] | undefined;
            scoreSource?: string | undefined;
            metadata?: Record<string, unknown> | null | undefined;
            source?: string | undefined;
        } | undefined;
    } | {
        scoreSource?: string | undefined;
        percentiles: number[];
        source: "scores";
        id?: string | undefined;
        compare?: "previousWindow" | undefined;
        scorerId?: string | undefined;
        request: "percentiles";
        interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
        filters?: {
            traceId?: string | undefined;
            spanId?: string | undefined;
            entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            entityName?: string | undefined;
            entityVersionId?: string | undefined;
            parentEntityVersionId?: string | undefined;
            rootEntityVersionId?: string | undefined;
            userId?: string | undefined;
            organizationId?: string | undefined;
            experimentId?: string | undefined;
            serviceName?: string | undefined;
            environment?: string | undefined;
            parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            parentEntityName?: string | undefined;
            rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
            rootEntityName?: string | undefined;
            resourceId?: string | undefined;
            runId?: string | undefined;
            sessionId?: string | undefined;
            threadId?: string | undefined;
            requestId?: string | undefined;
            executionSource?: string | undefined;
            tags?: string[] | undefined;
            scorerId?: string | string[] | undefined;
            scoreSource?: string | undefined;
            metadata?: Record<string, unknown> | null | undefined;
            source?: string | undefined;
        } | undefined;
    } | {
        where?: import("../..").TraceQueryPredicate | undefined;
        groupBy?: string[] | undefined;
        interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
        measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
        having?: import("../..").TraceQueryScalarPredicate | undefined;
        orderBy?: {
            field: string;
            direction: "asc" | "desc";
        } | undefined;
        limit?: number | undefined;
        source: "traceAggregate";
        id?: string | undefined;
        compare?: "previousWindow" | undefined;
    } | {
        where?: import("../..").TraceQueryScalarPredicate | undefined;
        groupBy?: string[] | undefined;
        interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
        measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
        having?: import("../..").TraceQueryScalarPredicate | undefined;
        orderBy?: {
            field: string;
            direction: "asc" | "desc";
        } | undefined;
        limit?: number | undefined;
        source: "spanAggregate";
        id?: string | undefined;
        compare?: "previousWindow" | undefined;
    }>>;
    columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        label: z.ZodOptional<z.ZodString>;
        scope: z.ZodOptional<z.ZodEnum<{
            org: "org";
            project: "project";
        }>>;
        options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, z.core.$strict>>>;
    options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    drilldown: z.ZodOptional<z.ZodObject<{
        action: z.ZodOptional<z.ZodObject<{
            page: z.ZodEnum<{
                logs: "logs";
                spans: "spans";
                threads: "threads";
                traces: "traces";
            }>;
            filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
        }, z.core.$strict>>;
        click: z.ZodOptional<z.ZodObject<{
            page: z.ZodEnum<{
                logs: "logs";
                spans: "spans";
                threads: "threads";
                traces: "traces";
            }>;
            filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
        }, z.core.$strict>>;
    }, z.core.$strict>>;
    scope: z.ZodOptional<z.ZodEnum<{
        org: "org";
        project: "project";
    }>>;
}, z.core.$strict>;
export declare const dashboardWidgetSchema: z.ZodObject<{
    id: z.ZodString;
    span: z.ZodLiteral<1 | 2 | 3 | 4 | 6 | 12>;
    kind: z.ZodString;
    title: z.ZodOptional<z.ZodString>;
    description: z.ZodOptional<z.ZodString>;
    views: z.ZodArray<z.ZodObject<{
        label: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        queries: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
            where: z.ZodOptional<z.ZodType<import("../..").TraceQueryPredicate, import("../..").TraceQueryPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryPredicate, import("../..").TraceQueryPredicate>>>;
            groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
            interval: z.ZodOptional<z.ZodEnum<{
                "15m": "15m";
                "1d": "1d";
                "1h": "1h";
                "1m": "1m";
                "5m": "5m";
            }>>;
            measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
                "cost.avg": "cost.avg";
                "cost.sum": "cost.sum";
                count: "count";
                "duration.avg": "duration.avg";
                "duration.max": "duration.max";
                "duration.min": "duration.min";
                "duration.p50": "duration.p50";
                "duration.p90": "duration.p90";
                "duration.p95": "duration.p95";
                "duration.p99": "duration.p99";
                errorCount: "errorCount";
                errorRate: "errorRate";
                "timeToFirstChunk.avg": "timeToFirstChunk.avg";
                "timeToFirstChunk.count": "timeToFirstChunk.count";
                "timeToFirstChunk.max": "timeToFirstChunk.max";
                "timeToFirstChunk.min": "timeToFirstChunk.min";
                "timeToFirstChunk.p50": "timeToFirstChunk.p50";
                "timeToFirstChunk.p90": "timeToFirstChunk.p90";
                "timeToFirstChunk.p95": "timeToFirstChunk.p95";
                "timeToFirstChunk.p99": "timeToFirstChunk.p99";
                "timeToFirstToken.avg": "timeToFirstToken.avg";
                "timeToFirstToken.count": "timeToFirstToken.count";
                "timeToFirstToken.max": "timeToFirstToken.max";
                "timeToFirstToken.min": "timeToFirstToken.min";
                "timeToFirstToken.p50": "timeToFirstToken.p50";
                "timeToFirstToken.p90": "timeToFirstToken.p90";
                "timeToFirstToken.p95": "timeToFirstToken.p95";
                "timeToFirstToken.p99": "timeToFirstToken.p99";
                "tokens.cached.avg": "tokens.cached.avg";
                "tokens.cached.sum": "tokens.cached.sum";
                "tokens.input.avg": "tokens.input.avg";
                "tokens.input.sum": "tokens.input.sum";
                "tokens.output.avg": "tokens.output.avg";
                "tokens.output.sum": "tokens.output.sum";
                "tokens.reasoning.avg": "tokens.reasoning.avg";
                "tokens.reasoning.sum": "tokens.reasoning.sum";
                "tokens.total.avg": "tokens.total.avg";
                "tokens.total.sum": "tokens.total.sum";
            }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
            having: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
            orderBy: z.ZodDefault<z.ZodObject<{
                field: z.ZodString;
                direction: z.ZodEnum<{
                    asc: "asc";
                    desc: "desc";
                }>;
            }, z.core.$strict>>;
            limit: z.ZodDefault<z.ZodNumber>;
            source: z.ZodLiteral<"traceAggregate">;
            id: z.ZodOptional<z.ZodString>;
            compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
        }, z.core.$strict>, z.ZodObject<{
            where: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
            groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
            interval: z.ZodOptional<z.ZodEnum<{
                "15m": "15m";
                "1d": "1d";
                "1h": "1h";
                "1m": "1m";
                "5m": "5m";
            }>>;
            measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
                "cost.avg": "cost.avg";
                "cost.sum": "cost.sum";
                count: "count";
                "duration.avg": "duration.avg";
                "duration.max": "duration.max";
                "duration.min": "duration.min";
                "duration.p50": "duration.p50";
                "duration.p90": "duration.p90";
                "duration.p95": "duration.p95";
                "duration.p99": "duration.p99";
                errorCount: "errorCount";
                errorRate: "errorRate";
                "timeToFirstChunk.avg": "timeToFirstChunk.avg";
                "timeToFirstChunk.count": "timeToFirstChunk.count";
                "timeToFirstChunk.max": "timeToFirstChunk.max";
                "timeToFirstChunk.min": "timeToFirstChunk.min";
                "timeToFirstChunk.p50": "timeToFirstChunk.p50";
                "timeToFirstChunk.p90": "timeToFirstChunk.p90";
                "timeToFirstChunk.p95": "timeToFirstChunk.p95";
                "timeToFirstChunk.p99": "timeToFirstChunk.p99";
                "timeToFirstToken.avg": "timeToFirstToken.avg";
                "timeToFirstToken.count": "timeToFirstToken.count";
                "timeToFirstToken.max": "timeToFirstToken.max";
                "timeToFirstToken.min": "timeToFirstToken.min";
                "timeToFirstToken.p50": "timeToFirstToken.p50";
                "timeToFirstToken.p90": "timeToFirstToken.p90";
                "timeToFirstToken.p95": "timeToFirstToken.p95";
                "timeToFirstToken.p99": "timeToFirstToken.p99";
                "tokens.cached.avg": "tokens.cached.avg";
                "tokens.cached.sum": "tokens.cached.sum";
                "tokens.input.avg": "tokens.input.avg";
                "tokens.input.sum": "tokens.input.sum";
                "tokens.output.avg": "tokens.output.avg";
                "tokens.output.sum": "tokens.output.sum";
                "tokens.reasoning.avg": "tokens.reasoning.avg";
                "tokens.reasoning.sum": "tokens.reasoning.sum";
                "tokens.total.avg": "tokens.total.avg";
                "tokens.total.sum": "tokens.total.sum";
            }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
            having: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
            orderBy: z.ZodDefault<z.ZodObject<{
                field: z.ZodString;
                direction: z.ZodEnum<{
                    asc: "asc";
                    desc: "desc";
                }>;
            }, z.core.$strict>>;
            limit: z.ZodDefault<z.ZodNumber>;
            source: z.ZodLiteral<"spanAggregate">;
            id: z.ZodOptional<z.ZodString>;
            compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
        }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
            name: z.ZodArray<z.ZodString>;
            aggregation: z.ZodEnum<{
                avg: "avg";
                count: "count";
                count_distinct: "count_distinct";
                last: "last";
                max: "max";
                min: "min";
                sum: "sum";
            }>;
            distinctColumn: z.ZodOptional<z.ZodEnum<{
                entityName: "entityName";
                entityType: "entityType";
                environment: "environment";
                executionSource: "executionSource";
                model: "model";
                name: "name";
                parentEntityName: "parentEntityName";
                parentEntityType: "parentEntityType";
                provider: "provider";
                resourceId: "resourceId";
                rootEntityName: "rootEntityName";
                rootEntityType: "rootEntityType";
                serviceName: "serviceName";
                threadId: "threadId";
            }>>;
            source: z.ZodLiteral<"metrics">;
            id: z.ZodOptional<z.ZodString>;
            compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
            request: z.ZodLiteral<"aggregate">;
            filters: z.ZodOptional<z.ZodObject<{
                traceId: z.ZodOptional<z.ZodString>;
                spanId: z.ZodOptional<z.ZodString>;
                entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                entityName: z.ZodOptional<z.ZodString>;
                entityVersionId: z.ZodOptional<z.ZodString>;
                parentEntityVersionId: z.ZodOptional<z.ZodString>;
                rootEntityVersionId: z.ZodOptional<z.ZodString>;
                userId: z.ZodOptional<z.ZodString>;
                organizationId: z.ZodOptional<z.ZodString>;
                experimentId: z.ZodOptional<z.ZodString>;
                serviceName: z.ZodOptional<z.ZodString>;
                environment: z.ZodOptional<z.ZodString>;
                parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                parentEntityName: z.ZodOptional<z.ZodString>;
                rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                rootEntityName: z.ZodOptional<z.ZodString>;
                resourceId: z.ZodOptional<z.ZodString>;
                runId: z.ZodOptional<z.ZodString>;
                sessionId: z.ZodOptional<z.ZodString>;
                threadId: z.ZodOptional<z.ZodString>;
                requestId: z.ZodOptional<z.ZodString>;
                executionSource: z.ZodOptional<z.ZodString>;
                tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                source: z.ZodOptional<z.ZodString>;
                provider: z.ZodOptional<z.ZodString>;
                model: z.ZodOptional<z.ZodString>;
                costUnit: z.ZodOptional<z.ZodString>;
                labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
            }, z.core.$strict>>;
        }, z.core.$strict>, z.ZodObject<{
            name: z.ZodArray<z.ZodString>;
            groupBy: z.ZodArray<z.ZodString>;
            aggregation: z.ZodEnum<{
                avg: "avg";
                count: "count";
                count_distinct: "count_distinct";
                last: "last";
                max: "max";
                min: "min";
                sum: "sum";
            }>;
            distinctColumn: z.ZodOptional<z.ZodEnum<{
                entityName: "entityName";
                entityType: "entityType";
                environment: "environment";
                executionSource: "executionSource";
                model: "model";
                name: "name";
                parentEntityName: "parentEntityName";
                parentEntityType: "parentEntityType";
                provider: "provider";
                resourceId: "resourceId";
                rootEntityName: "rootEntityName";
                rootEntityType: "rootEntityType";
                serviceName: "serviceName";
                threadId: "threadId";
            }>>;
            limit: z.ZodOptional<z.ZodNumber>;
            orderDirection: z.ZodOptional<z.ZodEnum<{
                ASC: "ASC";
                DESC: "DESC";
            }>>;
            source: z.ZodLiteral<"metrics">;
            id: z.ZodOptional<z.ZodString>;
            compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
            request: z.ZodLiteral<"breakdown">;
            filters: z.ZodOptional<z.ZodObject<{
                traceId: z.ZodOptional<z.ZodString>;
                spanId: z.ZodOptional<z.ZodString>;
                entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                entityName: z.ZodOptional<z.ZodString>;
                entityVersionId: z.ZodOptional<z.ZodString>;
                parentEntityVersionId: z.ZodOptional<z.ZodString>;
                rootEntityVersionId: z.ZodOptional<z.ZodString>;
                userId: z.ZodOptional<z.ZodString>;
                organizationId: z.ZodOptional<z.ZodString>;
                experimentId: z.ZodOptional<z.ZodString>;
                serviceName: z.ZodOptional<z.ZodString>;
                environment: z.ZodOptional<z.ZodString>;
                parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                parentEntityName: z.ZodOptional<z.ZodString>;
                rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                rootEntityName: z.ZodOptional<z.ZodString>;
                resourceId: z.ZodOptional<z.ZodString>;
                runId: z.ZodOptional<z.ZodString>;
                sessionId: z.ZodOptional<z.ZodString>;
                threadId: z.ZodOptional<z.ZodString>;
                requestId: z.ZodOptional<z.ZodString>;
                executionSource: z.ZodOptional<z.ZodString>;
                tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                source: z.ZodOptional<z.ZodString>;
                provider: z.ZodOptional<z.ZodString>;
                model: z.ZodOptional<z.ZodString>;
                costUnit: z.ZodOptional<z.ZodString>;
                labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
            }, z.core.$strict>>;
        }, z.core.$strict>, z.ZodObject<{
            name: z.ZodArray<z.ZodString>;
            aggregation: z.ZodEnum<{
                avg: "avg";
                count: "count";
                count_distinct: "count_distinct";
                last: "last";
                max: "max";
                min: "min";
                sum: "sum";
            }>;
            distinctColumn: z.ZodOptional<z.ZodEnum<{
                entityName: "entityName";
                entityType: "entityType";
                environment: "environment";
                executionSource: "executionSource";
                model: "model";
                name: "name";
                parentEntityName: "parentEntityName";
                parentEntityType: "parentEntityType";
                provider: "provider";
                resourceId: "resourceId";
                rootEntityName: "rootEntityName";
                rootEntityType: "rootEntityType";
                serviceName: "serviceName";
                threadId: "threadId";
            }>>;
            groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
            source: z.ZodLiteral<"metrics">;
            id: z.ZodOptional<z.ZodString>;
            compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
            request: z.ZodLiteral<"timeSeries">;
            interval: z.ZodOptional<z.ZodEnum<{
                "15m": "15m";
                "1d": "1d";
                "1h": "1h";
                "1m": "1m";
                "5m": "5m";
            }>>;
            filters: z.ZodOptional<z.ZodObject<{
                traceId: z.ZodOptional<z.ZodString>;
                spanId: z.ZodOptional<z.ZodString>;
                entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                entityName: z.ZodOptional<z.ZodString>;
                entityVersionId: z.ZodOptional<z.ZodString>;
                parentEntityVersionId: z.ZodOptional<z.ZodString>;
                rootEntityVersionId: z.ZodOptional<z.ZodString>;
                userId: z.ZodOptional<z.ZodString>;
                organizationId: z.ZodOptional<z.ZodString>;
                experimentId: z.ZodOptional<z.ZodString>;
                serviceName: z.ZodOptional<z.ZodString>;
                environment: z.ZodOptional<z.ZodString>;
                parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                parentEntityName: z.ZodOptional<z.ZodString>;
                rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                rootEntityName: z.ZodOptional<z.ZodString>;
                resourceId: z.ZodOptional<z.ZodString>;
                runId: z.ZodOptional<z.ZodString>;
                sessionId: z.ZodOptional<z.ZodString>;
                threadId: z.ZodOptional<z.ZodString>;
                requestId: z.ZodOptional<z.ZodString>;
                executionSource: z.ZodOptional<z.ZodString>;
                tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                source: z.ZodOptional<z.ZodString>;
                provider: z.ZodOptional<z.ZodString>;
                model: z.ZodOptional<z.ZodString>;
                costUnit: z.ZodOptional<z.ZodString>;
                labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
            }, z.core.$strict>>;
        }, z.core.$strict>, z.ZodObject<{
            name: z.ZodString;
            percentiles: z.ZodArray<z.ZodNumber>;
            source: z.ZodLiteral<"metrics">;
            id: z.ZodOptional<z.ZodString>;
            compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
            request: z.ZodLiteral<"percentiles">;
            interval: z.ZodOptional<z.ZodEnum<{
                "15m": "15m";
                "1d": "1d";
                "1h": "1h";
                "1m": "1m";
                "5m": "5m";
            }>>;
            filters: z.ZodOptional<z.ZodObject<{
                traceId: z.ZodOptional<z.ZodString>;
                spanId: z.ZodOptional<z.ZodString>;
                entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                entityName: z.ZodOptional<z.ZodString>;
                entityVersionId: z.ZodOptional<z.ZodString>;
                parentEntityVersionId: z.ZodOptional<z.ZodString>;
                rootEntityVersionId: z.ZodOptional<z.ZodString>;
                userId: z.ZodOptional<z.ZodString>;
                organizationId: z.ZodOptional<z.ZodString>;
                experimentId: z.ZodOptional<z.ZodString>;
                serviceName: z.ZodOptional<z.ZodString>;
                environment: z.ZodOptional<z.ZodString>;
                parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                parentEntityName: z.ZodOptional<z.ZodString>;
                rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                rootEntityName: z.ZodOptional<z.ZodString>;
                resourceId: z.ZodOptional<z.ZodString>;
                runId: z.ZodOptional<z.ZodString>;
                sessionId: z.ZodOptional<z.ZodString>;
                threadId: z.ZodOptional<z.ZodString>;
                requestId: z.ZodOptional<z.ZodString>;
                executionSource: z.ZodOptional<z.ZodString>;
                tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                source: z.ZodOptional<z.ZodString>;
                provider: z.ZodOptional<z.ZodString>;
                model: z.ZodOptional<z.ZodString>;
                costUnit: z.ZodOptional<z.ZodString>;
                labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
            }, z.core.$strict>>;
        }, z.core.$strict>], "request">, z.ZodDiscriminatedUnion<[z.ZodObject<{
            scoreSource: z.ZodOptional<z.ZodString>;
            aggregation: z.ZodEnum<{
                avg: "avg";
                count: "count";
                count_distinct: "count_distinct";
                last: "last";
                max: "max";
                min: "min";
                sum: "sum";
            }>;
            source: z.ZodLiteral<"scores">;
            id: z.ZodOptional<z.ZodString>;
            compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
            scorerId: z.ZodOptional<z.ZodString>;
            request: z.ZodLiteral<"aggregate">;
            filters: z.ZodOptional<z.ZodObject<{
                traceId: z.ZodOptional<z.ZodString>;
                spanId: z.ZodOptional<z.ZodString>;
                entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                entityName: z.ZodOptional<z.ZodString>;
                entityVersionId: z.ZodOptional<z.ZodString>;
                parentEntityVersionId: z.ZodOptional<z.ZodString>;
                rootEntityVersionId: z.ZodOptional<z.ZodString>;
                userId: z.ZodOptional<z.ZodString>;
                organizationId: z.ZodOptional<z.ZodString>;
                experimentId: z.ZodOptional<z.ZodString>;
                serviceName: z.ZodOptional<z.ZodString>;
                environment: z.ZodOptional<z.ZodString>;
                parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                parentEntityName: z.ZodOptional<z.ZodString>;
                rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                rootEntityName: z.ZodOptional<z.ZodString>;
                resourceId: z.ZodOptional<z.ZodString>;
                runId: z.ZodOptional<z.ZodString>;
                sessionId: z.ZodOptional<z.ZodString>;
                threadId: z.ZodOptional<z.ZodString>;
                requestId: z.ZodOptional<z.ZodString>;
                executionSource: z.ZodOptional<z.ZodString>;
                tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                scoreSource: z.ZodOptional<z.ZodString>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                source: z.ZodOptional<z.ZodString>;
            }, z.core.$strict>>;
        }, z.core.$strict>, z.ZodObject<{
            scoreSource: z.ZodOptional<z.ZodString>;
            groupBy: z.ZodArray<z.ZodString>;
            aggregation: z.ZodEnum<{
                avg: "avg";
                count: "count";
                count_distinct: "count_distinct";
                last: "last";
                max: "max";
                min: "min";
                sum: "sum";
            }>;
            source: z.ZodLiteral<"scores">;
            id: z.ZodOptional<z.ZodString>;
            compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
            scorerId: z.ZodOptional<z.ZodString>;
            request: z.ZodLiteral<"breakdown">;
            filters: z.ZodOptional<z.ZodObject<{
                traceId: z.ZodOptional<z.ZodString>;
                spanId: z.ZodOptional<z.ZodString>;
                entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                entityName: z.ZodOptional<z.ZodString>;
                entityVersionId: z.ZodOptional<z.ZodString>;
                parentEntityVersionId: z.ZodOptional<z.ZodString>;
                rootEntityVersionId: z.ZodOptional<z.ZodString>;
                userId: z.ZodOptional<z.ZodString>;
                organizationId: z.ZodOptional<z.ZodString>;
                experimentId: z.ZodOptional<z.ZodString>;
                serviceName: z.ZodOptional<z.ZodString>;
                environment: z.ZodOptional<z.ZodString>;
                parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                parentEntityName: z.ZodOptional<z.ZodString>;
                rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                rootEntityName: z.ZodOptional<z.ZodString>;
                resourceId: z.ZodOptional<z.ZodString>;
                runId: z.ZodOptional<z.ZodString>;
                sessionId: z.ZodOptional<z.ZodString>;
                threadId: z.ZodOptional<z.ZodString>;
                requestId: z.ZodOptional<z.ZodString>;
                executionSource: z.ZodOptional<z.ZodString>;
                tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                scoreSource: z.ZodOptional<z.ZodString>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                source: z.ZodOptional<z.ZodString>;
            }, z.core.$strict>>;
        }, z.core.$strict>, z.ZodObject<{
            scoreSource: z.ZodOptional<z.ZodString>;
            aggregation: z.ZodEnum<{
                avg: "avg";
                count: "count";
                count_distinct: "count_distinct";
                last: "last";
                max: "max";
                min: "min";
                sum: "sum";
            }>;
            groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
            source: z.ZodLiteral<"scores">;
            id: z.ZodOptional<z.ZodString>;
            compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
            scorerId: z.ZodOptional<z.ZodString>;
            request: z.ZodLiteral<"timeSeries">;
            interval: z.ZodOptional<z.ZodEnum<{
                "15m": "15m";
                "1d": "1d";
                "1h": "1h";
                "1m": "1m";
                "5m": "5m";
            }>>;
            filters: z.ZodOptional<z.ZodObject<{
                traceId: z.ZodOptional<z.ZodString>;
                spanId: z.ZodOptional<z.ZodString>;
                entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                entityName: z.ZodOptional<z.ZodString>;
                entityVersionId: z.ZodOptional<z.ZodString>;
                parentEntityVersionId: z.ZodOptional<z.ZodString>;
                rootEntityVersionId: z.ZodOptional<z.ZodString>;
                userId: z.ZodOptional<z.ZodString>;
                organizationId: z.ZodOptional<z.ZodString>;
                experimentId: z.ZodOptional<z.ZodString>;
                serviceName: z.ZodOptional<z.ZodString>;
                environment: z.ZodOptional<z.ZodString>;
                parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                parentEntityName: z.ZodOptional<z.ZodString>;
                rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                rootEntityName: z.ZodOptional<z.ZodString>;
                resourceId: z.ZodOptional<z.ZodString>;
                runId: z.ZodOptional<z.ZodString>;
                sessionId: z.ZodOptional<z.ZodString>;
                threadId: z.ZodOptional<z.ZodString>;
                requestId: z.ZodOptional<z.ZodString>;
                executionSource: z.ZodOptional<z.ZodString>;
                tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                scoreSource: z.ZodOptional<z.ZodString>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                source: z.ZodOptional<z.ZodString>;
            }, z.core.$strict>>;
        }, z.core.$strict>, z.ZodObject<{
            scoreSource: z.ZodOptional<z.ZodString>;
            percentiles: z.ZodArray<z.ZodNumber>;
            source: z.ZodLiteral<"scores">;
            id: z.ZodOptional<z.ZodString>;
            compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
            scorerId: z.ZodOptional<z.ZodString>;
            request: z.ZodLiteral<"percentiles">;
            interval: z.ZodOptional<z.ZodEnum<{
                "15m": "15m";
                "1d": "1d";
                "1h": "1h";
                "1m": "1m";
                "5m": "5m";
            }>>;
            filters: z.ZodOptional<z.ZodObject<{
                traceId: z.ZodOptional<z.ZodString>;
                spanId: z.ZodOptional<z.ZodString>;
                entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                entityName: z.ZodOptional<z.ZodString>;
                entityVersionId: z.ZodOptional<z.ZodString>;
                parentEntityVersionId: z.ZodOptional<z.ZodString>;
                rootEntityVersionId: z.ZodOptional<z.ZodString>;
                userId: z.ZodOptional<z.ZodString>;
                organizationId: z.ZodOptional<z.ZodString>;
                experimentId: z.ZodOptional<z.ZodString>;
                serviceName: z.ZodOptional<z.ZodString>;
                environment: z.ZodOptional<z.ZodString>;
                parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                parentEntityName: z.ZodOptional<z.ZodString>;
                rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                rootEntityName: z.ZodOptional<z.ZodString>;
                resourceId: z.ZodOptional<z.ZodString>;
                runId: z.ZodOptional<z.ZodString>;
                sessionId: z.ZodOptional<z.ZodString>;
                threadId: z.ZodOptional<z.ZodString>;
                requestId: z.ZodOptional<z.ZodString>;
                executionSource: z.ZodOptional<z.ZodString>;
                tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                scoreSource: z.ZodOptional<z.ZodString>;
                metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                source: z.ZodOptional<z.ZodString>;
            }, z.core.$strict>>;
        }, z.core.$strict>], "request">], "source">, {
            name: string[];
            aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
            distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
            source: "metrics";
            id?: string | undefined;
            compare?: "previousWindow" | undefined;
            request: "aggregate";
            filters?: {
                traceId?: string | undefined;
                spanId?: string | undefined;
                entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                entityName?: string | undefined;
                entityVersionId?: string | undefined;
                parentEntityVersionId?: string | undefined;
                rootEntityVersionId?: string | undefined;
                userId?: string | undefined;
                organizationId?: string | undefined;
                experimentId?: string | undefined;
                serviceName?: string | undefined;
                environment?: string | undefined;
                parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                parentEntityName?: string | undefined;
                rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                rootEntityName?: string | undefined;
                resourceId?: string | undefined;
                runId?: string | undefined;
                sessionId?: string | undefined;
                threadId?: string | undefined;
                requestId?: string | undefined;
                executionSource?: string | undefined;
                tags?: string[] | undefined;
                traceIds?: string[] | undefined;
                experimentIds?: string[] | undefined;
                name?: string[] | undefined;
                source?: string | undefined;
                provider?: string | undefined;
                model?: string | undefined;
                costUnit?: string | undefined;
                labels?: Record<string, string> | undefined;
            } | undefined;
        } | {
            name: string[];
            groupBy: string[];
            aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
            distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
            limit?: number | undefined;
            orderDirection?: "ASC" | "DESC" | undefined;
            source: "metrics";
            id?: string | undefined;
            compare?: "previousWindow" | undefined;
            request: "breakdown";
            filters?: {
                traceId?: string | undefined;
                spanId?: string | undefined;
                entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                entityName?: string | undefined;
                entityVersionId?: string | undefined;
                parentEntityVersionId?: string | undefined;
                rootEntityVersionId?: string | undefined;
                userId?: string | undefined;
                organizationId?: string | undefined;
                experimentId?: string | undefined;
                serviceName?: string | undefined;
                environment?: string | undefined;
                parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                parentEntityName?: string | undefined;
                rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                rootEntityName?: string | undefined;
                resourceId?: string | undefined;
                runId?: string | undefined;
                sessionId?: string | undefined;
                threadId?: string | undefined;
                requestId?: string | undefined;
                executionSource?: string | undefined;
                tags?: string[] | undefined;
                traceIds?: string[] | undefined;
                experimentIds?: string[] | undefined;
                name?: string[] | undefined;
                source?: string | undefined;
                provider?: string | undefined;
                model?: string | undefined;
                costUnit?: string | undefined;
                labels?: Record<string, string> | undefined;
            } | undefined;
        } | {
            name: string[];
            aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
            distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
            groupBy?: string[] | undefined;
            source: "metrics";
            id?: string | undefined;
            compare?: "previousWindow" | undefined;
            request: "timeSeries";
            interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
            filters?: {
                traceId?: string | undefined;
                spanId?: string | undefined;
                entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                entityName?: string | undefined;
                entityVersionId?: string | undefined;
                parentEntityVersionId?: string | undefined;
                rootEntityVersionId?: string | undefined;
                userId?: string | undefined;
                organizationId?: string | undefined;
                experimentId?: string | undefined;
                serviceName?: string | undefined;
                environment?: string | undefined;
                parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                parentEntityName?: string | undefined;
                rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                rootEntityName?: string | undefined;
                resourceId?: string | undefined;
                runId?: string | undefined;
                sessionId?: string | undefined;
                threadId?: string | undefined;
                requestId?: string | undefined;
                executionSource?: string | undefined;
                tags?: string[] | undefined;
                traceIds?: string[] | undefined;
                experimentIds?: string[] | undefined;
                name?: string[] | undefined;
                source?: string | undefined;
                provider?: string | undefined;
                model?: string | undefined;
                costUnit?: string | undefined;
                labels?: Record<string, string> | undefined;
            } | undefined;
        } | {
            name: string;
            percentiles: number[];
            source: "metrics";
            id?: string | undefined;
            compare?: "previousWindow" | undefined;
            request: "percentiles";
            interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
            filters?: {
                traceId?: string | undefined;
                spanId?: string | undefined;
                entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                entityName?: string | undefined;
                entityVersionId?: string | undefined;
                parentEntityVersionId?: string | undefined;
                rootEntityVersionId?: string | undefined;
                userId?: string | undefined;
                organizationId?: string | undefined;
                experimentId?: string | undefined;
                serviceName?: string | undefined;
                environment?: string | undefined;
                parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                parentEntityName?: string | undefined;
                rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                rootEntityName?: string | undefined;
                resourceId?: string | undefined;
                runId?: string | undefined;
                sessionId?: string | undefined;
                threadId?: string | undefined;
                requestId?: string | undefined;
                executionSource?: string | undefined;
                tags?: string[] | undefined;
                traceIds?: string[] | undefined;
                experimentIds?: string[] | undefined;
                name?: string[] | undefined;
                source?: string | undefined;
                provider?: string | undefined;
                model?: string | undefined;
                costUnit?: string | undefined;
                labels?: Record<string, string> | undefined;
            } | undefined;
        } | {
            scoreSource?: string | undefined;
            aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
            source: "scores";
            id?: string | undefined;
            compare?: "previousWindow" | undefined;
            scorerId?: string | undefined;
            request: "aggregate";
            filters?: {
                traceId?: string | undefined;
                spanId?: string | undefined;
                entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                entityName?: string | undefined;
                entityVersionId?: string | undefined;
                parentEntityVersionId?: string | undefined;
                rootEntityVersionId?: string | undefined;
                userId?: string | undefined;
                organizationId?: string | undefined;
                experimentId?: string | undefined;
                serviceName?: string | undefined;
                environment?: string | undefined;
                parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                parentEntityName?: string | undefined;
                rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                rootEntityName?: string | undefined;
                resourceId?: string | undefined;
                runId?: string | undefined;
                sessionId?: string | undefined;
                threadId?: string | undefined;
                requestId?: string | undefined;
                executionSource?: string | undefined;
                tags?: string[] | undefined;
                scorerId?: string | string[] | undefined;
                scoreSource?: string | undefined;
                metadata?: Record<string, unknown> | null | undefined;
                source?: string | undefined;
            } | undefined;
        } | {
            scoreSource?: string | undefined;
            groupBy: string[];
            aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
            source: "scores";
            id?: string | undefined;
            compare?: "previousWindow" | undefined;
            scorerId?: string | undefined;
            request: "breakdown";
            filters?: {
                traceId?: string | undefined;
                spanId?: string | undefined;
                entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                entityName?: string | undefined;
                entityVersionId?: string | undefined;
                parentEntityVersionId?: string | undefined;
                rootEntityVersionId?: string | undefined;
                userId?: string | undefined;
                organizationId?: string | undefined;
                experimentId?: string | undefined;
                serviceName?: string | undefined;
                environment?: string | undefined;
                parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                parentEntityName?: string | undefined;
                rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                rootEntityName?: string | undefined;
                resourceId?: string | undefined;
                runId?: string | undefined;
                sessionId?: string | undefined;
                threadId?: string | undefined;
                requestId?: string | undefined;
                executionSource?: string | undefined;
                tags?: string[] | undefined;
                scorerId?: string | string[] | undefined;
                scoreSource?: string | undefined;
                metadata?: Record<string, unknown> | null | undefined;
                source?: string | undefined;
            } | undefined;
        } | {
            scoreSource?: string | undefined;
            aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
            groupBy?: string[] | undefined;
            source: "scores";
            id?: string | undefined;
            compare?: "previousWindow" | undefined;
            scorerId?: string | undefined;
            request: "timeSeries";
            interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
            filters?: {
                traceId?: string | undefined;
                spanId?: string | undefined;
                entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                entityName?: string | undefined;
                entityVersionId?: string | undefined;
                parentEntityVersionId?: string | undefined;
                rootEntityVersionId?: string | undefined;
                userId?: string | undefined;
                organizationId?: string | undefined;
                experimentId?: string | undefined;
                serviceName?: string | undefined;
                environment?: string | undefined;
                parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                parentEntityName?: string | undefined;
                rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                rootEntityName?: string | undefined;
                resourceId?: string | undefined;
                runId?: string | undefined;
                sessionId?: string | undefined;
                threadId?: string | undefined;
                requestId?: string | undefined;
                executionSource?: string | undefined;
                tags?: string[] | undefined;
                scorerId?: string | string[] | undefined;
                scoreSource?: string | undefined;
                metadata?: Record<string, unknown> | null | undefined;
                source?: string | undefined;
            } | undefined;
        } | {
            scoreSource?: string | undefined;
            percentiles: number[];
            source: "scores";
            id?: string | undefined;
            compare?: "previousWindow" | undefined;
            scorerId?: string | undefined;
            request: "percentiles";
            interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
            filters?: {
                traceId?: string | undefined;
                spanId?: string | undefined;
                entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                entityName?: string | undefined;
                entityVersionId?: string | undefined;
                parentEntityVersionId?: string | undefined;
                rootEntityVersionId?: string | undefined;
                userId?: string | undefined;
                organizationId?: string | undefined;
                experimentId?: string | undefined;
                serviceName?: string | undefined;
                environment?: string | undefined;
                parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                parentEntityName?: string | undefined;
                rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                rootEntityName?: string | undefined;
                resourceId?: string | undefined;
                runId?: string | undefined;
                sessionId?: string | undefined;
                threadId?: string | undefined;
                requestId?: string | undefined;
                executionSource?: string | undefined;
                tags?: string[] | undefined;
                scorerId?: string | string[] | undefined;
                scoreSource?: string | undefined;
                metadata?: Record<string, unknown> | null | undefined;
                source?: string | undefined;
            } | undefined;
        } | {
            where?: import("../..").TraceQueryPredicate | undefined;
            groupBy?: string[] | undefined;
            interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
            measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
            having?: import("../..").TraceQueryScalarPredicate | undefined;
            orderBy?: {
                field: string;
                direction: "asc" | "desc";
            } | undefined;
            limit?: number | undefined;
            source: "traceAggregate";
            id?: string | undefined;
            compare?: "previousWindow" | undefined;
        } | {
            where?: import("../..").TraceQueryScalarPredicate | undefined;
            groupBy?: string[] | undefined;
            interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
            measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
            having?: import("../..").TraceQueryScalarPredicate | undefined;
            orderBy?: {
                field: string;
                direction: "asc" | "desc";
            } | undefined;
            limit?: number | undefined;
            source: "spanAggregate";
            id?: string | undefined;
            compare?: "previousWindow" | undefined;
        }>>;
        columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            label: z.ZodOptional<z.ZodString>;
            scope: z.ZodOptional<z.ZodEnum<{
                org: "org";
                project: "project";
            }>>;
            options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        }, z.core.$strict>>>;
        options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        drilldown: z.ZodOptional<z.ZodObject<{
            action: z.ZodOptional<z.ZodObject<{
                page: z.ZodEnum<{
                    logs: "logs";
                    spans: "spans";
                    threads: "threads";
                    traces: "traces";
                }>;
                filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
            }, z.core.$strict>>;
            click: z.ZodOptional<z.ZodObject<{
                page: z.ZodEnum<{
                    logs: "logs";
                    spans: "spans";
                    threads: "threads";
                    traces: "traces";
                }>;
                filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
            }, z.core.$strict>>;
        }, z.core.$strict>>;
        scope: z.ZodOptional<z.ZodEnum<{
            org: "org";
            project: "project";
        }>>;
    }, z.core.$strict>>;
    drilldown: z.ZodOptional<z.ZodObject<{
        action: z.ZodOptional<z.ZodObject<{
            page: z.ZodEnum<{
                logs: "logs";
                spans: "spans";
                threads: "threads";
                traces: "traces";
            }>;
            filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
        }, z.core.$strict>>;
        click: z.ZodOptional<z.ZodObject<{
            page: z.ZodEnum<{
                logs: "logs";
                spans: "spans";
                threads: "threads";
                traces: "traces";
            }>;
            filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
        }, z.core.$strict>>;
    }, z.core.$strict>>;
    scope: z.ZodOptional<z.ZodEnum<{
        org: "org";
        project: "project";
    }>>;
}, z.core.$strict>;
export declare const dashboardRowSchema: z.ZodObject<{
    widgets: z.ZodArray<z.ZodObject<{
        id: z.ZodString;
        span: z.ZodLiteral<1 | 2 | 3 | 4 | 6 | 12>;
        kind: z.ZodString;
        title: z.ZodOptional<z.ZodString>;
        description: z.ZodOptional<z.ZodString>;
        views: z.ZodArray<z.ZodObject<{
            label: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            queries: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
                where: z.ZodOptional<z.ZodType<import("../..").TraceQueryPredicate, import("../..").TraceQueryPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryPredicate, import("../..").TraceQueryPredicate>>>;
                groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
                interval: z.ZodOptional<z.ZodEnum<{
                    "15m": "15m";
                    "1d": "1d";
                    "1h": "1h";
                    "1m": "1m";
                    "5m": "5m";
                }>>;
                measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
                    "cost.avg": "cost.avg";
                    "cost.sum": "cost.sum";
                    count: "count";
                    "duration.avg": "duration.avg";
                    "duration.max": "duration.max";
                    "duration.min": "duration.min";
                    "duration.p50": "duration.p50";
                    "duration.p90": "duration.p90";
                    "duration.p95": "duration.p95";
                    "duration.p99": "duration.p99";
                    errorCount: "errorCount";
                    errorRate: "errorRate";
                    "timeToFirstChunk.avg": "timeToFirstChunk.avg";
                    "timeToFirstChunk.count": "timeToFirstChunk.count";
                    "timeToFirstChunk.max": "timeToFirstChunk.max";
                    "timeToFirstChunk.min": "timeToFirstChunk.min";
                    "timeToFirstChunk.p50": "timeToFirstChunk.p50";
                    "timeToFirstChunk.p90": "timeToFirstChunk.p90";
                    "timeToFirstChunk.p95": "timeToFirstChunk.p95";
                    "timeToFirstChunk.p99": "timeToFirstChunk.p99";
                    "timeToFirstToken.avg": "timeToFirstToken.avg";
                    "timeToFirstToken.count": "timeToFirstToken.count";
                    "timeToFirstToken.max": "timeToFirstToken.max";
                    "timeToFirstToken.min": "timeToFirstToken.min";
                    "timeToFirstToken.p50": "timeToFirstToken.p50";
                    "timeToFirstToken.p90": "timeToFirstToken.p90";
                    "timeToFirstToken.p95": "timeToFirstToken.p95";
                    "timeToFirstToken.p99": "timeToFirstToken.p99";
                    "tokens.cached.avg": "tokens.cached.avg";
                    "tokens.cached.sum": "tokens.cached.sum";
                    "tokens.input.avg": "tokens.input.avg";
                    "tokens.input.sum": "tokens.input.sum";
                    "tokens.output.avg": "tokens.output.avg";
                    "tokens.output.sum": "tokens.output.sum";
                    "tokens.reasoning.avg": "tokens.reasoning.avg";
                    "tokens.reasoning.sum": "tokens.reasoning.sum";
                    "tokens.total.avg": "tokens.total.avg";
                    "tokens.total.sum": "tokens.total.sum";
                }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
                having: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
                orderBy: z.ZodDefault<z.ZodObject<{
                    field: z.ZodString;
                    direction: z.ZodEnum<{
                        asc: "asc";
                        desc: "desc";
                    }>;
                }, z.core.$strict>>;
                limit: z.ZodDefault<z.ZodNumber>;
                source: z.ZodLiteral<"traceAggregate">;
                id: z.ZodOptional<z.ZodString>;
                compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
            }, z.core.$strict>, z.ZodObject<{
                where: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
                groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
                interval: z.ZodOptional<z.ZodEnum<{
                    "15m": "15m";
                    "1d": "1d";
                    "1h": "1h";
                    "1m": "1m";
                    "5m": "5m";
                }>>;
                measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
                    "cost.avg": "cost.avg";
                    "cost.sum": "cost.sum";
                    count: "count";
                    "duration.avg": "duration.avg";
                    "duration.max": "duration.max";
                    "duration.min": "duration.min";
                    "duration.p50": "duration.p50";
                    "duration.p90": "duration.p90";
                    "duration.p95": "duration.p95";
                    "duration.p99": "duration.p99";
                    errorCount: "errorCount";
                    errorRate: "errorRate";
                    "timeToFirstChunk.avg": "timeToFirstChunk.avg";
                    "timeToFirstChunk.count": "timeToFirstChunk.count";
                    "timeToFirstChunk.max": "timeToFirstChunk.max";
                    "timeToFirstChunk.min": "timeToFirstChunk.min";
                    "timeToFirstChunk.p50": "timeToFirstChunk.p50";
                    "timeToFirstChunk.p90": "timeToFirstChunk.p90";
                    "timeToFirstChunk.p95": "timeToFirstChunk.p95";
                    "timeToFirstChunk.p99": "timeToFirstChunk.p99";
                    "timeToFirstToken.avg": "timeToFirstToken.avg";
                    "timeToFirstToken.count": "timeToFirstToken.count";
                    "timeToFirstToken.max": "timeToFirstToken.max";
                    "timeToFirstToken.min": "timeToFirstToken.min";
                    "timeToFirstToken.p50": "timeToFirstToken.p50";
                    "timeToFirstToken.p90": "timeToFirstToken.p90";
                    "timeToFirstToken.p95": "timeToFirstToken.p95";
                    "timeToFirstToken.p99": "timeToFirstToken.p99";
                    "tokens.cached.avg": "tokens.cached.avg";
                    "tokens.cached.sum": "tokens.cached.sum";
                    "tokens.input.avg": "tokens.input.avg";
                    "tokens.input.sum": "tokens.input.sum";
                    "tokens.output.avg": "tokens.output.avg";
                    "tokens.output.sum": "tokens.output.sum";
                    "tokens.reasoning.avg": "tokens.reasoning.avg";
                    "tokens.reasoning.sum": "tokens.reasoning.sum";
                    "tokens.total.avg": "tokens.total.avg";
                    "tokens.total.sum": "tokens.total.sum";
                }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
                having: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
                orderBy: z.ZodDefault<z.ZodObject<{
                    field: z.ZodString;
                    direction: z.ZodEnum<{
                        asc: "asc";
                        desc: "desc";
                    }>;
                }, z.core.$strict>>;
                limit: z.ZodDefault<z.ZodNumber>;
                source: z.ZodLiteral<"spanAggregate">;
                id: z.ZodOptional<z.ZodString>;
                compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
            }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
                name: z.ZodArray<z.ZodString>;
                aggregation: z.ZodEnum<{
                    avg: "avg";
                    count: "count";
                    count_distinct: "count_distinct";
                    last: "last";
                    max: "max";
                    min: "min";
                    sum: "sum";
                }>;
                distinctColumn: z.ZodOptional<z.ZodEnum<{
                    entityName: "entityName";
                    entityType: "entityType";
                    environment: "environment";
                    executionSource: "executionSource";
                    model: "model";
                    name: "name";
                    parentEntityName: "parentEntityName";
                    parentEntityType: "parentEntityType";
                    provider: "provider";
                    resourceId: "resourceId";
                    rootEntityName: "rootEntityName";
                    rootEntityType: "rootEntityType";
                    serviceName: "serviceName";
                    threadId: "threadId";
                }>>;
                source: z.ZodLiteral<"metrics">;
                id: z.ZodOptional<z.ZodString>;
                compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                request: z.ZodLiteral<"aggregate">;
                filters: z.ZodOptional<z.ZodObject<{
                    traceId: z.ZodOptional<z.ZodString>;
                    spanId: z.ZodOptional<z.ZodString>;
                    entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    entityName: z.ZodOptional<z.ZodString>;
                    entityVersionId: z.ZodOptional<z.ZodString>;
                    parentEntityVersionId: z.ZodOptional<z.ZodString>;
                    rootEntityVersionId: z.ZodOptional<z.ZodString>;
                    userId: z.ZodOptional<z.ZodString>;
                    organizationId: z.ZodOptional<z.ZodString>;
                    experimentId: z.ZodOptional<z.ZodString>;
                    serviceName: z.ZodOptional<z.ZodString>;
                    environment: z.ZodOptional<z.ZodString>;
                    parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    parentEntityName: z.ZodOptional<z.ZodString>;
                    rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    rootEntityName: z.ZodOptional<z.ZodString>;
                    resourceId: z.ZodOptional<z.ZodString>;
                    runId: z.ZodOptional<z.ZodString>;
                    sessionId: z.ZodOptional<z.ZodString>;
                    threadId: z.ZodOptional<z.ZodString>;
                    requestId: z.ZodOptional<z.ZodString>;
                    executionSource: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    source: z.ZodOptional<z.ZodString>;
                    provider: z.ZodOptional<z.ZodString>;
                    model: z.ZodOptional<z.ZodString>;
                    costUnit: z.ZodOptional<z.ZodString>;
                    labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strict>>;
            }, z.core.$strict>, z.ZodObject<{
                name: z.ZodArray<z.ZodString>;
                groupBy: z.ZodArray<z.ZodString>;
                aggregation: z.ZodEnum<{
                    avg: "avg";
                    count: "count";
                    count_distinct: "count_distinct";
                    last: "last";
                    max: "max";
                    min: "min";
                    sum: "sum";
                }>;
                distinctColumn: z.ZodOptional<z.ZodEnum<{
                    entityName: "entityName";
                    entityType: "entityType";
                    environment: "environment";
                    executionSource: "executionSource";
                    model: "model";
                    name: "name";
                    parentEntityName: "parentEntityName";
                    parentEntityType: "parentEntityType";
                    provider: "provider";
                    resourceId: "resourceId";
                    rootEntityName: "rootEntityName";
                    rootEntityType: "rootEntityType";
                    serviceName: "serviceName";
                    threadId: "threadId";
                }>>;
                limit: z.ZodOptional<z.ZodNumber>;
                orderDirection: z.ZodOptional<z.ZodEnum<{
                    ASC: "ASC";
                    DESC: "DESC";
                }>>;
                source: z.ZodLiteral<"metrics">;
                id: z.ZodOptional<z.ZodString>;
                compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                request: z.ZodLiteral<"breakdown">;
                filters: z.ZodOptional<z.ZodObject<{
                    traceId: z.ZodOptional<z.ZodString>;
                    spanId: z.ZodOptional<z.ZodString>;
                    entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    entityName: z.ZodOptional<z.ZodString>;
                    entityVersionId: z.ZodOptional<z.ZodString>;
                    parentEntityVersionId: z.ZodOptional<z.ZodString>;
                    rootEntityVersionId: z.ZodOptional<z.ZodString>;
                    userId: z.ZodOptional<z.ZodString>;
                    organizationId: z.ZodOptional<z.ZodString>;
                    experimentId: z.ZodOptional<z.ZodString>;
                    serviceName: z.ZodOptional<z.ZodString>;
                    environment: z.ZodOptional<z.ZodString>;
                    parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    parentEntityName: z.ZodOptional<z.ZodString>;
                    rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    rootEntityName: z.ZodOptional<z.ZodString>;
                    resourceId: z.ZodOptional<z.ZodString>;
                    runId: z.ZodOptional<z.ZodString>;
                    sessionId: z.ZodOptional<z.ZodString>;
                    threadId: z.ZodOptional<z.ZodString>;
                    requestId: z.ZodOptional<z.ZodString>;
                    executionSource: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    source: z.ZodOptional<z.ZodString>;
                    provider: z.ZodOptional<z.ZodString>;
                    model: z.ZodOptional<z.ZodString>;
                    costUnit: z.ZodOptional<z.ZodString>;
                    labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strict>>;
            }, z.core.$strict>, z.ZodObject<{
                name: z.ZodArray<z.ZodString>;
                aggregation: z.ZodEnum<{
                    avg: "avg";
                    count: "count";
                    count_distinct: "count_distinct";
                    last: "last";
                    max: "max";
                    min: "min";
                    sum: "sum";
                }>;
                distinctColumn: z.ZodOptional<z.ZodEnum<{
                    entityName: "entityName";
                    entityType: "entityType";
                    environment: "environment";
                    executionSource: "executionSource";
                    model: "model";
                    name: "name";
                    parentEntityName: "parentEntityName";
                    parentEntityType: "parentEntityType";
                    provider: "provider";
                    resourceId: "resourceId";
                    rootEntityName: "rootEntityName";
                    rootEntityType: "rootEntityType";
                    serviceName: "serviceName";
                    threadId: "threadId";
                }>>;
                groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
                source: z.ZodLiteral<"metrics">;
                id: z.ZodOptional<z.ZodString>;
                compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                request: z.ZodLiteral<"timeSeries">;
                interval: z.ZodOptional<z.ZodEnum<{
                    "15m": "15m";
                    "1d": "1d";
                    "1h": "1h";
                    "1m": "1m";
                    "5m": "5m";
                }>>;
                filters: z.ZodOptional<z.ZodObject<{
                    traceId: z.ZodOptional<z.ZodString>;
                    spanId: z.ZodOptional<z.ZodString>;
                    entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    entityName: z.ZodOptional<z.ZodString>;
                    entityVersionId: z.ZodOptional<z.ZodString>;
                    parentEntityVersionId: z.ZodOptional<z.ZodString>;
                    rootEntityVersionId: z.ZodOptional<z.ZodString>;
                    userId: z.ZodOptional<z.ZodString>;
                    organizationId: z.ZodOptional<z.ZodString>;
                    experimentId: z.ZodOptional<z.ZodString>;
                    serviceName: z.ZodOptional<z.ZodString>;
                    environment: z.ZodOptional<z.ZodString>;
                    parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    parentEntityName: z.ZodOptional<z.ZodString>;
                    rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    rootEntityName: z.ZodOptional<z.ZodString>;
                    resourceId: z.ZodOptional<z.ZodString>;
                    runId: z.ZodOptional<z.ZodString>;
                    sessionId: z.ZodOptional<z.ZodString>;
                    threadId: z.ZodOptional<z.ZodString>;
                    requestId: z.ZodOptional<z.ZodString>;
                    executionSource: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    source: z.ZodOptional<z.ZodString>;
                    provider: z.ZodOptional<z.ZodString>;
                    model: z.ZodOptional<z.ZodString>;
                    costUnit: z.ZodOptional<z.ZodString>;
                    labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strict>>;
            }, z.core.$strict>, z.ZodObject<{
                name: z.ZodString;
                percentiles: z.ZodArray<z.ZodNumber>;
                source: z.ZodLiteral<"metrics">;
                id: z.ZodOptional<z.ZodString>;
                compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                request: z.ZodLiteral<"percentiles">;
                interval: z.ZodOptional<z.ZodEnum<{
                    "15m": "15m";
                    "1d": "1d";
                    "1h": "1h";
                    "1m": "1m";
                    "5m": "5m";
                }>>;
                filters: z.ZodOptional<z.ZodObject<{
                    traceId: z.ZodOptional<z.ZodString>;
                    spanId: z.ZodOptional<z.ZodString>;
                    entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    entityName: z.ZodOptional<z.ZodString>;
                    entityVersionId: z.ZodOptional<z.ZodString>;
                    parentEntityVersionId: z.ZodOptional<z.ZodString>;
                    rootEntityVersionId: z.ZodOptional<z.ZodString>;
                    userId: z.ZodOptional<z.ZodString>;
                    organizationId: z.ZodOptional<z.ZodString>;
                    experimentId: z.ZodOptional<z.ZodString>;
                    serviceName: z.ZodOptional<z.ZodString>;
                    environment: z.ZodOptional<z.ZodString>;
                    parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    parentEntityName: z.ZodOptional<z.ZodString>;
                    rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    rootEntityName: z.ZodOptional<z.ZodString>;
                    resourceId: z.ZodOptional<z.ZodString>;
                    runId: z.ZodOptional<z.ZodString>;
                    sessionId: z.ZodOptional<z.ZodString>;
                    threadId: z.ZodOptional<z.ZodString>;
                    requestId: z.ZodOptional<z.ZodString>;
                    executionSource: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    source: z.ZodOptional<z.ZodString>;
                    provider: z.ZodOptional<z.ZodString>;
                    model: z.ZodOptional<z.ZodString>;
                    costUnit: z.ZodOptional<z.ZodString>;
                    labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                }, z.core.$strict>>;
            }, z.core.$strict>], "request">, z.ZodDiscriminatedUnion<[z.ZodObject<{
                scoreSource: z.ZodOptional<z.ZodString>;
                aggregation: z.ZodEnum<{
                    avg: "avg";
                    count: "count";
                    count_distinct: "count_distinct";
                    last: "last";
                    max: "max";
                    min: "min";
                    sum: "sum";
                }>;
                source: z.ZodLiteral<"scores">;
                id: z.ZodOptional<z.ZodString>;
                compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                scorerId: z.ZodOptional<z.ZodString>;
                request: z.ZodLiteral<"aggregate">;
                filters: z.ZodOptional<z.ZodObject<{
                    traceId: z.ZodOptional<z.ZodString>;
                    spanId: z.ZodOptional<z.ZodString>;
                    entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    entityName: z.ZodOptional<z.ZodString>;
                    entityVersionId: z.ZodOptional<z.ZodString>;
                    parentEntityVersionId: z.ZodOptional<z.ZodString>;
                    rootEntityVersionId: z.ZodOptional<z.ZodString>;
                    userId: z.ZodOptional<z.ZodString>;
                    organizationId: z.ZodOptional<z.ZodString>;
                    experimentId: z.ZodOptional<z.ZodString>;
                    serviceName: z.ZodOptional<z.ZodString>;
                    environment: z.ZodOptional<z.ZodString>;
                    parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    parentEntityName: z.ZodOptional<z.ZodString>;
                    rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    rootEntityName: z.ZodOptional<z.ZodString>;
                    resourceId: z.ZodOptional<z.ZodString>;
                    runId: z.ZodOptional<z.ZodString>;
                    sessionId: z.ZodOptional<z.ZodString>;
                    threadId: z.ZodOptional<z.ZodString>;
                    requestId: z.ZodOptional<z.ZodString>;
                    executionSource: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                    scoreSource: z.ZodOptional<z.ZodString>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                    source: z.ZodOptional<z.ZodString>;
                }, z.core.$strict>>;
            }, z.core.$strict>, z.ZodObject<{
                scoreSource: z.ZodOptional<z.ZodString>;
                groupBy: z.ZodArray<z.ZodString>;
                aggregation: z.ZodEnum<{
                    avg: "avg";
                    count: "count";
                    count_distinct: "count_distinct";
                    last: "last";
                    max: "max";
                    min: "min";
                    sum: "sum";
                }>;
                source: z.ZodLiteral<"scores">;
                id: z.ZodOptional<z.ZodString>;
                compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                scorerId: z.ZodOptional<z.ZodString>;
                request: z.ZodLiteral<"breakdown">;
                filters: z.ZodOptional<z.ZodObject<{
                    traceId: z.ZodOptional<z.ZodString>;
                    spanId: z.ZodOptional<z.ZodString>;
                    entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    entityName: z.ZodOptional<z.ZodString>;
                    entityVersionId: z.ZodOptional<z.ZodString>;
                    parentEntityVersionId: z.ZodOptional<z.ZodString>;
                    rootEntityVersionId: z.ZodOptional<z.ZodString>;
                    userId: z.ZodOptional<z.ZodString>;
                    organizationId: z.ZodOptional<z.ZodString>;
                    experimentId: z.ZodOptional<z.ZodString>;
                    serviceName: z.ZodOptional<z.ZodString>;
                    environment: z.ZodOptional<z.ZodString>;
                    parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    parentEntityName: z.ZodOptional<z.ZodString>;
                    rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    rootEntityName: z.ZodOptional<z.ZodString>;
                    resourceId: z.ZodOptional<z.ZodString>;
                    runId: z.ZodOptional<z.ZodString>;
                    sessionId: z.ZodOptional<z.ZodString>;
                    threadId: z.ZodOptional<z.ZodString>;
                    requestId: z.ZodOptional<z.ZodString>;
                    executionSource: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                    scoreSource: z.ZodOptional<z.ZodString>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                    source: z.ZodOptional<z.ZodString>;
                }, z.core.$strict>>;
            }, z.core.$strict>, z.ZodObject<{
                scoreSource: z.ZodOptional<z.ZodString>;
                aggregation: z.ZodEnum<{
                    avg: "avg";
                    count: "count";
                    count_distinct: "count_distinct";
                    last: "last";
                    max: "max";
                    min: "min";
                    sum: "sum";
                }>;
                groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
                source: z.ZodLiteral<"scores">;
                id: z.ZodOptional<z.ZodString>;
                compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                scorerId: z.ZodOptional<z.ZodString>;
                request: z.ZodLiteral<"timeSeries">;
                interval: z.ZodOptional<z.ZodEnum<{
                    "15m": "15m";
                    "1d": "1d";
                    "1h": "1h";
                    "1m": "1m";
                    "5m": "5m";
                }>>;
                filters: z.ZodOptional<z.ZodObject<{
                    traceId: z.ZodOptional<z.ZodString>;
                    spanId: z.ZodOptional<z.ZodString>;
                    entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    entityName: z.ZodOptional<z.ZodString>;
                    entityVersionId: z.ZodOptional<z.ZodString>;
                    parentEntityVersionId: z.ZodOptional<z.ZodString>;
                    rootEntityVersionId: z.ZodOptional<z.ZodString>;
                    userId: z.ZodOptional<z.ZodString>;
                    organizationId: z.ZodOptional<z.ZodString>;
                    experimentId: z.ZodOptional<z.ZodString>;
                    serviceName: z.ZodOptional<z.ZodString>;
                    environment: z.ZodOptional<z.ZodString>;
                    parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    parentEntityName: z.ZodOptional<z.ZodString>;
                    rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    rootEntityName: z.ZodOptional<z.ZodString>;
                    resourceId: z.ZodOptional<z.ZodString>;
                    runId: z.ZodOptional<z.ZodString>;
                    sessionId: z.ZodOptional<z.ZodString>;
                    threadId: z.ZodOptional<z.ZodString>;
                    requestId: z.ZodOptional<z.ZodString>;
                    executionSource: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                    scoreSource: z.ZodOptional<z.ZodString>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                    source: z.ZodOptional<z.ZodString>;
                }, z.core.$strict>>;
            }, z.core.$strict>, z.ZodObject<{
                scoreSource: z.ZodOptional<z.ZodString>;
                percentiles: z.ZodArray<z.ZodNumber>;
                source: z.ZodLiteral<"scores">;
                id: z.ZodOptional<z.ZodString>;
                compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                scorerId: z.ZodOptional<z.ZodString>;
                request: z.ZodLiteral<"percentiles">;
                interval: z.ZodOptional<z.ZodEnum<{
                    "15m": "15m";
                    "1d": "1d";
                    "1h": "1h";
                    "1m": "1m";
                    "5m": "5m";
                }>>;
                filters: z.ZodOptional<z.ZodObject<{
                    traceId: z.ZodOptional<z.ZodString>;
                    spanId: z.ZodOptional<z.ZodString>;
                    entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    entityName: z.ZodOptional<z.ZodString>;
                    entityVersionId: z.ZodOptional<z.ZodString>;
                    parentEntityVersionId: z.ZodOptional<z.ZodString>;
                    rootEntityVersionId: z.ZodOptional<z.ZodString>;
                    userId: z.ZodOptional<z.ZodString>;
                    organizationId: z.ZodOptional<z.ZodString>;
                    experimentId: z.ZodOptional<z.ZodString>;
                    serviceName: z.ZodOptional<z.ZodString>;
                    environment: z.ZodOptional<z.ZodString>;
                    parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    parentEntityName: z.ZodOptional<z.ZodString>;
                    rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                    rootEntityName: z.ZodOptional<z.ZodString>;
                    resourceId: z.ZodOptional<z.ZodString>;
                    runId: z.ZodOptional<z.ZodString>;
                    sessionId: z.ZodOptional<z.ZodString>;
                    threadId: z.ZodOptional<z.ZodString>;
                    requestId: z.ZodOptional<z.ZodString>;
                    executionSource: z.ZodOptional<z.ZodString>;
                    tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                    scoreSource: z.ZodOptional<z.ZodString>;
                    metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                    source: z.ZodOptional<z.ZodString>;
                }, z.core.$strict>>;
            }, z.core.$strict>], "request">], "source">, {
                name: string[];
                aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
                source: "metrics";
                id?: string | undefined;
                compare?: "previousWindow" | undefined;
                request: "aggregate";
                filters?: {
                    traceId?: string | undefined;
                    spanId?: string | undefined;
                    entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    entityName?: string | undefined;
                    entityVersionId?: string | undefined;
                    parentEntityVersionId?: string | undefined;
                    rootEntityVersionId?: string | undefined;
                    userId?: string | undefined;
                    organizationId?: string | undefined;
                    experimentId?: string | undefined;
                    serviceName?: string | undefined;
                    environment?: string | undefined;
                    parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    parentEntityName?: string | undefined;
                    rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    rootEntityName?: string | undefined;
                    resourceId?: string | undefined;
                    runId?: string | undefined;
                    sessionId?: string | undefined;
                    threadId?: string | undefined;
                    requestId?: string | undefined;
                    executionSource?: string | undefined;
                    tags?: string[] | undefined;
                    traceIds?: string[] | undefined;
                    experimentIds?: string[] | undefined;
                    name?: string[] | undefined;
                    source?: string | undefined;
                    provider?: string | undefined;
                    model?: string | undefined;
                    costUnit?: string | undefined;
                    labels?: Record<string, string> | undefined;
                } | undefined;
            } | {
                name: string[];
                groupBy: string[];
                aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
                limit?: number | undefined;
                orderDirection?: "ASC" | "DESC" | undefined;
                source: "metrics";
                id?: string | undefined;
                compare?: "previousWindow" | undefined;
                request: "breakdown";
                filters?: {
                    traceId?: string | undefined;
                    spanId?: string | undefined;
                    entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    entityName?: string | undefined;
                    entityVersionId?: string | undefined;
                    parentEntityVersionId?: string | undefined;
                    rootEntityVersionId?: string | undefined;
                    userId?: string | undefined;
                    organizationId?: string | undefined;
                    experimentId?: string | undefined;
                    serviceName?: string | undefined;
                    environment?: string | undefined;
                    parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    parentEntityName?: string | undefined;
                    rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    rootEntityName?: string | undefined;
                    resourceId?: string | undefined;
                    runId?: string | undefined;
                    sessionId?: string | undefined;
                    threadId?: string | undefined;
                    requestId?: string | undefined;
                    executionSource?: string | undefined;
                    tags?: string[] | undefined;
                    traceIds?: string[] | undefined;
                    experimentIds?: string[] | undefined;
                    name?: string[] | undefined;
                    source?: string | undefined;
                    provider?: string | undefined;
                    model?: string | undefined;
                    costUnit?: string | undefined;
                    labels?: Record<string, string> | undefined;
                } | undefined;
            } | {
                name: string[];
                aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
                groupBy?: string[] | undefined;
                source: "metrics";
                id?: string | undefined;
                compare?: "previousWindow" | undefined;
                request: "timeSeries";
                interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                filters?: {
                    traceId?: string | undefined;
                    spanId?: string | undefined;
                    entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    entityName?: string | undefined;
                    entityVersionId?: string | undefined;
                    parentEntityVersionId?: string | undefined;
                    rootEntityVersionId?: string | undefined;
                    userId?: string | undefined;
                    organizationId?: string | undefined;
                    experimentId?: string | undefined;
                    serviceName?: string | undefined;
                    environment?: string | undefined;
                    parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    parentEntityName?: string | undefined;
                    rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    rootEntityName?: string | undefined;
                    resourceId?: string | undefined;
                    runId?: string | undefined;
                    sessionId?: string | undefined;
                    threadId?: string | undefined;
                    requestId?: string | undefined;
                    executionSource?: string | undefined;
                    tags?: string[] | undefined;
                    traceIds?: string[] | undefined;
                    experimentIds?: string[] | undefined;
                    name?: string[] | undefined;
                    source?: string | undefined;
                    provider?: string | undefined;
                    model?: string | undefined;
                    costUnit?: string | undefined;
                    labels?: Record<string, string> | undefined;
                } | undefined;
            } | {
                name: string;
                percentiles: number[];
                source: "metrics";
                id?: string | undefined;
                compare?: "previousWindow" | undefined;
                request: "percentiles";
                interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                filters?: {
                    traceId?: string | undefined;
                    spanId?: string | undefined;
                    entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    entityName?: string | undefined;
                    entityVersionId?: string | undefined;
                    parentEntityVersionId?: string | undefined;
                    rootEntityVersionId?: string | undefined;
                    userId?: string | undefined;
                    organizationId?: string | undefined;
                    experimentId?: string | undefined;
                    serviceName?: string | undefined;
                    environment?: string | undefined;
                    parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    parentEntityName?: string | undefined;
                    rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    rootEntityName?: string | undefined;
                    resourceId?: string | undefined;
                    runId?: string | undefined;
                    sessionId?: string | undefined;
                    threadId?: string | undefined;
                    requestId?: string | undefined;
                    executionSource?: string | undefined;
                    tags?: string[] | undefined;
                    traceIds?: string[] | undefined;
                    experimentIds?: string[] | undefined;
                    name?: string[] | undefined;
                    source?: string | undefined;
                    provider?: string | undefined;
                    model?: string | undefined;
                    costUnit?: string | undefined;
                    labels?: Record<string, string> | undefined;
                } | undefined;
            } | {
                scoreSource?: string | undefined;
                aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                source: "scores";
                id?: string | undefined;
                compare?: "previousWindow" | undefined;
                scorerId?: string | undefined;
                request: "aggregate";
                filters?: {
                    traceId?: string | undefined;
                    spanId?: string | undefined;
                    entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    entityName?: string | undefined;
                    entityVersionId?: string | undefined;
                    parentEntityVersionId?: string | undefined;
                    rootEntityVersionId?: string | undefined;
                    userId?: string | undefined;
                    organizationId?: string | undefined;
                    experimentId?: string | undefined;
                    serviceName?: string | undefined;
                    environment?: string | undefined;
                    parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    parentEntityName?: string | undefined;
                    rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    rootEntityName?: string | undefined;
                    resourceId?: string | undefined;
                    runId?: string | undefined;
                    sessionId?: string | undefined;
                    threadId?: string | undefined;
                    requestId?: string | undefined;
                    executionSource?: string | undefined;
                    tags?: string[] | undefined;
                    scorerId?: string | string[] | undefined;
                    scoreSource?: string | undefined;
                    metadata?: Record<string, unknown> | null | undefined;
                    source?: string | undefined;
                } | undefined;
            } | {
                scoreSource?: string | undefined;
                groupBy: string[];
                aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                source: "scores";
                id?: string | undefined;
                compare?: "previousWindow" | undefined;
                scorerId?: string | undefined;
                request: "breakdown";
                filters?: {
                    traceId?: string | undefined;
                    spanId?: string | undefined;
                    entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    entityName?: string | undefined;
                    entityVersionId?: string | undefined;
                    parentEntityVersionId?: string | undefined;
                    rootEntityVersionId?: string | undefined;
                    userId?: string | undefined;
                    organizationId?: string | undefined;
                    experimentId?: string | undefined;
                    serviceName?: string | undefined;
                    environment?: string | undefined;
                    parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    parentEntityName?: string | undefined;
                    rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    rootEntityName?: string | undefined;
                    resourceId?: string | undefined;
                    runId?: string | undefined;
                    sessionId?: string | undefined;
                    threadId?: string | undefined;
                    requestId?: string | undefined;
                    executionSource?: string | undefined;
                    tags?: string[] | undefined;
                    scorerId?: string | string[] | undefined;
                    scoreSource?: string | undefined;
                    metadata?: Record<string, unknown> | null | undefined;
                    source?: string | undefined;
                } | undefined;
            } | {
                scoreSource?: string | undefined;
                aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                groupBy?: string[] | undefined;
                source: "scores";
                id?: string | undefined;
                compare?: "previousWindow" | undefined;
                scorerId?: string | undefined;
                request: "timeSeries";
                interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                filters?: {
                    traceId?: string | undefined;
                    spanId?: string | undefined;
                    entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    entityName?: string | undefined;
                    entityVersionId?: string | undefined;
                    parentEntityVersionId?: string | undefined;
                    rootEntityVersionId?: string | undefined;
                    userId?: string | undefined;
                    organizationId?: string | undefined;
                    experimentId?: string | undefined;
                    serviceName?: string | undefined;
                    environment?: string | undefined;
                    parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    parentEntityName?: string | undefined;
                    rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    rootEntityName?: string | undefined;
                    resourceId?: string | undefined;
                    runId?: string | undefined;
                    sessionId?: string | undefined;
                    threadId?: string | undefined;
                    requestId?: string | undefined;
                    executionSource?: string | undefined;
                    tags?: string[] | undefined;
                    scorerId?: string | string[] | undefined;
                    scoreSource?: string | undefined;
                    metadata?: Record<string, unknown> | null | undefined;
                    source?: string | undefined;
                } | undefined;
            } | {
                scoreSource?: string | undefined;
                percentiles: number[];
                source: "scores";
                id?: string | undefined;
                compare?: "previousWindow" | undefined;
                scorerId?: string | undefined;
                request: "percentiles";
                interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                filters?: {
                    traceId?: string | undefined;
                    spanId?: string | undefined;
                    entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    entityName?: string | undefined;
                    entityVersionId?: string | undefined;
                    parentEntityVersionId?: string | undefined;
                    rootEntityVersionId?: string | undefined;
                    userId?: string | undefined;
                    organizationId?: string | undefined;
                    experimentId?: string | undefined;
                    serviceName?: string | undefined;
                    environment?: string | undefined;
                    parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    parentEntityName?: string | undefined;
                    rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                    rootEntityName?: string | undefined;
                    resourceId?: string | undefined;
                    runId?: string | undefined;
                    sessionId?: string | undefined;
                    threadId?: string | undefined;
                    requestId?: string | undefined;
                    executionSource?: string | undefined;
                    tags?: string[] | undefined;
                    scorerId?: string | string[] | undefined;
                    scoreSource?: string | undefined;
                    metadata?: Record<string, unknown> | null | undefined;
                    source?: string | undefined;
                } | undefined;
            } | {
                where?: import("../..").TraceQueryPredicate | undefined;
                groupBy?: string[] | undefined;
                interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
                having?: import("../..").TraceQueryScalarPredicate | undefined;
                orderBy?: {
                    field: string;
                    direction: "asc" | "desc";
                } | undefined;
                limit?: number | undefined;
                source: "traceAggregate";
                id?: string | undefined;
                compare?: "previousWindow" | undefined;
            } | {
                where?: import("../..").TraceQueryScalarPredicate | undefined;
                groupBy?: string[] | undefined;
                interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
                having?: import("../..").TraceQueryScalarPredicate | undefined;
                orderBy?: {
                    field: string;
                    direction: "asc" | "desc";
                } | undefined;
                limit?: number | undefined;
                source: "spanAggregate";
                id?: string | undefined;
                compare?: "previousWindow" | undefined;
            }>>;
            columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
                id: z.ZodString;
                label: z.ZodOptional<z.ZodString>;
                scope: z.ZodOptional<z.ZodEnum<{
                    org: "org";
                    project: "project";
                }>>;
                options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            }, z.core.$strict>>>;
            options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
            drilldown: z.ZodOptional<z.ZodObject<{
                action: z.ZodOptional<z.ZodObject<{
                    page: z.ZodEnum<{
                        logs: "logs";
                        spans: "spans";
                        threads: "threads";
                        traces: "traces";
                    }>;
                    filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
                }, z.core.$strict>>;
                click: z.ZodOptional<z.ZodObject<{
                    page: z.ZodEnum<{
                        logs: "logs";
                        spans: "spans";
                        threads: "threads";
                        traces: "traces";
                    }>;
                    filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
                }, z.core.$strict>>;
            }, z.core.$strict>>;
            scope: z.ZodOptional<z.ZodEnum<{
                org: "org";
                project: "project";
            }>>;
        }, z.core.$strict>>;
        drilldown: z.ZodOptional<z.ZodObject<{
            action: z.ZodOptional<z.ZodObject<{
                page: z.ZodEnum<{
                    logs: "logs";
                    spans: "spans";
                    threads: "threads";
                    traces: "traces";
                }>;
                filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
            }, z.core.$strict>>;
            click: z.ZodOptional<z.ZodObject<{
                page: z.ZodEnum<{
                    logs: "logs";
                    spans: "spans";
                    threads: "threads";
                    traces: "traces";
                }>;
                filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
            }, z.core.$strict>>;
        }, z.core.$strict>>;
        scope: z.ZodOptional<z.ZodEnum<{
            org: "org";
            project: "project";
        }>>;
    }, z.core.$strict>>;
}, z.core.$strict>;
export declare const dashboardDefaultsSchema: z.ZodObject<{
    datePreset: z.ZodOptional<z.ZodString>;
    filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
}, z.core.$strict>;
declare const dashboardDefinitionObjectSchema: z.ZodObject<{
    schemaVersion: z.ZodLiteral<1>;
    defaults: z.ZodOptional<z.ZodObject<{
        datePreset: z.ZodOptional<z.ZodString>;
        filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
    }, z.core.$strict>>;
    rows: z.ZodArray<z.ZodObject<{
        widgets: z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            span: z.ZodLiteral<1 | 2 | 3 | 4 | 6 | 12>;
            kind: z.ZodString;
            title: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            views: z.ZodArray<z.ZodObject<{
                label: z.ZodOptional<z.ZodString>;
                description: z.ZodOptional<z.ZodString>;
                queries: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
                    where: z.ZodOptional<z.ZodType<import("../..").TraceQueryPredicate, import("../..").TraceQueryPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryPredicate, import("../..").TraceQueryPredicate>>>;
                    groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
                    interval: z.ZodOptional<z.ZodEnum<{
                        "15m": "15m";
                        "1d": "1d";
                        "1h": "1h";
                        "1m": "1m";
                        "5m": "5m";
                    }>>;
                    measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
                        "cost.avg": "cost.avg";
                        "cost.sum": "cost.sum";
                        count: "count";
                        "duration.avg": "duration.avg";
                        "duration.max": "duration.max";
                        "duration.min": "duration.min";
                        "duration.p50": "duration.p50";
                        "duration.p90": "duration.p90";
                        "duration.p95": "duration.p95";
                        "duration.p99": "duration.p99";
                        errorCount: "errorCount";
                        errorRate: "errorRate";
                        "timeToFirstChunk.avg": "timeToFirstChunk.avg";
                        "timeToFirstChunk.count": "timeToFirstChunk.count";
                        "timeToFirstChunk.max": "timeToFirstChunk.max";
                        "timeToFirstChunk.min": "timeToFirstChunk.min";
                        "timeToFirstChunk.p50": "timeToFirstChunk.p50";
                        "timeToFirstChunk.p90": "timeToFirstChunk.p90";
                        "timeToFirstChunk.p95": "timeToFirstChunk.p95";
                        "timeToFirstChunk.p99": "timeToFirstChunk.p99";
                        "timeToFirstToken.avg": "timeToFirstToken.avg";
                        "timeToFirstToken.count": "timeToFirstToken.count";
                        "timeToFirstToken.max": "timeToFirstToken.max";
                        "timeToFirstToken.min": "timeToFirstToken.min";
                        "timeToFirstToken.p50": "timeToFirstToken.p50";
                        "timeToFirstToken.p90": "timeToFirstToken.p90";
                        "timeToFirstToken.p95": "timeToFirstToken.p95";
                        "timeToFirstToken.p99": "timeToFirstToken.p99";
                        "tokens.cached.avg": "tokens.cached.avg";
                        "tokens.cached.sum": "tokens.cached.sum";
                        "tokens.input.avg": "tokens.input.avg";
                        "tokens.input.sum": "tokens.input.sum";
                        "tokens.output.avg": "tokens.output.avg";
                        "tokens.output.sum": "tokens.output.sum";
                        "tokens.reasoning.avg": "tokens.reasoning.avg";
                        "tokens.reasoning.sum": "tokens.reasoning.sum";
                        "tokens.total.avg": "tokens.total.avg";
                        "tokens.total.sum": "tokens.total.sum";
                    }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
                    having: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
                    orderBy: z.ZodDefault<z.ZodObject<{
                        field: z.ZodString;
                        direction: z.ZodEnum<{
                            asc: "asc";
                            desc: "desc";
                        }>;
                    }, z.core.$strict>>;
                    limit: z.ZodDefault<z.ZodNumber>;
                    source: z.ZodLiteral<"traceAggregate">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                }, z.core.$strict>, z.ZodObject<{
                    where: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
                    groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
                    interval: z.ZodOptional<z.ZodEnum<{
                        "15m": "15m";
                        "1d": "1d";
                        "1h": "1h";
                        "1m": "1m";
                        "5m": "5m";
                    }>>;
                    measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
                        "cost.avg": "cost.avg";
                        "cost.sum": "cost.sum";
                        count: "count";
                        "duration.avg": "duration.avg";
                        "duration.max": "duration.max";
                        "duration.min": "duration.min";
                        "duration.p50": "duration.p50";
                        "duration.p90": "duration.p90";
                        "duration.p95": "duration.p95";
                        "duration.p99": "duration.p99";
                        errorCount: "errorCount";
                        errorRate: "errorRate";
                        "timeToFirstChunk.avg": "timeToFirstChunk.avg";
                        "timeToFirstChunk.count": "timeToFirstChunk.count";
                        "timeToFirstChunk.max": "timeToFirstChunk.max";
                        "timeToFirstChunk.min": "timeToFirstChunk.min";
                        "timeToFirstChunk.p50": "timeToFirstChunk.p50";
                        "timeToFirstChunk.p90": "timeToFirstChunk.p90";
                        "timeToFirstChunk.p95": "timeToFirstChunk.p95";
                        "timeToFirstChunk.p99": "timeToFirstChunk.p99";
                        "timeToFirstToken.avg": "timeToFirstToken.avg";
                        "timeToFirstToken.count": "timeToFirstToken.count";
                        "timeToFirstToken.max": "timeToFirstToken.max";
                        "timeToFirstToken.min": "timeToFirstToken.min";
                        "timeToFirstToken.p50": "timeToFirstToken.p50";
                        "timeToFirstToken.p90": "timeToFirstToken.p90";
                        "timeToFirstToken.p95": "timeToFirstToken.p95";
                        "timeToFirstToken.p99": "timeToFirstToken.p99";
                        "tokens.cached.avg": "tokens.cached.avg";
                        "tokens.cached.sum": "tokens.cached.sum";
                        "tokens.input.avg": "tokens.input.avg";
                        "tokens.input.sum": "tokens.input.sum";
                        "tokens.output.avg": "tokens.output.avg";
                        "tokens.output.sum": "tokens.output.sum";
                        "tokens.reasoning.avg": "tokens.reasoning.avg";
                        "tokens.reasoning.sum": "tokens.reasoning.sum";
                        "tokens.total.avg": "tokens.total.avg";
                        "tokens.total.sum": "tokens.total.sum";
                    }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
                    having: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
                    orderBy: z.ZodDefault<z.ZodObject<{
                        field: z.ZodString;
                        direction: z.ZodEnum<{
                            asc: "asc";
                            desc: "desc";
                        }>;
                    }, z.core.$strict>>;
                    limit: z.ZodDefault<z.ZodNumber>;
                    source: z.ZodLiteral<"spanAggregate">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
                    name: z.ZodArray<z.ZodString>;
                    aggregation: z.ZodEnum<{
                        avg: "avg";
                        count: "count";
                        count_distinct: "count_distinct";
                        last: "last";
                        max: "max";
                        min: "min";
                        sum: "sum";
                    }>;
                    distinctColumn: z.ZodOptional<z.ZodEnum<{
                        entityName: "entityName";
                        entityType: "entityType";
                        environment: "environment";
                        executionSource: "executionSource";
                        model: "model";
                        name: "name";
                        parentEntityName: "parentEntityName";
                        parentEntityType: "parentEntityType";
                        provider: "provider";
                        resourceId: "resourceId";
                        rootEntityName: "rootEntityName";
                        rootEntityType: "rootEntityType";
                        serviceName: "serviceName";
                        threadId: "threadId";
                    }>>;
                    source: z.ZodLiteral<"metrics">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    request: z.ZodLiteral<"aggregate">;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        source: z.ZodOptional<z.ZodString>;
                        provider: z.ZodOptional<z.ZodString>;
                        model: z.ZodOptional<z.ZodString>;
                        costUnit: z.ZodOptional<z.ZodString>;
                        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strict>>;
                }, z.core.$strict>, z.ZodObject<{
                    name: z.ZodArray<z.ZodString>;
                    groupBy: z.ZodArray<z.ZodString>;
                    aggregation: z.ZodEnum<{
                        avg: "avg";
                        count: "count";
                        count_distinct: "count_distinct";
                        last: "last";
                        max: "max";
                        min: "min";
                        sum: "sum";
                    }>;
                    distinctColumn: z.ZodOptional<z.ZodEnum<{
                        entityName: "entityName";
                        entityType: "entityType";
                        environment: "environment";
                        executionSource: "executionSource";
                        model: "model";
                        name: "name";
                        parentEntityName: "parentEntityName";
                        parentEntityType: "parentEntityType";
                        provider: "provider";
                        resourceId: "resourceId";
                        rootEntityName: "rootEntityName";
                        rootEntityType: "rootEntityType";
                        serviceName: "serviceName";
                        threadId: "threadId";
                    }>>;
                    limit: z.ZodOptional<z.ZodNumber>;
                    orderDirection: z.ZodOptional<z.ZodEnum<{
                        ASC: "ASC";
                        DESC: "DESC";
                    }>>;
                    source: z.ZodLiteral<"metrics">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    request: z.ZodLiteral<"breakdown">;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        source: z.ZodOptional<z.ZodString>;
                        provider: z.ZodOptional<z.ZodString>;
                        model: z.ZodOptional<z.ZodString>;
                        costUnit: z.ZodOptional<z.ZodString>;
                        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strict>>;
                }, z.core.$strict>, z.ZodObject<{
                    name: z.ZodArray<z.ZodString>;
                    aggregation: z.ZodEnum<{
                        avg: "avg";
                        count: "count";
                        count_distinct: "count_distinct";
                        last: "last";
                        max: "max";
                        min: "min";
                        sum: "sum";
                    }>;
                    distinctColumn: z.ZodOptional<z.ZodEnum<{
                        entityName: "entityName";
                        entityType: "entityType";
                        environment: "environment";
                        executionSource: "executionSource";
                        model: "model";
                        name: "name";
                        parentEntityName: "parentEntityName";
                        parentEntityType: "parentEntityType";
                        provider: "provider";
                        resourceId: "resourceId";
                        rootEntityName: "rootEntityName";
                        rootEntityType: "rootEntityType";
                        serviceName: "serviceName";
                        threadId: "threadId";
                    }>>;
                    groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    source: z.ZodLiteral<"metrics">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    request: z.ZodLiteral<"timeSeries">;
                    interval: z.ZodOptional<z.ZodEnum<{
                        "15m": "15m";
                        "1d": "1d";
                        "1h": "1h";
                        "1m": "1m";
                        "5m": "5m";
                    }>>;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        source: z.ZodOptional<z.ZodString>;
                        provider: z.ZodOptional<z.ZodString>;
                        model: z.ZodOptional<z.ZodString>;
                        costUnit: z.ZodOptional<z.ZodString>;
                        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strict>>;
                }, z.core.$strict>, z.ZodObject<{
                    name: z.ZodString;
                    percentiles: z.ZodArray<z.ZodNumber>;
                    source: z.ZodLiteral<"metrics">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    request: z.ZodLiteral<"percentiles">;
                    interval: z.ZodOptional<z.ZodEnum<{
                        "15m": "15m";
                        "1d": "1d";
                        "1h": "1h";
                        "1m": "1m";
                        "5m": "5m";
                    }>>;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        source: z.ZodOptional<z.ZodString>;
                        provider: z.ZodOptional<z.ZodString>;
                        model: z.ZodOptional<z.ZodString>;
                        costUnit: z.ZodOptional<z.ZodString>;
                        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strict>>;
                }, z.core.$strict>], "request">, z.ZodDiscriminatedUnion<[z.ZodObject<{
                    scoreSource: z.ZodOptional<z.ZodString>;
                    aggregation: z.ZodEnum<{
                        avg: "avg";
                        count: "count";
                        count_distinct: "count_distinct";
                        last: "last";
                        max: "max";
                        min: "min";
                        sum: "sum";
                    }>;
                    source: z.ZodLiteral<"scores">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    scorerId: z.ZodOptional<z.ZodString>;
                    request: z.ZodLiteral<"aggregate">;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                        scoreSource: z.ZodOptional<z.ZodString>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                        source: z.ZodOptional<z.ZodString>;
                    }, z.core.$strict>>;
                }, z.core.$strict>, z.ZodObject<{
                    scoreSource: z.ZodOptional<z.ZodString>;
                    groupBy: z.ZodArray<z.ZodString>;
                    aggregation: z.ZodEnum<{
                        avg: "avg";
                        count: "count";
                        count_distinct: "count_distinct";
                        last: "last";
                        max: "max";
                        min: "min";
                        sum: "sum";
                    }>;
                    source: z.ZodLiteral<"scores">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    scorerId: z.ZodOptional<z.ZodString>;
                    request: z.ZodLiteral<"breakdown">;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                        scoreSource: z.ZodOptional<z.ZodString>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                        source: z.ZodOptional<z.ZodString>;
                    }, z.core.$strict>>;
                }, z.core.$strict>, z.ZodObject<{
                    scoreSource: z.ZodOptional<z.ZodString>;
                    aggregation: z.ZodEnum<{
                        avg: "avg";
                        count: "count";
                        count_distinct: "count_distinct";
                        last: "last";
                        max: "max";
                        min: "min";
                        sum: "sum";
                    }>;
                    groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    source: z.ZodLiteral<"scores">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    scorerId: z.ZodOptional<z.ZodString>;
                    request: z.ZodLiteral<"timeSeries">;
                    interval: z.ZodOptional<z.ZodEnum<{
                        "15m": "15m";
                        "1d": "1d";
                        "1h": "1h";
                        "1m": "1m";
                        "5m": "5m";
                    }>>;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                        scoreSource: z.ZodOptional<z.ZodString>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                        source: z.ZodOptional<z.ZodString>;
                    }, z.core.$strict>>;
                }, z.core.$strict>, z.ZodObject<{
                    scoreSource: z.ZodOptional<z.ZodString>;
                    percentiles: z.ZodArray<z.ZodNumber>;
                    source: z.ZodLiteral<"scores">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    scorerId: z.ZodOptional<z.ZodString>;
                    request: z.ZodLiteral<"percentiles">;
                    interval: z.ZodOptional<z.ZodEnum<{
                        "15m": "15m";
                        "1d": "1d";
                        "1h": "1h";
                        "1m": "1m";
                        "5m": "5m";
                    }>>;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                        scoreSource: z.ZodOptional<z.ZodString>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                        source: z.ZodOptional<z.ZodString>;
                    }, z.core.$strict>>;
                }, z.core.$strict>], "request">], "source">, {
                    name: string[];
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
                    source: "metrics";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    request: "aggregate";
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        traceIds?: string[] | undefined;
                        experimentIds?: string[] | undefined;
                        name?: string[] | undefined;
                        source?: string | undefined;
                        provider?: string | undefined;
                        model?: string | undefined;
                        costUnit?: string | undefined;
                        labels?: Record<string, string> | undefined;
                    } | undefined;
                } | {
                    name: string[];
                    groupBy: string[];
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
                    limit?: number | undefined;
                    orderDirection?: "ASC" | "DESC" | undefined;
                    source: "metrics";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    request: "breakdown";
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        traceIds?: string[] | undefined;
                        experimentIds?: string[] | undefined;
                        name?: string[] | undefined;
                        source?: string | undefined;
                        provider?: string | undefined;
                        model?: string | undefined;
                        costUnit?: string | undefined;
                        labels?: Record<string, string> | undefined;
                    } | undefined;
                } | {
                    name: string[];
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
                    groupBy?: string[] | undefined;
                    source: "metrics";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    request: "timeSeries";
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        traceIds?: string[] | undefined;
                        experimentIds?: string[] | undefined;
                        name?: string[] | undefined;
                        source?: string | undefined;
                        provider?: string | undefined;
                        model?: string | undefined;
                        costUnit?: string | undefined;
                        labels?: Record<string, string> | undefined;
                    } | undefined;
                } | {
                    name: string;
                    percentiles: number[];
                    source: "metrics";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    request: "percentiles";
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        traceIds?: string[] | undefined;
                        experimentIds?: string[] | undefined;
                        name?: string[] | undefined;
                        source?: string | undefined;
                        provider?: string | undefined;
                        model?: string | undefined;
                        costUnit?: string | undefined;
                        labels?: Record<string, string> | undefined;
                    } | undefined;
                } | {
                    scoreSource?: string | undefined;
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    source: "scores";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    scorerId?: string | undefined;
                    request: "aggregate";
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        scorerId?: string | string[] | undefined;
                        scoreSource?: string | undefined;
                        metadata?: Record<string, unknown> | null | undefined;
                        source?: string | undefined;
                    } | undefined;
                } | {
                    scoreSource?: string | undefined;
                    groupBy: string[];
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    source: "scores";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    scorerId?: string | undefined;
                    request: "breakdown";
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        scorerId?: string | string[] | undefined;
                        scoreSource?: string | undefined;
                        metadata?: Record<string, unknown> | null | undefined;
                        source?: string | undefined;
                    } | undefined;
                } | {
                    scoreSource?: string | undefined;
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    groupBy?: string[] | undefined;
                    source: "scores";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    scorerId?: string | undefined;
                    request: "timeSeries";
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        scorerId?: string | string[] | undefined;
                        scoreSource?: string | undefined;
                        metadata?: Record<string, unknown> | null | undefined;
                        source?: string | undefined;
                    } | undefined;
                } | {
                    scoreSource?: string | undefined;
                    percentiles: number[];
                    source: "scores";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    scorerId?: string | undefined;
                    request: "percentiles";
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        scorerId?: string | string[] | undefined;
                        scoreSource?: string | undefined;
                        metadata?: Record<string, unknown> | null | undefined;
                        source?: string | undefined;
                    } | undefined;
                } | {
                    where?: import("../..").TraceQueryPredicate | undefined;
                    groupBy?: string[] | undefined;
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
                    having?: import("../..").TraceQueryScalarPredicate | undefined;
                    orderBy?: {
                        field: string;
                        direction: "asc" | "desc";
                    } | undefined;
                    limit?: number | undefined;
                    source: "traceAggregate";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                } | {
                    where?: import("../..").TraceQueryScalarPredicate | undefined;
                    groupBy?: string[] | undefined;
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
                    having?: import("../..").TraceQueryScalarPredicate | undefined;
                    orderBy?: {
                        field: string;
                        direction: "asc" | "desc";
                    } | undefined;
                    limit?: number | undefined;
                    source: "spanAggregate";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                }>>;
                columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    id: z.ZodString;
                    label: z.ZodOptional<z.ZodString>;
                    scope: z.ZodOptional<z.ZodEnum<{
                        org: "org";
                        project: "project";
                    }>>;
                    options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                }, z.core.$strict>>>;
                options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                drilldown: z.ZodOptional<z.ZodObject<{
                    action: z.ZodOptional<z.ZodObject<{
                        page: z.ZodEnum<{
                            logs: "logs";
                            spans: "spans";
                            threads: "threads";
                            traces: "traces";
                        }>;
                        filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
                    }, z.core.$strict>>;
                    click: z.ZodOptional<z.ZodObject<{
                        page: z.ZodEnum<{
                            logs: "logs";
                            spans: "spans";
                            threads: "threads";
                            traces: "traces";
                        }>;
                        filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
                    }, z.core.$strict>>;
                }, z.core.$strict>>;
                scope: z.ZodOptional<z.ZodEnum<{
                    org: "org";
                    project: "project";
                }>>;
            }, z.core.$strict>>;
            drilldown: z.ZodOptional<z.ZodObject<{
                action: z.ZodOptional<z.ZodObject<{
                    page: z.ZodEnum<{
                        logs: "logs";
                        spans: "spans";
                        threads: "threads";
                        traces: "traces";
                    }>;
                    filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
                }, z.core.$strict>>;
                click: z.ZodOptional<z.ZodObject<{
                    page: z.ZodEnum<{
                        logs: "logs";
                        spans: "spans";
                        threads: "threads";
                        traces: "traces";
                    }>;
                    filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
                }, z.core.$strict>>;
            }, z.core.$strict>>;
            scope: z.ZodOptional<z.ZodEnum<{
                org: "org";
                project: "project";
            }>>;
        }, z.core.$strict>>;
    }, z.core.$strict>>;
}, z.core.$strict>;
export declare const dashboardDefinitionSchema: z.ZodPreprocess<z.ZodObject<{
    schemaVersion: z.ZodLiteral<1>;
    defaults: z.ZodOptional<z.ZodObject<{
        datePreset: z.ZodOptional<z.ZodString>;
        filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
    }, z.core.$strict>>;
    rows: z.ZodArray<z.ZodObject<{
        widgets: z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            span: z.ZodLiteral<1 | 2 | 3 | 4 | 6 | 12>;
            kind: z.ZodString;
            title: z.ZodOptional<z.ZodString>;
            description: z.ZodOptional<z.ZodString>;
            views: z.ZodArray<z.ZodObject<{
                label: z.ZodOptional<z.ZodString>;
                description: z.ZodOptional<z.ZodString>;
                queries: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
                    where: z.ZodOptional<z.ZodType<import("../..").TraceQueryPredicate, import("../..").TraceQueryPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryPredicate, import("../..").TraceQueryPredicate>>>;
                    groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
                    interval: z.ZodOptional<z.ZodEnum<{
                        "15m": "15m";
                        "1d": "1d";
                        "1h": "1h";
                        "1m": "1m";
                        "5m": "5m";
                    }>>;
                    measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
                        "cost.avg": "cost.avg";
                        "cost.sum": "cost.sum";
                        count: "count";
                        "duration.avg": "duration.avg";
                        "duration.max": "duration.max";
                        "duration.min": "duration.min";
                        "duration.p50": "duration.p50";
                        "duration.p90": "duration.p90";
                        "duration.p95": "duration.p95";
                        "duration.p99": "duration.p99";
                        errorCount: "errorCount";
                        errorRate: "errorRate";
                        "timeToFirstChunk.avg": "timeToFirstChunk.avg";
                        "timeToFirstChunk.count": "timeToFirstChunk.count";
                        "timeToFirstChunk.max": "timeToFirstChunk.max";
                        "timeToFirstChunk.min": "timeToFirstChunk.min";
                        "timeToFirstChunk.p50": "timeToFirstChunk.p50";
                        "timeToFirstChunk.p90": "timeToFirstChunk.p90";
                        "timeToFirstChunk.p95": "timeToFirstChunk.p95";
                        "timeToFirstChunk.p99": "timeToFirstChunk.p99";
                        "timeToFirstToken.avg": "timeToFirstToken.avg";
                        "timeToFirstToken.count": "timeToFirstToken.count";
                        "timeToFirstToken.max": "timeToFirstToken.max";
                        "timeToFirstToken.min": "timeToFirstToken.min";
                        "timeToFirstToken.p50": "timeToFirstToken.p50";
                        "timeToFirstToken.p90": "timeToFirstToken.p90";
                        "timeToFirstToken.p95": "timeToFirstToken.p95";
                        "timeToFirstToken.p99": "timeToFirstToken.p99";
                        "tokens.cached.avg": "tokens.cached.avg";
                        "tokens.cached.sum": "tokens.cached.sum";
                        "tokens.input.avg": "tokens.input.avg";
                        "tokens.input.sum": "tokens.input.sum";
                        "tokens.output.avg": "tokens.output.avg";
                        "tokens.output.sum": "tokens.output.sum";
                        "tokens.reasoning.avg": "tokens.reasoning.avg";
                        "tokens.reasoning.sum": "tokens.reasoning.sum";
                        "tokens.total.avg": "tokens.total.avg";
                        "tokens.total.sum": "tokens.total.sum";
                    }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
                    having: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
                    orderBy: z.ZodDefault<z.ZodObject<{
                        field: z.ZodString;
                        direction: z.ZodEnum<{
                            asc: "asc";
                            desc: "desc";
                        }>;
                    }, z.core.$strict>>;
                    limit: z.ZodDefault<z.ZodNumber>;
                    source: z.ZodLiteral<"traceAggregate">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                }, z.core.$strict>, z.ZodObject<{
                    where: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
                    groupBy: z.ZodDefault<z.ZodArray<z.ZodString>>;
                    interval: z.ZodOptional<z.ZodEnum<{
                        "15m": "15m";
                        "1d": "1d";
                        "1h": "1h";
                        "1m": "1m";
                        "5m": "5m";
                    }>>;
                    measures: z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
                        "cost.avg": "cost.avg";
                        "cost.sum": "cost.sum";
                        count: "count";
                        "duration.avg": "duration.avg";
                        "duration.max": "duration.max";
                        "duration.min": "duration.min";
                        "duration.p50": "duration.p50";
                        "duration.p90": "duration.p90";
                        "duration.p95": "duration.p95";
                        "duration.p99": "duration.p99";
                        errorCount: "errorCount";
                        errorRate: "errorRate";
                        "timeToFirstChunk.avg": "timeToFirstChunk.avg";
                        "timeToFirstChunk.count": "timeToFirstChunk.count";
                        "timeToFirstChunk.max": "timeToFirstChunk.max";
                        "timeToFirstChunk.min": "timeToFirstChunk.min";
                        "timeToFirstChunk.p50": "timeToFirstChunk.p50";
                        "timeToFirstChunk.p90": "timeToFirstChunk.p90";
                        "timeToFirstChunk.p95": "timeToFirstChunk.p95";
                        "timeToFirstChunk.p99": "timeToFirstChunk.p99";
                        "timeToFirstToken.avg": "timeToFirstToken.avg";
                        "timeToFirstToken.count": "timeToFirstToken.count";
                        "timeToFirstToken.max": "timeToFirstToken.max";
                        "timeToFirstToken.min": "timeToFirstToken.min";
                        "timeToFirstToken.p50": "timeToFirstToken.p50";
                        "timeToFirstToken.p90": "timeToFirstToken.p90";
                        "timeToFirstToken.p95": "timeToFirstToken.p95";
                        "timeToFirstToken.p99": "timeToFirstToken.p99";
                        "tokens.cached.avg": "tokens.cached.avg";
                        "tokens.cached.sum": "tokens.cached.sum";
                        "tokens.input.avg": "tokens.input.avg";
                        "tokens.input.sum": "tokens.input.sum";
                        "tokens.output.avg": "tokens.output.avg";
                        "tokens.output.sum": "tokens.output.sum";
                        "tokens.reasoning.avg": "tokens.reasoning.avg";
                        "tokens.reasoning.sum": "tokens.reasoning.sum";
                        "tokens.total.avg": "tokens.total.avg";
                        "tokens.total.sum": "tokens.total.sum";
                    }>, z.ZodTemplateLiteral<`countDistinct.${string}`>]>>;
                    having: z.ZodOptional<z.ZodType<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate, z.core.$ZodTypeInternals<import("../..").TraceQueryScalarPredicate, import("../..").TraceQueryScalarPredicate>>>;
                    orderBy: z.ZodDefault<z.ZodObject<{
                        field: z.ZodString;
                        direction: z.ZodEnum<{
                            asc: "asc";
                            desc: "desc";
                        }>;
                    }, z.core.$strict>>;
                    limit: z.ZodDefault<z.ZodNumber>;
                    source: z.ZodLiteral<"spanAggregate">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
                    name: z.ZodArray<z.ZodString>;
                    aggregation: z.ZodEnum<{
                        avg: "avg";
                        count: "count";
                        count_distinct: "count_distinct";
                        last: "last";
                        max: "max";
                        min: "min";
                        sum: "sum";
                    }>;
                    distinctColumn: z.ZodOptional<z.ZodEnum<{
                        entityName: "entityName";
                        entityType: "entityType";
                        environment: "environment";
                        executionSource: "executionSource";
                        model: "model";
                        name: "name";
                        parentEntityName: "parentEntityName";
                        parentEntityType: "parentEntityType";
                        provider: "provider";
                        resourceId: "resourceId";
                        rootEntityName: "rootEntityName";
                        rootEntityType: "rootEntityType";
                        serviceName: "serviceName";
                        threadId: "threadId";
                    }>>;
                    source: z.ZodLiteral<"metrics">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    request: z.ZodLiteral<"aggregate">;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        source: z.ZodOptional<z.ZodString>;
                        provider: z.ZodOptional<z.ZodString>;
                        model: z.ZodOptional<z.ZodString>;
                        costUnit: z.ZodOptional<z.ZodString>;
                        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strict>>;
                }, z.core.$strict>, z.ZodObject<{
                    name: z.ZodArray<z.ZodString>;
                    groupBy: z.ZodArray<z.ZodString>;
                    aggregation: z.ZodEnum<{
                        avg: "avg";
                        count: "count";
                        count_distinct: "count_distinct";
                        last: "last";
                        max: "max";
                        min: "min";
                        sum: "sum";
                    }>;
                    distinctColumn: z.ZodOptional<z.ZodEnum<{
                        entityName: "entityName";
                        entityType: "entityType";
                        environment: "environment";
                        executionSource: "executionSource";
                        model: "model";
                        name: "name";
                        parentEntityName: "parentEntityName";
                        parentEntityType: "parentEntityType";
                        provider: "provider";
                        resourceId: "resourceId";
                        rootEntityName: "rootEntityName";
                        rootEntityType: "rootEntityType";
                        serviceName: "serviceName";
                        threadId: "threadId";
                    }>>;
                    limit: z.ZodOptional<z.ZodNumber>;
                    orderDirection: z.ZodOptional<z.ZodEnum<{
                        ASC: "ASC";
                        DESC: "DESC";
                    }>>;
                    source: z.ZodLiteral<"metrics">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    request: z.ZodLiteral<"breakdown">;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        source: z.ZodOptional<z.ZodString>;
                        provider: z.ZodOptional<z.ZodString>;
                        model: z.ZodOptional<z.ZodString>;
                        costUnit: z.ZodOptional<z.ZodString>;
                        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strict>>;
                }, z.core.$strict>, z.ZodObject<{
                    name: z.ZodArray<z.ZodString>;
                    aggregation: z.ZodEnum<{
                        avg: "avg";
                        count: "count";
                        count_distinct: "count_distinct";
                        last: "last";
                        max: "max";
                        min: "min";
                        sum: "sum";
                    }>;
                    distinctColumn: z.ZodOptional<z.ZodEnum<{
                        entityName: "entityName";
                        entityType: "entityType";
                        environment: "environment";
                        executionSource: "executionSource";
                        model: "model";
                        name: "name";
                        parentEntityName: "parentEntityName";
                        parentEntityType: "parentEntityType";
                        provider: "provider";
                        resourceId: "resourceId";
                        rootEntityName: "rootEntityName";
                        rootEntityType: "rootEntityType";
                        serviceName: "serviceName";
                        threadId: "threadId";
                    }>>;
                    groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    source: z.ZodLiteral<"metrics">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    request: z.ZodLiteral<"timeSeries">;
                    interval: z.ZodOptional<z.ZodEnum<{
                        "15m": "15m";
                        "1d": "1d";
                        "1h": "1h";
                        "1m": "1m";
                        "5m": "5m";
                    }>>;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        source: z.ZodOptional<z.ZodString>;
                        provider: z.ZodOptional<z.ZodString>;
                        model: z.ZodOptional<z.ZodString>;
                        costUnit: z.ZodOptional<z.ZodString>;
                        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strict>>;
                }, z.core.$strict>, z.ZodObject<{
                    name: z.ZodString;
                    percentiles: z.ZodArray<z.ZodNumber>;
                    source: z.ZodLiteral<"metrics">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    request: z.ZodLiteral<"percentiles">;
                    interval: z.ZodOptional<z.ZodEnum<{
                        "15m": "15m";
                        "1d": "1d";
                        "1h": "1h";
                        "1m": "1m";
                        "5m": "5m";
                    }>>;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        traceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        experimentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        name: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        source: z.ZodOptional<z.ZodString>;
                        provider: z.ZodOptional<z.ZodString>;
                        model: z.ZodOptional<z.ZodString>;
                        costUnit: z.ZodOptional<z.ZodString>;
                        labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
                    }, z.core.$strict>>;
                }, z.core.$strict>], "request">, z.ZodDiscriminatedUnion<[z.ZodObject<{
                    scoreSource: z.ZodOptional<z.ZodString>;
                    aggregation: z.ZodEnum<{
                        avg: "avg";
                        count: "count";
                        count_distinct: "count_distinct";
                        last: "last";
                        max: "max";
                        min: "min";
                        sum: "sum";
                    }>;
                    source: z.ZodLiteral<"scores">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    scorerId: z.ZodOptional<z.ZodString>;
                    request: z.ZodLiteral<"aggregate">;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                        scoreSource: z.ZodOptional<z.ZodString>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                        source: z.ZodOptional<z.ZodString>;
                    }, z.core.$strict>>;
                }, z.core.$strict>, z.ZodObject<{
                    scoreSource: z.ZodOptional<z.ZodString>;
                    groupBy: z.ZodArray<z.ZodString>;
                    aggregation: z.ZodEnum<{
                        avg: "avg";
                        count: "count";
                        count_distinct: "count_distinct";
                        last: "last";
                        max: "max";
                        min: "min";
                        sum: "sum";
                    }>;
                    source: z.ZodLiteral<"scores">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    scorerId: z.ZodOptional<z.ZodString>;
                    request: z.ZodLiteral<"breakdown">;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                        scoreSource: z.ZodOptional<z.ZodString>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                        source: z.ZodOptional<z.ZodString>;
                    }, z.core.$strict>>;
                }, z.core.$strict>, z.ZodObject<{
                    scoreSource: z.ZodOptional<z.ZodString>;
                    aggregation: z.ZodEnum<{
                        avg: "avg";
                        count: "count";
                        count_distinct: "count_distinct";
                        last: "last";
                        max: "max";
                        min: "min";
                        sum: "sum";
                    }>;
                    groupBy: z.ZodOptional<z.ZodArray<z.ZodString>>;
                    source: z.ZodLiteral<"scores">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    scorerId: z.ZodOptional<z.ZodString>;
                    request: z.ZodLiteral<"timeSeries">;
                    interval: z.ZodOptional<z.ZodEnum<{
                        "15m": "15m";
                        "1d": "1d";
                        "1h": "1h";
                        "1m": "1m";
                        "5m": "5m";
                    }>>;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                        scoreSource: z.ZodOptional<z.ZodString>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                        source: z.ZodOptional<z.ZodString>;
                    }, z.core.$strict>>;
                }, z.core.$strict>, z.ZodObject<{
                    scoreSource: z.ZodOptional<z.ZodString>;
                    percentiles: z.ZodArray<z.ZodNumber>;
                    source: z.ZodLiteral<"scores">;
                    id: z.ZodOptional<z.ZodString>;
                    compare: z.ZodOptional<z.ZodLiteral<"previousWindow">>;
                    scorerId: z.ZodOptional<z.ZodString>;
                    request: z.ZodLiteral<"percentiles">;
                    interval: z.ZodOptional<z.ZodEnum<{
                        "15m": "15m";
                        "1d": "1d";
                        "1h": "1h";
                        "1m": "1m";
                        "5m": "5m";
                    }>>;
                    filters: z.ZodOptional<z.ZodObject<{
                        traceId: z.ZodOptional<z.ZodString>;
                        spanId: z.ZodOptional<z.ZodString>;
                        entityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        entityName: z.ZodOptional<z.ZodString>;
                        entityVersionId: z.ZodOptional<z.ZodString>;
                        parentEntityVersionId: z.ZodOptional<z.ZodString>;
                        rootEntityVersionId: z.ZodOptional<z.ZodString>;
                        userId: z.ZodOptional<z.ZodString>;
                        organizationId: z.ZodOptional<z.ZodString>;
                        experimentId: z.ZodOptional<z.ZodString>;
                        serviceName: z.ZodOptional<z.ZodString>;
                        environment: z.ZodOptional<z.ZodString>;
                        parentEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        parentEntityName: z.ZodOptional<z.ZodString>;
                        rootEntityType: z.ZodOptional<z.ZodEnum<typeof import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType>>;
                        rootEntityName: z.ZodOptional<z.ZodString>;
                        resourceId: z.ZodOptional<z.ZodString>;
                        runId: z.ZodOptional<z.ZodString>;
                        sessionId: z.ZodOptional<z.ZodString>;
                        threadId: z.ZodOptional<z.ZodString>;
                        requestId: z.ZodOptional<z.ZodString>;
                        executionSource: z.ZodOptional<z.ZodString>;
                        tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
                        scorerId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
                        scoreSource: z.ZodOptional<z.ZodString>;
                        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
                        source: z.ZodOptional<z.ZodString>;
                    }, z.core.$strict>>;
                }, z.core.$strict>], "request">], "source">, {
                    name: string[];
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
                    source: "metrics";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    request: "aggregate";
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        traceIds?: string[] | undefined;
                        experimentIds?: string[] | undefined;
                        name?: string[] | undefined;
                        source?: string | undefined;
                        provider?: string | undefined;
                        model?: string | undefined;
                        costUnit?: string | undefined;
                        labels?: Record<string, string> | undefined;
                    } | undefined;
                } | {
                    name: string[];
                    groupBy: string[];
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
                    limit?: number | undefined;
                    orderDirection?: "ASC" | "DESC" | undefined;
                    source: "metrics";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    request: "breakdown";
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        traceIds?: string[] | undefined;
                        experimentIds?: string[] | undefined;
                        name?: string[] | undefined;
                        source?: string | undefined;
                        provider?: string | undefined;
                        model?: string | undefined;
                        costUnit?: string | undefined;
                        labels?: Record<string, string> | undefined;
                    } | undefined;
                } | {
                    name: string[];
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
                    groupBy?: string[] | undefined;
                    source: "metrics";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    request: "timeSeries";
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        traceIds?: string[] | undefined;
                        experimentIds?: string[] | undefined;
                        name?: string[] | undefined;
                        source?: string | undefined;
                        provider?: string | undefined;
                        model?: string | undefined;
                        costUnit?: string | undefined;
                        labels?: Record<string, string> | undefined;
                    } | undefined;
                } | {
                    name: string;
                    percentiles: number[];
                    source: "metrics";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    request: "percentiles";
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        traceIds?: string[] | undefined;
                        experimentIds?: string[] | undefined;
                        name?: string[] | undefined;
                        source?: string | undefined;
                        provider?: string | undefined;
                        model?: string | undefined;
                        costUnit?: string | undefined;
                        labels?: Record<string, string> | undefined;
                    } | undefined;
                } | {
                    scoreSource?: string | undefined;
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    source: "scores";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    scorerId?: string | undefined;
                    request: "aggregate";
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        scorerId?: string | string[] | undefined;
                        scoreSource?: string | undefined;
                        metadata?: Record<string, unknown> | null | undefined;
                        source?: string | undefined;
                    } | undefined;
                } | {
                    scoreSource?: string | undefined;
                    groupBy: string[];
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    source: "scores";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    scorerId?: string | undefined;
                    request: "breakdown";
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        scorerId?: string | string[] | undefined;
                        scoreSource?: string | undefined;
                        metadata?: Record<string, unknown> | null | undefined;
                        source?: string | undefined;
                    } | undefined;
                } | {
                    scoreSource?: string | undefined;
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    groupBy?: string[] | undefined;
                    source: "scores";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    scorerId?: string | undefined;
                    request: "timeSeries";
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        scorerId?: string | string[] | undefined;
                        scoreSource?: string | undefined;
                        metadata?: Record<string, unknown> | null | undefined;
                        source?: string | undefined;
                    } | undefined;
                } | {
                    scoreSource?: string | undefined;
                    percentiles: number[];
                    source: "scores";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    scorerId?: string | undefined;
                    request: "percentiles";
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        scorerId?: string | string[] | undefined;
                        scoreSource?: string | undefined;
                        metadata?: Record<string, unknown> | null | undefined;
                        source?: string | undefined;
                    } | undefined;
                } | {
                    where?: import("../..").TraceQueryPredicate | undefined;
                    groupBy?: string[] | undefined;
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
                    having?: import("../..").TraceQueryScalarPredicate | undefined;
                    orderBy?: {
                        field: string;
                        direction: "asc" | "desc";
                    } | undefined;
                    limit?: number | undefined;
                    source: "traceAggregate";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                } | {
                    where?: import("../..").TraceQueryScalarPredicate | undefined;
                    groupBy?: string[] | undefined;
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
                    having?: import("../..").TraceQueryScalarPredicate | undefined;
                    orderBy?: {
                        field: string;
                        direction: "asc" | "desc";
                    } | undefined;
                    limit?: number | undefined;
                    source: "spanAggregate";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                }>>;
                columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
                    id: z.ZodString;
                    label: z.ZodOptional<z.ZodString>;
                    scope: z.ZodOptional<z.ZodEnum<{
                        org: "org";
                        project: "project";
                    }>>;
                    options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                }, z.core.$strict>>>;
                options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
                drilldown: z.ZodOptional<z.ZodObject<{
                    action: z.ZodOptional<z.ZodObject<{
                        page: z.ZodEnum<{
                            logs: "logs";
                            spans: "spans";
                            threads: "threads";
                            traces: "traces";
                        }>;
                        filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
                    }, z.core.$strict>>;
                    click: z.ZodOptional<z.ZodObject<{
                        page: z.ZodEnum<{
                            logs: "logs";
                            spans: "spans";
                            threads: "threads";
                            traces: "traces";
                        }>;
                        filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
                    }, z.core.$strict>>;
                }, z.core.$strict>>;
                scope: z.ZodOptional<z.ZodEnum<{
                    org: "org";
                    project: "project";
                }>>;
            }, z.core.$strict>>;
            drilldown: z.ZodOptional<z.ZodObject<{
                action: z.ZodOptional<z.ZodObject<{
                    page: z.ZodEnum<{
                        logs: "logs";
                        spans: "spans";
                        threads: "threads";
                        traces: "traces";
                    }>;
                    filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
                }, z.core.$strict>>;
                click: z.ZodOptional<z.ZodObject<{
                    page: z.ZodEnum<{
                        logs: "logs";
                        spans: "spans";
                        threads: "threads";
                        traces: "traces";
                    }>;
                    filters: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodType<FilterNode, unknown, z.core.$ZodTypeInternals<FilterNode, unknown>>>, FilterNode[]>>;
                }, z.core.$strict>>;
            }, z.core.$strict>>;
            scope: z.ZodOptional<z.ZodEnum<{
                org: "org";
                project: "project";
            }>>;
        }, z.core.$strict>>;
    }, z.core.$strict>>;
}, z.core.$strict>, {
    schemaVersion: 1;
    defaults?: {
        datePreset?: string | undefined;
        filters?: FilterNode[] | undefined;
    } | undefined;
    rows: {
        widgets: {
            id: string;
            span: 1 | 2 | 3 | 4 | 6 | 12;
            kind: string;
            title?: string | undefined;
            description?: string | undefined;
            views: {
                label?: string | undefined;
                description?: string | undefined;
                queries: ({
                    name: string[];
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
                    source: "metrics";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    request: "aggregate";
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        traceIds?: string[] | undefined;
                        experimentIds?: string[] | undefined;
                        name?: string[] | undefined;
                        source?: string | undefined;
                        provider?: string | undefined;
                        model?: string | undefined;
                        costUnit?: string | undefined;
                        labels?: Record<string, string> | undefined;
                    } | undefined;
                } | {
                    name: string[];
                    groupBy: string[];
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
                    limit?: number | undefined;
                    orderDirection?: "ASC" | "DESC" | undefined;
                    source: "metrics";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    request: "breakdown";
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        traceIds?: string[] | undefined;
                        experimentIds?: string[] | undefined;
                        name?: string[] | undefined;
                        source?: string | undefined;
                        provider?: string | undefined;
                        model?: string | undefined;
                        costUnit?: string | undefined;
                        labels?: Record<string, string> | undefined;
                    } | undefined;
                } | {
                    name: string[];
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    distinctColumn?: "entityName" | "entityType" | "environment" | "executionSource" | "model" | "name" | "parentEntityName" | "parentEntityType" | "provider" | "resourceId" | "rootEntityName" | "rootEntityType" | "serviceName" | "threadId" | undefined;
                    groupBy?: string[] | undefined;
                    source: "metrics";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    request: "timeSeries";
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        traceIds?: string[] | undefined;
                        experimentIds?: string[] | undefined;
                        name?: string[] | undefined;
                        source?: string | undefined;
                        provider?: string | undefined;
                        model?: string | undefined;
                        costUnit?: string | undefined;
                        labels?: Record<string, string> | undefined;
                    } | undefined;
                } | {
                    name: string;
                    percentiles: number[];
                    source: "metrics";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    request: "percentiles";
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        traceIds?: string[] | undefined;
                        experimentIds?: string[] | undefined;
                        name?: string[] | undefined;
                        source?: string | undefined;
                        provider?: string | undefined;
                        model?: string | undefined;
                        costUnit?: string | undefined;
                        labels?: Record<string, string> | undefined;
                    } | undefined;
                } | {
                    scoreSource?: string | undefined;
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    source: "scores";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    scorerId?: string | undefined;
                    request: "aggregate";
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        scorerId?: string | string[] | undefined;
                        scoreSource?: string | undefined;
                        metadata?: Record<string, unknown> | null | undefined;
                        source?: string | undefined;
                    } | undefined;
                } | {
                    scoreSource?: string | undefined;
                    groupBy: string[];
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    source: "scores";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    scorerId?: string | undefined;
                    request: "breakdown";
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        scorerId?: string | string[] | undefined;
                        scoreSource?: string | undefined;
                        metadata?: Record<string, unknown> | null | undefined;
                        source?: string | undefined;
                    } | undefined;
                } | {
                    scoreSource?: string | undefined;
                    aggregation: "avg" | "count" | "count_distinct" | "last" | "max" | "min" | "sum";
                    groupBy?: string[] | undefined;
                    source: "scores";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    scorerId?: string | undefined;
                    request: "timeSeries";
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        scorerId?: string | string[] | undefined;
                        scoreSource?: string | undefined;
                        metadata?: Record<string, unknown> | null | undefined;
                        source?: string | undefined;
                    } | undefined;
                } | {
                    scoreSource?: string | undefined;
                    percentiles: number[];
                    source: "scores";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                    scorerId?: string | undefined;
                    request: "percentiles";
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    filters?: {
                        traceId?: string | undefined;
                        spanId?: string | undefined;
                        entityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        entityName?: string | undefined;
                        entityVersionId?: string | undefined;
                        parentEntityVersionId?: string | undefined;
                        rootEntityVersionId?: string | undefined;
                        userId?: string | undefined;
                        organizationId?: string | undefined;
                        experimentId?: string | undefined;
                        serviceName?: string | undefined;
                        environment?: string | undefined;
                        parentEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        parentEntityName?: string | undefined;
                        rootEntityType?: import("../../../../_types/@internal_core@0.1.4/dist/storage/index.js").EntityType | undefined;
                        rootEntityName?: string | undefined;
                        resourceId?: string | undefined;
                        runId?: string | undefined;
                        sessionId?: string | undefined;
                        threadId?: string | undefined;
                        requestId?: string | undefined;
                        executionSource?: string | undefined;
                        tags?: string[] | undefined;
                        scorerId?: string | string[] | undefined;
                        scoreSource?: string | undefined;
                        metadata?: Record<string, unknown> | null | undefined;
                        source?: string | undefined;
                    } | undefined;
                } | {
                    where?: import("../..").TraceQueryPredicate | undefined;
                    groupBy?: string[] | undefined;
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
                    having?: import("../..").TraceQueryScalarPredicate | undefined;
                    orderBy?: {
                        field: string;
                        direction: "asc" | "desc";
                    } | undefined;
                    limit?: number | undefined;
                    source: "traceAggregate";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                } | {
                    where?: import("../..").TraceQueryScalarPredicate | undefined;
                    groupBy?: string[] | undefined;
                    interval?: "15m" | "1d" | "1h" | "1m" | "5m" | undefined;
                    measures: ("cost.avg" | "cost.sum" | "count" | "duration.avg" | "duration.max" | "duration.min" | "duration.p50" | "duration.p90" | "duration.p95" | "duration.p99" | "errorCount" | "errorRate" | "timeToFirstChunk.avg" | "timeToFirstChunk.count" | "timeToFirstChunk.max" | "timeToFirstChunk.min" | "timeToFirstChunk.p50" | "timeToFirstChunk.p90" | "timeToFirstChunk.p95" | "timeToFirstChunk.p99" | "timeToFirstToken.avg" | "timeToFirstToken.count" | "timeToFirstToken.max" | "timeToFirstToken.min" | "timeToFirstToken.p50" | "timeToFirstToken.p90" | "timeToFirstToken.p95" | "timeToFirstToken.p99" | "tokens.cached.avg" | "tokens.cached.sum" | "tokens.input.avg" | "tokens.input.sum" | "tokens.output.avg" | "tokens.output.sum" | "tokens.reasoning.avg" | "tokens.reasoning.sum" | "tokens.total.avg" | "tokens.total.sum" | `countDistinct.${string}`)[];
                    having?: import("../..").TraceQueryScalarPredicate | undefined;
                    orderBy?: {
                        field: string;
                        direction: "asc" | "desc";
                    } | undefined;
                    limit?: number | undefined;
                    source: "spanAggregate";
                    id?: string | undefined;
                    compare?: "previousWindow" | undefined;
                })[];
                columns?: {
                    id: string;
                    label?: string | undefined;
                    scope?: "org" | "project" | undefined;
                    options?: Record<string, unknown> | undefined;
                }[] | undefined;
                options?: Record<string, unknown> | undefined;
                drilldown?: {
                    action?: {
                        page: "logs" | "spans" | "threads" | "traces";
                        filters?: FilterNode[] | undefined;
                    } | undefined;
                    click?: {
                        page: "logs" | "spans" | "threads" | "traces";
                        filters?: FilterNode[] | undefined;
                    } | undefined;
                } | undefined;
                scope?: "org" | "project" | undefined;
            }[];
            drilldown?: {
                action?: {
                    page: "logs" | "spans" | "threads" | "traces";
                    filters?: FilterNode[] | undefined;
                } | undefined;
                click?: {
                    page: "logs" | "spans" | "threads" | "traces";
                    filters?: FilterNode[] | undefined;
                } | undefined;
            } | undefined;
            scope?: "org" | "project" | undefined;
        }[];
    }[];
}>;
declare const dashboardDefinitionEnvelopeObjectSchema: z.ZodObject<{
    schemaVersion: z.ZodLiteral<1>;
    rows: z.ZodArray<z.ZodObject<{
        widgets: z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            kind: z.ZodString;
            views: z.ZodArray<z.ZodObject<{
                queries: z.ZodArray<z.ZodUnknown>;
            }, z.core.$loose>>;
        }, z.core.$loose>>;
    }, z.core.$loose>>;
}, z.core.$loose>;
export declare const dashboardDefinitionEnvelopeSchema: z.ZodPreprocess<z.ZodObject<{
    schemaVersion: z.ZodLiteral<1>;
    rows: z.ZodArray<z.ZodObject<{
        widgets: z.ZodArray<z.ZodObject<{
            id: z.ZodString;
            kind: z.ZodString;
            views: z.ZodArray<z.ZodObject<{
                queries: z.ZodArray<z.ZodUnknown>;
            }, z.core.$loose>>;
        }, z.core.$loose>>;
    }, z.core.$loose>>;
}, z.core.$loose>, {
    [x: string]: unknown;
    schemaVersion: 1;
    rows: {
        [x: string]: unknown;
        widgets: {
            [x: string]: unknown;
            id: string;
            kind: string;
            views: {
                [x: string]: unknown;
                queries: unknown[];
            }[];
        }[];
    }[];
}>;
/**
 * Upgrades a stored definition of any known version to `DASHBOARD_SCHEMA_VERSION`. Parse the result
 * with `dashboardDefinitionSchema`. Version 1 is current, so this returns its input unchanged today.
 */
export declare function migrateDashboardDefinition(definition: DashboardDefinitionEnvelope): DashboardDefinitionEnvelope;
export type DashboardDefinition = z.input<typeof dashboardDefinitionObjectSchema>;
export type NormalizedDashboardDefinition = z.output<typeof dashboardDefinitionObjectSchema>;
export type DashboardDefinitionEnvelope = z.output<typeof dashboardDefinitionEnvelopeObjectSchema>;
export type DashboardRow = z.input<typeof dashboardRowSchema>;
export type DashboardWidget = z.input<typeof dashboardWidgetSchema>;
export type DashboardBuiltInWidgetKind = (typeof DASHBOARD_WIDGET_KINDS)[number];
export type DashboardWidgetView = z.input<typeof dashboardWidgetViewSchema>;
export type DashboardQuery = z.input<typeof dashboardQueryUnionSchema>;
export type NormalizedDashboardQuery = z.output<typeof dashboardQueryUnionSchema>;
export type DashboardColumn = z.input<typeof dashboardColumnSchema>;
export type DashboardDrilldown = z.input<typeof dashboardDrilldownSchema>;
export type DashboardDrilldownTarget = z.input<typeof dashboardDrilldownTargetSchema>;
export type DashboardDefaults = z.input<typeof dashboardDefaultsSchema>;
export {};
//# sourceMappingURL=dashboard.d.ts.map