]>
Commit | Line | Data |
---|---|---|
345da516 | 1 | import { RegisteredPlugin } from '../lib/plugins/plugin-manager' |
453e83ea C |
2 | import { |
3 | MAccountDefault, | |
4 | MActorAccountChannelId, | |
5 | MActorFollowActorsDefault, | |
6 | MActorFollowActorsDefaultSubscription, | |
7 | MActorFull, | |
0283eaac | 8 | MChannelAccountDefault, |
453e83ea C |
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' | |
0374b6b5 | 24 | import { MAccountBlocklist, MActorUrl, MStreamingPlaylist, MVideoFile } from '@server/typings/models' |
b5fecbf4 | 25 | import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/typings/models/video/video-playlist-element' |
453e83ea C |
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' | |
dae86118 C |
31 | |
32 | declare module 'express' { | |
33 | ||
34 | interface Response { | |
453e83ea | 35 | |
dae86118 | 36 | locals: { |
453e83ea C |
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 | |
dae86118 | 53 | |
453e83ea | 54 | videoStreamingPlaylist?: MStreamingPlaylist |
dae86118 | 55 | |
0283eaac | 56 | videoChannel?: MChannelAccountDefault |
dae86118 | 57 | |
453e83ea C |
58 | videoPlaylistFull?: MVideoPlaylistFull |
59 | videoPlaylistSummary?: MVideoPlaylistFullSummary | |
dae86118 | 60 | |
453e83ea | 61 | videoPlaylistElement?: MVideoPlaylistElement |
b5fecbf4 | 62 | videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy |
dae86118 | 63 | |
453e83ea | 64 | accountVideoRate?: MAccountVideoRateAccountVideo |
dae86118 | 65 | |
453e83ea C |
66 | videoCommentFull?: MCommentOwnerVideoReply |
67 | videoCommentThread?: MComment | |
dae86118 | 68 | |
453e83ea C |
69 | follow?: MActorFollowActorsDefault |
70 | subscription?: MActorFollowActorsDefaultSubscription | |
dae86118 | 71 | |
453e83ea C |
72 | nextOwner?: MAccountDefault |
73 | videoChangeOwnership?: MVideoChangeOwnershipFull | |
dae86118 | 74 | |
453e83ea | 75 | account?: MAccountDefault |
dae86118 | 76 | |
0374b6b5 | 77 | actorUrl?: MActorUrl |
453e83ea | 78 | actorFull?: MActorFull |
dae86118 | 79 | |
453e83ea | 80 | user?: MUserDefault |
dae86118 | 81 | |
453e83ea | 82 | server?: MServer |
dae86118 | 83 | |
453e83ea | 84 | videoRedundancy?: MVideoRedundancyVideo |
dae86118 | 85 | |
453e83ea C |
86 | accountBlock?: MAccountBlocklist |
87 | serverBlock?: MServerBlocklist | |
dae86118 C |
88 | |
89 | oauth?: { | |
453e83ea | 90 | token: MOAuthTokenUser |
dae86118 C |
91 | } |
92 | ||
93 | signature?: { | |
453e83ea | 94 | actor: MActorAccountChannelId |
dae86118 C |
95 | } |
96 | ||
97 | authenticated?: boolean | |
345da516 C |
98 | |
99 | registeredPlugin?: RegisteredPlugin | |
ad91e700 | 100 | |
453e83ea | 101 | plugin?: MPlugin |
dae86118 C |
102 | } |
103 | } | |
104 | } |