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 { VideoCommentObject } from './objects/video-comment-object'
6 import { ViewObject } from './objects/view-object'
8 export type Activity = ActivityCreate | ActivityUpdate |
9 ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce |
10 ActivityUndo | ActivityLike
12 export type ActivityType = 'Create' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' | 'Like'
14 export interface ActivityAudience {
19 export interface BaseActivity {
26 signature?: ActivityPubSignature
29 export interface ActivityCreate extends BaseActivity {
31 object: VideoTorrentObject | VideoAbuseObject | ViewObject | DislikeObject | VideoCommentObject
34 export interface ActivityUpdate extends BaseActivity {
36 object: VideoTorrentObject
39 export interface ActivityDelete extends BaseActivity {
43 export interface ActivityFollow extends BaseActivity {
48 export interface ActivityAccept extends BaseActivity {
50 object: ActivityFollow
53 export interface ActivityAnnounce extends BaseActivity {
55 object: ActivityCreate | string
58 export interface ActivityUndo extends BaseActivity {
60 object: ActivityFollow | ActivityLike | ActivityCreate
63 export interface ActivityLike extends BaseActivity {