Interface ExplainQueryOptions<T>

interface ExplainQueryOptions<T> {
    authorizationScope?: readonly string[];
    cache?: QueryPlanCacheOptions;
    capabilityPolicy?: CapabilityPolicy;
    descriptor: SourceDescriptor<Protocol>;
    discovery?: QueryPlanDiscoveryContext;
    estimates?: QueryPlanningEstimates;
    executionMode?: QueryPlanExecutionMode;
    fallback?: QueryFallbackPolicy;
    query?: Readonly<Query<T>>;
    representation?: QueryPlanRepresentationRequest;
    schemaVersion?: string;
    sourceVersion?: string;
}

Type Parameters

  • T = Record<string, unknown>

Hierarchy (view full)

Properties

authorizationScope?: readonly string[]

Stable scope identifiers only. Never pass credentials or tokens.

Stable cache state only. Observation clocks never enter a plan fingerprint.

capabilityPolicy?: CapabilityPolicy

Credential-safe discovery identity. Raw sources/validators are digested.

Caller-supplied metadata estimates; explaining never reads result data.

executionMode?: QueryPlanExecutionMode

Realtime delta plans carry mode only; live cursor bytes remain transport state.

query?: Readonly<Query<T>>

Result-representation intent. Defaults to auto, which selects from declared source capabilities plus ExplainQueryOptions.estimates. Pinning a representation the source cannot serve throws HonuaCapabilityNotSupportedError rather than degrading silently.

schemaVersion?: string
sourceVersion?: string