]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/typings/express.ts
Fix ownership change
[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'
25import { MVideoPlaylistElement } from '@server/typings/models/video/video-playlist-element'
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
dae86118 62
453e83ea 63 accountVideoRate?: MAccountVideoRateAccountVideo
dae86118 64
453e83ea
C
65 videoCommentFull?: MCommentOwnerVideoReply
66 videoCommentThread?: MComment
dae86118 67
453e83ea
C
68 follow?: MActorFollowActorsDefault
69 subscription?: MActorFollowActorsDefaultSubscription
dae86118 70
453e83ea
C
71 nextOwner?: MAccountDefault
72 videoChangeOwnership?: MVideoChangeOwnershipFull
dae86118 73
453e83ea 74 account?: MAccountDefault
dae86118 75
453e83ea 76 actorFull?: MActorFull
dae86118 77
453e83ea 78 user?: MUserDefault
dae86118 79
453e83ea 80 server?: MServer
dae86118 81
453e83ea 82 videoRedundancy?: MVideoRedundancyVideo
dae86118 83
453e83ea
C
84 accountBlock?: MAccountBlocklist
85 serverBlock?: MServerBlocklist
dae86118
C
86
87 oauth?: {
453e83ea 88 token: MOAuthTokenUser
dae86118
C
89 }
90
91 signature?: {
453e83ea 92 actor: MActorAccountChannelId
dae86118
C
93 }
94
95 authenticated?: boolean
345da516
C
96
97 registeredPlugin?: RegisteredPlugin
ad91e700 98
453e83ea 99 plugin?: MPlugin
dae86118
C
100 }
101 }
102}