1 import { RegisterServerAuthExternalOptions } from '@server/types'
6 MVideoChangeOwnershipFull,
10 MVideoPlaylistFullSummary
11 } from '@server/types/models'
12 import { MOAuthTokenUser } from '@server/types/models/oauth/oauth-token'
13 import { MPlugin, MServer, MServerBlocklist } from '@server/types/models/server'
14 import { MVideoImportDefault } from '@server/types/models/video/video-import'
15 import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/types/models/video/video-playlist-element'
16 import { MAccountVideoRateAccountVideo } from '@server/types/models/video/video-rate'
17 import { UserRole } from '@shared/models'
18 import { RegisteredPlugin } from '../../lib/plugins/plugin-manager'
21 MActorAccountChannelId,
22 MActorFollowActorsDefault,
23 MActorFollowActorsDefaultSubscription,
25 MChannelAccountDefault,
27 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
80 videoAbuse?: MVideoAbuse
82 videoStreamingPlaylist?: MStreamingPlaylist
84 videoChannel?: MChannelAccountDefault
86 videoPlaylistFull?: MVideoPlaylistFull
87 videoPlaylistSummary?: MVideoPlaylistFullSummary
89 videoPlaylistElement?: MVideoPlaylistElement
90 videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
92 accountVideoRate?: MAccountVideoRateAccountVideo
94 videoCommentFull?: MCommentOwnerVideoReply
95 videoCommentThread?: MComment
97 follow?: MActorFollowActorsDefault
98 subscription?: MActorFollowActorsDefaultSubscription
100 nextOwner?: MAccountDefault
101 videoChangeOwnership?: MVideoChangeOwnershipFull
103 account?: MAccountDefault
106 actorFull?: MActorFull
112 videoRedundancy?: MVideoRedundancyVideo
114 accountBlock?: MAccountBlocklist
115 serverBlock?: MServerBlocklist
118 token: MOAuthTokenUser
122 actor: MActorAccountChannelId
125 authenticated?: boolean
127 registeredPlugin?: RegisteredPlugin
129 externalAuth?: RegisterServerAuthExternalOptions