video-torrent-object.ts 972 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import {
  2. ActivityIconObject,
  3. ActivityIdentifierObject,
  4. ActivityPubAttributedTo,
  5. ActivityTagObject,
  6. ActivityUrlObject
  7. } from './common-objects'
  8. import { VideoState } from '../../videos'
  9. export interface VideoTorrentObject {
  10. type: 'Video'
  11. id: string
  12. name: string
  13. duration: string
  14. uuid: string
  15. tag: ActivityTagObject[]
  16. category: ActivityIdentifierObject
  17. licence: ActivityIdentifierObject
  18. language: ActivityIdentifierObject
  19. subtitleLanguage: ActivityIdentifierObject[]
  20. views: number
  21. sensitive: boolean
  22. commentsEnabled: boolean,
  23. downloadEnabled: boolean,
  24. waitTranscoding: boolean
  25. state: VideoState
  26. published: string
  27. originallyPublishedAt: string
  28. updated: string
  29. mediaType: 'text/markdown'
  30. content: string
  31. support: string
  32. icon: ActivityIconObject
  33. url: ActivityUrlObject[]
  34. likes: string
  35. dislikes: string
  36. shares: string
  37. comments: string
  38. attributedTo: ActivityPubAttributedTo[]
  39. to?: string[]
  40. cc?: string[]
  41. }