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