1 import { ActivityPubSignature } from './activitypub-signature'
2 import { VideoTorrentObject } from './objects'
3 import { DislikeObject } from './objects/dislike-object'
4 import { VideoAbuseObject } from './objects/video-abuse-object'
5 import { ViewObject } from './objects/view-object'
7 export type Activity = ActivityCreate | ActivityUpdate |
8 ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce |
9 ActivityUndo | ActivityLike
11 export type ActivityType = 'Create' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' | 'Like'
13 export interface ActivityAudience {
18 export interface BaseActivity {
25 signature?: ActivityPubSignature
28 export interface ActivityCreate extends BaseActivity {
30 object: VideoTorrentObject | VideoAbuseObject | ViewObject | DislikeObject
33 export interface ActivityUpdate extends BaseActivity {
35 object: VideoTorrentObject
38 export interface ActivityDelete extends BaseActivity {
42 export interface ActivityFollow extends BaseActivity {
47 export interface ActivityAccept extends BaseActivity {
49 object: ActivityFollow
52 export interface ActivityAnnounce extends BaseActivity {
54 object: ActivityCreate | string
57 export interface ActivityUndo extends BaseActivity {
59 object: ActivityFollow | ActivityLike | ActivityCreate
62 export interface ActivityLike extends BaseActivity {