osu-api-extended
Version:
Advanced osu! api wrapper cover all V2 and V1 endpoints, and provide useful tools
140 lines (139 loc) • 3.15 kB
TypeScript
export interface SearchWiki {
user: User;
wiki_page: WikiPage;
}
export interface User {
data: UserData[];
total: number;
}
export interface UserData {
avatar_url: string;
country_code: string;
default_group: string;
id: number;
is_active: boolean;
is_bot: boolean;
is_deleted: boolean;
is_online: boolean;
is_supporter: boolean;
last_visit?: string;
pm_friends_only: boolean;
profile_colour: any;
username: string;
}
export interface WikiPage {
data: WikiData[];
total: number;
}
export interface WikiData {
available_locales: string[];
layout: string;
locale: string;
markdown: string;
path: string;
subtitle?: string;
tags: string[];
title: string;
}
export interface SearchBeatmaps {
beatmapsets: Beatmapset[];
search: Search;
recommended_difficulty: any;
error: any;
total: number;
cursor: Cursor;
cursor_string: string;
}
export interface Beatmapset {
artist: string;
artist_unicode: string;
covers: Covers;
creator: string;
favourite_count: number;
hype: any;
id: number;
nsfw: boolean;
offset: number;
play_count: number;
preview_url: string;
source: string;
spotlight: boolean;
status: string;
title: string;
title_unicode: string;
track_id?: number;
user_id: number;
video: boolean;
bpm: number;
can_be_hyped: boolean;
deleted_at: any;
discussion_enabled: boolean;
discussion_locked: boolean;
is_scoreable: boolean;
last_updated: string;
legacy_thread_url: string;
nominations_summary: NominationsSummary;
ranked: number;
ranked_date: string;
storyboard: boolean;
submitted_date: string;
tags: string;
availability: Availability;
beatmaps: Beatmap[];
pack_tags: string[];
}
export interface Covers {
cover: string;
"cover@2x": string;
card: string;
"card@2x": string;
list: string;
"list@2x": string;
slimcover: string;
"slimcover@2x": string;
}
export interface NominationsSummary {
current: number;
required: number;
}
export interface Availability {
download_disabled: boolean;
more_information: any;
}
export interface Beatmap {
beatmapset_id: number;
difficulty_rating: number;
id: number;
mode: string;
status: string;
total_length: number;
user_id: number;
version: string;
accuracy: number;
ar: number;
bpm: number;
convert: boolean;
count_circles: number;
count_sliders: number;
count_spinners: number;
cs: number;
deleted_at: any;
drain: number;
hit_length: number;
is_scoreable: boolean;
last_updated: string;
mode_int: number;
passcount: number;
playcount: number;
ranked: number;
url: string;
checksum: string;
max_combo: number;
}
export interface Search {
sort: string;
}
export interface Cursor {
approved_date: number;
id: number;
}