mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
16e28019bc
This adds #11
27 lines
633 B
TypeScript
27 lines
633 B
TypeScript
export interface ScalarResponse {
|
|
action: string;
|
|
}
|
|
|
|
export interface ScalarRoomResponse extends ScalarResponse {
|
|
room_id: string;
|
|
}
|
|
|
|
export interface ScalarUserResponse extends ScalarRoomResponse {
|
|
user_id: string;
|
|
}
|
|
|
|
export interface ScalarErrorResponse extends ScalarResponse {
|
|
response: {error: {message: string, _error: Error}};
|
|
}
|
|
|
|
export interface ScalarSuccessResponse extends ScalarResponse {
|
|
response: {success: boolean};
|
|
}
|
|
|
|
export interface MembershipStateResponse extends ScalarUserResponse {
|
|
response: {
|
|
membership: string;
|
|
avatar_url: string;
|
|
displayname: string;
|
|
};
|
|
} |