kernl API
    Preparing search index...

    Interface NzbServiceOptions

    What the NZB service needs from the shell.

    interface NzbServiceOptions {
        appletOf: (windowId: string) => AppletIdentity | undefined;
        ask: (windowId: string, question: DownloadQuestion) => Promise<boolean>;
        downloaders: () => readonly NzbDownloader[];
        fetchDocument?: (
            url: string,
            signal: AbortSignal,
        ) => Promise<Uint8Array<ArrayBufferLike>>;
        now?: () => number;
        ownerOf: (windowId: string) => string | undefined;
        storage: StorageLike;
    }

    Hierarchy (View Summary)

    Index
    appletOf: (windowId: string) => AppletIdentity | undefined

    The verified applet a window runs, or undefined when the window is not a live applet.

    ask: (windowId: string, question: DownloadQuestion) => Promise<boolean>

    Put a question to the person in the name of a window's applet; resolves true only on yes.

    downloaders: () => readonly NzbDownloader[]

    The downloaders the person set up, read on every request.

    fetchDocument?: (
        url: string,
        signal: AbortSignal,
    ) => Promise<Uint8Array<ArrayBufferLike>>

    Fetches an NZB for a url source under the shell's own fetch policy; without it only bytes is offered.

    now?: () => number

    Milliseconds since the epoch; Date.now by default.

    ownerOf: (windowId: string) => string | undefined

    The key what a window's applet starts is kept under: its catalogue id, the same across versions and never shared by another publisher's applet with the same name. Undefined when the window is not a live applet.

    storage: StorageLike

    Where records that must outlive a window are kept; keys are written under the kernl namespace.