Skip to content

Interface: TermVersionsResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / TermVersionsResponse

Defined in: src/types/terms.ts:777

A term’s recorded history, newest first.

historyRecorded: boolean

Defined in: src/types/terms.ts:790

History is being recorded for this term.

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

Defined in: src/types/terms.ts:779

The term asked about.


versions: TermVersionDto[]

Defined in: src/types/terms.ts:800

The recorded versions, NEWEST FIRST.

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.