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