changes.list
List the change records this session retains, oldest first, with each change's actor, cause, provenance and affected blocks. Pass the returned cursor back as `after` to read only newer records; `waitMs` long-polls until at least one newer record exists.
await doc.changes.list(…)Expected result
Returns a ChangesListResult with items (oldest to newest), a resume cursor, a truncated flag when records after `after` were evicted, the session identity state and whether the session is collaborative.
Inputs
afterstringCursor from a previous result. Omit to read from the oldest retained record.
limitintegerMaximum number of records to return. Defaults to 100.
storyStoryLocatorStory scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes.
body
kind"story"requiredstoryType"body"requiredheaderFooterSlot
kind"story"requiredstoryType"headerFooterSlot"requiredsectionSectionAddressrequiredFields
kind"section"requiredsectionIdstringrequiredheaderFooterKind"header" | "footer"requiredvariant"default" | "first" | "even"requiredresolution"effective" | "explicit"onWrite"materializeIfInherited" | "editResolvedPart" | "error"headerFooterPart
kind"story"requiredstoryType"headerFooterPart"requiredrefIdstringrequiredfootnote
kind"story"requiredstoryType"footnote"requirednoteIdstringrequiredendnote
kind"story"requiredstoryType"endnote"requirednoteIdstringrequiredtextbox
kind"story"requiredstoryType"textbox"requiredtextboxIdstringrequiredblockIdstringMatches the block or any block in its split/merge lineage.
actorIdstringincludeUpdatebooleanInclude each record's base64 Yjs update. Defaults to false.
waitMsintegerWait up to this many milliseconds for at least one record after `after`. Defaults to 0.
Result
Output fields
itemsobject[]requiredcursorstring | nullrequiredtruncatedbooleanrequiredidentity"configured" | "missing"requiredcollaborationbooleanrequiredFailures
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