1 import { RegisterServerAuthExternalOptions } from '@server/types'
8 MVideoChangeOwnershipFull,
12 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 {
62 refreshTokenAuthName?: string
64 explicitLogout: boolean
66 videoAll?: MVideoFullLight
67 onlyImmutableVideo?: MVideoImmutable
68 onlyVideo?: MVideoThumbnail
69 onlyVideoWithRights?: MVideoWithRights
70 videoId?: MVideoIdThumbnail
72 videoShare?: MVideoShareActor
74 videoFile?: MVideoFile
76 videoImport?: MVideoImportDefault
78 videoBlacklist?: MVideoBlacklist
80 videoCaption?: MVideoCaptionVideo
82 abuse?: MAbuseReporter
83 abuseMessage?: MAbuseMessage
85 videoStreamingPlaylist?: MStreamingPlaylist
87 videoChannel?: MChannelAccountDefault
89 videoPlaylistFull?: MVideoPlaylistFull
90 videoPlaylistSummary?: MVideoPlaylistFullSummary
92 videoPlaylistElement?: MVideoPlaylistElement
93 videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
95 accountVideoRate?: MAccountVideoRateAccountVideo
97 videoCommentFull?: MCommentOwnerVideoReply
98 videoCommentThread?: MComment
100 follow?: MActorFollowActorsDefault
101 subscription?: MActorFollowActorsDefaultSubscription
103 nextOwner?: MAccountDefault
104 videoChangeOwnership?: MVideoChangeOwnershipFull
106 account?: MAccountDefault
109 actorFull?: MActorFull
115 videoRedundancy?: MVideoRedundancyVideo
117 accountBlock?: MAccountBlocklist
118 serverBlock?: MServerBlocklist
121 token: MOAuthTokenUser
125 actor: MActorAccountChannelId
128 authenticated?: boolean
130 registeredPlugin?: RegisteredPlugin
132 externalAuth?: RegisterServerAuthExternalOptions