kernl API
    Preparing search index...

    Interface KernlGrants

    The grants surface plus the hook the shell calls when an applet is about to run.

    interface KernlGrants {
        changes$: Observable<GrantRecord>;
        allowDomain(
            identity: AppletIdentity,
            domain: string,
            options?: GrantChoice,
        ): void;
        availableDomains(): readonly string[];
        baselineDomains(): readonly string[];
        block(identity: AppletIdentity): void;
        ensure(identity: AppletIdentity): GrantRecord;
        forgetTemporary(identity: AppletIdentity): void;
        get(identity: AppletIdentity): GrantRecord | undefined;
        list(): readonly GrantRecord[];
        revokeDomain(
            identity: AppletIdentity,
            domain: string,
            options?: Pick<GrantChoice, "remember">,
        ): void;
        setStateQuota(identity: AppletIdentity, bytes: number): void;
        unblock(identity: AppletIdentity): void;
    }

    Hierarchy (View Summary)

    Index
    changes$: Observable<GrantRecord>
    • Allow a domain for this applet; maps to the kehto capabilities that domain needs. unsafe keeps it in force beside messages, which would otherwise withhold it (D-046, D-060). remember: false grants it for now: in force, never stored, and gone at forgetTemporary.

      Parameters

      Returns void

    • Domains the shell can offer at all in the current configuration.

      Returns readonly string[]

    • Domains granted automatically to every applet. In kernl this is the read-only, no-network set.

      Returns readonly string[]

    • Drop what was granted or taken back for now; the stored record is back in force. Does nothing when there was none.

      Parameters

      Returns void

    • Withdraw a domain, and the exception kept for it; live sessions lose it immediately. With remember: false only for now.

      Parameters

      Returns void