![Thomas Citharel](/assets/img/avatar_default.png)
To register a profile from an unactivated user
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
👤 Fix Person interface use
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Change host function for data property
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
29 lines
496 B
TypeScript
29 lines
496 B
TypeScript
export interface IActor {
|
|
id: string;
|
|
url: string;
|
|
name: string;
|
|
domain: string|null;
|
|
summary: string;
|
|
preferredUsername: string;
|
|
suspended: boolean;
|
|
avatarUrl: string;
|
|
bannerUrl: string;
|
|
}
|
|
|
|
export interface IPerson extends IActor {
|
|
|
|
}
|
|
|
|
export interface IGroup extends IActor {
|
|
members: IMember[];
|
|
}
|
|
|
|
export enum MemberRole {
|
|
PENDING, MEMBER, MODERATOR, ADMIN
|
|
}
|
|
|
|
export interface IMember {
|
|
role: MemberRole;
|
|
parent: IGroup;
|
|
actor: IActor;
|
|
} |