]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/typings/express.ts
Cleanup model types
[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, MStreamingPlaylist, MVideoFile } from '@server/typings/models'
25 import { MVideoPlaylistElement } 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
63 accountVideoRate?: MAccountVideoRateAccountVideo
64
65 videoCommentFull?: MCommentOwnerVideoReply
66 videoCommentThread?: MComment
67
68 follow?: MActorFollowActorsDefault
69 subscription?: MActorFollowActorsDefaultSubscription
70
71 nextOwner?: MAccountDefault
72 videoChangeOwnership?: MVideoChangeOwnershipFull
73
74 account?: MAccountDefault
75
76 actorFull?: MActorFull
77
78 user?: MUserDefault
79
80 server?: MServer
81
82 videoRedundancy?: MVideoRedundancyVideo
83
84 accountBlock?: MAccountBlocklist
85 serverBlock?: MServerBlocklist
86
87 oauth?: {
88 token: MOAuthTokenUser
89 }
90
91 signature?: {
92 actor: MActorAccountChannelId
93 }
94
95 authenticated?: boolean
96
97 registeredPlugin?: RegisteredPlugin
98
99 plugin?: MPlugin
100 }
101 }
102 }