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 '@shared/models'
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 MyUserSpecialPlaylist {
53 type: VideoPlaylistType
56 export interface MyUser extends User {
57 specialPlaylists: MyUserSpecialPlaylist[]