2020-06-23 08:10:17 -04:00
|
|
|
import { RegisterServerAuthExternalOptions } from '@server/types'
|
|
|
|
import {
|
2020-07-24 09:05:51 -04:00
|
|
|
MAbuseMessage,
|
2020-07-28 05:12:16 -04:00
|
|
|
MAbuseReporter,
|
2020-06-23 08:10:17 -04:00
|
|
|
MAccountBlocklist,
|
2021-04-06 11:01:35 -04:00
|
|
|
MActorFollowActorsDefault,
|
2020-06-23 08:10:17 -04:00
|
|
|
MActorUrl,
|
2021-04-06 11:01:35 -04:00
|
|
|
MChannelBannerAccountDefault,
|
2020-06-23 08:10:17 -04:00
|
|
|
MStreamingPlaylist,
|
|
|
|
MVideoChangeOwnershipFull,
|
|
|
|
MVideoFile,
|
|
|
|
MVideoImmutable,
|
2021-03-03 09:22:38 -05:00
|
|
|
MVideoLive,
|
2020-06-23 08:10:17 -04:00
|
|
|
MVideoPlaylistFull,
|
2021-03-03 09:22:38 -05:00
|
|
|
MVideoPlaylistFullSummary
|
2020-06-23 08:10:17 -04:00
|
|
|
} from '@server/types/models'
|
|
|
|
import { MOAuthTokenUser } from '@server/types/models/oauth/oauth-token'
|
|
|
|
import { MPlugin, MServer, MServerBlocklist } from '@server/types/models/server'
|
|
|
|
import { MVideoImportDefault } from '@server/types/models/video/video-import'
|
|
|
|
import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/types/models/video/video-playlist-element'
|
|
|
|
import { MAccountVideoRateAccountVideo } from '@server/types/models/video/video-rate'
|
2020-06-18 07:38:20 -04:00
|
|
|
import { RegisteredPlugin } from '../../lib/plugins/plugin-manager'
|
2019-08-15 05:53:26 -04:00
|
|
|
import {
|
|
|
|
MAccountDefault,
|
|
|
|
MActorAccountChannelId,
|
|
|
|
MActorFollowActorsDefaultSubscription,
|
|
|
|
MActorFull,
|
|
|
|
MComment,
|
|
|
|
MCommentOwnerVideoReply,
|
|
|
|
MUserDefault,
|
|
|
|
MVideoBlacklist,
|
|
|
|
MVideoCaptionVideo,
|
|
|
|
MVideoFullLight,
|
|
|
|
MVideoIdThumbnail,
|
|
|
|
MVideoRedundancyVideo,
|
|
|
|
MVideoShareActor,
|
|
|
|
MVideoThumbnail,
|
|
|
|
MVideoWithRights
|
2020-06-18 07:38:20 -04:00
|
|
|
} from '../../types/models'
|
2019-03-19 05:35:15 -04:00
|
|
|
|
|
|
|
declare module 'express' {
|
2020-06-18 04:45:25 -04:00
|
|
|
export interface Request {
|
2020-06-17 04:55:40 -04:00
|
|
|
query: any
|
|
|
|
}
|
2019-03-19 05:35:15 -04:00
|
|
|
interface Response {
|
2021-03-03 09:22:38 -05:00
|
|
|
locals: PeerTubeLocals
|
|
|
|
}
|
|
|
|
}
|
2019-08-15 05:53:26 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
interface PeerTubeLocals {
|
|
|
|
videoAll?: MVideoFullLight
|
|
|
|
onlyImmutableVideo?: MVideoImmutable
|
|
|
|
onlyVideo?: MVideoThumbnail
|
|
|
|
onlyVideoWithRights?: MVideoWithRights
|
|
|
|
videoId?: MVideoIdThumbnail
|
2019-08-15 05:53:26 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
videoLive?: MVideoLive
|
2020-09-17 03:20:52 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
videoShare?: MVideoShareActor
|
2019-08-15 05:53:26 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
videoFile?: MVideoFile
|
2019-08-15 05:53:26 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
videoImport?: MVideoImportDefault
|
2019-08-15 05:53:26 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
videoBlacklist?: MVideoBlacklist
|
2019-08-15 05:53:26 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
videoCaption?: MVideoCaptionVideo
|
2019-08-15 05:53:26 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
abuse?: MAbuseReporter
|
|
|
|
abuseMessage?: MAbuseMessage
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
videoStreamingPlaylist?: MStreamingPlaylist
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-04-06 11:01:35 -04:00
|
|
|
videoChannel?: MChannelBannerAccountDefault
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
videoPlaylistFull?: MVideoPlaylistFull
|
|
|
|
videoPlaylistSummary?: MVideoPlaylistFullSummary
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
videoPlaylistElement?: MVideoPlaylistElement
|
|
|
|
videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
accountVideoRate?: MAccountVideoRateAccountVideo
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
videoCommentFull?: MCommentOwnerVideoReply
|
|
|
|
videoCommentThread?: MComment
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
follow?: MActorFollowActorsDefault
|
|
|
|
subscription?: MActorFollowActorsDefaultSubscription
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
nextOwner?: MAccountDefault
|
|
|
|
videoChangeOwnership?: MVideoChangeOwnershipFull
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
account?: MAccountDefault
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
actorUrl?: MActorUrl
|
|
|
|
actorFull?: MActorFull
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
user?: MUserDefault
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
server?: MServer
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
videoRedundancy?: MVideoRedundancyVideo
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
accountBlock?: MAccountBlocklist
|
|
|
|
serverBlock?: MServerBlocklist
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
oauth?: {
|
|
|
|
token: MOAuthTokenUser
|
|
|
|
}
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
signature?: {
|
|
|
|
actor: MActorAccountChannelId
|
|
|
|
}
|
2019-03-19 05:35:15 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
authenticated?: boolean
|
2019-07-05 07:54:32 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
registeredPlugin?: RegisteredPlugin
|
2019-07-10 10:59:53 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
externalAuth?: RegisterServerAuthExternalOptions
|
2020-04-28 08:49:03 -04:00
|
|
|
|
2021-03-03 09:22:38 -05:00
|
|
|
plugin?: MPlugin
|
2019-03-19 05:35:15 -04:00
|
|
|
}
|