DocumentSyncOutgoingUpdate
One encrypted Loro update a client uploads, with its signed write header.
Shape
object
12 fields
baselineIdstringoptional- lowercase UUID v4
The rotation baseline the update is a segment of: an ordered group of updates that together carry the document's whole history at the epoch a rotation opened. Signed in the content-record metadata; absent for an ordinary update.
baselineSegmentCountintegeroptional- 1 to 4,096
On a baseline's final segment only, how many segments the baseline has. Signed in the content-record metadata.
baselineSegmentIndexintegeroptional- 0 to 4,095
The segment's place in its baseline, from zero. Signed in the content-record metadata. A request sends a baseline's segments together, in index order.
baselineSegmentsDigeststringoptional- exactly 64 characters
- lowercase hexadecimal
On a baseline's final segment only, the digest of the segments before it: a hash chain over each one's index, update id, metadata hash and ciphertext hash, started from the document and baseline ids. Signed in the content-record metadata, so a reader that holds every segment can tell none was dropped, replaced or reordered.
coversThroughUpdateIdstringoptional- lowercase UUID v4
On a baseline's final segment, its author's processed cursor: every update committed up to this one was imported into the baseline or void for the author, so the segments must cover only later updates. Signed in the content-record metadata; absent means every committed update must be covered. Required on a baseline that declares no operations, the one empty segment of an author who voided every update through the cursor.
dependencyVersionVectorstringrequired- 1 to 16,777,216 characters
Version vector of the operations the update depends on outside itself: one past each peer's latest such operation, as Loro decodes the payload's start frontiers. Signed in the content-record metadata. The server refuses an update that depends on an operation it has not committed (
document_sync_dependency_uncommitted), and a reader voids one whose payload depends on other operations. A baseline segment depends only on its baseline's earlier segments.encryptedDatastringrequired- 1 to 16,777,216 characters
Base64 ciphertext of the update under the document content key.
idstringrequired- lowercase UUID v4
Client-chosen update id; a retry with the same id is accepted only if the ciphertext and header are identical.
partialEndVersionVectorstringrequired- 1 to 16,777,216 characters
Version vector the update brings the document to. It must declare at least one operation past
partialStartVersionVector, except on the one segment of an empty baseline, which signscoversThroughUpdateId.partialStartVersionVectorstringrequired- 1 to 16,777,216 characters
Version vector the update starts from.
plaintextHashstringrequired- not empty
Hash of the plaintext update, committed by the write header.
writeHeaderobject with any fieldsrequiredSigned write header binding the ciphertext to the document, access manifest, content-key epoch, target hash, and writer.
Other fields are allowed.