]>
Commit | Line | Data |
---|---|---|
67ed6552 C |
1 | import { RegisterServerAuthExternalOptions } from '@server/types' |
2 | import { | |
edbc9325 | 3 | MAbuseMessage, |
668b7f09 | 4 | MAbuseReporter, |
67ed6552 C |
5 | MAccountBlocklist, |
6 | MActorUrl, | |
7 | MStreamingPlaylist, | |
8 | MVideoChangeOwnershipFull, | |
9 | MVideoFile, | |
10 | MVideoImmutable, | |
fbd51e69 | 11 | MVideoLive, |
67ed6552 | 12 | MVideoPlaylistFull, |
fbd51e69 | 13 | MVideoPlaylistFullSummary |
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 | } | |
dae86118 | 46 | interface Response { |
fbd51e69 C |
47 | locals: PeerTubeLocals |
48 | } | |
49 | } | |
453e83ea | 50 | |
fbd51e69 C |
51 | interface PeerTubeLocals { |
52 | bypassLogin?: { | |
53 | bypass: boolean | |
54 | pluginName: string | |
55 | authName?: string | |
56 | user: { | |
57 | username: string | |
58 | email: string | |
59 | displayName: string | |
60 | role: UserRole | |
61 | } | |
62 | } | |
7fed6375 | 63 | |
fbd51e69 | 64 | refreshTokenAuthName?: string |
e307e4fc | 65 | |
fbd51e69 | 66 | explicitLogout?: boolean |
e1c55031 | 67 | |
fbd51e69 C |
68 | videoAll?: MVideoFullLight |
69 | onlyImmutableVideo?: MVideoImmutable | |
70 | onlyVideo?: MVideoThumbnail | |
71 | onlyVideoWithRights?: MVideoWithRights | |
72 | videoId?: MVideoIdThumbnail | |
453e83ea | 73 | |
fbd51e69 | 74 | videoLive?: MVideoLive |
c6c0fa6c | 75 | |
fbd51e69 | 76 | videoShare?: MVideoShareActor |
453e83ea | 77 | |
fbd51e69 | 78 | videoFile?: MVideoFile |
453e83ea | 79 | |
fbd51e69 | 80 | videoImport?: MVideoImportDefault |
453e83ea | 81 | |
fbd51e69 | 82 | videoBlacklist?: MVideoBlacklist |
453e83ea | 83 | |
fbd51e69 | 84 | videoCaption?: MVideoCaptionVideo |
453e83ea | 85 | |
fbd51e69 C |
86 | abuse?: MAbuseReporter |
87 | abuseMessage?: MAbuseMessage | |
dae86118 | 88 | |
fbd51e69 | 89 | videoStreamingPlaylist?: MStreamingPlaylist |
dae86118 | 90 | |
fbd51e69 | 91 | videoChannel?: MChannelAccountDefault |
dae86118 | 92 | |
fbd51e69 C |
93 | videoPlaylistFull?: MVideoPlaylistFull |
94 | videoPlaylistSummary?: MVideoPlaylistFullSummary | |
dae86118 | 95 | |
fbd51e69 C |
96 | videoPlaylistElement?: MVideoPlaylistElement |
97 | videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy | |
dae86118 | 98 | |
fbd51e69 | 99 | accountVideoRate?: MAccountVideoRateAccountVideo |
dae86118 | 100 | |
fbd51e69 C |
101 | videoCommentFull?: MCommentOwnerVideoReply |
102 | videoCommentThread?: MComment | |
dae86118 | 103 | |
fbd51e69 C |
104 | follow?: MActorFollowActorsDefault |
105 | subscription?: MActorFollowActorsDefaultSubscription | |
dae86118 | 106 | |
fbd51e69 C |
107 | nextOwner?: MAccountDefault |
108 | videoChangeOwnership?: MVideoChangeOwnershipFull | |
dae86118 | 109 | |
fbd51e69 | 110 | account?: MAccountDefault |
dae86118 | 111 | |
fbd51e69 C |
112 | actorUrl?: MActorUrl |
113 | actorFull?: MActorFull | |
dae86118 | 114 | |
fbd51e69 | 115 | user?: MUserDefault |
dae86118 | 116 | |
fbd51e69 | 117 | server?: MServer |
dae86118 | 118 | |
fbd51e69 | 119 | videoRedundancy?: MVideoRedundancyVideo |
dae86118 | 120 | |
fbd51e69 C |
121 | accountBlock?: MAccountBlocklist |
122 | serverBlock?: MServerBlocklist | |
dae86118 | 123 | |
fbd51e69 C |
124 | oauth?: { |
125 | token: MOAuthTokenUser | |
126 | } | |
dae86118 | 127 | |
fbd51e69 C |
128 | signature?: { |
129 | actor: MActorAccountChannelId | |
130 | } | |
dae86118 | 131 | |
fbd51e69 | 132 | authenticated?: boolean |
345da516 | 133 | |
fbd51e69 | 134 | registeredPlugin?: RegisteredPlugin |
ad91e700 | 135 | |
fbd51e69 | 136 | externalAuth?: RegisterServerAuthExternalOptions |
4a8d113b | 137 | |
fbd51e69 | 138 | plugin?: MPlugin |
dae86118 | 139 | } |