Sanity Library Reference Docs
    Preparing search index...
    interface DocumentActionDenialsArgs {
        dereference?: GuardDereference;
        guards: readonly MutationGuardDoc[];
        identity?: string;
        mutation: MutationContext;
        resource: { id: string; type: string };
    }
    Index

    Properties

    dereference?: GuardDereference

    Resource-local stored-document lookup for predicates using ->.

    guards: readonly MutationGuardDoc[]
    identity?: string

    The caller's principal id in the guarded resource's own namespace, resolved as identity() in predicates.

    mutation: MutationContext

    The concrete Lake mutation the action will perform.

    resource: { id: string; type: string }

    The datasource the document lives in. A guard applies solely within the datasource it is registered in, so a same-id match from a foreign datasource can never gate this action and must not flip verdicts.