]>
Commit | Line | Data |
---|---|---|
e4f97bab C |
1 | export interface ActivityIdentifierObject { |
2 | identifier: string | |
3 | name: string | |
4 | } | |
5 | ||
6 | export interface ActivityTagObject { | |
d7e70384 C |
7 | type: 'Hashtag' | 'Mention' |
8 | href?: string | |
e4f97bab C |
9 | name: string |
10 | } | |
11 | ||
12 | export interface ActivityIconObject { | |
13 | type: 'Image' | |
14 | url: string | |
15 | mediaType: 'image/jpeg' | |
16 | width: number | |
17 | height: number | |
18 | } | |
19 | ||
c48e82b5 | 20 | export type ActivityVideoUrlObject = { |
e4f97bab | 21 | type: 'Link' |
e27ff5da C |
22 | // TODO: remove mimeType (backward compatibility, introduced in v1.1.0) |
23 | mimeType?: 'video/mp4' | 'video/webm' | 'video/ogg' | |
24 | mediaType: 'video/mp4' | 'video/webm' | 'video/ogg' | |
9fb3abfd | 25 | href: string |
965c4b22 | 26 | height: number |
c48e82b5 C |
27 | size: number |
28 | fps: number | |
e4f97bab | 29 | } |
50d6de9c | 30 | |
c48e82b5 C |
31 | export type ActivityUrlObject = |
32 | ActivityVideoUrlObject | |
33 | | | |
34 | { | |
35 | type: 'Link' | |
e27ff5da C |
36 | // TODO: remove mimeType (backward compatibility, introduced in v1.1.0) |
37 | mimeType?: 'application/x-bittorrent' | 'application/x-bittorrent;x-scheme-handler/magnet' | |
38 | mediaType: 'application/x-bittorrent' | 'application/x-bittorrent;x-scheme-handler/magnet' | |
c48e82b5 C |
39 | href: string |
40 | height: number | |
41 | } | |
42 | | | |
43 | { | |
44 | type: 'Link' | |
e27ff5da C |
45 | // TODO: remove mimeType (backward compatibility, introduced in v1.1.0) |
46 | mimeType?: 'text/html' | |
47 | mediaType: 'text/html' | |
c48e82b5 C |
48 | href: string |
49 | } | |
50 | ||
50d6de9c C |
51 | export interface ActivityPubAttributedTo { |
52 | type: 'Group' | 'Person' | |
53 | id: string | |
54 | } |