Protected ReadonlydbProtected ReadonlyredirectOptionalcustomerIds?: string[]OptionalexpiresAt?: DbTimestampCriteria<Date>Optionalids?: string[]OptionalorderBy?: DbOrderByCriterion<Sort order. Defaults to newest-created-first. expires_at is nullable,
so a Postgres sort places NULL (never-expiring) rows last on ASC and
first on DESC (the DB defaults). A stable id tiebreak keeps paging
deterministic when the sort key ties.
Optionalpage?: numberOptionalpageSize?: number
Filter on the expiry timestamp;
{ before: "now" }= expired-only.expires_atis nullable — never-expiring rows carry NULL, and the comparison predicates evaluate to NULL (not true) for them, so they are excluded whenever this criterion is set.