/** * DTO for verifying MFA code * * Used to verify MFA code using the appropriate provider. * Routes verification to the correct provider based on method name. * * @example * ```typescript * const isValid = await mfaService.verifyCode({ * sub: 'user-uuid', * methodName: 'totp', * code: '123456', * deviceId: 1 * }); * ``` */ /** * DTO for verifying MFA code */ export declare class VerifyMFACodeDTO { /** * User's unique identifier (UUID v4) * * Validation: * - Must be a valid UUID v4 format * - Matches DB constraint: char(36) or uuid * * Sanitization: * - Trimmed * - Lowercased for consistency * * @example "a21b654c-2746-4168-acee-c175083a65cd" */ sub: string; /** * MFA method name * * Validation: * - Must be one of: totp, sms, email, passkey, backup * - Max 50 characters * * Sanitization: * - Trimmed and lowercased * * @example "totp" */ methodName: string; /** * Verification code or credential (provider-specific) * * Validation: * - Must be a string or object depending on method * - For TOTP/SMS/Email: string code * - For Passkey: credential object * - For Backup: string code */ code: string | Record; /** * Optional device ID * * Validation: * - Must be a positive integer if provided */ deviceId?: number; } /** * Response DTO for MFA code verification */ export declare class VerifyMFACodeResponseDTO { /** * Whether verification succeeded */ valid: boolean; } //# sourceMappingURL=verify-mfa-code.dto.d.ts.map