1 import { Account } from '../actors'
2 import { VideoChannel } from '../videos/channel/video-channel.model'
3 import { VideoPlaylist } from '../videos/playlist/video-playlist.model'
4 import { UserRole } from './user-role'
5 import { NSFWPolicyType } from '../videos/nsfw-policy.type'
6 import { UserNotificationSetting } from './user-notification-setting.model'
7 import { UserAdminFlag } from './user-flag.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
23 webTorrentEnabled: boolean
24 videosHistoryEnabled: boolean
25 videoLanguages: string[]
31 videoQuotaDaily: number
32 videoQuotaUsed?: number
33 videoQuotaUsedDaily?: number
38 notificationSettings?: UserNotificationSetting
39 videoChannels?: VideoChannel[]
42 blockedReason?: string
44 noInstanceConfigWarningModal: boolean
45 noWelcomeModal: boolean
50 export interface MyUser extends User {
51 specialPlaylists: Partial<VideoPlaylist>[]