]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/typings/express.ts
Optimize peertube script
[github/Chocobozzz/PeerTube.git] / server / typings / express.ts
CommitLineData
345da516 1import { RegisteredPlugin } from '../lib/plugins/plugin-manager'
453e83ea
C
2import {
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
21} from './models'
22import { MVideoPlaylistFull, MVideoPlaylistFullSummary } from './models/video/video-playlist'
23import { MVideoImportDefault } from '@server/typings/models/video/video-import'
24import { MAccountBlocklist, MStreamingPlaylist, MVideoFile } from '@server/typings/models'
b5fecbf4 25import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/typings/models/video/video-playlist-element'
453e83ea
C
26import { MAccountVideoRateAccountVideo } from '@server/typings/models/video/video-rate'
27import { MVideoChangeOwnershipFull } from './models/video/video-change-ownership'
28import { MPlugin, MServer } from '@server/typings/models/server'
29import { MServerBlocklist } from './models/server/server-blocklist'
30import { MOAuthTokenUser } from '@server/typings/models/oauth/oauth-token'
dae86118
C
31
32declare module 'express' {
33
34 interface Response {
453e83ea 35
dae86118 36 locals: {
453e83ea
C
37 videoAll?: MVideoFullLight
38 onlyVideo?: MVideoThumbnail
39 onlyVideoWithRights?: MVideoWithRights
40 videoId?: MVideoIdThumbnail
41
42 videoShare?: MVideoShareActor
43
44 videoFile?: MVideoFile
45
46 videoImport?: MVideoImportDefault
47
48 videoBlacklist?: MVideoBlacklist
49
50 videoCaption?: MVideoCaptionVideo
51
52 videoAbuse?: MVideoAbuse
dae86118 53
453e83ea 54 videoStreamingPlaylist?: MStreamingPlaylist
dae86118 55
0283eaac 56 videoChannel?: MChannelAccountDefault
dae86118 57
453e83ea
C
58 videoPlaylistFull?: MVideoPlaylistFull
59 videoPlaylistSummary?: MVideoPlaylistFullSummary
dae86118 60
453e83ea 61 videoPlaylistElement?: MVideoPlaylistElement
b5fecbf4 62 videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
dae86118 63
453e83ea 64 accountVideoRate?: MAccountVideoRateAccountVideo
dae86118 65
453e83ea
C
66 videoCommentFull?: MCommentOwnerVideoReply
67 videoCommentThread?: MComment
dae86118 68
453e83ea
C
69 follow?: MActorFollowActorsDefault
70 subscription?: MActorFollowActorsDefaultSubscription
dae86118 71
453e83ea
C
72 nextOwner?: MAccountDefault
73 videoChangeOwnership?: MVideoChangeOwnershipFull
dae86118 74
453e83ea 75 account?: MAccountDefault
dae86118 76
453e83ea 77 actorFull?: MActorFull
dae86118 78
453e83ea 79 user?: MUserDefault
dae86118 80
453e83ea 81 server?: MServer
dae86118 82
453e83ea 83 videoRedundancy?: MVideoRedundancyVideo
dae86118 84
453e83ea
C
85 accountBlock?: MAccountBlocklist
86 serverBlock?: MServerBlocklist
dae86118
C
87
88 oauth?: {
453e83ea 89 token: MOAuthTokenUser
dae86118
C
90 }
91
92 signature?: {
453e83ea 93 actor: MActorAccountChannelId
dae86118
C
94 }
95
96 authenticated?: boolean
345da516
C
97
98 registeredPlugin?: RegisteredPlugin
ad91e700 99
453e83ea 100 plugin?: MPlugin
dae86118
C
101 }
102 }
103}