1 import { ActivityPubActor } from './activitypub-actor'
2 import { ActivityPubSignature } from './activitypub-signature'
3 import { VideoTorrentObject } from './objects'
4 import { DislikeObject } from './objects/dislike-object'
5 import { VideoAbuseObject } from './objects/video-abuse-object'
6 import { VideoCommentObject } from './objects/video-comment-object'
7 import { ViewObject } from './objects/view-object'
9 export type Activity = ActivityCreate | ActivityUpdate |
10 ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce |
11 ActivityUndo | ActivityLike | ActivityReject
13 export type ActivityType = 'Create' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' | 'Like' | 'Reject'
15 export interface ActivityAudience {
20 export interface BaseActivity {
27 signature?: ActivityPubSignature
30 export interface ActivityCreate extends BaseActivity {
32 object: VideoTorrentObject | VideoAbuseObject | ViewObject | DislikeObject | VideoCommentObject
35 export interface ActivityUpdate extends BaseActivity {
37 object: VideoTorrentObject | ActivityPubActor
40 export interface ActivityDelete extends BaseActivity {
42 object: string | { id: string }
45 export interface ActivityFollow extends BaseActivity {
50 export interface ActivityAccept extends BaseActivity {
52 object: ActivityFollow
55 export interface ActivityReject extends BaseActivity {
57 object: ActivityFollow
60 export interface ActivityAnnounce extends BaseActivity {
62 object: ActivityCreate | string
65 export interface ActivityUndo extends BaseActivity {
67 object: ActivityFollow | ActivityLike | ActivityCreate
70 export interface ActivityLike extends BaseActivity {