Documentation
    Preparing search index...

    Interface IntentRequest

    A request to dispatch an action to a napplet of a given archetype.

    interface IntentRequest {
        action?: string;
        archetype: string;
        behavior?: IntentBehavior;
        handler?: IntentHandlerPreference;
        payload?: unknown;
        protocol?: string;
    }
    Index

    Properties

    action?: string

    Verb, default "open" (e.g. "open" | "edit" | "pick" | "share").

    archetype: string

    Role slug, e.g. "note" (see the archetype registry).

    behavior?: IntentBehavior

    Window-behavior hints.

    Handler-selection preference.

    payload?: unknown

    Opaque payload, typed by protocol.

    protocol?: string

    NAP-N id shaping payload; omit to use the archetype's recommended default.