Skip to content

HeldCapability

HeldCapability = object

Defined in: packages/schema/src/access/role-entry.ts:22

A capability a role holds, with the fields and rows it is limited to when it has a limit.

capability: string

Defined in: packages/schema/src/access/role-entry.ts:24

The capability, such as products.read.


optional fields?: readonly string[]

Defined in: packages/schema/src/access/role-entry.ts:26

The only fields it reads or writes; every field when omitted.


optional filter?: FilterExpr

Defined in: packages/schema/src/access/role-entry.ts:28

The filter its rows must match, parsed.