chore(api): fixed the diagnostics