feat(web): add api client types (User, LoginResponse, ApiError)
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
export type ApiError = {
|
||||||
|
code: string;
|
||||||
|
message: string;
|
||||||
|
status: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type User = {
|
||||||
|
id: string;
|
||||||
|
username: string;
|
||||||
|
is_admin: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type LoginResponse = {
|
||||||
|
token: string;
|
||||||
|
user: User;
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user