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