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
13 export type ActivityType = 'Create' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' | 'Like'
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 {
44 export interface ActivityFollow extends BaseActivity {
49 export interface ActivityAccept extends BaseActivity {
51 object: ActivityFollow
54 export interface ActivityAnnounce extends BaseActivity {
56 object: ActivityCreate | string
59 export interface ActivityUndo extends BaseActivity {
61 object: ActivityFollow | ActivityLike | ActivityCreate
64 export interface ActivityLike extends BaseActivity {