evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
Build a utility that retrieves a complete record map for a workspace page, with optional hydration of missing blocks, linked collections, and signed file URLs.
export interface PageLoadOptions {
pageId: string;
includeMissingBlocks?: boolean;
includeCollections?: boolean;
includeSignedFiles?: boolean;
chunkLimit?: number;
chunkNumber?: number;
}
export interface PageLoadResult {
recordMap: {
block: Record<string, unknown>;
collection?: Record<string, unknown>;
collection_view?: Record<string, unknown>;
signed_urls?: Record<string, string>;
};
sources: {
blocksResolved: boolean;
collectionsResolved: boolean;
filesSigned: boolean;
};
}
export async function loadPageMap(options: PageLoadOptions): Promise<PageLoadResult>;Fetches page record maps and supports optional hydration for blocks, collections, and signed file URLs.