2019-02-20 22:12:29 +00:00
|
|
|
export interface Activity {
|
|
|
|
actor: string;
|
|
|
|
type: string;
|
|
|
|
id: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Article extends Activity {
|
|
|
|
to: string[];
|
|
|
|
cc: string[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Create extends Activity {
|
|
|
|
to: string[];
|
|
|
|
cc: string[];
|
|
|
|
object: Activity;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Follow extends Activity {
|
|
|
|
object: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Accept extends Activity {
|
|
|
|
object: Follow;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Undo extends Activity {
|
|
|
|
object: Activity;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Note extends Activity {
|
|
|
|
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-02-22 00:26:24 +00:00
|
|
|
export interface Delete extends Activity {
|
|
|
|
object: string;
|
|
|
|
}
|
|
|
|
|
2019-02-20 22:12:29 +00:00
|
|
|
export interface Actor {
|
|
|
|
id: string;
|
|
|
|
inbox: string;
|
2019-02-20 23:07:29 +00:00
|
|
|
publicKey: {
|
|
|
|
publicKeyPem: string;
|
|
|
|
};
|
2019-02-20 22:12:29 +00:00
|
|
|
}
|