Cotal TypeScript packages
    Preparing search index...

    Type Alias Disposition

    Disposition:
        | { kind: "surface"; message: SessionMessage }
        | { kind: "buffered"; message: SessionMessage }
        | { kind: "dropped"; reason: "muted" | "duplicate-handled" }
        | { kind: "coalesced" }

    What the engine tells its caller to do with an accepted message.

    Type Declaration

    • { kind: "surface"; message: SessionMessage }

      Show it now, then call ParticipantEngine.surfaced with its key.

    • { kind: "buffered"; message: SessionMessage }

      Held in the session inbox (quiet channel or focus/dnd). Read with peek/drain.

    • { kind: "dropped"; reason: "muted" | "duplicate-handled" }

      Dropped on purpose (muted channel, or an already handled copy). Already acked when durable.

    • { kind: "coalesced" }

      A later copy of a message still pending here; the stored ack handle may have been upgraded.