5 import { ActivityPubSignature } from './activitypub-signature'
7 export type Activity = ActivityCreate | ActivityAdd | ActivityUpdate | ActivityFlag |
8 ActivityDelete | ActivityFollow | ActivityAccept
10 // Flag -> report abuse
11 export type ActivityType = 'Create' | 'Add' | 'Update' | 'Flag' | 'Delete' | 'Follow' | 'Accept'
13 export interface BaseActivity {
19 signature: ActivityPubSignature
22 export interface ActivityCreate extends BaseActivity {
24 object: VideoChannelObject
27 export interface ActivityAdd extends BaseActivity {
29 object: VideoTorrentObject
32 export interface ActivityUpdate extends BaseActivity {
34 object: VideoTorrentObject | VideoChannelObject
37 export interface ActivityFlag extends BaseActivity {
42 export interface ActivityDelete extends BaseActivity {
46 export interface ActivityFollow extends BaseActivity {
51 export interface ActivityAccept extends BaseActivity {