Interface: FindBySortRequest
@kortexya/reasoninglayer / FindBySortRequest
Interface: FindBySortRequest
Section titled “Interface: FindBySortRequest”Defined in: src/types/query.ts:320
Request to find terms by sort ID or sort name, with optional filter.
Remarks
Section titled “Remarks”Used by POST /api/v1/query/by-sort. Accepts either sort_id (UUID)
or sort_name (human-readable name), plus an optional filter object for
feature-based filtering.
Properties
Section titled “Properties”fields?
Section titled “fields?”
optionalfields?:string[] |null
Defined in: src/types/query.ts:326
Top-level feature names to return. Omit for all features; an empty array returns metadata only. Filtering, authorization, counts and paging still use full terms. Unknown names are ignored; nested paths are not interpreted.
filter?
Section titled “filter?”
optionalfilter?:Record<string,string> |null
Defined in: src/types/query.ts:332
Optional filter for feature-based filtering.
includeDerived?
Section titled “includeDerived?”
optionalincludeDerived?:boolean
Defined in: src/types/query.ts:375
Answer with the rule-DERIVED shadows too.
Remarks
Section titled “Remarks”A rule’s conclusion is a fresh Ψ-term of the conclusion’s sort. When that
sort is a proper SUBSORT of the browsed one — the
confirmed_order < sales_order shape — the conclusion is a lattice member
of the browsed sort, and the default browse HIDES it, so two orders read
as two rows rather than four. A conclusion of the browsed sort ITSELF is
always answered.
This is the request-level twin of OSFQL MATCH … INCLUDING DERIVED. Every
returned term reports TermDto.origin either way, so a caller that
sets this can still tell the two apart.
Default Value
Section titled “Default Value”false
limit?
Section titled “limit?”
optionallimit?:number|null
Defined in: src/types/query.ts:337
Cap on the number of terms returned, applied after the filter. Omit (or pass 0) for no cap.
offset?
Section titled “offset?”
optionaloffset?:number|null
Defined in: src/types/query.ts:357
Zero-based index of the first term to return.
Remarks
Section titled “Remarks”Pages the same ordering limit cuts: the answer is ordered by term id
BEFORE the window is applied, so page 2 neither repeats nor skips a row of
page 1. Honoured with or without limit.
Measured 2026-09-18 against a 2-member sort:
{"sort_name":"widget","include_derived":true} answered ids
829ef5dc-…, d4f7a4f8-… with total: 2; the same request plus
{"limit":1,"offset":1} answered d4f7a4f8-… alone, still total: 2.
Reachable only through QueryClient.findBySortPage — QueryClient.findBySort discards the envelope, so paging through it gives you a window you cannot tell the end of.
Default Value
Section titled “Default Value”0
sortId?
Section titled “sortId?”
optionalsortId?:string|null
Defined in: src/types/query.ts:328
Sort UUID to search for.
sortName?
Section titled “sortName?”
optionalsortName?:string|null
Defined in: src/types/query.ts:330
Sort name to search for (alternative to sort_id).