1 import { Account } from '../actors'
2 import { VideoChannel } from '../videos/channel/video-channel.model'
3 import { UserRole } from './user-role'
4 import { NSFWPolicyType } from '../videos/nsfw-policy.type'
5 import { UserNotificationSetting } from './user-notification-setting.model'
6 import { UserAdminFlag } from './user-flag.model'
7 import { VideoPlaylistType } from '../videos/playlist/video-playlist-type.model'
9 export interface User {
13 pendingEmail: string | null
15 emailVerified: boolean
16 nsfwPolicy: NSFWPolicyType
18 adminFlags?: UserAdminFlag
20 autoPlayVideo: boolean
21 autoPlayNextVideo: boolean
22 autoPlayNextVideoPlaylist: boolean
24 // @deprecated in favour of p2pEnabled
25 webTorrentEnabled: boolean
28 videosHistoryEnabled: boolean
29 videoLanguages: string[]
35 videoQuotaDaily: number
36 videoQuotaUsed?: number
37 videoQuotaUsedDaily?: number
42 abusesAcceptedCount?: number
43 abusesCreatedCount?: number
45 videoCommentsCount?: number
50 notificationSettings?: UserNotificationSetting
51 videoChannels?: VideoChannel[]
54 blockedReason?: string
56 noInstanceConfigWarningModal: boolean
57 noWelcomeModal: boolean
58 noAccountSetupWarningModal: boolean
62 pluginAuth: string | null
64 lastLoginDate: Date | null
67 export interface MyUserSpecialPlaylist {
70 type: VideoPlaylistType
73 export interface MyUser extends User {
74 specialPlaylists: MyUserSpecialPlaylist[]