X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypes%2Fexpress.d.ts;h=510b9f94ea27d3c6ec0f6c0451254a54465378d7;hb=cb0eda5602a21d1626a7face32de6153ed07b5f9;hp=6fea4dac24bffc8a20d3fb6a7167d375c87ef54d;hpb=0a8a79552cf59c800011c9f63eaa8658230acddc;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/types/express.d.ts b/server/types/express.d.ts index 6fea4dac2..510b9f94e 100644 --- a/server/types/express.d.ts +++ b/server/types/express.d.ts @@ -1,4 +1,5 @@ import { OutgoingHttpHeaders } from 'http' +import { Writable } from 'stream' import { RegisterServerAuthExternalOptions } from '@server/types' import { MAbuseMessage, @@ -8,6 +9,7 @@ import { MActorUrl, MChannelBannerAccountDefault, MChannelSyncChannel, + MRegistration, MStreamingPlaylist, MUserAccountUrl, MVideoChangeOwnershipFull, @@ -15,7 +17,7 @@ import { MVideoFormattableDetails, MVideoId, MVideoImmutable, - MVideoLive, + MVideoLiveFormattable, MVideoPlaylistFull, MVideoPlaylistFullSummary } from '@server/types/models' @@ -42,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' { @@ -101,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'] @@ -123,7 +129,7 @@ declare module 'express' { onlyVideo?: MVideoThumbnail videoId?: MVideoId - videoLive?: MVideoLive + videoLive?: MVideoLiveFormattable videoLiveSession?: MVideoLiveSession videoShare?: MVideoShareActor @@ -171,6 +177,7 @@ declare module 'express' { actorFull?: MActorFull user?: MUserDefault + userRegistration?: MRegistration server?: MServer @@ -201,6 +208,9 @@ declare module 'express' { localViewerFull?: MLocalVideoViewerWithWatchSections + runner?: MRunner + runnerRegistrationToken?: MRunnerRegistrationToken + runnerJob?: MRunnerJobRunner } } }