diff options
Diffstat (limited to 'shared/models/activitypub/activity.ts')
-rw-r--r-- | shared/models/activitypub/activity.ts | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/shared/models/activitypub/activity.ts b/shared/models/activitypub/activity.ts index a2494da25..254daf118 100644 --- a/shared/models/activitypub/activity.ts +++ b/shared/models/activitypub/activity.ts | |||
@@ -4,10 +4,11 @@ import { | |||
4 | } from './objects' | 4 | } from './objects' |
5 | import { ActivityPubSignature } from './activitypub-signature' | 5 | import { ActivityPubSignature } from './activitypub-signature' |
6 | 6 | ||
7 | export type Activity = ActivityCreate | ActivityAdd | ActivityUpdate | ActivityFlag | 7 | export type Activity = ActivityCreate | ActivityAdd | ActivityUpdate | ActivityFlag | |
8 | ActivityDelete | ActivityFollow | ActivityAccept | ||
8 | 9 | ||
9 | // Flag -> report abuse | 10 | // Flag -> report abuse |
10 | export type ActivityType = 'Create' | 'Add' | 'Update' | 'Flag' | 11 | export type ActivityType = 'Create' | 'Add' | 'Update' | 'Flag' | 'Delete' | 'Follow' | 'Accept' |
11 | 12 | ||
12 | export interface BaseActivity { | 13 | export interface BaseActivity { |
13 | '@context'?: any[] | 14 | '@context'?: any[] |
@@ -37,3 +38,16 @@ export interface ActivityFlag extends BaseActivity { | |||
37 | type: 'Flag' | 38 | type: 'Flag' |
38 | object: string | 39 | object: string |
39 | } | 40 | } |
41 | |||
42 | export interface ActivityDelete extends BaseActivity { | ||
43 | type: 'Delete' | ||
44 | } | ||
45 | |||
46 | export interface ActivityFollow extends BaseActivity { | ||
47 | type: 'Follow' | ||
48 | object: string | ||
49 | } | ||
50 | |||
51 | export interface ActivityAccept extends BaseActivity { | ||
52 | type: 'Accept' | ||
53 | } | ||