X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypes%2Fexpress.d.ts;h=510b9f94ea27d3c6ec0f6c0451254a54465378d7;hb=0c302acb3c358b4d4d8dee45aed1de1108ea37ea;hp=99244d2a04c5c63326a087e4f70f224216419ecf;hpb=9972ace3a3bc65865fb3aaaa865a400386e49252;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/types/express.d.ts b/server/types/express.d.ts index 99244d2a0..510b9f94e 100644 --- a/server/types/express.d.ts +++ b/server/types/express.d.ts @@ -1,5 +1,5 @@ - import { OutgoingHttpHeaders } from 'http' +import { Writable } from 'stream' import { RegisterServerAuthExternalOptions } from '@server/types' import { MAbuseMessage, @@ -9,6 +9,7 @@ import { MActorUrl, MChannelBannerAccountDefault, MChannelSyncChannel, + MRegistration, MStreamingPlaylist, MUserAccountUrl, MVideoChangeOwnershipFull, @@ -16,7 +17,7 @@ import { MVideoFormattableDetails, MVideoId, MVideoImmutable, - MVideoLive, + MVideoLiveFormattable, MVideoPlaylistFull, MVideoPlaylistFullSummary } from '@server/types/models' @@ -43,7 +44,7 @@ import { MVideoShareActor, MVideoThumbnail } from './models' -import { Writable } from 'stream' +import { MRunner, MRunnerJobRunner, MRunnerRegistrationToken } from './models/runners' import { MVideoSource } from './models/video/video-source' declare module 'express' { @@ -102,11 +103,15 @@ declare module 'express' { instance?: string data?: PeerTubeProblemDocumentData + + tags?: string[] }) => void locals: { requestStart: number + apicacheGroups: string[] + apicache: { content: string | Buffer write: Writable['write'] @@ -124,7 +129,7 @@ declare module 'express' { onlyVideo?: MVideoThumbnail videoId?: MVideoId - videoLive?: MVideoLive + videoLive?: MVideoLiveFormattable videoLiveSession?: MVideoLiveSession videoShare?: MVideoShareActor @@ -172,6 +177,7 @@ declare module 'express' { actorFull?: MActorFull user?: MUserDefault + userRegistration?: MRegistration server?: MServer @@ -202,6 +208,9 @@ declare module 'express' { localViewerFull?: MLocalVideoViewerWithWatchSections + runner?: MRunner + runnerRegistrationToken?: MRunnerRegistrationToken + runnerJob?: MRunnerJobRunner } } }