]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/typings/express.ts
Cleanup server fixme
[github/Chocobozzz/PeerTube.git] / server / typings / express.ts
1 import { RegisteredPlugin } from '../lib/plugins/plugin-manager'
2 import {
3 MAccountDefault,
4 MActorAccountChannelId,
5 MActorFollowActorsDefault,
6 MActorFollowActorsDefaultSubscription,
7 MActorFull,
8 MChannelAccountDefault,
9 MComment,
10 MCommentOwnerVideoReply,
11 MUserDefault,
12 MVideoAbuse,
13 MVideoBlacklist,
14 MVideoCaptionVideo,
15 MVideoFullLight,
16 MVideoIdThumbnail,
17 MVideoRedundancyVideo,
18 MVideoShareActor,
19 MVideoThumbnail,
20 MVideoWithRights
21 } from './models'
22 import { MVideoPlaylistFull, MVideoPlaylistFullSummary } from './models/video/video-playlist'
23 import { MVideoImportDefault } from '@server/typings/models/video/video-import'
24 import { MAccountBlocklist, MActorUrl, MStreamingPlaylist, MVideoFile } from '@server/typings/models'
25 import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/typings/models/video/video-playlist-element'
26 import { MAccountVideoRateAccountVideo } from '@server/typings/models/video/video-rate'
27 import { MVideoChangeOwnershipFull } from './models/video/video-change-ownership'
28 import { MPlugin, MServer } from '@server/typings/models/server'
29 import { MServerBlocklist } from './models/server/server-blocklist'
30 import { MOAuthTokenUser } from '@server/typings/models/oauth/oauth-token'
31
32 declare module 'express' {
33
34 interface Response {
35
36 locals: {
37 videoAll?: MVideoFullLight
38 onlyVideo?: MVideoThumbnail
39 onlyVideoWithRights?: MVideoWithRights
40 videoId?: MVideoIdThumbnail
41
42 videoShare?: MVideoShareActor
43
44 videoFile?: MVideoFile
45
46 videoImport?: MVideoImportDefault
47
48 videoBlacklist?: MVideoBlacklist
49
50 videoCaption?: MVideoCaptionVideo
51
52 videoAbuse?: MVideoAbuse
53
54 videoStreamingPlaylist?: MStreamingPlaylist
55
56 videoChannel?: MChannelAccountDefault
57
58 videoPlaylistFull?: MVideoPlaylistFull
59 videoPlaylistSummary?: MVideoPlaylistFullSummary
60
61 videoPlaylistElement?: MVideoPlaylistElement
62 videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
63
64 accountVideoRate?: MAccountVideoRateAccountVideo
65
66 videoCommentFull?: MCommentOwnerVideoReply
67 videoCommentThread?: MComment
68
69 follow?: MActorFollowActorsDefault
70 subscription?: MActorFollowActorsDefaultSubscription
71
72 nextOwner?: MAccountDefault
73 videoChangeOwnership?: MVideoChangeOwnershipFull
74
75 account?: MAccountDefault
76
77 actorUrl?: MActorUrl
78 actorFull?: MActorFull
79
80 user?: MUserDefault
81
82 server?: MServer
83
84 videoRedundancy?: MVideoRedundancyVideo
85
86 accountBlock?: MAccountBlocklist
87 serverBlock?: MServerBlocklist
88
89 oauth?: {
90 token: MOAuthTokenUser
91 }
92
93 signature?: {
94 actor: MActorAccountChannelId
95 }
96
97 authenticated?: boolean
98
99 registeredPlugin?: RegisteredPlugin
100
101 plugin?: MPlugin
102 }
103 }
104 }