]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/users/user.model.ts
WIP plugins: load theme on client side
[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 emailVerified: boolean
14 nsfwPolicy: NSFWPolicyType
15
16 adminFlags?: UserAdminFlag
17
18 autoPlayVideo: boolean
19 webTorrentEnabled: boolean
20 videosHistoryEnabled: boolean
21
22 role: UserRole
23 roleLabel: string
24
25 videoQuota: number
26 videoQuotaDaily: number
27 createdAt: Date
28
29 theme: string
30
31 account: Account
32 notificationSettings?: UserNotificationSetting
33 videoChannels?: VideoChannel[]
34
35 blocked: boolean
36 blockedReason?: string
37
38 videoQuotaUsed?: number
39 }