Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Capture the current document’s diffable state as a versioned snapshot. v1 covers body, comments, styles, and numbering. Header/footer content is not included.- Operation ID:
diff.capture - API member path:
editor.doc.diff.capture(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a DiffSnapshot with a fingerprint and opaque payload.Input fields
No fields.Example request
Output fields
| Field | Type | Required | Description |
|---|---|---|---|
coverage | object | yes | |
coverage.body | true | yes | Constant: true |
coverage.comments | boolean | yes | |
coverage.headerFooters | false | yes | Constant: false |
coverage.numbering | boolean | yes | |
coverage.styles | boolean | yes | |
engine | enum | yes | "super-editor" |
fingerprint | string | yes | |
payload | object | yes | |
version | "sd-diff-snapshot/v1" | yes | Constant: "sd-diff-snapshot/v1" |
Example response
Pre-apply throws
- None
Non-applied failure codes
- None
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema

