PeerTube/shared/models/activitypub/activitypub-actor.ts

33 lines
619 B
TypeScript
Raw Normal View History

2017-12-14 17:38:41 +01:00
import { ActivityPubAttributedTo } from './objects/common-objects'
export type ActivityPubActorType = 'Person' | 'Application' | 'Group'
2017-11-09 17:51:58 +01:00
export interface ActivityPubActor {
'@context': any[]
2017-12-14 17:38:41 +01:00
type: ActivityPubActorType
2017-11-09 17:51:58 +01:00
id: string
following: string
followers: string
inbox: string
outbox: string
preferredUsername: string
url: string
name: string
endpoints: {
sharedInbox: string
}
2017-12-14 17:38:41 +01:00
summary: string
attributedTo: ActivityPubAttributedTo[]
2017-11-09 17:51:58 +01:00
uuid: string
publicKey: {
id: string
owner: string
publicKeyPem: string
}
// Not used
// icon: string[]
// liked: string
}