export type UserData = { id: number '@id'?: string username: string roles: string[] client?: { '@id'?: string; id: number; name: string } | null allowedProjects?: { '@id'?: string; id: number; name: string }[] } export type UserWrite = { username: string password?: string roles: string[] client?: string | null allowedProjects?: string[] }