2020-01-31 10:56:52 -05:00
|
|
|
import { ActivityIconObject, ActivityPubAttributedTo } from './objects/common-objects'
|
2017-12-14 11:38:41 -05:00
|
|
|
|
2019-10-23 05:33:53 -04:00
|
|
|
export type ActivityPubActorType = 'Person' | 'Application' | 'Group' | 'Service' | 'Organization'
|
2017-12-14 11:38:41 -05:00
|
|
|
|
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
|
2019-02-26 04:55:40 -05:00
|
|
|
playlists?: string
|
2017-11-09 11:51:58 -05:00
|
|
|
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
|
|
|
publicKey: {
|
|
|
|
id: string
|
|
|
|
owner: string
|
|
|
|
publicKeyPem: string
|
|
|
|
}
|
|
|
|
|
2021-04-06 11:01:35 -04:00
|
|
|
icon?: ActivityIconObject
|
|
|
|
image?: ActivityIconObject
|
2017-11-09 11:51:58 -05:00
|
|
|
}
|