]>
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' | |
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 | } | |
dae86118 | 45 | interface Response { |
fbd51e69 C |
46 | locals: PeerTubeLocals |
47 | } | |
48 | } | |
453e83ea | 49 | |
fbd51e69 | 50 | interface PeerTubeLocals { |
fbd51e69 C |
51 | videoAll?: MVideoFullLight |
52 | onlyImmutableVideo?: MVideoImmutable | |
53 | onlyVideo?: MVideoThumbnail | |
54 | onlyVideoWithRights?: MVideoWithRights | |
55 | videoId?: MVideoIdThumbnail | |
453e83ea | 56 | |
fbd51e69 | 57 | videoLive?: MVideoLive |
c6c0fa6c | 58 | |
fbd51e69 | 59 | videoShare?: MVideoShareActor |
453e83ea | 60 | |
fbd51e69 | 61 | videoFile?: MVideoFile |
453e83ea | 62 | |
fbd51e69 | 63 | videoImport?: MVideoImportDefault |
453e83ea | 64 | |
fbd51e69 | 65 | videoBlacklist?: MVideoBlacklist |
453e83ea | 66 | |
fbd51e69 | 67 | videoCaption?: MVideoCaptionVideo |
453e83ea | 68 | |
fbd51e69 C |
69 | abuse?: MAbuseReporter |
70 | abuseMessage?: MAbuseMessage | |
dae86118 | 71 | |
fbd51e69 | 72 | videoStreamingPlaylist?: MStreamingPlaylist |
dae86118 | 73 | |
fbd51e69 | 74 | videoChannel?: MChannelAccountDefault |
dae86118 | 75 | |
fbd51e69 C |
76 | videoPlaylistFull?: MVideoPlaylistFull |
77 | videoPlaylistSummary?: MVideoPlaylistFullSummary | |
dae86118 | 78 | |
fbd51e69 C |
79 | videoPlaylistElement?: MVideoPlaylistElement |
80 | videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy | |
dae86118 | 81 | |
fbd51e69 | 82 | accountVideoRate?: MAccountVideoRateAccountVideo |
dae86118 | 83 | |
fbd51e69 C |
84 | videoCommentFull?: MCommentOwnerVideoReply |
85 | videoCommentThread?: MComment | |
dae86118 | 86 | |
fbd51e69 C |
87 | follow?: MActorFollowActorsDefault |
88 | subscription?: MActorFollowActorsDefaultSubscription | |
dae86118 | 89 | |
fbd51e69 C |
90 | nextOwner?: MAccountDefault |
91 | videoChangeOwnership?: MVideoChangeOwnershipFull | |
dae86118 | 92 | |
fbd51e69 | 93 | account?: MAccountDefault |
dae86118 | 94 | |
fbd51e69 C |
95 | actorUrl?: MActorUrl |
96 | actorFull?: MActorFull | |
dae86118 | 97 | |
fbd51e69 | 98 | user?: MUserDefault |
dae86118 | 99 | |
fbd51e69 | 100 | server?: MServer |
dae86118 | 101 | |
fbd51e69 | 102 | videoRedundancy?: MVideoRedundancyVideo |
dae86118 | 103 | |
fbd51e69 C |
104 | accountBlock?: MAccountBlocklist |
105 | serverBlock?: MServerBlocklist | |
dae86118 | 106 | |
fbd51e69 C |
107 | oauth?: { |
108 | token: MOAuthTokenUser | |
109 | } | |
dae86118 | 110 | |
fbd51e69 C |
111 | signature?: { |
112 | actor: MActorAccountChannelId | |
113 | } | |
dae86118 | 114 | |
fbd51e69 | 115 | authenticated?: boolean |
345da516 | 116 | |
fbd51e69 | 117 | registeredPlugin?: RegisteredPlugin |
ad91e700 | 118 | |
fbd51e69 | 119 | externalAuth?: RegisterServerAuthExternalOptions |
4a8d113b | 120 | |
fbd51e69 | 121 | plugin?: MPlugin |
dae86118 | 122 | } |