import type { IUser } from '../users/index'; /** * This accessor provides methods for accessing * users in a read-only-fashion. */ export interface IUserRead { getById(id: string): Promise; getByUsername(username: string): Promise; getBySipExtension(extension: string): Promise; /** * Gets the app user of this app. */ getAppUser(appId?: string): Promise; /** * Gets the user's badge count (unread messages count). * @param uid user's id */ getUserUnreadMessageCount(uid: string): Promise; /** * Fetches the IDs of the rooms that the user is a member of. * * @param userId the user whose memberships should be returned */ getUserRoomIds(userId: string): Promise; }