Functions
changeChatThreadName
- changeChatThreadName(params: { chatThreadId: string; name: string }): Promise<AsyncResult<ThreadTypes.ChangeChatThreadName>>
Parameters
params: { chatThreadId: string; name: string }
chatThreadId: string
name: string
Returns Promise<AsyncResult<ThreadTypes.ChangeChatThreadName>>
createChatThread
- createChatThread(params: { messageId: string; name: string; parentId: string }): Promise<AsyncResult<ThreadTypes.CreateChatThreadResult>>
Parameters
params: { messageId: string; name: string; parentId: string }
messageId: string
name: string
parentId: string
Returns Promise<AsyncResult<ThreadTypes.CreateChatThreadResult>>
destroyChatThread
- destroyChatThread(params: { chatThreadId: string }): Promise<void>
Parameters
params: { chatThreadId: string }
Returns Promise<void>
getChatThreadDetail
- getChatThreadDetail(params: { chatThreadId: string }): Promise<AsyncResult<ThreadTypes.ChatThreadDetail>>
Parameters
params: { chatThreadId: string }
Returns Promise<AsyncResult<ThreadTypes.ChatThreadDetail>>
getChatThreadLastMessage
- getChatThreadLastMessage(params: { chatThreadIds: string[] }): Promise<AsyncResult<ThreadTypes.ChatThreadLastMessage>>
Parameters
params: { chatThreadIds: string[] }
Returns Promise<AsyncResult<ThreadTypes.ChatThreadLastMessage>>
getChatThreadMembers
- getChatThreadMembers(params: { chatThreadId: string; cursor?: string; pageSize?: number }): Promise<AsyncResult<ThreadTypes.ChatThreadMembers>>
Parameters
params: { chatThreadId: string; cursor?: string; pageSize?: number }
chatThreadId: string
Optional cursor?: string
Optional pageSize?: number
Returns Promise<AsyncResult<ThreadTypes.ChatThreadMembers>>
getChatThreads
- getChatThreads(params: { cursor?: string; pageSize?: number; parentId: string }): Promise<AsyncResult<ThreadTypes.ChatThreadDetail[]>>
Parameters
params: { cursor?: string; pageSize?: number; parentId: string }
Optional cursor?: string
Optional pageSize?: number
parentId: string
Returns Promise<AsyncResult<ThreadTypes.ChatThreadDetail[]>>
getJoinedChatThreads
- getJoinedChatThreads(params: { cursor?: string; pageSize?: number; parentId?: string }): Promise<AsyncResult<ThreadTypes.ChatThreadDetail[]>>
Parameters
params: { cursor?: string; pageSize?: number; parentId?: string }
Optional cursor?: string
Optional pageSize?: number
Optional parentId?: string
Returns Promise<AsyncResult<ThreadTypes.ChatThreadDetail[]>>
joinChatThread
- joinChatThread(params: { chatThreadId: string }): Promise<AsyncResult<ThreadTypes.JoinChatThreadResult>>
Parameters
params: { chatThreadId: string }
Returns Promise<AsyncResult<ThreadTypes.JoinChatThreadResult>>
leaveChatThread
- leaveChatThread(params: { chatThreadId: string }): Promise<void>
Parameters
params: { chatThreadId: string }
Returns Promise<void>
removeChatThreadMember
- removeChatThreadMember(params: { chatThreadId: string; username: string }): Promise<AsyncResult<ThreadTypes.RemoveMemberResult>>
Parameters
params: { chatThreadId: string; username: string }
chatThreadId: string
username: string
Returns Promise<AsyncResult<ThreadTypes.RemoveMemberResult>>
修改thread名称