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 videoLive?: MVideoLive
74 videoShare?: MVideoShareActor
76 videoFile?: MVideoFile
78 videoImport?: MVideoImportDefault
80 videoBlacklist?: MVideoBlacklist
82 videoCaption?: MVideoCaptionVideo
84 abuse?: MAbuseReporter
85 abuseMessage?: MAbuseMessage
87 videoStreamingPlaylist?: MStreamingPlaylist
89 videoChannel?: MChannelAccountDefault
91 videoPlaylistFull?: MVideoPlaylistFull
92 videoPlaylistSummary?: MVideoPlaylistFullSummary
94 videoPlaylistElement?: MVideoPlaylistElement
95 videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
97 accountVideoRate?: MAccountVideoRateAccountVideo
99 videoCommentFull?: MCommentOwnerVideoReply
100 videoCommentThread?: MComment
102 follow?: MActorFollowActorsDefault
103 subscription?: MActorFollowActorsDefaultSubscription
105 nextOwner?: MAccountDefault
106 videoChangeOwnership?: MVideoChangeOwnershipFull
108 account?: MAccountDefault
111 actorFull?: MActorFull
117 videoRedundancy?: MVideoRedundancyVideo
119 accountBlock?: MAccountBlocklist
120 serverBlock?: MServerBlocklist
123 token: MOAuthTokenUser
127 actor: MActorAccountChannelId
130 authenticated?: boolean
132 registeredPlugin?: RegisteredPlugin
134 externalAuth?: RegisterServerAuthExternalOptions