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