]>
Commit | Line | Data |
---|---|---|
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, 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 | actorFull?: MActorFull | |
78 | ||
79 | user?: MUserDefault | |
80 | ||
81 | server?: MServer | |
82 | ||
83 | videoRedundancy?: MVideoRedundancyVideo | |
84 | ||
85 | accountBlock?: MAccountBlocklist | |
86 | serverBlock?: MServerBlocklist | |
87 | ||
88 | oauth?: { | |
89 | token: MOAuthTokenUser | |
90 | } | |
91 | ||
92 | signature?: { | |
93 | actor: MActorAccountChannelId | |
94 | } | |
95 | ||
96 | authenticated?: boolean | |
97 | ||
98 | registeredPlugin?: RegisteredPlugin | |
99 | ||
100 | plugin?: MPlugin | |
101 | } | |
102 | } | |
103 | } |