Skip to content

Interface: IngestDocumentResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / IngestDocumentResponse

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

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:1449

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:1451

Error message if parsing failed.


ingestionStats: IngestionStatsDto

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

Markdown ingestion statistics (from the markdown pipeline).


optional markdown?: string | null

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

Markdown the document parser produced, including OCR output.


metadata: ParsedDocumentMetadataDto

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

Document metadata.


parseStats: DocumentParseStatsDto

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

Document parsing statistics.


optional pendingReview?: PendingReviewDto[]

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

Entities that need human review.


optional sessionId?: string | null

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

Session ID for tracking and resumption (UUID).


success: boolean

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

Whether the entire operation was successful.