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