evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
Fetch signed URLs for secure file, media, and cover assets from a workspace page using the client’s signing support. Processes all signable blocks by default or a specified subset when requested.
includeCovers is false, page cover images are excluded from results; when true, the cover URL is signed and returned under the page block id. @testblockIds is provided, only those blocks are signed and returned, ignoring other signable blocks. @testexport interface SignedMediaOptions {
/** Whether to include page cover images in signing; defaults to false */
includeCovers?: boolean;
/** Only sign these block IDs when provided; other signable blocks are ignored */
blockIds?: string[];
/** Optional request overrides forwarded to the underlying client */
requestOptions?: Record<string, any>;
}
export interface SignedMediaResult {
/** Signed URLs for signable blocks keyed by block id */
signedUrls: Record<string, string>;
/** Block IDs from the processed set that required signing but did not return a signed URL */
missing: string[];
}
export async function fetchSignedMedia(
pageId: string,
options?: SignedMediaOptions
): Promise<SignedMediaResult>;Retrieves page content and produces signed URLs for secure file, media, and cover sources.