Interface OfflineRegionReadGateOptions

Inputs every offline read shares.

A store is deliberately absent: admission is decided entirely from the manifest and the caller's own inputs, so the same options resolve a resource identity for a host's request matcher without any storage access at all.

interface OfflineRegionReadGateOptions {
    authorizationScopeFingerprint: string;
    bounds?: OfflineRegionBounds;
    expect?: {
        planVersion?: string;
        schemaVersion?: string;
        sourceVersion?: string;
    };
    now?: (() => Date);
    query?: Query<Record<string, unknown>>;
    signal?: AbortSignal;
    staleAfterMs?: number;
}

Hierarchy (view full)

Properties

authorizationScopeFingerprint: string

The caller's current authorization-scope partition input. Its digest must equal the region's, so a scope change can never serve another principal's cached bytes.

Extent the caller is asking about. Must equal the region's own extent.

expect?: {
    planVersion?: string;
    schemaVersion?: string;
    sourceVersion?: string;
}

Versions the caller expects. A drift fails closed instead of serving stale schema.

now?: (() => Date)
query?: Query<Record<string, unknown>>

Protocol-neutral query the snapshot was planned with. Every resource of a snapshot is identified against its selection's canonical query, so a tile or document planned under a query must be read back under the same one.

signal?: AbortSignal
staleAfterMs?: number