kernl API
    Preparing search index...

    Interface Grants

    User-facing grant operations. Everything here is per applet identity and reversible.

    interface Grants {
        changes$: Observable<GrantRecord>;
        allowDomain(identity: AppletIdentity, domain: string): void;
        availableDomains(): readonly string[];
        baselineDomains(): readonly string[];
        block(identity: AppletIdentity): void;
        get(identity: AppletIdentity): GrantRecord | undefined;
        list(): readonly GrantRecord[];
        revokeDomain(identity: AppletIdentity, domain: string): 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.

      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[]

    • Withdraw a domain; live sessions lose it immediately.

      Parameters

      Returns void