aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/activitypub/objects/common-objects.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/activitypub/objects/common-objects.ts')
-rw-r--r--shared/models/activitypub/objects/common-objects.ts25
1 files changed, 20 insertions, 5 deletions
diff --git a/shared/models/activitypub/objects/common-objects.ts b/shared/models/activitypub/objects/common-objects.ts
index ff2cfdbb4..1de60da94 100644
--- a/shared/models/activitypub/objects/common-objects.ts
+++ b/shared/models/activitypub/objects/common-objects.ts
@@ -17,16 +17,31 @@ export interface ActivityIconObject {
17 height: number 17 height: number
18} 18}
19 19
20export interface ActivityUrlObject { 20export type ActivityVideoUrlObject = {
21 type: 'Link' 21 type: 'Link'
22 mimeType: 'video/mp4' | 'video/webm' | 'application/x-bittorrent' | 'application/x-bittorrent;x-scheme-handler/magnet' 22 mimeType: 'video/mp4' | 'video/webm' | 'video/ogg'
23 href: string 23 href: string
24 height: number 24 height: number
25 25 size: number
26 size?: number 26 fps: number
27 fps?: number
28} 27}
29 28
29export type ActivityUrlObject =
30 ActivityVideoUrlObject
31 |
32 {
33 type: 'Link'
34 mimeType: 'application/x-bittorrent' | 'application/x-bittorrent;x-scheme-handler/magnet'
35 href: string
36 height: number
37 }
38 |
39 {
40 type: 'Link'
41 mimeType: 'text/html'
42 href: string
43 }
44
30export interface ActivityPubAttributedTo { 45export interface ActivityPubAttributedTo {
31 type: 'Group' | 'Person' 46 type: 'Group' | 'Person'
32 id: string 47 id: string