2019-07-05 13:54:32 +02:00
|
|
|
import { RegisteredPlugin } from '../lib/plugins/plugin-manager'
|
2019-08-15 11:53:26 +02:00
|
|
|
import {
|
|
|
|
MAccountDefault,
|
|
|
|
MActorAccountChannelId,
|
|
|
|
MActorFollowActorsDefault,
|
|
|
|
MActorFollowActorsDefaultSubscription,
|
|
|
|
MActorFull,
|
2019-08-20 13:52:49 +02:00
|
|
|
MChannelAccountDefault,
|
2019-08-15 11:53:26 +02:00
|
|
|
MComment,
|
|
|
|
MCommentOwnerVideoReply,
|
|
|
|
MUserDefault,
|
|
|
|
MVideoAbuse,
|
|
|
|
MVideoBlacklist,
|
|
|
|
MVideoCaptionVideo,
|
|
|
|
MVideoFullLight,
|
|
|
|
MVideoIdThumbnail,
|
|
|
|
MVideoRedundancyVideo,
|
|
|
|
MVideoShareActor,
|
|
|
|
MVideoThumbnail,
|
|
|
|
MVideoWithRights
|
|
|
|
} from './models'
|
|
|
|
import { MVideoPlaylistFull, MVideoPlaylistFullSummary } from './models/video/video-playlist'
|
|
|
|
import { MVideoImportDefault } from '@server/typings/models/video/video-import'
|
2020-02-04 15:00:47 +01:00
|
|
|
import { MAccountBlocklist, MActorUrl, MStreamingPlaylist, MVideoFile, MVideoImmutable } from '@server/typings/models'
|
2019-08-21 14:31:57 +02:00
|
|
|
import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/typings/models/video/video-playlist-element'
|
2019-08-15 11:53:26 +02:00
|
|
|
import { MAccountVideoRateAccountVideo } from '@server/typings/models/video/video-rate'
|
|
|
|
import { MVideoChangeOwnershipFull } from './models/video/video-change-ownership'
|
|
|
|
import { MPlugin, MServer } from '@server/typings/models/server'
|
|
|
|
import { MServerBlocklist } from './models/server/server-blocklist'
|
|
|
|
import { MOAuthTokenUser } from '@server/typings/models/oauth/oauth-token'
|
2020-04-22 16:07:04 +02:00
|
|
|
import { UserRole } from '@shared/models'
|
2020-04-28 14:49:03 +02:00
|
|
|
import { RegisterServerAuthExternalOptions } from '@shared/models/plugins/register-server-auth.model'
|
2019-03-19 10:35:15 +01:00
|
|
|
|
|
|
|
declare module 'express' {
|
2020-06-17 10:55:40 +02:00
|
|
|
interface Request {
|
|
|
|
query: any
|
|
|
|
}
|
|
|
|
|
2019-03-19 10:35:15 +01:00
|
|
|
interface Response {
|
2019-08-15 11:53:26 +02:00
|
|
|
|
2019-03-19 10:35:15 +01:00
|
|
|
locals: {
|
2020-04-22 16:07:04 +02:00
|
|
|
bypassLogin?: {
|
|
|
|
bypass: boolean
|
|
|
|
pluginName: string
|
2020-04-23 11:36:50 +02:00
|
|
|
authName?: string
|
2020-04-22 16:07:04 +02:00
|
|
|
user: {
|
|
|
|
username: string
|
|
|
|
email: string
|
|
|
|
displayName: string
|
|
|
|
role: UserRole
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-24 11:33:01 +02:00
|
|
|
refreshTokenAuthName?: string
|
|
|
|
|
2020-04-23 11:36:50 +02:00
|
|
|
explicitLogout: boolean
|
|
|
|
|
2019-08-15 11:53:26 +02:00
|
|
|
videoAll?: MVideoFullLight
|
2020-02-04 15:00:47 +01:00
|
|
|
onlyImmutableVideo?: MVideoImmutable
|
2019-08-15 11:53:26 +02:00
|
|
|
onlyVideo?: MVideoThumbnail
|
|
|
|
onlyVideoWithRights?: MVideoWithRights
|
|
|
|
videoId?: MVideoIdThumbnail
|
|
|
|
|
|
|
|
videoShare?: MVideoShareActor
|
|
|
|
|
|
|
|
videoFile?: MVideoFile
|
|
|
|
|
|
|
|
videoImport?: MVideoImportDefault
|
|
|
|
|
|
|
|
videoBlacklist?: MVideoBlacklist
|
|
|
|
|
|
|
|
videoCaption?: MVideoCaptionVideo
|
|
|
|
|
|
|
|
videoAbuse?: MVideoAbuse
|
2019-03-19 10:35:15 +01:00
|
|
|
|
2019-08-15 11:53:26 +02:00
|
|
|
videoStreamingPlaylist?: MStreamingPlaylist
|
2019-03-19 10:35:15 +01:00
|
|
|
|
2019-08-20 13:52:49 +02:00
|
|
|
videoChannel?: MChannelAccountDefault
|
2019-03-19 10:35:15 +01:00
|
|
|
|
2019-08-15 11:53:26 +02:00
|
|
|
videoPlaylistFull?: MVideoPlaylistFull
|
|
|
|
videoPlaylistSummary?: MVideoPlaylistFullSummary
|
2019-03-19 10:35:15 +01:00
|
|
|
|
2019-08-15 11:53:26 +02:00
|
|
|
videoPlaylistElement?: MVideoPlaylistElement
|
2019-08-21 14:31:57 +02:00
|
|
|
videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
|
2019-03-19 10:35:15 +01:00
|
|
|
|
2019-08-15 11:53:26 +02:00
|
|
|
accountVideoRate?: MAccountVideoRateAccountVideo
|
2019-03-19 10:35:15 +01:00
|
|
|
|
2019-08-15 11:53:26 +02:00
|
|
|
videoCommentFull?: MCommentOwnerVideoReply
|
|
|
|
videoCommentThread?: MComment
|
2019-03-19 10:35:15 +01:00
|
|
|
|
2019-08-15 11:53:26 +02:00
|
|
|
follow?: MActorFollowActorsDefault
|
|
|
|
subscription?: MActorFollowActorsDefaultSubscription
|
2019-03-19 10:35:15 +01:00
|
|
|
|
2019-08-15 11:53:26 +02:00
|
|
|
nextOwner?: MAccountDefault
|
|
|
|
videoChangeOwnership?: MVideoChangeOwnershipFull
|
2019-03-19 10:35:15 +01:00
|
|
|
|
2019-08-15 11:53:26 +02:00
|
|
|
account?: MAccountDefault
|
2019-03-19 10:35:15 +01:00
|
|
|
|
2020-01-28 14:45:17 +01:00
|
|
|
actorUrl?: MActorUrl
|
2019-08-15 11:53:26 +02:00
|
|
|
actorFull?: MActorFull
|
2019-03-19 10:35:15 +01:00
|
|
|
|
2019-08-15 11:53:26 +02:00
|
|
|
user?: MUserDefault
|
2019-03-19 10:35:15 +01:00
|
|
|
|
2019-08-15 11:53:26 +02:00
|
|
|
server?: MServer
|
2019-03-19 10:35:15 +01:00
|
|
|
|
2019-08-15 11:53:26 +02:00
|
|
|
videoRedundancy?: MVideoRedundancyVideo
|
2019-03-19 10:35:15 +01:00
|
|
|
|
2019-08-15 11:53:26 +02:00
|
|
|
accountBlock?: MAccountBlocklist
|
|
|
|
serverBlock?: MServerBlocklist
|
2019-03-19 10:35:15 +01:00
|
|
|
|
|
|
|
oauth?: {
|
2019-08-15 11:53:26 +02:00
|
|
|
token: MOAuthTokenUser
|
2019-03-19 10:35:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
signature?: {
|
2019-08-15 11:53:26 +02:00
|
|
|
actor: MActorAccountChannelId
|
2019-03-19 10:35:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
authenticated?: boolean
|
2019-07-05 13:54:32 +02:00
|
|
|
|
|
|
|
registeredPlugin?: RegisteredPlugin
|
2019-07-10 16:59:53 +02:00
|
|
|
|
2020-04-28 14:49:03 +02:00
|
|
|
externalAuth?: RegisterServerAuthExternalOptions
|
|
|
|
|
2019-08-15 11:53:26 +02:00
|
|
|
plugin?: MPlugin
|
2019-03-19 10:35:15 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|