feat(api): add user profile routes (public profile, me, sessions)

This commit is contained in:
2026-04-25 14:43:32 +08:00
parent 3ef9649322
commit d6dc701e3f
4 changed files with 135 additions and 6 deletions
+24
View File
@@ -0,0 +1,24 @@
export type ApiError = {
error: string
code?: string
status: number
}
export type UserProfile = {
id: string
name: string
email: string
image: string | null
role: string | null
createdAt: string
contributions: number
reputation: number
verified: boolean
}
export type PaginatedResponse<T> = {
data: T[]
total: number
limit: number
offset: number
}