# DocumentComparePatch

interface

The result of comparing a snapshot against processed data: the operations to bring the document to the new state, together with the snapshot metadata.

Can be applied via [`applyPatch`](module_ai_aisdk_documentcompare-DocumentCompare.md#function-applyPatch).

<a id="properties">

## Properties

<a id="member-channelId">

### `channelId: string`

The channel of the document the snapshot was captured from, validated on apply.

<a id="member-operations">

### `operations: Record<string, Array<Operation>>`

The operations to apply, keyed by root name (a root with no changes maps to an empty array).

<a id="member-options">

### `options: DocumentCompareDiffOptions`

The options the patch was computed with, reused when applying it.

<a id="member-sessionId">

### `sessionId: string`

The editing session the snapshot was captured in, validated on apply.

<a id="member-version">

### `version: number`

The snapshot version the operations are anchored to (used to reconcile them on apply).

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
