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,20 @@
/**
* Port: FaceValidationPort
*
* Defines the contract for validating face photos.
*/
export interface FaceValidationResult {
isValid: boolean;
hasFace: boolean;
faceCount: number;
confidence: number;
errorMessage?: string;
}
export interface FaceValidationPort {
/**
* Validate that an image contains exactly one valid face
*/
validateFacePhoto(imageData: string | Buffer): Promise<FaceValidationResult>;
}