2017-11-09 17:51:58 +01:00
|
|
|
import {
|
|
|
|
ActivityIconObject,
|
2018-09-11 16:27:07 +02:00
|
|
|
ActivityIdentifierObject,
|
|
|
|
ActivityPubAttributedTo,
|
2017-11-09 17:51:58 +01:00
|
|
|
ActivityTagObject,
|
|
|
|
ActivityUrlObject
|
|
|
|
} from './common-objects'
|
2018-06-12 20:04:58 +02:00
|
|
|
import { VideoState } from '../../videos'
|
2017-11-09 17:51:58 +01:00
|
|
|
|
2020-09-17 13:59:02 +02:00
|
|
|
export interface VideoObject {
|
2017-11-09 17:51:58 +01:00
|
|
|
type: 'Video'
|
2017-11-10 14:34:45 +01:00
|
|
|
id: string
|
2017-11-09 17:51:58 +01:00
|
|
|
name: string
|
|
|
|
duration: string
|
|
|
|
uuid: string
|
|
|
|
tag: ActivityTagObject[]
|
|
|
|
category: ActivityIdentifierObject
|
|
|
|
licence: ActivityIdentifierObject
|
|
|
|
language: ActivityIdentifierObject
|
2018-07-12 19:02:00 +02:00
|
|
|
subtitleLanguage: ActivityIdentifierObject[]
|
2017-11-09 17:51:58 +01:00
|
|
|
views: number
|
2020-09-17 13:59:02 +02:00
|
|
|
|
2018-01-26 17:25:35 +01:00
|
|
|
sensitive: boolean
|
2020-11-02 15:43:44 +01:00
|
|
|
|
2020-09-17 13:59:02 +02:00
|
|
|
isLiveBroadcast: boolean
|
2020-11-02 15:43:44 +01:00
|
|
|
liveSaveReplay: boolean
|
2020-12-03 14:10:54 +01:00
|
|
|
permanentLive: boolean
|
2020-09-17 13:59:02 +02:00
|
|
|
|
2020-01-31 16:56:52 +01:00
|
|
|
commentsEnabled: boolean
|
|
|
|
downloadEnabled: boolean
|
2018-06-12 20:04:58 +02:00
|
|
|
waitTranscoding: boolean
|
|
|
|
state: VideoState
|
2017-11-16 11:08:25 +01:00
|
|
|
published: string
|
2019-01-12 14:41:45 +01:00
|
|
|
originallyPublishedAt: string
|
2017-11-16 11:08:25 +01:00
|
|
|
updated: string
|
2022-01-13 14:12:29 +01:00
|
|
|
|
2017-11-09 17:51:58 +01:00
|
|
|
mediaType: 'text/markdown'
|
|
|
|
content: string
|
2022-01-13 14:12:29 +01:00
|
|
|
|
2018-02-15 14:46:26 +01:00
|
|
|
support: string
|
2020-01-30 11:53:38 +01:00
|
|
|
|
|
|
|
icon: ActivityIconObject[]
|
|
|
|
|
2017-11-09 17:51:58 +01:00
|
|
|
url: ActivityUrlObject[]
|
2021-02-18 10:15:11 +01:00
|
|
|
|
2018-05-25 16:21:16 +02:00
|
|
|
likes: string
|
|
|
|
dislikes: string
|
|
|
|
shares: string
|
|
|
|
comments: string
|
2021-02-18 10:15:11 +01:00
|
|
|
|
2017-12-14 17:38:41 +01:00
|
|
|
attributedTo: ActivityPubAttributedTo[]
|
2021-02-18 10:15:11 +01:00
|
|
|
|
2018-01-10 17:18:12 +01:00
|
|
|
to?: string[]
|
|
|
|
cc?: string[]
|
2017-11-09 17:51:58 +01:00
|
|
|
}
|