auth/all_cell_actions.ts view source
AllCellActionDeps type ActionFactoryDeps & { validate_data?: ((kind: string | null, data: Readonly<{ label?: string | undefined; summary?: string | undefined; } & Record<string, unknown>>) => void) | undefined; authorize_create?: CellCreateAuthorize | undefined; } & { authorize_grant_create?: CellGrantCreateAuthorize | undefined; authorize_grant_revoke?: CellGrantRevokeAuthorize | undefined; }
import type {AllCellActionDeps} from '@fuzdev/fuz_app/auth/all_cell_actions.js'; Dependencies for create_all_cell_actions — the CRUD factory's
CellActionDeps plus the grant factory's optional authorize_grant_create
and authorize_grant_revoke.
log
Structured logger instance.
type Logger
audit
Bound audit emitter for audit writes.
type AuditEmitter
validate_data?
type (kind: string | null, data: Readonly<{ label?: string | undefined; summary?: string | undefined; } & Record<string, unknown>>): void
kind
string | nulldata
Readonly<CellData>voidauthorize_create?
type CellCreateAuthorize
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>