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