import { Incoming } from './incoming'; import { type RobotProperties } from './robot'; import { type TalkerProperties } from './talker'; /** * 会话消息 */ export interface ConversationProperties { /** * 会话ID */ conversationId: string; /** * 会话类型 * * - 1: 私聊 * - 2: 群聊 */ conversationType: '2' | '1'; /** * 会话标题 * * 只有在群聊中才有 */ conversationTitle?: string; /** * 消息ID */ msgId: string; /** * 引用消息ID */ originalMsgId?: string; /** * 引用消息查询 Key */ originalProcessQueryKey?: string; /** * 消息创建时间 */ createAt: number; /** * 是否在被提及列表中 */ isInAtList?: boolean; /** * 被提及的用户 */ atUsers?: Array<{ staffId: string; }>; } export type Conversation = ConversationProperties & TalkerProperties & RobotProperties & Incoming.Message;