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