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

35 lines
719 B
TypeScript
Raw Normal View History

2020-01-31 09:56:52 -06:00
import { ActivityIconObject, ActivityPubAttributedTo } from './objects/common-objects'
2017-12-14 10:38:41 -06:00
export type ActivityPubActorType = 'Person' | 'Application' | 'Group' | 'Service' | 'Organization'
2017-12-14 10:38:41 -06:00
2017-11-09 10:51:58 -06:00
export interface ActivityPubActor {
'@context': any[]
2017-12-14 10:38:41 -06:00
type: ActivityPubActorType
2017-11-09 10:51:58 -06:00
id: string
following: string
followers: string
2019-02-26 03:55:40 -06:00
playlists?: string
2017-11-09 10:51:58 -06:00
inbox: string
outbox: string
preferredUsername: string
url: string
name: string
endpoints: {
sharedInbox: string
}
2017-12-14 10:38:41 -06:00
summary: string
attributedTo: ActivityPubAttributedTo[]
2017-11-09 10:51:58 -06:00
support?: string
2017-11-09 10:51:58 -06:00
publicKey: {
id: string
owner: string
publicKeyPem: string
}
2021-04-06 10:01:35 -05:00
icon?: ActivityIconObject
image?: ActivityIconObject
2021-05-07 01:59:59 -05:00
published?: string
2017-11-09 10:51:58 -06:00
}