UNPKG

@yeci226/hoyoapi

Version:

HoYoAPI is an unofficial API Wrapper library developed to facilitate communication with the official HoYoLab API.

75 lines (74 loc) 4.67 kB
import { GamesEnum } from '../client/hoyolab'; export declare const BBS_API = "https://bbs-api-os.hoyolab.com"; export declare const ACCOUNT_API = "https://api-account-os.hoyolab.com"; export declare const HK4E_API = "https://sg-hk4e-api.hoyolab.com"; export declare const HKRPG_API = "https://sg-hkrpg-api.hoyoverse.com"; export declare const PUBLIC_API = "https://sg-public-api.hoyolab.com"; export declare const DEFAULT_REFERER = "https://hoyolab.com"; export declare const TAKUMI_API = "https://api-os-takumi.mihoyo.com"; export declare const NAP_API = "https://sg-public-api.hoyolab.com"; export declare const APP_LOGIN_URL = "https://sg-public-api.hoyoverse.com/account/ma-passport/api/appLoginByPassword"; export declare const APP_TOKEN_EXCHANGE_URL = "https://sg-public-api.hoyoverse.com/account/ma-passport/token/getBySToken"; export declare const SEND_VERIFICATION_CODE_URL = "https://sg-public-api.hoyoverse.com/account/ma-verifier/api/createEmailCaptchaByActionTicket"; export declare const VERIFY_ACTION_TICKET_URL = "https://sg-public-api.hoyolab.com/account/ma-verifier/api/verifyActionTicketPartly"; export declare const USER_GAMES_LIST: string; export declare const GAME_RECORD_CARD_API: string; export declare const DAILY_INFO_API: (game: GamesEnum) => string; export declare const DAILY_REWARD_API: (game: GamesEnum) => string; export declare const DAILY_CLAIM_API: (game: GamesEnum) => string; export declare const GENSHIN_REDEEM_CLAIM_API = "https://public-operation-hk4e.hoyoverse.com/common/apicdkey/api/webExchangeCdkey"; export declare const HSR_REDEEM_CLAIM_API = "https://public-operation-hkrpg.hoyoverse.com/common/apicdkey/api/webExchangeCdkey"; export declare const HI_REDEEM_CLAIM_API: string; export declare const ZZZ_REDEEM_CLAIM_API = "https://public-operation-nap.hoyoverse.com/common/apicdkey/api/webExchangeCdkey"; export declare const GENSHIN_RECORD_INDEX_API: string; export declare const GENSHIN_RECORD_CHARACTER_API: string; export declare const GENSHIN_RECORD_AVATAR_BASIC_INFO_API: string; export declare const GENSHIN_RECORD_SPIRAL_ABYSS_API: string; export declare const GENSHIN_RECORD_DAILY_NOTE_API: string; export declare const GENSHIN_DIARY_LIST_API: string; export declare const GENSHIN_DIARY_DETAIL_API: string; export declare const GENSHIN_TCG_BASICINFO: string; export declare const GENSHIN_TCG_CARDLIST: string; export declare const GENSHIN_TCG_MATCHLIST: string; export declare const GENSHIN_TCG_CHALLANGE_SCHEDULE: string; export declare const GENSHIN_TCG_CHALLANGE_RECORD: string; export declare const GENSHIN_TCG_CHALLANGE_DECK: string; export declare const HSR_RECORD_CHARACTER_API: string; export declare const HSR_RECORD_INDEX_API: string; export declare const HSR_RECORD_NOTE_API: string; export declare const HSR_RECORD_WIDGET_API: string; export declare const HSR_RECORD_FORGOTTEN_HALL_API: string; export declare const HSR_RECORD_PURE_FICTION_API: string; export declare const HSR_RECORD_APOCALYPSE_PHANTOM_API: string; export declare const HSR_RECORD_ANOMALY_ARBITRATION_API: string; export declare const HSR_DIARY_LIST_API: string; export declare const HSR_DIARY_DETAIL_API: string; export declare const ZZZ_RECORD_INDEX_API: string; export declare const ZZZ_BANBOO_API: string; export declare const ZZZ_RECORD_CHARACTER_LIST_API: string; export declare const ZZZ_RECORD_CHARACTER_API: string; export declare const ZZZ_RECORD_NOTE_API: string; export declare const ZZZ_RECORD_SHIYU_DEFENSE_API: string; export declare const ZZZ_RECORD_DEADLY_ASSAULT_API: string; export declare const ZZZ_RECORD_HADAL_API: string; export declare const HI_RECORD_INDEX_API: string; export declare const HI_RECORD_CHARACTER_API: string; export declare const HI_RECORD_ABYSS_API: string; export declare const HI_RECORD_ELYSIAN_API: string; export declare const HI_RECORD_ARENA_API: string; export declare const MIMO_BASE_API: string; export declare const MIMO_INDEX_API: string; export declare const MIMO_TASK_LIST_API: string; export declare const MIMO_FINISH_TASK_API: string; export declare const MIMO_RECEIVE_POINT_API: string; export declare const MIMO_EXCHANGE_LIST_API: string; export declare const MIMO_EXCHANGE_API: string; export declare const MIMO_LOTTERY_INFO_API: string; export declare const MIMO_LOTTERY_API: string; export declare const WIKI_BASE_API = "https://sg-wiki-api-static.hoyolab.com/hoyowiki"; export declare const HSR_WIKI_SEARCH_API: string; export declare const HSR_WIKI_ENTRY_API: string; export declare const HSR_WIKI_ENTRY_LIST_API: string; export declare const ZZZ_WIKI_SEARCH_API: string; export declare const ZZZ_WIKI_ENTRY_API: string; export declare const ZZZ_WIKI_ENTRY_LIST_API: string;