]>
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' | |
7fed6375 | 31 | import { UserRole } from '@shared/models' |
dae86118 C |
32 | |
33 | declare module 'express' { | |
dae86118 | 34 | interface Response { |
453e83ea | 35 | |
dae86118 | 36 | locals: { |
7fed6375 C |
37 | bypassLogin?: { |
38 | bypass: boolean | |
39 | pluginName: string | |
e1c55031 | 40 | authName?: string |
7fed6375 C |
41 | user: { |
42 | username: string | |
43 | email: string | |
44 | displayName: string | |
45 | role: UserRole | |
46 | } | |
47 | } | |
48 | ||
e307e4fc C |
49 | refreshTokenAuthName?: string |
50 | ||
e1c55031 C |
51 | explicitLogout: boolean |
52 | ||
453e83ea | 53 | videoAll?: MVideoFullLight |
7eba5e1f | 54 | onlyImmutableVideo?: MVideoImmutable |
453e83ea C |
55 | onlyVideo?: MVideoThumbnail |
56 | onlyVideoWithRights?: MVideoWithRights | |
57 | videoId?: MVideoIdThumbnail | |
58 | ||
59 | videoShare?: MVideoShareActor | |
60 | ||
61 | videoFile?: MVideoFile | |
62 | ||
63 | videoImport?: MVideoImportDefault | |
64 | ||
65 | videoBlacklist?: MVideoBlacklist | |
66 | ||
67 | videoCaption?: MVideoCaptionVideo | |
68 | ||
69 | videoAbuse?: MVideoAbuse | |
dae86118 | 70 | |
453e83ea | 71 | videoStreamingPlaylist?: MStreamingPlaylist |
dae86118 | 72 | |
0283eaac | 73 | videoChannel?: MChannelAccountDefault |
dae86118 | 74 | |
453e83ea C |
75 | videoPlaylistFull?: MVideoPlaylistFull |
76 | videoPlaylistSummary?: MVideoPlaylistFullSummary | |
dae86118 | 77 | |
453e83ea | 78 | videoPlaylistElement?: MVideoPlaylistElement |
b5fecbf4 | 79 | videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy |
dae86118 | 80 | |
453e83ea | 81 | accountVideoRate?: MAccountVideoRateAccountVideo |
dae86118 | 82 | |
453e83ea C |
83 | videoCommentFull?: MCommentOwnerVideoReply |
84 | videoCommentThread?: MComment | |
dae86118 | 85 | |
453e83ea C |
86 | follow?: MActorFollowActorsDefault |
87 | subscription?: MActorFollowActorsDefaultSubscription | |
dae86118 | 88 | |
453e83ea C |
89 | nextOwner?: MAccountDefault |
90 | videoChangeOwnership?: MVideoChangeOwnershipFull | |
dae86118 | 91 | |
453e83ea | 92 | account?: MAccountDefault |
dae86118 | 93 | |
0374b6b5 | 94 | actorUrl?: MActorUrl |
453e83ea | 95 | actorFull?: MActorFull |
dae86118 | 96 | |
453e83ea | 97 | user?: MUserDefault |
dae86118 | 98 | |
453e83ea | 99 | server?: MServer |
dae86118 | 100 | |
453e83ea | 101 | videoRedundancy?: MVideoRedundancyVideo |
dae86118 | 102 | |
453e83ea C |
103 | accountBlock?: MAccountBlocklist |
104 | serverBlock?: MServerBlocklist | |
dae86118 C |
105 | |
106 | oauth?: { | |
453e83ea | 107 | token: MOAuthTokenUser |
dae86118 C |
108 | } |
109 | ||
110 | signature?: { | |
453e83ea | 111 | actor: MActorAccountChannelId |
dae86118 C |
112 | } |
113 | ||
114 | authenticated?: boolean | |
345da516 C |
115 | |
116 | registeredPlugin?: RegisteredPlugin | |
ad91e700 | 117 | |
453e83ea | 118 | plugin?: MPlugin |
dae86118 C |
119 | } |
120 | } | |
121 | } |