Type Alias DocumentBlocks

DocumentBlocks: components["schemas"]["DocumentBlocks"]

A whole document read as blocks: its id, its version for If-Match, the block model schema number, the derived plain text, and the top-level blocks.

const document: DocumentBlocks = await lk.documents.getBlocks({ resourceId, documentId })