From fbd51e69f2bb801d1b78e79d17bbf18089144358 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 3 Mar 2021 15:22:38 +0100 Subject: Upgrade server dependencies --- server/typings/express/index.d.ts | 126 +++++++++++++++++++------------------- 1 file changed, 63 insertions(+), 63 deletions(-) (limited to 'server/typings/express') diff --git a/server/typings/express/index.d.ts b/server/typings/express/index.d.ts index a83619a0e..66acfb3f5 100644 --- a/server/typings/express/index.d.ts +++ b/server/typings/express/index.d.ts @@ -8,9 +8,9 @@ import { MVideoChangeOwnershipFull, MVideoFile, MVideoImmutable, + MVideoLive, MVideoPlaylistFull, - MVideoPlaylistFullSummary, - MVideoLive + MVideoPlaylistFullSummary } from '@server/types/models' import { MOAuthTokenUser } from '@server/types/models/oauth/oauth-token' import { MPlugin, MServer, MServerBlocklist } from '@server/types/models/server' @@ -43,97 +43,97 @@ declare module 'express' { export interface Request { query: any } - interface Response { + locals: PeerTubeLocals + } +} - locals: { - bypassLogin?: { - bypass: boolean - pluginName: string - authName?: string - user: { - username: string - email: string - displayName: string - role: UserRole - } - } +interface PeerTubeLocals { + bypassLogin?: { + bypass: boolean + pluginName: string + authName?: string + user: { + username: string + email: string + displayName: string + role: UserRole + } + } - refreshTokenAuthName?: string + refreshTokenAuthName?: string - explicitLogout: boolean + explicitLogout?: boolean - videoAll?: MVideoFullLight - onlyImmutableVideo?: MVideoImmutable - onlyVideo?: MVideoThumbnail - onlyVideoWithRights?: MVideoWithRights - videoId?: MVideoIdThumbnail + videoAll?: MVideoFullLight + onlyImmutableVideo?: MVideoImmutable + onlyVideo?: MVideoThumbnail + onlyVideoWithRights?: MVideoWithRights + videoId?: MVideoIdThumbnail - videoLive?: MVideoLive + videoLive?: MVideoLive - videoShare?: MVideoShareActor + videoShare?: MVideoShareActor - videoFile?: MVideoFile + videoFile?: MVideoFile - videoImport?: MVideoImportDefault + videoImport?: MVideoImportDefault - videoBlacklist?: MVideoBlacklist + videoBlacklist?: MVideoBlacklist - videoCaption?: MVideoCaptionVideo + videoCaption?: MVideoCaptionVideo - abuse?: MAbuseReporter - abuseMessage?: MAbuseMessage + abuse?: MAbuseReporter + abuseMessage?: MAbuseMessage - videoStreamingPlaylist?: MStreamingPlaylist + videoStreamingPlaylist?: MStreamingPlaylist - videoChannel?: MChannelAccountDefault + videoChannel?: MChannelAccountDefault - videoPlaylistFull?: MVideoPlaylistFull - videoPlaylistSummary?: MVideoPlaylistFullSummary + videoPlaylistFull?: MVideoPlaylistFull + videoPlaylistSummary?: MVideoPlaylistFullSummary - videoPlaylistElement?: MVideoPlaylistElement - videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy + videoPlaylistElement?: MVideoPlaylistElement + videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy - accountVideoRate?: MAccountVideoRateAccountVideo + accountVideoRate?: MAccountVideoRateAccountVideo - videoCommentFull?: MCommentOwnerVideoReply - videoCommentThread?: MComment + videoCommentFull?: MCommentOwnerVideoReply + videoCommentThread?: MComment - follow?: MActorFollowActorsDefault - subscription?: MActorFollowActorsDefaultSubscription + follow?: MActorFollowActorsDefault + subscription?: MActorFollowActorsDefaultSubscription - nextOwner?: MAccountDefault - videoChangeOwnership?: MVideoChangeOwnershipFull + nextOwner?: MAccountDefault + videoChangeOwnership?: MVideoChangeOwnershipFull - account?: MAccountDefault + account?: MAccountDefault - actorUrl?: MActorUrl - actorFull?: MActorFull + actorUrl?: MActorUrl + actorFull?: MActorFull - user?: MUserDefault + user?: MUserDefault - server?: MServer + server?: MServer - videoRedundancy?: MVideoRedundancyVideo + videoRedundancy?: MVideoRedundancyVideo - accountBlock?: MAccountBlocklist - serverBlock?: MServerBlocklist + accountBlock?: MAccountBlocklist + serverBlock?: MServerBlocklist - oauth?: { - token: MOAuthTokenUser - } + oauth?: { + token: MOAuthTokenUser + } - signature?: { - actor: MActorAccountChannelId - } + signature?: { + actor: MActorAccountChannelId + } - authenticated?: boolean + authenticated?: boolean - registeredPlugin?: RegisteredPlugin + registeredPlugin?: RegisteredPlugin - externalAuth?: RegisterServerAuthExternalOptions + externalAuth?: RegisterServerAuthExternalOptions - plugin?: MPlugin - } - } + plugin?: MPlugin } -- cgit v1.2.3