]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/activitypub/activitypub-actor.ts
Implement avatar miniatures (#4639)
[github/Chocobozzz/PeerTube.git] / shared / models / activitypub / activitypub-actor.ts
CommitLineData
a1587156 1import { ActivityIconObject, ActivityPubAttributedTo } from './objects/common-objects'
50d6de9c 2
47581df0 3export type ActivityPubActorType = 'Person' | 'Application' | 'Group' | 'Service' | 'Organization'
50d6de9c 4
e4f97bab
C
5export interface ActivityPubActor {
6 '@context': any[]
50d6de9c 7 type: ActivityPubActorType
e4f97bab
C
8 id: string
9 following: string
10 followers: string
418d092a 11 playlists?: string
e4f97bab
C
12 inbox: string
13 outbox: string
14 preferredUsername: string
15 url: string
16 name: string
17 endpoints: {
18 sharedInbox: string
19 }
50d6de9c
C
20 summary: string
21 attributedTo: ActivityPubAttributedTo[]
e4f97bab 22
2422c46b 23 support?: string
e4f97bab
C
24 publicKey: {
25 id: string
26 owner: string
27 publicKeyPem: string
28 }
29
d0800f76 30 image?: ActivityIconObject | ActivityIconObject[]
31
32 icon?: ActivityIconObject | ActivityIconObject[]
33 // TODO: migrate to `icon`, introduced in 4.2
34 icons?: ActivityIconObject[]
a66c2e32
C
35
36 published?: string
e4f97bab 37}