X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Factivitypub%2Factivitypub-actor.ts;h=efb6edec48c3255ae517c0a6d92ad3a0b141057d;hb=7b51ede977c299a74728171d8c124bcc4cbba6ea;hp=05b911d81b760eafe7e46e3761e6d00721736c42;hpb=fadf619ad61a016c1c7fc53de5a8f398a4f77519;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/models/activitypub/activitypub-actor.ts b/shared/models/activitypub/activitypub-actor.ts index 05b911d81..efb6edec4 100644 --- a/shared/models/activitypub/activitypub-actor.ts +++ b/shared/models/activitypub/activitypub-actor.ts @@ -1,9 +1,14 @@ +import { ActivityIconObject, ActivityPubAttributedTo } from './objects/common-objects' + +export type ActivityPubActorType = 'Person' | 'Application' | 'Group' | 'Service' | 'Organization' + export interface ActivityPubActor { '@context': any[] - type: 'Person' | 'Application' | 'Group' + type: ActivityPubActorType id: string following: string followers: string + playlists?: string inbox: string outbox: string preferredUsername: string @@ -12,16 +17,21 @@ export interface ActivityPubActor { endpoints: { sharedInbox: string } + summary: string + attributedTo: ActivityPubAttributedTo[] - uuid: string + support?: string publicKey: { id: string owner: string publicKeyPem: string } - // Not used - // summary: string - // icon: string[] - // liked: string + image?: ActivityIconObject | ActivityIconObject[] + + icon?: ActivityIconObject | ActivityIconObject[] + // TODO: migrate to `icon`, introduced in 4.2 + icons?: ActivityIconObject[] + + published?: string }