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