64 lines
1.0 KiB
TypeScript
Raw Normal View History

export interface Activity {
actor: string;
type: string;
id: string;
}
export interface Object {
type: string;
id: string;
}
export interface ArticleObject extends Object {
to: string[];
cc: string[];
}
export interface CreateActivity extends Activity {
to: string[];
cc: string[];
object: Object;
}
export interface FollowActivity extends Activity {
object: string;
}
export interface AcceptActivity extends Activity {
object: FollowActivity;
}
export interface UndoActivity extends Activity {
object: Activity;
}
export interface NoteObject extends Object {
2019-08-18 18:09:28 -04:00
to: string[];
cc: string[];
directMessage?: boolean;
attributedTo: string;
2019-02-21 19:17:59 -05:00
content: string;
published: string;
inReplyTo: string;
conversation: string;
}
export interface DeleteActivity extends Activity {
object: string;
}
export interface ActorObject {
id: string;
2019-08-18 18:09:28 -04:00
url: string;
2019-02-24 10:21:14 -05:00
name: string;
2019-08-18 18:09:28 -04:00
preferredUsername: string;
inbox: string;
2019-02-24 10:21:14 -05:00
endpoints?: {
sharedInbox?: string;
}
publicKey?: {
publicKeyPem?: string;
2019-02-20 18:07:29 -05:00
};
2019-02-24 10:21:14 -05:00
icon: string | object | (string | object)[];
}