Cotal TypeScript packages
    Preparing search index...

    Interface SessionMessage

    One received message, as the session surfaces it. Text is untrusted.

    interface SessionMessage {
        channel?: string;
        deliveryCount?: number;
        deliveryKey: string;
        from: { id: string; name: string; role?: string };
        historical: boolean;
        id: string;
        kind: "channel" | "dm" | "anycast";
        mentionsMe: boolean;
        replyTo?: string;
        service?: string;
        text: string;
        ts: number;
    }
    Index
    channel?: string
    deliveryCount?: number

    Broker delivery count above 1 means an earlier copy went unacknowledged and may have surfaced.

    deliveryKey: string

    The opaque per-delivery key the session acknowledges with AdmittedChatSession.surfaced.

    from: { id: string; name: string; role?: string }
    historical: boolean
    id: string
    kind: "channel" | "dm" | "anycast"

    Derived from the delivering subject, never from the payload.

    mentionsMe: boolean
    replyTo?: string
    service?: string
    text: string
    ts: number