UNPKG

@botpress/webchat-client

Version:
21 lines (19 loc) 560 B
import type { GetConversationResponse, GetUserResponse, ListConversationMessagesResponse, ListParticipantsResponse, } from '../../../gen/client' import type { MessageStreamSnapshot } from './messageStream' export type Initialize = { type: 'init' data: { conversation: GetConversationResponse['conversation'] messages: ListConversationMessagesResponse['messages'] participants: ListParticipantsResponse['participants'] user: GetUserResponse['user'] & { userKey: string } messageStreams?: MessageStreamSnapshot[] } }