update api, add loading states

This commit is contained in:
kritzl 2026-05-14 15:58:12 +02:00
commit 63e99885a4
Signed by: kritzl
SSH key fingerprint: SHA256:5BmINP9VjZWaUk5Z+2CTut1KFhwLtd0ZynMekKbtViM
4 changed files with 52 additions and 21 deletions

View file

@ -1,3 +1,3 @@
# Update schema
`pnpm dlx openapi-typescript http://localhost:8000/openapi.json -o ./schema.d.ts`
`pnpm dlx openapi-typescript http://localhost:8000/openapi.json -o ./schema.ts`

View file

@ -132,18 +132,16 @@ export interface components {
*/
activity_state: "unknown" | "locking" | "unlocking" | "stable";
};
/** UserInfo */
UserInfo: {
/** Username */
username: string;
};
/** UserStatus */
UserStatus: {
/** Is Logged In */
is_logged_in: boolean;
/** Is Authorized */
is_authorized: boolean;
/** Guaranteed Session Until */
guaranteed_session_until: string | null;
user_info: components["schemas"]["UserInfo"] | null;
/** Username */
username: string | null;
};
/** ValidationError */
ValidationError: {