]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/typings/express/index.d.ts
Use 3 tables to represent abuses
[github/Chocobozzz/PeerTube.git] / server / typings / express / index.d.ts
CommitLineData
67ed6552
C
1import { RegisterServerAuthExternalOptions } from '@server/types'
2import {
d95d1559 3 MAbuse,
67ed6552
C
4 MAccountBlocklist,
5 MActorUrl,
6 MStreamingPlaylist,
7 MVideoChangeOwnershipFull,
8 MVideoFile,
9 MVideoImmutable,
10 MVideoPlaylistFull,
11 MVideoPlaylistFullSummary
12} from '@server/types/models'
13import { MOAuthTokenUser } from '@server/types/models/oauth/oauth-token'
14import { MPlugin, MServer, MServerBlocklist } from '@server/types/models/server'
15import { MVideoImportDefault } from '@server/types/models/video/video-import'
16import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/types/models/video/video-playlist-element'
17import { MAccountVideoRateAccountVideo } from '@server/types/models/video/video-rate'
18import { UserRole } from '@shared/models'
c24aac6b 19import { RegisteredPlugin } from '../../lib/plugins/plugin-manager'
453e83ea
C
20import {
21 MAccountDefault,
22 MActorAccountChannelId,
23 MActorFollowActorsDefault,
24 MActorFollowActorsDefaultSubscription,
25 MActorFull,
0283eaac 26 MChannelAccountDefault,
453e83ea
C
27 MComment,
28 MCommentOwnerVideoReply,
29 MUserDefault,
453e83ea
C
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
d95d1559 80 abuse?: MAbuse
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}