Class DirectThreadRepository
Constructors
Methods
addAdmins
- addAdmins(threadId: string | number, userIds: (string | number)[]): Promise<unknown>
Parameters
- threadId: string | number
- userIds: (string | number)[]
Returns Promise<unknown>
approve
- approve(threadId: string | number): Promise<StatusResponse>
Parameters
- threadId: string | number
approveMultiple
- approveMultiple(threadIds: string[] | number[]): Promise<StatusResponse>
Parameters
- threadIds: string[] | number[]
approveParticipantRequests
decline
- decline(threadId: string | number): Promise<StatusResponse>
Parameters
- threadId: string | number
declineMultiple
- declineMultiple(threadIds: string[] | number[]): Promise<StatusResponse>
Parameters
- threadIds: string[] | number[]
deleteItem
- deleteItem(threadId: string | number, itemId: string | number, __namedParameters: {
is_ssh_mode?: "0" | "1";
original_message_client_context?: string;
send_attribution?: string;
}): Promise<StatusResponse> Parameters
- threadId: string | number
- itemId: string | number
- __namedParameters: {
is_ssh_mode?: "0" | "1";
original_message_client_context?: string;
send_attribution?: string;
}Optional
is_ssh_mode?: "0" | "1"
Optional
original_message_client_context?: string
Optional
send_attribution?: string
markItemSeen
- markItemSeen(threadId: string, threadItemId: string): Promise<StatusResponse>
Parameters
- threadId: string
- threadItemId: string
mute
- mute(threadId: string | number): Promise<StatusResponse>
Parameters
- threadId: string | number
removeAdmins
- removeAdmins(threadId: string | number, userIds: (string | number)[]): Promise<unknown>
Parameters
- threadId: string | number
- userIds: (string | number)[]
Returns Promise<unknown>
removeUsers
- removeUsers(threadId: string, userIds: (string | number)[]): Promise<unknown>
Parameters
- threadId: string
- userIds: (string | number)[]
Returns Promise<unknown>
setTheme
- setTheme(threadId: string | number, theme: string): Promise<StatusResponse>
Parameters
- threadId: string | number
- theme: string
shhScreenshot
- shhScreenshot(threadId: string | number, isShhMode?: boolean): Promise<StatusResponse>
Parameters
- threadId: string | number
- isShhMode: boolean = true
toggleShhMode
- toggleShhMode(threadId: string | number, isEnabled: boolean): Promise<StatusResponse>
Parameters
- threadId: string | number
- isEnabled: boolean
unmute
- unmute(threadId: string | number): Promise<StatusResponse>
Parameters
- threadId: string | number