Document apiReferenceChanges
changes.get
Get one retained change record by id.
read-onlyidempotent
await doc.changes.get(…)Expected result
Returns the ChangeRecord with that id, or null when this session does not retain it.
Inputs
idstringrequiredResult
Output fields
id
idstringrequiredDeterministic id: identical transactions yield identical ids in every session.
seqintegerrequiredrevisionstringrequiredorigin"local" | "remote"requiredactorobject | nullrequiredid
idstring | nullrequirednamestringemailstringclaimstringApplication-supplied identity claim. SuperDoc does not verify it.
Variant 2
No fields.
contributorsobject[]actorType"human" | "code" | nullrequiredVariant 1
No fields.
Variant 2
No fields.
cause"user" | "api" | "undo" | "redo" | nullrequiredVariant 1
No fields.
Variant 2
No fields.
provenance"authored" | "declared" | "relayed" | "unknown"requiredatobjectrequiredFields
declaredstring | nullrequiredobservedstringrequiredsessionobjectrequiredFields
idstring | nullrequiredclientIdintegerrequiredchangeTagstringchangestext | format | paragraph | split | merge | move | create | remove | table | sidecar[]requiredupdatestringBase64 Yjs v1 update for exactly this transaction.
Variant 2
No fields.
Failures
Pre-apply throws
INVALID_INPUTCAPABILITY_UNAVAILABLE
Raw schemas
Open the generated JSON artifact for the exact input, output, success, and failure schemas represented by this contract version.
View raw JSON schemas