Namespace in lightning component
Thats a current limitation of the platform .The Javascript file does not get namespace added unlike visualforce pages for managed package .
I wrote a blog post on this .
The best way would be to create a message layer or a wrapper class like your second approach and that avoids the problem .The only caveat is you end up writing bunch of classes .