]>
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' | |
7eba5e1f | 24 | import { MAccountBlocklist, MActorUrl, MStreamingPlaylist, MVideoFile, MVideoImmutable } 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 | 37 | videoAll?: MVideoFullLight |
7eba5e1f | 38 | onlyImmutableVideo?: MVideoImmutable |
453e83ea C |
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 | |
dae86118 | 54 | |
453e83ea | 55 | videoStreamingPlaylist?: MStreamingPlaylist |
dae86118 | 56 | |
0283eaac | 57 | videoChannel?: MChannelAccountDefault |
dae86118 | 58 | |
453e83ea C |
59 | videoPlaylistFull?: MVideoPlaylistFull |
60 | videoPlaylistSummary?: MVideoPlaylistFullSummary | |
dae86118 | 61 | |
453e83ea | 62 | videoPlaylistElement?: MVideoPlaylistElement |
b5fecbf4 | 63 | videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy |
dae86118 | 64 | |
453e83ea | 65 | accountVideoRate?: MAccountVideoRateAccountVideo |
dae86118 | 66 | |
453e83ea C |
67 | videoCommentFull?: MCommentOwnerVideoReply |
68 | videoCommentThread?: MComment | |
dae86118 | 69 | |
453e83ea C |
70 | follow?: MActorFollowActorsDefault |
71 | subscription?: MActorFollowActorsDefaultSubscription | |
dae86118 | 72 | |
453e83ea C |
73 | nextOwner?: MAccountDefault |
74 | videoChangeOwnership?: MVideoChangeOwnershipFull | |
dae86118 | 75 | |
453e83ea | 76 | account?: MAccountDefault |
dae86118 | 77 | |
0374b6b5 | 78 | actorUrl?: MActorUrl |
453e83ea | 79 | actorFull?: MActorFull |
dae86118 | 80 | |
453e83ea | 81 | user?: MUserDefault |
dae86118 | 82 | |
453e83ea | 83 | server?: MServer |
dae86118 | 84 | |
453e83ea | 85 | videoRedundancy?: MVideoRedundancyVideo |
dae86118 | 86 | |
453e83ea C |
87 | accountBlock?: MAccountBlocklist |
88 | serverBlock?: MServerBlocklist | |
dae86118 C |
89 | |
90 | oauth?: { | |
453e83ea | 91 | token: MOAuthTokenUser |
dae86118 C |
92 | } |
93 | ||
94 | signature?: { | |
453e83ea | 95 | actor: MActorAccountChannelId |
dae86118 C |
96 | } |
97 | ||
98 | authenticated?: boolean | |
345da516 C |
99 | |
100 | registeredPlugin?: RegisteredPlugin | |
ad91e700 | 101 | |
453e83ea | 102 | plugin?: MPlugin |
dae86118 C |
103 | } |
104 | } | |
105 | } |