Documentation
    Preparing search index...

    Interface AclCheckEvent

    Event emitted on every ACL enforcement check.

    hooks.onAclCheck = (event: AclCheckEvent) => {
    console.log(`${event.decision}: ${event.capability} for ${event.identity.pubkey}`);
    };
    interface AclCheckEvent {
        capability: string;
        decision: "allow" | "deny";
        identity: { dTag: string; hash: string; pubkey: string };
        message?: NappletMessage | unknown[];
    }
    Index

    Properties

    capability: string

    The capability being checked (e.g., 'relay:write', 'state:read').

    decision: "allow" | "deny"

    The enforcement decision.

    identity: { dTag: string; hash: string; pubkey: string }

    The identity being checked.

    message?: NappletMessage | unknown[]

    The triggering message, if available. Accepts NIP-01 arrays or NIP-5D NappletMessage envelopes.