X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypes%2Fexpress.d.ts;h=a8aeabb3a067ac7c9b88465fe2d5e760cd0f3962;hb=4cf800a350972a078c074da6b31da2b98ab4b007;hp=8f8c6510250535c862027541ec39898759dedccd;hpb=630d0a1bf5897fff203cb07e426223f55dcc882d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/types/express.d.ts b/server/types/express.d.ts index 8f8c65102..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, @@ -8,13 +8,16 @@ import { MActorFollowActorsDefault, MActorUrl, MChannelBannerAccountDefault, + MChannelSyncChannel, + MRegistration, MStreamingPlaylist, + MUserAccountUrl, MVideoChangeOwnershipFull, MVideoFile, MVideoFormattableDetails, MVideoId, MVideoImmutable, - MVideoLive, + MVideoLiveFormattable, MVideoPlaylistFull, MVideoPlaylistFullSummary } from '@server/types/models' @@ -41,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' { @@ -96,10 +99,12 @@ declare module 'express' { title?: string status?: number - type?: ServerErrorCode + type?: ServerErrorCode | string instance?: string data?: PeerTubeProblemDocumentData + + tags?: string[] }) => void locals: { @@ -122,7 +127,7 @@ declare module 'express' { onlyVideo?: MVideoThumbnail videoId?: MVideoId - videoLive?: MVideoLive + videoLive?: MVideoLiveFormattable videoLiveSession?: MVideoLiveSession videoShare?: MVideoShareActor @@ -145,6 +150,7 @@ declare module 'express' { videoStreamingPlaylist?: MStreamingPlaylist videoChannel?: MChannelBannerAccountDefault + videoChannelSync?: MChannelSyncChannel videoPlaylistFull?: MVideoPlaylistFull videoPlaylistSummary?: MVideoPlaylistFullSummary @@ -169,6 +175,7 @@ declare module 'express' { actorFull?: MActorFull user?: MUserDefault + userRegistration?: MRegistration server?: MServer @@ -185,6 +192,10 @@ declare module 'express' { actor: MActorAccountChannelId } + videoFileToken?: { + user: MUserAccountUrl + } + authenticated?: boolean registeredPlugin?: RegisteredPlugin @@ -194,6 +205,10 @@ declare module 'express' { plugin?: MPlugin localViewerFull?: MLocalVideoViewerWithWatchSections + + runner?: MRunner + runnerRegistrationToken?: MRunnerRegistrationToken + runnerJob?: MRunnerJobRunner } } }