kernl API
    Preparing search index...

    Function describeApproval

    • Turn kehto's approval prompt into what the host shows: who is asking, what for, and which answers are open.

      The summary carries no copy. Domains and requests are named by their identifiers and the host words them, as it already words grants. A link is answered for that one opening only, whatever lifetimes kehto offers, because the shell asks about every link (D-056). Anything else offers each lifetime kehto allows: once, while the applet stays open, and always when answers can be stored. An applet starting up is never offered once, because kehto admits a start for the whole run.

      Parameters

      • prompt: Pick<ApprovalPrompt, "missing" | "allowLifetimes">

        What kehto's approval coordinator asks.

      • applet: FirewallApplet

        The applet the request came from, as the shell knows it.

      Returns FirewallSummary

      The facts of a firewall.approve ask.

      const summary = describeApproval(prompt, { title: 'Notes', catalogId, identity });
      summary.kind; // 'link'
      summary.choices; // ['allow-once', 'deny']