Skip to content

Interface: VocabularyImport

@kortexya/reasoninglayer


@kortexya/reasoninglayer / VocabularyImport

Defined in: src/types/vocabulary.ts:5632

201 of POST /api/v1/vocabulary/imports and 200 of GET /api/v1/vocabulary/imports/{import_id}: an import proposal.

Nothing is written to the vocabulary until a commit. An incomplete import (complete: false) can be read, never committed. The keys of counts (dispositions) and proposedRecordCounts (record kinds) are wire values, copied verbatim.

artifact: VocabularyImportArtifact

Defined in: src/types/vocabulary.ts:5636

The artefact read.


optional baselineReleaseId?: string

Defined in: src/types/vocabulary.ts:5650

The release the proposal was reconciled against (UUID).


optional committedAt?: string

Defined in: src/types/vocabulary.ts:5654

When it was committed (ISO 8601).


optional committedRevisionId?: string

Defined in: src/types/vocabulary.ts:5652

The revision that committed the import (UUID).


complete: boolean

Defined in: src/types/vocabulary.ts:5640

Whether the parse read the whole artefact.


counts: Record<string, number>

Defined in: src/types/vocabulary.ts:5644

Items by disposition (disposition → count).


createdAt: string

Defined in: src/types/vocabulary.ts:5658

When (database clock, ISO 8601).


createdBy: string

Defined in: src/types/vocabulary.ts:5656

Who created it (user:<uuid>).


dataset: string

Defined in: src/types/vocabulary.ts:5638

The declared dataset.


importId: string

Defined in: src/types/vocabulary.ts:5634

The import (UUID).


proposedRecordCounts: Record<string, number>

Defined in: src/types/vocabulary.ts:5646

Proposed records by kind (record kind → count).


reconciliation: VocabularyReconciliationEntry[]

Defined in: src/types/vocabulary.ts:5648

One entry per source resource that proposes a record.


replayed: boolean

Defined in: src/types/vocabulary.ts:5660

Whether this answer replays an earlier identical request.


optional stopReason?: string

Defined in: src/types/vocabulary.ts:5642

Why the parse stopped (syntax_error, item_limit, unreadable).