aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/activitypub/activitypub-actor.ts
blob: d9f80b94c88694ee2656813e5a87a3def8070900 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { ActivityPubAttributedTo } from './objects/common-objects'

export type ActivityPubActorType = 'Person' | 'Application' | 'Group'

export interface ActivityPubActor {
  '@context': any[]
  type: ActivityPubActorType
  id: string
  following: string
  followers: string
  inbox: string
  outbox: string
  preferredUsername: string
  url: string
  name: string
  endpoints: {
    sharedInbox: string
  }
  summary: string
  attributedTo: ActivityPubAttributedTo[]

  uuid: string
  publicKey: {
    id: string
    owner: string
    publicKeyPem: string
  }

  // Not used
  // icon: string[]
  // liked: string
}