From e31242b57f9fbb43b26126877cebd26b44b40b79 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 22 Apr 2026 15:55:00 -0400 Subject: [PATCH] feat(web): add api client types (User, LoginResponse, ApiError) --- web/src/lib/api/client.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 web/src/lib/api/client.ts diff --git a/web/src/lib/api/client.ts b/web/src/lib/api/client.ts new file mode 100644 index 00000000..5c8c09a8 --- /dev/null +++ b/web/src/lib/api/client.ts @@ -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; +};