Skip to content

Interface: IngestDocumentResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / IngestDocumentResponse

Defined in: src/types/ingestion.ts:1643

Response from document ingestion: the 200 (parseOnly) and 201 (inline ingestion) body of POST /api/v1/ingest/document.

optional documentId?: string | null

Defined in: src/types/ingestion.ts:1649

Session-tracking id of the document (UUID) — the key that session progress and stats use. For the document-registry id, read ingestionStats.documentTermId.


optional error?: string | null

Defined in: src/types/ingestion.ts:1651

Error message if parsing failed.


ingestionStats: IngestionStatsDto

Defined in: src/types/ingestion.ts:1653

Markdown ingestion statistics (from the markdown pipeline).


optional markdown?: string | null

Defined in: src/types/ingestion.ts:1655

Markdown the document parser produced, including OCR output.


metadata: ParsedDocumentMetadataDto

Defined in: src/types/ingestion.ts:1657

Document metadata.


parseStats: DocumentParseStatsDto

Defined in: src/types/ingestion.ts:1659

Document parsing statistics.


optional pendingReview?: PendingReviewDto[]

Defined in: src/types/ingestion.ts:1661

Entities that need human review.


optional sessionId?: string | null

Defined in: src/types/ingestion.ts:1663

Session ID for tracking and resumption (UUID).


optional speakerNotes?: SlideNotes[]

Defined in: src/types/ingestion.ts:1667

Speaker notes by slide position, from a read-only PowerPoint upload with speakerNotes.


success: boolean

Defined in: src/types/ingestion.ts:1665

Whether the entire operation was successful.


optional workbook?: WorkbookDetails

Defined in: src/types/ingestion.ts:1669

Source cell data, when workbookDetails was asked for an XLSX read.