uva-wrapper 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. package/bun.lock +781 -0
  2. package/dist/account/index.d.ts +8 -0
  3. package/dist/account/index.js +13 -0
  4. package/dist/account/v1/getAccount.d.ts +16 -0
  5. package/dist/account/v1/getAccount.js +18 -0
  6. package/dist/account/v1/getAccountByPuuid.d.ts +16 -0
  7. package/dist/account/v1/getAccountByPuuid.js +18 -0
  8. package/dist/account/v1/index.d.ts +19 -0
  9. package/dist/account/v1/index.js +43 -0
  10. package/dist/account/v2/getAccount.d.ts +12 -0
  11. package/dist/account/v2/getAccount.js +18 -0
  12. package/dist/account/v2/getAccountByPuuid.d.ts +12 -0
  13. package/dist/account/v2/getAccountByPuuid.js +18 -0
  14. package/dist/account/v2/index.d.ts +19 -0
  15. package/dist/account/v2/index.js +43 -0
  16. package/dist/constants/api.const.d.ts +1 -0
  17. package/dist/constants/api.const.js +4 -0
  18. package/dist/crosshair/index.d.ts +6 -0
  19. package/dist/crosshair/index.js +11 -0
  20. package/dist/crosshair/v1/generateCrosshairImage.d.ts +1 -0
  21. package/dist/crosshair/v1/generateCrosshairImage.js +18 -0
  22. package/dist/crosshair/v1/index.d.ts +10 -0
  23. package/dist/crosshair/v1/index.js +29 -0
  24. package/dist/esports/index.d.ts +6 -0
  25. package/dist/esports/index.js +11 -0
  26. package/dist/esports/v1/getEsportsSchedule.d.ts +35 -0
  27. package/dist/esports/v1/getEsportsSchedule.js +18 -0
  28. package/dist/esports/v1/index.d.ts +11 -0
  29. package/dist/esports/v1/index.js +30 -0
  30. package/dist/index.d.ts +38 -0
  31. package/dist/index.js +43 -0
  32. package/dist/leaderboard/index.d.ts +10 -0
  33. package/dist/leaderboard/index.js +15 -0
  34. package/dist/leaderboard/v1/getLeaderboard.d.ts +3 -0
  35. package/dist/leaderboard/v1/getLeaderboard.js +18 -0
  36. package/dist/leaderboard/v1/index.d.ts +13 -0
  37. package/dist/leaderboard/v1/index.js +32 -0
  38. package/dist/leaderboard/v2/getLeaderboard.d.ts +24 -0
  39. package/dist/leaderboard/v2/getLeaderboard.js +18 -0
  40. package/dist/leaderboard/v2/index.d.ts +14 -0
  41. package/dist/leaderboard/v2/index.js +33 -0
  42. package/dist/leaderboard/v3/getLeaderboard.d.ts +34 -0
  43. package/dist/leaderboard/v3/getLeaderboard.js +18 -0
  44. package/dist/leaderboard/v3/index.d.ts +23 -0
  45. package/dist/leaderboard/v3/index.js +35 -0
  46. package/dist/lib/request-handler.d.ts +4 -0
  47. package/dist/lib/request-handler.js +24 -0
  48. package/dist/match-details/index.d.ts +8 -0
  49. package/dist/match-details/index.js +13 -0
  50. package/dist/match-details/v2/getMatchDetails.d.ts +483 -0
  51. package/dist/match-details/v2/getMatchDetails.js +18 -0
  52. package/dist/match-details/v2/index.d.ts +10 -0
  53. package/dist/match-details/v2/index.js +29 -0
  54. package/dist/match-details/v4/getMatchDetails.d.ts +280 -0
  55. package/dist/match-details/v4/getMatchDetails.js +18 -0
  56. package/dist/match-details/v4/index.d.ts +11 -0
  57. package/dist/match-details/v4/index.js +30 -0
  58. package/dist/matches/index.d.ts +8 -0
  59. package/dist/matches/index.js +13 -0
  60. package/dist/matches/v3/getMatchesByName.d.ts +482 -0
  61. package/dist/matches/v3/getMatchesByName.js +22 -0
  62. package/dist/matches/v3/getMatchesByPuuid.d.ts +482 -0
  63. package/dist/matches/v3/getMatchesByPuuid.js +22 -0
  64. package/dist/matches/v3/index.d.ts +25 -0
  65. package/dist/matches/v3/index.js +49 -0
  66. package/dist/matches/v4/getMatchesByName.d.ts +280 -0
  67. package/dist/matches/v4/getMatchesByName.js +23 -0
  68. package/dist/matches/v4/getMatchesByPuuid.d.ts +280 -0
  69. package/dist/matches/v4/getMatchesByPuuid.js +23 -0
  70. package/dist/matches/v4/index.d.ts +29 -0
  71. package/dist/matches/v4/index.js +53 -0
  72. package/dist/misc/index.d.ts +6 -0
  73. package/dist/misc/index.js +11 -0
  74. package/dist/misc/v1/getContent.d.ts +124 -0
  75. package/dist/misc/v1/getContent.js +18 -0
  76. package/dist/misc/v1/getGameVersion.d.ts +10 -0
  77. package/dist/misc/v1/getGameVersion.js +18 -0
  78. package/dist/misc/v1/getQueueStatus.d.ts +48 -0
  79. package/dist/misc/v1/getQueueStatus.js +18 -0
  80. package/dist/misc/v1/getRawRiotAPIData.d.ts +1 -0
  81. package/dist/misc/v1/getRawRiotAPIData.js +21 -0
  82. package/dist/misc/v1/getStatus.d.ts +53 -0
  83. package/dist/misc/v1/getStatus.js +18 -0
  84. package/dist/misc/v1/getWebsiteContent.d.ts +11 -0
  85. package/dist/misc/v1/getWebsiteContent.js +18 -0
  86. package/dist/misc/v1/getWebsiteEntryById.d.ts +11 -0
  87. package/dist/misc/v1/getWebsiteEntryById.js +18 -0
  88. package/dist/misc/v1/index.d.ts +52 -0
  89. package/dist/misc/v1/index.js +101 -0
  90. package/dist/mmr/index.d.ts +10 -0
  91. package/dist/mmr/index.js +15 -0
  92. package/dist/mmr/v1/getMMRByName.d.ts +17 -0
  93. package/dist/mmr/v1/getMMRByName.js +18 -0
  94. package/dist/mmr/v1/getMMRByPuuid.d.ts +17 -0
  95. package/dist/mmr/v1/getMMRByPuuid.js +18 -0
  96. package/dist/mmr/v1/index.d.ts +19 -0
  97. package/dist/mmr/v1/index.js +43 -0
  98. package/dist/mmr/v2/getMMRByName.d.ts +28 -0
  99. package/dist/mmr/v2/getMMRByName.js +18 -0
  100. package/dist/mmr/v2/getMMRByPuuid.d.ts +28 -0
  101. package/dist/mmr/v2/getMMRByPuuid.js +18 -0
  102. package/dist/mmr/v2/index.d.ts +19 -0
  103. package/dist/mmr/v2/index.js +43 -0
  104. package/dist/mmr/v3/getMMRByName.d.ts +63 -0
  105. package/dist/mmr/v3/getMMRByName.js +18 -0
  106. package/dist/mmr/v3/getMMRByPuuid.d.ts +63 -0
  107. package/dist/mmr/v3/getMMRByPuuid.js +18 -0
  108. package/dist/mmr/v3/index.d.ts +21 -0
  109. package/dist/mmr/v3/index.js +45 -0
  110. package/dist/mmr-history/index.d.ts +8 -0
  111. package/dist/mmr-history/index.js +13 -0
  112. package/dist/mmr-history/v1/getMMRHistoryByName.d.ts +26 -0
  113. package/dist/mmr-history/v1/getMMRHistoryByName.js +18 -0
  114. package/dist/mmr-history/v1/getMMRHistoryByPuuid.d.ts +26 -0
  115. package/dist/mmr-history/v1/getMMRHistoryByPuuid.js +18 -0
  116. package/dist/mmr-history/v1/index.d.ts +25 -0
  117. package/dist/mmr-history/v1/index.js +43 -0
  118. package/dist/mmr-history/v2/getMMRHistoryByName.d.ts +29 -0
  119. package/dist/mmr-history/v2/getMMRHistoryByName.js +18 -0
  120. package/dist/mmr-history/v2/getMMRHistoryByPuuid.d.ts +29 -0
  121. package/dist/mmr-history/v2/getMMRHistoryByPuuid.js +18 -0
  122. package/dist/mmr-history/v2/index.d.ts +21 -0
  123. package/dist/mmr-history/v2/index.js +45 -0
  124. package/dist/premier/index.d.ts +6 -0
  125. package/dist/premier/index.js +11 -0
  126. package/dist/premier/v1/getPremierTeamById.d.ts +33 -0
  127. package/dist/premier/v1/getPremierTeamById.js +18 -0
  128. package/dist/premier/v1/getPremierTeamByName.d.ts +33 -0
  129. package/dist/premier/v1/getPremierTeamByName.js +18 -0
  130. package/dist/premier/v1/index.d.ts +30 -0
  131. package/dist/premier/v1/index.js +59 -0
  132. package/dist/premier/v1/searchPremierTeams.d.ts +23 -0
  133. package/dist/premier/v1/searchPremierTeams.js +18 -0
  134. package/dist/premier-history/index.d.ts +6 -0
  135. package/dist/premier-history/index.js +11 -0
  136. package/dist/premier-history/v1/getPremierTeamHistoryById.d.ts +17 -0
  137. package/dist/premier-history/v1/getPremierTeamHistoryById.js +18 -0
  138. package/dist/premier-history/v1/getPremierTeamHistoryByName.d.ts +17 -0
  139. package/dist/premier-history/v1/getPremierTeamHistoryByName.js +18 -0
  140. package/dist/premier-history/v1/index.d.ts +19 -0
  141. package/dist/premier-history/v1/index.js +43 -0
  142. package/dist/premier-leaderboard/index.d.ts +6 -0
  143. package/dist/premier-leaderboard/index.js +11 -0
  144. package/dist/premier-leaderboard/v1/getPremierLeaderboard.d.ts +23 -0
  145. package/dist/premier-leaderboard/v1/getPremierLeaderboard.js +18 -0
  146. package/dist/premier-leaderboard/v1/index.d.ts +13 -0
  147. package/dist/premier-leaderboard/v1/index.js +32 -0
  148. package/dist/premium/index.d.ts +6 -0
  149. package/dist/premium/index.js +11 -0
  150. package/dist/premium/v1/addPremiumWebhookUser.d.ts +19 -0
  151. package/dist/premium/v1/addPremiumWebhookUser.js +21 -0
  152. package/dist/premium/v1/deletePremiumWebhookUser.d.ts +4 -0
  153. package/dist/premium/v1/deletePremiumWebhookUser.js +18 -0
  154. package/dist/premium/v1/getPremiumWebhookSettings.d.ts +1 -0
  155. package/dist/premium/v1/getPremiumWebhookSettings.js +18 -0
  156. package/dist/premium/v1/index.d.ts +34 -0
  157. package/dist/premium/v1/index.js +66 -0
  158. package/dist/premium/v1/updatePremiumWebhookUser.d.ts +1 -0
  159. package/dist/premium/v1/updatePremiumWebhookUser.js +18 -0
  160. package/dist/store/getFeaturedStoreItems.d.ts +53 -0
  161. package/dist/store/getFeaturedStoreItems.js +18 -0
  162. package/dist/store/getStoreOffers.d.ts +30 -0
  163. package/dist/store/getStoreOffers.js +18 -0
  164. package/dist/store/index.d.ts +16 -0
  165. package/dist/store/index.js +40 -0
  166. package/dist/stored-matches/index.d.ts +6 -0
  167. package/dist/stored-matches/index.js +11 -0
  168. package/dist/stored-matches/v1/getStoredMatchesByName.d.ts +56 -0
  169. package/dist/stored-matches/v1/getStoredMatchesByName.js +18 -0
  170. package/dist/stored-matches/v1/getStoredMatchesByPuuid.d.ts +56 -0
  171. package/dist/stored-matches/v1/getStoredMatchesByPuuid.js +18 -0
  172. package/dist/stored-matches/v1/index.d.ts +41 -0
  173. package/dist/stored-matches/v1/index.js +49 -0
  174. package/dist/stored-mmr-history/index.d.ts +8 -0
  175. package/dist/stored-mmr-history/index.js +13 -0
  176. package/dist/stored-mmr-history/v1/getStoredMMRHistoryByName.d.ts +28 -0
  177. package/dist/stored-mmr-history/v1/getStoredMMRHistoryByName.js +18 -0
  178. package/dist/stored-mmr-history/v1/getStoredMMRHistoryByPuuid.d.ts +28 -0
  179. package/dist/stored-mmr-history/v1/getStoredMMRHistoryByPuuid.js +18 -0
  180. package/dist/stored-mmr-history/v1/index.d.ts +37 -0
  181. package/dist/stored-mmr-history/v1/index.js +45 -0
  182. package/dist/stored-mmr-history/v2/getStoredMMRHistoryByName.d.ts +30 -0
  183. package/dist/stored-mmr-history/v2/getStoredMMRHistoryByName.js +18 -0
  184. package/dist/stored-mmr-history/v2/getStoredMMRHistoryByPuuid.d.ts +30 -0
  185. package/dist/stored-mmr-history/v2/getStoredMMRHistoryByPuuid.js +18 -0
  186. package/dist/stored-mmr-history/v2/index.d.ts +39 -0
  187. package/dist/stored-mmr-history/v2/index.js +47 -0
  188. package/dist/types/response.type.d.ts +15 -0
  189. package/dist/types/response.type.js +2 -0
  190. package/dist/vlr/index.d.ts +6 -0
  191. package/dist/vlr/index.js +11 -0
  192. package/dist/vlr/v2/getVlrEsportsEvents.d.ts +14 -0
  193. package/dist/vlr/v2/getVlrEsportsEvents.js +18 -0
  194. package/dist/vlr/v2/getVlrEventMatches.d.ts +14 -0
  195. package/dist/vlr/v2/getVlrEventMatches.js +18 -0
  196. package/dist/vlr/v2/getVlrMatchDetails.d.ts +157 -0
  197. package/dist/vlr/v2/getVlrMatchDetails.js +18 -0
  198. package/dist/vlr/v2/getVlrPlayer.d.ts +64 -0
  199. package/dist/vlr/v2/getVlrPlayer.js +18 -0
  200. package/dist/vlr/v2/getVlrPlayerMatches.d.ts +22 -0
  201. package/dist/vlr/v2/getVlrPlayerMatches.js +20 -0
  202. package/dist/vlr/v2/getVlrTeam.d.ts +39 -0
  203. package/dist/vlr/v2/getVlrTeam.js +18 -0
  204. package/dist/vlr/v2/getVlrTeamMatches.d.ts +20 -0
  205. package/dist/vlr/v2/getVlrTeamMatches.js +20 -0
  206. package/dist/vlr/v2/getVlrTeamTransactions.d.ts +14 -0
  207. package/dist/vlr/v2/getVlrTeamTransactions.js +18 -0
  208. package/dist/vlr/v2/index.d.ts +57 -0
  209. package/dist/vlr/v2/index.js +111 -0
  210. package/package.json +36 -0
  211. package/src/account/index.ts +12 -0
  212. package/src/account/v1/getAccount.ts +31 -0
  213. package/src/account/v1/getAccountByPuuid.ts +30 -0
  214. package/src/account/v1/index.ts +27 -0
  215. package/src/account/v2/getAccount.ts +27 -0
  216. package/src/account/v2/getAccountByPuuid.ts +26 -0
  217. package/src/account/v2/index.ts +27 -0
  218. package/src/constants/api.const.ts +1 -0
  219. package/src/crosshair/index.ts +9 -0
  220. package/src/crosshair/v1/generateCrosshairImage.ts +10 -0
  221. package/src/crosshair/v1/index.ts +14 -0
  222. package/src/esports/index.ts +9 -0
  223. package/src/esports/v1/getEsportsSchedule.ts +49 -0
  224. package/src/esports/v1/index.ts +15 -0
  225. package/src/index.ts +57 -0
  226. package/src/leaderboard/index.ts +15 -0
  227. package/src/leaderboard/v1/getLeaderboard.ts +17 -0
  228. package/src/leaderboard/v1/index.ts +17 -0
  229. package/src/leaderboard/v2/getLeaderboard.ts +40 -0
  230. package/src/leaderboard/v2/index.ts +31 -0
  231. package/src/leaderboard/v3/getLeaderboard.ts +57 -0
  232. package/src/leaderboard/v3/index.ts +37 -0
  233. package/src/lib/request-handler.ts +29 -0
  234. package/src/match-details/index.ts +12 -0
  235. package/src/match-details/v2/getMatchDetails.ts +495 -0
  236. package/src/match-details/v2/index.ts +14 -0
  237. package/src/match-details/v4/getMatchDetails.ts +294 -0
  238. package/src/match-details/v4/index.ts +15 -0
  239. package/src/matches/index.ts +12 -0
  240. package/src/matches/v3/getMatchesByName.ts +508 -0
  241. package/src/matches/v3/getMatchesByPuuid.ts +507 -0
  242. package/src/matches/v3/index.ts +61 -0
  243. package/src/matches/v4/getMatchesByName.ts +305 -0
  244. package/src/matches/v4/getMatchesByPuuid.ts +304 -0
  245. package/src/matches/v4/index.ts +73 -0
  246. package/src/misc/index.ts +9 -0
  247. package/src/misc/v1/getContent.ts +133 -0
  248. package/src/misc/v1/getGameVersion.ts +19 -0
  249. package/src/misc/v1/getQueueStatus.ts +57 -0
  250. package/src/misc/v1/getRawRiotAPIData.ts +20 -0
  251. package/src/misc/v1/getStatus.ts +62 -0
  252. package/src/misc/v1/getWebsiteContent.ts +24 -0
  253. package/src/misc/v1/getWebsiteEntryById.ts +24 -0
  254. package/src/misc/v1/index.ts +93 -0
  255. package/src/mmr/index.ts +15 -0
  256. package/src/mmr/v1/getMMRByName.ts +31 -0
  257. package/src/mmr/v1/getMMRByPuuid.ts +30 -0
  258. package/src/mmr/v1/index.ts +27 -0
  259. package/src/mmr/v2/getMMRByName.ts +42 -0
  260. package/src/mmr/v2/getMMRByPuuid.ts +41 -0
  261. package/src/mmr/v2/index.ts +27 -0
  262. package/src/mmr/v3/getMMRByName.ts +72 -0
  263. package/src/mmr/v3/getMMRByPuuid.ts +71 -0
  264. package/src/mmr/v3/index.ts +34 -0
  265. package/src/mmr-history/index.ts +12 -0
  266. package/src/mmr-history/v1/getMMRHistoryByName.ts +42 -0
  267. package/src/mmr-history/v1/getMMRHistoryByPuuid.ts +41 -0
  268. package/src/mmr-history/v1/index.ts +27 -0
  269. package/src/mmr-history/v2/getMMRHistoryByName.ts +44 -0
  270. package/src/mmr-history/v2/getMMRHistoryByPuuid.ts +43 -0
  271. package/src/mmr-history/v2/index.ts +45 -0
  272. package/src/premier/index.ts +9 -0
  273. package/src/premier/v1/getPremierTeamById.ts +47 -0
  274. package/src/premier/v1/getPremierTeamByName.ts +48 -0
  275. package/src/premier/v1/index.ts +53 -0
  276. package/src/premier/v1/searchPremierTeams.ts +39 -0
  277. package/src/premier-history/index.ts +9 -0
  278. package/src/premier-history/v1/getPremierTeamHistoryById.ts +31 -0
  279. package/src/premier-history/v1/getPremierTeamHistoryByName.ts +32 -0
  280. package/src/premier-history/v1/index.ts +27 -0
  281. package/src/premier-leaderboard/index.ts +9 -0
  282. package/src/premier-leaderboard/v1/getPremierLeaderboard.ts +38 -0
  283. package/src/premier-leaderboard/v1/index.ts +28 -0
  284. package/src/premium/index.ts +9 -0
  285. package/src/premium/v1/addPremiumWebhookUser.ts +37 -0
  286. package/src/premium/v1/deletePremiumWebhookUser.ts +14 -0
  287. package/src/premium/v1/getPremiumWebhookSettings.ts +10 -0
  288. package/src/premium/v1/index.ts +61 -0
  289. package/src/premium/v1/updatePremiumWebhookUser.ts +14 -0
  290. package/src/store/getFeaturedStoreItems.ts +65 -0
  291. package/src/store/getStoreOffers.ts +39 -0
  292. package/src/store/index.ts +24 -0
  293. package/src/stored-matches/index.ts +9 -0
  294. package/src/stored-matches/v1/getStoredMatchesByName.ts +79 -0
  295. package/src/stored-matches/v1/getStoredMatchesByPuuid.ts +78 -0
  296. package/src/stored-matches/v1/index.ts +61 -0
  297. package/src/stored-mmr-history/index.ts +12 -0
  298. package/src/stored-mmr-history/v1/getStoredMMRHistoryByName.ts +48 -0
  299. package/src/stored-mmr-history/v1/getStoredMMRHistoryByPuuid.ts +47 -0
  300. package/src/stored-mmr-history/v1/index.ts +40 -0
  301. package/src/stored-mmr-history/v2/getStoredMMRHistoryByName.ts +51 -0
  302. package/src/stored-mmr-history/v2/getStoredMMRHistoryByPuuid.ts +50 -0
  303. package/src/stored-mmr-history/v2/index.ts +55 -0
  304. package/src/types/response.type.ts +10 -0
  305. package/src/vlr/index.ts +9 -0
  306. package/src/vlr/v2/getVlrEsportsEvents.ts +40 -0
  307. package/src/vlr/v2/getVlrEventMatches.ts +23 -0
  308. package/src/vlr/v2/getVlrMatchDetails.ts +167 -0
  309. package/src/vlr/v2/getVlrPlayer.ts +78 -0
  310. package/src/vlr/v2/getVlrPlayerMatches.ts +36 -0
  311. package/src/vlr/v2/getVlrTeam.ts +49 -0
  312. package/src/vlr/v2/getVlrTeamMatches.ts +34 -0
  313. package/src/vlr/v2/getVlrTeamTransactions.ts +24 -0
  314. package/src/vlr/v2/index.ts +104 -0
  315. package/tsconfig.json +13 -0
@@ -0,0 +1,133 @@
1
+ import { doApiRequest } from "../../lib/request-handler";
2
+
3
+ export async function v1_getContent(apiKey: string, locale?: string) {
4
+ return await doApiRequest<v1_getContent_ResponseData>(
5
+ apiKey,
6
+ "/valorant/v1/content",
7
+ { locale },
8
+ { method: "GET" },
9
+ );
10
+ }
11
+ export interface v1_getContent_ResponseData {
12
+ acts: [
13
+ {
14
+ assetName: string;
15
+ name: string;
16
+ id: string | null;
17
+ localizedNames: Record<string, string> | null;
18
+ },
19
+ ];
20
+ ceremonies: [
21
+ {
22
+ assetName: string;
23
+ name: string;
24
+ id: string | null;
25
+ localizedNames: Record<string, string> | null;
26
+ },
27
+ ];
28
+ characters: [
29
+ {
30
+ assetName: string;
31
+ name: string;
32
+ id: string | null;
33
+ localizedNames: Record<string, string> | null;
34
+ },
35
+ ];
36
+ charmLevels: [
37
+ {
38
+ assetName: string;
39
+ name: string;
40
+ id: string | null;
41
+ localizedNames: Record<string, string> | null;
42
+ },
43
+ ];
44
+ charms: [
45
+ {
46
+ assetName: string;
47
+ name: string;
48
+ id: string | null;
49
+ localizedNames: Record<string, string> | null;
50
+ },
51
+ ];
52
+ chromas: [
53
+ {
54
+ assetName: string;
55
+ name: string;
56
+ id: string | null;
57
+ localizedNames: Record<string, string> | null;
58
+ },
59
+ ];
60
+ equips: [
61
+ {
62
+ assetName: string;
63
+ name: string;
64
+ id: string | null;
65
+ localizedNames: Record<string, string> | null;
66
+ },
67
+ ];
68
+ gameModes: [
69
+ {
70
+ assetName: string;
71
+ name: string;
72
+ id: string | null;
73
+ localizedNames: Record<string, string> | null;
74
+ },
75
+ ];
76
+ maps: [
77
+ {
78
+ assetName: string;
79
+ name: string;
80
+ id: string | null;
81
+ localizedNames: Record<string, string> | null;
82
+ },
83
+ ];
84
+ playerCards: [
85
+ {
86
+ assetName: string;
87
+ name: string;
88
+ id: string | null;
89
+ localizedNames: Record<string, string> | null;
90
+ },
91
+ ];
92
+ playerTitles: [
93
+ {
94
+ assetName: string;
95
+ name: string;
96
+ id: string | null;
97
+ localizedNames: Record<string, string> | null;
98
+ },
99
+ ];
100
+ skinLevels: [
101
+ {
102
+ assetName: string;
103
+ name: string;
104
+ id: string | null;
105
+ localizedNames: Record<string, string> | null;
106
+ },
107
+ ];
108
+ skins: [
109
+ {
110
+ assetName: string;
111
+ name: string;
112
+ id: string | null;
113
+ localizedNames: Record<string, string> | null;
114
+ },
115
+ ];
116
+ sprayLevels: [
117
+ {
118
+ assetName: string;
119
+ name: string;
120
+ id: string | null;
121
+ localizedNames: Record<string, string> | null;
122
+ },
123
+ ];
124
+ sprays: [
125
+ {
126
+ assetName: string;
127
+ name: string;
128
+ id: string | null;
129
+ localizedNames: Record<string, string> | null;
130
+ },
131
+ ];
132
+ version: string;
133
+ }
@@ -0,0 +1,19 @@
1
+ import { doApiRequest } from "../../lib/request-handler";
2
+
3
+ export async function v1_getGameVersion(apiKey: string, affinity: string) {
4
+ return await doApiRequest<v1_getGameVersion_ResponseData>(
5
+ apiKey,
6
+ `/valorant/v1/version/${affinity}`,
7
+ {},
8
+ { method: "GET" },
9
+ );
10
+ }
11
+ export interface v1_getGameVersion_ResponseData {
12
+ branch: string;
13
+ build_date: string;
14
+ build_ver: string;
15
+ last_checked: string;
16
+ region: string;
17
+ version: number;
18
+ version_for_api: string;
19
+ }
@@ -0,0 +1,57 @@
1
+ import { doApiRequest } from "../../lib/request-handler";
2
+
3
+ export async function v1_getQueueStatus(apiKey: string, affinity: string) {
4
+ return await doApiRequest<v1_getQueueStatus_ResponseData[]>(
5
+ apiKey,
6
+ `/valorant/v1/queue-status/${affinity}`,
7
+ {},
8
+ { method: "GET" },
9
+ );
10
+ }
11
+ export interface v1_getQueueStatus_ResponseData {
12
+ enabled: boolean;
13
+ game_rules: {
14
+ allow_drop_out: boolean;
15
+ allow_lenient_surrender: boolean;
16
+ allow_overtime_draw_vote: boolean;
17
+ assign_random_agents: boolean;
18
+ overtime_win_by_two: boolean;
19
+ overtime_win_by_two_capped: boolean;
20
+ premier_mode: boolean;
21
+ skip_pregame: boolean;
22
+ };
23
+ high_skill: {
24
+ max_party_size: number;
25
+ max_tier: number;
26
+ min_tier: number;
27
+ };
28
+ maps: {
29
+ enabled: boolean;
30
+ map: {
31
+ id: string;
32
+ name: string;
33
+ };
34
+ }[];
35
+ mode: string;
36
+ mode_id: string;
37
+ number_of_teams: number;
38
+ party_size: {
39
+ full_party_bypass: boolean;
40
+ invalid: number[];
41
+ max: number;
42
+ min: number;
43
+ };
44
+ platforms: string[];
45
+ ranked: boolean;
46
+ required_account_level: number;
47
+ skill_disparity: {
48
+ max_tier: {
49
+ id: 1;
50
+ name: string;
51
+ };
52
+ name: string;
53
+ tier: number;
54
+ }[];
55
+ team_size: number;
56
+ tournament: boolean;
57
+ }
@@ -0,0 +1,20 @@
1
+ import { doApiRequest } from "../../lib/request-handler";
2
+
3
+ export async function v1_getRawRiotAPIData(
4
+ apiKey: string,
5
+ region: string,
6
+ type: string,
7
+ value: string | string[],
8
+ platform: string | null,
9
+ queries: string | null,
10
+ ) {
11
+ return await doApiRequest<unknown[]>(
12
+ apiKey,
13
+ "/valorant/v1/raw",
14
+ {},
15
+ {
16
+ method: "POST",
17
+ body: JSON.stringify({ region, type, value, platform, queries }),
18
+ },
19
+ );
20
+ }
@@ -0,0 +1,62 @@
1
+ import { doApiRequest } from "../../lib/request-handler";
2
+
3
+ export async function v1_getStatus(apiKey: string, affinity: string) {
4
+ return await doApiRequest<v1_getStatus_ResponseData>(
5
+ apiKey,
6
+ `/valorant/v1/status/${affinity}`,
7
+ {},
8
+ { method: "GET" },
9
+ );
10
+ }
11
+ export interface v1_getStatus_ResponseData {
12
+ incidents: {
13
+ created_at: string;
14
+ id: number;
15
+ incident_severity: string;
16
+ platforms: string[];
17
+ titles: {
18
+ content: string;
19
+ locale: string;
20
+ }[];
21
+ updates: {
22
+ author: string;
23
+ created_at: string;
24
+ id: number;
25
+ publish: boolean;
26
+ publish_locations: string[];
27
+ translations: {
28
+ content: string;
29
+ locale: string;
30
+ }[];
31
+ updated_at: string;
32
+ }[];
33
+ archive_at: string | null;
34
+ maintenance_status: string | null;
35
+ updated_at: string | null;
36
+ }[];
37
+ maintenances: {
38
+ created_at: string;
39
+ id: number;
40
+ incident_severity: string;
41
+ platforms: string[];
42
+ titles: {
43
+ content: string;
44
+ locale: string;
45
+ }[];
46
+ updates: {
47
+ author: string;
48
+ created_at: string;
49
+ id: number;
50
+ publish: boolean;
51
+ publish_locations: string[];
52
+ translations: {
53
+ content: string;
54
+ locale: string;
55
+ }[];
56
+ updated_at: string;
57
+ }[];
58
+ archive_at: string | null;
59
+ maintenance_status: string | null;
60
+ updated_at: string | null;
61
+ }[];
62
+ }
@@ -0,0 +1,24 @@
1
+ import { doApiRequest } from "../../lib/request-handler";
2
+
3
+ export async function v1_getWebsiteContent(
4
+ apiKey: string,
5
+ countryCode: string,
6
+ category?: string,
7
+ ) {
8
+ return await doApiRequest<v1_getWebsiteContent_ResponseData[]>(
9
+ apiKey,
10
+ `/valorant/v1/website/${countryCode}`,
11
+ { category },
12
+ { method: "GET" },
13
+ );
14
+ }
15
+ export interface v1_getWebsiteContent_ResponseData {
16
+ category: string;
17
+ date: string;
18
+ id: string;
19
+ title: string;
20
+ url: string;
21
+ banner_url: string | null;
22
+ description: string | null;
23
+ external_link: string | null;
24
+ }
@@ -0,0 +1,24 @@
1
+ import { doApiRequest } from "../../lib/request-handler";
2
+
3
+ export async function v1_getWebsiteEntryById(
4
+ apiKey: string,
5
+ dbId: string,
6
+ countryCode: string,
7
+ ) {
8
+ return await doApiRequest<v1_getWebsiteEntryById_ResponseData[]>(
9
+ apiKey,
10
+ `/valorant/v1/website/${countryCode}/${dbId}`,
11
+ {},
12
+ { method: "GET" },
13
+ );
14
+ }
15
+ export interface v1_getWebsiteEntryById_ResponseData {
16
+ category: string;
17
+ date: string;
18
+ title: string;
19
+ url: string;
20
+ banner_url: string | null;
21
+ content: string | null;
22
+ description: string | null;
23
+ external_link: string | null;
24
+ }
@@ -0,0 +1,93 @@
1
+ import { v1_getContent } from "./getContent";
2
+ import { v1_getGameVersion } from "./getGameVersion";
3
+ import { v1_getQueueStatus } from "./getQueueStatus";
4
+ import { v1_getRawRiotAPIData } from "./getRawRiotAPIData";
5
+ import { v1_getStatus } from "./getStatus";
6
+ import { v1_getWebsiteContent } from "./getWebsiteContent";
7
+ import { v1_getWebsiteEntryById } from "./getWebsiteEntryById";
8
+
9
+ export class v1_MiscCategory {
10
+ constructor(private readonly apiKey: string) {}
11
+
12
+ /**
13
+ * @link https://docs.henrikdev.xyz/api-reference/valorant/get-content-v1
14
+ * @param locale Locale code (e.g., en-US, de-DE) - optional
15
+ * @returns Content retrieved successfully
16
+ */
17
+ async getContent(locale?: string) {
18
+ return await v1_getContent(this.apiKey, locale);
19
+ }
20
+
21
+ /**
22
+ * @link https://docs.henrikdev.xyz/api-reference/valorant/get-status-v1
23
+ * @param affinity Region/affinity (e.g., na, eu, ap, kr)
24
+ * @returns Status retrieved successfully
25
+ */
26
+ async getStatus(affinity: string) {
27
+ return await v1_getStatus(this.apiKey, affinity);
28
+ }
29
+
30
+ /**
31
+ * @link https://docs.henrikdev.xyz/api-reference/valorant/get-queue-status-v1
32
+ * @param affinity Region/affinity (e.g., na, eu, ap, kr)
33
+ * @returns Queue status retrieved successfully
34
+ */
35
+ async getQueueStatus(affinity: string) {
36
+ return await v1_getQueueStatus(this.apiKey, affinity);
37
+ }
38
+
39
+ /**
40
+ * @link https://docs.henrikdev.xyz/api-reference/valorant/get-game-version-v1
41
+ * @param affinity Region/affinity (e.g., na, eu, ap, kr)
42
+ * @returns Version data retrieved successfully
43
+ */
44
+ async getGameVersion(affinity: string) {
45
+ return await v1_getGameVersion(this.apiKey, affinity);
46
+ }
47
+
48
+ /**
49
+ * @link https://docs.henrikdev.xyz/api-reference/valorant/get-website-content-v1
50
+ * @param countryCode Country code (e.g., en-us, de-de)
51
+ * @param category Category filter (optional)
52
+ * @returns Website content retrieved successfully
53
+ */
54
+ async getWebsiteContent(countryCode: string, category?: string) {
55
+ return await v1_getWebsiteContent(this.apiKey, countryCode, category);
56
+ }
57
+
58
+ /**
59
+ * @link https://docs.henrikdev.xyz/api-reference/valorant/get-website-entry-by-id-v1
60
+ * @param dbId Database ID of the website entry
61
+ * @param countryCode Country code (e.g., en-us, de-de)
62
+ * @returns Website entry retrieved successfully
63
+ */
64
+ async getWebsiteEntryById(dbId: string, countryCode: string) {
65
+ return await v1_getWebsiteEntryById(this.apiKey, dbId, countryCode);
66
+ }
67
+
68
+ /**
69
+ * @link https://docs.henrikdev.xyz/api-reference/valorant/get-raw-riot-api-data-v1
70
+ * @param region
71
+ * @param type
72
+ * @param value
73
+ * @param platform
74
+ * @param queries
75
+ * @returns Raw Riot API data retrieved successfully
76
+ */
77
+ async getRawRiotAPIData(
78
+ region: string,
79
+ type: string,
80
+ value: string | string[],
81
+ platform: string | null,
82
+ queries: string | null,
83
+ ) {
84
+ return await v1_getRawRiotAPIData(
85
+ this.apiKey,
86
+ region,
87
+ type,
88
+ value,
89
+ platform,
90
+ queries,
91
+ );
92
+ }
93
+ }
@@ -0,0 +1,15 @@
1
+ import { v1_MMRCategory } from "./v1";
2
+ import { v2_MMRCategory } from "./v2";
3
+ import { v3_MMRCategory } from "./v3";
4
+
5
+ export class MMRCategory {
6
+ constructor(private readonly apiKey: string) {
7
+ this.v1 = new v1_MMRCategory(this.apiKey);
8
+ this.v2 = new v2_MMRCategory(this.apiKey);
9
+ this.v3 = new v3_MMRCategory(this.apiKey);
10
+ }
11
+
12
+ v1: v1_MMRCategory;
13
+ v2: v2_MMRCategory;
14
+ v3: v3_MMRCategory;
15
+ }
@@ -0,0 +1,31 @@
1
+ import { doApiRequest } from "../../lib/request-handler";
2
+
3
+ export async function v1_getMMRByName(
4
+ apiKey: string,
5
+ affinity: string,
6
+ name: string,
7
+ tag: string,
8
+ ) {
9
+ return await doApiRequest<v1_getMMRByName_ResponseData>(
10
+ apiKey,
11
+ `/valorant/v1/mmr/${affinity}/${name}/${tag}`,
12
+ {},
13
+ { method: "GET" },
14
+ );
15
+ }
16
+ export interface v1_getMMRByName_ResponseData {
17
+ currenttier: number;
18
+ currenttierpatched: string;
19
+ elo: number;
20
+ images: {
21
+ large: string;
22
+ small: string;
23
+ triangle_down: string;
24
+ triangle_up: string;
25
+ };
26
+ mmr_change_to_last_game: number;
27
+ name: string;
28
+ old: boolean;
29
+ ranking_in_tier: number;
30
+ tag: string;
31
+ }
@@ -0,0 +1,30 @@
1
+ import { doApiRequest } from "../../lib/request-handler";
2
+
3
+ export async function v1_getMMRByPuuid(
4
+ apiKey: string,
5
+ affinity: string,
6
+ puuid: string,
7
+ ) {
8
+ return await doApiRequest<v1_getMMRByPuuid_ResponseData>(
9
+ apiKey,
10
+ `/valorant/v1/by-puuid/mmr/${affinity}/${puuid}`,
11
+ {},
12
+ { method: "GET" },
13
+ );
14
+ }
15
+ export interface v1_getMMRByPuuid_ResponseData {
16
+ currenttier: number;
17
+ currenttierpatched: string;
18
+ elo: number;
19
+ images: {
20
+ large: string;
21
+ small: string;
22
+ triangle_down: string;
23
+ triangle_up: string;
24
+ };
25
+ mmr_change_to_last_game: number;
26
+ name: string;
27
+ old: boolean;
28
+ ranking_in_tier: number;
29
+ tag: string;
30
+ }
@@ -0,0 +1,27 @@
1
+ import { v1_getMMRByName } from "./getMMRByName";
2
+ import { v1_getMMRByPuuid } from "./getMMRByPuuid";
3
+
4
+ export class v1_MMRCategory {
5
+ constructor(private readonly apiKey: string) {}
6
+
7
+ /**
8
+ * @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-name-v1
9
+ * @param affinity Region/affinity (e.g., na, eu, ap, kr)
10
+ * @param name Riot ID name
11
+ * @param tag Riot ID tag
12
+ * @returns MMR data retrieved successfully
13
+ */
14
+ async getByName(affinity: string, name: string, tag: string) {
15
+ return await v1_getMMRByName(this.apiKey, affinity, name, tag);
16
+ }
17
+
18
+ /**
19
+ * @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-puuid-v1
20
+ * @param affinity Region/affinity (e.g., na, eu, ap, kr)
21
+ * @param puuid Player UUID
22
+ * @returns MMR data retrieved successfully
23
+ */
24
+ async getByPuuid(affinity: string, puuid: string) {
25
+ return await v1_getMMRByPuuid(this.apiKey, affinity, puuid);
26
+ }
27
+ }
@@ -0,0 +1,42 @@
1
+ import { doApiRequest } from "../../lib/request-handler";
2
+
3
+ export async function v2_getMMRByName(
4
+ apiKey: string,
5
+ affinity: string,
6
+ name: string,
7
+ tag: string,
8
+ ) {
9
+ return await doApiRequest<v2_getMMRByName_ResponseData>(
10
+ apiKey,
11
+ `/valorant/v2/mmr/${affinity}/${name}/${tag}`,
12
+ {},
13
+ { method: "GET" },
14
+ );
15
+ }
16
+ export interface v2_getMMRByName_ResponseData {
17
+ by_season: unknown;
18
+ current_data: {
19
+ currenttier: number;
20
+ currenttierpatched: string;
21
+ elo: number;
22
+ games_needed_for_rating: number;
23
+ images: {
24
+ large: string;
25
+ small: string;
26
+ triangle_down: string;
27
+ triangle_up: string;
28
+ };
29
+ mmr_change_to_last_game: number;
30
+ old: boolean;
31
+ ranking_in_tier: number;
32
+ };
33
+ highest_rank: {
34
+ old: boolean;
35
+ patched_tier: string;
36
+ season: string;
37
+ tier: number;
38
+ };
39
+ name: string;
40
+ puuid: string;
41
+ tag: string;
42
+ }
@@ -0,0 +1,41 @@
1
+ import { doApiRequest } from "../../lib/request-handler";
2
+
3
+ export async function v2_getMMRByPuuid(
4
+ apiKey: string,
5
+ affinity: string,
6
+ puuid: string,
7
+ ) {
8
+ return await doApiRequest<v2_getMMRByPuuid_ResponseData>(
9
+ apiKey,
10
+ `/valorant/v2/by-puuid/mmr/${affinity}/${puuid}`,
11
+ {},
12
+ { method: "GET" },
13
+ );
14
+ }
15
+ export interface v2_getMMRByPuuid_ResponseData {
16
+ by_season: unknown;
17
+ current_data: {
18
+ currenttier: number;
19
+ currenttierpatched: string;
20
+ elo: number;
21
+ games_needed_for_rating: number;
22
+ images: {
23
+ large: string;
24
+ small: string;
25
+ triangle_down: string;
26
+ triangle_up: string;
27
+ };
28
+ mmr_change_to_last_game: number;
29
+ old: boolean;
30
+ ranking_in_tier: number;
31
+ };
32
+ highest_rank: {
33
+ old: boolean;
34
+ patched_tier: string;
35
+ season: string;
36
+ tier: number;
37
+ };
38
+ name: string;
39
+ puuid: string;
40
+ tag: string;
41
+ }
@@ -0,0 +1,27 @@
1
+ import { v2_getMMRByName } from "./getMMRByName";
2
+ import { v2_getMMRByPuuid } from "./getMMRByPuuid";
3
+
4
+ export class v2_MMRCategory {
5
+ constructor(private readonly apiKey: string) {}
6
+
7
+ /**
8
+ * @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-name-v2
9
+ * @param affinity Region/affinity (e.g., na, eu, ap, kr)
10
+ * @param name Riot ID name
11
+ * @param tag Riot ID tag
12
+ * @returns MMR data retrieved successfully
13
+ */
14
+ async getByName(affinity: string, name: string, tag: string) {
15
+ return await v2_getMMRByName(this.apiKey, affinity, name, tag);
16
+ }
17
+
18
+ /**
19
+ * @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-puuid-v2
20
+ * @param affinity Region/affinity (e.g., na, eu, ap, kr)
21
+ * @param puuid Player UUID
22
+ * @returns MMR data retrieved successfully
23
+ */
24
+ async getByPuuid(affinity: string, puuid: string) {
25
+ return await v2_getMMRByPuuid(this.apiKey, affinity, puuid);
26
+ }
27
+ }