1 export interface ActivityIdentifierObject {
6 export interface ActivityTagObject {
7 type: 'Hashtag' | 'Mention'
12 export interface ActivityIconObject {
15 mediaType: 'image/jpeg'
20 export type ActivityVideoUrlObject = {
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'
31 export type ActivityPlaylistSegmentHashesObject = {
34 // TODO: remove mimeType (backward compatibility, introduced in v1.1.0)
35 mimeType?: 'application/json'
36 mediaType: 'application/json'
40 export type ActivityPlaylistInfohashesObject = {
45 export type ActivityPlaylistUrlObject = {
47 // TODO: remove mimeType (backward compatibility, introduced in v1.1.0)
48 mimeType?: 'application/x-mpegURL'
49 mediaType: 'application/x-mpegURL'
51 tag?: (ActivityPlaylistSegmentHashesObject | ActivityPlaylistInfohashesObject)[]
54 export type ActivityBitTorrentUrlObject = {
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'
63 export type ActivityHtmlUrlObject = {
65 // TODO: remove mimeType (backward compatibility, introduced in v1.1.0)
66 mimeType?: 'text/html'
67 mediaType: 'text/html'
71 export type ActivityUrlObject = ActivityVideoUrlObject | ActivityPlaylistUrlObject | ActivityBitTorrentUrlObject | ActivityHtmlUrlObject
73 export interface ActivityPubAttributedTo {
74 type: 'Group' | 'Person'