]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/users/user.model.ts
Handle email update on server
[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
fc2ec87a 13 emailVerified: boolean
0883b324 14 nsfwPolicy: NSFWPolicyType
276d9652 15
1eddc9a7
C
16 adminFlags?: UserAdminFlag
17
7efe153b 18 autoPlayVideo: boolean
276d9652
C
19 webTorrentEnabled: boolean
20 videosHistoryEnabled: boolean
21
ee9e7b61 22 role: UserRole
1eddc9a7
C
23 roleLabel: string
24
b0f9f39e 25 videoQuota: number
bee0abff 26 videoQuotaDaily: number
2295ce6c
C
27 createdAt: Date
28 account: Account
cef534ed 29 notificationSettings?: UserNotificationSetting
72c7248b 30 videoChannels?: VideoChannel[]
eacb25c4
C
31
32 blocked: boolean
33 blockedReason?: string
a76138ff
C
34
35 videoQuotaUsed?: number
69818c93 36}