Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
Backend : - POST /api/me/regenerate-api-token : nouveau controller, ROLE_USER (exclut CLIENT) - User.apiToken exposé via groupe me:read sur GET /api/me Frontend : - Section 'Token API MCP' sur /profile (masquée pour les CLIENT du portail) - Boutons Copier + Régénérer avec modal de confirmation - Service api-token + DTO mis à jour + clés i18n fr
21 lines
439 B
TypeScript
21 lines
439 B
TypeScript
import type { Project } from './project'
|
|
|
|
export type UserData = {
|
|
id: number
|
|
'@id'?: string
|
|
username: string
|
|
roles: string[]
|
|
client?: { id: number; name: string } | null
|
|
allowedProjects?: Project[]
|
|
avatarUrl?: string | null
|
|
apiToken?: string | null
|
|
}
|
|
|
|
export type UserWrite = {
|
|
username: string
|
|
plainPassword?: string
|
|
roles: string[]
|
|
client?: string | null
|
|
allowedProjects?: string[]
|
|
}
|