Documentation
    Preparing search index...

    A loaded (or refused) probe.

    const endpoint = await session.loadProbe(spec);
    const report = await endpoint.report();
    interface ProbeEndpoint {
        grantedDomains: readonly string[];
        id: string;
        rejection: ProbeRejection | null;
        warnings: readonly string[];
        evidence(): FrameEvidence;
        forge(message: unknown, from?: "parent" | "sibling"): void;
        report(timeoutMs?: number): Promise<ProbeReport | null>;
        signal(name: string): void;
        waitMark(name: string, timeoutMs?: number): Promise<boolean>;
    }
    Index

    Properties

    grantedDomains: readonly string[]

    Domains the host granted this endpoint, as the runtime reports them.

    id: string

    Target-assigned endpoint id; transcript entries use the same value.

    rejection: ProbeRejection | null

    Set when the runtime refused to load the probe.

    warnings: readonly string[]

    Any warning the runtime surfaced while loading (e.g. incomplete required domains).

    Methods

    • Post a window-level message into the probe document, as any frame holding a reference to it could. Used to prove forged window-level traffic is ignored.

      Parameters

      • message: unknown

        The message.

      • Optionalfrom: "parent" | "sibling"

        parent: the host window posts it. sibling: another frame of the host page posts it, so MessageEvent.source is not the parent.

      Returns void

    • Wait until the probe reaches a mark step.

      Parameters

      • name: string

        Mark name.

      • OptionaltimeoutMs: number

        Longest to wait.

      Returns Promise<boolean>

      Whether the mark arrived.