Nutrient Web SDK
    Preparing search index...

    Interface AIADocumentChangeResponseItem

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

    // 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"
    }
    interface AIADocumentChangeResponseItem {
        contextAfter?: string;
        contextBefore?: string;
        id: string;
        page: number;
        text: string;
        type: string;
    }

    Hierarchy

    Index

    Properties

    contextAfter?: string

    Text content appearing after the change for context.

    contextBefore?: string

    Text content appearing before the change for context.

    id: string

    Unique identifier for this change, used for tracking and correlation

    page: number

    Zero-based page number where this change occurred

    text: string

    The actual text content that was changed

    type: string

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