Skip to content

Interface: ListSortsQuery

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ListSortsQuery

Defined in: src/types/sorts.ts:1904

The window and the filters over GET /api/v1/sorts/tenant/{id}.

A production tenant can own 1 M+ sorts (~500 MB uncompressed), which a single response reliably fails to deliver — so limit + offset are how a client streams the listing, and SortListResponse.total is how it knows when to stop.

optional includeSystem?: boolean

Defined in: src/types/sorts.ts:1917

Include system-defined sorts (Thing, Person, …).

Omitted defaults to false for an ordinary caller and true for a reserved-write-exempt one (policy_compiler / platform_admin). An explicit false is honoured for every caller.


optional limit?: number

Defined in: src/types/sorts.ts:1906

Max sorts to return. Omitted means no cap.


optional llmExtracted?: boolean

Defined in: src/types/sorts.ts:1919

Only sorts an LLM extracted.


optional namePrefix?: string[]

Defined in: src/types/sorts.ts:1928

Only sorts whose name starts with one of these prefixes.

Comma-joined onto the wire, so several prefixes cost one request.


optional needsReview?: boolean

Defined in: src/types/sorts.ts:1921

Only sorts flagged for human review.


optional offset?: number

Defined in: src/types/sorts.ts:1908

Zero-based index of the first sort returned.