]>
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 | |
09209296 C |
31 | export type ActivityPlaylistSegmentHashesObject = { |
32 | type: 'Link' | |
33 | name: 'sha256' | |
34 | // TODO: remove mimeType (backward compatibility, introduced in v1.1.0) | |
35 | mimeType?: 'application/json' | |
36 | mediaType: 'application/json' | |
37 | href: string | |
38 | } | |
39 | ||
40 | export type ActivityPlaylistInfohashesObject = { | |
41 | type: 'Infohash' | |
42 | name: string | |
43 | } | |
44 | ||
45 | export type ActivityPlaylistUrlObject = { | |
46 | type: 'Link' | |
47 | // TODO: remove mimeType (backward compatibility, introduced in v1.1.0) | |
48 | mimeType?: 'application/x-mpegURL' | |
49 | mediaType: 'application/x-mpegURL' | |
50 | href: string | |
51 | tag?: (ActivityPlaylistSegmentHashesObject | ActivityPlaylistInfohashesObject)[] | |
52 | } | |
53 | ||
54 | export type ActivityBitTorrentUrlObject = { | |
55 | type: 'Link' | |
56 | // TODO: remove mimeType (backward compatibility, introduced in v1.1.0) | |
57 | mimeType?: 'application/x-bittorrent' | 'application/x-bittorrent;x-scheme-handler/magnet' | |
58 | mediaType: 'application/x-bittorrent' | 'application/x-bittorrent;x-scheme-handler/magnet' | |
59 | href: string | |
60 | height: number | |
61 | } | |
62 | ||
63 | export type ActivityHtmlUrlObject = { | |
64 | type: 'Link' | |
65 | // TODO: remove mimeType (backward compatibility, introduced in v1.1.0) | |
66 | mimeType?: 'text/html' | |
67 | mediaType: 'text/html' | |
68 | href: string | |
69 | } | |
70 | ||
71 | export type ActivityUrlObject = ActivityVideoUrlObject | ActivityPlaylistUrlObject | ActivityBitTorrentUrlObject | ActivityHtmlUrlObject | |
c48e82b5 | 72 | |
50d6de9c C |
73 | export interface ActivityPubAttributedTo { |
74 | type: 'Group' | 'Person' | |
75 | id: string | |
76 | } |