]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/users/user.model.ts
Add welcome modal
[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
276d9652
C
20 webTorrentEnabled: boolean
21 videosHistoryEnabled: boolean
43d0ea7f 22 videoLanguages: string[]
276d9652 23
ee9e7b61 24 role: UserRole
1eddc9a7
C
25 roleLabel: string
26
b0f9f39e 27 videoQuota: number
bee0abff 28 videoQuotaDaily: number
43d0ea7f
C
29 videoQuotaUsed?: number
30 videoQuotaUsedDaily?: number
ffb321be
C
31
32 theme: string
33
2295ce6c 34 account: Account
cef534ed 35 notificationSettings?: UserNotificationSetting
72c7248b 36 videoChannels?: VideoChannel[]
eacb25c4
C
37
38 blocked: boolean
39 blockedReason?: string
a76138ff 40
43d0ea7f
C
41 noInstanceConfigWarningModal: boolean
42 noWelcomeModal: boolean
43
44 createdAt: Date
69818c93 45}