import type { FaceValidationPort, FaceValidationResult } from '@core/media/application/ports/FaceValidationPort';
import type { Logger } from '@core/shared/application';

export class InMemoryFaceValidationAdapter implements FaceValidationPort {
  constructor(private readonly logger: Logger) {
    this.logger.info('InMemoryFaceValidationAdapter initialized.');
  }

  async validateFacePhoto(imageData: string | Buffer): Promise<FaceValidationResult> {
    this.logger.debug('[InMemoryFaceValidationAdapter] Validating face photo (mock).');
    // Simulate a successful validation for any input for demo purposes
    return Promise.resolve({
      isValid: true,
      hasFace: true,
      faceCount: 1,
      confidence: 0.95,
    });
  }
}
