1 import { ActivityPubActor } from './activitypub-actor'
2 import { ActivityPubSignature } from './activitypub-signature'
3 import { ActivityFlagReasonObject, CacheFileObject, VideoObject } from './objects'
4 import { AbuseObject } from './objects/abuse-object'
5 import { DislikeObject } from './objects/dislike-object'
6 import { APObject } from './objects/object.model'
7 import { PlaylistObject } from './objects/playlist-object'
8 import { VideoCommentObject } from './objects/video-comment-object'
9 import { ViewObject } from './objects/view-object'
11 export type Activity =
25 export type ActivityType =
39 export interface ActivityAudience {
44 export interface BaseActivity {
49 actor: string | ActivityPubActor
51 signature?: ActivityPubSignature
54 export interface ActivityCreate extends BaseActivity {
56 object: VideoObject | AbuseObject | ViewObject | DislikeObject | VideoCommentObject | CacheFileObject | PlaylistObject
59 export interface ActivityUpdate extends BaseActivity {
61 object: VideoObject | ActivityPubActor | CacheFileObject | PlaylistObject
64 export interface ActivityDelete extends BaseActivity {
66 object: string | { id: string }
69 export interface ActivityFollow extends BaseActivity {
74 export interface ActivityAccept extends BaseActivity {
76 object: ActivityFollow
79 export interface ActivityReject extends BaseActivity {
81 object: ActivityFollow
84 export interface ActivityAnnounce extends BaseActivity {
89 export interface ActivityUndo extends BaseActivity {
91 object: ActivityFollow | ActivityLike | ActivityDislike | ActivityCreate | ActivityAnnounce
94 export interface ActivityLike extends BaseActivity {
99 export interface ActivityView extends BaseActivity {
105 export interface ActivityDislike extends BaseActivity {
112 export interface ActivityFlag extends BaseActivity {
115 object: APObject | APObject[]
116 tag?: ActivityFlagReasonObject[]