@zikeji/hypixel
Version:
With IntelliSense support & 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, built-in rate-limit handling, flexible
1,304 lines (1,303 loc) • 42 kB
TypeScript
export declare namespace Components {
namespace Responses {
interface DataMissing {
/**
* example:
* false
*/
success?: boolean;
/**
* example:
* Missing one or more fields [...]
*/
cause?: string;
}
interface InvalidKey {
/**
* example:
* false
*/
success?: boolean;
/**
* example:
* Invalid API key
*/
cause?: string;
}
interface InvalidPage {
/**
* example:
* false
*/
success?: boolean;
/**
* example:
* Invalid page
*/
cause?: string;
}
interface MalformedData {
/**
* example:
* false
*/
success?: boolean;
/**
* example:
* Malformed UUID
*/
cause?: string;
}
interface MissingPage {
/**
* example:
* false
*/
success?: boolean;
/**
* example:
* Page not found
*/
cause?: string;
}
interface NoResult {
/**
* example:
* false
*/
success?: boolean;
/**
* example:
* No result was found
*/
cause?: string;
}
interface NotPopulated {
/**
* example:
* false
*/
success?: boolean;
/**
* example:
* Leaderboard data has not yet been populated
*/
cause?: string;
}
interface RateLimited {
/**
* example:
* false
*/
success?: boolean;
/**
* example:
* Key throttle
*/
cause?: string;
/**
* example:
* true
*/
throttle?: boolean;
/**
* When this boolean exists and is true, the throttle occurring is a global throttle applied to all users
* example:
* true
*/
global?: boolean;
}
}
namespace Schemas {
interface ActiveBooster {
_id?: string;
/**
* example:
* ad8fefaa8351454bb739a4eaa872173f
*/
purchaserUuid?: string;
amount?: number;
originalLength?: number;
length?: number;
gameType?: number;
dateActivated?: number;
stacked?: string[] | null;
}
interface Booster {
_id?: string;
/**
* example:
* ad8fefaa8351454bb739a4eaa872173f
*/
purchaserUuid?: string;
amount?: number;
originalLength?: number;
length?: number;
gameType?: number;
dateActivated?: number;
}
/**
* Information about a specific game. When a field is not present you should fallback to the provided default if there is one, required fields will always exist.
* example:
* {
* "id": 58,
* "name": "Bed Wars",
* "databaseName": "Bedwars",
* "modeNames": {
* "BEDWARS_TWO_FOUR": "4v4",
* "BEDWARS_EIGHT_ONE": "Solo"
* }
* }
*/
interface Game {
/**
* The backend ID of the game.
* example:
* 1
*/
id: number;
/**
* The display name of the game.
* example:
* Bed Wars
*/
name: string;
/**
* The key used for database storage, such as for stats.
* example:
* Bedwars
*/
databaseName: string;
/**
* A map of mode key to display name
* example:
* {
* "solo_normal": "Solo",
* "team_normal": "Doubles"
* }
*/
modeNames?: unknown;
/**
* True if the game is retired and no longer playable.
*/
retired?: boolean;
/**
* True if the game is legacy and part of the Classic Lobby.
*/
legacy?: boolean;
}
/**
* Information about a player's house.
*/
interface HousingHouse {
/**
* The UUID of this house.
*/
uuid: string;
/**
* The UUID of the owner of this house.
*/
owner: string;
/**
* The name of this house, may contain Minecraft color symbols.
*/
name: string | null;
/**
* The time this house was created.
*/
createdAt: number;
/**
* The number of players in this house.
*/
players: number;
cookies: {
/**
* The current amount of cookies that this house has for the current week.
*/
current?: number;
};
}
interface QueuedBooster {
_id?: string;
/**
* example:
* ad8fefaa8351454bb739a4eaa872173f
*/
purchaserUuid?: string;
amount?: number;
originalLength?: number;
length?: number;
gameType?: number;
dateActivated?: number;
stacked?: boolean | null;
}
/**
* example:
* {
* "uuid": "409a1e0f261a49849493278d6cd9305a",
* "auctioneer": "347ef6c1daac45ed9d1fa02818cf0fb6",
* "profile_id": "347ef6c1daac45ed9d1fa02818cf0fb6",
* "coop": [
* "347ef6c1daac45ed9d1fa02818cf0fb6"
* ],
* "start": 1573760802637,
* "end": 1573761102637,
* "item_name": "Azure Bluet",
* "item_lore": "§f§lCOMMON",
* "extra": "Azure Bluet Red Rose",
* "category": "blocks",
* "tier": "COMMON",
* "starting_bid": 1,
* "item_bytes": {
* "type": 0,
* "data": "H4sIAAAAAAAAAB2NQQqCQBhGv1ErHaKu0KoLtGtnarRIhTpA/OGfDIwZ4wxUF/IeHiyyto/3eBKIIJQEIDx4qsJaYJK07m6FhG+p9hEdVMV7TXU3Wh+JWaW6h6ZXhODYGg5/LeZDfxt6nZR5XhYhgoIaxmKE8dsZXu20YwuJZfa0hmJrjbo6y134f8pTll5O5TnbbgAP05Qaqhk+8AVIrd2eoAAAAA=="
* },
* "claimed": true,
* "claimed_bidders": [],
* "highest_bid_amount": 7607533,
* "bids": [
* {
* "auction_id": "409a1e0f261a49849493278d6cd9305a",
* "bidder": "99748e629dee463892f68abf3a780094",
* "profile_id": "99748e629dee463892f68abf3a780094",
* "amount": 7607533,
* "timestamp": 1573760824844
* }
* ]
* }
*/
interface SkyBlockAuction {
_id?: string;
uuid?: string;
auctioneer?: string;
profile_id?: string;
coop?: string[];
start?: number;
end?: number;
item_name?: string;
item_lore?: string;
extra?: string;
category?: string;
tier?: string;
starting_bid?: number;
item_bytes?: {
type?: number;
data?: string;
};
claimed?: boolean;
claimed_bidders?: unknown[];
highest_bid_amount?: number;
bids?: {
auction_id?: string;
bidder?: string;
profile_id?: string;
amount?: number;
timestamp?: number;
}[];
}
interface SkyBlockFireSale {
/**
* The SkyBlock item ID for this sale
*/
item_id?: string;
/**
* The start time in unix milliseconds for the sale
*/
start?: number;
/**
* The end time in unix milliseconds for the sale
*/
end?: number;
/**
* The amount of items available for this sale
*/
amount?: number;
/**
* The price in Gems for this sale
*/
price?: number;
}
/**
* Information about a player's SkyBlock garden, the only guaranteed field is the `uuid` field.
*/
interface SkyBlockGarden {
/**
* The UUID of the profile for this garden.
*/
uuid: string;
commission_data?: {
/**
* A map of visitor identifier to visit count
* example:
* {
* "jerry": 1,
* "jacob": 2,
* "andrew": 3
* }
*/
visits?: unknown;
/**
* A map of visitor identifier to completed count
* example:
* {
* "jerry": 1,
* "jacob": 1,
* "andrew": 2
* }
*/
completed?: unknown;
total_completed?: number;
unique_npcs_served?: number;
};
/**
* example:
* {
* "organic_matter": 1772.8,
* "fuel_units": 17000,
* "compost_units": 0,
* "compost_items": 2,
* "conversion_ticks": 300,
* "last_save": 1721039418436,
* "upgrades": {
* "speed": 25,
* "multi_drop": 25,
* "fuel_cap": 22,
* "organic_matter_cap": 25,
* "cost_reduction": 25
* }
* }
*/
composter_data?: unknown;
/**
* example:
* {
* "liam": {
* "requirement": [
* {
* "original_item": "NETHER_STALK",
* "original_amount": 93995,
* "item": "MUTANT_NETHER_STALK",
* "amount": 4
* }
* ],
* "status": "NOT_STARTED",
* "position": 1
* },
* "lumberjack": {
* "requirement": [
* {
* "original_item": "POTATO_ITEM",
* "original_amount": 81380,
* "item": "ENCHANTED_BAKED_POTATO",
* "amount": 3
* }
* ],
* "status": "NOT_STARTED",
* "position": 2
* },
* "oringo": {
* "requirement": [
* {
* "original_item": "WHEAT",
* "original_amount": 26798,
* "item": "ENCHANTED_HAY_BLOCK",
* "amount": 21
* }
* ],
* "status": "NOT_STARTED",
* "position": 3
* },
* "rhys": {
* "requirement": [
* {
* "original_item": "JACK_O_LANTERN",
* "original_amount": 512,
* "item": "JACK_O_LANTERN",
* "amount": 512
* }
* ],
* "status": "NOT_STARTED",
* "position": 4
* },
* "fear_mongerer": {
* "requirement": [
* {
* "original_item": "PUMPKIN",
* "original_amount": 27709,
* "item": "POLISHED_PUMPKIN",
* "amount": 1
* }
* ],
* "status": "NOT_STARTED",
* "position": 5,
* "extra_rewards": [
* {
* "candy": "PURPLE_CANDY"
* }
* ]
* }
* }
*/
active_commissions?: unknown;
/**
* A map of resource ID to amount collected
* example:
* {
* "WHEAT": 100,
* "POTATO_ITEM": 100,
* "INK_SACK:3": 100
* }
*/
resources_collected?: unknown;
/**
* example:
* {
* "WHEAT": 1,
* "POTATO_ITEM": 2,
* "INK_SACK:3": 3
* }
*/
crop_upgrade_levels?: unknown;
/**
* example:
* [
* "beginner_1",
* "intermediate_3"
* ]
*/
unlocked_plots_ids?: string[];
garden_experience?: number;
unlocked_barn_skins?: string[];
selected_barn_skin?: string;
}
/**
* example:
* {
* "material": "LEATHER_CHESTPLATE",
* "color": "255,215,0",
* "name": "Farm Armor Chestplate",
* "category": "CHESTPLATE",
* "tier": "RARE",
* "stats": {
* "DEFENSE": 75,
* "HEALTH": 20
* },
* "npc_sell_price": 5200,
* "id": "FARM_ARMOR_CHESTPLATE"
* }
*/
interface SkyBlockItem {
/**
* The unique identifier for this item
*/
id?: string;
/**
* The Bukkit material enum value for the item
*/
material?: string;
/**
* The name of the item
*/
name?: string;
/**
* The rarity tier of the item
*/
tier?: "COMMON" | "UNCOMMON" | "RARE" | "EPIC" | "LEGENDARY" | "MYTHIC" | "SUPREME" | "SPECIAL" | "VERY_SPECIAL";
/**
* The color metadata to be applied to an item, usually leather armor pieces
*/
color?: string;
/**
* The skin value for a skull based item
*/
skin?: string;
}
interface SkyBlockMuseum {
value?: number;
appraisal?: boolean;
items?: unknown;
special?: unknown[];
}
interface SkyBlockProfile {
profile_id?: string;
/**
* A map of member UUIDs to member profiles objects
*/
members?: {
player_id?: string;
profile?: {
/**
* If this field exists, the member profile is marked as deleted
*/
deletion_notice?: {
timestamp?: number;
} | null;
};
};
/**
* The cute name of the profile, only provided on the profiles endpoint
*/
cute_name?: string | null;
/**
* Whether or not this is the currently selected profile, only provided on the profiles endpoint
*/
selected?: boolean | null;
community_upgrades?: unknown | null;
/**
* Information about the bank account for this profile, only present if the API banking setting is enabled
*/
banking?: {
balance?: number;
transactions?: {
timestamp?: number;
action?: "DEPOSIT" | "WITHDRAW";
initiator_name?: string;
amount?: number;
}[];
} | null;
/**
* The SkyBlock game mode of the profile, not present if normal mode
*/
game_mode?: "ironman" | "island" | "bingo";
}
}
}
export declare namespace Paths {
namespace V2Boosters {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
boosters?: (Components.Schemas.ActiveBooster | Components.Schemas.QueuedBooster)[];
boosterState?: {
decrementing?: boolean;
};
}
type $403 = Components.Responses.InvalidKey;
type $429 = Components.Responses.RateLimited;
}
}
}
namespace V2Counts {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
playerCount?: number;
/**
* example:
* {
* "GAME_TYPE": {
* "players": 2,
* "modes": {
* "mode_1": 1,
* "mode_2": 1
* }
* }
* }
*/
games?: unknown;
}
type $403 = Components.Responses.InvalidKey;
type $429 = Components.Responses.RateLimited;
}
}
}
namespace V2Guild {
namespace Get {
namespace Parameters {
type Id = string;
type Name = string;
type Player = string;
}
interface QueryParameters {
id?: Parameters.Id;
player?: Parameters.Player;
name?: Parameters.Name;
}
namespace Responses {
interface $200 {
success?: boolean;
guild?: unknown;
}
type $400 = Components.Responses.DataMissing;
type $403 = Components.Responses.InvalidKey;
type $429 = Components.Responses.RateLimited;
}
}
}
namespace V2HousingActive {
namespace Get {
namespace Responses {
type $200 = Components.Schemas.HousingHouse[];
type $403 = Components.Responses.InvalidKey;
type $429 = Components.Responses.RateLimited;
}
}
}
namespace V2HousingHouse {
namespace Get {
namespace Parameters {
type House = string;
}
interface QueryParameters {
house: Parameters.House;
}
namespace Responses {
type $200 = Components.Schemas.HousingHouse;
type $403 = Components.Responses.InvalidKey;
type $404 = Components.Responses.NoResult;
type $429 = Components.Responses.RateLimited;
}
}
}
namespace V2HousingHouses {
namespace Get {
namespace Parameters {
type Player = string;
}
interface QueryParameters {
player?: Parameters.Player;
}
namespace Responses {
type $200 = Components.Schemas.HousingHouse[];
type $403 = Components.Responses.InvalidKey;
type $429 = Components.Responses.RateLimited;
}
}
}
namespace V2Leaderboards {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
leaderboards?: unknown;
}
type $403 = Components.Responses.InvalidKey;
type $429 = Components.Responses.RateLimited;
type $503 = Components.Responses.NotPopulated;
}
}
}
namespace V2Player {
namespace Get {
namespace Parameters {
type Uuid = string;
}
interface QueryParameters {
uuid: Parameters.Uuid;
}
namespace Responses {
interface $200 {
/**
* example:
* true
*/
success?: boolean;
player?: {
/**
* example:
* 3fa85f6457174562b3fc2c963f66afa6
*/
uuid?: string;
displayname?: string | null;
rank?: "ADMIN" | "MODERATOR" | "HELPER" | "NORMAL";
packageRank?: "MVP_PLUS" | "MVP" | "VIP_PLUS" | "VIP" | "NONE";
newPackageRank?: "MVP_PLUS" | "MVP" | "VIP_PLUS" | "VIP" | "NONE";
monthlyPackageRank?: "SUPERSTAR" | "NONE";
firstLogin?: number | null;
lastLogin?: number | null;
lastLogout?: number | null;
stats?: unknown | null;
};
}
type $400 = Components.Responses.DataMissing;
type $403 = Components.Responses.InvalidKey;
type $429 = Components.Responses.RateLimited;
}
}
}
namespace V2Punishmentstats {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
watchdog_lastMinute?: number;
staff_rollingDaily?: number;
watchdog_total?: number;
watchdog_rollingDaily?: number;
staff_total?: number;
}
type $403 = Components.Responses.InvalidKey;
type $429 = Components.Responses.RateLimited;
type $503 = Components.Responses.NotPopulated;
}
}
}
namespace V2Recentgames {
namespace Get {
namespace Parameters {
type Uuid = string;
}
interface QueryParameters {
uuid: Parameters.Uuid;
}
namespace Responses {
interface $200 {
success?: boolean;
uuid?: string;
games?: {
date?: number;
gameType?: string;
mode?: string;
map?: string;
ended?: number;
}[];
}
type $400 = Components.Responses.DataMissing;
type $403 = Components.Responses.InvalidKey;
type $422 = Components.Responses.MalformedData;
type $429 = Components.Responses.RateLimited;
}
}
}
namespace V2ResourcesAchievements {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
lastUpdated?: number;
achievements?: unknown;
}
}
}
}
namespace V2ResourcesChallenges {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
lastUpdated?: number;
challenges?: unknown;
}
}
}
}
namespace V2ResourcesGames {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
lastUpdated?: number;
/**
* A map where the key is the backend name of the game
*/
games?: {
[name: string]: Components.Schemas.Game;
};
}
}
}
}
namespace V2ResourcesGuildsAchievements {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
lastUpdated?: number;
one_time?: unknown;
tiered?: unknown;
}
}
}
}
namespace V2ResourcesQuests {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
lastUpdated?: number;
quests?: unknown;
}
}
}
}
namespace V2ResourcesSkyblockBingo {
namespace Get {
namespace Responses {
interface $200 {
success: boolean;
/**
* The unix milliseconds timestamp of the last time this data was updated
*/
lastUpdated: number;
/**
* The current bingo event ID, increments by 1 for each bingo hosted
* example:
* 27
*/
id: number;
/**
* The display name for the current bingo event
* example:
* March 2024
*/
name: string;
/**
* The start time of the current bingo event in unix milliseconds
* example:
* 1709269200000
*/
start: number;
/**
* The end time of the current bingo event in unix milliseconds
* example:
* 1709874000000
*/
end: number;
/**
* The modifier for the current bingo event
* example:
* NORMAL
*/
modifier: "NORMAL" | "EXTREME" | "SECRET";
/**
* The goals for the current bingo event, as well as their progress
*/
goals: {
/**
* The backend ID for this goal
*/
id: string;
/**
* The user friendly display name for this goal
*/
name: string;
/**
* Description of this goal
*/
lore?: string;
/**
* The full description of this goal
*/
fullLore?: unknown[];
/**
* The tiers of this goal, if a global goal
*/
tiers?: number[];
/**
* The global progress of this goal
*/
progress?: number;
/**
* The required amount for this specific goal
*/
requiredAmount?: number;
}[];
}
}
}
}
namespace V2ResourcesSkyblockCollections {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
lastUpdated?: number;
/**
* example:
* 0.11.22
*/
version?: string;
collections?: unknown;
}
}
}
}
namespace V2ResourcesSkyblockElection {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
lastUpdated?: number;
/**
* Data regarding the current mayor
*/
mayor?: unknown;
/**
* Data regarding the current election, will not be provided if there is no open election ongoing
*/
current?: unknown;
}
}
}
}
namespace V2ResourcesSkyblockItems {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
lastUpdated?: number;
items?: Components.Schemas.SkyBlockItem[];
}
}
}
}
namespace V2ResourcesSkyblockSkills {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
lastUpdated?: number;
/**
* example:
* 0.11.22
*/
version?: string;
skills?: unknown;
}
}
}
}
namespace V2ResourcesVanityCompanions {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
lastUpdated?: number;
types?: unknown;
rarities?: unknown;
}
}
}
}
namespace V2ResourcesVanityPets {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
lastUpdated?: number;
types?: unknown;
rarities?: unknown;
}
}
}
}
namespace V2SkyblockAuction {
namespace Get {
namespace Parameters {
type Player = string;
type Profile = string;
type Uuid = string;
}
interface QueryParameters {
uuid?: Parameters.Uuid;
player?: Parameters.Player;
profile?: Parameters.Profile;
}
namespace Responses {
interface $200 {
success?: boolean;
auctions?: Components.Schemas.SkyBlockAuction[];
}
type $400 = Components.Responses.DataMissing;
type $403 = Components.Responses.InvalidKey;
type $422 = Components.Responses.MalformedData;
type $429 = Components.Responses.RateLimited;
}
}
}
namespace V2SkyblockAuctions {
namespace Get {
namespace Parameters {
type Page = number;
}
interface QueryParameters {
page?: Parameters.Page;
}
namespace Responses {
interface $200 {
success?: boolean;
page?: number;
/**
* example:
* 32
*/
totalPages?: number;
/**
* example:
* 31267
*/
totalAuctions?: number;
/**
* example:
* 1571065561345
*/
lastUpdated?: number;
auctions?: Components.Schemas.SkyBlockAuction[];
}
type $404 = Components.Responses.MissingPage;
type $422 = Components.Responses.InvalidPage;
type $503 = Components.Responses.NotPopulated;
}
}
}
namespace V2SkyblockAuctionsEnded {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
/**
* example:
* 1607456463916
*/
lastUpdated?: number;
auctions?: unknown[];
}
}
}
}
namespace V2SkyblockBazaar {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
/**
* example:
* 1590854517479
*/
lastUpdated?: number;
/**
* example:
* {
* "INK_SACK:3": {
* "product_id": "INK_SACK:3",
* "sell_summary": [
* {
* "amount": 20569,
* "pricePerUnit": 4.2,
* "orders": 1
* },
* {
* "amount": 140326,
* "pricePerUnit": 3.8,
* "orders": 2
* }
* ],
* "buy_summary": [
* {
* "amount": 640,
* "pricePerUnit": 4.8,
* "orders": 1
* },
* {
* "amount": 640,
* "pricePerUnit": 4.9,
* "orders": 1
* },
* {
* "amount": 25957,
* "pricePerUnit": 5,
* "orders": 3
* }
* ],
* "quick_status": {
* "productId": "INK_SACK:3",
* "sellPrice": 4.2,
* "sellVolume": 409855,
* "sellMovingWeek": 8301075,
* "sellOrders": 11,
* "buyPrice": 4.99260315136572,
* "buyVolume": 1254854,
* "buyMovingWeek": 5830656,
* "buyOrders": 85
* }
* }
* }
*/
products?: unknown;
}
type $503 = Components.Responses.NotPopulated;
}
}
}
namespace V2SkyblockBingo {
namespace Get {
namespace Parameters {
type Uuid = string;
}
interface QueryParameters {
uuid?: Parameters.Uuid;
}
namespace Responses {
interface $200 {
success?: boolean;
events?: {
/**
* The id for this event
* example:
* 2
*/
key: number;
/**
* The amount of points earned
* example:
* 117
*/
points: number;
/**
* The completed goal IDs
*/
completed_goals: string[];
}[];
}
type $400 = Components.Responses.DataMissing;
type $403 = Components.Responses.InvalidKey;
interface $404 {
/**
* example:
* false
*/
success?: boolean;
/**
* example:
* No bingo data could be found
*/
cause?: string;
}
type $422 = Components.Responses.MalformedData;
type $429 = Components.Responses.RateLimited;
}
}
}
namespace V2SkyblockFiresales {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
sales?: Components.Schemas.SkyBlockFireSale[];
}
}
}
}
namespace V2SkyblockGarden {
namespace Get {
namespace Parameters {
type Profile = string;
}
interface QueryParameters {
profile?: Parameters.Profile;
}
namespace Responses {
interface $200 {
success?: boolean;
garden?: Components.Schemas.SkyBlockGarden;
}
type $403 = Components.Responses.InvalidKey;
type $404 = Components.Responses.NoResult;
type $422 = Components.Responses.MalformedData;
type $429 = Components.Responses.RateLimited;
}
}
}
namespace V2SkyblockMuseum {
namespace Get {
namespace Parameters {
type Profile = string;
}
interface QueryParameters {
profile?: Parameters.Profile;
}
namespace Responses {
interface $200 {
success?: boolean;
profile?: Components.Schemas.SkyBlockMuseum;
}
type $403 = Components.Responses.InvalidKey;
type $422 = Components.Responses.MalformedData;
type $429 = Components.Responses.RateLimited;
}
}
}
namespace V2SkyblockNews {
namespace Get {
namespace Responses {
interface $200 {
success?: boolean;
items?: unknown;
}
type $403 = Components.Responses.InvalidKey;
type $429 = Components.Responses.RateLimited;
}
}
}
namespace V2SkyblockProfile {
namespace Get {
namespace Parameters {
type Profile = string;
}
interface QueryParameters {
profile?: Parameters.Profile;
}
namespace Responses {
interface $200 {
success?: boolean;
profile?: Components.Schemas.SkyBlockProfile;
}
type $400 = Components.Responses.DataMissing;
type $403 = Components.Responses.InvalidKey;
type $422 = Components.Responses.MalformedData;
type $429 = Components.Responses.RateLimited;
}
}
}
namespace V2SkyblockProfiles {
namespace Get {
namespace Parameters {
type Uuid = string;
}
interface QueryParameters {
uuid?: Parameters.Uuid;
}
namespace Responses {
interface $200 {
success?: boolean;
profiles?: Components.Schemas.SkyBlockProfile[];
}
type $400 = Components.Responses.DataMissing;
type $403 = Components.Responses.InvalidKey;
type $422 = Components.Responses.MalformedData;
type $429 = Components.Responses.RateLimited;
}
}
}
namespace V2Status {
namespace Get {
namespace Parameters {
type Uuid = string;
}
interface QueryParameters {
uuid: Parameters.Uuid;
}
namespace Responses {
interface $200 {
success?: boolean;
/**
* example:
* ad8fefaa8351454bb739a4eaa872173f
*/
uuid?: string;
session?: {
online?: boolean;
gameType?: string;
mode?: string;
map?: string;
};
}
type $400 = Components.Responses.DataMissing;
type $403 = Components.Responses.InvalidKey;
type $429 = Components.Responses.RateLimited;
}
}
}
}