]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/activitypub/objects/video-torrent-object.ts
Fix peertube runner concurrency
[github/Chocobozzz/PeerTube.git] / shared / models / activitypub / objects / video-torrent-object.ts
index ae8f807c8a4f7af49a08319c7858b35d13d1188e..23d54bdbd5fc1cbf245b49813777c826e4682a58 100644 (file)
@@ -1,11 +1,13 @@
 import {
   ActivityIconObject,
   ActivityIdentifierObject,
+  ActivityPubAttributedTo,
   ActivityTagObject,
   ActivityUrlObject
 } from './common-objects'
+import { LiveVideoLatencyMode, VideoState } from '../../videos'
 
-export interface VideoTorrentObject {
+export interface VideoObject {
   type: 'Video'
   id: string
   name: string
@@ -15,13 +17,40 @@ export interface VideoTorrentObject {
   category: ActivityIdentifierObject
   licence: ActivityIdentifierObject
   language: ActivityIdentifierObject
+  subtitleLanguage: ActivityIdentifierObject[]
   views: number
-  nsfw: boolean
+
+  sensitive: boolean
+
+  isLiveBroadcast: boolean
+  liveSaveReplay: boolean
+  permanentLive: boolean
+  latencyMode: LiveVideoLatencyMode
+
+  commentsEnabled: boolean
+  downloadEnabled: boolean
+  waitTranscoding: boolean
+  state: VideoState
   published: string
+  originallyPublishedAt: string
   updated: string
+
   mediaType: 'text/markdown'
   content: string
-  icon: ActivityIconObject
+
+  support: string
+
+  icon: ActivityIconObject[]
+
   url: ActivityUrlObject[]
-  actor?: string
+
+  likes: string
+  dislikes: string
+  shares: string
+  comments: string
+
+  attributedTo: ActivityPubAttributedTo[]
+
+  to?: string[]
+  cc?: string[]
 }