/** * @module types * @description Type definitions for biometric authentication */ export type AuthType = 'webauthn' | 'touchid' | 'securitykey' | 'custom'; export interface AuthRequirements { required: AuthType[]; devices?: string[]; timeout?: number; metadata?: Record; } export interface AuthProof { type: AuthType; proof: any; deviceId?: string; timestamp: number; } export interface DeviceInfo { id: string; name: string; capabilities: AuthType[]; lastUsed?: number; metadata?: Record; } export interface AuthChallenge { challenge: string; timestamp: number; expires: number; metadata?: Record; } export interface AuthResult { success: boolean; deviceId?: string; timestamp: number; metadata?: Record; } export interface BiometricSettings { timeout: number; allowedDevices?: string[]; requiredAuth: AuthType[]; riskLevel: 'low' | 'medium' | 'high'; metadata?: Record; }