]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/users/user.model.ts
Bumped to version v5.2.1
[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'
0fecf427 7import { VideoPlaylistType } from '../videos/playlist/video-playlist-type.model'
ee9e7b61 8
69818c93
C
9export interface User {
10 id: number
11 username: string
12 email: string
d1ab89de 13 pendingEmail: string | null
43d0ea7f 14
fc2ec87a 15 emailVerified: boolean
cb0eda56 16 emailPublic: boolean
0883b324 17 nsfwPolicy: NSFWPolicyType
276d9652 18
1eddc9a7
C
19 adminFlags?: UserAdminFlag
20
7efe153b 21 autoPlayVideo: boolean
6aa54148 22 autoPlayNextVideo: boolean
bee29df8 23 autoPlayNextVideoPlaylist: boolean
a9bfa85d
C
24
25 // @deprecated in favour of p2pEnabled
276d9652 26 webTorrentEnabled: boolean
a9bfa85d
C
27 p2pEnabled: boolean
28
276d9652 29 videosHistoryEnabled: boolean
43d0ea7f 30 videoLanguages: string[]
276d9652 31
9e5cf66b
C
32 role: {
33 id: UserRole
34 label: string
35 }
1eddc9a7 36
b0f9f39e 37 videoQuota: number
bee0abff 38 videoQuotaDaily: number
43d0ea7f
C
39 videoQuotaUsed?: number
40 videoQuotaUsedDaily?: number
4f32032f 41
76314386 42 videosCount?: number
4f32032f
C
43
44 abusesCount?: number
45 abusesAcceptedCount?: number
46 abusesCreatedCount?: number
47
1a578165 48 videoCommentsCount?: number
ffb321be
C
49
50 theme: string
51
2295ce6c 52 account: Account
cef534ed 53 notificationSettings?: UserNotificationSetting
72c7248b 54 videoChannels?: VideoChannel[]
eacb25c4
C
55
56 blocked: boolean
57 blockedReason?: string
a76138ff 58
43d0ea7f
C
59 noInstanceConfigWarningModal: boolean
60 noWelcomeModal: boolean
8f581725 61 noAccountSetupWarningModal: boolean
43d0ea7f
C
62
63 createdAt: Date
8bb71f2e
C
64
65 pluginAuth: string | null
3cc665f4
C
66
67 lastLoginDate: Date | null
56f47830
C
68
69 twoFactorEnabled: boolean
69818c93 70}
29128b2f 71
ac0868bc
C
72export interface MyUserSpecialPlaylist {
73 id: number
74 name: string
75 type: VideoPlaylistType
76}
77
29128b2f 78export interface MyUser extends User {
ac0868bc 79 specialPlaylists: MyUserSpecialPlaylist[]
29128b2f 80}