Skip to content

Interface: VocabularyCandidateRevision

@kortexya/reasoninglayer


@kortexya/reasoninglayer / VocabularyCandidateRevision

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

A candidate revision: 201 of create, save and rebase, 200 of GET /revisions/{id}.

revisionId is also the ETag ("<revision_id>") to send as ifMatch to save or rebase. advisoryFindings never refuse a save and are not authoritative (an assessment is); they and mintedIds are empty on reads and rebases.

advisoryFindings: VocabularyFinding[]

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

Obligation findings over the revision’s view when it was saved.


authors: string[]

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

Cumulative authors (user:<uuid>), sorted.


baseline: VocabularyBaseline

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

The baseline.


candidateId: string

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

The candidate (UUID).


changeReason: string

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

Why.


contentHash: string

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

The content hash a decision on this revision must cite.


createdAt: string

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

When (database clock, ISO 8601).


createdBy: string

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

Who saved this revision.


mintedIds: Record<string, string>

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

Client references this edit bound to newly minted ids (client reference → UUID).


outcome: string

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

committed.


records: VocabularyRecordView[]

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

The records the cumulative change set inserts or replaces.


removals: string[]

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

The baseline records it removes (UUIDs).


replayed: boolean

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

Whether this answer replays an earlier identical request.


revisionId: string

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

The revision (UUID).


revisionNumber: number

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

1-based revision number.


state: VocabularyCandidateState

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

The candidate’s state (after the edit, for a mutation).