1 import { RegisterServerAuthExternalOptions } from '@server/types'
8 MVideoChangeOwnershipFull,
13 MVideoPlaylistFullSummary
14 } from '@server/types/models'
15 import { MOAuthTokenUser } from '@server/types/models/oauth/oauth-token'
16 import { MPlugin, MServer, MServerBlocklist } from '@server/types/models/server'
17 import { MVideoImportDefault } from '@server/types/models/video/video-import'
18 import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/types/models/video/video-playlist-element'
19 import { MAccountVideoRateAccountVideo } from '@server/types/models/video/video-rate'
20 import { UserRole } from '@shared/models'
21 import { RegisteredPlugin } from '../../lib/plugins/plugin-manager'
24 MActorAccountChannelId,
25 MActorFollowActorsDefault,
26 MActorFollowActorsDefaultSubscription,
28 MChannelAccountDefault,
30 MCommentOwnerVideoReply,
36 MVideoRedundancyVideo,
40 } from '../../types/models'
42 declare module 'express' {
43 export interface Request {
47 locals: PeerTubeLocals
51 interface PeerTubeLocals {
64 refreshTokenAuthName?: string
66 explicitLogout?: boolean
68 videoAll?: MVideoFullLight
69 onlyImmutableVideo?: MVideoImmutable
70 onlyVideo?: MVideoThumbnail
71 onlyVideoWithRights?: MVideoWithRights
72 videoId?: MVideoIdThumbnail
74 videoLive?: MVideoLive
76 videoShare?: MVideoShareActor
78 videoFile?: MVideoFile
80 videoImport?: MVideoImportDefault
82 videoBlacklist?: MVideoBlacklist
84 videoCaption?: MVideoCaptionVideo
86 abuse?: MAbuseReporter
87 abuseMessage?: MAbuseMessage
89 videoStreamingPlaylist?: MStreamingPlaylist
91 videoChannel?: MChannelAccountDefault
93 videoPlaylistFull?: MVideoPlaylistFull
94 videoPlaylistSummary?: MVideoPlaylistFullSummary
96 videoPlaylistElement?: MVideoPlaylistElement
97 videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
99 accountVideoRate?: MAccountVideoRateAccountVideo
101 videoCommentFull?: MCommentOwnerVideoReply
102 videoCommentThread?: MComment
104 follow?: MActorFollowActorsDefault
105 subscription?: MActorFollowActorsDefaultSubscription
107 nextOwner?: MAccountDefault
108 videoChangeOwnership?: MVideoChangeOwnershipFull
110 account?: MAccountDefault
113 actorFull?: MActorFull
119 videoRedundancy?: MVideoRedundancyVideo
121 accountBlock?: MAccountBlocklist
122 serverBlock?: MServerBlocklist
125 token: MOAuthTokenUser
129 actor: MActorAccountChannelId
132 authenticated?: boolean
134 registeredPlugin?: RegisteredPlugin
136 externalAuth?: RegisterServerAuthExternalOptions