aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/activitypub/activitypub-actor.ts
blob: 09d4f7402ef2194b403a79320f2c55c035368b10 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                                      
 
                                                                                                  
 

                                   
                            


                   
                    







                           

                                         
 
                  





                        

                            

                    
 
import { ActivityIconObject, ActivityPubAttributedTo } from './objects/common-objects'

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

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

  support?: string
  publicKey: {
    id: string
    owner: string
    publicKeyPem: string
  }

  icon?: ActivityIconObject
  image?: ActivityIconObject

  published?: string
}