]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/users/user.model.ts
f67d262b036aa7ce62ad5648ca6db74923e5254e
[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 webTorrentEnabled: boolean
21 videosHistoryEnabled: boolean
22 videoLanguages: string[]
23
24 role: UserRole
25 roleLabel: string
26
27 videoQuota: number
28 videoQuotaDaily: number
29 videoQuotaUsed?: number
30 videoQuotaUsedDaily?: number
31
32 theme: string
33
34 account: Account
35 notificationSettings?: UserNotificationSetting
36 videoChannels?: VideoChannel[]
37
38 blocked: boolean
39 blockedReason?: string
40
41 noInstanceConfigWarningModal: boolean
42 noWelcomeModal: boolean
43
44 createdAt: Date
45 }