Check whether the server still owes this vault sync work
const url = 'https://api.engram.page/sync/quiescence';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.engram.page/sync/quiescence \ --header 'Authorization: Bearer <token>'The vault’s change_seq plus how many CRDT updates still await their checkpoint. A client whose catch-up cursor has reached change_seq while both counts are 0 has seen every change the server will make on its own. deferred_checkpoints (held by a live room) is reported but is not owed work. checkpoints_capped is true when more pending checkpoints exist than the server reads per call; pending_checkpoints is then at least 1, never 0.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Sync quiescence
object
Current per-vault sequence watermark.
True when more pending checkpoints exist than one call reads; the counts are then lower bounds and pending_checkpoints is at least 1.
Unfinished checkpoint jobs held by a live room, which materializes the note itself on exit. Not owed work.
Unfinished checkpoint jobs for this vault’s notes whose note has no live room. Includes a snoozed job whose room has since exited.
CRDT updates stored but not yet folded into their note by a checkpoint.
Example generated
{ "change_seq": 1, "checkpoints_capped": true, "deferred_checkpoints": 1, "pending_checkpoints": 1, "pending_crdt_updates": 1}