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
23 webTorrentEnabled: boolean
24 videosHistoryEnabled: boolean
25 videoLanguages: string[]
31 videoQuotaDaily: number
32 videoQuotaUsed?: number
33 videoQuotaUsedDaily?: number
38 abusesAcceptedCount?: number
39 abusesCreatedCount?: number
41 videoCommentsCount? : number
46 notificationSettings?: UserNotificationSetting
47 videoChannels?: VideoChannel[]
50 blockedReason?: string
52 noInstanceConfigWarningModal: boolean
53 noWelcomeModal: boolean
57 pluginAuth: string | null
59 lastLoginDate: Date | null
62 export interface MyUserSpecialPlaylist {
65 type: VideoPlaylistType
68 export interface MyUser extends User {
69 specialPlaylists: MyUserSpecialPlaylist[]