aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/activitypub/activitypub-actor.ts
blob: 78256e9be57fd1b6f63e29c21367a6205f88061f (plain) (tree)
1
2
3
4
5
6
7



                                                                     

                                   
                            










                           

                                         








                        




                          

                  
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: {
    type: 'Image'
    mediaType: 'image/png'
    url: string
  }
  // liked: string
}