Skip to main content

Scope

@mandaitor/sdk


@mandaitor/sdk / Scope

Interface: Scope

Defined in: @mandaitor/sdk/dist/types.d.ts:43

What a mandate delegates: the taxonomy actions and resource patterns it covers, whether it grants or denies them, and any fine-grained conditions.

Properties​

actions​

actions: string[]

Defined in: @mandaitor/sdk/dist/types.d.ts:45

List of action identifiers from the taxonomy, e.g. ["construction.validation.approve"]


conditions?​

optional conditions?: Record<string, unknown>

Defined in: @mandaitor/sdk/dist/types.d.ts:51

Optional conditions for fine-grained control


effect​

effect: "ALLOW" | "DENY"

Defined in: @mandaitor/sdk/dist/types.d.ts:49

Whether this scope allows or denies the actions


resources​

resources: string[]

Defined in: @mandaitor/sdk/dist/types.d.ts:47

Resource URI patterns, e.g. ["monco:project:proj_123/*"]