Documentation
    Preparing search index...

    Interface RuntimePermissions

    Host management surface. Revocation failures require retry or explicit reset.

    interface RuntimePermissions {
        available: boolean;
        grants: readonly PermissionGrant[];
        principals?: readonly PermissionPrincipal[];
        admit(
            windowId: string,
            request: PermissionAdmissionRequest,
        ): Promise<PermissionAdmission>;
        clear(): boolean;
        isAdmissionCurrent(
            windowId: string,
            admission: PermissionAdmission,
        ): boolean;
        retryPersistence(): boolean;
        revoke(id: string): boolean;
        rulesChanged?(): void;
        subscribeInvalidation(listener: () => void): () => void;
    }
    Index

    Properties

    available: boolean

    False after a load failure or a durable revocation that could not be saved.

    grants: readonly PermissionGrant[]

    Immutable granted/denied scopes, including ephemeral sessions.

    principals?: readonly PermissionPrincipal[]

    Principals of napplets with a live permission session. A default allow writes no grant (kehto/web#513), so a rules editor lists napplets from here.

    Methods

    • Tell the runtime the host's default rules changed. A default allow writes no grant (kehto/web#513), so this closes live operations and pending approvals that may have relied on the old rules, and notifies invalidation listeners so a frame whose admission no longer holds is retired.

      Returns void

    • Observe grant invalidation so a host can retire an executing document.

      Parameters

      • listener: () => void

      Returns () => void