X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypes%2Fexpress.d.ts;h=a8aeabb3a067ac7c9b88465fe2d5e760cd0f3962;hb=4cf800a350972a078c074da6b31da2b98ab4b007;hp=27d60da72663464481f9770d19460ad4c5543cfc;hpb=2a491182e483b97afb1b65c908b23cb48d591807;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/types/express.d.ts b/server/types/express.d.ts index 27d60da72..a8aeabb3a 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,13 +9,15 @@ import { MActorUrl, MChannelBannerAccountDefault, MChannelSyncChannel, + MRegistration, MStreamingPlaylist, + MUserAccountUrl, MVideoChangeOwnershipFull, MVideoFile, 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' { @@ -97,10 +99,12 @@ declare module 'express' { title?: string status?: number - type?: ServerErrorCode + type?: ServerErrorCode | string instance?: string data?: PeerTubeProblemDocumentData + + tags?: string[] }) => void locals: { @@ -123,7 +127,7 @@ declare module 'express' { onlyVideo?: MVideoThumbnail videoId?: MVideoId - videoLive?: MVideoLive + videoLive?: MVideoLiveFormattable videoLiveSession?: MVideoLiveSession videoShare?: MVideoShareActor @@ -171,6 +175,7 @@ declare module 'express' { actorFull?: MActorFull user?: MUserDefault + userRegistration?: MRegistration server?: MServer @@ -187,6 +192,10 @@ declare module 'express' { actor: MActorAccountChannelId } + videoFileToken?: { + user: MUserAccountUrl + } + authenticated?: boolean registeredPlugin?: RegisteredPlugin @@ -197,6 +206,9 @@ declare module 'express' { localViewerFull?: MLocalVideoViewerWithWatchSections + runner?: MRunner + runnerRegistrationToken?: MRunnerRegistrationToken + runnerJob?: MRunnerJobRunner } } }