]>
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, MActorUrl, MStreamingPlaylist, MVideoFile, MVideoImmutable } 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 | onlyImmutableVideo?: MVideoImmutable | |
39 | onlyVideo?: MVideoThumbnail | |
40 | onlyVideoWithRights?: MVideoWithRights | |
41 | videoId?: MVideoIdThumbnail | |
42 | ||
43 | videoShare?: MVideoShareActor | |
44 | ||
45 | videoFile?: MVideoFile | |
46 | ||
47 | videoImport?: MVideoImportDefault | |
48 | ||
49 | videoBlacklist?: MVideoBlacklist | |
50 | ||
51 | videoCaption?: MVideoCaptionVideo | |
52 | ||
53 | videoAbuse?: MVideoAbuse | |
54 | ||
55 | videoStreamingPlaylist?: MStreamingPlaylist | |
56 | ||
57 | videoChannel?: MChannelAccountDefault | |
58 | ||
59 | videoPlaylistFull?: MVideoPlaylistFull | |
60 | videoPlaylistSummary?: MVideoPlaylistFullSummary | |
61 | ||
62 | videoPlaylistElement?: MVideoPlaylistElement | |
63 | videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy | |
64 | ||
65 | accountVideoRate?: MAccountVideoRateAccountVideo | |
66 | ||
67 | videoCommentFull?: MCommentOwnerVideoReply | |
68 | videoCommentThread?: MComment | |
69 | ||
70 | follow?: MActorFollowActorsDefault | |
71 | subscription?: MActorFollowActorsDefaultSubscription | |
72 | ||
73 | nextOwner?: MAccountDefault | |
74 | videoChangeOwnership?: MVideoChangeOwnershipFull | |
75 | ||
76 | account?: MAccountDefault | |
77 | ||
78 | actorUrl?: MActorUrl | |
79 | actorFull?: MActorFull | |
80 | ||
81 | user?: MUserDefault | |
82 | ||
83 | server?: MServer | |
84 | ||
85 | videoRedundancy?: MVideoRedundancyVideo | |
86 | ||
87 | accountBlock?: MAccountBlocklist | |
88 | serverBlock?: MServerBlocklist | |
89 | ||
90 | oauth?: { | |
91 | token: MOAuthTokenUser | |
92 | } | |
93 | ||
94 | signature?: { | |
95 | actor: MActorAccountChannelId | |
96 | } | |
97 | ||
98 | authenticated?: boolean | |
99 | ||
100 | registeredPlugin?: RegisteredPlugin | |
101 | ||
102 | plugin?: MPlugin | |
103 | } | |
104 | } | |
105 | } |