diff options
Diffstat (limited to 'shared/models/activitypub/activity.ts')
-rw-r--r-- | shared/models/activitypub/activity.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/shared/models/activitypub/activity.ts b/shared/models/activitypub/activity.ts index 8cede49a0..aa25db446 100644 --- a/shared/models/activitypub/activity.ts +++ b/shared/models/activitypub/activity.ts | |||
@@ -8,9 +8,9 @@ import { ViewObject } from './objects/view-object' | |||
8 | 8 | ||
9 | export type Activity = ActivityCreate | ActivityUpdate | | 9 | export type Activity = ActivityCreate | ActivityUpdate | |
10 | ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce | | 10 | ActivityDelete | ActivityFollow | ActivityAccept | ActivityAnnounce | |
11 | ActivityUndo | ActivityLike | 11 | ActivityUndo | ActivityLike | ActivityReject |
12 | 12 | ||
13 | export type ActivityType = 'Create' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' | 'Like' | 13 | export type ActivityType = 'Create' | 'Update' | 'Delete' | 'Follow' | 'Accept' | 'Announce' | 'Undo' | 'Like' | 'Reject' |
14 | 14 | ||
15 | export interface ActivityAudience { | 15 | export interface ActivityAudience { |
16 | to: string[] | 16 | to: string[] |
@@ -52,6 +52,11 @@ export interface ActivityAccept extends BaseActivity { | |||
52 | object: ActivityFollow | 52 | object: ActivityFollow |
53 | } | 53 | } |
54 | 54 | ||
55 | export interface ActivityReject extends BaseActivity { | ||
56 | type: 'Reject' | ||
57 | object: ActivityFollow | ||
58 | } | ||
59 | |||
55 | export interface ActivityAnnounce extends BaseActivity { | 60 | export interface ActivityAnnounce extends BaseActivity { |
56 | type: 'Announce' | 61 | type: 'Announce' |
57 | object: ActivityCreate | string | 62 | object: ActivityCreate | string |