]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/typings/express.ts
Remove uneccessary details to link titles
[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'
7eba5e1f 24import { MAccountBlocklist, MActorUrl, MStreamingPlaylist, MVideoFile, MVideoImmutable } 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'
7fed6375 31import { UserRole } from '@shared/models'
4a8d113b 32import { RegisterServerAuthExternalOptions } from '@shared/models/plugins/register-server-auth.model'
dae86118
C
33
34declare module 'express' {
faa9d434
C
35 interface Request {
36 query: any
37 }
38
dae86118 39 interface Response {
453e83ea 40
dae86118 41 locals: {
7fed6375
C
42 bypassLogin?: {
43 bypass: boolean
44 pluginName: string
e1c55031 45 authName?: string
7fed6375
C
46 user: {
47 username: string
48 email: string
49 displayName: string
50 role: UserRole
51 }
52 }
53
e307e4fc
C
54 refreshTokenAuthName?: string
55
e1c55031
C
56 explicitLogout: boolean
57
453e83ea 58 videoAll?: MVideoFullLight
7eba5e1f 59 onlyImmutableVideo?: MVideoImmutable
453e83ea
C
60 onlyVideo?: MVideoThumbnail
61 onlyVideoWithRights?: MVideoWithRights
62 videoId?: MVideoIdThumbnail
63
64 videoShare?: MVideoShareActor
65
66 videoFile?: MVideoFile
67
68 videoImport?: MVideoImportDefault
69
70 videoBlacklist?: MVideoBlacklist
71
72 videoCaption?: MVideoCaptionVideo
73
74 videoAbuse?: MVideoAbuse
dae86118 75
453e83ea 76 videoStreamingPlaylist?: MStreamingPlaylist
dae86118 77
0283eaac 78 videoChannel?: MChannelAccountDefault
dae86118 79
453e83ea
C
80 videoPlaylistFull?: MVideoPlaylistFull
81 videoPlaylistSummary?: MVideoPlaylistFullSummary
dae86118 82
453e83ea 83 videoPlaylistElement?: MVideoPlaylistElement
b5fecbf4 84 videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
dae86118 85
453e83ea 86 accountVideoRate?: MAccountVideoRateAccountVideo
dae86118 87
453e83ea
C
88 videoCommentFull?: MCommentOwnerVideoReply
89 videoCommentThread?: MComment
dae86118 90
453e83ea
C
91 follow?: MActorFollowActorsDefault
92 subscription?: MActorFollowActorsDefaultSubscription
dae86118 93
453e83ea
C
94 nextOwner?: MAccountDefault
95 videoChangeOwnership?: MVideoChangeOwnershipFull
dae86118 96
453e83ea 97 account?: MAccountDefault
dae86118 98
0374b6b5 99 actorUrl?: MActorUrl
453e83ea 100 actorFull?: MActorFull
dae86118 101
453e83ea 102 user?: MUserDefault
dae86118 103
453e83ea 104 server?: MServer
dae86118 105
453e83ea 106 videoRedundancy?: MVideoRedundancyVideo
dae86118 107
453e83ea
C
108 accountBlock?: MAccountBlocklist
109 serverBlock?: MServerBlocklist
dae86118
C
110
111 oauth?: {
453e83ea 112 token: MOAuthTokenUser
dae86118
C
113 }
114
115 signature?: {
453e83ea 116 actor: MActorAccountChannelId
dae86118
C
117 }
118
119 authenticated?: boolean
345da516
C
120
121 registeredPlugin?: RegisteredPlugin
ad91e700 122
4a8d113b
C
123 externalAuth?: RegisterServerAuthExternalOptions
124
453e83ea 125 plugin?: MPlugin
dae86118
C
126 }
127 }
128}