1 import { RegisterServerAuthExternalOptions } from '@server/types'
8 MVideoChangeOwnershipFull,
12 MVideoPlaylistFullSummary
13 } from '@server/types/models'
14 import { MOAuthTokenUser } from '@server/types/models/oauth/oauth-token'
15 import { MPlugin, MServer, MServerBlocklist } from '@server/types/models/server'
16 import { MVideoImportDefault } from '@server/types/models/video/video-import'
17 import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/types/models/video/video-playlist-element'
18 import { MAccountVideoRateAccountVideo } from '@server/types/models/video/video-rate'
19 import { UserRole } from '@shared/models'
20 import { RegisteredPlugin } from '../../lib/plugins/plugin-manager'
23 MActorAccountChannelId,
24 MActorFollowActorsDefault,
25 MActorFollowActorsDefaultSubscription,
27 MChannelAccountDefault,
29 MCommentOwnerVideoReply,
35 MVideoRedundancyVideo,
39 } from '../../types/models'
41 declare module 'express' {
42 export interface Request {
61 refreshTokenAuthName?: string
63 explicitLogout: boolean
65 videoAll?: MVideoFullLight
66 onlyImmutableVideo?: MVideoImmutable
67 onlyVideo?: MVideoThumbnail
68 onlyVideoWithRights?: MVideoWithRights
69 videoId?: MVideoIdThumbnail
71 videoShare?: MVideoShareActor
73 videoFile?: MVideoFile
75 videoImport?: MVideoImportDefault
77 videoBlacklist?: MVideoBlacklist
79 videoCaption?: MVideoCaptionVideo
82 abuseMessage?: MAbuseMessage
84 videoStreamingPlaylist?: MStreamingPlaylist
86 videoChannel?: MChannelAccountDefault
88 videoPlaylistFull?: MVideoPlaylistFull
89 videoPlaylistSummary?: MVideoPlaylistFullSummary
91 videoPlaylistElement?: MVideoPlaylistElement
92 videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
94 accountVideoRate?: MAccountVideoRateAccountVideo
96 videoCommentFull?: MCommentOwnerVideoReply
97 videoCommentThread?: MComment
99 follow?: MActorFollowActorsDefault
100 subscription?: MActorFollowActorsDefaultSubscription
102 nextOwner?: MAccountDefault
103 videoChangeOwnership?: MVideoChangeOwnershipFull
105 account?: MAccountDefault
108 actorFull?: MActorFull
114 videoRedundancy?: MVideoRedundancyVideo
116 accountBlock?: MAccountBlocklist
117 serverBlock?: MServerBlocklist
120 token: MOAuthTokenUser
124 actor: MActorAccountChannelId
127 authenticated?: boolean
129 registeredPlugin?: RegisteredPlugin
131 externalAuth?: RegisterServerAuthExternalOptions