@rotesblatt/hex-tractor-data-api 2.2.0 → 2.4.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.
|
@@ -7,12 +7,12 @@ type LeagueDetails = {
|
|
|
7
7
|
division: string;
|
|
8
8
|
name?: string | undefined;
|
|
9
9
|
lastUpdated: string;
|
|
10
|
-
entries: Array<
|
|
10
|
+
entries: Array<LeagueItem>;
|
|
11
11
|
};
|
|
12
|
-
type
|
|
12
|
+
type LeagueItem = {
|
|
13
13
|
freshBlood: boolean;
|
|
14
14
|
wins: number;
|
|
15
|
-
miniSeries?:
|
|
15
|
+
miniSeries?: LeagueMiniseries | undefined;
|
|
16
16
|
inactive: boolean;
|
|
17
17
|
veteran: boolean;
|
|
18
18
|
hotStreak: boolean;
|
|
@@ -22,7 +22,7 @@ type league_v4_LeagueItemDTO = {
|
|
|
22
22
|
puuid: string;
|
|
23
23
|
summonerId?: string | undefined;
|
|
24
24
|
};
|
|
25
|
-
type
|
|
25
|
+
type LeagueMiniseries = {
|
|
26
26
|
losses: number;
|
|
27
27
|
progress: string;
|
|
28
28
|
target: number;
|
|
@@ -38,10 +38,10 @@ type AccountInfo = {
|
|
|
38
38
|
summonerLevel: number;
|
|
39
39
|
lastUpdated: string;
|
|
40
40
|
};
|
|
41
|
-
leagueEntries: Array<
|
|
42
|
-
currentGame?:
|
|
41
|
+
leagueEntries: Array<LeagueEntry>;
|
|
42
|
+
currentGame?: SpectatorCurrentGameInfo | undefined;
|
|
43
43
|
};
|
|
44
|
-
type
|
|
44
|
+
type LeagueEntry = {
|
|
45
45
|
leagueId?: string | undefined;
|
|
46
46
|
puuid: string;
|
|
47
47
|
queueType: string;
|
|
@@ -54,10 +54,10 @@ type league_v4_LeagueEntryDTO = {
|
|
|
54
54
|
veteran: boolean;
|
|
55
55
|
freshBlood: boolean;
|
|
56
56
|
inactive: boolean;
|
|
57
|
-
miniSeries?:
|
|
57
|
+
miniSeries?: LeagueMiniseries | undefined;
|
|
58
58
|
summonerId?: string | undefined;
|
|
59
59
|
};
|
|
60
|
-
type
|
|
60
|
+
type SpectatorCurrentGameInfo = {
|
|
61
61
|
gameId: number;
|
|
62
62
|
gameType: string;
|
|
63
63
|
gameStartTime: number;
|
|
@@ -65,57 +65,50 @@ type spectator_v5_CurrentGameInfo = {
|
|
|
65
65
|
gameLength: number;
|
|
66
66
|
platformId: string;
|
|
67
67
|
gameMode: string;
|
|
68
|
-
bannedChampions: Array<
|
|
68
|
+
bannedChampions: Array<SpectatorBannedChampions>;
|
|
69
69
|
gameQueueConfigId?: number | undefined;
|
|
70
|
-
observers:
|
|
71
|
-
participants: Array<
|
|
70
|
+
observers: SpectatorObserver;
|
|
71
|
+
participants: Array<SpectatorCurrentGameParticipant>;
|
|
72
72
|
};
|
|
73
|
-
type
|
|
73
|
+
type SpectatorBannedChampions = {
|
|
74
74
|
pickTurn: number;
|
|
75
75
|
championId: number;
|
|
76
76
|
teamId: number;
|
|
77
77
|
};
|
|
78
|
-
type
|
|
78
|
+
type SpectatorObserver = {
|
|
79
79
|
encryptionKey: string;
|
|
80
80
|
};
|
|
81
|
-
type
|
|
81
|
+
type SpectatorCurrentGameParticipant = {
|
|
82
82
|
championId: number;
|
|
83
|
-
perks?:
|
|
83
|
+
perks?: SpectatorPerks | undefined;
|
|
84
84
|
profileIconId: number;
|
|
85
85
|
bot: boolean;
|
|
86
86
|
teamId: number;
|
|
87
87
|
puuid?: (string | null) | undefined;
|
|
88
88
|
spell1Id: number;
|
|
89
89
|
spell2Id: number;
|
|
90
|
-
gameCustomizationObjects: Array<
|
|
90
|
+
gameCustomizationObjects: Array<SpectatorGameCustomizationObject>;
|
|
91
91
|
riotId?: string | undefined;
|
|
92
92
|
};
|
|
93
|
-
type
|
|
93
|
+
type SpectatorPerks = {
|
|
94
94
|
perkIds: Array<number>;
|
|
95
95
|
perkStyle: number;
|
|
96
96
|
perkSubStyle: number;
|
|
97
97
|
};
|
|
98
|
-
type
|
|
98
|
+
type SpectatorGameCustomizationObject = {
|
|
99
99
|
category: string;
|
|
100
100
|
content: string;
|
|
101
101
|
};
|
|
102
|
-
type
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
tier: string;
|
|
106
|
-
name?: string | undefined;
|
|
107
|
-
queue: string;
|
|
102
|
+
type Match = {
|
|
103
|
+
metadata: MatchMetadata;
|
|
104
|
+
info: MatchInfo;
|
|
108
105
|
};
|
|
109
|
-
type
|
|
110
|
-
metadata: match_v5_MetadataDto;
|
|
111
|
-
info: match_v5_InfoDto;
|
|
112
|
-
};
|
|
113
|
-
type match_v5_MetadataDto = {
|
|
106
|
+
type MatchMetadata = {
|
|
114
107
|
dataVersion: string;
|
|
115
108
|
matchId: string;
|
|
116
109
|
participants: Array<string>;
|
|
117
110
|
};
|
|
118
|
-
type
|
|
111
|
+
type MatchInfo = {
|
|
119
112
|
endOfGameResult?: string | undefined;
|
|
120
113
|
gameCreation: number;
|
|
121
114
|
gameDuration: number;
|
|
@@ -127,14 +120,14 @@ type match_v5_InfoDto = {
|
|
|
127
120
|
gameType: string;
|
|
128
121
|
gameVersion: string;
|
|
129
122
|
mapId: number;
|
|
130
|
-
participants: Array<
|
|
123
|
+
participants: Array<MatchParticipant>;
|
|
131
124
|
platformId: string;
|
|
132
|
-
queueId:
|
|
133
|
-
teams: Array<
|
|
125
|
+
queueId: QueueId;
|
|
126
|
+
teams: Array<MatchTeam>;
|
|
134
127
|
tournamentCode?: string | undefined;
|
|
135
128
|
gameModeMutators?: Array<string> | undefined;
|
|
136
129
|
};
|
|
137
|
-
type
|
|
130
|
+
type MatchParticipant = {
|
|
138
131
|
allInPings?: number | undefined;
|
|
139
132
|
assistMePings?: number | undefined;
|
|
140
133
|
assists: number;
|
|
@@ -147,7 +140,7 @@ type match_v5_ParticipantDto = {
|
|
|
147
140
|
commandPings?: number | undefined;
|
|
148
141
|
championTransform: number;
|
|
149
142
|
consumablesPurchased: number;
|
|
150
|
-
challenges?:
|
|
143
|
+
challenges?: MatchChallenges | undefined;
|
|
151
144
|
damageDealtToBuildings?: number | undefined;
|
|
152
145
|
damageDealtToObjectives: number;
|
|
153
146
|
damageDealtToTurrets: number;
|
|
@@ -191,7 +184,7 @@ type match_v5_ParticipantDto = {
|
|
|
191
184
|
magicDamageDealt: number;
|
|
192
185
|
magicDamageDealtToChampions: number;
|
|
193
186
|
magicDamageTaken: number;
|
|
194
|
-
missions?:
|
|
187
|
+
missions?: MatchMissions | undefined;
|
|
195
188
|
neutralMinionsKilled: number;
|
|
196
189
|
needVisionPings?: number | undefined;
|
|
197
190
|
nexusKills: number;
|
|
@@ -214,7 +207,7 @@ type match_v5_ParticipantDto = {
|
|
|
214
207
|
playerScore10?: number | undefined;
|
|
215
208
|
playerScore11?: number | undefined;
|
|
216
209
|
pentaKills: number;
|
|
217
|
-
perks:
|
|
210
|
+
perks: MatchPerks;
|
|
218
211
|
physicalDamageDealt: number;
|
|
219
212
|
physicalDamageDealtToChampions: number;
|
|
220
213
|
physicalDamageTaken: number;
|
|
@@ -284,7 +277,7 @@ type match_v5_ParticipantDto = {
|
|
|
284
277
|
retreatPings?: number | undefined;
|
|
285
278
|
championSkinId?: number | undefined;
|
|
286
279
|
};
|
|
287
|
-
type
|
|
280
|
+
type MatchChallenges = Partial<{
|
|
288
281
|
"12AssistStreakCount": number;
|
|
289
282
|
baronBuffGoldAdvantageOverThreshold: number;
|
|
290
283
|
controlWardTimeCoverageInRiverOrEnemyHalf: number;
|
|
@@ -433,7 +426,7 @@ type match_v5_ChallengesDto = Partial<{
|
|
|
433
426
|
wardTakedownsBefore20M: number;
|
|
434
427
|
HealFromMapSources: number;
|
|
435
428
|
}>;
|
|
436
|
-
type
|
|
429
|
+
type MatchMissions = Partial<{
|
|
437
430
|
playerScore0: number;
|
|
438
431
|
playerScore1: number;
|
|
439
432
|
playerScore2: number;
|
|
@@ -447,61 +440,161 @@ type match_v5_MissionsDto = Partial<{
|
|
|
447
440
|
playerScore10: number;
|
|
448
441
|
playerScore11: number;
|
|
449
442
|
}>;
|
|
450
|
-
type
|
|
451
|
-
statPerks:
|
|
452
|
-
styles: Array<
|
|
443
|
+
type MatchPerks = {
|
|
444
|
+
statPerks: MatchPerkStats;
|
|
445
|
+
styles: Array<MatchPerkStyle>;
|
|
453
446
|
};
|
|
454
|
-
type
|
|
447
|
+
type MatchPerkStats = {
|
|
455
448
|
defense: number;
|
|
456
449
|
flex: number;
|
|
457
450
|
offense: number;
|
|
458
451
|
};
|
|
459
|
-
type
|
|
452
|
+
type MatchPerkStyle = {
|
|
460
453
|
description: string;
|
|
461
|
-
selections: Array<
|
|
454
|
+
selections: Array<MatchPerkStyleSelection>;
|
|
462
455
|
style: number;
|
|
463
456
|
};
|
|
464
|
-
type
|
|
457
|
+
type MatchPerkStyleSelection = {
|
|
465
458
|
perk: number;
|
|
466
459
|
var1: number;
|
|
467
460
|
var2: number;
|
|
468
461
|
var3: number;
|
|
469
462
|
};
|
|
470
|
-
type
|
|
471
|
-
|
|
472
|
-
|
|
463
|
+
type QueueId =
|
|
464
|
+
| 0
|
|
465
|
+
| 2
|
|
466
|
+
| 4
|
|
467
|
+
| 6
|
|
468
|
+
| 7
|
|
469
|
+
| 8
|
|
470
|
+
| 9
|
|
471
|
+
| 14
|
|
472
|
+
| 16
|
|
473
|
+
| 17
|
|
474
|
+
| 25
|
|
475
|
+
| 31
|
|
476
|
+
| 32
|
|
477
|
+
| 33
|
|
478
|
+
| 41
|
|
479
|
+
| 42
|
|
480
|
+
| 52
|
|
481
|
+
| 61
|
|
482
|
+
| 65
|
|
483
|
+
| 67
|
|
484
|
+
| 70
|
|
485
|
+
| 72
|
|
486
|
+
| 73
|
|
487
|
+
| 75
|
|
488
|
+
| 76
|
|
489
|
+
| 78
|
|
490
|
+
| 83
|
|
491
|
+
| 91
|
|
492
|
+
| 92
|
|
493
|
+
| 93
|
|
494
|
+
| 96
|
|
495
|
+
| 98
|
|
496
|
+
| 100
|
|
497
|
+
| 300
|
|
498
|
+
| 310
|
|
499
|
+
| 313
|
|
500
|
+
| 315
|
|
501
|
+
| 317
|
|
502
|
+
| 318
|
|
503
|
+
| 325
|
|
504
|
+
| 400
|
|
505
|
+
| 410
|
|
506
|
+
| 420
|
|
507
|
+
| 430
|
|
508
|
+
| 440
|
|
509
|
+
| 450
|
|
510
|
+
| 460
|
|
511
|
+
| 470
|
|
512
|
+
| 480
|
|
513
|
+
| 490
|
|
514
|
+
| 600
|
|
515
|
+
| 610
|
|
516
|
+
| 700
|
|
517
|
+
| 720
|
|
518
|
+
| 800
|
|
519
|
+
| 810
|
|
520
|
+
| 820
|
|
521
|
+
| 830
|
|
522
|
+
| 840
|
|
523
|
+
| 850
|
|
524
|
+
| 870
|
|
525
|
+
| 880
|
|
526
|
+
| 890
|
|
527
|
+
| 900
|
|
528
|
+
| 910
|
|
529
|
+
| 920
|
|
530
|
+
| 940
|
|
531
|
+
| 950
|
|
532
|
+
| 960
|
|
533
|
+
| 980
|
|
534
|
+
| 990
|
|
535
|
+
| 1000
|
|
536
|
+
| 1010
|
|
537
|
+
| 1020
|
|
538
|
+
| 1030
|
|
539
|
+
| 1040
|
|
540
|
+
| 1050
|
|
541
|
+
| 1060
|
|
542
|
+
| 1070
|
|
543
|
+
| 1090
|
|
544
|
+
| 1100
|
|
545
|
+
| 1110
|
|
546
|
+
| 1111
|
|
547
|
+
| 1200
|
|
548
|
+
| 1210
|
|
549
|
+
| 1300
|
|
550
|
+
| 1400
|
|
551
|
+
| 1700
|
|
552
|
+
| 1710
|
|
553
|
+
| 1810
|
|
554
|
+
| 1820
|
|
555
|
+
| 1830
|
|
556
|
+
| 1840
|
|
557
|
+
| 1900
|
|
558
|
+
| 2000
|
|
559
|
+
| 2010
|
|
560
|
+
| 2020
|
|
561
|
+
| 2300
|
|
562
|
+
| 2400;
|
|
563
|
+
type MatchTeam = {
|
|
564
|
+
bans: Array<MatchBan>;
|
|
565
|
+
objectives: MatchObjectives;
|
|
473
566
|
teamId: number;
|
|
474
567
|
win: boolean;
|
|
475
|
-
feats?:
|
|
568
|
+
feats?: MatchFeats | undefined;
|
|
476
569
|
};
|
|
477
|
-
type
|
|
570
|
+
type MatchBan = {
|
|
478
571
|
championId: number;
|
|
479
572
|
pickTurn: number;
|
|
480
573
|
};
|
|
481
|
-
type
|
|
482
|
-
baron:
|
|
483
|
-
champion:
|
|
484
|
-
dragon:
|
|
485
|
-
horde?:
|
|
486
|
-
inhibitor:
|
|
487
|
-
riftHerald:
|
|
488
|
-
tower:
|
|
489
|
-
atakhan?:
|
|
574
|
+
type MatchObjectives = {
|
|
575
|
+
baron: MatchObjective;
|
|
576
|
+
champion: MatchObjective;
|
|
577
|
+
dragon: MatchObjective;
|
|
578
|
+
horde?: MatchObjective | undefined;
|
|
579
|
+
inhibitor: MatchObjective;
|
|
580
|
+
riftHerald: MatchObjective;
|
|
581
|
+
tower: MatchObjective;
|
|
582
|
+
atakhan?: MatchObjective | undefined;
|
|
490
583
|
};
|
|
491
|
-
type
|
|
584
|
+
type MatchObjective = {
|
|
492
585
|
first: boolean;
|
|
493
586
|
kills: number;
|
|
494
587
|
};
|
|
495
|
-
type
|
|
496
|
-
EPIC_MONSTER_KILL:
|
|
497
|
-
FIRST_BLOOD:
|
|
498
|
-
FIRST_TURRET:
|
|
588
|
+
type MatchFeats = Partial<{
|
|
589
|
+
EPIC_MONSTER_KILL: MatchFeat;
|
|
590
|
+
FIRST_BLOOD: MatchFeat;
|
|
591
|
+
FIRST_TURRET: MatchFeat;
|
|
499
592
|
}>;
|
|
500
|
-
type
|
|
593
|
+
type MatchFeat = Partial<{
|
|
501
594
|
featState: number;
|
|
502
595
|
}>;
|
|
503
596
|
|
|
504
|
-
const
|
|
597
|
+
const LeagueMiniseries: z.ZodType<LeagueMiniseries> = z
|
|
505
598
|
.object({
|
|
506
599
|
losses: z.number().int(),
|
|
507
600
|
progress: z.string(),
|
|
@@ -509,7 +602,7 @@ const league_v4_MiniSeriesDTO: z.ZodType<league_v4_MiniSeriesDTO> = z
|
|
|
509
602
|
wins: z.number().int(),
|
|
510
603
|
})
|
|
511
604
|
.passthrough();
|
|
512
|
-
const
|
|
605
|
+
const LeagueEntry: z.ZodType<LeagueEntry> = z
|
|
513
606
|
.object({
|
|
514
607
|
leagueId: z.string().optional(),
|
|
515
608
|
puuid: z.string(),
|
|
@@ -523,45 +616,45 @@ const league_v4_LeagueEntryDTO: z.ZodType<league_v4_LeagueEntryDTO> = z
|
|
|
523
616
|
veteran: z.boolean(),
|
|
524
617
|
freshBlood: z.boolean(),
|
|
525
618
|
inactive: z.boolean(),
|
|
526
|
-
miniSeries:
|
|
619
|
+
miniSeries: LeagueMiniseries.optional(),
|
|
527
620
|
summonerId: z.string().optional(),
|
|
528
621
|
})
|
|
529
622
|
.passthrough();
|
|
530
|
-
const
|
|
623
|
+
const SpectatorBannedChampions: z.ZodType<SpectatorBannedChampions> = z
|
|
531
624
|
.object({
|
|
532
625
|
pickTurn: z.number().int(),
|
|
533
626
|
championId: z.number().int(),
|
|
534
627
|
teamId: z.number().int(),
|
|
535
628
|
})
|
|
536
629
|
.passthrough();
|
|
537
|
-
const
|
|
630
|
+
const SpectatorObserver: z.ZodType<SpectatorObserver> = z
|
|
538
631
|
.object({ encryptionKey: z.string() })
|
|
539
632
|
.passthrough();
|
|
540
|
-
const
|
|
633
|
+
const SpectatorPerks: z.ZodType<SpectatorPerks> = z
|
|
541
634
|
.object({
|
|
542
635
|
perkIds: z.array(z.number().int()),
|
|
543
636
|
perkStyle: z.number().int(),
|
|
544
637
|
perkSubStyle: z.number().int(),
|
|
545
638
|
})
|
|
546
639
|
.passthrough();
|
|
547
|
-
const
|
|
640
|
+
const SpectatorGameCustomizationObject: z.ZodType<SpectatorGameCustomizationObject> =
|
|
548
641
|
z.object({ category: z.string(), content: z.string() }).passthrough();
|
|
549
|
-
const
|
|
642
|
+
const SpectatorCurrentGameParticipant: z.ZodType<SpectatorCurrentGameParticipant> =
|
|
550
643
|
z
|
|
551
644
|
.object({
|
|
552
645
|
championId: z.number().int(),
|
|
553
|
-
perks:
|
|
646
|
+
perks: SpectatorPerks.optional(),
|
|
554
647
|
profileIconId: z.number().int(),
|
|
555
648
|
bot: z.boolean(),
|
|
556
649
|
teamId: z.number().int(),
|
|
557
650
|
puuid: z.string().nullish(),
|
|
558
651
|
spell1Id: z.number().int(),
|
|
559
652
|
spell2Id: z.number().int(),
|
|
560
|
-
gameCustomizationObjects: z.array(
|
|
653
|
+
gameCustomizationObjects: z.array(SpectatorGameCustomizationObject),
|
|
561
654
|
riotId: z.string().optional(),
|
|
562
655
|
})
|
|
563
656
|
.passthrough();
|
|
564
|
-
const
|
|
657
|
+
const SpectatorCurrentGameInfo: z.ZodType<SpectatorCurrentGameInfo> = z
|
|
565
658
|
.object({
|
|
566
659
|
gameId: z.number().int(),
|
|
567
660
|
gameType: z.string(),
|
|
@@ -570,10 +663,10 @@ const spectator_v5_CurrentGameInfo: z.ZodType<spectator_v5_CurrentGameInfo> = z
|
|
|
570
663
|
gameLength: z.number().int(),
|
|
571
664
|
platformId: z.string(),
|
|
572
665
|
gameMode: z.string(),
|
|
573
|
-
bannedChampions: z.array(
|
|
666
|
+
bannedChampions: z.array(SpectatorBannedChampions),
|
|
574
667
|
gameQueueConfigId: z.number().int().optional(),
|
|
575
|
-
observers:
|
|
576
|
-
participants: z.array(
|
|
668
|
+
observers: SpectatorObserver,
|
|
669
|
+
participants: z.array(SpectatorCurrentGameParticipant),
|
|
577
670
|
})
|
|
578
671
|
.passthrough();
|
|
579
672
|
const AccountInfo: z.ZodType<AccountInfo> = z
|
|
@@ -589,8 +682,8 @@ const AccountInfo: z.ZodType<AccountInfo> = z
|
|
|
589
682
|
lastUpdated: z.string(),
|
|
590
683
|
})
|
|
591
684
|
.passthrough(),
|
|
592
|
-
leagueEntries: z.array(
|
|
593
|
-
currentGame:
|
|
685
|
+
leagueEntries: z.array(LeagueEntry),
|
|
686
|
+
currentGame: SpectatorCurrentGameInfo.optional(),
|
|
594
687
|
})
|
|
595
688
|
.passthrough();
|
|
596
689
|
const validationError = z
|
|
@@ -612,11 +705,11 @@ const validationError = z
|
|
|
612
705
|
.passthrough();
|
|
613
706
|
const simpleError = z.object({ message: z.string() }).passthrough();
|
|
614
707
|
const simpleInternalError = z.object({ message: z.string() }).passthrough();
|
|
615
|
-
const
|
|
708
|
+
const LeagueItem: z.ZodType<LeagueItem> = z
|
|
616
709
|
.object({
|
|
617
710
|
freshBlood: z.boolean(),
|
|
618
711
|
wins: z.number().int(),
|
|
619
|
-
miniSeries:
|
|
712
|
+
miniSeries: LeagueMiniseries.optional(),
|
|
620
713
|
inactive: z.boolean(),
|
|
621
714
|
veteran: z.boolean(),
|
|
622
715
|
hotStreak: z.boolean(),
|
|
@@ -634,17 +727,17 @@ const LeagueDetails: z.ZodType<LeagueDetails> = z
|
|
|
634
727
|
division: z.string(),
|
|
635
728
|
name: z.string().optional(),
|
|
636
729
|
lastUpdated: z.string(),
|
|
637
|
-
entries: z.array(
|
|
730
|
+
entries: z.array(LeagueItem),
|
|
638
731
|
})
|
|
639
732
|
.passthrough();
|
|
640
|
-
const
|
|
733
|
+
const MatchMetadata: z.ZodType<MatchMetadata> = z
|
|
641
734
|
.object({
|
|
642
735
|
dataVersion: z.string(),
|
|
643
736
|
matchId: z.string(),
|
|
644
737
|
participants: z.array(z.string()),
|
|
645
738
|
})
|
|
646
739
|
.passthrough();
|
|
647
|
-
const
|
|
740
|
+
const MatchChallenges: z.ZodType<MatchChallenges> = z
|
|
648
741
|
.object({
|
|
649
742
|
"12AssistStreakCount": z.number().int(),
|
|
650
743
|
baronBuffGoldAdvantageOverThreshold: z.number().int(),
|
|
@@ -796,7 +889,7 @@ const match_v5_ChallengesDto: z.ZodType<match_v5_ChallengesDto> = z
|
|
|
796
889
|
})
|
|
797
890
|
.partial()
|
|
798
891
|
.passthrough();
|
|
799
|
-
const
|
|
892
|
+
const MatchMissions: z.ZodType<MatchMissions> = z
|
|
800
893
|
.object({
|
|
801
894
|
playerScore0: z.number(),
|
|
802
895
|
playerScore1: z.number(),
|
|
@@ -813,36 +906,32 @@ const match_v5_MissionsDto: z.ZodType<match_v5_MissionsDto> = z
|
|
|
813
906
|
})
|
|
814
907
|
.partial()
|
|
815
908
|
.passthrough();
|
|
816
|
-
const
|
|
909
|
+
const MatchPerkStats: z.ZodType<MatchPerkStats> = z
|
|
817
910
|
.object({
|
|
818
911
|
defense: z.number().int(),
|
|
819
912
|
flex: z.number().int(),
|
|
820
913
|
offense: z.number().int(),
|
|
821
914
|
})
|
|
822
915
|
.passthrough();
|
|
823
|
-
const
|
|
824
|
-
z
|
|
825
|
-
.object({
|
|
826
|
-
perk: z.number().int(),
|
|
827
|
-
var1: z.number().int(),
|
|
828
|
-
var2: z.number().int(),
|
|
829
|
-
var3: z.number().int(),
|
|
830
|
-
})
|
|
831
|
-
.passthrough();
|
|
832
|
-
const match_v5_PerkStyleDto: z.ZodType<match_v5_PerkStyleDto> = z
|
|
916
|
+
const MatchPerkStyleSelection: z.ZodType<MatchPerkStyleSelection> = z
|
|
833
917
|
.object({
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
918
|
+
perk: z.number().int(),
|
|
919
|
+
var1: z.number().int(),
|
|
920
|
+
var2: z.number().int(),
|
|
921
|
+
var3: z.number().int(),
|
|
837
922
|
})
|
|
838
923
|
.passthrough();
|
|
839
|
-
const
|
|
924
|
+
const MatchPerkStyle: z.ZodType<MatchPerkStyle> = z
|
|
840
925
|
.object({
|
|
841
|
-
|
|
842
|
-
|
|
926
|
+
description: z.string(),
|
|
927
|
+
selections: z.array(MatchPerkStyleSelection),
|
|
928
|
+
style: z.number().int(),
|
|
843
929
|
})
|
|
844
930
|
.passthrough();
|
|
845
|
-
const
|
|
931
|
+
const MatchPerks: z.ZodType<MatchPerks> = z
|
|
932
|
+
.object({ statPerks: MatchPerkStats, styles: z.array(MatchPerkStyle) })
|
|
933
|
+
.passthrough();
|
|
934
|
+
const MatchParticipant: z.ZodType<MatchParticipant> = z
|
|
846
935
|
.object({
|
|
847
936
|
allInPings: z.number().int().optional(),
|
|
848
937
|
assistMePings: z.number().int().optional(),
|
|
@@ -856,7 +945,7 @@ const match_v5_ParticipantDto: z.ZodType<match_v5_ParticipantDto> = z
|
|
|
856
945
|
commandPings: z.number().int().optional(),
|
|
857
946
|
championTransform: z.number().int(),
|
|
858
947
|
consumablesPurchased: z.number().int(),
|
|
859
|
-
challenges:
|
|
948
|
+
challenges: MatchChallenges.optional(),
|
|
860
949
|
damageDealtToBuildings: z.number().int().optional(),
|
|
861
950
|
damageDealtToObjectives: z.number().int(),
|
|
862
951
|
damageDealtToTurrets: z.number().int(),
|
|
@@ -900,7 +989,7 @@ const match_v5_ParticipantDto: z.ZodType<match_v5_ParticipantDto> = z
|
|
|
900
989
|
magicDamageDealt: z.number().int(),
|
|
901
990
|
magicDamageDealtToChampions: z.number().int(),
|
|
902
991
|
magicDamageTaken: z.number().int(),
|
|
903
|
-
missions:
|
|
992
|
+
missions: MatchMissions.optional(),
|
|
904
993
|
neutralMinionsKilled: z.number().int(),
|
|
905
994
|
needVisionPings: z.number().int().optional(),
|
|
906
995
|
nexusKills: z.number().int(),
|
|
@@ -923,7 +1012,7 @@ const match_v5_ParticipantDto: z.ZodType<match_v5_ParticipantDto> = z
|
|
|
923
1012
|
playerScore10: z.number().optional(),
|
|
924
1013
|
playerScore11: z.number().optional(),
|
|
925
1014
|
pentaKills: z.number().int(),
|
|
926
|
-
perks:
|
|
1015
|
+
perks: MatchPerks,
|
|
927
1016
|
physicalDamageDealt: z.number().int(),
|
|
928
1017
|
physicalDamageDealtToChampions: z.number().int(),
|
|
929
1018
|
physicalDamageTaken: z.number().int(),
|
|
@@ -994,46 +1083,147 @@ const match_v5_ParticipantDto: z.ZodType<match_v5_ParticipantDto> = z
|
|
|
994
1083
|
championSkinId: z.number().int().optional(),
|
|
995
1084
|
})
|
|
996
1085
|
.passthrough();
|
|
997
|
-
const
|
|
1086
|
+
const QueueId = z.union([
|
|
1087
|
+
z.literal(0),
|
|
1088
|
+
z.literal(2),
|
|
1089
|
+
z.literal(4),
|
|
1090
|
+
z.literal(6),
|
|
1091
|
+
z.literal(7),
|
|
1092
|
+
z.literal(8),
|
|
1093
|
+
z.literal(9),
|
|
1094
|
+
z.literal(14),
|
|
1095
|
+
z.literal(16),
|
|
1096
|
+
z.literal(17),
|
|
1097
|
+
z.literal(25),
|
|
1098
|
+
z.literal(31),
|
|
1099
|
+
z.literal(32),
|
|
1100
|
+
z.literal(33),
|
|
1101
|
+
z.literal(41),
|
|
1102
|
+
z.literal(42),
|
|
1103
|
+
z.literal(52),
|
|
1104
|
+
z.literal(61),
|
|
1105
|
+
z.literal(65),
|
|
1106
|
+
z.literal(67),
|
|
1107
|
+
z.literal(70),
|
|
1108
|
+
z.literal(72),
|
|
1109
|
+
z.literal(73),
|
|
1110
|
+
z.literal(75),
|
|
1111
|
+
z.literal(76),
|
|
1112
|
+
z.literal(78),
|
|
1113
|
+
z.literal(83),
|
|
1114
|
+
z.literal(91),
|
|
1115
|
+
z.literal(92),
|
|
1116
|
+
z.literal(93),
|
|
1117
|
+
z.literal(96),
|
|
1118
|
+
z.literal(98),
|
|
1119
|
+
z.literal(100),
|
|
1120
|
+
z.literal(300),
|
|
1121
|
+
z.literal(310),
|
|
1122
|
+
z.literal(313),
|
|
1123
|
+
z.literal(315),
|
|
1124
|
+
z.literal(317),
|
|
1125
|
+
z.literal(318),
|
|
1126
|
+
z.literal(325),
|
|
1127
|
+
z.literal(400),
|
|
1128
|
+
z.literal(410),
|
|
1129
|
+
z.literal(420),
|
|
1130
|
+
z.literal(430),
|
|
1131
|
+
z.literal(440),
|
|
1132
|
+
z.literal(450),
|
|
1133
|
+
z.literal(460),
|
|
1134
|
+
z.literal(470),
|
|
1135
|
+
z.literal(480),
|
|
1136
|
+
z.literal(490),
|
|
1137
|
+
z.literal(600),
|
|
1138
|
+
z.literal(610),
|
|
1139
|
+
z.literal(700),
|
|
1140
|
+
z.literal(720),
|
|
1141
|
+
z.literal(800),
|
|
1142
|
+
z.literal(810),
|
|
1143
|
+
z.literal(820),
|
|
1144
|
+
z.literal(830),
|
|
1145
|
+
z.literal(840),
|
|
1146
|
+
z.literal(850),
|
|
1147
|
+
z.literal(870),
|
|
1148
|
+
z.literal(880),
|
|
1149
|
+
z.literal(890),
|
|
1150
|
+
z.literal(900),
|
|
1151
|
+
z.literal(910),
|
|
1152
|
+
z.literal(920),
|
|
1153
|
+
z.literal(940),
|
|
1154
|
+
z.literal(950),
|
|
1155
|
+
z.literal(960),
|
|
1156
|
+
z.literal(980),
|
|
1157
|
+
z.literal(990),
|
|
1158
|
+
z.literal(1000),
|
|
1159
|
+
z.literal(1010),
|
|
1160
|
+
z.literal(1020),
|
|
1161
|
+
z.literal(1030),
|
|
1162
|
+
z.literal(1040),
|
|
1163
|
+
z.literal(1050),
|
|
1164
|
+
z.literal(1060),
|
|
1165
|
+
z.literal(1070),
|
|
1166
|
+
z.literal(1090),
|
|
1167
|
+
z.literal(1100),
|
|
1168
|
+
z.literal(1110),
|
|
1169
|
+
z.literal(1111),
|
|
1170
|
+
z.literal(1200),
|
|
1171
|
+
z.literal(1210),
|
|
1172
|
+
z.literal(1300),
|
|
1173
|
+
z.literal(1400),
|
|
1174
|
+
z.literal(1700),
|
|
1175
|
+
z.literal(1710),
|
|
1176
|
+
z.literal(1810),
|
|
1177
|
+
z.literal(1820),
|
|
1178
|
+
z.literal(1830),
|
|
1179
|
+
z.literal(1840),
|
|
1180
|
+
z.literal(1900),
|
|
1181
|
+
z.literal(2000),
|
|
1182
|
+
z.literal(2010),
|
|
1183
|
+
z.literal(2020),
|
|
1184
|
+
z.literal(2300),
|
|
1185
|
+
z.literal(2400),
|
|
1186
|
+
]);
|
|
1187
|
+
const MatchBan: z.ZodType<MatchBan> = z
|
|
998
1188
|
.object({ championId: z.number().int(), pickTurn: z.number().int() })
|
|
999
1189
|
.passthrough();
|
|
1000
|
-
const
|
|
1190
|
+
const MatchObjective: z.ZodType<MatchObjective> = z
|
|
1001
1191
|
.object({ first: z.boolean(), kills: z.number().int() })
|
|
1002
1192
|
.passthrough();
|
|
1003
|
-
const
|
|
1193
|
+
const MatchObjectives: z.ZodType<MatchObjectives> = z
|
|
1004
1194
|
.object({
|
|
1005
|
-
baron:
|
|
1006
|
-
champion:
|
|
1007
|
-
dragon:
|
|
1008
|
-
horde:
|
|
1009
|
-
inhibitor:
|
|
1010
|
-
riftHerald:
|
|
1011
|
-
tower:
|
|
1012
|
-
atakhan:
|
|
1195
|
+
baron: MatchObjective,
|
|
1196
|
+
champion: MatchObjective,
|
|
1197
|
+
dragon: MatchObjective,
|
|
1198
|
+
horde: MatchObjective.optional(),
|
|
1199
|
+
inhibitor: MatchObjective,
|
|
1200
|
+
riftHerald: MatchObjective,
|
|
1201
|
+
tower: MatchObjective,
|
|
1202
|
+
atakhan: MatchObjective.optional(),
|
|
1013
1203
|
})
|
|
1014
1204
|
.passthrough();
|
|
1015
|
-
const
|
|
1205
|
+
const MatchFeat: z.ZodType<MatchFeat> = z
|
|
1016
1206
|
.object({ featState: z.number().int() })
|
|
1017
1207
|
.partial()
|
|
1018
1208
|
.passthrough();
|
|
1019
|
-
const
|
|
1209
|
+
const MatchFeats: z.ZodType<MatchFeats> = z
|
|
1020
1210
|
.object({
|
|
1021
|
-
EPIC_MONSTER_KILL:
|
|
1022
|
-
FIRST_BLOOD:
|
|
1023
|
-
FIRST_TURRET:
|
|
1211
|
+
EPIC_MONSTER_KILL: MatchFeat,
|
|
1212
|
+
FIRST_BLOOD: MatchFeat,
|
|
1213
|
+
FIRST_TURRET: MatchFeat,
|
|
1024
1214
|
})
|
|
1025
1215
|
.partial()
|
|
1026
1216
|
.passthrough();
|
|
1027
|
-
const
|
|
1217
|
+
const MatchTeam: z.ZodType<MatchTeam> = z
|
|
1028
1218
|
.object({
|
|
1029
|
-
bans: z.array(
|
|
1030
|
-
objectives:
|
|
1219
|
+
bans: z.array(MatchBan),
|
|
1220
|
+
objectives: MatchObjectives,
|
|
1031
1221
|
teamId: z.number().int(),
|
|
1032
1222
|
win: z.boolean(),
|
|
1033
|
-
feats:
|
|
1223
|
+
feats: MatchFeats.optional(),
|
|
1034
1224
|
})
|
|
1035
1225
|
.passthrough();
|
|
1036
|
-
const
|
|
1226
|
+
const MatchInfo: z.ZodType<MatchInfo> = z
|
|
1037
1227
|
.object({
|
|
1038
1228
|
endOfGameResult: z.string().optional(),
|
|
1039
1229
|
gameCreation: z.number().int(),
|
|
@@ -1046,59 +1236,92 @@ const match_v5_InfoDto: z.ZodType<match_v5_InfoDto> = z
|
|
|
1046
1236
|
gameType: z.string(),
|
|
1047
1237
|
gameVersion: z.string(),
|
|
1048
1238
|
mapId: z.number().int(),
|
|
1049
|
-
participants: z.array(
|
|
1239
|
+
participants: z.array(MatchParticipant),
|
|
1050
1240
|
platformId: z.string(),
|
|
1051
|
-
queueId:
|
|
1052
|
-
teams: z.array(
|
|
1241
|
+
queueId: QueueId,
|
|
1242
|
+
teams: z.array(MatchTeam),
|
|
1053
1243
|
tournamentCode: z.string().optional(),
|
|
1054
1244
|
gameModeMutators: z.array(z.string()).optional(),
|
|
1055
1245
|
})
|
|
1056
1246
|
.passthrough();
|
|
1057
|
-
const
|
|
1058
|
-
.object({ metadata:
|
|
1059
|
-
.passthrough();
|
|
1060
|
-
const league_v4_LeagueListDTO: z.ZodType<league_v4_LeagueListDTO> = z
|
|
1061
|
-
.object({
|
|
1062
|
-
leagueId: z.string().optional(),
|
|
1063
|
-
entries: z.array(league_v4_LeagueItemDTO),
|
|
1064
|
-
tier: z.string(),
|
|
1065
|
-
name: z.string().optional(),
|
|
1066
|
-
queue: z.string(),
|
|
1067
|
-
})
|
|
1247
|
+
const Match: z.ZodType<Match> = z
|
|
1248
|
+
.object({ metadata: MatchMetadata, info: MatchInfo })
|
|
1068
1249
|
.passthrough();
|
|
1250
|
+
const Region = z.enum([
|
|
1251
|
+
"br1",
|
|
1252
|
+
"euw1",
|
|
1253
|
+
"na1",
|
|
1254
|
+
"eun1",
|
|
1255
|
+
"kr",
|
|
1256
|
+
"jp1",
|
|
1257
|
+
"la1",
|
|
1258
|
+
"la2",
|
|
1259
|
+
"oc1",
|
|
1260
|
+
"tr1",
|
|
1261
|
+
"ru",
|
|
1262
|
+
"ph2",
|
|
1263
|
+
"sg2",
|
|
1264
|
+
"th2",
|
|
1265
|
+
"tw2",
|
|
1266
|
+
"vn2",
|
|
1267
|
+
]);
|
|
1268
|
+
const Platform = z.enum(["europe", "americas", "asia", "sea"]);
|
|
1269
|
+
const RankedQueue = z.enum([
|
|
1270
|
+
"RANKED_SOLO_5x5",
|
|
1271
|
+
"RANKED_FLEX_SR",
|
|
1272
|
+
"RANKED_FLEX_TT",
|
|
1273
|
+
]);
|
|
1274
|
+
const RankedTier = z.enum([
|
|
1275
|
+
"IRON",
|
|
1276
|
+
"BRONZE",
|
|
1277
|
+
"SILVER",
|
|
1278
|
+
"GOLD",
|
|
1279
|
+
"PLATINUM",
|
|
1280
|
+
"EMERALD",
|
|
1281
|
+
"DIAMOND",
|
|
1282
|
+
"MASTER",
|
|
1283
|
+
"GRANDMASTER",
|
|
1284
|
+
"CHALLENGER",
|
|
1285
|
+
]);
|
|
1286
|
+
const RankedDivision = z.enum(["I", "II", "III", "IV"]);
|
|
1069
1287
|
|
|
1070
1288
|
export const schemas = {
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1289
|
+
LeagueMiniseries,
|
|
1290
|
+
LeagueEntry,
|
|
1291
|
+
SpectatorBannedChampions,
|
|
1292
|
+
SpectatorObserver,
|
|
1293
|
+
SpectatorPerks,
|
|
1294
|
+
SpectatorGameCustomizationObject,
|
|
1295
|
+
SpectatorCurrentGameParticipant,
|
|
1296
|
+
SpectatorCurrentGameInfo,
|
|
1079
1297
|
AccountInfo,
|
|
1080
1298
|
validationError,
|
|
1081
1299
|
simpleError,
|
|
1082
1300
|
simpleInternalError,
|
|
1083
|
-
|
|
1301
|
+
LeagueItem,
|
|
1084
1302
|
LeagueDetails,
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1303
|
+
MatchMetadata,
|
|
1304
|
+
MatchChallenges,
|
|
1305
|
+
MatchMissions,
|
|
1306
|
+
MatchPerkStats,
|
|
1307
|
+
MatchPerkStyleSelection,
|
|
1308
|
+
MatchPerkStyle,
|
|
1309
|
+
MatchPerks,
|
|
1310
|
+
MatchParticipant,
|
|
1311
|
+
QueueId,
|
|
1312
|
+
MatchBan,
|
|
1313
|
+
MatchObjective,
|
|
1314
|
+
MatchObjectives,
|
|
1315
|
+
MatchFeat,
|
|
1316
|
+
MatchFeats,
|
|
1317
|
+
MatchTeam,
|
|
1318
|
+
MatchInfo,
|
|
1319
|
+
Match,
|
|
1320
|
+
Region,
|
|
1321
|
+
Platform,
|
|
1322
|
+
RankedQueue,
|
|
1323
|
+
RankedTier,
|
|
1324
|
+
RankedDivision,
|
|
1102
1325
|
};
|
|
1103
1326
|
|
|
1104
1327
|
const endpoints = makeApi([
|
|
@@ -1112,7 +1335,24 @@ const endpoints = makeApi([
|
|
|
1112
1335
|
{
|
|
1113
1336
|
name: "region",
|
|
1114
1337
|
type: "Path",
|
|
1115
|
-
schema: z.
|
|
1338
|
+
schema: z.enum([
|
|
1339
|
+
"br1",
|
|
1340
|
+
"euw1",
|
|
1341
|
+
"na1",
|
|
1342
|
+
"eun1",
|
|
1343
|
+
"kr",
|
|
1344
|
+
"jp1",
|
|
1345
|
+
"la1",
|
|
1346
|
+
"la2",
|
|
1347
|
+
"oc1",
|
|
1348
|
+
"tr1",
|
|
1349
|
+
"ru",
|
|
1350
|
+
"ph2",
|
|
1351
|
+
"sg2",
|
|
1352
|
+
"th2",
|
|
1353
|
+
"tw2",
|
|
1354
|
+
"vn2",
|
|
1355
|
+
]),
|
|
1116
1356
|
},
|
|
1117
1357
|
{
|
|
1118
1358
|
name: "puuid",
|
|
@@ -1149,7 +1389,24 @@ const endpoints = makeApi([
|
|
|
1149
1389
|
{
|
|
1150
1390
|
name: "region",
|
|
1151
1391
|
type: "Path",
|
|
1152
|
-
schema: z.
|
|
1392
|
+
schema: z.enum([
|
|
1393
|
+
"br1",
|
|
1394
|
+
"euw1",
|
|
1395
|
+
"na1",
|
|
1396
|
+
"eun1",
|
|
1397
|
+
"kr",
|
|
1398
|
+
"jp1",
|
|
1399
|
+
"la1",
|
|
1400
|
+
"la2",
|
|
1401
|
+
"oc1",
|
|
1402
|
+
"tr1",
|
|
1403
|
+
"ru",
|
|
1404
|
+
"ph2",
|
|
1405
|
+
"sg2",
|
|
1406
|
+
"th2",
|
|
1407
|
+
"tw2",
|
|
1408
|
+
"vn2",
|
|
1409
|
+
]),
|
|
1153
1410
|
},
|
|
1154
1411
|
{
|
|
1155
1412
|
name: "summonerName",
|
|
@@ -1191,22 +1448,50 @@ const endpoints = makeApi([
|
|
|
1191
1448
|
{
|
|
1192
1449
|
name: "region",
|
|
1193
1450
|
type: "Path",
|
|
1194
|
-
schema: z.
|
|
1451
|
+
schema: z.enum([
|
|
1452
|
+
"br1",
|
|
1453
|
+
"euw1",
|
|
1454
|
+
"na1",
|
|
1455
|
+
"eun1",
|
|
1456
|
+
"kr",
|
|
1457
|
+
"jp1",
|
|
1458
|
+
"la1",
|
|
1459
|
+
"la2",
|
|
1460
|
+
"oc1",
|
|
1461
|
+
"tr1",
|
|
1462
|
+
"ru",
|
|
1463
|
+
"ph2",
|
|
1464
|
+
"sg2",
|
|
1465
|
+
"th2",
|
|
1466
|
+
"tw2",
|
|
1467
|
+
"vn2",
|
|
1468
|
+
]),
|
|
1195
1469
|
},
|
|
1196
1470
|
{
|
|
1197
1471
|
name: "queue",
|
|
1198
1472
|
type: "Path",
|
|
1199
|
-
schema: z.
|
|
1473
|
+
schema: z.enum(["RANKED_SOLO_5x5", "RANKED_FLEX_SR", "RANKED_FLEX_TT"]),
|
|
1200
1474
|
},
|
|
1201
1475
|
{
|
|
1202
1476
|
name: "tier",
|
|
1203
1477
|
type: "Path",
|
|
1204
|
-
schema: z.
|
|
1478
|
+
schema: z.enum([
|
|
1479
|
+
"IRON",
|
|
1480
|
+
"BRONZE",
|
|
1481
|
+
"SILVER",
|
|
1482
|
+
"GOLD",
|
|
1483
|
+
"PLATINUM",
|
|
1484
|
+
"EMERALD",
|
|
1485
|
+
"DIAMOND",
|
|
1486
|
+
"MASTER",
|
|
1487
|
+
"GRANDMASTER",
|
|
1488
|
+
"CHALLENGER",
|
|
1489
|
+
]),
|
|
1205
1490
|
},
|
|
1206
1491
|
{
|
|
1207
1492
|
name: "division",
|
|
1208
1493
|
type: "Path",
|
|
1209
|
-
schema: z.
|
|
1494
|
+
schema: z.enum(["I", "II", "III", "IV"]),
|
|
1210
1495
|
},
|
|
1211
1496
|
{
|
|
1212
1497
|
name: "count",
|
|
@@ -1238,7 +1523,7 @@ const endpoints = makeApi([
|
|
|
1238
1523
|
{
|
|
1239
1524
|
name: "region",
|
|
1240
1525
|
type: "Path",
|
|
1241
|
-
schema: z.
|
|
1526
|
+
schema: z.enum(["europe", "americas", "asia", "sea"]),
|
|
1242
1527
|
},
|
|
1243
1528
|
{
|
|
1244
1529
|
name: "puuid",
|
|
@@ -1258,10 +1543,112 @@ const endpoints = makeApi([
|
|
|
1258
1543
|
{
|
|
1259
1544
|
name: "queueId",
|
|
1260
1545
|
type: "Query",
|
|
1261
|
-
schema: z
|
|
1546
|
+
schema: z
|
|
1547
|
+
.union([
|
|
1548
|
+
z.literal(0),
|
|
1549
|
+
z.literal(2),
|
|
1550
|
+
z.literal(4),
|
|
1551
|
+
z.literal(6),
|
|
1552
|
+
z.literal(7),
|
|
1553
|
+
z.literal(8),
|
|
1554
|
+
z.literal(9),
|
|
1555
|
+
z.literal(14),
|
|
1556
|
+
z.literal(16),
|
|
1557
|
+
z.literal(17),
|
|
1558
|
+
z.literal(25),
|
|
1559
|
+
z.literal(31),
|
|
1560
|
+
z.literal(32),
|
|
1561
|
+
z.literal(33),
|
|
1562
|
+
z.literal(41),
|
|
1563
|
+
z.literal(42),
|
|
1564
|
+
z.literal(52),
|
|
1565
|
+
z.literal(61),
|
|
1566
|
+
z.literal(65),
|
|
1567
|
+
z.literal(67),
|
|
1568
|
+
z.literal(70),
|
|
1569
|
+
z.literal(72),
|
|
1570
|
+
z.literal(73),
|
|
1571
|
+
z.literal(75),
|
|
1572
|
+
z.literal(76),
|
|
1573
|
+
z.literal(78),
|
|
1574
|
+
z.literal(83),
|
|
1575
|
+
z.literal(91),
|
|
1576
|
+
z.literal(92),
|
|
1577
|
+
z.literal(93),
|
|
1578
|
+
z.literal(96),
|
|
1579
|
+
z.literal(98),
|
|
1580
|
+
z.literal(100),
|
|
1581
|
+
z.literal(300),
|
|
1582
|
+
z.literal(310),
|
|
1583
|
+
z.literal(313),
|
|
1584
|
+
z.literal(315),
|
|
1585
|
+
z.literal(317),
|
|
1586
|
+
z.literal(318),
|
|
1587
|
+
z.literal(325),
|
|
1588
|
+
z.literal(400),
|
|
1589
|
+
z.literal(410),
|
|
1590
|
+
z.literal(420),
|
|
1591
|
+
z.literal(430),
|
|
1592
|
+
z.literal(440),
|
|
1593
|
+
z.literal(450),
|
|
1594
|
+
z.literal(460),
|
|
1595
|
+
z.literal(470),
|
|
1596
|
+
z.literal(480),
|
|
1597
|
+
z.literal(490),
|
|
1598
|
+
z.literal(600),
|
|
1599
|
+
z.literal(610),
|
|
1600
|
+
z.literal(700),
|
|
1601
|
+
z.literal(720),
|
|
1602
|
+
z.literal(800),
|
|
1603
|
+
z.literal(810),
|
|
1604
|
+
z.literal(820),
|
|
1605
|
+
z.literal(830),
|
|
1606
|
+
z.literal(840),
|
|
1607
|
+
z.literal(850),
|
|
1608
|
+
z.literal(870),
|
|
1609
|
+
z.literal(880),
|
|
1610
|
+
z.literal(890),
|
|
1611
|
+
z.literal(900),
|
|
1612
|
+
z.literal(910),
|
|
1613
|
+
z.literal(920),
|
|
1614
|
+
z.literal(940),
|
|
1615
|
+
z.literal(950),
|
|
1616
|
+
z.literal(960),
|
|
1617
|
+
z.literal(980),
|
|
1618
|
+
z.literal(990),
|
|
1619
|
+
z.literal(1000),
|
|
1620
|
+
z.literal(1010),
|
|
1621
|
+
z.literal(1020),
|
|
1622
|
+
z.literal(1030),
|
|
1623
|
+
z.literal(1040),
|
|
1624
|
+
z.literal(1050),
|
|
1625
|
+
z.literal(1060),
|
|
1626
|
+
z.literal(1070),
|
|
1627
|
+
z.literal(1090),
|
|
1628
|
+
z.literal(1100),
|
|
1629
|
+
z.literal(1110),
|
|
1630
|
+
z.literal(1111),
|
|
1631
|
+
z.literal(1200),
|
|
1632
|
+
z.literal(1210),
|
|
1633
|
+
z.literal(1300),
|
|
1634
|
+
z.literal(1400),
|
|
1635
|
+
z.literal(1700),
|
|
1636
|
+
z.literal(1710),
|
|
1637
|
+
z.literal(1810),
|
|
1638
|
+
z.literal(1820),
|
|
1639
|
+
z.literal(1830),
|
|
1640
|
+
z.literal(1840),
|
|
1641
|
+
z.literal(1900),
|
|
1642
|
+
z.literal(2000),
|
|
1643
|
+
z.literal(2010),
|
|
1644
|
+
z.literal(2020),
|
|
1645
|
+
z.literal(2300),
|
|
1646
|
+
z.literal(2400),
|
|
1647
|
+
])
|
|
1648
|
+
.optional(),
|
|
1262
1649
|
},
|
|
1263
1650
|
],
|
|
1264
|
-
response: z.array(
|
|
1651
|
+
response: z.array(Match),
|
|
1265
1652
|
errors: [
|
|
1266
1653
|
{
|
|
1267
1654
|
status: 400,
|
|
@@ -1290,7 +1677,7 @@ const endpoints = makeApi([
|
|
|
1290
1677
|
{
|
|
1291
1678
|
name: "region",
|
|
1292
1679
|
type: "Path",
|
|
1293
|
-
schema: z.
|
|
1680
|
+
schema: z.enum(["europe", "americas", "asia", "sea"]),
|
|
1294
1681
|
},
|
|
1295
1682
|
{
|
|
1296
1683
|
name: "puuid",
|
|
@@ -1337,7 +1724,7 @@ const endpoints = makeApi([
|
|
|
1337
1724
|
{
|
|
1338
1725
|
name: "region",
|
|
1339
1726
|
type: "Path",
|
|
1340
|
-
schema: z.
|
|
1727
|
+
schema: z.enum(["europe", "americas", "asia", "sea"]),
|
|
1341
1728
|
},
|
|
1342
1729
|
{
|
|
1343
1730
|
name: "matchId",
|
|
@@ -1345,7 +1732,7 @@ const endpoints = makeApi([
|
|
|
1345
1732
|
schema: z.string(),
|
|
1346
1733
|
},
|
|
1347
1734
|
],
|
|
1348
|
-
response:
|
|
1735
|
+
response: Match,
|
|
1349
1736
|
errors: [
|
|
1350
1737
|
{
|
|
1351
1738
|
status: 400,
|