Add models for JSON responses and auth function