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