@xtandard/audit/authorization/roles
Role-based authorization: rolesAuthorization() maps role names to the
actions they grant (built-in admin/auditor/viewer policy by default),
with a readonly switch that denies every mutating action.
import { … } from "@xtandard/audit/authorization/roles";Functions
Section titled “Functions”| Name | Summary |
|---|---|
rolesAuthorization |
Create a role-based AuthorizationProvider. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
RolesAuthorizationOptions |
Options for rolesAuthorization. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
RolePolicy |
A role policy: each role maps to an explicit action list or the "*" wildcard. |
Variables
Section titled “Variables”| Name | Summary |
|---|---|
AUDITOR_ACTIONS |
What an auditor needs: every read, exporting events, and signing checkpoints — but no erasure, retention, catalog edits or stream control. |
DEFAULT_ROLE_POLICY |
The default role policy applied when RolesAuthorizationOptions.policy is omitted. |
READ_ACTIONS |
Re-exports
Section titled “Re-exports”| Name | Documented on |
|---|---|
ALL_ACTIONS |
@xtandard/audit |