blob: 07943c76064f6bcb7e30834a070966d06d40a1fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import type { ChatSendMessage, ConversationHistoryResponse } from "@dispatch/transport-contract";
/** Injected transport port — sends chat messages to the server. */
export interface ChatTransport {
send(msg: ChatSendMessage): void;
}
/** Injected history-sync port — fetches incremental history from the server. */
export type HistorySync = (
conversationId: string,
sinceSeq: number,
) => Promise<ConversationHistoryResponse>;
|