@rotesblatt/hex-tractor-data-api 1.0.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.
@@ -0,0 +1,862 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.api = exports.schemas = void 0;
4
+ exports.createApiClient = createApiClient;
5
+ const core_1 = require("@zodios/core");
6
+ const zod_1 = require("zod");
7
+ const league_v4_MiniSeriesDTO = zod_1.z
8
+ .object({
9
+ losses: zod_1.z.number().int(),
10
+ progress: zod_1.z.string(),
11
+ target: zod_1.z.number().int(),
12
+ wins: zod_1.z.number().int(),
13
+ })
14
+ .passthrough();
15
+ const league_v4_LeagueEntryDTO = zod_1.z
16
+ .object({
17
+ leagueId: zod_1.z.string().optional(),
18
+ puuid: zod_1.z.string(),
19
+ queueType: zod_1.z.string(),
20
+ tier: zod_1.z.string().optional(),
21
+ rank: zod_1.z.string().optional(),
22
+ leaguePoints: zod_1.z.number().int(),
23
+ wins: zod_1.z.number().int(),
24
+ losses: zod_1.z.number().int(),
25
+ hotStreak: zod_1.z.boolean(),
26
+ veteran: zod_1.z.boolean(),
27
+ freshBlood: zod_1.z.boolean(),
28
+ inactive: zod_1.z.boolean(),
29
+ miniSeries: league_v4_MiniSeriesDTO.optional(),
30
+ summonerId: zod_1.z.string().optional(),
31
+ })
32
+ .passthrough();
33
+ const spectator_v5_BannedChampion = zod_1.z
34
+ .object({
35
+ pickTurn: zod_1.z.number().int(),
36
+ championId: zod_1.z.number().int(),
37
+ teamId: zod_1.z.number().int(),
38
+ })
39
+ .passthrough();
40
+ const spectator_v5_Observer = zod_1.z
41
+ .object({ encryptionKey: zod_1.z.string() })
42
+ .passthrough();
43
+ const spectator_v5_Perks = zod_1.z
44
+ .object({
45
+ perkIds: zod_1.z.array(zod_1.z.number().int()),
46
+ perkStyle: zod_1.z.number().int(),
47
+ perkSubStyle: zod_1.z.number().int(),
48
+ })
49
+ .passthrough();
50
+ const spectator_v5_GameCustomizationObject = zod_1.z.object({ category: zod_1.z.string(), content: zod_1.z.string() }).passthrough();
51
+ const spectator_v5_CurrentGameParticipant = zod_1.z
52
+ .object({
53
+ championId: zod_1.z.number().int(),
54
+ perks: spectator_v5_Perks.optional(),
55
+ profileIconId: zod_1.z.number().int(),
56
+ bot: zod_1.z.boolean(),
57
+ teamId: zod_1.z.number().int(),
58
+ puuid: zod_1.z.string().optional(),
59
+ spell1Id: zod_1.z.number().int(),
60
+ spell2Id: zod_1.z.number().int(),
61
+ gameCustomizationObjects: zod_1.z.array(spectator_v5_GameCustomizationObject),
62
+ riotId: zod_1.z.string().optional(),
63
+ })
64
+ .passthrough();
65
+ const spectator_v5_CurrentGameInfo = zod_1.z
66
+ .object({
67
+ gameId: zod_1.z.number().int(),
68
+ gameType: zod_1.z.string(),
69
+ gameStartTime: zod_1.z.number().int(),
70
+ mapId: zod_1.z.number().int(),
71
+ gameLength: zod_1.z.number().int(),
72
+ platformId: zod_1.z.string(),
73
+ gameMode: zod_1.z.string(),
74
+ bannedChampions: zod_1.z.array(spectator_v5_BannedChampion),
75
+ gameQueueConfigId: zod_1.z.number().int().optional(),
76
+ observers: spectator_v5_Observer,
77
+ participants: zod_1.z.array(spectator_v5_CurrentGameParticipant),
78
+ })
79
+ .passthrough();
80
+ const AccountInfo = zod_1.z
81
+ .object({
82
+ generalInfo: zod_1.z
83
+ .object({
84
+ puuid: zod_1.z.string(),
85
+ summonerName: zod_1.z.string(),
86
+ tagLine: zod_1.z.string(),
87
+ profileIconId: zod_1.z.number().int(),
88
+ revisionDate: zod_1.z.number().int(),
89
+ summonerLevel: zod_1.z.number().int(),
90
+ lastUpdated: zod_1.z.string(),
91
+ })
92
+ .passthrough(),
93
+ leagueEntries: zod_1.z.array(league_v4_LeagueEntryDTO),
94
+ currentGame: spectator_v5_CurrentGameInfo.optional(),
95
+ })
96
+ .passthrough();
97
+ const validationError = zod_1.z
98
+ .object({
99
+ message: zod_1.z.string(),
100
+ statusCode: zod_1.z.number().int(),
101
+ details: zod_1.z.array(zod_1.z
102
+ .object({
103
+ type: zod_1.z.string(),
104
+ value: zod_1.z.string(),
105
+ msg: zod_1.z.string(),
106
+ path: zod_1.z.string(),
107
+ location: zod_1.z.string(),
108
+ })
109
+ .passthrough()),
110
+ })
111
+ .passthrough();
112
+ const simpleError = zod_1.z.object({ message: zod_1.z.string() }).passthrough();
113
+ const simpleInternalError = zod_1.z.object({ message: zod_1.z.string() }).passthrough();
114
+ const league_v4_LeagueItemDTO = zod_1.z
115
+ .object({
116
+ freshBlood: zod_1.z.boolean(),
117
+ wins: zod_1.z.number().int(),
118
+ miniSeries: league_v4_MiniSeriesDTO.optional(),
119
+ inactive: zod_1.z.boolean(),
120
+ veteran: zod_1.z.boolean(),
121
+ hotStreak: zod_1.z.boolean(),
122
+ rank: zod_1.z.string().optional(),
123
+ leaguePoints: zod_1.z.number().int(),
124
+ losses: zod_1.z.number().int(),
125
+ puuid: zod_1.z.string(),
126
+ summonerId: zod_1.z.string().optional(),
127
+ })
128
+ .passthrough();
129
+ const LeagueDetails = zod_1.z
130
+ .object({
131
+ queueType: zod_1.z.string(),
132
+ tier: zod_1.z.string(),
133
+ division: zod_1.z.string(),
134
+ name: zod_1.z.string().optional(),
135
+ lastUpdated: zod_1.z.string(),
136
+ entries: zod_1.z.array(league_v4_LeagueItemDTO),
137
+ })
138
+ .passthrough();
139
+ const match_v5_MetadataDto = zod_1.z
140
+ .object({
141
+ dataVersion: zod_1.z.string(),
142
+ matchId: zod_1.z.string(),
143
+ participants: zod_1.z.array(zod_1.z.string()),
144
+ })
145
+ .passthrough();
146
+ const match_v5_ChallengesDto = zod_1.z
147
+ .object({
148
+ "12AssistStreakCount": zod_1.z.number().int(),
149
+ baronBuffGoldAdvantageOverThreshold: zod_1.z.number().int(),
150
+ controlWardTimeCoverageInRiverOrEnemyHalf: zod_1.z.number(),
151
+ earliestBaron: zod_1.z.number(),
152
+ earliestDragonTakedown: zod_1.z.number(),
153
+ earliestElderDragon: zod_1.z.number(),
154
+ earlyLaningPhaseGoldExpAdvantage: zod_1.z.number(),
155
+ fasterSupportQuestCompletion: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
156
+ fastestLegendary: zod_1.z.number(),
157
+ hadAfkTeammate: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
158
+ highestChampionDamage: zod_1.z.number().int(),
159
+ highestCrowdControlScore: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
160
+ highestWardKills: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
161
+ junglerKillsEarlyJungle: zod_1.z.number().int(),
162
+ killsOnLanersEarlyJungleAsJungler: zod_1.z.number().int(),
163
+ laningPhaseGoldExpAdvantage: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
164
+ legendaryCount: zod_1.z.number().int(),
165
+ maxCsAdvantageOnLaneOpponent: zod_1.z.number(),
166
+ maxLevelLeadLaneOpponent: zod_1.z.number().int(),
167
+ mostWardsDestroyedOneSweeper: zod_1.z.number().int(),
168
+ mythicItemUsed: zod_1.z.number().int(),
169
+ playedChampSelectPosition: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
170
+ soloTurretsLategame: zod_1.z.number().int(),
171
+ takedownsFirst25Minutes: zod_1.z.number().int(),
172
+ teleportTakedowns: zod_1.z.number().int(),
173
+ thirdInhibitorDestroyedTime: zod_1.z.number(),
174
+ threeWardsOneSweeperCount: zod_1.z.number().int(),
175
+ visionScoreAdvantageLaneOpponent: zod_1.z.number(),
176
+ InfernalScalePickup: zod_1.z.number().int(),
177
+ fistBumpParticipation: zod_1.z.number().int(),
178
+ voidMonsterKill: zod_1.z.number().int(),
179
+ abilityUses: zod_1.z.number().int(),
180
+ acesBefore15Minutes: zod_1.z.number().int(),
181
+ alliedJungleMonsterKills: zod_1.z.number(),
182
+ baronTakedowns: zod_1.z.number().int(),
183
+ blastConeOppositeOpponentCount: zod_1.z.number().int(),
184
+ bountyGold: zod_1.z.number(),
185
+ buffsStolen: zod_1.z.number().int(),
186
+ completeSupportQuestInTime: zod_1.z.number().int(),
187
+ controlWardsPlaced: zod_1.z.number().int(),
188
+ damagePerMinute: zod_1.z.number(),
189
+ damageTakenOnTeamPercentage: zod_1.z.number(),
190
+ dancedWithRiftHerald: zod_1.z.number().int(),
191
+ deathsByEnemyChamps: zod_1.z.number().int(),
192
+ dodgeSkillShotsSmallWindow: zod_1.z.number().int(),
193
+ doubleAces: zod_1.z.number().int(),
194
+ dragonTakedowns: zod_1.z.number().int(),
195
+ legendaryItemUsed: zod_1.z.array(zod_1.z.number().int()),
196
+ effectiveHealAndShielding: zod_1.z.number(),
197
+ elderDragonKillsWithOpposingSoul: zod_1.z.number().int(),
198
+ elderDragonMultikills: zod_1.z.number().int(),
199
+ enemyChampionImmobilizations: zod_1.z.number().int(),
200
+ enemyJungleMonsterKills: zod_1.z.number(),
201
+ epicMonsterKillsNearEnemyJungler: zod_1.z.number().int(),
202
+ epicMonsterKillsWithin30SecondsOfSpawn: zod_1.z.number().int(),
203
+ epicMonsterSteals: zod_1.z.number().int(),
204
+ epicMonsterStolenWithoutSmite: zod_1.z.number().int(),
205
+ firstTurretKilled: zod_1.z.number(),
206
+ firstTurretKilledTime: zod_1.z.number(),
207
+ flawlessAces: zod_1.z.number().int(),
208
+ fullTeamTakedown: zod_1.z.number().int(),
209
+ gameLength: zod_1.z.number(),
210
+ getTakedownsInAllLanesEarlyJungleAsLaner: zod_1.z.number().int(),
211
+ goldPerMinute: zod_1.z.number(),
212
+ hadOpenNexus: zod_1.z.number().int(),
213
+ immobilizeAndKillWithAlly: zod_1.z.number().int(),
214
+ initialBuffCount: zod_1.z.number().int(),
215
+ initialCrabCount: zod_1.z.number().int(),
216
+ jungleCsBefore10Minutes: zod_1.z.number(),
217
+ junglerTakedownsNearDamagedEpicMonster: zod_1.z.number().int(),
218
+ kda: zod_1.z.number(),
219
+ killAfterHiddenWithAlly: zod_1.z.number().int(),
220
+ killedChampTookFullTeamDamageSurvived: zod_1.z.number().int(),
221
+ killingSprees: zod_1.z.number().int(),
222
+ killParticipation: zod_1.z.number(),
223
+ killsNearEnemyTurret: zod_1.z.number().int(),
224
+ killsOnOtherLanesEarlyJungleAsLaner: zod_1.z.number().int(),
225
+ killsOnRecentlyHealedByAramPack: zod_1.z.number().int(),
226
+ killsUnderOwnTurret: zod_1.z.number().int(),
227
+ killsWithHelpFromEpicMonster: zod_1.z.number().int(),
228
+ knockEnemyIntoTeamAndKill: zod_1.z.number().int(),
229
+ kTurretsDestroyedBeforePlatesFall: zod_1.z.number().int(),
230
+ landSkillShotsEarlyGame: zod_1.z.number().int(),
231
+ laneMinionsFirst10Minutes: zod_1.z.number().int(),
232
+ lostAnInhibitor: zod_1.z.number().int(),
233
+ maxKillDeficit: zod_1.z.number().int(),
234
+ mejaisFullStackInTime: zod_1.z.number().int(),
235
+ moreEnemyJungleThanOpponent: zod_1.z.number(),
236
+ multiKillOneSpell: zod_1.z.number().int(),
237
+ multikills: zod_1.z.number().int(),
238
+ multikillsAfterAggressiveFlash: zod_1.z.number().int(),
239
+ multiTurretRiftHeraldCount: zod_1.z.number().int(),
240
+ outerTurretExecutesBefore10Minutes: zod_1.z.number().int(),
241
+ outnumberedKills: zod_1.z.number().int(),
242
+ outnumberedNexusKill: zod_1.z.number().int(),
243
+ perfectDragonSoulsTaken: zod_1.z.number().int(),
244
+ perfectGame: zod_1.z.number().int(),
245
+ pickKillWithAlly: zod_1.z.number().int(),
246
+ poroExplosions: zod_1.z.number().int(),
247
+ quickCleanse: zod_1.z.number().int(),
248
+ quickFirstTurret: zod_1.z.number().int(),
249
+ quickSoloKills: zod_1.z.number().int(),
250
+ riftHeraldTakedowns: zod_1.z.number().int(),
251
+ saveAllyFromDeath: zod_1.z.number().int(),
252
+ scuttleCrabKills: zod_1.z.number().int(),
253
+ shortestTimeToAceFromFirstTakedown: zod_1.z.number(),
254
+ skillshotsDodged: zod_1.z.number().int(),
255
+ skillshotsHit: zod_1.z.number().int(),
256
+ snowballsHit: zod_1.z.number().int(),
257
+ soloBaronKills: zod_1.z.number().int(),
258
+ SWARM_DefeatAatrox: zod_1.z.number().int(),
259
+ SWARM_DefeatBriar: zod_1.z.number().int(),
260
+ SWARM_DefeatMiniBosses: zod_1.z.number().int(),
261
+ SWARM_EvolveWeapon: zod_1.z.number().int(),
262
+ SWARM_Have3Passives: zod_1.z.number().int(),
263
+ SWARM_KillEnemy: zod_1.z.number().int(),
264
+ SWARM_PickupGold: zod_1.z.number(),
265
+ SWARM_ReachLevel50: zod_1.z.number().int(),
266
+ SWARM_Survive15Min: zod_1.z.number().int(),
267
+ SWARM_WinWith5EvolvedWeapons: zod_1.z.number().int(),
268
+ soloKills: zod_1.z.number().int(),
269
+ stealthWardsPlaced: zod_1.z.number().int(),
270
+ survivedSingleDigitHpCount: zod_1.z.number().int(),
271
+ survivedThreeImmobilizesInFight: zod_1.z.number().int(),
272
+ takedownOnFirstTurret: zod_1.z.number().int(),
273
+ takedowns: zod_1.z.number().int(),
274
+ takedownsAfterGainingLevelAdvantage: zod_1.z.number().int(),
275
+ takedownsBeforeJungleMinionSpawn: zod_1.z.number().int(),
276
+ takedownsFirstXMinutes: zod_1.z.number().int(),
277
+ takedownsInAlcove: zod_1.z.number().int(),
278
+ takedownsInEnemyFountain: zod_1.z.number().int(),
279
+ teamBaronKills: zod_1.z.number().int(),
280
+ teamDamagePercentage: zod_1.z.number(),
281
+ teamElderDragonKills: zod_1.z.number().int(),
282
+ teamRiftHeraldKills: zod_1.z.number().int(),
283
+ tookLargeDamageSurvived: zod_1.z.number().int(),
284
+ turretPlatesTaken: zod_1.z.number().int(),
285
+ turretsTakenWithRiftHerald: zod_1.z.number().int(),
286
+ turretTakedowns: zod_1.z.number().int(),
287
+ twentyMinionsIn3SecondsCount: zod_1.z.number().int(),
288
+ twoWardsOneSweeperCount: zod_1.z.number().int(),
289
+ unseenRecalls: zod_1.z.number().int(),
290
+ visionScorePerMinute: zod_1.z.number(),
291
+ wardsGuarded: zod_1.z.number().int(),
292
+ wardTakedowns: zod_1.z.number().int(),
293
+ wardTakedownsBefore20M: zod_1.z.number().int(),
294
+ HealFromMapSources: zod_1.z.number(),
295
+ })
296
+ .partial()
297
+ .passthrough();
298
+ const match_v5_MissionsDto = zod_1.z
299
+ .object({
300
+ playerScore0: zod_1.z.number(),
301
+ playerScore1: zod_1.z.number(),
302
+ playerScore2: zod_1.z.number(),
303
+ playerScore3: zod_1.z.number(),
304
+ playerScore4: zod_1.z.number(),
305
+ playerScore5: zod_1.z.number(),
306
+ playerScore6: zod_1.z.number(),
307
+ playerScore7: zod_1.z.number(),
308
+ playerScore8: zod_1.z.number(),
309
+ playerScore9: zod_1.z.number(),
310
+ playerScore10: zod_1.z.number(),
311
+ playerScore11: zod_1.z.number(),
312
+ })
313
+ .partial()
314
+ .passthrough();
315
+ const match_v5_PerkStatsDto = zod_1.z
316
+ .object({
317
+ defense: zod_1.z.number().int(),
318
+ flex: zod_1.z.number().int(),
319
+ offense: zod_1.z.number().int(),
320
+ })
321
+ .passthrough();
322
+ const match_v5_PerkStyleSelectionDto = zod_1.z
323
+ .object({
324
+ perk: zod_1.z.number().int(),
325
+ var1: zod_1.z.number().int(),
326
+ var2: zod_1.z.number().int(),
327
+ var3: zod_1.z.number().int(),
328
+ })
329
+ .passthrough();
330
+ const match_v5_PerkStyleDto = zod_1.z
331
+ .object({
332
+ description: zod_1.z.string(),
333
+ selections: zod_1.z.array(match_v5_PerkStyleSelectionDto),
334
+ style: zod_1.z.number().int(),
335
+ })
336
+ .passthrough();
337
+ const match_v5_PerksDto = zod_1.z
338
+ .object({
339
+ statPerks: match_v5_PerkStatsDto,
340
+ styles: zod_1.z.array(match_v5_PerkStyleDto),
341
+ })
342
+ .passthrough();
343
+ const match_v5_ParticipantDto = zod_1.z
344
+ .object({
345
+ allInPings: zod_1.z.number().int().optional(),
346
+ assistMePings: zod_1.z.number().int().optional(),
347
+ assists: zod_1.z.number().int(),
348
+ baronKills: zod_1.z.number().int(),
349
+ bountyLevel: zod_1.z.number().int().optional(),
350
+ champExperience: zod_1.z.number().int(),
351
+ champLevel: zod_1.z.number().int(),
352
+ championId: zod_1.z.number().int(),
353
+ championName: zod_1.z.string(),
354
+ commandPings: zod_1.z.number().int().optional(),
355
+ championTransform: zod_1.z.number().int(),
356
+ consumablesPurchased: zod_1.z.number().int(),
357
+ challenges: match_v5_ChallengesDto.optional(),
358
+ damageDealtToBuildings: zod_1.z.number().int().optional(),
359
+ damageDealtToObjectives: zod_1.z.number().int(),
360
+ damageDealtToTurrets: zod_1.z.number().int(),
361
+ damageSelfMitigated: zod_1.z.number().int(),
362
+ deaths: zod_1.z.number().int(),
363
+ detectorWardsPlaced: zod_1.z.number().int(),
364
+ doubleKills: zod_1.z.number().int(),
365
+ dragonKills: zod_1.z.number().int(),
366
+ eligibleForProgression: zod_1.z.boolean().optional(),
367
+ enemyMissingPings: zod_1.z.number().int().optional(),
368
+ enemyVisionPings: zod_1.z.number().int().optional(),
369
+ firstBloodAssist: zod_1.z.boolean(),
370
+ firstBloodKill: zod_1.z.boolean(),
371
+ firstTowerAssist: zod_1.z.boolean(),
372
+ firstTowerKill: zod_1.z.boolean(),
373
+ gameEndedInEarlySurrender: zod_1.z.boolean(),
374
+ gameEndedInSurrender: zod_1.z.boolean(),
375
+ holdPings: zod_1.z.number().int().optional(),
376
+ getBackPings: zod_1.z.number().int().optional(),
377
+ goldEarned: zod_1.z.number().int(),
378
+ goldSpent: zod_1.z.number().int(),
379
+ individualPosition: zod_1.z.string(),
380
+ inhibitorKills: zod_1.z.number().int(),
381
+ inhibitorTakedowns: zod_1.z.number().int().optional(),
382
+ inhibitorsLost: zod_1.z.number().int().optional(),
383
+ item0: zod_1.z.number().int(),
384
+ item1: zod_1.z.number().int(),
385
+ item2: zod_1.z.number().int(),
386
+ item3: zod_1.z.number().int(),
387
+ item4: zod_1.z.number().int(),
388
+ item5: zod_1.z.number().int(),
389
+ item6: zod_1.z.number().int(),
390
+ itemsPurchased: zod_1.z.number().int(),
391
+ killingSprees: zod_1.z.number().int(),
392
+ kills: zod_1.z.number().int(),
393
+ lane: zod_1.z.string(),
394
+ largestCriticalStrike: zod_1.z.number().int(),
395
+ largestKillingSpree: zod_1.z.number().int(),
396
+ largestMultiKill: zod_1.z.number().int(),
397
+ longestTimeSpentLiving: zod_1.z.number().int(),
398
+ magicDamageDealt: zod_1.z.number().int(),
399
+ magicDamageDealtToChampions: zod_1.z.number().int(),
400
+ magicDamageTaken: zod_1.z.number().int(),
401
+ missions: match_v5_MissionsDto.optional(),
402
+ neutralMinionsKilled: zod_1.z.number().int(),
403
+ needVisionPings: zod_1.z.number().int().optional(),
404
+ nexusKills: zod_1.z.number().int(),
405
+ nexusTakedowns: zod_1.z.number().int().optional(),
406
+ nexusLost: zod_1.z.number().int().optional(),
407
+ objectivesStolen: zod_1.z.number().int(),
408
+ objectivesStolenAssists: zod_1.z.number().int(),
409
+ onMyWayPings: zod_1.z.number().int().optional(),
410
+ participantId: zod_1.z.number().int(),
411
+ playerScore0: zod_1.z.number().optional(),
412
+ playerScore1: zod_1.z.number().optional(),
413
+ playerScore2: zod_1.z.number().optional(),
414
+ playerScore3: zod_1.z.number().optional(),
415
+ playerScore4: zod_1.z.number().optional(),
416
+ playerScore5: zod_1.z.number().optional(),
417
+ playerScore6: zod_1.z.number().optional(),
418
+ playerScore7: zod_1.z.number().optional(),
419
+ playerScore8: zod_1.z.number().optional(),
420
+ playerScore9: zod_1.z.number().optional(),
421
+ playerScore10: zod_1.z.number().optional(),
422
+ playerScore11: zod_1.z.number().optional(),
423
+ pentaKills: zod_1.z.number().int(),
424
+ perks: match_v5_PerksDto,
425
+ physicalDamageDealt: zod_1.z.number().int(),
426
+ physicalDamageDealtToChampions: zod_1.z.number().int(),
427
+ physicalDamageTaken: zod_1.z.number().int(),
428
+ placement: zod_1.z.number().int().optional(),
429
+ playerAugment1: zod_1.z.number().int().optional(),
430
+ playerAugment2: zod_1.z.number().int().optional(),
431
+ playerAugment3: zod_1.z.number().int().optional(),
432
+ playerAugment4: zod_1.z.number().int().optional(),
433
+ playerSubteamId: zod_1.z.number().int().optional(),
434
+ pushPings: zod_1.z.number().int().optional(),
435
+ profileIcon: zod_1.z.number().int(),
436
+ puuid: zod_1.z.string(),
437
+ quadraKills: zod_1.z.number().int(),
438
+ riotIdGameName: zod_1.z.string().optional(),
439
+ riotIdTagline: zod_1.z.string().optional(),
440
+ role: zod_1.z.string(),
441
+ sightWardsBoughtInGame: zod_1.z.number().int(),
442
+ spell1Casts: zod_1.z.number().int(),
443
+ spell2Casts: zod_1.z.number().int(),
444
+ spell3Casts: zod_1.z.number().int(),
445
+ spell4Casts: zod_1.z.number().int(),
446
+ subteamPlacement: zod_1.z.number().int().optional(),
447
+ summoner1Casts: zod_1.z.number().int(),
448
+ summoner1Id: zod_1.z.number().int(),
449
+ summoner2Casts: zod_1.z.number().int(),
450
+ summoner2Id: zod_1.z.number().int(),
451
+ summonerId: zod_1.z.string(),
452
+ summonerLevel: zod_1.z.number().int(),
453
+ summonerName: zod_1.z.string(),
454
+ teamEarlySurrendered: zod_1.z.boolean(),
455
+ teamId: zod_1.z.number().int(),
456
+ teamPosition: zod_1.z.string(),
457
+ timeCCingOthers: zod_1.z.number().int(),
458
+ timePlayed: zod_1.z.number().int(),
459
+ totalAllyJungleMinionsKilled: zod_1.z.number().int().optional(),
460
+ totalDamageDealt: zod_1.z.number().int(),
461
+ totalDamageDealtToChampions: zod_1.z.number().int(),
462
+ totalDamageShieldedOnTeammates: zod_1.z.number().int(),
463
+ totalDamageTaken: zod_1.z.number().int(),
464
+ totalEnemyJungleMinionsKilled: zod_1.z.number().int().optional(),
465
+ totalHeal: zod_1.z.number().int(),
466
+ totalHealsOnTeammates: zod_1.z.number().int(),
467
+ totalMinionsKilled: zod_1.z.number().int(),
468
+ totalTimeCCDealt: zod_1.z.number().int(),
469
+ totalTimeSpentDead: zod_1.z.number().int(),
470
+ totalUnitsHealed: zod_1.z.number().int(),
471
+ tripleKills: zod_1.z.number().int(),
472
+ trueDamageDealt: zod_1.z.number().int(),
473
+ trueDamageDealtToChampions: zod_1.z.number().int(),
474
+ trueDamageTaken: zod_1.z.number().int(),
475
+ turretKills: zod_1.z.number().int(),
476
+ turretTakedowns: zod_1.z.number().int().optional(),
477
+ turretsLost: zod_1.z.number().int().optional(),
478
+ unrealKills: zod_1.z.number().int(),
479
+ visionScore: zod_1.z.number().int(),
480
+ visionClearedPings: zod_1.z.number().int().optional(),
481
+ visionWardsBoughtInGame: zod_1.z.number().int(),
482
+ wardsKilled: zod_1.z.number().int(),
483
+ wardsPlaced: zod_1.z.number().int(),
484
+ win: zod_1.z.boolean(),
485
+ baitPings: zod_1.z.number().int().optional(),
486
+ dangerPings: zod_1.z.number().int().optional(),
487
+ basicPings: zod_1.z.number().int().optional(),
488
+ playerAugment5: zod_1.z.number().int().optional(),
489
+ playerAugment6: zod_1.z.number().int().optional(),
490
+ riotIdName: zod_1.z.string().optional(),
491
+ retreatPings: zod_1.z.number().int().optional(),
492
+ championSkinId: zod_1.z.number().int().optional(),
493
+ })
494
+ .passthrough();
495
+ const match_v5_BanDto = zod_1.z
496
+ .object({ championId: zod_1.z.number().int(), pickTurn: zod_1.z.number().int() })
497
+ .passthrough();
498
+ const match_v5_ObjectiveDto = zod_1.z
499
+ .object({ first: zod_1.z.boolean(), kills: zod_1.z.number().int() })
500
+ .passthrough();
501
+ const match_v5_ObjectivesDto = zod_1.z
502
+ .object({
503
+ baron: match_v5_ObjectiveDto,
504
+ champion: match_v5_ObjectiveDto,
505
+ dragon: match_v5_ObjectiveDto,
506
+ horde: match_v5_ObjectiveDto.optional(),
507
+ inhibitor: match_v5_ObjectiveDto,
508
+ riftHerald: match_v5_ObjectiveDto,
509
+ tower: match_v5_ObjectiveDto,
510
+ atakhan: match_v5_ObjectiveDto.optional(),
511
+ })
512
+ .passthrough();
513
+ const match_v5_FeatDto = zod_1.z
514
+ .object({ featState: zod_1.z.number().int() })
515
+ .partial()
516
+ .passthrough();
517
+ const match_v5_FeatsDto = zod_1.z
518
+ .object({
519
+ EPIC_MONSTER_KILL: match_v5_FeatDto,
520
+ FIRST_BLOOD: match_v5_FeatDto,
521
+ FIRST_TURRET: match_v5_FeatDto,
522
+ })
523
+ .partial()
524
+ .passthrough();
525
+ const match_v5_TeamDto = zod_1.z
526
+ .object({
527
+ bans: zod_1.z.array(match_v5_BanDto),
528
+ objectives: match_v5_ObjectivesDto,
529
+ teamId: zod_1.z.number().int(),
530
+ win: zod_1.z.boolean(),
531
+ feats: match_v5_FeatsDto.optional(),
532
+ })
533
+ .passthrough();
534
+ const match_v5_InfoDto = zod_1.z
535
+ .object({
536
+ endOfGameResult: zod_1.z.string().optional(),
537
+ gameCreation: zod_1.z.number().int(),
538
+ gameDuration: zod_1.z.number().int(),
539
+ gameEndTimestamp: zod_1.z.number().int().optional(),
540
+ gameId: zod_1.z.number().int(),
541
+ gameMode: zod_1.z.string(),
542
+ gameName: zod_1.z.string(),
543
+ gameStartTimestamp: zod_1.z.number().int(),
544
+ gameType: zod_1.z.string(),
545
+ gameVersion: zod_1.z.string(),
546
+ mapId: zod_1.z.number().int(),
547
+ participants: zod_1.z.array(match_v5_ParticipantDto),
548
+ platformId: zod_1.z.string(),
549
+ queueId: zod_1.z.number().int(),
550
+ teams: zod_1.z.array(match_v5_TeamDto),
551
+ tournamentCode: zod_1.z.string().optional(),
552
+ gameModeMutators: zod_1.z.array(zod_1.z.string()).optional(),
553
+ })
554
+ .passthrough();
555
+ const match_v5_MatchDto = zod_1.z
556
+ .object({ metadata: match_v5_MetadataDto, info: match_v5_InfoDto })
557
+ .passthrough();
558
+ const league_v4_LeagueListDTO = zod_1.z
559
+ .object({
560
+ leagueId: zod_1.z.string().optional(),
561
+ entries: zod_1.z.array(league_v4_LeagueItemDTO),
562
+ tier: zod_1.z.string(),
563
+ name: zod_1.z.string().optional(),
564
+ queue: zod_1.z.string(),
565
+ })
566
+ .passthrough();
567
+ exports.schemas = {
568
+ league_v4_MiniSeriesDTO,
569
+ league_v4_LeagueEntryDTO,
570
+ spectator_v5_BannedChampion,
571
+ spectator_v5_Observer,
572
+ spectator_v5_Perks,
573
+ spectator_v5_GameCustomizationObject,
574
+ spectator_v5_CurrentGameParticipant,
575
+ spectator_v5_CurrentGameInfo,
576
+ AccountInfo,
577
+ validationError,
578
+ simpleError,
579
+ simpleInternalError,
580
+ league_v4_LeagueItemDTO,
581
+ LeagueDetails,
582
+ match_v5_MetadataDto,
583
+ match_v5_ChallengesDto,
584
+ match_v5_MissionsDto,
585
+ match_v5_PerkStatsDto,
586
+ match_v5_PerkStyleSelectionDto,
587
+ match_v5_PerkStyleDto,
588
+ match_v5_PerksDto,
589
+ match_v5_ParticipantDto,
590
+ match_v5_BanDto,
591
+ match_v5_ObjectiveDto,
592
+ match_v5_ObjectivesDto,
593
+ match_v5_FeatDto,
594
+ match_v5_FeatsDto,
595
+ match_v5_TeamDto,
596
+ match_v5_InfoDto,
597
+ match_v5_MatchDto,
598
+ league_v4_LeagueListDTO,
599
+ };
600
+ const endpoints = (0, core_1.makeApi)([
601
+ {
602
+ method: "get",
603
+ path: "/account/:region/:puuid",
604
+ alias: "getAccountRegionPuuid",
605
+ description: `Retrieve Riot account details using the encrypted summoner ID for a specific region`,
606
+ requestFormat: "json",
607
+ parameters: [
608
+ {
609
+ name: "region",
610
+ type: "Path",
611
+ schema: zod_1.z.string(),
612
+ },
613
+ {
614
+ name: "puuid",
615
+ type: "Path",
616
+ schema: zod_1.z.string(),
617
+ },
618
+ ],
619
+ response: AccountInfo,
620
+ errors: [
621
+ {
622
+ status: 400,
623
+ description: `Bad Request - Invalid input parameters`,
624
+ schema: validationError,
625
+ },
626
+ {
627
+ status: 404,
628
+ description: `Not Found - Account not found for the given parameters`,
629
+ schema: zod_1.z.object({ message: zod_1.z.string() }).passthrough(),
630
+ },
631
+ {
632
+ status: 500,
633
+ description: `Internal Server Error - An unexpected error occurred`,
634
+ schema: zod_1.z.object({ message: zod_1.z.string() }).passthrough(),
635
+ },
636
+ ],
637
+ },
638
+ {
639
+ method: "get",
640
+ path: "/account/:region/:summonerName/:tagLine",
641
+ alias: "getAccountRegionSummonerNameTagLine",
642
+ description: `Retrieve Riot account details using the summoner name and tag line for a specific region`,
643
+ requestFormat: "json",
644
+ parameters: [
645
+ {
646
+ name: "region",
647
+ type: "Path",
648
+ schema: zod_1.z.string(),
649
+ },
650
+ {
651
+ name: "summonerName",
652
+ type: "Path",
653
+ schema: zod_1.z.string(),
654
+ },
655
+ {
656
+ name: "tagLine",
657
+ type: "Path",
658
+ schema: zod_1.z.string(),
659
+ },
660
+ ],
661
+ response: AccountInfo,
662
+ errors: [
663
+ {
664
+ status: 400,
665
+ description: `Bad Request - Invalid input parameters`,
666
+ schema: validationError,
667
+ },
668
+ {
669
+ status: 404,
670
+ description: `Not Found - Account not found for the given parameters`,
671
+ schema: zod_1.z.object({ message: zod_1.z.string() }).passthrough(),
672
+ },
673
+ {
674
+ status: 500,
675
+ description: `Internal Server Error - An unexpected error occurred`,
676
+ schema: zod_1.z.object({ message: zod_1.z.string() }).passthrough(),
677
+ },
678
+ ],
679
+ },
680
+ {
681
+ method: "get",
682
+ path: "/leagues/:region/:queue/:tier/:division",
683
+ alias: "getLeaguesRegionQueueTierDivision",
684
+ description: `Retrieve Riot league entries for a specific region, queue type, tier, and division`,
685
+ requestFormat: "json",
686
+ parameters: [
687
+ {
688
+ name: "region",
689
+ type: "Path",
690
+ schema: zod_1.z.string(),
691
+ },
692
+ {
693
+ name: "queue",
694
+ type: "Path",
695
+ schema: zod_1.z.string(),
696
+ },
697
+ {
698
+ name: "tier",
699
+ type: "Path",
700
+ schema: zod_1.z.string(),
701
+ },
702
+ {
703
+ name: "division",
704
+ type: "Path",
705
+ schema: zod_1.z.string(),
706
+ },
707
+ {
708
+ name: "count",
709
+ type: "Query",
710
+ schema: zod_1.z.number().int().optional(),
711
+ },
712
+ ],
713
+ response: zod_1.z.array(LeagueDetails),
714
+ errors: [
715
+ {
716
+ status: 400,
717
+ description: `Bad Request - Invalid input parameters`,
718
+ schema: validationError,
719
+ },
720
+ {
721
+ status: 500,
722
+ description: `Internal Server Error - An unexpected error occurred while processing the request.`,
723
+ schema: zod_1.z.object({ message: zod_1.z.string() }).passthrough(),
724
+ },
725
+ ],
726
+ },
727
+ {
728
+ method: "get",
729
+ path: "/matches/:region/:puuid",
730
+ alias: "getMatchesRegionPuuid",
731
+ description: `Retrieve a list of Riot match details for a specific player using their encrypted PUUID and region`,
732
+ requestFormat: "json",
733
+ parameters: [
734
+ {
735
+ name: "region",
736
+ type: "Path",
737
+ schema: zod_1.z.string(),
738
+ },
739
+ {
740
+ name: "puuid",
741
+ type: "Path",
742
+ schema: zod_1.z.string(),
743
+ },
744
+ {
745
+ name: "start",
746
+ type: "Query",
747
+ schema: zod_1.z.number().int().gte(0).optional().default(0),
748
+ },
749
+ {
750
+ name: "count",
751
+ type: "Query",
752
+ schema: zod_1.z.number().int().gte(1).optional().default(10),
753
+ },
754
+ ],
755
+ response: zod_1.z.array(match_v5_MatchDto),
756
+ errors: [
757
+ {
758
+ status: 400,
759
+ description: `Bad Request - Invalid input parameters`,
760
+ schema: validationError,
761
+ },
762
+ {
763
+ status: 404,
764
+ description: `Not Found - No matches found for the given parameters`,
765
+ schema: zod_1.z.object({ message: zod_1.z.string() }).passthrough(),
766
+ },
767
+ {
768
+ status: 500,
769
+ description: `Internal Server Error - Failed to retrieve match details for the specified parameters.`,
770
+ schema: zod_1.z.object({ message: zod_1.z.string() }).passthrough(),
771
+ },
772
+ ],
773
+ },
774
+ {
775
+ method: "get",
776
+ path: "/matches/match-ids/:region/:puuid",
777
+ alias: "getMatchesmatchIdsRegionPuuid",
778
+ description: `Retrieve a list of Riot match IDs for a specific player using their encrypted PUUID and region`,
779
+ requestFormat: "json",
780
+ parameters: [
781
+ {
782
+ name: "region",
783
+ type: "Path",
784
+ schema: zod_1.z.string(),
785
+ },
786
+ {
787
+ name: "puuid",
788
+ type: "Path",
789
+ schema: zod_1.z.string(),
790
+ },
791
+ {
792
+ name: "start",
793
+ type: "Query",
794
+ schema: zod_1.z.number().int().gte(0).optional().default(0),
795
+ },
796
+ {
797
+ name: "count",
798
+ type: "Query",
799
+ schema: zod_1.z.number().int().gte(1).optional().default(10),
800
+ },
801
+ ],
802
+ response: zod_1.z.array(zod_1.z.string()),
803
+ errors: [
804
+ {
805
+ status: 400,
806
+ description: `Bad Request - Invalid input parameters`,
807
+ schema: validationError,
808
+ },
809
+ {
810
+ status: 404,
811
+ description: `Not Found - No matches found for the given parameters`,
812
+ schema: zod_1.z.object({ message: zod_1.z.string() }).passthrough(),
813
+ },
814
+ {
815
+ status: 500,
816
+ description: `Internal Server Error - Failed to retrieve match IDs for the specified parameters.`,
817
+ schema: zod_1.z.object({ message: zod_1.z.string() }).passthrough(),
818
+ },
819
+ ],
820
+ },
821
+ {
822
+ method: "get",
823
+ path: "/matches/match/:region/:matchId",
824
+ alias: "getMatchesmatchRegionMatchId",
825
+ description: `Retrieve Riot match details using the match ID for a specific region`,
826
+ requestFormat: "json",
827
+ parameters: [
828
+ {
829
+ name: "region",
830
+ type: "Path",
831
+ schema: zod_1.z.string(),
832
+ },
833
+ {
834
+ name: "matchId",
835
+ type: "Path",
836
+ schema: zod_1.z.string(),
837
+ },
838
+ ],
839
+ response: match_v5_MatchDto,
840
+ errors: [
841
+ {
842
+ status: 400,
843
+ description: `Bad Request - Invalid input parameters`,
844
+ schema: validationError,
845
+ },
846
+ {
847
+ status: 404,
848
+ description: `Not Found - Match not found for the given parameters`,
849
+ schema: zod_1.z.object({ message: zod_1.z.string() }).passthrough(),
850
+ },
851
+ {
852
+ status: 500,
853
+ description: `Internal Server Error - Failed to retrieve match details for the specified parameters.`,
854
+ schema: zod_1.z.object({ message: zod_1.z.string() }).passthrough(),
855
+ },
856
+ ],
857
+ },
858
+ ]);
859
+ exports.api = new core_1.Zodios(endpoints);
860
+ function createApiClient(baseUrl, options) {
861
+ return new core_1.Zodios(baseUrl, endpoints, options);
862
+ }