1 import { ActivityPubActor } from './activitypub-actor'
2 import { ActivityPubSignature } from './activitypub-signature'
3 import { CacheFileObject, 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'
8 import { APObject } from './objects/object.model'
9 import { PlaylistObject } from './objects/playlist-object'
11 export type Activity = ActivityCreate | ActivityUpdate |
12 ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce |
13 ActivityUndo | ActivityLike | ActivityReject | ActivityView | ActivityDislike | ActivityFlag
15 export type ActivityType = 'Create' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' | 'Like' | 'Reject' |
16 'View' | 'Dislike' | 'Flag'
18 export interface ActivityAudience {
23 export interface BaseActivity {
28 actor: string | ActivityPubActor
30 signature?: ActivityPubSignature
33 export interface ActivityCreate extends BaseActivity {
35 object: VideoTorrentObject | VideoAbuseObject | ViewObject | DislikeObject | VideoCommentObject | CacheFileObject | PlaylistObject
38 export interface ActivityUpdate extends BaseActivity {
40 object: VideoTorrentObject | ActivityPubActor | CacheFileObject | PlaylistObject
43 export interface ActivityDelete extends BaseActivity {
45 object: string | { id: string }
48 export interface ActivityFollow extends BaseActivity {
53 export interface ActivityAccept extends BaseActivity {
55 object: ActivityFollow
58 export interface ActivityReject extends BaseActivity {
60 object: ActivityFollow
63 export interface ActivityAnnounce extends BaseActivity {
68 export interface ActivityUndo extends BaseActivity {
70 object: ActivityFollow | ActivityLike | ActivityDislike | ActivityCreate | ActivityAnnounce
73 export interface ActivityLike extends BaseActivity {
78 export interface ActivityView extends BaseActivity {
84 export interface ActivityDislike extends BaseActivity {
91 export interface ActivityFlag extends BaseActivity {