]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/activitypub/activitypub-actor.ts
Translated using Weblate (Chinese (Traditional))
[github/Chocobozzz/PeerTube.git] / shared / models / activitypub / activitypub-actor.ts
index 78256e9be57fd1b6f63e29c21367a6205f88061f..efb6edec48c3255ae517c0a6d92ad3a0b141057d 100644 (file)
@@ -1,6 +1,6 @@
-import { ActivityPubAttributedTo } from './objects/common-objects'
+import { ActivityIconObject, ActivityPubAttributedTo } from './objects/common-objects'
 
-export type ActivityPubActorType = 'Person' | 'Application' | 'Group'
+export type ActivityPubActorType = 'Person' | 'Application' | 'Group' | 'Service' | 'Organization'
 
 export interface ActivityPubActor {
   '@context': any[]
@@ -8,6 +8,7 @@ export interface ActivityPubActor {
   id: string
   following: string
   followers: string
+  playlists?: string
   inbox: string
   outbox: string
   preferredUsername: string
@@ -19,18 +20,18 @@ export interface ActivityPubActor {
   summary: string
   attributedTo: ActivityPubAttributedTo[]
 
-  uuid: string
+  support?: string
   publicKey: {
     id: string
     owner: string
     publicKeyPem: string
   }
 
-  // Not used
-  icon: {
-    type: 'Image'
-    mediaType: 'image/png'
-    url: string
-  }
-  // liked: string
+  image?: ActivityIconObject | ActivityIconObject[]
+
+  icon?: ActivityIconObject | ActivityIconObject[]
+  // TODO: migrate to `icon`, introduced in 4.2
+  icons?: ActivityIconObject[]
+
+  published?: string
 }