]> 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 beb2f519ec9ce7123af553572dc9700018e85313..23d54bdbd5fc1cbf245b49813777c826e4682a58 100644 (file)
@@ -5,9 +5,9 @@ import {
   ActivityTagObject,
   ActivityUrlObject
 } from './common-objects'
-import { VideoState } from '../../videos'
+import { LiveVideoLatencyMode, VideoState } from '../../videos'
 
-export interface VideoTorrentObject {
+export interface VideoObject {
   type: 'Video'
   id: string
   name: string
@@ -19,23 +19,38 @@ export interface VideoTorrentObject {
   language: ActivityIdentifierObject
   subtitleLanguage: ActivityIdentifierObject[]
   views: number
+
   sensitive: boolean
-  commentsEnabled: boolean,
-  downloadingEnabled: 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
+
   support: string
-  icon: ActivityIconObject
+
+  icon: ActivityIconObject[]
+
   url: ActivityUrlObject[]
+
   likes: string
   dislikes: string
   shares: string
   comments: string
+
   attributedTo: ActivityPubAttributedTo[]
+
   to?: string[]
   cc?: string[]
 }