This commit is contained in:
2025-12-08 23:52:36 +01:00
parent 2d0860d66c
commit 35f988f885
46 changed files with 4624 additions and 1041 deletions

View File

@@ -0,0 +1,35 @@
/**
* Port: AvatarGenerationPort
*
* Defines the contract for AI-powered avatar generation.
*/
import type { RacingSuitColor, AvatarStyle } from '../../domain/entities/AvatarGenerationRequest';
export interface AvatarGenerationOptions {
facePhotoUrl: string;
prompt: string;
suitColor: RacingSuitColor;
style: AvatarStyle;
count: number;
}
export interface GeneratedAvatar {
url: string;
thumbnailUrl?: string;
}
export interface AvatarGenerationResult {
success: boolean;
avatars: GeneratedAvatar[];
errorMessage?: string;
}
export interface AvatarGenerationPort {
/**
* Generate racing avatars from a face photo
* @param options Generation options including face photo and styling preferences
* @returns Generated avatar URLs
*/
generateAvatars(options: AvatarGenerationOptions): Promise<AvatarGenerationResult>;
}