BetaOptional BetadatasetBetadocumentBetadocumentOptional BetaliveIndicates whether this document uses liveEdit mode.
When true, the document does not use the draft/published model and edits are applied directly to the document.
Optional BetapatchesOptional BetaperspectiveOptional BetapreserveWhen true, the given patches are forwarded verbatim to the server and
applied as-is locally, instead of being re-derived by diffing document
snapshots. This preserves the operational intent of the patches (e.g.
keyed array inserts/unsets), which lets concurrent edits from other
clients interleave coherently instead of being overwritten by
position-based patches computed from a stale snapshot.
Use this when the patches were produced by an editor that tracks its own
operations (e.g. a collaborative text editor). During a rebase onto a
changed remote document, preserved patches are re-applied operationally;
if a patch can no longer apply, the transaction is skipped and reported
as a rebase-error document event.
Optional BetaprojectOptional BetaresourceExplicit resource to use. On an individual operation this overrides any default;
on a SanityConfig it becomes the instance's default resource. Unlike
projectId/dataset, this can also be a media library or canvas resource.
Betatype
Represents an action to edit an existing document using patches. Requires the full document handle and an array of patch operations.