feat(web): add api client types (User, LoginResponse, ApiError)

This commit is contained in:
2026-04-22 15:55:00 -04:00
parent d0015d3638
commit e31242b57f
+16
View File
@@ -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;
};