Interface: ListPendingReviewsOptions
@kortexya/reasoninglayer / ListPendingReviewsOptions
Interface: ListPendingReviewsOptions
Section titled “Interface: ListPendingReviewsOptions”Defined in: src/types/reviews.ts:66
Filters and pagination for GET /api/v1/reviews/pending.
Remarks
Section titled “Remarks”Every field is optional; omit the argument entirely to list the first page of every pending review.
There is deliberately no tenantId field. The route accepts a tenant_id
query parameter for wire-compatibility but ignores it: the tenant is always
the authenticated principal’s, taken from the X-Tenant-Id header the SDK
sends on every request. Trusting the query parameter was a cross-tenant IDOR.
Properties
Section titled “Properties”
optionalpage?:number
Defined in: src/types/reviews.ts:72
Zero-indexed page number. Defaults to 0 server-side.
pageSize?
Section titled “pageSize?”
optionalpageSize?:number
Defined in: src/types/reviews.ts:74
Entries per page. Defaults to 50 server-side.
reason?
Section titled “reason?”
optionalreason?:ReviewReason
Defined in: src/types/reviews.ts:70
Return only reviews raised for this reason.
optionalsort?:string
Defined in: src/types/reviews.ts:68
Return only reviews whose entity carries this sort name.