Documentation
    Preparing search index...

    Interface CapabilityHooks

    Optional host override for the static shell.init capability handshake.

    Hosts normally advertise the default Kehto NAP surface. Development hosts may temporarily suppress domains to simulate smaller or policy-constrained shell environments while still using the production shell-ready path.

    interface CapabilityHooks {
        disabledDomains?: readonly string[];
        resolveEnvironment?: (
            identity: OriginIdentity,
            available: Readonly<
                { domains: readonly string[]; services: readonly string[] },
            >,
        ) => Readonly<{ domains: readonly string[]; services: readonly string[] }>;
    }
    Index

    Properties

    disabledDomains?: readonly string[]

    Bare capability domains to remove from the delivered environment.

    resolveEnvironment?: (
        identity: OriginIdentity,
        available: Readonly<
            { domains: readonly string[]; services: readonly string[] },
        >,
    ) => Readonly<{ domains: readonly string[]; services: readonly string[] }>

    Narrow the live environment for one trusted creation-time identity.

    The shell supplies copied, frozen live domains and named services. Returned names are intersected with that exact availability set, so this hook cannot add aliases, disabled entries, or unwired capabilities.

    Type Declaration

      • (
            identity: OriginIdentity,
            available: Readonly<
                { domains: readonly string[]; services: readonly string[] },
            >,
        ): Readonly<{ domains: readonly string[]; services: readonly string[] }>
      • Parameters

        • identity: OriginIdentity

          Identity assigned by the host when the iframe was created.

        • available: Readonly<{ domains: readonly string[]; services: readonly string[] }>

          Immutable live domains and services before host policy.

        Returns Readonly<{ domains: readonly string[]; services: readonly string[] }>

        The requested subset for this identity.