Skip to content

AuditQuery

Defined in: src/schema.ts:237

The query model (ADR 0007). All filters are AND-ed; list-valued filters are OR-ed within themselves.

Property Type Description Defined in
actions? string[] Exact action names, or families with a trailing * ("invoice.*"). src/schema.ts:241
actorId? string - src/schema.ts:244
actorType? string - src/schema.ts:245
cursor? string Opaque keyset cursor from a previous page’s pageInfo.endCursor. src/schema.ts:260
excludeActions? string[] Exclude these names / families. src/schema.ts:243
from? string Inclusive lower bound on occurredAt (ISO-8601). src/schema.ts:250
limit? number Page size. Default 50, max 500. src/schema.ts:258
order? "desc" | "asc" Sort by (occurredAt, id). Default "desc" (newest first). src/schema.ts:256
outcome? AuditOutcome - src/schema.ts:248
search? string Case-insensitive substring over action, actor, targets, description, metadata. src/schema.ts:254
targetId? string - src/schema.ts:247
targetType? string - src/schema.ts:246
tenant? string Restrict to one tenant. Forced for portal principals. src/schema.ts:239
to? string Exclusive upper bound on occurredAt (ISO-8601). src/schema.ts:252