auth/cell_actions.ts view source
CellActionDeps import type {CellActionDeps} from '@fuzdev/fuz_app/auth/cell_actions.js'; Dependencies for create_cell_actions.
validate_data is the optional sub-API hook for per-kind shape
validation (e.g., a collection/entry registry). It runs on every
incoming data payload (create, update, clone-merged) and may throw
a ZodError — the handler converts that into the standard
invalid_params JSON-RPC error so per-kind validation failures
surface to clients with code -32602 (not -32603 / internal). When
omitted, payloads pass through as-is.
authorize_create is the optional creation-gate hook (see
CellCreateAuthorize). When omitted, create is open (today's behavior).
log
Structured logger instance.
type Logger
audit
Bound audit emitter for fire-and-forget audit writes.
type AuditEmitter
validate_data?
type (data: { [x: string]: unknown; label?: string | undefined; summary?: string | undefined; }) => { [x: string]: unknown; label?: string | undefined; summary?: string | undefined; }
authorize_create?
type CellCreateAuthorize