diff options
Diffstat (limited to 'server/typings/express')
-rw-r--r-- | server/typings/express/index.d.ts | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/server/typings/express/index.d.ts b/server/typings/express/index.d.ts index 66acfb3f5..cf3e7ae34 100644 --- a/server/typings/express/index.d.ts +++ b/server/typings/express/index.d.ts | |||
@@ -3,7 +3,9 @@ import { | |||
3 | MAbuseMessage, | 3 | MAbuseMessage, |
4 | MAbuseReporter, | 4 | MAbuseReporter, |
5 | MAccountBlocklist, | 5 | MAccountBlocklist, |
6 | MActorFollowActorsDefault, | ||
6 | MActorUrl, | 7 | MActorUrl, |
8 | MChannelBannerAccountDefault, | ||
7 | MStreamingPlaylist, | 9 | MStreamingPlaylist, |
8 | MVideoChangeOwnershipFull, | 10 | MVideoChangeOwnershipFull, |
9 | MVideoFile, | 11 | MVideoFile, |
@@ -17,15 +19,12 @@ import { MPlugin, MServer, MServerBlocklist } from '@server/types/models/server' | |||
17 | import { MVideoImportDefault } from '@server/types/models/video/video-import' | 19 | import { MVideoImportDefault } from '@server/types/models/video/video-import' |
18 | import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/types/models/video/video-playlist-element' | 20 | import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/types/models/video/video-playlist-element' |
19 | import { MAccountVideoRateAccountVideo } from '@server/types/models/video/video-rate' | 21 | import { MAccountVideoRateAccountVideo } from '@server/types/models/video/video-rate' |
20 | import { UserRole } from '@shared/models' | ||
21 | import { RegisteredPlugin } from '../../lib/plugins/plugin-manager' | 22 | import { RegisteredPlugin } from '../../lib/plugins/plugin-manager' |
22 | import { | 23 | import { |
23 | MAccountDefault, | 24 | MAccountDefault, |
24 | MActorAccountChannelId, | 25 | MActorAccountChannelId, |
25 | MActorFollowActorsDefault, | ||
26 | MActorFollowActorsDefaultSubscription, | 26 | MActorFollowActorsDefaultSubscription, |
27 | MActorFull, | 27 | MActorFull, |
28 | MChannelAccountDefault, | ||
29 | MComment, | 28 | MComment, |
30 | MCommentOwnerVideoReply, | 29 | MCommentOwnerVideoReply, |
31 | MUserDefault, | 30 | MUserDefault, |
@@ -49,22 +48,6 @@ declare module 'express' { | |||
49 | } | 48 | } |
50 | 49 | ||
51 | interface PeerTubeLocals { | 50 | interface PeerTubeLocals { |
52 | bypassLogin?: { | ||
53 | bypass: boolean | ||
54 | pluginName: string | ||
55 | authName?: string | ||
56 | user: { | ||
57 | username: string | ||
58 | email: string | ||
59 | displayName: string | ||
60 | role: UserRole | ||
61 | } | ||
62 | } | ||
63 | |||
64 | refreshTokenAuthName?: string | ||
65 | |||
66 | explicitLogout?: boolean | ||
67 | |||
68 | videoAll?: MVideoFullLight | 51 | videoAll?: MVideoFullLight |
69 | onlyImmutableVideo?: MVideoImmutable | 52 | onlyImmutableVideo?: MVideoImmutable |
70 | onlyVideo?: MVideoThumbnail | 53 | onlyVideo?: MVideoThumbnail |
@@ -88,7 +71,7 @@ interface PeerTubeLocals { | |||
88 | 71 | ||
89 | videoStreamingPlaylist?: MStreamingPlaylist | 72 | videoStreamingPlaylist?: MStreamingPlaylist |
90 | 73 | ||
91 | videoChannel?: MChannelAccountDefault | 74 | videoChannel?: MChannelBannerAccountDefault |
92 | 75 | ||
93 | videoPlaylistFull?: MVideoPlaylistFull | 76 | videoPlaylistFull?: MVideoPlaylistFull |
94 | videoPlaylistSummary?: MVideoPlaylistFullSummary | 77 | videoPlaylistSummary?: MVideoPlaylistFullSummary |