Types
Capture results
interface FaceCaptureResult {
imageBase64: string;
antispoofScore: number;
livenessCompleted: boolean;
challengeResults: ChallengeResult[];
deviceInfo: DeviceInfo;
}
interface FingerprintCaptureResult {
fingers: CapturedFinger[];
deviceInfo: DeviceInfo;
}
interface CapturedFinger {
position: number;
imageBase64: string;
nfiq2Score: number;
retryCount: number;
}Network responses
interface FaceEnrollResponse {
id: string;
enrollee: string;
createdAt: string;
raw: unknown;
}
interface FaceMatchResponse {
matched: boolean;
distance?: number;
threshold?: number;
logId?: string;
raw: unknown;
}
interface FaceSearchResponse {
matched: boolean;
candidates: { enrollee: string; distance: number }[];
threshold?: number;
logId?: string;
raw: unknown;
}
interface EnrollmentResponse {
success: boolean;
enrolleeId: string;
fingerprintsEnrolled: number;
message?: string;
fingers: EnrolledFinger[];
}
interface MatchResponse {
matched: boolean;
score: number;
threshold?: number;
captureModality?: string;
matchedPosition?: number;
expectedPosition?: number;
confidence: number;
message?: string;
}