import FileSharingProtocolType from "../model/FileSharingProtocolType"; import FileStatus from "../model/FileStatus"; import HostType from "./HostType"; import IFileInfo from "./IFileInfo"; import IFileMetadata from "../model/IFileMetadata"; import IInitializationInfo from "../model/IInitializationInfo"; import IMessageProperties from "../model/IMessageProperties"; import IPerson from "../model/IPerson"; import IRawBotMessage from "./IRawBotMessage"; import IRawConversation from "../model/IRawConversation"; import IRawLogger from "../logging/IRawLogger"; import IRawMessage from "../model/IRawMessage"; import IRawSDKSetupParameters from "./IRawSDKSetupParameters"; import IRawThread from "./IRawThread"; import ProtocolType from "./ProtocoleType"; import TypingStatus from "../model/TypingStatus"; export default interface IRawSDK { id: string; hostType: HostType; protocolType: ProtocolType; logger: IRawLogger | undefined; setup(setupParams: IRawSDKSetupParameters): Promise; initialize(sessionInfo: IInitializationInfo): Promise; update(sessionInfo: IInitializationInfo): Promise; dispose(): Promise; joinConversation(conversationId: string, sendHeartBeat?: boolean): Promise; sendMessage(conversation: IRawConversation, message: IRawMessage): Promise; getMessages(conversation: IRawConversation): Promise; registerOnNewMessage(conversation: IRawConversation, callback: (message: IRawMessage) => void): Promise; registerOnThreadUpdate(conversation: IRawConversation, callback: (message: IRawThread) => void): Promise; sendFileData(conversation: IRawConversation, fileInfo: IFileInfo, fileSharingProtocolType?: FileSharingProtocolType): Promise; downloadFileData(conversation: IRawConversation, fileMetadata: IFileMetadata): Promise; disconnectFromConversation(conversation: IRawConversation): Promise; getFileStatus(conversation: IRawConversation, fileMetadata: IFileMetadata): Promise; indicateTypingStatus(conversation: IRawConversation, typingStatus: TypingStatus, optionalProperties?: IMessageProperties): Promise; sendFileMessage(conversation: IRawConversation, fileMetadata: IFileMetadata, message: IRawMessage): Promise; sendMessageToBot(conversation: IRawConversation, botId: string, botMessage: IRawBotMessage): Promise; getMembers(conversation: IRawConversation): Promise; setDebug(flag: boolean): void; }