Interface CreateOfflineRegionTileProtocolOptions

interface CreateOfflineRegionTileProtocolOptions {
    authorizationScopeFingerprint: string;
    bounds?: OfflineRegionBounds;
    expect?: {
        planVersion?: string;
        schemaVersion?: string;
        sourceVersion?: string;
    };
    manifest: OfflineRegionManifestV1;
    now?: (() => Date);
    onTile?: ((read: OfflineRegionTileReadV1) => void);
    query?: Query<Record<string, unknown>>;
    staleAfterMs?: number;
    store: OfflineRegionStore;
}

Hierarchy

  • Omit<ReadOfflineRegionTileOptions,
        | "tile"
        | "scheme"
        | "tileMatrixSetId"
        | "signal">
    • CreateOfflineRegionTileProtocolOptions

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)
onTile?: ((read: OfflineRegionTileReadV1) => void)

Observe every tile served, for diagnostics. Exceptions are ignored.

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.

staleAfterMs?: number