activitypub-actor.ts 660 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { ActivityPubAttributedTo } from './objects/common-objects'
  2. export type ActivityPubActorType = 'Person' | 'Application' | 'Group'
  3. export interface ActivityPubActor {
  4. '@context': any[]
  5. type: ActivityPubActorType
  6. id: string
  7. following: string
  8. followers: string
  9. inbox: string
  10. outbox: string
  11. preferredUsername: string
  12. url: string
  13. name: string
  14. endpoints: {
  15. sharedInbox: string
  16. }
  17. summary: string
  18. attributedTo: ActivityPubAttributedTo[]
  19. support?: string
  20. uuid: string
  21. publicKey: {
  22. id: string
  23. owner: string
  24. publicKeyPem: string
  25. }
  26. icon: {
  27. type: 'Image'
  28. mediaType: 'image/png'
  29. url: string
  30. }
  31. }