user.model.ts 883 B

123456789101112131415161718192021222324252627282930313233343536
  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. export interface User {
  8. id: number
  9. username: string
  10. email: string
  11. pendingEmail: string | null
  12. emailVerified: boolean
  13. nsfwPolicy: NSFWPolicyType
  14. adminFlags?: UserAdminFlag
  15. autoPlayVideo: boolean
  16. webTorrentEnabled: boolean
  17. videosHistoryEnabled: boolean
  18. role: UserRole
  19. roleLabel: string
  20. videoQuota: number
  21. videoQuotaDaily: number
  22. createdAt: Date
  23. account: Account
  24. notificationSettings?: UserNotificationSetting
  25. videoChannels?: VideoChannel[]
  26. blocked: boolean
  27. blockedReason?: string
  28. videoQuotaUsed?: number
  29. }