]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/typings/express.ts
Cleaner warning of IP address leaking on embedded videos (#2034)
[github/Chocobozzz/PeerTube.git] / server / typings / express.ts
CommitLineData
dae86118
C
1import { VideoChannelModel } from '../models/video/video-channel'
2import { VideoPlaylistModel } from '../models/video/video-playlist'
3import { VideoPlaylistElementModel } from '../models/video/video-playlist-element'
4import { UserModel } from '../models/account/user'
5import { VideoModel } from '../models/video/video'
6import { AccountModel } from '../models/account/account'
7import { VideoChangeOwnershipModel } from '../models/video/video-change-ownership'
8import { ActorModel } from '../models/activitypub/actor'
9import { VideoCommentModel } from '../models/video/video-comment'
10import { VideoShareModel } from '../models/video/video-share'
11import { AccountVideoRateModel } from '../models/account/account-video-rate'
12import { ActorFollowModel } from '../models/activitypub/actor-follow'
13import { ServerModel } from '../models/server/server'
14import { VideoFileModel } from '../models/video/video-file'
15import { VideoRedundancyModel } from '../models/redundancy/video-redundancy'
16import { ServerBlocklistModel } from '../models/server/server-blocklist'
17import { AccountBlocklistModel } from '../models/account/account-blocklist'
18import { VideoImportModel } from '../models/video/video-import'
19import { VideoAbuseModel } from '../models/video/video-abuse'
20import { VideoBlacklistModel } from '../models/video/video-blacklist'
21import { VideoCaptionModel } from '../models/video/video-caption'
22import { VideoStreamingPlaylistModel } from '../models/video/video-streaming-playlist'
345da516 23import { RegisteredPlugin } from '../lib/plugins/plugin-manager'
ad91e700 24import { PluginModel } from '../models/server/plugin'
5224c394 25import { SignatureActorModel } from './models'
dae86118
C
26
27declare module 'express' {
28
29 interface Response {
30 locals: {
31 video?: VideoModel
32 videoShare?: VideoShareModel
33 videoFile?: VideoFileModel
34
35 videoImport?: VideoImportModel
36
37 videoBlacklist?: VideoBlacklistModel
38
39 videoCaption?: VideoCaptionModel
40
41 videoAbuse?: VideoAbuseModel
42
43 videoStreamingPlaylist?: VideoStreamingPlaylistModel
44
45 videoChannel?: VideoChannelModel
46
47 videoPlaylist?: VideoPlaylistModel
48 videoPlaylistElement?: VideoPlaylistElementModel
49
50 accountVideoRate?: AccountVideoRateModel
51
52 videoComment?: VideoCommentModel
53 videoCommentThread?: VideoCommentModel
54
55 follow?: ActorFollowModel
56 subscription?: ActorFollowModel
57
58 nextOwner?: AccountModel
59 videoChangeOwnership?: VideoChangeOwnershipModel
60 account?: AccountModel
61 actor?: ActorModel
62 user?: UserModel
63
64 server?: ServerModel
65
66 videoRedundancy?: VideoRedundancyModel
67
68 accountBlock?: AccountBlocklistModel
69 serverBlock?: ServerBlocklistModel
70
71 oauth?: {
72 token: {
73 User: UserModel
74 user: UserModel
75 }
76 }
77
78 signature?: {
5224c394 79 actor: SignatureActorModel
dae86118
C
80 }
81
82 authenticated?: boolean
345da516
C
83
84 registeredPlugin?: RegisteredPlugin
ad91e700
C
85
86 plugin?: PluginModel
dae86118
C
87 }
88 }
89}