1 import { RegisterServerAuthExternalOptions } from '@server/types'
7 MActorFollowActorsDefault,
9 MChannelBannerAccountDefault,
11 MVideoChangeOwnershipFull,
16 MVideoPlaylistFullSummary
17 } from '@server/types/models'
18 import { MOAuthTokenUser } from '@server/types/models/oauth/oauth-token'
19 import { MPlugin, MServer, MServerBlocklist } from '@server/types/models/server'
20 import { MVideoImportDefault } from '@server/types/models/video/video-import'
21 import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/types/models/video/video-playlist-element'
22 import { MAccountVideoRateAccountVideo } from '@server/types/models/video/video-rate'
23 import { RegisteredPlugin } from '../../lib/plugins/plugin-manager'
26 MActorAccountChannelId,
27 MActorFollowActorsDefaultSubscription,
30 MCommentOwnerVideoReply,
36 MVideoRedundancyVideo,
40 } from '../../types/models'
42 declare module 'express' {
43 export interface Request {
47 locals: PeerTubeLocals
51 interface PeerTubeLocals {
52 videoAll?: MVideoFullLight
53 onlyImmutableVideo?: MVideoImmutable
54 onlyVideo?: MVideoThumbnail
55 onlyVideoWithRights?: MVideoWithRights
56 videoId?: MVideoIdThumbnail
58 videoLive?: MVideoLive
60 videoShare?: MVideoShareActor
62 videoFile?: MVideoFile
64 videoImport?: MVideoImportDefault
66 videoBlacklist?: MVideoBlacklist
68 videoCaption?: MVideoCaptionVideo
70 abuse?: MAbuseReporter
71 abuseMessage?: MAbuseMessage
73 videoStreamingPlaylist?: MStreamingPlaylist
75 videoChannel?: MChannelBannerAccountDefault
77 videoPlaylistFull?: MVideoPlaylistFull
78 videoPlaylistSummary?: MVideoPlaylistFullSummary
80 videoPlaylistElement?: MVideoPlaylistElement
81 videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
83 accountVideoRate?: MAccountVideoRateAccountVideo
85 videoCommentFull?: MCommentOwnerVideoReply
86 videoCommentThread?: MComment
88 follow?: MActorFollowActorsDefault
89 subscription?: MActorFollowActorsDefaultSubscription
91 nextOwner?: MAccountDefault
92 videoChangeOwnership?: MVideoChangeOwnershipFull
94 account?: MAccountDefault
97 actorFull?: MActorFull
103 videoRedundancy?: MVideoRedundancyVideo
105 accountBlock?: MAccountBlocklist
106 serverBlock?: MServerBlocklist
109 token: MOAuthTokenUser
113 actor: MActorAccountChannelId
116 authenticated?: boolean
118 registeredPlugin?: RegisteredPlugin
120 externalAuth?: RegisterServerAuthExternalOptions