activitypub-actor.ts 666 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. playlists?: string
  10. inbox: string
  11. outbox: string
  12. preferredUsername: string
  13. url: string
  14. name: string
  15. endpoints: {
  16. sharedInbox: string
  17. }
  18. summary: string
  19. attributedTo: ActivityPubAttributedTo[]
  20. support?: 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. }