Cotal TypeScript packages
    Preparing search index...

    Interface FeedEntry

    One feed row. A same-sender/same-text unicast burst coalesces into a single entry with a deterministic id (the first message's) and ts (the earliest), so a history prefill and the live tap dedupe-by-id and order correctly. text is plain — the surface colors it.

    interface FeedEntry {
        channel?: string;
        contextId?: string;
        count?: number;
        delivery: FeedDelivery;
        events?: boolean;
        from: EndpointRef;
        id: string;
        mentions?: string[];
        replyTo?: string;
        text: string;
        toIds?: string[];
        toNames?: string[];
        toService?: string;
        ts: number;
    }
    Index
    channel?: string
    contextId?: string

    The sender's thread or conversation correlation id, as the wire's contextId carries it.

    count?: number
    delivery: FeedDelivery
    events?: boolean

    This row arrived on an agent's structured-event channel rather than a chat channel.

    DERIVED ONCE, HERE, because the header's rule is that a surface lays this model out and never re-derives it. Every surface that wanted to tell event traffic from chat would otherwise re-spell the convention locally, and three copies of a classifier is three chances to disagree about one channel. Absent on unicast and anycast rows, which carry no channel at all.

    id: string
    mentions?: string[]

    Lowercased peer names the sender called out, as the wire's mentions carries them.

    replyTo?: string

    Id of the message this one answers, as the wire's replyTo carries it.

    text: string
    toIds?: string[]
    toNames?: string[]
    toService?: string
    ts: number