]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/activitypub/objects/video-torrent-object.ts
Add downloadingEnabled property to video model
[github/Chocobozzz/PeerTube.git] / shared / models / activitypub / objects / video-torrent-object.ts
index 00cc0a64910f7f754f48dedfe695140e8bb5b2e4..beb2f519ec9ce7123af553572dc9700018e85313 100644 (file)
@@ -1,12 +1,15 @@
 import {
   ActivityIconObject,
   ActivityIdentifierObject,
+  ActivityPubAttributedTo,
   ActivityTagObject,
   ActivityUrlObject
 } from './common-objects'
+import { VideoState } from '../../videos'
 
 export interface VideoTorrentObject {
   type: 'Video'
+  id: string
   name: string
   duration: string
   uuid: string
@@ -14,12 +17,25 @@ export interface VideoTorrentObject {
   category: ActivityIdentifierObject
   licence: ActivityIdentifierObject
   language: ActivityIdentifierObject
+  subtitleLanguage: ActivityIdentifierObject[]
   views: number
-  nsfw: boolean
-  published: Date
-  updated: Date
+  sensitive: boolean
+  commentsEnabled: boolean,
+  downloadingEnabled: boolean,
+  waitTranscoding: boolean
+  state: VideoState
+  published: string
+  updated: string
   mediaType: 'text/markdown'
   content: string
+  support: string
   icon: ActivityIconObject
   url: ActivityUrlObject[]
+  likes: string
+  dislikes: string
+  shares: string
+  comments: string
+  attributedTo: ActivityPubAttributedTo[]
+  to?: string[]
+  cc?: string[]
 }