feat(api): add user profile endpoints

This commit is contained in:
dahyeon committed 2026-04-12 23:46:00 +09:00
1 parent d4b790fd86
commit caf517123b
4 files changed
+164

No files matched your search

@@ -0,0 +1,22 @@
import type {
CommunityDocument,
UserDocument,
} from '../../global/database/schema';
export interface MeIdentityDto {
id: string;
entraOid: string;
tenantId?: string;
email?: string;
displayName?: string;
}
export interface MeMembershipDto {
user: UserDocument;
community: CommunityDocument | null;
}
export interface MeResponseDto {
identity: MeIdentityDto | null;
memberships: MeMembershipDto[];
}
@@ -0,0 +1,13 @@
import { IsBoolean, IsIn, IsOptional } from 'class-validator';
import { RIOT_PLATFORM_ROUTES } from '../../riot/riot.types';
import type { RiotPlatformRoute } from '../../riot/riot.types';
export class RefreshRiotAccountDto {
@IsOptional()
@IsBoolean()
force?: boolean;
@IsOptional()
@IsIn(RIOT_PLATFORM_ROUTES)
platform?: RiotPlatformRoute;
}