]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/typings/express.ts
Stronger actor association typing in AP functions
[github/Chocobozzz/PeerTube.git] / server / typings / express.ts
index 324d78662ca75786f674ac31e9aef08adcc30562..f7da55ab0e8ed5e1c738f3717c5c7f69cf65f799 100644 (file)
@@ -20,6 +20,9 @@ import { VideoAbuseModel } from '../models/video/video-abuse'
 import { VideoBlacklistModel } from '../models/video/video-blacklist'
 import { VideoCaptionModel } from '../models/video/video-caption'
 import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-playlist'
+import { RegisteredPlugin } from '../lib/plugins/plugin-manager'
+import { PluginModel } from '../models/server/plugin'
+import { SignatureActorModel } from './models'
 
 declare module 'express' {
 
@@ -73,10 +76,14 @@ declare module 'express' {
       }
 
       signature?: {
-        actor: ActorModel
+        actor: SignatureActorModel
       }
 
       authenticated?: boolean
+
+      registeredPlugin?: RegisteredPlugin
+
+      plugin?: PluginModel
     }
   }
 }