LedgerRecord
type LedgerRecord = { id: string; lamport: number; meta?: TransactionMeta; ops: TransactionOp[]; seq?: number; source?: string; timestamp: number; touches: RecordTouch[];};Defined in: ledger.ts:23
A flat, JSON-serializable snapshot of one committed transaction.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
id | string | Stable unique id — the dedupe/diff key across ledgers. | ledger.ts:25 |
lamport | number | Logical (Lamport) clock for deterministic causal ordering and tie-breaking. | ledger.ts:31 |
meta? | TransactionMeta | Carried-through transaction metadata (e.g. nextSelection). Best-effort serializable. | ledger.ts:37 |
ops | TransactionOp[] | The transaction’s operations, deep-cloned so the record is self-contained. | ledger.ts:27 |
seq? | number | Per-source monotonic counter. Powers version vectors for delta sync; optional. | ledger.ts:35 |
source? | string | Origin of the edit (client/editor/site id), if known. | ledger.ts:33 |
timestamp | number | Wall-clock time of authoring (ms since epoch). Primary chronological key. | ledger.ts:29 |
touches | RecordTouch[] | Id-keyed conflict surface, resolved against the base doc at record time. | ledger.ts:39 |