From e4f97babf701481b55cc10fb3448feab5f97c867 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 9 Nov 2017 17:51:58 +0100 Subject: Begin activitypub --- .../models/activitypub/objects/common-objects.ts | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 shared/models/activitypub/objects/common-objects.ts (limited to 'shared/models/activitypub/objects/common-objects.ts') diff --git a/shared/models/activitypub/objects/common-objects.ts b/shared/models/activitypub/objects/common-objects.ts new file mode 100644 index 000000000..3eaab21b5 --- /dev/null +++ b/shared/models/activitypub/objects/common-objects.ts @@ -0,0 +1,25 @@ +export interface ActivityIdentifierObject { + identifier: string + name: string +} + +export interface ActivityTagObject { + type: 'Hashtag' + name: string +} + +export interface ActivityIconObject { + type: 'Image' + url: string + mediaType: 'image/jpeg' + width: number + height: number +} + +export interface ActivityUrlObject { + type: 'Link' + mimeType: 'video/mp4' | 'video/webm' | 'application/x-bittorrent' | 'application/x-bittorrent;x-scheme-handler/magnet' + url: string + width: number + size?: number +} -- cgit v1.2.3