UNPKG

rcs-sdk

Version:

封装客户端与平台间的相互调用功能。

62 lines (61 loc) 1.47 kB
import { NameAddrHeader } from 'rcs-data'; import { RequestFunc } from '../constants'; export declare type RTConfig = { authApiServer: string; authApiTimeout: number; authApiPin?: string | number; authType?: string; msgApiServer: string; msgApiTimeout: number; contactApiServer: string; contactApiTimeout: number; chatbotApiServer: string; chatbotApiTimeout: number; sipServer: any; mockFilePathConversationList: string; mockFilePathMessageList: string; mockFilePathContactList: string; mockFilePathUploadFile: string; }; export declare type SdkResult = { event: RequestFunc; errCode: number; errMsg: string; data: any; operationID: string; }; export declare type RawFile = { name: string; size: number; type: string; [key: string]: any; }; export declare type RawFileThumbnail = { size: number; type: string; [key: string]: any; }; export declare type SuggestionInfo = { type: string; displayText: string; postback: string; }; export declare type AccountInfo = { userid: string; nickname: string; nameAddr: NameAddrHeader; }; export declare type ContactInfo = { userid: string; nameAddr: NameAddrHeader; headimgurl: string; sex: number; extra?: object; }; export declare type ChatbotInfo = { id: string; name: string; icon: string; verified: boolean; }; export declare type ChatbotDetialInfo = {};