]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/activitypub/activitypub-actor.ts
5e30bf783b9b37bdc22b827c63e78df726da6b75
[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 playlists?: string
12 inbox: string
13 outbox: string
14 preferredUsername: string
15 url: string
16 name: string
17 endpoints: {
18 sharedInbox: string
19 }
20 summary: string
21 attributedTo: ActivityPubAttributedTo[]
22
23 support?: string
24 uuid: string
25 publicKey: {
26 id: string
27 owner: string
28 publicKeyPem: string
29 }
30
31 icon: {
32 type: 'Image'
33 mediaType: 'image/png'
34 url: string
35 }
36 }