]>
Commit | Line | Data |
---|---|---|
1 | export interface ActivityIdentifierObject { | |
2 | identifier: string | |
3 | name: string | |
4 | } | |
5 | ||
6 | export interface ActivityTagObject { | |
7 | type: 'Hashtag' | 'Mention' | |
8 | href?: string | |
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 | ||
20 | export type ActivityVideoUrlObject = { | |
21 | type: 'Link' | |
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' | |
25 | href: string | |
26 | height: number | |
27 | size: number | |
28 | fps: number | |
29 | } | |
30 | ||
31 | export type ActivityUrlObject = | |
32 | ActivityVideoUrlObject | |
33 | | | |
34 | { | |
35 | type: 'Link' | |
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' | |
39 | href: string | |
40 | height: number | |
41 | } | |
42 | | | |
43 | { | |
44 | type: 'Link' | |
45 | // TODO: remove mimeType (backward compatibility, introduced in v1.1.0) | |
46 | mimeType?: 'text/html' | |
47 | mediaType: 'text/html' | |
48 | href: string | |
49 | } | |
50 | ||
51 | export interface ActivityPubAttributedTo { | |
52 | type: 'Group' | 'Person' | |
53 | id: string | |
54 | } |