1
0
Fork 0
peertube/shared/models/activitypub/activitypub-actor.ts

36 lines
666 B
TypeScript
Raw Normal View History

2017-12-14 16:38:41 +00:00
import { ActivityPubAttributedTo } from './objects/common-objects'
export type ActivityPubActorType = 'Person' | 'Application' | 'Group'
2017-11-09 16:51:58 +00:00
export interface ActivityPubActor {
'@context': any[]
2017-12-14 16:38:41 +00:00
type: ActivityPubActorType
2017-11-09 16:51:58 +00:00
id: string
following: string
followers: string
2019-02-26 09:55:40 +00:00
playlists?: string
2017-11-09 16:51:58 +00:00
inbox: string
outbox: string
preferredUsername: string
url: string
name: string
endpoints: {
sharedInbox: string
}
2017-12-14 16:38:41 +00:00
summary: string
attributedTo: ActivityPubAttributedTo[]
2017-11-09 16:51:58 +00:00
support?: string
2017-11-09 16:51:58 +00:00
publicKey: {
id: string
owner: string
publicKeyPem: string
}
2017-12-29 18:10:13 +00:00
icon: {
type: 'Image'
mediaType: 'image/png'
url: string
}
2017-11-09 16:51:58 +00:00
}