Documentation
    Preparing search index...

    Interface EnforceResult

    Result of an enforcement check.

    Whether the capability check passed

    The capability that was checked (human-readable string)

    Why the decision was reached (v1.7 CLASS-03 / D7). Always set on return.

    interface EnforceResult {
        allowed: boolean;
        capability:
            | "relay:read"
            | "relay:write"
            | "cache:read"
            | "cache:write"
            | "hotkey:forward"
            | "state:read"
            | "state:write"
            | "identity:read"
            | "keys:bind"
            | "keys:forward"
            | "media:control"
            | "notify:send"
            | "notify:channel"
            | "theme:read"
            | "config:read"
            | "resource:fetch"
            | "cvm:call"
            | "outbox:read"
            | "outbox:write"
            | "upload:write"
            | "intent:read"
            | "intent:write";
        reason: "allowed"
        | "capability-missing";
    }
    Index

    Properties

    allowed: boolean
    capability:
        | "relay:read"
        | "relay:write"
        | "cache:read"
        | "cache:write"
        | "hotkey:forward"
        | "state:read"
        | "state:write"
        | "identity:read"
        | "keys:bind"
        | "keys:forward"
        | "media:control"
        | "notify:send"
        | "notify:channel"
        | "theme:read"
        | "config:read"
        | "resource:fetch"
        | "cvm:call"
        | "outbox:read"
        | "outbox:write"
        | "upload:write"
        | "intent:read"
        | "intent:write"
    reason: "allowed" | "capability-missing"

    Why the decision was reached. Always set on the return path. Distinct from AclCheckEvent.reason (which is optional for backwards compat).