/** * A child document found by Split. */ export interface DocAiSplitSegment { id?: string | undefined; /** Reuse this reference as the `input` of another request. */ document_ref?: string | undefined; /** Original page numbers. */ pages?: number[] | undefined; /** `document`. */ role?: string | undefined; /** The matched category, or `null` when classification was not requested or no category fits. */ type?: string | undefined; /** `not_requested`, `matched` or `unknown`. */ classification_status?: string | undefined; /** On `unknown`: `no_matching_type`. */ unknown_reason?: string | undefined; /** Score for the matched category. */ class_confidence?: number | undefined; /** Score for the boundaries of this segment. */ segment_confidence?: number | undefined; start_boundary_confidence?: number | undefined; end_boundary_confidence?: number | undefined; /** Whether a person should check this segment. */ review_required?: boolean | undefined; /** E.g. `NO_MATCHING_TYPE`, `MULTIPLE_DOCUMENTS_DETECTED`, `LEADING_PAGES_WITHOUT_TRIGGER`. */ review_reasons?: string[] | undefined; }