]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/activitypub/activitypub-actor.ts
Refractor and optimize AP collections
[github/Chocobozzz/PeerTube.git] / shared / models / activitypub / activitypub-actor.ts
index 77489135c07a45e844a9d4bb1862be4bd211d8bd..119bc22d4e621e5a4bcc03ca1b97e686b210918b 100644 (file)
@@ -1,6 +1,10 @@
+import { ActivityPubAttributedTo } from './objects/common-objects'
+
+export type ActivityPubActorType = 'Person' | 'Application' | 'Group'
+
 export interface ActivityPubActor {
   '@context': any[]
-  type: 'Person' | 'Application'
+  type: ActivityPubActorType
   id: string
   following: string
   followers: string
@@ -12,7 +16,10 @@ export interface ActivityPubActor {
   endpoints: {
     sharedInbox: string
   }
+  summary: string
+  attributedTo: ActivityPubAttributedTo[]
 
+  support?: string
   uuid: string
   publicKey: {
     id: string
@@ -20,8 +27,9 @@ export interface ActivityPubActor {
     publicKeyPem: string
   }
 
-  // Not used
-  // summary: string
-  // icon: string[]
-  // liked: string
+  icon: {
+    type: 'Image'
+    mediaType: 'image/png'
+    url: string
+  }
 }