1 import { RegisterServerAuthExternalOptions } from '@server/types'
7 MVideoChangeOwnershipFull,
11 MVideoPlaylistFullSummary
12 } from '@server/types/models'
13 import { MOAuthTokenUser } from '@server/types/models/oauth/oauth-token'
14 import { MPlugin, MServer, MServerBlocklist } from '@server/types/models/server'
15 import { MVideoImportDefault } from '@server/types/models/video/video-import'
16 import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/types/models/video/video-playlist-element'
17 import { MAccountVideoRateAccountVideo } from '@server/types/models/video/video-rate'
18 import { UserRole } from '@shared/models'
19 import { RegisteredPlugin } from '../../lib/plugins/plugin-manager'
22 MActorAccountChannelId,
23 MActorFollowActorsDefault,
24 MActorFollowActorsDefaultSubscription,
26 MChannelAccountDefault,
28 MCommentOwnerVideoReply,
34 MVideoRedundancyVideo,
38 } from '../../types/models'
40 declare module 'express' {
41 export interface Request {
60 refreshTokenAuthName?: string
62 explicitLogout: boolean
64 videoAll?: MVideoFullLight
65 onlyImmutableVideo?: MVideoImmutable
66 onlyVideo?: MVideoThumbnail
67 onlyVideoWithRights?: MVideoWithRights
68 videoId?: MVideoIdThumbnail
70 videoShare?: MVideoShareActor
72 videoFile?: MVideoFile
74 videoImport?: MVideoImportDefault
76 videoBlacklist?: MVideoBlacklist
78 videoCaption?: MVideoCaptionVideo
82 videoStreamingPlaylist?: MStreamingPlaylist
84 videoChannel?: MChannelAccountDefault
86 videoPlaylistFull?: MVideoPlaylistFull
87 videoPlaylistSummary?: MVideoPlaylistFullSummary
89 videoPlaylistElement?: MVideoPlaylistElement
90 videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
92 accountVideoRate?: MAccountVideoRateAccountVideo
94 videoComment?: MComment
95 videoCommentFull?: MCommentOwnerVideoReply
96 videoCommentThread?: MComment
98 follow?: MActorFollowActorsDefault
99 subscription?: MActorFollowActorsDefaultSubscription
101 nextOwner?: MAccountDefault
102 videoChangeOwnership?: MVideoChangeOwnershipFull
104 account?: MAccountDefault
107 actorFull?: MActorFull
113 videoRedundancy?: MVideoRedundancyVideo
115 accountBlock?: MAccountBlocklist
116 serverBlock?: MServerBlocklist
119 token: MOAuthTokenUser
123 actor: MActorAccountChannelId
126 authenticated?: boolean
128 registeredPlugin?: RegisteredPlugin
130 externalAuth?: RegisterServerAuthExternalOptions