BetaOptional BetacommentOptional BetacontentA copy of the content being discussed. References in it are weakened.
Optional BetacontextAmbient information stored alongside the comment, merged over the defaults.
The Studio writes tool, payload, intent, and notification here for
its notification backend. The SDK has no source for any of them, so
mentions in comments created this way do not send email unless you supply
notification yourself. Deliberately loose: the organization-level store
treats this as free-form, so no shape is worth promising.
Optional BetadatasetBetadocumentOptional BetadocumentThe _rev of the document when the comment was written.
Not filled in automatically: the SDK's local document revision is replaced by a transaction id while an edit is in flight, so it can name a revision that never reached the server. Nothing in the Studio reads this today.
BetadocumentBetafieldWhich field the thread hangs off, for example title or
body[_key=="intro"].content.
Required, and it has to resolve to a real path. There is no such thing as a comment on a document as a whole: the Studio only ever creates field comments, and its comment inspector throws on an empty path rather than ignoring it, so a pathless comment takes the inspector down for everyone looking at that document.
OptionalliveIndicates 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.
BetamessageOptional BetaperspectiveOptional BetaprojectOptional BetaresourceExplicit resource object to use for this operation.
Optional BetaselectionAnchors the comment to a run of text inside a Portable Text field. Building
one needs a live editor, so this comes from
@portabletext/plugin-sdk-value rather than being constructed by hand.
Optional BetasourceOptional BetastatusOptional BetathreadDefaults to a new id, which starts a new thread.
Reuse the id of a failed comment to retry it. Defaults to a new id.