-
import { OutgoingHttpHeaders } from 'http'
+import { Writable } from 'stream'
import { RegisterServerAuthExternalOptions } from '@server/types'
import {
MAbuseMessage,
MActorFollowActorsDefault,
MActorUrl,
MChannelBannerAccountDefault,
+ MChannelSyncChannel,
+ MRegistration,
MStreamingPlaylist,
+ MUserAccountUrl,
MVideoChangeOwnershipFull,
MVideoFile,
MVideoFormattableDetails,
MVideoId,
MVideoImmutable,
- MVideoLive,
+ MVideoLiveFormattable,
MVideoPlaylistFull,
MVideoPlaylistFullSummary
} from '@server/types/models'
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' {
export interface Request {
} | UploadFileForCheck[]
// Upload file with a duration added by our middleware
- export type VideoUploadFile = Pick<Express.Multer.File, 'path' | 'filename' | 'size'> & {
+ export type VideoUploadFile = Pick<Express.Multer.File, 'path' | 'filename' | 'size', 'originalname'> & {
duration: number
}
duration: number
path: string
filename: string
+ originalname: string
}
// Extends Response with added functions and potential variables passed by middlewares
title?: string
status?: number
- type?: ServerErrorCode
+ type?: ServerErrorCode | string
instance?: string
data?: PeerTubeProblemDocumentData
+
+ tags?: string[]
}) => void
locals: {
+ requestStart: number
+
+ apicacheGroups: string[]
+
apicache: {
content: string | Buffer
write: Writable['write']
onlyVideo?: MVideoThumbnail
videoId?: MVideoId
- videoLive?: MVideoLive
+ videoLive?: MVideoLiveFormattable
+ videoLiveSession?: MVideoLiveSession
videoShare?: MVideoShareActor
+ videoSource?: MVideoSource
+
videoFile?: MVideoFile
videoFileResumable?: EnhancedUploadXFile
videoStreamingPlaylist?: MStreamingPlaylist
videoChannel?: MChannelBannerAccountDefault
+ videoChannelSync?: MChannelSyncChannel
videoPlaylistFull?: MVideoPlaylistFull
videoPlaylistSummary?: MVideoPlaylistFullSummary
actorFull?: MActorFull
user?: MUserDefault
+ userRegistration?: MRegistration
server?: MServer
actor: MActorAccountChannelId
}
+ videoFileToken?: {
+ user: MUserAccountUrl
+ }
+
authenticated?: boolean
registeredPlugin?: RegisteredPlugin
plugin?: MPlugin
localViewerFull?: MLocalVideoViewerWithWatchSections
+
+ runner?: MRunner
+ runnerRegistrationToken?: MRunnerRegistrationToken
+ runnerJob?: MRunnerJobRunner
}
}
}