Skip to content

IGrantsListItem

Defined in: src/types/IGrants.ts:68

A flat grants list item — the DB-friendly form. Either a rule row (role + resource + action …) or an inheritance row (role + $extend). See IGrantsList.

role: string

Defined in: src/types/IGrants.ts:70

The role this row belongs to.


optional resource?: string

Defined in: src/types/IGrants.ts:72

Target resource (omit for an inheritance row).


optional action?: string

Defined in: src/types/IGrants.ts:77

Action, optionally with possession via the :own/:any convention (e.g. 'create' or 'create:own'). Omit for an inheritance row.


optional possession?: "own" | "any"

Defined in: src/types/IGrants.ts:79

Ownership scope (alternative to the :own/:any suffix on action).


optional attributes?: string | string[]

Defined in: src/types/IGrants.ts:81

Granted attributes — comma/semicolon string or string array.


optional condition?: ConditionJSON

Defined in: src/types/IGrants.ts:83

Optional declarative condition.


optional effect?: "grant" | "deny"

Defined in: src/types/IGrants.ts:85

'grant' (default) or 'deny'.


optional $extend?: string | string[]

Defined in: src/types/IGrants.ts:87

Inherited role(s) — present only on an inheritance row.