1 import { FollowState } from '../actors'
2 import { AbuseState } from '../moderation'
3 import { PluginType } from '../plugins'
5 export const enum UserNotificationType {
6 NEW_VIDEO_FROM_SUBSCRIPTION = 1,
7 NEW_COMMENT_ON_MY_VIDEO = 2,
8 NEW_ABUSE_FOR_MODERATORS = 3,
10 BLACKLIST_ON_MY_VIDEO = 4,
11 UNBLACKLIST_ON_MY_VIDEO = 5,
13 MY_VIDEO_PUBLISHED = 6,
15 MY_VIDEO_IMPORT_SUCCESS = 7,
16 MY_VIDEO_IMPORT_ERROR = 8,
18 NEW_USER_REGISTRATION = 9,
22 VIDEO_AUTO_BLACKLIST_FOR_MODERATORS = 12,
24 NEW_INSTANCE_FOLLOWER = 13,
26 AUTO_INSTANCE_FOLLOWING = 14,
28 ABUSE_STATE_CHANGE = 15,
30 ABUSE_NEW_MESSAGE = 16,
32 NEW_PLUGIN_VERSION = 17,
33 NEW_PEERTUBE_VERSION = 18
36 export interface VideoInfo {
42 export interface ActorInfo {
52 export interface UserNotification {
54 type: UserNotificationType
108 type: 'account' | 'channel' | 'instance'
118 latestVersion: string
122 latestVersion: string