]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/users/user.model.ts
Autoplay next recommended video (#2137)
[github/Chocobozzz/PeerTube.git] / shared / models / users / user.model.ts
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
8 export interface User {
9 id: number
10 username: string
11 email: string
12 pendingEmail: string | null
13
14 emailVerified: boolean
15 nsfwPolicy: NSFWPolicyType
16
17 adminFlags?: UserAdminFlag
18
19 autoPlayVideo: boolean
20 autoPlayNextVideo: boolean
21 webTorrentEnabled: boolean
22 videosHistoryEnabled: boolean
23 videoLanguages: string[]
24
25 role: UserRole
26 roleLabel: string
27
28 videoQuota: number
29 videoQuotaDaily: number
30 videoQuotaUsed?: number
31 videoQuotaUsedDaily?: number
32
33 theme: string
34
35 account: Account
36 notificationSettings?: UserNotificationSetting
37 videoChannels?: VideoChannel[]
38
39 blocked: boolean
40 blockedReason?: string
41
42 noInstanceConfigWarningModal: boolean
43 noWelcomeModal: boolean
44
45 createdAt: Date
46 }