1 import { RegisterServerAuthExternalOptions } from '@server/types'
6 MActorFollowActorsDefault,
8 MChannelBannerAccountDefault,
10 MVideoChangeOwnershipFull,
15 MVideoPlaylistFullSummary
16 } from '@server/types/models'
17 import { MOAuthTokenUser } from '@server/types/models/oauth/oauth-token'
18 import { MPlugin, MServer, MServerBlocklist } from '@server/types/models/server'
19 import { MVideoImportDefault } from '@server/types/models/video/video-import'
20 import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/types/models/video/video-playlist-element'
21 import { MAccountVideoRateAccountVideo } from '@server/types/models/video/video-rate'
22 import { RegisteredPlugin } from '../../lib/plugins/plugin-manager'
25 MActorAccountChannelId,
26 MActorFollowActorsDefaultSubscription,
29 MCommentOwnerVideoReply,
35 MVideoRedundancyVideo,
39 } from '../../types/models'
41 declare module 'express' {
42 export interface Request {
46 locals: PeerTubeLocals
50 interface PeerTubeLocals {
51 videoAll?: MVideoFullLight
52 onlyImmutableVideo?: MVideoImmutable
53 onlyVideo?: MVideoThumbnail
54 onlyVideoWithRights?: MVideoWithRights
55 videoId?: MVideoIdThumbnail
57 videoLive?: MVideoLive
59 videoShare?: MVideoShareActor
61 videoFile?: MVideoFile
63 videoImport?: MVideoImportDefault
65 videoBlacklist?: MVideoBlacklist
67 videoCaption?: MVideoCaptionVideo
69 abuse?: MAbuseReporter
70 abuseMessage?: MAbuseMessage
72 videoStreamingPlaylist?: MStreamingPlaylist
74 videoChannel?: MChannelBannerAccountDefault
76 videoPlaylistFull?: MVideoPlaylistFull
77 videoPlaylistSummary?: MVideoPlaylistFullSummary
79 videoPlaylistElement?: MVideoPlaylistElement
80 videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
82 accountVideoRate?: MAccountVideoRateAccountVideo
84 videoCommentFull?: MCommentOwnerVideoReply
85 videoCommentThread?: MComment
87 follow?: MActorFollowActorsDefault
88 subscription?: MActorFollowActorsDefaultSubscription
90 nextOwner?: MAccountDefault
91 videoChangeOwnership?: MVideoChangeOwnershipFull
93 account?: MAccountDefault
96 actorFull?: MActorFull
102 videoRedundancy?: MVideoRedundancyVideo
104 accountBlock?: MAccountBlocklist
105 serverBlock?: MServerBlocklist
108 token: MOAuthTokenUser
112 actor: MActorAccountChannelId
115 authenticated?: boolean
117 registeredPlugin?: RegisteredPlugin
119 externalAuth?: RegisterServerAuthExternalOptions