With thorough IntelliSense support & 100% test coverage, this is an unopinionated async/await API wrapper for Hypixel's Public API. It is developed in TypeScript complete with documentation, typed interfaces for all API responses (and an OpenAPI 3.0 schema!), built-in rate-limit handling, flexible cache support, helper functions, and support for undocumented endpoints.
I've added PlayerStatsSkywarsStats and PlayerStatsDuelsStats while trying to maintain your coding style. I've also added a generic PlayerInventoryModel for player inventories.
Both of my interfaces are from a collection of leaderboard player's responses and may not include some older / unused properties. However, this should include all of the most common properties.
api.ts is actually fully generated by the OpenAPI.yaml file and post-processed by process_output.js. Changes to api.ts would get overridden by this process.
I've added PlayerStatsSkywarsStats and PlayerStatsDuelsStats while trying to maintain your coding style. I've also added a generic PlayerInventoryModel for player inventories.
Both of my interfaces are from a collection of leaderboard player's responses and may not include some older / unused properties. However, this should include all of the most common properties.