]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/typings/express.ts
WIP plugins: load theme on client side
[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'
dae86118
C
24
25declare module 'express' {
26
345da516 27
dae86118
C
28 interface Response {
29 locals: {
30 video?: VideoModel
31 videoShare?: VideoShareModel
32 videoFile?: VideoFileModel
33
34 videoImport?: VideoImportModel
35
36 videoBlacklist?: VideoBlacklistModel
37
38 videoCaption?: VideoCaptionModel
39
40 videoAbuse?: VideoAbuseModel
41
42 videoStreamingPlaylist?: VideoStreamingPlaylistModel
43
44 videoChannel?: VideoChannelModel
45
46 videoPlaylist?: VideoPlaylistModel
47 videoPlaylistElement?: VideoPlaylistElementModel
48
49 accountVideoRate?: AccountVideoRateModel
50
51 videoComment?: VideoCommentModel
52 videoCommentThread?: VideoCommentModel
53
54 follow?: ActorFollowModel
55 subscription?: ActorFollowModel
56
57 nextOwner?: AccountModel
58 videoChangeOwnership?: VideoChangeOwnershipModel
59 account?: AccountModel
60 actor?: ActorModel
61 user?: UserModel
62
63 server?: ServerModel
64
65 videoRedundancy?: VideoRedundancyModel
66
67 accountBlock?: AccountBlocklistModel
68 serverBlock?: ServerBlocklistModel
69
70 oauth?: {
71 token: {
72 User: UserModel
73 user: UserModel
74 }
75 }
76
77 signature?: {
78 actor: ActorModel
79 }
80
81 authenticated?: boolean
345da516
C
82
83 registeredPlugin?: RegisteredPlugin
dae86118
C
84 }
85 }
86}