import { FollowState } from '../actors'
+import { AbuseState } from '../moderation'
+import { PluginType } from '../plugins'
-export enum UserNotificationType {
+export const enum UserNotificationType {
NEW_VIDEO_FROM_SUBSCRIPTION = 1,
NEW_COMMENT_ON_MY_VIDEO = 2,
NEW_ABUSE_FOR_MODERATORS = 3,
NEW_INSTANCE_FOLLOWER = 13,
- AUTO_INSTANCE_FOLLOWING = 14
+ AUTO_INSTANCE_FOLLOWING = 14,
+
+ ABUSE_STATE_CHANGE = 15,
+
+ ABUSE_NEW_MESSAGE = 16,
+
+ NEW_PLUGIN_VERSION = 17,
+ NEW_PEERTUBE_VERSION = 18
}
export interface VideoInfo {
abuse?: {
id: number
+ state: AbuseState
video?: VideoInfo
}
}
+ plugin?: {
+ name: string
+ type: PluginType
+ latestVersion: string
+ }
+
+ peertube?: {
+ latestVersion: string
+ }
+
createdAt: string
updatedAt: string
}