(Feat): Added a minimal pikanetwork client

This commit is contained in:
2025-12-01 13:08:01 +00:00
commit 101d093965
68 changed files with 18007 additions and 0 deletions

63
src/api/pika/index.ts Normal file
View File

@@ -0,0 +1,63 @@
/**
* PikaNetwork API Module
* Exports all API-related types and classes
* Based on pikanetwork.js but rewritten in TypeScript with improvements
*/
export { PikaNetworkAPI } from './client.ts';
export { PikaCache } from './cache.ts';
export type {
// Profile types
ProfileResponse,
Rank,
PlayerRank,
Friend,
ClanInfo,
ClanLeveling,
ClanMember,
ClanMemberUser,
ClanOwner,
// Clan types
ClanResponse,
// Leaderboard types
LeaderboardResponse,
LeaderboardEntry,
LeaderboardEntryValue,
// Parsed stats types
BedWarsStats,
SkyWarsStats,
// Options and enums
GameMode,
Interval,
BedWarsMode,
SkyWarsMode,
PikaAPIOptions,
// Batch types
BatchLeaderboardResult,
MinimalLeaderboardData,
// Error types
PikaAPIError,
// Punishment types
Punishment,
PunishmentType,
// Staff types
StaffList,
StaffRole,
// Vote types
VoteEntry,
VoteLeaderboard,
// Server types
ServerStatus,
// Total leaderboard types
TotalLeaderboardEntry,
TotalLeaderboardOptions,
// Extended profile types
JoinInfo,
MiscInfo,
} from './types.ts';
export {
isProfileResponse,
isClanResponse,
isLeaderboardResponse,
} from './types.ts';