Nutrient Web SDK

ReferenceAIADocumentChangeResponseItem

Interface AIADocumentChangeResponseItem

Base response item from AI services representing a single document change. Contains the essential information about a text modification detected during comparison.

Interface

Example

// Typical structure of a change item
{
id: "change-456",
type: "deletion",
text: "old contract terms",
page: 1,
contextBefore: "The following ",
contextAfter: " are no longer valid"
}

Hierarchy

AIADocumentChangeResponseItem

Properties

contextAfter

Optional
string

Text content appearing after the change for context.

string

Text content appearing before the change for context.

string

Unique identifier for this change, used for tracking and correlation

number

Zero-based page number where this change occurred

string

The actual text content that was changed

string

Type of change operation (e.g., "insertion", "deletion", "modification")