diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/activitypub/activity.ts | 9 | ||||
-rw-r--r-- | shared/models/activitypub/objects/video-channel-object.ts | 5 | ||||
-rw-r--r-- | shared/models/activitypub/objects/video-torrent-object.ts | 1 |
3 files changed, 12 insertions, 3 deletions
diff --git a/shared/models/activitypub/activity.ts b/shared/models/activitypub/activity.ts index 0274416b2..dc562c00a 100644 --- a/shared/models/activitypub/activity.ts +++ b/shared/models/activitypub/activity.ts | |||
@@ -7,7 +7,7 @@ import { ActivityPubSignature } from './activitypub-signature' | |||
7 | export type Activity = ActivityCreate | ActivityUpdate | ActivityFlag | 7 | export type Activity = ActivityCreate | ActivityUpdate | ActivityFlag |
8 | 8 | ||
9 | // Flag -> report abuse | 9 | // Flag -> report abuse |
10 | export type ActivityType = 'Create' | 'Update' | 'Flag' | 10 | export type ActivityType = 'Create' | 'Add' | 'Update' | 'Flag' |
11 | 11 | ||
12 | export interface BaseActivity { | 12 | export interface BaseActivity { |
13 | '@context'?: any[] | 13 | '@context'?: any[] |
@@ -20,7 +20,12 @@ export interface BaseActivity { | |||
20 | 20 | ||
21 | export interface ActivityCreate extends BaseActivity { | 21 | export interface ActivityCreate extends BaseActivity { |
22 | type: 'Create' | 22 | type: 'Create' |
23 | object: VideoTorrentObject | VideoChannelObject | 23 | object: VideoChannelObject |
24 | } | ||
25 | |||
26 | export interface ActivityAdd extends BaseActivity { | ||
27 | type: 'Add' | ||
28 | object: VideoTorrentObject | ||
24 | } | 29 | } |
25 | 30 | ||
26 | export interface ActivityUpdate extends BaseActivity { | 31 | export interface ActivityUpdate extends BaseActivity { |
diff --git a/shared/models/activitypub/objects/video-channel-object.ts b/shared/models/activitypub/objects/video-channel-object.ts index d64b4aed8..72efe42b3 100644 --- a/shared/models/activitypub/objects/video-channel-object.ts +++ b/shared/models/activitypub/objects/video-channel-object.ts | |||
@@ -2,7 +2,10 @@ import { ActivityIdentifierObject } from './common-objects' | |||
2 | 2 | ||
3 | export interface VideoChannelObject { | 3 | export interface VideoChannelObject { |
4 | type: 'VideoChannel' | 4 | type: 'VideoChannel' |
5 | id: string | ||
5 | name: string | 6 | name: string |
6 | content: string | 7 | content: string |
7 | uuid: ActivityIdentifierObject | 8 | uuid: string |
9 | published: Date | ||
10 | updated: Date | ||
8 | } | 11 | } |
diff --git a/shared/models/activitypub/objects/video-torrent-object.ts b/shared/models/activitypub/objects/video-torrent-object.ts index 00cc0a649..5685a43e0 100644 --- a/shared/models/activitypub/objects/video-torrent-object.ts +++ b/shared/models/activitypub/objects/video-torrent-object.ts | |||
@@ -7,6 +7,7 @@ import { | |||
7 | 7 | ||
8 | export interface VideoTorrentObject { | 8 | export interface VideoTorrentObject { |
9 | type: 'Video' | 9 | type: 'Video' |
10 | id: string | ||
10 | name: string | 11 | name: string |
11 | duration: string | 12 | duration: string |
12 | uuid: string | 13 | uuid: string |