mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
Fixes for Lysand types
This commit is contained in:
parent
4ce0e06e41
commit
724b11da4b
|
|
@ -52,10 +52,6 @@ export interface Entity {
|
|||
};
|
||||
}
|
||||
|
||||
export interface InlineCustomEmojis {
|
||||
[key: string]: Emoji;
|
||||
}
|
||||
|
||||
export interface Publication extends Entity {
|
||||
type: "Note" | "Patch";
|
||||
author: string;
|
||||
|
|
@ -129,39 +125,50 @@ export interface Field {
|
|||
value: ContentFormat;
|
||||
}
|
||||
|
||||
export interface Like extends Entity {
|
||||
export interface Action extends Entity {
|
||||
type:
|
||||
| "Like"
|
||||
| "Dislike"
|
||||
| "Follow"
|
||||
| "FollowAccept"
|
||||
| "FollowReject"
|
||||
| "Announce"
|
||||
| "Undo";
|
||||
author: string;
|
||||
}
|
||||
|
||||
export interface Like extends Action {
|
||||
type: "Like";
|
||||
author: string;
|
||||
object: string;
|
||||
}
|
||||
|
||||
export interface Dislike extends Entity {
|
||||
export interface Undo extends Action {
|
||||
type: "Undo";
|
||||
object: string;
|
||||
}
|
||||
|
||||
export interface Dislike extends Action {
|
||||
type: "Dislike";
|
||||
author: string;
|
||||
object: string;
|
||||
}
|
||||
|
||||
export interface Follow extends Entity {
|
||||
export interface Follow extends Action {
|
||||
type: "Follow";
|
||||
author: string;
|
||||
followee: string;
|
||||
}
|
||||
|
||||
export interface FollowAccept extends Entity {
|
||||
export interface FollowAccept extends Action {
|
||||
type: "FollowAccept";
|
||||
author: string;
|
||||
follower: string;
|
||||
}
|
||||
|
||||
export interface FollowReject extends Entity {
|
||||
export interface FollowReject extends Action {
|
||||
type: "FollowReject";
|
||||
author: string;
|
||||
follower: string;
|
||||
}
|
||||
|
||||
export interface Announce extends Entity {
|
||||
export interface Announce extends Action {
|
||||
type: "Announce";
|
||||
author: string;
|
||||
object: string;
|
||||
}
|
||||
|
||||
|
|
@ -226,3 +233,19 @@ export interface LongPronoun {
|
|||
independent_possessive: string;
|
||||
reflexive: string;
|
||||
}
|
||||
|
||||
export interface ServerMetadata {
|
||||
type: "ServerMetadata";
|
||||
name: string;
|
||||
version: string;
|
||||
description?: string;
|
||||
website?: string;
|
||||
moderators?: string[];
|
||||
admins?: string[];
|
||||
logo?: ContentFormat;
|
||||
banner?: ContentFormat;
|
||||
supported_extensions: string[];
|
||||
extensions?: {
|
||||
[key: string]: object | undefined;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue