Skip to content

Interface: RefusedDocument

@kortexya/reasoninglayer


@kortexya/reasoninglayer / RefusedDocument

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

A document of a batch that a bound constraint or a write refusal refused (reasoninglayer#1253). Nothing of it was committed, and the batch went on with the other documents.

optional documentId?: string

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

The caller’s id of the document, when it gave one.


error: string

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

The refusal in words: the message of the document’s synchronous 409.


errorCode: SessionDocumentFailureCode

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

The typed reason, as a session document records it.


optional errorRefusal?: SessionDocumentRefusal

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

The refused term, its feature and its constraint, when a bound constraint refused it.