@likeminds.community/chat-js-beta
Version:
LikeMinds Javascript SDK for chat APIs
47 lines (46 loc) • 4.63 kB
TypeScript
import { GetChatroomRequest, CHTYPE, CRSeen, ViewParticipantsRequest, Profile, MarkReadRequest, GetTaggingListRequest, FollowChatroomRequest, MuteChatroomRequest, ShareChatroomRequest, SetChatroomRequest, GetConversationRequest, PostConversationRequest, EditConversationRequest, DeleteConversationRequest, PutReactionRequest, DeleteReactionRequest, GetDecodeUrlRequest, GetReportTagsRequest, PushReportRequest, LeaveSecretChatroomRequest, ChatroomSeen, CmetaType, FollowChatroomWithUuidRequest, ChatroomSeenWithUuid, GetConversationsRequest, GetParticipantsRequest, GetAIChatbotsRequest } from './types';
import { Base } from 'src/base';
import { Nothing } from 'src/shared/responseModels/Nothing';
import { GetChatroomResponse } from '../../shared/api-responses/getChatroomResponse';
import { GetTaggingListResponse } from '../../shared/api-responses/getTaggingListResponse';
import { SyncConversationResponse } from '../../shared/api-responses/getSyncConversationsResponse';
import { PostConversationResponse } from '../../shared/api-responses/postConversationResponse';
import { DeleteConversationResponse } from '../../shared/api-responses/DeleteConversation';
import { EditConversationResponse } from '../../shared/api-responses/EditConversation';
import { DecodeURLResponse } from '../../shared/api-responses/getOgTagResponse';
import { ViewParticipantsResponse } from '../../shared/api-responses/viewParticipants';
import { GetAIChatbotsResponse } from '../../shared/api-responses/GetAIChatbotsResponse';
import LMResponse from '../../core/services/lmresponse';
import { GetReportTagsResponse } from '../../shared/api-responses/getReportTagsResponse';
import { GetConversationsResponse } from '../../shared/api-responses/GetConversationResponse';
import { ShareChatrooomResponse } from '../../shared/api-responses/ShareChatroom';
export declare class ChatroomData extends Base {
getChatroom(getChatroomRequest: GetChatroomRequest): Promise<LMResponse<GetChatroomResponse>>;
followChatroom(followChatroomRequest: FollowChatroomRequest): Promise<LMResponse<Nothing>>;
followChatroomWithUuid(followChatroomRequest: FollowChatroomWithUuidRequest): Promise<LMResponse<Nothing>>;
muteChatroom(muteChatroomRequest: MuteChatroomRequest): Promise<LMResponse<Nothing>>;
markReadChatroom(markReadRequest: MarkReadRequest): Promise<LMResponse<Nothing>>;
shareChatroomUrl(shareChatroomRequest: ShareChatroomRequest): Promise<LMResponse<ShareChatrooomResponse>>;
setChatroomTopic(setChatroomRequest: SetChatroomRequest): Promise<LMResponse<Nothing>>;
getTaggingList(getTaggingListRequest: GetTaggingListRequest): Promise<LMResponse<GetTaggingListResponse>>;
getConversation(conversation: GetConversationRequest): Promise<LMResponse<GetConversationsResponse>>;
getConversations(getConversationsRequest: GetConversationsRequest): Promise<LMResponse<SyncConversationResponse>>;
postConversation(postConversationRequest: PostConversationRequest): Promise<LMResponse<PostConversationResponse>>;
editConversation(editConversationRequest: EditConversationRequest): Promise<LMResponse<EditConversationResponse>>;
deleteConversation(deleteConversationRequest: DeleteConversationRequest): Promise<LMResponse<DeleteConversationResponse>>;
putReaction(putReactionRequest: PutReactionRequest): Promise<LMResponse<Nothing>>;
deleteReaction(deleteReactionRequest: DeleteReactionRequest): Promise<LMResponse<Nothing>>;
decodeUrl(decodeUrlRequest: GetDecodeUrlRequest): Promise<LMResponse<DecodeURLResponse>>;
getReportTags(getReportTagsRequest: GetReportTagsRequest): Promise<LMResponse<GetReportTagsResponse>>;
pushReport(pushReportRequest: PushReportRequest): Promise<LMResponse<Nothing>>;
leaveSecretChatroom(leaveSecretChatroomRequest: LeaveSecretChatroomRequest): Promise<LMResponse<Nothing>>;
profileData(profile: Profile): Promise<LMResponse<unknown>>;
viewParticipants(viewParticipantsRequest: ViewParticipantsRequest): Promise<LMResponse<ViewParticipantsResponse>>;
getParticipants(participantsType: GetParticipantsRequest): Promise<LMResponse<ViewParticipantsResponse>>;
conversationsFetch(cmetaType: CmetaType): Promise<LMResponse<unknown>>;
fetchChatroomHome(chatroom: CHTYPE): Promise<LMResponse<unknown>>;
crSeenFn(crSeen: CRSeen): Promise<LMResponse<unknown>>;
chatroomSeen(chatroomSeen: ChatroomSeen): Promise<LMResponse<unknown>>;
chatroomSeenWithUuid(chatroomSeen: ChatroomSeenWithUuid): Promise<LMResponse<Nothing>>;
getAIChatbots(getAIChatbotsRequest: GetAIChatbotsRequest): Promise<LMResponse<GetAIChatbotsResponse>>;
}