Interface: TermVersionsResponse
@kortexya/reasoninglayer / TermVersionsResponse
Interface: TermVersionsResponse
Section titled “Interface: TermVersionsResponse”Defined in: src/types/terms.ts:777
A term’s recorded history, newest first.
Properties
Section titled “Properties”historyRecorded
Section titled “historyRecorded”historyRecorded:
boolean
Defined in: src/types/terms.ts:790
History is being recorded for this term.
Remarks
Section titled “Remarks”false with an empty versions means the engine holds no history for
the term, NOT that the term has never changed — the distinction a client
needs before telling a user “no changes”. Two cases answer it: the engine
is not recording, or the id names a rule’s CONCLUSION (a derived term is
never written, so it never has a recorded history).
termId
Section titled “termId”termId:
string
Defined in: src/types/terms.ts:779
The term asked about.
versions
Section titled “versions”versions:
TermVersionDto[]
Defined in: src/types/terms.ts:800
The recorded versions, NEWEST FIRST.
Remarks
Section titled “Remarks”versions[0] is the current state and versions.at(-1) the first
recorded one. Each TermVersionDto.diff is against the version
that FOLLOWS it in this array (its predecessor in time). The SDK passes
the engine’s order through unchanged.