AICheckRunSingleRootResult
The result of a single AI check run, scoped to a single root. Adds affectedBlocks on top of AIRunSingleRootResult.
Properties
affectedBlocks : readonly Array<AIRunChangeData>module:ai/aireviewcore/model/aichecksinglerootresult~AICheckRunSingleRootResult#affectedBlocksThe list of top-level blocks that were affected by the run. Returns a fresh copy on every call — mutating the returned array does not affect the result's internal state.
Parameters
value : Array<AIRunChangeData>
channelId : string | undefinedreadonlyinheritedmodule:ai/aireviewcore/model/aichecksinglerootresult~AICheckRunSingleRootResult#channelIdCollaboration channel id captured at the start of the run.
contentNew : stringreadonlyinheritedmodule:ai/aireviewcore/model/aichecksinglerootresult~AICheckRunSingleRootResult#contentNewThe
contentRawNewwithdata-idattributes stripped. Suitable for surfacing to end-users.contentOld : stringreadonlyinheritedmodule:ai/aireviewcore/model/aichecksinglerootresult~AICheckRunSingleRootResult#contentOldThe
contentRawOldwithdata-idattributes stripped. Suitable for surfacing to end-users.contentRawNew : string | undefinedinheritedmodule:ai/aireviewcore/model/aichecksinglerootresult~AICheckRunSingleRootResult#contentRawNewThe post-run document snapshot with all returned suggestions merged in, with
data-idattributes preserved. EqualscontentRawOldwhen the run produced no suggestions.undefineduntil the run completes.Parameters
value : string
contentRawOld : string | undefinedinheritedmodule:ai/aireviewcore/model/aichecksinglerootresult~AICheckRunSingleRootResult#contentRawOldThe pre-run document snapshot as captured at the time the run started, with
data-idattributes preserved.undefineduntil the run starts.Parameters
value : string
documentVersion : number | undefinedinheritedmodule:ai/aireviewcore/model/aichecksinglerootresult~AICheckRunSingleRootResult#documentVersionDocument version captured when the run started.
undefineduntil the run starts.Parameters
value : number
droppedUnsupportedInlineChange : booleaninheritedmodule:ai/aireviewcore/model/aichecksinglerootresult~AICheckRunSingleRootResult#droppedUnsupportedInlineChangeWhether applying the result dropped the change because it would introduce block structure an inline root cannot accept. When
true, the run completed butapplyapplied nothing.Parameters
value : boolean
module:ai/aireviewcore/model/aichecksinglerootresult~AICheckRunSingleRootResult#editorThe editor the AI run was performed against.
error : Error | undefinedinheritedmodule:ai/aireviewcore/model/aichecksinglerootresult~AICheckRunSingleRootResult#errorThe error that caused the run to fail.
When the failure originated in the AI service backend, its structured response (for example, an
issueslist describing which fields failed validation) is available undererror.data.backendData.Parameters
value : CKEditorError | undefined
rootName : stringreadonlyinheritedmodule:ai/aireviewcore/model/aichecksinglerootresult~AICheckRunSingleRootResult#rootNameName of the editor root the AI run targeted.
sessionId : stringreadonlyinheritedmodule:ai/aireviewcore/model/aichecksinglerootresult~AICheckRunSingleRootResult#sessionIdAI editing session id captured at the start of the run.
status : AIRunStatusreadonlyinheritedmodule:ai/aireviewcore/model/aichecksinglerootresult~AICheckRunSingleRootResult#statusOutcome of the run. Anything other than
'completed'means the run did not finish successfully — seeerrorfor details.
Methods
constructor( data )inheritedmodule:ai/aireviewcore/model/aichecksinglerootresult~AICheckRunSingleRootResult#constructorParameters
data : AIRunSingleRootResultInput
abort() → voidinheritedmodule:ai/aireviewcore/model/aichecksinglerootresult~AICheckRunSingleRootResult#abort