]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/users/user.model.ts
Add 'Most liked videos' page
[github/Chocobozzz/PeerTube.git] / shared / models / users / user.model.ts
CommitLineData
50d6de9c 1import { Account } from '../actors'
59c76ffa 2import { VideoChannel } from '../videos/channel/video-channel.model'
954605a8 3import { UserRole } from './user-role'
0883b324 4import { NSFWPolicyType } from '../videos/nsfw-policy.type'
cef534ed 5import { UserNotificationSetting } from './user-notification-setting.model'
1eddc9a7 6import { UserAdminFlag } from './user-flag.model'
ee9e7b61 7
69818c93
C
8export interface User {
9 id: number
10 username: string
11 email: string
d1ab89de 12 pendingEmail: string | null
43d0ea7f 13
fc2ec87a 14 emailVerified: boolean
0883b324 15 nsfwPolicy: NSFWPolicyType
276d9652 16
1eddc9a7
C
17 adminFlags?: UserAdminFlag
18
7efe153b 19 autoPlayVideo: boolean
6aa54148 20 autoPlayNextVideo: boolean
276d9652
C
21 webTorrentEnabled: boolean
22 videosHistoryEnabled: boolean
43d0ea7f 23 videoLanguages: string[]
276d9652 24
ee9e7b61 25 role: UserRole
1eddc9a7
C
26 roleLabel: string
27
b0f9f39e 28 videoQuota: number
bee0abff 29 videoQuotaDaily: number
43d0ea7f
C
30 videoQuotaUsed?: number
31 videoQuotaUsedDaily?: number
ffb321be
C
32
33 theme: string
34
2295ce6c 35 account: Account
cef534ed 36 notificationSettings?: UserNotificationSetting
72c7248b 37 videoChannels?: VideoChannel[]
eacb25c4
C
38
39 blocked: boolean
40 blockedReason?: string
a76138ff 41
43d0ea7f
C
42 noInstanceConfigWarningModal: boolean
43 noWelcomeModal: boolean
44
45 createdAt: Date
69818c93 46}