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.
Properties
channelId : stringmodule:ai/aisdk/documentcompare~DocumentComparePatch#channelIdThe channel of the document the snapshot was captured from, validated on apply.
operations : Record<string, Array<Operation>>module:ai/aisdk/documentcompare~DocumentComparePatch#operationsThe operations to apply, keyed by root name (a root with no changes maps to an empty array).
module:ai/aisdk/documentcompare~DocumentComparePatch#optionsThe options the patch was computed with, reused when applying it.
sessionId : stringmodule:ai/aisdk/documentcompare~DocumentComparePatch#sessionIdThe editing session the snapshot was captured in, validated on apply.
version : numbermodule:ai/aisdk/documentcompare~DocumentComparePatch#versionThe snapshot version the operations are anchored to (used to reconcile them on apply).