auth/cell_grant_actions.ts view source
CellGrantActionDeps type ActionFactoryDeps & { roles: RoleRegistry; authorize_grant_create?: CellGrantCreateAuthorize | undefined; authorize_grant_revoke?: CellGrantRevokeAuthorize | undefined; }
import type {CellGrantActionDeps} from '@fuzdev/fuz_app/auth/cell_grant_actions.js'; Dependencies for create_cell_grant_actions.
roles is the role registry — read for the role-validity gate on
cell_grant_create; authorize_grant_create is the optional consumer gate
(CellGrantCreateAuthorize) and authorize_grant_revoke the optional
steward widening of cell_grant_revoke (CellGrantRevokeAuthorize). The
other slots match CellActionDeps so audit-log emit goes through the same
fire-and-forget plumbing.
log
Structured logger instance.
type Logger
audit
Bound audit emitter for audit writes.
type AuditEmitter
roles
type RoleRegistry
authorize_grant_create?
type (auth: RequestActorContext, input: CellGrantCreateAuthorizeInput, ctx: ActionContext): boolean | Promise<...>
auth
input
ctx
boolean | Promise<boolean>authorize_grant_revoke?
type (auth: RequestActorContext, input: CellGrantRevokeAuthorizeInput, ctx: ActionContext): boolean | Promise<...>
auth
input
ctx
boolean | Promise<boolean>