matrix-dimension/web/app/shared/models/scalar_responses.ts
turt2live 30cfe080ce Start of the IRC bridge config: Pull networks and channels
TODO: 
* Provisioning support (IRC API)
* Deprovisioning support (IRC API)
* Ops query (IRC API)
* State update interval
2017-06-09 20:21:06 -06:00

33 lines
754 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;
};
}
export interface JoinRuleStateResponse extends ScalarRoomResponse {
response: {
join_rule: string;
};
}