Skip to content

Interface: PreSaveContext

Typed context for the pre_save veto hook (s-write-path-despecialize). Handed to every veto listener BEFORE the document reaches the source adapter. raw is the live payload — listeners may mutate it in place. kernel is the kernel the write flows through (tenant-bound copy when applicable) so guards can read (getDocument, ...). Throwing vetoes the write. Py twin: dna.kernel.hooks.PreSaveContext.

Properties

kernel

kernel: unknown;

kind

kind: string;

layer?

optional layer?: [string, string];

name

name: string;

raw

raw: Record<string, unknown>;

scope

scope: string;

tenant

tenant: string | null;