]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/activitypub/activitypub-actor.ts
78256e9be57fd1b6f63e29c21367a6205f88061f
[github/Chocobozzz/PeerTube.git] / shared / models / activitypub / activitypub-actor.ts
1 import { ActivityPubAttributedTo } from './objects/common-objects'
2
3 export type ActivityPubActorType = 'Person' | 'Application' | 'Group'
4
5 export interface ActivityPubActor {
6 '@context': any[]
7 type: ActivityPubActorType
8 id: string
9 following: string
10 followers: string
11 inbox: string
12 outbox: string
13 preferredUsername: string
14 url: string
15 name: string
16 endpoints: {
17 sharedInbox: string
18 }
19 summary: string
20 attributedTo: ActivityPubAttributedTo[]
21
22 uuid: string
23 publicKey: {
24 id: string
25 owner: string
26 publicKeyPem: string
27 }
28
29 // Not used
30 icon: {
31 type: 'Image'
32 mediaType: 'image/png'
33 url: string
34 }
35 // liked: string
36 }