ReadonlytypeDiscriminator for document content.
ReadonlynameDocument name.
ReadonlyformatDocument format.
ReadonlysourceDocument source.
Optional ReadonlycitationsCitation configuration.
Optional ReadonlycontextContext information for the document.
Serializes the DocumentBlock to a JSON-compatible ContentBlockData object. Called automatically by JSON.stringify(). Uint8Array bytes are encoded as base64 string.
StaticfromCreates a DocumentBlock instance from its wrapped data format. Base64-encoded bytes are decoded back to Uint8Array.
Wrapped DocumentBlockData to deserialize (accepts both string and Uint8Array for bytes)
DocumentBlock instance
Document content block.