interface

Version

A stored version snapshot; its wire keys intentionally use capital initials.

Properties

PropertyTypeDescription
IDstringThe ID value.
DocumentIDstringThe DocumentID value.
RevisionnumberThe Revision value.
StatusDocumentStatus<Document>The Status value.
SnapshotDocumentThe Snapshot value.
CreatedAtstringThe CreatedAt value.

How it works

Status follows the generated document _status literal when present and otherwise retains the draft | published compatibility union.

Full signature

interface Version<Document> { ... }

Source packages/sdk/src/index.ts:72