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