Skip to content

Interface: VocabularyCandidateRevision

@kortexya/reasoninglayer


@kortexya/reasoninglayer / VocabularyCandidateRevision

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

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

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


authors: string[]

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

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


baseline: VocabularyBaseline

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

The baseline.


candidateId: string

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

The candidate (UUID).


changeReason: string

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

Why.


contentHash: string

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

The content hash a decision on this revision must cite.


createdAt: string

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

When (database clock, ISO 8601).


createdBy: string

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

Who saved this revision.


mintedIds: Record<string, string>

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

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


outcome: string

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

committed.


proposalCounts: Record<string, number>

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

The proposals among those records, counted by record kind: the draft concepts and the proposed memberships, concept relations, concept mappings and collections that the operation accept_proposals would accept. Kinds without a proposal are absent.


recordCounts: Record<string, number>

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

The records the cumulative change set inserts or replaces, counted by record kind (wire kind spelling → count). Read the records themselves page by page with VocabularyClient.listRevisionRecords.


removals: string[]

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

The baseline records it removes (UUIDs).


replayed: boolean

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

Whether this answer replays an earlier identical request.


revisionId: string

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

The revision (UUID).


revisionNumber: number

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

1-based revision number.


state: VocabularyCandidateState

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

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