@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Interface TriggerInfo

    Serializable description of a Trigger, mirroring the dispatcher's matching rules.

    interface TriggerInfo {
        label: string;
        patterns: TriggerPatternInfo[];
        match: MatchStrategy;
        scope: TriggerScope;
        predicate: boolean;
        special?: { kind: "welcome" } | { kind: "type"; types: string[] };
    }
    Index
    label: string

    Human-readable form, e.g. "hola", "a", "b", /\d+/i, contains "factura" (dm only), (predicate).

    patterns: TriggerPatternInfo[]

    Text/regex patterns; empty for predicates and for never-matching [] triggers.

    String match strategy (default equals — normalized equality).

    Chat scope the trigger is restricted to (default all).

    predicate: boolean

    true for a trigger that is opaque to static text analysis: a predicate function, and the special WELCOME / type triggers (IMAGE, MEDIA, CALL, …; see special).

    special?: { kind: "welcome" } | { kind: "type"; types: string[] }

    Set for the special triggers of core/triggers.ts: first contact, or the accepted ctx.type kinds.