]>
Commit | Line | Data |
---|---|---|
67ed6552 C |
1 | import { RegisterServerAuthExternalOptions } from '@server/types' |
2 | import { | |
d95d1559 | 3 | MAbuse, |
edbc9325 | 4 | MAbuseMessage, |
67ed6552 C |
5 | MAccountBlocklist, |
6 | MActorUrl, | |
7 | MStreamingPlaylist, | |
8 | MVideoChangeOwnershipFull, | |
9 | MVideoFile, | |
10 | MVideoImmutable, | |
11 | MVideoPlaylistFull, | |
12 | MVideoPlaylistFullSummary | |
13 | } from '@server/types/models' | |
14 | import { MOAuthTokenUser } from '@server/types/models/oauth/oauth-token' | |
15 | import { MPlugin, MServer, MServerBlocklist } from '@server/types/models/server' | |
16 | import { MVideoImportDefault } from '@server/types/models/video/video-import' | |
17 | import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/types/models/video/video-playlist-element' | |
18 | import { MAccountVideoRateAccountVideo } from '@server/types/models/video/video-rate' | |
19 | import { UserRole } from '@shared/models' | |
c24aac6b | 20 | import { RegisteredPlugin } from '../../lib/plugins/plugin-manager' |
453e83ea C |
21 | import { |
22 | MAccountDefault, | |
23 | MActorAccountChannelId, | |
24 | MActorFollowActorsDefault, | |
25 | MActorFollowActorsDefaultSubscription, | |
26 | MActorFull, | |
0283eaac | 27 | MChannelAccountDefault, |
453e83ea C |
28 | MComment, |
29 | MCommentOwnerVideoReply, | |
30 | MUserDefault, | |
453e83ea C |
31 | MVideoBlacklist, |
32 | MVideoCaptionVideo, | |
33 | MVideoFullLight, | |
34 | MVideoIdThumbnail, | |
35 | MVideoRedundancyVideo, | |
36 | MVideoShareActor, | |
37 | MVideoThumbnail, | |
38 | MVideoWithRights | |
c24aac6b | 39 | } from '../../types/models' |
dae86118 C |
40 | |
41 | declare module 'express' { | |
26d6bf65 | 42 | export interface Request { |
faa9d434 C |
43 | query: any |
44 | } | |
45 | ||
dae86118 | 46 | interface Response { |
453e83ea | 47 | |
dae86118 | 48 | locals: { |
7fed6375 C |
49 | bypassLogin?: { |
50 | bypass: boolean | |
51 | pluginName: string | |
e1c55031 | 52 | authName?: string |
7fed6375 C |
53 | user: { |
54 | username: string | |
55 | email: string | |
56 | displayName: string | |
57 | role: UserRole | |
58 | } | |
59 | } | |
60 | ||
e307e4fc C |
61 | refreshTokenAuthName?: string |
62 | ||
e1c55031 C |
63 | explicitLogout: boolean |
64 | ||
453e83ea | 65 | videoAll?: MVideoFullLight |
7eba5e1f | 66 | onlyImmutableVideo?: MVideoImmutable |
453e83ea C |
67 | onlyVideo?: MVideoThumbnail |
68 | onlyVideoWithRights?: MVideoWithRights | |
69 | videoId?: MVideoIdThumbnail | |
70 | ||
71 | videoShare?: MVideoShareActor | |
72 | ||
73 | videoFile?: MVideoFile | |
74 | ||
75 | videoImport?: MVideoImportDefault | |
76 | ||
77 | videoBlacklist?: MVideoBlacklist | |
78 | ||
79 | videoCaption?: MVideoCaptionVideo | |
80 | ||
d95d1559 | 81 | abuse?: MAbuse |
edbc9325 | 82 | abuseMessage?: MAbuseMessage |
dae86118 | 83 | |
453e83ea | 84 | videoStreamingPlaylist?: MStreamingPlaylist |
dae86118 | 85 | |
0283eaac | 86 | videoChannel?: MChannelAccountDefault |
dae86118 | 87 | |
453e83ea C |
88 | videoPlaylistFull?: MVideoPlaylistFull |
89 | videoPlaylistSummary?: MVideoPlaylistFullSummary | |
dae86118 | 90 | |
453e83ea | 91 | videoPlaylistElement?: MVideoPlaylistElement |
b5fecbf4 | 92 | videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy |
dae86118 | 93 | |
453e83ea | 94 | accountVideoRate?: MAccountVideoRateAccountVideo |
dae86118 | 95 | |
453e83ea C |
96 | videoCommentFull?: MCommentOwnerVideoReply |
97 | videoCommentThread?: MComment | |
dae86118 | 98 | |
453e83ea C |
99 | follow?: MActorFollowActorsDefault |
100 | subscription?: MActorFollowActorsDefaultSubscription | |
dae86118 | 101 | |
453e83ea C |
102 | nextOwner?: MAccountDefault |
103 | videoChangeOwnership?: MVideoChangeOwnershipFull | |
dae86118 | 104 | |
453e83ea | 105 | account?: MAccountDefault |
dae86118 | 106 | |
0374b6b5 | 107 | actorUrl?: MActorUrl |
453e83ea | 108 | actorFull?: MActorFull |
dae86118 | 109 | |
453e83ea | 110 | user?: MUserDefault |
dae86118 | 111 | |
453e83ea | 112 | server?: MServer |
dae86118 | 113 | |
453e83ea | 114 | videoRedundancy?: MVideoRedundancyVideo |
dae86118 | 115 | |
453e83ea C |
116 | accountBlock?: MAccountBlocklist |
117 | serverBlock?: MServerBlocklist | |
dae86118 C |
118 | |
119 | oauth?: { | |
453e83ea | 120 | token: MOAuthTokenUser |
dae86118 C |
121 | } |
122 | ||
123 | signature?: { | |
453e83ea | 124 | actor: MActorAccountChannelId |
dae86118 C |
125 | } |
126 | ||
127 | authenticated?: boolean | |
345da516 C |
128 | |
129 | registeredPlugin?: RegisteredPlugin | |
ad91e700 | 130 | |
4a8d113b C |
131 | externalAuth?: RegisterServerAuthExternalOptions |
132 | ||
453e83ea | 133 | plugin?: MPlugin |
dae86118 C |
134 | } |
135 | } | |
136 | } |