X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Factivitypub%2Factivitypub-actor.ts;h=c59be3f3b322ef6e3a8c5aaaf1987c5610dc1153;hb=2cb03dc1f4e01ba491c36caff30c33fe9c5bad89;hp=119bc22d4e621e5a4bcc03ca1b97e686b210918b;hpb=2422c46b27790d94fd29a7092170cee5a1b56008;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/models/activitypub/activitypub-actor.ts b/shared/models/activitypub/activitypub-actor.ts index 119bc22d4..c59be3f3b 100644 --- a/shared/models/activitypub/activitypub-actor.ts +++ b/shared/models/activitypub/activitypub-actor.ts @@ -1,6 +1,6 @@ -import { ActivityPubAttributedTo } from './objects/common-objects' +import { ActivityIconObject, ActivityPubAttributedTo } from './objects/common-objects' -export type ActivityPubActorType = 'Person' | 'Application' | 'Group' +export type ActivityPubActorType = 'Person' | 'Application' | 'Group' | 'Service' | 'Organization' export interface ActivityPubActor { '@context': any[] @@ -8,6 +8,7 @@ export interface ActivityPubActor { id: string following: string followers: string + playlists?: string inbox: string outbox: string preferredUsername: string @@ -20,16 +21,12 @@ export interface ActivityPubActor { attributedTo: ActivityPubAttributedTo[] support?: string - uuid: string publicKey: { id: string owner: string publicKeyPem: string } - icon: { - type: 'Image' - mediaType: 'image/png' - url: string - } + icon?: ActivityIconObject + image?: ActivityIconObject }