2020-06-23 07:10:17 -05:00
|
|
|
import { RegisterServerAuthExternalOptions } from '@server/types'
|
|
|
|
import {
|
2020-07-24 08:05:51 -05:00
|
|
|
MAbuseMessage,
|
2020-07-28 04:12:16 -05:00
|
|
|
MAbuseReporter,
|
2020-06-23 07:10:17 -05:00
|
|
|
MAccountBlocklist,
|
|
|
|
MActorUrl,
|
|
|
|
MStreamingPlaylist,
|
|
|
|
MVideoChangeOwnershipFull,
|
|
|
|
MVideoFile,
|
|
|
|
MVideoImmutable,
|
|
|
|
MVideoPlaylistFull,
|
2020-09-17 02:20:52 -05:00
|
|
|
MVideoPlaylistFullSummary,
|
|
|
|
MVideoLive
|
2020-06-23 07:10:17 -05: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'
|
|
|
|
import { UserRole } from '@shared/models'
|
2020-06-18 06:38:20 -05:00
|
|
|
import { RegisteredPlugin } from '../../lib/plugins/plugin-manager'
|
2019-08-15 04:53:26 -05:00
|
|
|
import {
|
|
|
|
MAccountDefault,
|
|
|
|
MActorAccountChannelId,
|
|
|
|
MActorFollowActorsDefault,
|
|
|
|
MActorFollowActorsDefaultSubscription,
|
|
|
|
MActorFull,
|
2019-08-20 06:52:49 -05:00
|
|
|
MChannelAccountDefault,
|
2019-08-15 04:53:26 -05:00
|
|
|
MComment,
|
|
|
|
MCommentOwnerVideoReply,
|
|
|
|
MUserDefault,
|
|
|
|
MVideoBlacklist,
|
|
|
|
MVideoCaptionVideo,
|
|
|
|
MVideoFullLight,
|
|
|
|
MVideoIdThumbnail,
|
|
|
|
MVideoRedundancyVideo,
|
|
|
|
MVideoShareActor,
|
|
|
|
MVideoThumbnail,
|
|
|
|
MVideoWithRights
|
2020-06-18 06:38:20 -05:00
|
|
|
} from '../../types/models'
|
2019-03-19 04:35:15 -05:00
|
|
|
|
|
|
|
declare module 'express' {
|
2020-06-18 03:45:25 -05:00
|
|
|
export interface Request {
|
2020-06-17 03:55:40 -05:00
|
|
|
query: any
|
|
|
|
}
|
|
|
|
|
2019-03-19 04:35:15 -05:00
|
|
|
interface Response {
|
2019-08-15 04:53:26 -05:00
|
|
|
|
2019-03-19 04:35:15 -05:00
|
|
|
locals: {
|
2020-04-22 09:07:04 -05:00
|
|
|
bypassLogin?: {
|
|
|
|
bypass: boolean
|
|
|
|
pluginName: string
|
2020-04-23 04:36:50 -05:00
|
|
|
authName?: string
|
2020-04-22 09:07:04 -05:00
|
|
|
user: {
|
|
|
|
username: string
|
|
|
|
email: string
|
|
|
|
displayName: string
|
|
|
|
role: UserRole
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-24 04:33:01 -05:00
|
|
|
refreshTokenAuthName?: string
|
|
|
|
|
2020-04-23 04:36:50 -05:00
|
|
|
explicitLogout: boolean
|
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
videoAll?: MVideoFullLight
|
2020-02-04 08:00:47 -06:00
|
|
|
onlyImmutableVideo?: MVideoImmutable
|
2019-08-15 04:53:26 -05:00
|
|
|
onlyVideo?: MVideoThumbnail
|
|
|
|
onlyVideoWithRights?: MVideoWithRights
|
|
|
|
videoId?: MVideoIdThumbnail
|
|
|
|
|
2020-09-17 02:20:52 -05:00
|
|
|
videoLive?: MVideoLive
|
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
videoShare?: MVideoShareActor
|
|
|
|
|
|
|
|
videoFile?: MVideoFile
|
|
|
|
|
|
|
|
videoImport?: MVideoImportDefault
|
|
|
|
|
|
|
|
videoBlacklist?: MVideoBlacklist
|
|
|
|
|
|
|
|
videoCaption?: MVideoCaptionVideo
|
|
|
|
|
2020-07-27 04:40:30 -05:00
|
|
|
abuse?: MAbuseReporter
|
2020-07-24 08:05:51 -05:00
|
|
|
abuseMessage?: MAbuseMessage
|
2019-03-19 04:35:15 -05:00
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
videoStreamingPlaylist?: MStreamingPlaylist
|
2019-03-19 04:35:15 -05:00
|
|
|
|
2019-08-20 06:52:49 -05:00
|
|
|
videoChannel?: MChannelAccountDefault
|
2019-03-19 04:35:15 -05:00
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
videoPlaylistFull?: MVideoPlaylistFull
|
|
|
|
videoPlaylistSummary?: MVideoPlaylistFullSummary
|
2019-03-19 04:35:15 -05:00
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
videoPlaylistElement?: MVideoPlaylistElement
|
2019-08-21 07:31:57 -05:00
|
|
|
videoPlaylistElementAP?: MVideoPlaylistElementVideoUrlPlaylistPrivacy
|
2019-03-19 04:35:15 -05:00
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
accountVideoRate?: MAccountVideoRateAccountVideo
|
2019-03-19 04:35:15 -05:00
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
videoCommentFull?: MCommentOwnerVideoReply
|
|
|
|
videoCommentThread?: MComment
|
2019-03-19 04:35:15 -05:00
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
follow?: MActorFollowActorsDefault
|
|
|
|
subscription?: MActorFollowActorsDefaultSubscription
|
2019-03-19 04:35:15 -05:00
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
nextOwner?: MAccountDefault
|
|
|
|
videoChangeOwnership?: MVideoChangeOwnershipFull
|
2019-03-19 04:35:15 -05:00
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
account?: MAccountDefault
|
2019-03-19 04:35:15 -05:00
|
|
|
|
2020-01-28 07:45:17 -06:00
|
|
|
actorUrl?: MActorUrl
|
2019-08-15 04:53:26 -05:00
|
|
|
actorFull?: MActorFull
|
2019-03-19 04:35:15 -05:00
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
user?: MUserDefault
|
2019-03-19 04:35:15 -05:00
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
server?: MServer
|
2019-03-19 04:35:15 -05:00
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
videoRedundancy?: MVideoRedundancyVideo
|
2019-03-19 04:35:15 -05:00
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
accountBlock?: MAccountBlocklist
|
|
|
|
serverBlock?: MServerBlocklist
|
2019-03-19 04:35:15 -05:00
|
|
|
|
|
|
|
oauth?: {
|
2019-08-15 04:53:26 -05:00
|
|
|
token: MOAuthTokenUser
|
2019-03-19 04:35:15 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
signature?: {
|
2019-08-15 04:53:26 -05:00
|
|
|
actor: MActorAccountChannelId
|
2019-03-19 04:35:15 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
authenticated?: boolean
|
2019-07-05 06:54:32 -05:00
|
|
|
|
|
|
|
registeredPlugin?: RegisteredPlugin
|
2019-07-10 09:59:53 -05:00
|
|
|
|
2020-04-28 07:49:03 -05:00
|
|
|
externalAuth?: RegisterServerAuthExternalOptions
|
|
|
|
|
2019-08-15 04:53:26 -05:00
|
|
|
plugin?: MPlugin
|
2019-03-19 04:35:15 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|