2020-01-31 16:56:52 +01:00
|
|
|
import { ActivityIconObject, ActivityPubAttributedTo } from './objects/common-objects'
|
2017-12-14 17:38:41 +01:00
|
|
|
|
2019-10-23 11:33:53 +02:00
|
|
|
export type ActivityPubActorType = 'Person' | 'Application' | 'Group' | 'Service' | 'Organization'
|
2017-12-14 17:38:41 +01:00
|
|
|
|
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
|
2019-02-26 10:55:40 +01:00
|
|
|
playlists?: string
|
2017-11-09 17:51:58 +01:00
|
|
|
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
|
|
|
|
2018-02-15 14:46:26 +01:00
|
|
|
support?: string
|
2017-11-09 17:51:58 +01:00
|
|
|
publicKey: {
|
|
|
|
id: string
|
|
|
|
owner: string
|
|
|
|
publicKeyPem: string
|
|
|
|
}
|
|
|
|
|
2022-02-28 08:34:43 +01:00
|
|
|
image?: ActivityIconObject | ActivityIconObject[]
|
|
|
|
|
|
|
|
icon?: ActivityIconObject | ActivityIconObject[]
|
|
|
|
// TODO: migrate to `icon`, introduced in 4.2
|
|
|
|
icons?: ActivityIconObject[]
|
2021-05-07 08:59:59 +02:00
|
|
|
|
|
|
|
published?: string
|
2017-11-09 17:51:58 +01:00
|
|
|
}
|