]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/typings/express/index.d.ts
Add banners support
[github/Chocobozzz/PeerTube.git] / server / typings / express / index.d.ts
CommitLineData
67ed6552
C
1import { RegisterServerAuthExternalOptions } from '@server/types'
2import {
edbc9325 3 MAbuseMessage,
668b7f09 4 MAbuseReporter,
67ed6552 5 MAccountBlocklist,
2cb03dc1
C
6 MActorFollowActors,
7 MActorFollowActorsDefault,
67ed6552 8 MActorUrl,
2cb03dc1 9 MChannelBannerAccountDefault,
67ed6552
C
10 MStreamingPlaylist,
11 MVideoChangeOwnershipFull,
12 MVideoFile,
13 MVideoImmutable,
fbd51e69 14 MVideoLive,
67ed6552 15 MVideoPlaylistFull,
fbd51e69 16 MVideoPlaylistFullSummary
67ed6552
C
17} from '@server/types/models'
18import { MOAuthTokenUser } from '@server/types/models/oauth/oauth-token'
19import { MPlugin, MServer, MServerBlocklist } from '@server/types/models/server'
20import { MVideoImportDefault } from '@server/types/models/video/video-import'
21import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/types/models/video/video-playlist-element'
22import { MAccountVideoRateAccountVideo } from '@server/types/models/video/video-rate'
c24aac6b 23import { RegisteredPlugin } from '../../lib/plugins/plugin-manager'
453e83ea
C
24import {
25 MAccountDefault,
26 MActorAccountChannelId,
453e83ea
C
27 MActorFollowActorsDefaultSubscription,
28 MActorFull,
453e83ea
C
29 MComment,
30 MCommentOwnerVideoReply,
31 MUserDefault,
453e83ea
C
32 MVideoBlacklist,
33 MVideoCaptionVideo,
34 MVideoFullLight,
35 MVideoIdThumbnail,
36 MVideoRedundancyVideo,
37 MVideoShareActor,
38 MVideoThumbnail,
39 MVideoWithRights
c24aac6b 40} from '../../types/models'
dae86118
C
41
42declare module 'express' {
26d6bf65 43 export interface Request {
faa9d434
C
44 query: any
45 }
dae86118 46 interface Response {
fbd51e69
C
47 locals: PeerTubeLocals
48 }
49}
453e83ea 50
fbd51e69 51interface PeerTubeLocals {
fbd51e69
C
52 videoAll?: MVideoFullLight
53 onlyImmutableVideo?: MVideoImmutable
54 onlyVideo?: MVideoThumbnail
55 onlyVideoWithRights?: MVideoWithRights
56 videoId?: MVideoIdThumbnail
453e83ea 57
fbd51e69 58 videoLive?: MVideoLive
c6c0fa6c 59
fbd51e69 60 videoShare?: MVideoShareActor
453e83ea 61
fbd51e69 62 videoFile?: MVideoFile
453e83ea 63
fbd51e69 64 videoImport?: MVideoImportDefault
453e83ea 65
fbd51e69 66 videoBlacklist?: MVideoBlacklist
453e83ea 67
fbd51e69 68 videoCaption?: MVideoCaptionVideo
453e83ea 69
fbd51e69
C
70 abuse?: MAbuseReporter
71 abuseMessage?: MAbuseMessage
dae86118 72
fbd51e69 73 videoStreamingPlaylist?: MStreamingPlaylist
dae86118 74
2cb03dc1 75 videoChannel?: MChannelBannerAccountDefault
dae86118 76
fbd51e69
C
77 videoPlaylistFull?: MVideoPlaylistFull
78 videoPlaylistSummary?: MVideoPlaylistFullSummary
dae86118 79
fbd51e69
C
80 videoPlaylistElement?: MVideoPlaylistElement
81 videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
dae86118 82
fbd51e69 83 accountVideoRate?: MAccountVideoRateAccountVideo
dae86118 84
fbd51e69
C
85 videoCommentFull?: MCommentOwnerVideoReply
86 videoCommentThread?: MComment
dae86118 87
fbd51e69
C
88 follow?: MActorFollowActorsDefault
89 subscription?: MActorFollowActorsDefaultSubscription
dae86118 90
fbd51e69
C
91 nextOwner?: MAccountDefault
92 videoChangeOwnership?: MVideoChangeOwnershipFull
dae86118 93
fbd51e69 94 account?: MAccountDefault
dae86118 95
fbd51e69
C
96 actorUrl?: MActorUrl
97 actorFull?: MActorFull
dae86118 98
fbd51e69 99 user?: MUserDefault
dae86118 100
fbd51e69 101 server?: MServer
dae86118 102
fbd51e69 103 videoRedundancy?: MVideoRedundancyVideo
dae86118 104
fbd51e69
C
105 accountBlock?: MAccountBlocklist
106 serverBlock?: MServerBlocklist
dae86118 107
fbd51e69
C
108 oauth?: {
109 token: MOAuthTokenUser
110 }
dae86118 111
fbd51e69
C
112 signature?: {
113 actor: MActorAccountChannelId
114 }
dae86118 115
fbd51e69 116 authenticated?: boolean
345da516 117
fbd51e69 118 registeredPlugin?: RegisteredPlugin
ad91e700 119
fbd51e69 120 externalAuth?: RegisterServerAuthExternalOptions
4a8d113b 121
fbd51e69 122 plugin?: MPlugin
dae86118 123}