]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/activitypub/activitypub-actor.ts
Merge branch 'release/4.1.0' into develop
[github/Chocobozzz/PeerTube.git] / shared / models / activitypub / activitypub-actor.ts
index 05b911d81b760eafe7e46e3761e6d00721736c42..efb6edec48c3255ae517c0a6d92ad3a0b141057d 100644 (file)
@@ -1,9 +1,14 @@
+import { ActivityIconObject, ActivityPubAttributedTo } from './objects/common-objects'
+
+export type ActivityPubActorType = 'Person' | 'Application' | 'Group' | 'Service' | 'Organization'
+
 export interface ActivityPubActor {
   '@context': any[]
-  type: 'Person' | 'Application' | 'Group'
+  type: ActivityPubActorType
   id: string
   following: string
   followers: string
+  playlists?: string
   inbox: string
   outbox: string
   preferredUsername: string
@@ -12,16 +17,21 @@ export interface ActivityPubActor {
   endpoints: {
     sharedInbox: string
   }
+  summary: string
+  attributedTo: ActivityPubAttributedTo[]
 
-  uuid: string
+  support?: string
   publicKey: {
     id: string
     owner: string
     publicKeyPem: string
   }
 
-  // Not used
-  // summary: string
-  // icon: string[]
-  // liked: string
+  image?: ActivityIconObject | ActivityIconObject[]
+
+  icon?: ActivityIconObject | ActivityIconObject[]
+  // TODO: migrate to `icon`, introduced in 4.2
+  icons?: ActivityIconObject[]
+
+  published?: string
 }