+
+ socket: {
+ sendNotification: (userId: number, notification: UserNotificationModelForApi) => void
+ sendVideoLiveNewState: (video: MVideo) => void
+ }
+
+ plugin: {
+ // PeerTube >= 3.2
+ getBaseStaticRoute: () => string
+
+ // PeerTube >= 3.2
+ getBaseRouterRoute: () => string
+ // PeerTube >= 5.0
+ getBaseWebSocketRoute: () => string
+
+ // PeerTube >= 3.2
+ getDataDirectoryPath: () => string
+ }
+
+ user: {
+ // PeerTube >= 3.2
+ getAuthUser: (response: Response) => Promise<MUserDefault>
+
+ // PeerTube >= 4.3
+ loadById: (id: number) => Promise<MUserDefault>
+ }