@voxary/valorant-client 0.2.0 → 0.3.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.
- package/LICENSE +21 -21
- package/README.md +7 -5
- package/dist/index.cjs +1660 -882
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27795 -2395
- package/dist/index.d.ts +27795 -2395
- package/dist/index.js +1644 -875
- package/dist/index.js.map +1 -1
- package/package.json +72 -69
package/dist/index.cjs
CHANGED
|
@@ -31,6 +31,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
// src/index.ts
|
|
32
32
|
var index_exports = {};
|
|
33
33
|
__export(index_exports, {
|
|
34
|
+
Agent: () => Agent,
|
|
35
|
+
CustomGameMap: () => CustomGameMap,
|
|
36
|
+
CustomGameMode: () => CustomGameMode,
|
|
37
|
+
CustomGameTeam: () => CustomGameTeam,
|
|
38
|
+
MEMBERSHIP_KEY: () => MEMBERSHIP_KEY,
|
|
34
39
|
MissingContextError: () => MissingContextError,
|
|
35
40
|
MissingParameterError: () => MissingParameterError,
|
|
36
41
|
ValorantApiError: () => ValorantApiError,
|
|
@@ -41,6 +46,9 @@ __export(index_exports, {
|
|
|
41
46
|
ValorantNetworkError: () => ValorantNetworkError,
|
|
42
47
|
ValorantRateLimitError: () => ValorantRateLimitError,
|
|
43
48
|
ValorantValidationError: () => ValorantValidationError,
|
|
49
|
+
agentName: () => agentName,
|
|
50
|
+
customGameMapName: () => customGameMapName,
|
|
51
|
+
customGameModeName: () => customGameModeName,
|
|
44
52
|
fetchTransport: () => fetchTransport,
|
|
45
53
|
isRegion: () => isRegion,
|
|
46
54
|
localTransport: () => localTransport,
|
|
@@ -48,18 +56,25 @@ __export(index_exports, {
|
|
|
48
56
|
parseLockfile: () => parseLockfile,
|
|
49
57
|
readLockfile: () => readLockfile,
|
|
50
58
|
registry: () => registry,
|
|
51
|
-
shardForRegion: () => shardForRegion
|
|
59
|
+
shardForRegion: () => shardForRegion,
|
|
60
|
+
teamOfPlayer: () => teamOfPlayer
|
|
52
61
|
});
|
|
53
62
|
module.exports = __toCommonJS(index_exports);
|
|
54
63
|
|
|
55
64
|
// src/api/groups/pvp.ts
|
|
56
|
-
var
|
|
65
|
+
var import_valorant_api_types10 = require("valorant-api-types");
|
|
57
66
|
|
|
58
67
|
// src/endpoints/riot/account.ts
|
|
59
68
|
var import_zod = require("zod");
|
|
60
69
|
|
|
61
70
|
// src/endpoints/riot/shared.ts
|
|
62
71
|
var player = { token: true, entitlement: true, clientVersion: true, clientPlatform: true };
|
|
72
|
+
function withResponse(endpoint2, schema) {
|
|
73
|
+
return { ...endpoint2, responses: { "200": schema } };
|
|
74
|
+
}
|
|
75
|
+
function onSharedHost(endpoint2) {
|
|
76
|
+
return { ...endpoint2, type: "shared" };
|
|
77
|
+
}
|
|
63
78
|
|
|
64
79
|
// src/endpoints/riot/account.ts
|
|
65
80
|
var dailyTicketEndpoint = {
|
|
@@ -342,8 +357,105 @@ var bloomlinePlayerEndpoint = {
|
|
|
342
357
|
}) }
|
|
343
358
|
};
|
|
344
359
|
|
|
345
|
-
// src/endpoints/riot/
|
|
360
|
+
// src/endpoints/riot/agentSelect.ts
|
|
361
|
+
var import_valorant_api_types = require("valorant-api-types");
|
|
346
362
|
var import_zod2 = require("zod");
|
|
363
|
+
var agentSelect = import_zod2.z.object({
|
|
364
|
+
ID: import_zod2.z.string(),
|
|
365
|
+
Version: import_zod2.z.number(),
|
|
366
|
+
Teams: import_zod2.z.array(import_zod2.z.object({
|
|
367
|
+
TeamID: import_zod2.z.string(),
|
|
368
|
+
TeamNumber: import_zod2.z.number(),
|
|
369
|
+
Players: import_zod2.z.array(import_zod2.z.object({
|
|
370
|
+
Subject: import_zod2.z.string(),
|
|
371
|
+
CharacterID: import_zod2.z.string(),
|
|
372
|
+
CharacterSelectionState: import_zod2.z.string(),
|
|
373
|
+
PregamePlayerState: import_zod2.z.string(),
|
|
374
|
+
CompetitiveTier: import_zod2.z.number(),
|
|
375
|
+
PlayerIdentity: import_zod2.z.object({
|
|
376
|
+
Subject: import_zod2.z.string(),
|
|
377
|
+
PlayerCardID: import_zod2.z.string(),
|
|
378
|
+
PlayerTitleID: import_zod2.z.string(),
|
|
379
|
+
AccountLevel: import_zod2.z.number(),
|
|
380
|
+
PreferredLevelBorderID: import_zod2.z.string(),
|
|
381
|
+
Incognito: import_zod2.z.boolean(),
|
|
382
|
+
HideAccountLevel: import_zod2.z.boolean()
|
|
383
|
+
}),
|
|
384
|
+
SeasonalBadgeInfo: import_zod2.z.object({
|
|
385
|
+
SeasonID: import_zod2.z.string(),
|
|
386
|
+
NumberOfWins: import_zod2.z.number(),
|
|
387
|
+
Rank: import_zod2.z.number(),
|
|
388
|
+
LeaderboardRank: import_zod2.z.number()
|
|
389
|
+
}),
|
|
390
|
+
IsCaptain: import_zod2.z.boolean(),
|
|
391
|
+
PlatformType: import_zod2.z.string(),
|
|
392
|
+
PremierPrestige: import_zod2.z.object({})
|
|
393
|
+
}))
|
|
394
|
+
})),
|
|
395
|
+
AllyTeam: import_zod2.z.object({
|
|
396
|
+
TeamID: import_zod2.z.string(),
|
|
397
|
+
TeamNumber: import_zod2.z.number(),
|
|
398
|
+
Players: import_zod2.z.array(import_zod2.z.object({
|
|
399
|
+
Subject: import_zod2.z.string(),
|
|
400
|
+
CharacterID: import_zod2.z.string(),
|
|
401
|
+
CharacterSelectionState: import_zod2.z.string(),
|
|
402
|
+
PregamePlayerState: import_zod2.z.string(),
|
|
403
|
+
CompetitiveTier: import_zod2.z.number(),
|
|
404
|
+
PlayerIdentity: import_zod2.z.object({
|
|
405
|
+
Subject: import_zod2.z.string(),
|
|
406
|
+
PlayerCardID: import_zod2.z.string(),
|
|
407
|
+
PlayerTitleID: import_zod2.z.string(),
|
|
408
|
+
AccountLevel: import_zod2.z.number(),
|
|
409
|
+
PreferredLevelBorderID: import_zod2.z.string(),
|
|
410
|
+
Incognito: import_zod2.z.boolean(),
|
|
411
|
+
HideAccountLevel: import_zod2.z.boolean()
|
|
412
|
+
}),
|
|
413
|
+
SeasonalBadgeInfo: import_zod2.z.object({
|
|
414
|
+
SeasonID: import_zod2.z.string(),
|
|
415
|
+
NumberOfWins: import_zod2.z.number(),
|
|
416
|
+
Rank: import_zod2.z.number(),
|
|
417
|
+
LeaderboardRank: import_zod2.z.number()
|
|
418
|
+
}),
|
|
419
|
+
IsCaptain: import_zod2.z.boolean(),
|
|
420
|
+
PlatformType: import_zod2.z.string(),
|
|
421
|
+
PremierPrestige: import_zod2.z.object({})
|
|
422
|
+
}))
|
|
423
|
+
}),
|
|
424
|
+
EnemyTeamSize: import_zod2.z.number(),
|
|
425
|
+
EnemyTeamLockCount: import_zod2.z.number(),
|
|
426
|
+
PregameState: import_zod2.z.string(),
|
|
427
|
+
LastUpdated: import_zod2.z.string(),
|
|
428
|
+
MapID: import_zod2.z.string(),
|
|
429
|
+
CastedVotes: import_zod2.z.object({}),
|
|
430
|
+
MapSelectStep: import_zod2.z.number(),
|
|
431
|
+
Team1: import_zod2.z.string(),
|
|
432
|
+
GamePodID: import_zod2.z.string(),
|
|
433
|
+
Mode: import_zod2.z.string(),
|
|
434
|
+
VoiceSessionID: import_zod2.z.string(),
|
|
435
|
+
MUCName: import_zod2.z.string(),
|
|
436
|
+
TeamMatchToken: import_zod2.z.string(),
|
|
437
|
+
QueueID: import_zod2.z.string(),
|
|
438
|
+
ProvisioningFlowID: import_zod2.z.string(),
|
|
439
|
+
IsRanked: import_zod2.z.boolean(),
|
|
440
|
+
PhaseTimeRemainingNS: import_zod2.z.number(),
|
|
441
|
+
StepTimeRemainingNS: import_zod2.z.number(),
|
|
442
|
+
altModesFlagADA: import_zod2.z.boolean(),
|
|
443
|
+
GameRules: import_zod2.z.object({
|
|
444
|
+
AccoladesEnabled: import_zod2.z.string(),
|
|
445
|
+
AllowGameModifiers: import_zod2.z.string(),
|
|
446
|
+
IsOvertimeWinByTwo: import_zod2.z.string(),
|
|
447
|
+
PlayOutAllRounds: import_zod2.z.string(),
|
|
448
|
+
ReplayRecordMatch: import_zod2.z.string(),
|
|
449
|
+
SkipMatchHistory: import_zod2.z.string(),
|
|
450
|
+
TournamentMode: import_zod2.z.string()
|
|
451
|
+
})
|
|
452
|
+
});
|
|
453
|
+
var selectCharacterEndpoint = withResponse(import_valorant_api_types.endpoints.selectCharacterEndpoint, agentSelect);
|
|
454
|
+
var lockCharacterEndpoint = withResponse(import_valorant_api_types.endpoints.lockCharacterEndpoint, agentSelect);
|
|
455
|
+
|
|
456
|
+
// src/endpoints/riot/chat.ts
|
|
457
|
+
var import_valorant_api_types2 = require("valorant-api-types");
|
|
458
|
+
var import_zod3 = require("zod");
|
|
347
459
|
var chatSettingsEndpoint = {
|
|
348
460
|
name: "Settings",
|
|
349
461
|
description: "Get chat settings",
|
|
@@ -351,37 +463,37 @@ var chatSettingsEndpoint = {
|
|
|
351
463
|
type: "local",
|
|
352
464
|
suffix: "chat/v1/settings",
|
|
353
465
|
riotRequirements: { localAuth: true },
|
|
354
|
-
responses: { "200":
|
|
355
|
-
bounceDockIconEnabled:
|
|
356
|
-
"chat-status-message":
|
|
357
|
-
chatFilterDisabled:
|
|
358
|
-
chatGBG:
|
|
359
|
-
chatGroupDiscord:
|
|
360
|
-
chatGroupMobile:
|
|
361
|
-
chatGroupOffline:
|
|
362
|
-
chatWindow:
|
|
363
|
-
detached:
|
|
364
|
-
height:
|
|
365
|
-
left:
|
|
366
|
-
top:
|
|
367
|
-
width:
|
|
466
|
+
responses: { "200": import_zod3.z.object({
|
|
467
|
+
bounceDockIconEnabled: import_zod3.z.boolean(),
|
|
468
|
+
"chat-status-message": import_zod3.z.string(),
|
|
469
|
+
chatFilterDisabled: import_zod3.z.boolean(),
|
|
470
|
+
chatGBG: import_zod3.z.boolean(),
|
|
471
|
+
chatGroupDiscord: import_zod3.z.boolean(),
|
|
472
|
+
chatGroupMobile: import_zod3.z.boolean(),
|
|
473
|
+
chatGroupOffline: import_zod3.z.boolean(),
|
|
474
|
+
chatWindow: import_zod3.z.object({
|
|
475
|
+
detached: import_zod3.z.boolean(),
|
|
476
|
+
height: import_zod3.z.number(),
|
|
477
|
+
left: import_zod3.z.number(),
|
|
478
|
+
top: import_zod3.z.number(),
|
|
479
|
+
width: import_zod3.z.number()
|
|
368
480
|
}),
|
|
369
|
-
chatWindowDockedHeight:
|
|
370
|
-
"closed-conversations":
|
|
371
|
-
"ff822fdf-71a3-54ac-814e-7ac752ba428d@eu1.pvp.net":
|
|
481
|
+
chatWindowDockedHeight: import_zod3.z.number(),
|
|
482
|
+
"closed-conversations": import_zod3.z.object({
|
|
483
|
+
"ff822fdf-71a3-54ac-814e-7ac752ba428d@eu1.pvp.net": import_zod3.z.number()
|
|
372
484
|
}),
|
|
373
|
-
friendRequestToastsDisabled:
|
|
374
|
-
"hidden-conversations":
|
|
375
|
-
linkClickWarningEnabled:
|
|
376
|
-
messageNotificationsEnabled:
|
|
377
|
-
moreUnreadsEnabled:
|
|
378
|
-
"muted-conversations":
|
|
379
|
-
recentlyPlayedFirstOpen:
|
|
380
|
-
recentlyPlayedOpen:
|
|
381
|
-
"roster-group-collapsed":
|
|
382
|
-
showWhenTypingEnabled:
|
|
383
|
-
sortBy:
|
|
384
|
-
usePlayerPreferences:
|
|
485
|
+
friendRequestToastsDisabled: import_zod3.z.boolean(),
|
|
486
|
+
"hidden-conversations": import_zod3.z.object({}),
|
|
487
|
+
linkClickWarningEnabled: import_zod3.z.boolean(),
|
|
488
|
+
messageNotificationsEnabled: import_zod3.z.boolean(),
|
|
489
|
+
moreUnreadsEnabled: import_zod3.z.boolean(),
|
|
490
|
+
"muted-conversations": import_zod3.z.object({}),
|
|
491
|
+
recentlyPlayedFirstOpen: import_zod3.z.boolean(),
|
|
492
|
+
recentlyPlayedOpen: import_zod3.z.boolean(),
|
|
493
|
+
"roster-group-collapsed": import_zod3.z.object({}),
|
|
494
|
+
showWhenTypingEnabled: import_zod3.z.boolean(),
|
|
495
|
+
sortBy: import_zod3.z.string(),
|
|
496
|
+
usePlayerPreferences: import_zod3.z.boolean()
|
|
385
497
|
}) }
|
|
386
498
|
};
|
|
387
499
|
var chatTournamentInfoEndpoint = {
|
|
@@ -391,11 +503,26 @@ var chatTournamentInfoEndpoint = {
|
|
|
391
503
|
type: "local",
|
|
392
504
|
suffix: "chat/v6/conversations/ares-tournaments",
|
|
393
505
|
riotRequirements: { localAuth: true },
|
|
394
|
-
responses: { "200":
|
|
395
|
-
};
|
|
506
|
+
responses: { "200": import_zod3.z.object({}) }
|
|
507
|
+
};
|
|
508
|
+
var chatParticipantsEndpoint = withResponse(import_valorant_api_types2.endpoints.chatParticipantsEndpoint, import_zod3.z.object({
|
|
509
|
+
participants: import_zod3.z.array(import_zod3.z.object({
|
|
510
|
+
activePlatform: import_zod3.z.string().nullable(),
|
|
511
|
+
cid: import_zod3.z.string(),
|
|
512
|
+
game_name: import_zod3.z.string(),
|
|
513
|
+
game_tag: import_zod3.z.string(),
|
|
514
|
+
isInteractionAllowed: import_zod3.z.boolean(),
|
|
515
|
+
muted: import_zod3.z.boolean(),
|
|
516
|
+
name: import_zod3.z.string(),
|
|
517
|
+
pid: import_zod3.z.string(),
|
|
518
|
+
puuid: import_zod3.z.string(),
|
|
519
|
+
region: import_zod3.z.string()
|
|
520
|
+
}))
|
|
521
|
+
}));
|
|
396
522
|
|
|
397
523
|
// src/endpoints/riot/contracts.ts
|
|
398
|
-
var
|
|
524
|
+
var import_valorant_api_types3 = require("valorant-api-types");
|
|
525
|
+
var import_zod4 = require("zod");
|
|
399
526
|
var activeRecruitmentEventEndpoint = {
|
|
400
527
|
name: "Active Recruitment Event",
|
|
401
528
|
description: "The current agent recruitment event.",
|
|
@@ -403,29 +530,90 @@ var activeRecruitmentEventEndpoint = {
|
|
|
403
530
|
type: "pd",
|
|
404
531
|
suffix: "contracts/v1/agents/activeRecruitmentEvent",
|
|
405
532
|
riotRequirements: player,
|
|
406
|
-
responses: { "200":
|
|
407
|
-
AgentID:
|
|
408
|
-
CounterID:
|
|
409
|
-
MilestoneThreshold:
|
|
410
|
-
StartDate:
|
|
411
|
-
EndDate:
|
|
412
|
-
IsActive:
|
|
413
|
-
includedPlatforms:
|
|
414
|
-
console:
|
|
415
|
-
developmentOnly:
|
|
533
|
+
responses: { "200": import_zod4.z.object({
|
|
534
|
+
AgentID: import_zod4.z.string(),
|
|
535
|
+
CounterID: import_zod4.z.string(),
|
|
536
|
+
MilestoneThreshold: import_zod4.z.number(),
|
|
537
|
+
StartDate: import_zod4.z.string(),
|
|
538
|
+
EndDate: import_zod4.z.string(),
|
|
539
|
+
IsActive: import_zod4.z.boolean(),
|
|
540
|
+
includedPlatforms: import_zod4.z.object({
|
|
541
|
+
console: import_zod4.z.object({
|
|
542
|
+
developmentOnly: import_zod4.z.boolean()
|
|
416
543
|
}),
|
|
417
|
-
mobile:
|
|
418
|
-
developmentOnly:
|
|
544
|
+
mobile: import_zod4.z.object({
|
|
545
|
+
developmentOnly: import_zod4.z.boolean()
|
|
419
546
|
}),
|
|
420
|
-
pc:
|
|
421
|
-
developmentOnly:
|
|
547
|
+
pc: import_zod4.z.object({
|
|
548
|
+
developmentOnly: import_zod4.z.boolean()
|
|
422
549
|
})
|
|
423
550
|
})
|
|
424
551
|
}) }
|
|
425
552
|
};
|
|
553
|
+
var contractsEndpoint = withResponse(import_valorant_api_types3.endpoints.contractsEndpoint, import_zod4.z.object({
|
|
554
|
+
Version: import_zod4.z.number(),
|
|
555
|
+
Subject: import_zod4.z.string(),
|
|
556
|
+
Contracts: import_zod4.z.array(import_zod4.z.object({
|
|
557
|
+
ContractDefinitionID: import_zod4.z.string(),
|
|
558
|
+
ContractProgression: import_zod4.z.object({
|
|
559
|
+
Version: import_zod4.z.number(),
|
|
560
|
+
TotalProgressionEarned: import_zod4.z.number()
|
|
561
|
+
}),
|
|
562
|
+
ProgressionLevelReached: import_zod4.z.number(),
|
|
563
|
+
ProgressionTowardsNextLevel: import_zod4.z.number()
|
|
564
|
+
})),
|
|
565
|
+
ActiveRecruitmentEventProgress: import_zod4.z.object({
|
|
566
|
+
AgentID: import_zod4.z.string(),
|
|
567
|
+
Version: import_zod4.z.number(),
|
|
568
|
+
CounterID: import_zod4.z.string(),
|
|
569
|
+
ProgressionEarned: import_zod4.z.number()
|
|
570
|
+
}),
|
|
571
|
+
Missions: import_zod4.z.array(import_zod4.z.object({
|
|
572
|
+
ID: import_zod4.z.string(),
|
|
573
|
+
Objectives: import_zod4.z.record(import_zod4.z.string(), import_zod4.z.number()),
|
|
574
|
+
Complete: import_zod4.z.boolean(),
|
|
575
|
+
ExpirationTime: import_zod4.z.string()
|
|
576
|
+
})),
|
|
577
|
+
MissionMetadata: import_zod4.z.object({
|
|
578
|
+
WeeklyCheckpoint: import_zod4.z.string(),
|
|
579
|
+
WeeklyRefillTime: import_zod4.z.string()
|
|
580
|
+
}),
|
|
581
|
+
BTEMilestone: import_zod4.z.number()
|
|
582
|
+
}));
|
|
583
|
+
|
|
584
|
+
// src/endpoints/riot/currentGame.ts
|
|
585
|
+
var import_valorant_api_types4 = require("valorant-api-types");
|
|
586
|
+
var import_zod5 = require("zod");
|
|
587
|
+
var currentGameLoadoutsEndpoint = withResponse(import_valorant_api_types4.endpoints.currentGameLoadoutsEndpoint, import_zod5.z.object({
|
|
588
|
+
Loadouts: import_zod5.z.array(import_zod5.z.object({
|
|
589
|
+
CharacterID: import_zod5.z.string(),
|
|
590
|
+
Loadout: import_zod5.z.object({
|
|
591
|
+
Subject: import_zod5.z.string(),
|
|
592
|
+
Expressions: import_zod5.z.object({
|
|
593
|
+
AESSelections: import_zod5.z.array(import_zod5.z.object({
|
|
594
|
+
AssetID: import_zod5.z.string(),
|
|
595
|
+
TypeID: import_zod5.z.string()
|
|
596
|
+
}))
|
|
597
|
+
}),
|
|
598
|
+
DynamicOptions: import_zod5.z.object({}),
|
|
599
|
+
Items: import_zod5.z.record(import_zod5.z.string(), import_zod5.z.object({
|
|
600
|
+
ID: import_zod5.z.string(),
|
|
601
|
+
TypeID: import_zod5.z.string(),
|
|
602
|
+
Sockets: import_zod5.z.record(import_zod5.z.string(), import_zod5.z.object({
|
|
603
|
+
ID: import_zod5.z.string(),
|
|
604
|
+
Item: import_zod5.z.object({
|
|
605
|
+
ID: import_zod5.z.string(),
|
|
606
|
+
TypeID: import_zod5.z.string()
|
|
607
|
+
})
|
|
608
|
+
}))
|
|
609
|
+
}))
|
|
610
|
+
}),
|
|
611
|
+
Subject: import_zod5.z.string()
|
|
612
|
+
}))
|
|
613
|
+
}));
|
|
426
614
|
|
|
427
615
|
// src/endpoints/riot/esports.ts
|
|
428
|
-
var
|
|
616
|
+
var import_zod6 = require("zod");
|
|
429
617
|
var esportsLiveEventTimesEndpoint = {
|
|
430
618
|
name: "Esports Live Event Times",
|
|
431
619
|
description: "Live and upcoming esports matches, pick blocks and tournaments.",
|
|
@@ -433,11 +621,11 @@ var esportsLiveEventTimesEndpoint = {
|
|
|
433
621
|
type: "pd",
|
|
434
622
|
suffix: "esports-service/v2/liveEventTimes",
|
|
435
623
|
riotRequirements: player,
|
|
436
|
-
responses: { "200":
|
|
437
|
-
Tournaments:
|
|
438
|
-
ID:
|
|
439
|
-
StartTimeUTC:
|
|
440
|
-
EndTimeUTC:
|
|
624
|
+
responses: { "200": import_zod6.z.object({
|
|
625
|
+
Tournaments: import_zod6.z.array(import_zod6.z.object({
|
|
626
|
+
ID: import_zod6.z.string(),
|
|
627
|
+
StartTimeUTC: import_zod6.z.string(),
|
|
628
|
+
EndTimeUTC: import_zod6.z.string()
|
|
441
629
|
}))
|
|
442
630
|
}) }
|
|
443
631
|
};
|
|
@@ -448,7 +636,7 @@ var esportsUpcomingMatchesEndpoint = {
|
|
|
448
636
|
type: "pd",
|
|
449
637
|
suffix: "esports-service/v2/upcomingMatches",
|
|
450
638
|
riotRequirements: player,
|
|
451
|
-
responses: { "200":
|
|
639
|
+
responses: { "200": import_zod6.z.object({}) }
|
|
452
640
|
};
|
|
453
641
|
var esportsPickemLeaguesEndpoint = {
|
|
454
642
|
name: "Esports Pickem Leagues",
|
|
@@ -457,67 +645,67 @@ var esportsPickemLeaguesEndpoint = {
|
|
|
457
645
|
type: "pd",
|
|
458
646
|
suffix: "esports-service/v1/pickem/leagues",
|
|
459
647
|
riotRequirements: player,
|
|
460
|
-
responses: { "200":
|
|
461
|
-
PickemLeagues:
|
|
462
|
-
LeagueID:
|
|
463
|
-
EldsLeagueID:
|
|
464
|
-
Tournament:
|
|
465
|
-
ID:
|
|
466
|
-
EldsTournamentID:
|
|
467
|
-
LeagueID:
|
|
468
|
-
PickBlocks:
|
|
469
|
-
ID:
|
|
470
|
-
EldsTournamentID:
|
|
471
|
-
Slug:
|
|
472
|
-
Slug:
|
|
648
|
+
responses: { "200": import_zod6.z.object({
|
|
649
|
+
PickemLeagues: import_zod6.z.array(import_zod6.z.object({
|
|
650
|
+
LeagueID: import_zod6.z.string(),
|
|
651
|
+
EldsLeagueID: import_zod6.z.string(),
|
|
652
|
+
Tournament: import_zod6.z.object({
|
|
653
|
+
ID: import_zod6.z.string(),
|
|
654
|
+
EldsTournamentID: import_zod6.z.string(),
|
|
655
|
+
LeagueID: import_zod6.z.string(),
|
|
656
|
+
PickBlocks: import_zod6.z.array(import_zod6.z.object({
|
|
657
|
+
ID: import_zod6.z.string(),
|
|
658
|
+
EldsTournamentID: import_zod6.z.string(),
|
|
659
|
+
Slug: import_zod6.z.object({
|
|
660
|
+
Slug: import_zod6.z.string()
|
|
473
661
|
}),
|
|
474
|
-
PickOpenTime:
|
|
475
|
-
PickCloseTime:
|
|
476
|
-
State:
|
|
477
|
-
OpenLevel:
|
|
478
|
-
BlockType:
|
|
479
|
-
PickBlockElements:
|
|
480
|
-
ID:
|
|
481
|
-
PickBlockID:
|
|
482
|
-
Section:
|
|
483
|
-
ID:
|
|
484
|
-
EldsSectionID:
|
|
485
|
-
CorrectPick:
|
|
486
|
-
Entries:
|
|
487
|
-
Index:
|
|
488
|
-
Correctness:
|
|
489
|
-
ParticipantID:
|
|
490
|
-
Points:
|
|
491
|
-
Rank:
|
|
662
|
+
PickOpenTime: import_zod6.z.string(),
|
|
663
|
+
PickCloseTime: import_zod6.z.string(),
|
|
664
|
+
State: import_zod6.z.string(),
|
|
665
|
+
OpenLevel: import_zod6.z.string(),
|
|
666
|
+
BlockType: import_zod6.z.string(),
|
|
667
|
+
PickBlockElements: import_zod6.z.array(import_zod6.z.object({
|
|
668
|
+
ID: import_zod6.z.string(),
|
|
669
|
+
PickBlockID: import_zod6.z.string(),
|
|
670
|
+
Section: import_zod6.z.object({
|
|
671
|
+
ID: import_zod6.z.string(),
|
|
672
|
+
EldsSectionID: import_zod6.z.string(),
|
|
673
|
+
CorrectPick: import_zod6.z.object({
|
|
674
|
+
Entries: import_zod6.z.array(import_zod6.z.object({
|
|
675
|
+
Index: import_zod6.z.number(),
|
|
676
|
+
Correctness: import_zod6.z.string(),
|
|
677
|
+
ParticipantID: import_zod6.z.string(),
|
|
678
|
+
Points: import_zod6.z.number(),
|
|
679
|
+
Rank: import_zod6.z.number()
|
|
492
680
|
})).nullable()
|
|
493
681
|
})
|
|
494
682
|
}),
|
|
495
|
-
Match:
|
|
496
|
-
ID:
|
|
497
|
-
EldsMatchID:
|
|
498
|
-
BaselinePoints:
|
|
499
|
-
CorrectPick:
|
|
500
|
-
ResultState:
|
|
683
|
+
Match: import_zod6.z.object({
|
|
684
|
+
ID: import_zod6.z.string(),
|
|
685
|
+
EldsMatchID: import_zod6.z.string(),
|
|
686
|
+
BaselinePoints: import_zod6.z.number(),
|
|
687
|
+
CorrectPick: import_zod6.z.string(),
|
|
688
|
+
ResultState: import_zod6.z.string()
|
|
501
689
|
}),
|
|
502
|
-
PickOpenTime:
|
|
503
|
-
PickCloseTime:
|
|
504
|
-
State:
|
|
505
|
-
DisplayOrder:
|
|
690
|
+
PickOpenTime: import_zod6.z.string(),
|
|
691
|
+
PickCloseTime: import_zod6.z.string(),
|
|
692
|
+
State: import_zod6.z.string(),
|
|
693
|
+
DisplayOrder: import_zod6.z.number()
|
|
506
694
|
})),
|
|
507
|
-
CompletionStatus:
|
|
695
|
+
CompletionStatus: import_zod6.z.string()
|
|
508
696
|
})),
|
|
509
|
-
Participants:
|
|
510
|
-
ID:
|
|
511
|
-
EldsTeamID:
|
|
697
|
+
Participants: import_zod6.z.array(import_zod6.z.object({
|
|
698
|
+
ID: import_zod6.z.string(),
|
|
699
|
+
EldsTeamID: import_zod6.z.string()
|
|
512
700
|
}))
|
|
513
701
|
}),
|
|
514
|
-
Published:
|
|
702
|
+
Published: import_zod6.z.boolean()
|
|
515
703
|
}))
|
|
516
704
|
}) }
|
|
517
705
|
};
|
|
518
706
|
|
|
519
707
|
// src/endpoints/riot/local.ts
|
|
520
|
-
var
|
|
708
|
+
var import_zod7 = require("zod");
|
|
521
709
|
var localLocaleEndpoint = {
|
|
522
710
|
name: "Locale",
|
|
523
711
|
description: "Get the current locale",
|
|
@@ -525,7 +713,7 @@ var localLocaleEndpoint = {
|
|
|
525
713
|
type: "local",
|
|
526
714
|
suffix: "riotclient/product-locales/products/valorant/patchlines/live",
|
|
527
715
|
riotRequirements: { localAuth: true },
|
|
528
|
-
responses: { "200":
|
|
716
|
+
responses: { "200": import_zod7.z.string() }
|
|
529
717
|
};
|
|
530
718
|
var localAvailableLocalesEndpoint = {
|
|
531
719
|
name: "Available Locales",
|
|
@@ -534,7 +722,7 @@ var localAvailableLocalesEndpoint = {
|
|
|
534
722
|
type: "local",
|
|
535
723
|
suffix: "rnet-product-registry/v4/available-product-locales/products/valorant/patchlines/live",
|
|
536
724
|
riotRequirements: { localAuth: true },
|
|
537
|
-
responses: { "200":
|
|
725
|
+
responses: { "200": import_zod7.z.array(import_zod7.z.string()) }
|
|
538
726
|
};
|
|
539
727
|
var localRiotStatusEndpoint = {
|
|
540
728
|
name: "Riot Status",
|
|
@@ -543,7 +731,7 @@ var localRiotStatusEndpoint = {
|
|
|
543
731
|
type: "local",
|
|
544
732
|
suffix: "riot-status/v1/products/valorant/patchlines/live/deployments/{region}",
|
|
545
733
|
riotRequirements: { localAuth: true },
|
|
546
|
-
responses: { "200":
|
|
734
|
+
responses: { "200": import_zod7.z.string() }
|
|
547
735
|
};
|
|
548
736
|
var localAccessTokenEndpoint = {
|
|
549
737
|
name: "Access Token",
|
|
@@ -552,11 +740,11 @@ var localAccessTokenEndpoint = {
|
|
|
552
740
|
type: "local",
|
|
553
741
|
suffix: "rso-auth/v1/authorization/access-token",
|
|
554
742
|
riotRequirements: { localAuth: true },
|
|
555
|
-
responses: { "200":
|
|
556
|
-
clientId:
|
|
557
|
-
expiry:
|
|
558
|
-
scopes:
|
|
559
|
-
token:
|
|
743
|
+
responses: { "200": import_zod7.z.object({
|
|
744
|
+
clientId: import_zod7.z.string(),
|
|
745
|
+
expiry: import_zod7.z.number(),
|
|
746
|
+
scopes: import_zod7.z.array(import_zod7.z.string()),
|
|
747
|
+
token: import_zod7.z.string()
|
|
560
748
|
}) }
|
|
561
749
|
};
|
|
562
750
|
var localPluginStatusEndpoint = {
|
|
@@ -566,8 +754,8 @@ var localPluginStatusEndpoint = {
|
|
|
566
754
|
type: "local",
|
|
567
755
|
suffix: "plugin-manager/v1/status",
|
|
568
756
|
riotRequirements: { localAuth: true },
|
|
569
|
-
responses: { "200":
|
|
570
|
-
state:
|
|
757
|
+
responses: { "200": import_zod7.z.object({
|
|
758
|
+
state: import_zod7.z.string()
|
|
571
759
|
}) }
|
|
572
760
|
};
|
|
573
761
|
var localRmsSessionEndpoint = {
|
|
@@ -577,10 +765,10 @@ var localRmsSessionEndpoint = {
|
|
|
577
765
|
type: "local",
|
|
578
766
|
suffix: "riot-messaging-service/v1/session",
|
|
579
767
|
riotRequirements: { localAuth: true },
|
|
580
|
-
responses: { "200":
|
|
581
|
-
state:
|
|
582
|
-
token:
|
|
583
|
-
tokenType:
|
|
768
|
+
responses: { "200": import_zod7.z.object({
|
|
769
|
+
state: import_zod7.z.string(),
|
|
770
|
+
token: import_zod7.z.string(),
|
|
771
|
+
tokenType: import_zod7.z.string()
|
|
584
772
|
}) }
|
|
585
773
|
};
|
|
586
774
|
var localProcessInfoEndpoint = {
|
|
@@ -590,9 +778,9 @@ var localProcessInfoEndpoint = {
|
|
|
590
778
|
type: "local",
|
|
591
779
|
suffix: "process-control/v1/process",
|
|
592
780
|
riotRequirements: { localAuth: true },
|
|
593
|
-
responses: { "200":
|
|
594
|
-
pid:
|
|
595
|
-
status:
|
|
781
|
+
responses: { "200": import_zod7.z.object({
|
|
782
|
+
pid: import_zod7.z.number(),
|
|
783
|
+
status: import_zod7.z.string()
|
|
596
784
|
}) }
|
|
597
785
|
};
|
|
598
786
|
var localLogPathEndpoint = {
|
|
@@ -602,7 +790,7 @@ var localLogPathEndpoint = {
|
|
|
602
790
|
type: "local",
|
|
603
791
|
suffix: "product-session/v1/logs/path/VALORANT",
|
|
604
792
|
riotRequirements: { localAuth: true },
|
|
605
|
-
responses: { "200":
|
|
793
|
+
responses: { "200": import_zod7.z.string() }
|
|
606
794
|
};
|
|
607
795
|
var localEulaEndpoint = {
|
|
608
796
|
name: "Eula",
|
|
@@ -611,7 +799,7 @@ var localEulaEndpoint = {
|
|
|
611
799
|
type: "local",
|
|
612
800
|
suffix: "eula/v1/agreement/content",
|
|
613
801
|
riotRequirements: { localAuth: true },
|
|
614
|
-
responses: { "200":
|
|
802
|
+
responses: { "200": import_zod7.z.string() }
|
|
615
803
|
};
|
|
616
804
|
var localPrivacyPolicyEndpoint = {
|
|
617
805
|
name: "Privacy Policy",
|
|
@@ -620,11 +808,241 @@ var localPrivacyPolicyEndpoint = {
|
|
|
620
808
|
type: "local",
|
|
621
809
|
suffix: "eula/v1/privacy-policy/content",
|
|
622
810
|
riotRequirements: { localAuth: true },
|
|
623
|
-
responses: { "200":
|
|
811
|
+
responses: { "200": import_zod7.z.string() }
|
|
624
812
|
};
|
|
625
813
|
|
|
814
|
+
// src/endpoints/riot/party.ts
|
|
815
|
+
var import_valorant_api_types5 = require("valorant-api-types");
|
|
816
|
+
var import_zod8 = require("zod");
|
|
817
|
+
var customGameTeam = import_zod8.z.array(import_zod8.z.object({ Subject: import_zod8.z.string().describe("PUUID") }));
|
|
818
|
+
var customGameParty = import_zod8.z.object({
|
|
819
|
+
ID: import_zod8.z.string(),
|
|
820
|
+
MUCName: import_zod8.z.string(),
|
|
821
|
+
VoiceRoomID: import_zod8.z.string(),
|
|
822
|
+
Version: import_zod8.z.number(),
|
|
823
|
+
ClientVersion: import_zod8.z.string(),
|
|
824
|
+
Members: import_zod8.z.array(import_zod8.z.object({
|
|
825
|
+
Subject: import_zod8.z.string(),
|
|
826
|
+
CompetitiveTier: import_zod8.z.number(),
|
|
827
|
+
PlayerIdentity: import_zod8.z.object({
|
|
828
|
+
Subject: import_zod8.z.string(),
|
|
829
|
+
PlayerCardID: import_zod8.z.string(),
|
|
830
|
+
PlayerTitleID: import_zod8.z.string(),
|
|
831
|
+
AccountLevel: import_zod8.z.number(),
|
|
832
|
+
PreferredLevelBorderID: import_zod8.z.string(),
|
|
833
|
+
Incognito: import_zod8.z.boolean(),
|
|
834
|
+
HideAccountLevel: import_zod8.z.boolean()
|
|
835
|
+
}),
|
|
836
|
+
IsOwner: import_zod8.z.boolean(),
|
|
837
|
+
QueueEligibleRemainingAccountLevels: import_zod8.z.number(),
|
|
838
|
+
Pings: import_zod8.z.array(import_zod8.z.object({
|
|
839
|
+
Ping: import_zod8.z.number(),
|
|
840
|
+
GamePodID: import_zod8.z.string()
|
|
841
|
+
})),
|
|
842
|
+
IsReady: import_zod8.z.boolean(),
|
|
843
|
+
IsModerator: import_zod8.z.boolean(),
|
|
844
|
+
UseBroadcastHUD: import_zod8.z.boolean(),
|
|
845
|
+
PlatformType: import_zod8.z.string(),
|
|
846
|
+
PremierPrestige: import_zod8.z.object({}),
|
|
847
|
+
JoinedAt: import_zod8.z.string()
|
|
848
|
+
})),
|
|
849
|
+
State: import_zod8.z.string(),
|
|
850
|
+
PreviousState: import_zod8.z.string(),
|
|
851
|
+
StateTransitionReason: import_zod8.z.string(),
|
|
852
|
+
Accessibility: import_zod8.z.string(),
|
|
853
|
+
CustomGameData: import_zod8.z.object({
|
|
854
|
+
Settings: import_zod8.z.object({
|
|
855
|
+
Map: import_zod8.z.string(),
|
|
856
|
+
Mode: import_zod8.z.string(),
|
|
857
|
+
UseBots: import_zod8.z.boolean(),
|
|
858
|
+
GamePod: import_zod8.z.string(),
|
|
859
|
+
GameRules: import_zod8.z.record(import_zod8.z.string(), import_zod8.z.string()).nullable(),
|
|
860
|
+
EsportsCustomLobbyName: import_zod8.z.string()
|
|
861
|
+
}),
|
|
862
|
+
Membership: import_zod8.z.object({
|
|
863
|
+
teamOne: customGameTeam,
|
|
864
|
+
teamTwo: customGameTeam,
|
|
865
|
+
teamSpectate: customGameTeam,
|
|
866
|
+
teamOneCoaches: customGameTeam,
|
|
867
|
+
teamTwoCoaches: customGameTeam
|
|
868
|
+
}),
|
|
869
|
+
MaxPartySize: import_zod8.z.number(),
|
|
870
|
+
AutobalanceEnabled: import_zod8.z.boolean(),
|
|
871
|
+
AutobalanceMinPlayers: import_zod8.z.number(),
|
|
872
|
+
HasRecoveryData: import_zod8.z.boolean()
|
|
873
|
+
}),
|
|
874
|
+
MatchmakingData: import_zod8.z.object({
|
|
875
|
+
QueueID: import_zod8.z.string(),
|
|
876
|
+
PreferredGamePods: import_zod8.z.array(import_zod8.z.string()),
|
|
877
|
+
SkillDisparityRRPenalty: import_zod8.z.number(),
|
|
878
|
+
MaxPartySize: import_zod8.z.number()
|
|
879
|
+
}),
|
|
880
|
+
QueueEntryTime: import_zod8.z.string(),
|
|
881
|
+
EstimatedQueueTimeSeconds: import_zod8.z.number(),
|
|
882
|
+
ErrorNotification: import_zod8.z.object({
|
|
883
|
+
ErrorType: import_zod8.z.string()
|
|
884
|
+
}).optional(),
|
|
885
|
+
RestrictedSeconds: import_zod8.z.number(),
|
|
886
|
+
EligibleQueues: import_zod8.z.array(import_zod8.z.string()),
|
|
887
|
+
CheatData: import_zod8.z.object({
|
|
888
|
+
GamePodOverride: import_zod8.z.string(),
|
|
889
|
+
ForcePostGameProcessing: import_zod8.z.boolean()
|
|
890
|
+
}),
|
|
891
|
+
InviteCode: import_zod8.z.string()
|
|
892
|
+
});
|
|
893
|
+
var setCustomGameTeamEndpoint = {
|
|
894
|
+
name: "Set Custom Game Team",
|
|
895
|
+
description: "Moves a player to a team of the custom game. Only the party owner can move other players. `team` is `TeamOne` or `TeamTwo`. Resolves to the updated party, whose `CustomGameData.Membership` lists the players of each team.",
|
|
896
|
+
queryName: "Party_ChangeTeamInCustomGame",
|
|
897
|
+
category: "Party Endpoints",
|
|
898
|
+
type: "glz",
|
|
899
|
+
method: "POST",
|
|
900
|
+
suffix: "parties/v1/parties/{party id}/customgamemembership/{team}",
|
|
901
|
+
headers: /* @__PURE__ */ new Map([["Content-Type", "application/json"]]),
|
|
902
|
+
body: import_zod8.z.object({ playerToPutOnTeam: import_zod8.z.string().describe("PUUID of the player to move") }),
|
|
903
|
+
riotRequirements: player,
|
|
904
|
+
responses: { "200": customGameParty }
|
|
905
|
+
};
|
|
906
|
+
var customGamePartyEndpoint = {
|
|
907
|
+
name: "Custom Game Party",
|
|
908
|
+
description: "The party of a custom game lobby: members, teams (`CustomGameData.Membership`), map, mode and rules. Typed for custom game lobbies. `party.get` is the general version.",
|
|
909
|
+
queryName: "Party_FetchParty",
|
|
910
|
+
category: "Party Endpoints",
|
|
911
|
+
type: "glz",
|
|
912
|
+
suffix: "parties/v1/parties/{party id}",
|
|
913
|
+
riotRequirements: player,
|
|
914
|
+
responses: { "200": customGameParty }
|
|
915
|
+
};
|
|
916
|
+
var partyResponse = customGameParty.extend({ CustomGameData: customGameParty.shape.CustomGameData.optional() });
|
|
917
|
+
var partyGenerateCodeEndpoint = withResponse(import_valorant_api_types5.endpoints.partyGenerateCodeEndpoint, customGameParty);
|
|
918
|
+
var partyDisableCodeEndpoint = withResponse(import_valorant_api_types5.endpoints.partyDisableCodeEndpoint, customGameParty);
|
|
919
|
+
var setPartyAccessibilityEndpoint = withResponse(import_valorant_api_types5.endpoints.setPartyAccessibilityEndpoint, customGameParty);
|
|
920
|
+
var startCustomGameEndpoint = withResponse(import_valorant_api_types5.endpoints.startCustomGameEndpoint, customGameParty);
|
|
921
|
+
var setCustomGameSettingsEndpoint = withResponse(import_valorant_api_types5.endpoints.setCustomGameSettingsEndpoint, customGameParty);
|
|
922
|
+
var partyEndpoint = withResponse(import_valorant_api_types5.endpoints.partyEndpoint, partyResponse);
|
|
923
|
+
var changeQueueEndpoint = withResponse(import_valorant_api_types5.endpoints.changeQueueEndpoint, partyResponse);
|
|
924
|
+
var enterMatchmakingQueueEndpoint = withResponse(import_valorant_api_types5.endpoints.enterMatchmakingQueueEndpoint, partyResponse);
|
|
925
|
+
var leaveMatchmakingQueueEndpoint = withResponse(import_valorant_api_types5.endpoints.leaveMatchmakingQueueEndpoint, partyResponse);
|
|
926
|
+
var partyDeclineEndpoint = withResponse(import_valorant_api_types5.endpoints.partyDeclineEndpoint, partyResponse);
|
|
927
|
+
var partyInviteEndpoint = withResponse(import_valorant_api_types5.endpoints.partyInviteEndpoint, partyResponse);
|
|
928
|
+
var partySetMemberReadyEndpoint = withResponse(import_valorant_api_types5.endpoints.partySetMemberReadyEndpoint, partyResponse);
|
|
929
|
+
var refreshCompetitiveTierEndpoint = withResponse(import_valorant_api_types5.endpoints.refreshCompetitiveTierEndpoint, partyResponse);
|
|
930
|
+
var refreshPlayerIdentityEndpoint = withResponse(import_valorant_api_types5.endpoints.refreshPlayerIdentityEndpoint, partyResponse);
|
|
931
|
+
var refreshPingsEndpoint = withResponse(import_valorant_api_types5.endpoints.refreshPingsEndpoint, partyResponse);
|
|
932
|
+
|
|
933
|
+
// src/endpoints/riot/pregame.ts
|
|
934
|
+
var import_valorant_api_types6 = require("valorant-api-types");
|
|
935
|
+
var import_zod9 = require("zod");
|
|
936
|
+
var pregameMatchEndpoint = withResponse(import_valorant_api_types6.endpoints.pregameMatchEndpoint, import_zod9.z.object({
|
|
937
|
+
ID: import_zod9.z.string(),
|
|
938
|
+
Version: import_zod9.z.number(),
|
|
939
|
+
Teams: import_zod9.z.array(import_zod9.z.object({
|
|
940
|
+
TeamID: import_zod9.z.string(),
|
|
941
|
+
TeamNumber: import_zod9.z.number(),
|
|
942
|
+
Players: import_zod9.z.array(import_zod9.z.object({
|
|
943
|
+
Subject: import_zod9.z.string(),
|
|
944
|
+
CharacterID: import_zod9.z.string(),
|
|
945
|
+
CharacterSelectionState: import_zod9.z.string(),
|
|
946
|
+
PregamePlayerState: import_zod9.z.string(),
|
|
947
|
+
CompetitiveTier: import_zod9.z.number(),
|
|
948
|
+
PlayerIdentity: import_zod9.z.object({
|
|
949
|
+
Subject: import_zod9.z.string(),
|
|
950
|
+
PlayerCardID: import_zod9.z.string(),
|
|
951
|
+
PlayerTitleID: import_zod9.z.string(),
|
|
952
|
+
AccountLevel: import_zod9.z.number(),
|
|
953
|
+
PreferredLevelBorderID: import_zod9.z.string(),
|
|
954
|
+
Incognito: import_zod9.z.boolean(),
|
|
955
|
+
HideAccountLevel: import_zod9.z.boolean()
|
|
956
|
+
}),
|
|
957
|
+
SeasonalBadgeInfo: import_zod9.z.object({
|
|
958
|
+
SeasonID: import_zod9.z.string(),
|
|
959
|
+
NumberOfWins: import_zod9.z.number(),
|
|
960
|
+
Rank: import_zod9.z.number(),
|
|
961
|
+
LeaderboardRank: import_zod9.z.number()
|
|
962
|
+
}),
|
|
963
|
+
IsCaptain: import_zod9.z.boolean(),
|
|
964
|
+
PlatformType: import_zod9.z.string(),
|
|
965
|
+
PremierPrestige: import_zod9.z.object({})
|
|
966
|
+
}))
|
|
967
|
+
})),
|
|
968
|
+
AllyTeam: import_zod9.z.object({
|
|
969
|
+
TeamID: import_zod9.z.string(),
|
|
970
|
+
TeamNumber: import_zod9.z.number(),
|
|
971
|
+
Players: import_zod9.z.array(import_zod9.z.object({
|
|
972
|
+
Subject: import_zod9.z.string(),
|
|
973
|
+
CharacterID: import_zod9.z.string(),
|
|
974
|
+
CharacterSelectionState: import_zod9.z.string(),
|
|
975
|
+
PregamePlayerState: import_zod9.z.string(),
|
|
976
|
+
CompetitiveTier: import_zod9.z.number(),
|
|
977
|
+
PlayerIdentity: import_zod9.z.object({
|
|
978
|
+
Subject: import_zod9.z.string(),
|
|
979
|
+
PlayerCardID: import_zod9.z.string(),
|
|
980
|
+
PlayerTitleID: import_zod9.z.string(),
|
|
981
|
+
AccountLevel: import_zod9.z.number(),
|
|
982
|
+
PreferredLevelBorderID: import_zod9.z.string(),
|
|
983
|
+
Incognito: import_zod9.z.boolean(),
|
|
984
|
+
HideAccountLevel: import_zod9.z.boolean()
|
|
985
|
+
}),
|
|
986
|
+
SeasonalBadgeInfo: import_zod9.z.object({
|
|
987
|
+
SeasonID: import_zod9.z.string(),
|
|
988
|
+
NumberOfWins: import_zod9.z.number(),
|
|
989
|
+
Rank: import_zod9.z.number(),
|
|
990
|
+
LeaderboardRank: import_zod9.z.number()
|
|
991
|
+
}),
|
|
992
|
+
IsCaptain: import_zod9.z.boolean(),
|
|
993
|
+
PlatformType: import_zod9.z.string(),
|
|
994
|
+
PremierPrestige: import_zod9.z.object({})
|
|
995
|
+
}))
|
|
996
|
+
}),
|
|
997
|
+
EnemyTeamSize: import_zod9.z.number(),
|
|
998
|
+
EnemyTeamLockCount: import_zod9.z.number(),
|
|
999
|
+
PregameState: import_zod9.z.string(),
|
|
1000
|
+
LastUpdated: import_zod9.z.string(),
|
|
1001
|
+
MapID: import_zod9.z.string(),
|
|
1002
|
+
CastedVotes: import_zod9.z.object({}),
|
|
1003
|
+
MapSelectStep: import_zod9.z.number(),
|
|
1004
|
+
Team1: import_zod9.z.string(),
|
|
1005
|
+
GamePodID: import_zod9.z.string(),
|
|
1006
|
+
Mode: import_zod9.z.string(),
|
|
1007
|
+
VoiceSessionID: import_zod9.z.string(),
|
|
1008
|
+
MUCName: import_zod9.z.string(),
|
|
1009
|
+
TeamMatchToken: import_zod9.z.string(),
|
|
1010
|
+
QueueID: import_zod9.z.string(),
|
|
1011
|
+
ProvisioningFlowID: import_zod9.z.string(),
|
|
1012
|
+
IsRanked: import_zod9.z.boolean(),
|
|
1013
|
+
PhaseTimeRemainingNS: import_zod9.z.number(),
|
|
1014
|
+
StepTimeRemainingNS: import_zod9.z.number(),
|
|
1015
|
+
altModesFlagADA: import_zod9.z.boolean(),
|
|
1016
|
+
/** Rules of the match by name. Only the rules the lobby set are present. */
|
|
1017
|
+
GameRules: import_zod9.z.record(import_zod9.z.string(), import_zod9.z.string())
|
|
1018
|
+
}));
|
|
1019
|
+
var pregameLoadoutsEndpoint = withResponse(import_valorant_api_types6.endpoints.pregameLoadoutsEndpoint, import_zod9.z.object({
|
|
1020
|
+
Loadouts: import_zod9.z.array(import_zod9.z.object({
|
|
1021
|
+
Subject: import_zod9.z.string(),
|
|
1022
|
+
Expressions: import_zod9.z.object({
|
|
1023
|
+
AESSelections: import_zod9.z.array(import_zod9.z.object({
|
|
1024
|
+
AssetID: import_zod9.z.string(),
|
|
1025
|
+
TypeID: import_zod9.z.string()
|
|
1026
|
+
}))
|
|
1027
|
+
}),
|
|
1028
|
+
DynamicOptions: import_zod9.z.object({}),
|
|
1029
|
+
Items: import_zod9.z.record(import_zod9.z.string(), import_zod9.z.object({
|
|
1030
|
+
ID: import_zod9.z.string(),
|
|
1031
|
+
TypeID: import_zod9.z.string(),
|
|
1032
|
+
Sockets: import_zod9.z.record(import_zod9.z.string(), import_zod9.z.object({
|
|
1033
|
+
ID: import_zod9.z.string(),
|
|
1034
|
+
Item: import_zod9.z.object({
|
|
1035
|
+
ID: import_zod9.z.string(),
|
|
1036
|
+
TypeID: import_zod9.z.string()
|
|
1037
|
+
})
|
|
1038
|
+
}))
|
|
1039
|
+
}))
|
|
1040
|
+
})),
|
|
1041
|
+
LoadoutsValid: import_zod9.z.boolean()
|
|
1042
|
+
}));
|
|
1043
|
+
|
|
626
1044
|
// src/endpoints/riot/premier.ts
|
|
627
|
-
var
|
|
1045
|
+
var import_zod10 = require("zod");
|
|
628
1046
|
var premierSeasonsEndpoint = {
|
|
629
1047
|
name: "Premier Seasons",
|
|
630
1048
|
description: "All Premier seasons of the shard. The affinity in the path is the region of the context.",
|
|
@@ -632,205 +1050,205 @@ var premierSeasonsEndpoint = {
|
|
|
632
1050
|
type: "pd",
|
|
633
1051
|
suffix: "premier/v1/affinities/{region}/premier-seasons",
|
|
634
1052
|
riotRequirements: player,
|
|
635
|
-
responses: { "200":
|
|
636
|
-
PremierSeasons:
|
|
637
|
-
ID:
|
|
638
|
-
Name:
|
|
639
|
-
PreviousPremierSeasonID:
|
|
640
|
-
NextPremierSeasonID:
|
|
641
|
-
IsActive:
|
|
642
|
-
StartTime:
|
|
643
|
-
EndTime:
|
|
644
|
-
Events:
|
|
645
|
-
ID:
|
|
646
|
-
Type:
|
|
647
|
-
StartDateTime:
|
|
648
|
-
EndDateTime:
|
|
649
|
-
MapSelectionStrategy:
|
|
650
|
-
MapPoolMapIDs:
|
|
651
|
-
PointsRequiredToParticipate:
|
|
1053
|
+
responses: { "200": import_zod10.z.object({
|
|
1054
|
+
PremierSeasons: import_zod10.z.array(import_zod10.z.object({
|
|
1055
|
+
ID: import_zod10.z.string(),
|
|
1056
|
+
Name: import_zod10.z.string(),
|
|
1057
|
+
PreviousPremierSeasonID: import_zod10.z.string(),
|
|
1058
|
+
NextPremierSeasonID: import_zod10.z.string(),
|
|
1059
|
+
IsActive: import_zod10.z.boolean(),
|
|
1060
|
+
StartTime: import_zod10.z.string(),
|
|
1061
|
+
EndTime: import_zod10.z.string(),
|
|
1062
|
+
Events: import_zod10.z.array(import_zod10.z.object({
|
|
1063
|
+
ID: import_zod10.z.string(),
|
|
1064
|
+
Type: import_zod10.z.string(),
|
|
1065
|
+
StartDateTime: import_zod10.z.string(),
|
|
1066
|
+
EndDateTime: import_zod10.z.string(),
|
|
1067
|
+
MapSelectionStrategy: import_zod10.z.string(),
|
|
1068
|
+
MapPoolMapIDs: import_zod10.z.array(import_zod10.z.string()),
|
|
1069
|
+
PointsRequiredToParticipate: import_zod10.z.number()
|
|
652
1070
|
})),
|
|
653
|
-
ScheduledEvents:
|
|
654
|
-
EventID:
|
|
655
|
-
EventType:
|
|
656
|
-
Conference:
|
|
657
|
-
DivisionGroup:
|
|
658
|
-
EventPresetName:
|
|
659
|
-
StartDateTime:
|
|
660
|
-
EndDateTime:
|
|
661
|
-
TournamentRoundTimes:
|
|
662
|
-
StartDateTime:
|
|
663
|
-
EndDateTime:
|
|
1071
|
+
ScheduledEvents: import_zod10.z.array(import_zod10.z.object({
|
|
1072
|
+
EventID: import_zod10.z.string(),
|
|
1073
|
+
EventType: import_zod10.z.string(),
|
|
1074
|
+
Conference: import_zod10.z.string(),
|
|
1075
|
+
DivisionGroup: import_zod10.z.string(),
|
|
1076
|
+
EventPresetName: import_zod10.z.string(),
|
|
1077
|
+
StartDateTime: import_zod10.z.string(),
|
|
1078
|
+
EndDateTime: import_zod10.z.string(),
|
|
1079
|
+
TournamentRoundTimes: import_zod10.z.array(import_zod10.z.object({
|
|
1080
|
+
StartDateTime: import_zod10.z.string(),
|
|
1081
|
+
EndDateTime: import_zod10.z.string()
|
|
664
1082
|
}))
|
|
665
1083
|
})),
|
|
666
|
-
Conferences:
|
|
667
|
-
id:
|
|
668
|
-
key:
|
|
669
|
-
isSuper:
|
|
670
|
-
gamePods:
|
|
671
|
-
timezone:
|
|
672
|
-
superConference:
|
|
673
|
-
leaderboardPlayoffQualificationDateTime:
|
|
674
|
-
leaderboardPromotionFinalizationDateTime:
|
|
1084
|
+
Conferences: import_zod10.z.array(import_zod10.z.object({
|
|
1085
|
+
id: import_zod10.z.string(),
|
|
1086
|
+
key: import_zod10.z.string(),
|
|
1087
|
+
isSuper: import_zod10.z.boolean(),
|
|
1088
|
+
gamePods: import_zod10.z.array(import_zod10.z.string()),
|
|
1089
|
+
timezone: import_zod10.z.string(),
|
|
1090
|
+
superConference: import_zod10.z.string().optional(),
|
|
1091
|
+
leaderboardPlayoffQualificationDateTime: import_zod10.z.string(),
|
|
1092
|
+
leaderboardPromotionFinalizationDateTime: import_zod10.z.string()
|
|
675
1093
|
})),
|
|
676
|
-
Divisions:
|
|
677
|
-
Division:
|
|
678
|
-
DivisionName:
|
|
679
|
-
DivisionGroup:
|
|
680
|
-
EventPresetName:
|
|
1094
|
+
Divisions: import_zod10.z.array(import_zod10.z.object({
|
|
1095
|
+
Division: import_zod10.z.number(),
|
|
1096
|
+
DivisionName: import_zod10.z.string(),
|
|
1097
|
+
DivisionGroup: import_zod10.z.string(),
|
|
1098
|
+
EventPresetName: import_zod10.z.string()
|
|
681
1099
|
})),
|
|
682
|
-
DivisionThresholds:
|
|
683
|
-
playoffThresholdType:
|
|
684
|
-
playoffThresholdValue:
|
|
685
|
-
promotionThresholdType:
|
|
686
|
-
promotionThresholdValue:
|
|
687
|
-
shouldPromoteToSuperConference:
|
|
688
|
-
skipReseedCriteria:
|
|
689
|
-
conference:
|
|
690
|
-
division:
|
|
691
|
-
promotionConference:
|
|
692
|
-
skipReseedCriteriaValue:
|
|
1100
|
+
DivisionThresholds: import_zod10.z.array(import_zod10.z.object({
|
|
1101
|
+
playoffThresholdType: import_zod10.z.string(),
|
|
1102
|
+
playoffThresholdValue: import_zod10.z.number(),
|
|
1103
|
+
promotionThresholdType: import_zod10.z.string(),
|
|
1104
|
+
promotionThresholdValue: import_zod10.z.number(),
|
|
1105
|
+
shouldPromoteToSuperConference: import_zod10.z.boolean(),
|
|
1106
|
+
skipReseedCriteria: import_zod10.z.string(),
|
|
1107
|
+
conference: import_zod10.z.string().optional(),
|
|
1108
|
+
division: import_zod10.z.number().optional(),
|
|
1109
|
+
promotionConference: import_zod10.z.string().optional(),
|
|
1110
|
+
skipReseedCriteriaValue: import_zod10.z.number().optional()
|
|
693
1111
|
})),
|
|
694
|
-
EventPresets:
|
|
695
|
-
PRO:
|
|
696
|
-
EventPresetsByEventType:
|
|
697
|
-
LEAGUE:
|
|
698
|
-
EventPresetName:
|
|
699
|
-
eventType:
|
|
700
|
-
bestOfN:
|
|
701
|
-
matchmakingStrategy:
|
|
702
|
-
queueID:
|
|
703
|
-
pointsConfig:
|
|
704
|
-
PointsForWin:
|
|
705
|
-
PointsForLoss:
|
|
1112
|
+
EventPresets: import_zod10.z.object({
|
|
1113
|
+
PRO: import_zod10.z.object({
|
|
1114
|
+
EventPresetsByEventType: import_zod10.z.object({
|
|
1115
|
+
LEAGUE: import_zod10.z.object({
|
|
1116
|
+
EventPresetName: import_zod10.z.string(),
|
|
1117
|
+
eventType: import_zod10.z.string(),
|
|
1118
|
+
bestOfN: import_zod10.z.number(),
|
|
1119
|
+
matchmakingStrategy: import_zod10.z.string(),
|
|
1120
|
+
queueID: import_zod10.z.string(),
|
|
1121
|
+
pointsConfig: import_zod10.z.object({
|
|
1122
|
+
PointsForWin: import_zod10.z.number(),
|
|
1123
|
+
PointsForLoss: import_zod10.z.number()
|
|
706
1124
|
})
|
|
707
1125
|
}),
|
|
708
|
-
SCRIM:
|
|
709
|
-
EventPresetName:
|
|
710
|
-
eventType:
|
|
711
|
-
bestOfN:
|
|
712
|
-
matchmakingStrategy:
|
|
713
|
-
queueID:
|
|
714
|
-
pointsConfig:
|
|
715
|
-
PointsForWin:
|
|
716
|
-
PointsForLoss:
|
|
1126
|
+
SCRIM: import_zod10.z.object({
|
|
1127
|
+
EventPresetName: import_zod10.z.string(),
|
|
1128
|
+
eventType: import_zod10.z.string(),
|
|
1129
|
+
bestOfN: import_zod10.z.number(),
|
|
1130
|
+
matchmakingStrategy: import_zod10.z.string(),
|
|
1131
|
+
queueID: import_zod10.z.string(),
|
|
1132
|
+
pointsConfig: import_zod10.z.object({
|
|
1133
|
+
PointsForWin: import_zod10.z.number(),
|
|
1134
|
+
PointsForLoss: import_zod10.z.number()
|
|
717
1135
|
})
|
|
718
1136
|
}),
|
|
719
|
-
TOURNAMENT:
|
|
720
|
-
EventPresetName:
|
|
721
|
-
eventType:
|
|
722
|
-
bestOfN:
|
|
723
|
-
matchmakingStrategy:
|
|
724
|
-
queueID:
|
|
725
|
-
pointsConfig:
|
|
726
|
-
PointsForWin:
|
|
727
|
-
PointsForLoss:
|
|
1137
|
+
TOURNAMENT: import_zod10.z.object({
|
|
1138
|
+
EventPresetName: import_zod10.z.string(),
|
|
1139
|
+
eventType: import_zod10.z.string(),
|
|
1140
|
+
bestOfN: import_zod10.z.number(),
|
|
1141
|
+
matchmakingStrategy: import_zod10.z.string(),
|
|
1142
|
+
queueID: import_zod10.z.string(),
|
|
1143
|
+
pointsConfig: import_zod10.z.object({
|
|
1144
|
+
PointsForWin: import_zod10.z.number(),
|
|
1145
|
+
PointsForLoss: import_zod10.z.number()
|
|
728
1146
|
})
|
|
729
1147
|
})
|
|
730
1148
|
})
|
|
731
1149
|
}),
|
|
732
|
-
REGULAR:
|
|
733
|
-
EventPresetsByEventType:
|
|
734
|
-
LEAGUE:
|
|
735
|
-
EventPresetName:
|
|
736
|
-
eventType:
|
|
737
|
-
bestOfN:
|
|
738
|
-
matchmakingStrategy:
|
|
739
|
-
queueID:
|
|
740
|
-
pointsConfig:
|
|
741
|
-
PointsForWin:
|
|
742
|
-
PointsForLoss:
|
|
1150
|
+
REGULAR: import_zod10.z.object({
|
|
1151
|
+
EventPresetsByEventType: import_zod10.z.object({
|
|
1152
|
+
LEAGUE: import_zod10.z.object({
|
|
1153
|
+
EventPresetName: import_zod10.z.string(),
|
|
1154
|
+
eventType: import_zod10.z.string(),
|
|
1155
|
+
bestOfN: import_zod10.z.number(),
|
|
1156
|
+
matchmakingStrategy: import_zod10.z.string(),
|
|
1157
|
+
queueID: import_zod10.z.string(),
|
|
1158
|
+
pointsConfig: import_zod10.z.object({
|
|
1159
|
+
PointsForWin: import_zod10.z.number(),
|
|
1160
|
+
PointsForLoss: import_zod10.z.number()
|
|
743
1161
|
})
|
|
744
1162
|
}),
|
|
745
|
-
SCRIM:
|
|
746
|
-
EventPresetName:
|
|
747
|
-
eventType:
|
|
748
|
-
bestOfN:
|
|
749
|
-
matchmakingStrategy:
|
|
750
|
-
queueID:
|
|
751
|
-
pointsConfig:
|
|
752
|
-
PointsForWin:
|
|
753
|
-
PointsForLoss:
|
|
1163
|
+
SCRIM: import_zod10.z.object({
|
|
1164
|
+
EventPresetName: import_zod10.z.string(),
|
|
1165
|
+
eventType: import_zod10.z.string(),
|
|
1166
|
+
bestOfN: import_zod10.z.number(),
|
|
1167
|
+
matchmakingStrategy: import_zod10.z.string(),
|
|
1168
|
+
queueID: import_zod10.z.string(),
|
|
1169
|
+
pointsConfig: import_zod10.z.object({
|
|
1170
|
+
PointsForWin: import_zod10.z.number(),
|
|
1171
|
+
PointsForLoss: import_zod10.z.number()
|
|
754
1172
|
})
|
|
755
1173
|
}),
|
|
756
|
-
TOURNAMENT:
|
|
757
|
-
EventPresetName:
|
|
758
|
-
eventType:
|
|
759
|
-
bestOfN:
|
|
760
|
-
matchmakingStrategy:
|
|
761
|
-
queueID:
|
|
762
|
-
pointsConfig:
|
|
763
|
-
PointsForWin:
|
|
764
|
-
PointsForLoss:
|
|
1174
|
+
TOURNAMENT: import_zod10.z.object({
|
|
1175
|
+
EventPresetName: import_zod10.z.string(),
|
|
1176
|
+
eventType: import_zod10.z.string(),
|
|
1177
|
+
bestOfN: import_zod10.z.number(),
|
|
1178
|
+
matchmakingStrategy: import_zod10.z.string(),
|
|
1179
|
+
queueID: import_zod10.z.string(),
|
|
1180
|
+
pointsConfig: import_zod10.z.object({
|
|
1181
|
+
PointsForWin: import_zod10.z.number(),
|
|
1182
|
+
PointsForLoss: import_zod10.z.number()
|
|
765
1183
|
})
|
|
766
1184
|
})
|
|
767
1185
|
})
|
|
768
1186
|
})
|
|
769
1187
|
}),
|
|
770
|
-
FlawlessPointRequirement:
|
|
771
|
-
ChampionshipPointRequirement:
|
|
772
|
-
ChampionshipEventID:
|
|
773
|
-
EnrollmentPhaseStartDateTime:
|
|
774
|
-
EnrollmentPhaseEndDateTime:
|
|
775
|
-
LeaderboardPlayoffQualificationDateTime:
|
|
776
|
-
LeaderboardPromotionFinalizationDateTime:
|
|
777
|
-
LeaderboardFinalizationDateTime:
|
|
778
|
-
ContenderEligibilityExpiryDateTime:
|
|
779
|
-
StageLockTime:
|
|
780
|
-
ParticipationRewardsActIDs:
|
|
781
|
-
ParticipationRewards:
|
|
782
|
-
EntitlementRewards:
|
|
783
|
-
ItemTypeID:
|
|
784
|
-
ItemID:
|
|
785
|
-
Amount:
|
|
1188
|
+
FlawlessPointRequirement: import_zod10.z.number(),
|
|
1189
|
+
ChampionshipPointRequirement: import_zod10.z.number(),
|
|
1190
|
+
ChampionshipEventID: import_zod10.z.string(),
|
|
1191
|
+
EnrollmentPhaseStartDateTime: import_zod10.z.string(),
|
|
1192
|
+
EnrollmentPhaseEndDateTime: import_zod10.z.string(),
|
|
1193
|
+
LeaderboardPlayoffQualificationDateTime: import_zod10.z.string(),
|
|
1194
|
+
LeaderboardPromotionFinalizationDateTime: import_zod10.z.string(),
|
|
1195
|
+
LeaderboardFinalizationDateTime: import_zod10.z.string(),
|
|
1196
|
+
ContenderEligibilityExpiryDateTime: import_zod10.z.string(),
|
|
1197
|
+
StageLockTime: import_zod10.z.string(),
|
|
1198
|
+
ParticipationRewardsActIDs: import_zod10.z.array(import_zod10.z.string()),
|
|
1199
|
+
ParticipationRewards: import_zod10.z.object({
|
|
1200
|
+
EntitlementRewards: import_zod10.z.array(import_zod10.z.object({
|
|
1201
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1202
|
+
ItemID: import_zod10.z.string(),
|
|
1203
|
+
Amount: import_zod10.z.number()
|
|
786
1204
|
}))
|
|
787
1205
|
}),
|
|
788
|
-
TournamentWinnerRewards:
|
|
789
|
-
DivisionWinnerRewards:
|
|
790
|
-
ADVANCED:
|
|
791
|
-
EntitlementRewards:
|
|
792
|
-
ItemTypeID:
|
|
793
|
-
ItemID:
|
|
794
|
-
Amount:
|
|
1206
|
+
TournamentWinnerRewards: import_zod10.z.object({}),
|
|
1207
|
+
DivisionWinnerRewards: import_zod10.z.object({
|
|
1208
|
+
ADVANCED: import_zod10.z.object({
|
|
1209
|
+
EntitlementRewards: import_zod10.z.array(import_zod10.z.object({
|
|
1210
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1211
|
+
ItemID: import_zod10.z.string(),
|
|
1212
|
+
Amount: import_zod10.z.number()
|
|
795
1213
|
}))
|
|
796
1214
|
}).optional(),
|
|
797
|
-
CONTENDER:
|
|
798
|
-
EntitlementRewards:
|
|
799
|
-
ItemTypeID:
|
|
800
|
-
ItemID:
|
|
801
|
-
Amount:
|
|
1215
|
+
CONTENDER: import_zod10.z.object({
|
|
1216
|
+
EntitlementRewards: import_zod10.z.array(import_zod10.z.object({
|
|
1217
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1218
|
+
ItemID: import_zod10.z.string(),
|
|
1219
|
+
Amount: import_zod10.z.number()
|
|
802
1220
|
}))
|
|
803
1221
|
}).optional(),
|
|
804
|
-
ELITE:
|
|
805
|
-
EntitlementRewards:
|
|
806
|
-
ItemTypeID:
|
|
807
|
-
ItemID:
|
|
808
|
-
Amount:
|
|
1222
|
+
ELITE: import_zod10.z.object({
|
|
1223
|
+
EntitlementRewards: import_zod10.z.array(import_zod10.z.object({
|
|
1224
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1225
|
+
ItemID: import_zod10.z.string(),
|
|
1226
|
+
Amount: import_zod10.z.number()
|
|
809
1227
|
}))
|
|
810
1228
|
}).optional(),
|
|
811
|
-
INTERMEDIATE:
|
|
812
|
-
EntitlementRewards:
|
|
813
|
-
ItemTypeID:
|
|
814
|
-
ItemID:
|
|
815
|
-
Amount:
|
|
1229
|
+
INTERMEDIATE: import_zod10.z.object({
|
|
1230
|
+
EntitlementRewards: import_zod10.z.array(import_zod10.z.object({
|
|
1231
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1232
|
+
ItemID: import_zod10.z.string(),
|
|
1233
|
+
Amount: import_zod10.z.number()
|
|
816
1234
|
}))
|
|
817
1235
|
}).optional(),
|
|
818
|
-
OPEN:
|
|
819
|
-
EntitlementRewards:
|
|
820
|
-
ItemTypeID:
|
|
821
|
-
ItemID:
|
|
822
|
-
Amount:
|
|
1236
|
+
OPEN: import_zod10.z.object({
|
|
1237
|
+
EntitlementRewards: import_zod10.z.array(import_zod10.z.object({
|
|
1238
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1239
|
+
ItemID: import_zod10.z.string(),
|
|
1240
|
+
Amount: import_zod10.z.number()
|
|
823
1241
|
}))
|
|
824
1242
|
}).optional(),
|
|
825
|
-
INVITE:
|
|
826
|
-
EntitlementRewards:
|
|
827
|
-
ItemTypeID:
|
|
828
|
-
ItemID:
|
|
829
|
-
Amount:
|
|
1243
|
+
INVITE: import_zod10.z.object({
|
|
1244
|
+
EntitlementRewards: import_zod10.z.array(import_zod10.z.object({
|
|
1245
|
+
ItemTypeID: import_zod10.z.string(),
|
|
1246
|
+
ItemID: import_zod10.z.string(),
|
|
1247
|
+
Amount: import_zod10.z.number()
|
|
830
1248
|
}))
|
|
831
1249
|
}).optional()
|
|
832
1250
|
}),
|
|
833
|
-
RosterRecentActivityNumSeasons:
|
|
1251
|
+
RosterRecentActivityNumSeasons: import_zod10.z.number()
|
|
834
1252
|
}))
|
|
835
1253
|
}) }
|
|
836
1254
|
};
|
|
@@ -841,154 +1259,154 @@ var premierActiveSeasonEndpoint = {
|
|
|
841
1259
|
type: "pd",
|
|
842
1260
|
suffix: "premier/v1/affinities/{region}/premier-seasons/active",
|
|
843
1261
|
riotRequirements: player,
|
|
844
|
-
responses: { "200":
|
|
845
|
-
ID:
|
|
846
|
-
Name:
|
|
847
|
-
PreviousPremierSeasonID:
|
|
848
|
-
NextPremierSeasonID:
|
|
849
|
-
IsActive:
|
|
850
|
-
StartTime:
|
|
851
|
-
EndTime:
|
|
852
|
-
Events:
|
|
853
|
-
ID:
|
|
854
|
-
Type:
|
|
855
|
-
StartDateTime:
|
|
856
|
-
EndDateTime:
|
|
857
|
-
MapSelectionStrategy:
|
|
858
|
-
MapPoolMapIDs:
|
|
859
|
-
PointsRequiredToParticipate:
|
|
1262
|
+
responses: { "200": import_zod10.z.object({
|
|
1263
|
+
ID: import_zod10.z.string(),
|
|
1264
|
+
Name: import_zod10.z.string(),
|
|
1265
|
+
PreviousPremierSeasonID: import_zod10.z.string(),
|
|
1266
|
+
NextPremierSeasonID: import_zod10.z.string(),
|
|
1267
|
+
IsActive: import_zod10.z.boolean(),
|
|
1268
|
+
StartTime: import_zod10.z.string(),
|
|
1269
|
+
EndTime: import_zod10.z.string(),
|
|
1270
|
+
Events: import_zod10.z.array(import_zod10.z.object({
|
|
1271
|
+
ID: import_zod10.z.string(),
|
|
1272
|
+
Type: import_zod10.z.string(),
|
|
1273
|
+
StartDateTime: import_zod10.z.string(),
|
|
1274
|
+
EndDateTime: import_zod10.z.string(),
|
|
1275
|
+
MapSelectionStrategy: import_zod10.z.string(),
|
|
1276
|
+
MapPoolMapIDs: import_zod10.z.array(import_zod10.z.string()),
|
|
1277
|
+
PointsRequiredToParticipate: import_zod10.z.number()
|
|
860
1278
|
})),
|
|
861
|
-
ScheduledEvents:
|
|
862
|
-
EventID:
|
|
863
|
-
EventType:
|
|
864
|
-
Conference:
|
|
865
|
-
DivisionGroup:
|
|
866
|
-
EventPresetName:
|
|
867
|
-
StartDateTime:
|
|
868
|
-
EndDateTime:
|
|
869
|
-
TournamentRoundTimes:
|
|
870
|
-
StartDateTime:
|
|
871
|
-
EndDateTime:
|
|
1279
|
+
ScheduledEvents: import_zod10.z.array(import_zod10.z.object({
|
|
1280
|
+
EventID: import_zod10.z.string(),
|
|
1281
|
+
EventType: import_zod10.z.string(),
|
|
1282
|
+
Conference: import_zod10.z.string(),
|
|
1283
|
+
DivisionGroup: import_zod10.z.string(),
|
|
1284
|
+
EventPresetName: import_zod10.z.string(),
|
|
1285
|
+
StartDateTime: import_zod10.z.string(),
|
|
1286
|
+
EndDateTime: import_zod10.z.string(),
|
|
1287
|
+
TournamentRoundTimes: import_zod10.z.array(import_zod10.z.object({
|
|
1288
|
+
StartDateTime: import_zod10.z.string(),
|
|
1289
|
+
EndDateTime: import_zod10.z.string()
|
|
872
1290
|
}))
|
|
873
1291
|
})),
|
|
874
|
-
Conferences:
|
|
875
|
-
id:
|
|
876
|
-
key:
|
|
877
|
-
isSuper:
|
|
878
|
-
gamePods:
|
|
879
|
-
timezone:
|
|
880
|
-
superConference:
|
|
881
|
-
leaderboardPlayoffQualificationDateTime:
|
|
882
|
-
leaderboardPromotionFinalizationDateTime:
|
|
1292
|
+
Conferences: import_zod10.z.array(import_zod10.z.object({
|
|
1293
|
+
id: import_zod10.z.string(),
|
|
1294
|
+
key: import_zod10.z.string(),
|
|
1295
|
+
isSuper: import_zod10.z.boolean(),
|
|
1296
|
+
gamePods: import_zod10.z.array(import_zod10.z.string()),
|
|
1297
|
+
timezone: import_zod10.z.string(),
|
|
1298
|
+
superConference: import_zod10.z.string().optional(),
|
|
1299
|
+
leaderboardPlayoffQualificationDateTime: import_zod10.z.string(),
|
|
1300
|
+
leaderboardPromotionFinalizationDateTime: import_zod10.z.string()
|
|
883
1301
|
})),
|
|
884
|
-
Divisions:
|
|
885
|
-
Division:
|
|
886
|
-
DivisionName:
|
|
887
|
-
DivisionGroup:
|
|
888
|
-
EventPresetName:
|
|
1302
|
+
Divisions: import_zod10.z.array(import_zod10.z.object({
|
|
1303
|
+
Division: import_zod10.z.number(),
|
|
1304
|
+
DivisionName: import_zod10.z.string(),
|
|
1305
|
+
DivisionGroup: import_zod10.z.string(),
|
|
1306
|
+
EventPresetName: import_zod10.z.string()
|
|
889
1307
|
})),
|
|
890
|
-
DivisionThresholds:
|
|
891
|
-
playoffThresholdType:
|
|
892
|
-
playoffThresholdValue:
|
|
893
|
-
promotionThresholdType:
|
|
894
|
-
promotionThresholdValue:
|
|
895
|
-
shouldPromoteToSuperConference:
|
|
896
|
-
skipReseedCriteria:
|
|
897
|
-
conference:
|
|
898
|
-
division:
|
|
899
|
-
promotionConference:
|
|
900
|
-
skipReseedCriteriaValue:
|
|
1308
|
+
DivisionThresholds: import_zod10.z.array(import_zod10.z.object({
|
|
1309
|
+
playoffThresholdType: import_zod10.z.string(),
|
|
1310
|
+
playoffThresholdValue: import_zod10.z.number(),
|
|
1311
|
+
promotionThresholdType: import_zod10.z.string(),
|
|
1312
|
+
promotionThresholdValue: import_zod10.z.number(),
|
|
1313
|
+
shouldPromoteToSuperConference: import_zod10.z.boolean(),
|
|
1314
|
+
skipReseedCriteria: import_zod10.z.string(),
|
|
1315
|
+
conference: import_zod10.z.string().optional(),
|
|
1316
|
+
division: import_zod10.z.number().optional(),
|
|
1317
|
+
promotionConference: import_zod10.z.string().optional(),
|
|
1318
|
+
skipReseedCriteriaValue: import_zod10.z.number().optional()
|
|
901
1319
|
})),
|
|
902
|
-
EventPresets:
|
|
903
|
-
PRO:
|
|
904
|
-
EventPresetsByEventType:
|
|
905
|
-
LEAGUE:
|
|
906
|
-
EventPresetName:
|
|
907
|
-
eventType:
|
|
908
|
-
bestOfN:
|
|
909
|
-
matchmakingStrategy:
|
|
910
|
-
queueID:
|
|
911
|
-
pointsConfig:
|
|
912
|
-
PointsForWin:
|
|
913
|
-
PointsForLoss:
|
|
1320
|
+
EventPresets: import_zod10.z.object({
|
|
1321
|
+
PRO: import_zod10.z.object({
|
|
1322
|
+
EventPresetsByEventType: import_zod10.z.object({
|
|
1323
|
+
LEAGUE: import_zod10.z.object({
|
|
1324
|
+
EventPresetName: import_zod10.z.string(),
|
|
1325
|
+
eventType: import_zod10.z.string(),
|
|
1326
|
+
bestOfN: import_zod10.z.number(),
|
|
1327
|
+
matchmakingStrategy: import_zod10.z.string(),
|
|
1328
|
+
queueID: import_zod10.z.string(),
|
|
1329
|
+
pointsConfig: import_zod10.z.object({
|
|
1330
|
+
PointsForWin: import_zod10.z.number(),
|
|
1331
|
+
PointsForLoss: import_zod10.z.number()
|
|
914
1332
|
})
|
|
915
1333
|
}),
|
|
916
|
-
SCRIM:
|
|
917
|
-
EventPresetName:
|
|
918
|
-
eventType:
|
|
919
|
-
bestOfN:
|
|
920
|
-
matchmakingStrategy:
|
|
921
|
-
queueID:
|
|
922
|
-
pointsConfig:
|
|
923
|
-
PointsForWin:
|
|
924
|
-
PointsForLoss:
|
|
1334
|
+
SCRIM: import_zod10.z.object({
|
|
1335
|
+
EventPresetName: import_zod10.z.string(),
|
|
1336
|
+
eventType: import_zod10.z.string(),
|
|
1337
|
+
bestOfN: import_zod10.z.number(),
|
|
1338
|
+
matchmakingStrategy: import_zod10.z.string(),
|
|
1339
|
+
queueID: import_zod10.z.string(),
|
|
1340
|
+
pointsConfig: import_zod10.z.object({
|
|
1341
|
+
PointsForWin: import_zod10.z.number(),
|
|
1342
|
+
PointsForLoss: import_zod10.z.number()
|
|
925
1343
|
})
|
|
926
1344
|
}),
|
|
927
|
-
TOURNAMENT:
|
|
928
|
-
EventPresetName:
|
|
929
|
-
eventType:
|
|
930
|
-
bestOfN:
|
|
931
|
-
matchmakingStrategy:
|
|
932
|
-
queueID:
|
|
933
|
-
pointsConfig:
|
|
934
|
-
PointsForWin:
|
|
935
|
-
PointsForLoss:
|
|
1345
|
+
TOURNAMENT: import_zod10.z.object({
|
|
1346
|
+
EventPresetName: import_zod10.z.string(),
|
|
1347
|
+
eventType: import_zod10.z.string(),
|
|
1348
|
+
bestOfN: import_zod10.z.number(),
|
|
1349
|
+
matchmakingStrategy: import_zod10.z.string(),
|
|
1350
|
+
queueID: import_zod10.z.string(),
|
|
1351
|
+
pointsConfig: import_zod10.z.object({
|
|
1352
|
+
PointsForWin: import_zod10.z.number(),
|
|
1353
|
+
PointsForLoss: import_zod10.z.number()
|
|
936
1354
|
})
|
|
937
1355
|
})
|
|
938
1356
|
})
|
|
939
1357
|
}),
|
|
940
|
-
REGULAR:
|
|
941
|
-
EventPresetsByEventType:
|
|
942
|
-
LEAGUE:
|
|
943
|
-
EventPresetName:
|
|
944
|
-
eventType:
|
|
945
|
-
bestOfN:
|
|
946
|
-
matchmakingStrategy:
|
|
947
|
-
queueID:
|
|
948
|
-
pointsConfig:
|
|
949
|
-
PointsForWin:
|
|
950
|
-
PointsForLoss:
|
|
1358
|
+
REGULAR: import_zod10.z.object({
|
|
1359
|
+
EventPresetsByEventType: import_zod10.z.object({
|
|
1360
|
+
LEAGUE: import_zod10.z.object({
|
|
1361
|
+
EventPresetName: import_zod10.z.string(),
|
|
1362
|
+
eventType: import_zod10.z.string(),
|
|
1363
|
+
bestOfN: import_zod10.z.number(),
|
|
1364
|
+
matchmakingStrategy: import_zod10.z.string(),
|
|
1365
|
+
queueID: import_zod10.z.string(),
|
|
1366
|
+
pointsConfig: import_zod10.z.object({
|
|
1367
|
+
PointsForWin: import_zod10.z.number(),
|
|
1368
|
+
PointsForLoss: import_zod10.z.number()
|
|
951
1369
|
})
|
|
952
1370
|
}),
|
|
953
|
-
SCRIM:
|
|
954
|
-
EventPresetName:
|
|
955
|
-
eventType:
|
|
956
|
-
bestOfN:
|
|
957
|
-
matchmakingStrategy:
|
|
958
|
-
queueID:
|
|
959
|
-
pointsConfig:
|
|
960
|
-
PointsForWin:
|
|
961
|
-
PointsForLoss:
|
|
1371
|
+
SCRIM: import_zod10.z.object({
|
|
1372
|
+
EventPresetName: import_zod10.z.string(),
|
|
1373
|
+
eventType: import_zod10.z.string(),
|
|
1374
|
+
bestOfN: import_zod10.z.number(),
|
|
1375
|
+
matchmakingStrategy: import_zod10.z.string(),
|
|
1376
|
+
queueID: import_zod10.z.string(),
|
|
1377
|
+
pointsConfig: import_zod10.z.object({
|
|
1378
|
+
PointsForWin: import_zod10.z.number(),
|
|
1379
|
+
PointsForLoss: import_zod10.z.number()
|
|
962
1380
|
})
|
|
963
1381
|
}),
|
|
964
|
-
TOURNAMENT:
|
|
965
|
-
EventPresetName:
|
|
966
|
-
eventType:
|
|
967
|
-
bestOfN:
|
|
968
|
-
matchmakingStrategy:
|
|
969
|
-
queueID:
|
|
970
|
-
pointsConfig:
|
|
971
|
-
PointsForWin:
|
|
972
|
-
PointsForLoss:
|
|
1382
|
+
TOURNAMENT: import_zod10.z.object({
|
|
1383
|
+
EventPresetName: import_zod10.z.string(),
|
|
1384
|
+
eventType: import_zod10.z.string(),
|
|
1385
|
+
bestOfN: import_zod10.z.number(),
|
|
1386
|
+
matchmakingStrategy: import_zod10.z.string(),
|
|
1387
|
+
queueID: import_zod10.z.string(),
|
|
1388
|
+
pointsConfig: import_zod10.z.object({
|
|
1389
|
+
PointsForWin: import_zod10.z.number(),
|
|
1390
|
+
PointsForLoss: import_zod10.z.number()
|
|
973
1391
|
})
|
|
974
1392
|
})
|
|
975
1393
|
})
|
|
976
1394
|
})
|
|
977
1395
|
}),
|
|
978
|
-
FlawlessPointRequirement:
|
|
979
|
-
ChampionshipPointRequirement:
|
|
980
|
-
ChampionshipEventID:
|
|
981
|
-
EnrollmentPhaseStartDateTime:
|
|
982
|
-
EnrollmentPhaseEndDateTime:
|
|
983
|
-
LeaderboardPlayoffQualificationDateTime:
|
|
984
|
-
LeaderboardPromotionFinalizationDateTime:
|
|
985
|
-
LeaderboardFinalizationDateTime:
|
|
986
|
-
ContenderEligibilityExpiryDateTime:
|
|
987
|
-
StageLockTime:
|
|
988
|
-
ParticipationRewards:
|
|
989
|
-
TournamentWinnerRewards:
|
|
990
|
-
DivisionWinnerRewards:
|
|
991
|
-
RosterRecentActivityNumSeasons:
|
|
1396
|
+
FlawlessPointRequirement: import_zod10.z.number(),
|
|
1397
|
+
ChampionshipPointRequirement: import_zod10.z.number(),
|
|
1398
|
+
ChampionshipEventID: import_zod10.z.string(),
|
|
1399
|
+
EnrollmentPhaseStartDateTime: import_zod10.z.string(),
|
|
1400
|
+
EnrollmentPhaseEndDateTime: import_zod10.z.string(),
|
|
1401
|
+
LeaderboardPlayoffQualificationDateTime: import_zod10.z.string(),
|
|
1402
|
+
LeaderboardPromotionFinalizationDateTime: import_zod10.z.string(),
|
|
1403
|
+
LeaderboardFinalizationDateTime: import_zod10.z.string(),
|
|
1404
|
+
ContenderEligibilityExpiryDateTime: import_zod10.z.string(),
|
|
1405
|
+
StageLockTime: import_zod10.z.string(),
|
|
1406
|
+
ParticipationRewards: import_zod10.z.object({}),
|
|
1407
|
+
TournamentWinnerRewards: import_zod10.z.object({}),
|
|
1408
|
+
DivisionWinnerRewards: import_zod10.z.object({}),
|
|
1409
|
+
RosterRecentActivityNumSeasons: import_zod10.z.number()
|
|
992
1410
|
}) }
|
|
993
1411
|
};
|
|
994
1412
|
var premierConferencesEndpoint = {
|
|
@@ -998,16 +1416,16 @@ var premierConferencesEndpoint = {
|
|
|
998
1416
|
type: "pd",
|
|
999
1417
|
suffix: "premier/v1/affinities/{region}/conferences",
|
|
1000
1418
|
riotRequirements: player,
|
|
1001
|
-
responses: { "200":
|
|
1002
|
-
PremierConferences:
|
|
1003
|
-
id:
|
|
1004
|
-
key:
|
|
1005
|
-
isSuper:
|
|
1006
|
-
gamePods:
|
|
1007
|
-
timezone:
|
|
1008
|
-
superConference:
|
|
1009
|
-
leaderboardPlayoffQualificationDateTime:
|
|
1010
|
-
leaderboardPromotionFinalizationDateTime:
|
|
1419
|
+
responses: { "200": import_zod10.z.object({
|
|
1420
|
+
PremierConferences: import_zod10.z.array(import_zod10.z.object({
|
|
1421
|
+
id: import_zod10.z.string(),
|
|
1422
|
+
key: import_zod10.z.string(),
|
|
1423
|
+
isSuper: import_zod10.z.boolean(),
|
|
1424
|
+
gamePods: import_zod10.z.array(import_zod10.z.string()),
|
|
1425
|
+
timezone: import_zod10.z.string(),
|
|
1426
|
+
superConference: import_zod10.z.string().optional(),
|
|
1427
|
+
leaderboardPlayoffQualificationDateTime: import_zod10.z.string(),
|
|
1428
|
+
leaderboardPromotionFinalizationDateTime: import_zod10.z.string()
|
|
1011
1429
|
}))
|
|
1012
1430
|
}) }
|
|
1013
1431
|
};
|
|
@@ -1018,10 +1436,10 @@ var premierMatchLimitEndpoint = {
|
|
|
1018
1436
|
type: "pd",
|
|
1019
1437
|
suffix: "premier/v1/matchlimitinfo",
|
|
1020
1438
|
riotRequirements: player,
|
|
1021
|
-
responses: { "200":
|
|
1022
|
-
leagueMatchLimit:
|
|
1023
|
-
tournamentLimit:
|
|
1024
|
-
timeUntilNextResetSeconds:
|
|
1439
|
+
responses: { "200": import_zod10.z.object({
|
|
1440
|
+
leagueMatchLimit: import_zod10.z.number(),
|
|
1441
|
+
tournamentLimit: import_zod10.z.number(),
|
|
1442
|
+
timeUntilNextResetSeconds: import_zod10.z.number()
|
|
1025
1443
|
}) }
|
|
1026
1444
|
};
|
|
1027
1445
|
var premierEligibilityEndpoint = {
|
|
@@ -1031,12 +1449,12 @@ var premierEligibilityEndpoint = {
|
|
|
1031
1449
|
type: "pd",
|
|
1032
1450
|
suffix: "premier/v1/player/eligibility",
|
|
1033
1451
|
riotRequirements: player,
|
|
1034
|
-
responses: { "200":
|
|
1035
|
-
subject:
|
|
1036
|
-
accountVerificationStatus:
|
|
1037
|
-
rankedPlacementCompletionStatus:
|
|
1038
|
-
matchLimitReached:
|
|
1039
|
-
isOnProvidedRoster:
|
|
1452
|
+
responses: { "200": import_zod10.z.object({
|
|
1453
|
+
subject: import_zod10.z.string(),
|
|
1454
|
+
accountVerificationStatus: import_zod10.z.boolean(),
|
|
1455
|
+
rankedPlacementCompletionStatus: import_zod10.z.boolean(),
|
|
1456
|
+
matchLimitReached: import_zod10.z.boolean(),
|
|
1457
|
+
isOnProvidedRoster: import_zod10.z.boolean()
|
|
1040
1458
|
}) }
|
|
1041
1459
|
};
|
|
1042
1460
|
var premierPlayerV2Endpoint = {
|
|
@@ -1046,12 +1464,12 @@ var premierPlayerV2Endpoint = {
|
|
|
1046
1464
|
type: "pd",
|
|
1047
1465
|
suffix: "premier/v2/players/{puuid}",
|
|
1048
1466
|
riotRequirements: player,
|
|
1049
|
-
responses: { "200":
|
|
1050
|
-
puuid:
|
|
1051
|
-
rosterId:
|
|
1052
|
-
version:
|
|
1053
|
-
createdAt:
|
|
1054
|
-
updatedAt:
|
|
1467
|
+
responses: { "200": import_zod10.z.object({
|
|
1468
|
+
puuid: import_zod10.z.string(),
|
|
1469
|
+
rosterId: import_zod10.z.string(),
|
|
1470
|
+
version: import_zod10.z.number(),
|
|
1471
|
+
createdAt: import_zod10.z.number(),
|
|
1472
|
+
updatedAt: import_zod10.z.number()
|
|
1055
1473
|
}) }
|
|
1056
1474
|
};
|
|
1057
1475
|
var premierPlayerV3Endpoint = {
|
|
@@ -1061,39 +1479,150 @@ var premierPlayerV3Endpoint = {
|
|
|
1061
1479
|
type: "pd",
|
|
1062
1480
|
suffix: "premier/v3/players/{puuid}",
|
|
1063
1481
|
riotRequirements: player,
|
|
1064
|
-
responses: { "200":
|
|
1065
|
-
puuid:
|
|
1066
|
-
rosterId:
|
|
1067
|
-
prestige:
|
|
1068
|
-
earnedPrestige:
|
|
1069
|
-
earnedAura:
|
|
1070
|
-
showTag:
|
|
1071
|
-
showPlating:
|
|
1072
|
-
showAura:
|
|
1482
|
+
responses: { "200": import_zod10.z.object({
|
|
1483
|
+
puuid: import_zod10.z.string(),
|
|
1484
|
+
rosterId: import_zod10.z.string(),
|
|
1485
|
+
prestige: import_zod10.z.object({
|
|
1486
|
+
earnedPrestige: import_zod10.z.boolean(),
|
|
1487
|
+
earnedAura: import_zod10.z.boolean(),
|
|
1488
|
+
showTag: import_zod10.z.boolean(),
|
|
1489
|
+
showPlating: import_zod10.z.boolean(),
|
|
1490
|
+
showAura: import_zod10.z.boolean()
|
|
1073
1491
|
}),
|
|
1074
|
-
contenderEligibilityExpiry:
|
|
1075
|
-
socialVersion:
|
|
1076
|
-
premierVersion:
|
|
1077
|
-
updatedAt:
|
|
1078
|
-
seasons:
|
|
1079
|
-
"08d281c5-4426-3aaa-3316-ebaf5f2c858a":
|
|
1080
|
-
seasonId:
|
|
1081
|
-
hasEarnedPrestigeAura:
|
|
1082
|
-
hasEarnedParticipation:
|
|
1083
|
-
hasEarnedDivisionWinner:
|
|
1492
|
+
contenderEligibilityExpiry: import_zod10.z.string(),
|
|
1493
|
+
socialVersion: import_zod10.z.number(),
|
|
1494
|
+
premierVersion: import_zod10.z.number(),
|
|
1495
|
+
updatedAt: import_zod10.z.number(),
|
|
1496
|
+
seasons: import_zod10.z.object({
|
|
1497
|
+
"08d281c5-4426-3aaa-3316-ebaf5f2c858a": import_zod10.z.object({
|
|
1498
|
+
seasonId: import_zod10.z.string(),
|
|
1499
|
+
hasEarnedPrestigeAura: import_zod10.z.boolean(),
|
|
1500
|
+
hasEarnedParticipation: import_zod10.z.boolean(),
|
|
1501
|
+
hasEarnedDivisionWinner: import_zod10.z.boolean()
|
|
1084
1502
|
}),
|
|
1085
|
-
"91be4c20-439d-8e24-f577-4ca8a98e8dc8":
|
|
1086
|
-
seasonId:
|
|
1087
|
-
hasEarnedPrestigeAura:
|
|
1088
|
-
hasEarnedParticipation:
|
|
1089
|
-
hasEarnedDivisionWinner:
|
|
1503
|
+
"91be4c20-439d-8e24-f577-4ca8a98e8dc8": import_zod10.z.object({
|
|
1504
|
+
seasonId: import_zod10.z.string(),
|
|
1505
|
+
hasEarnedPrestigeAura: import_zod10.z.boolean(),
|
|
1506
|
+
hasEarnedParticipation: import_zod10.z.boolean(),
|
|
1507
|
+
hasEarnedDivisionWinner: import_zod10.z.boolean()
|
|
1090
1508
|
})
|
|
1091
1509
|
})
|
|
1092
1510
|
}) }
|
|
1093
1511
|
};
|
|
1094
1512
|
|
|
1513
|
+
// src/endpoints/riot/presence.ts
|
|
1514
|
+
var import_valorant_api_types7 = require("valorant-api-types");
|
|
1515
|
+
var import_zod11 = require("zod");
|
|
1516
|
+
|
|
1517
|
+
// src/internal/base64.ts
|
|
1518
|
+
function toBase64(text2) {
|
|
1519
|
+
return Buffer.from(text2, "utf8").toString("base64");
|
|
1520
|
+
}
|
|
1521
|
+
function fromBase64(encoded) {
|
|
1522
|
+
return Buffer.from(encoded, "base64").toString("utf8");
|
|
1523
|
+
}
|
|
1524
|
+
function basicAuth(user, password) {
|
|
1525
|
+
return `Basic ${toBase64(`${user}:${password}`)}`;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
// src/endpoints/riot/presence.ts
|
|
1529
|
+
var valorantPresence = import_zod11.z.object({
|
|
1530
|
+
isIdle: import_zod11.z.boolean(),
|
|
1531
|
+
isValid: import_zod11.z.boolean(),
|
|
1532
|
+
matchPresenceData: import_zod11.z.object({
|
|
1533
|
+
gameScoreType: import_zod11.z.string(),
|
|
1534
|
+
matchMap: import_zod11.z.string(),
|
|
1535
|
+
provisioningFlow: import_zod11.z.string(),
|
|
1536
|
+
queueId: import_zod11.z.string(),
|
|
1537
|
+
sessionLoopState: import_zod11.z.string()
|
|
1538
|
+
}),
|
|
1539
|
+
maxPartySize: import_zod11.z.number(),
|
|
1540
|
+
partyId: import_zod11.z.string(),
|
|
1541
|
+
partyOwnerMatchScoreAllyTeam: import_zod11.z.number(),
|
|
1542
|
+
partyOwnerMatchScoreEnemyTeam: import_zod11.z.number(),
|
|
1543
|
+
partyPresenceData: import_zod11.z.object({
|
|
1544
|
+
customGameName: import_zod11.z.string(),
|
|
1545
|
+
customGameTeam: import_zod11.z.string(),
|
|
1546
|
+
isPartyCrossPlayEnabled: import_zod11.z.boolean(),
|
|
1547
|
+
isPartyOwner: import_zod11.z.boolean(),
|
|
1548
|
+
isPlayerCrossPlayEnabled: import_zod11.z.boolean(),
|
|
1549
|
+
maxPartySize: import_zod11.z.number(),
|
|
1550
|
+
partyAccessibility: import_zod11.z.string(),
|
|
1551
|
+
partyClientVersion: import_zod11.z.string(),
|
|
1552
|
+
partyId: import_zod11.z.string(),
|
|
1553
|
+
partyLFM: import_zod11.z.boolean(),
|
|
1554
|
+
partyOwnerMatchMap: import_zod11.z.string(),
|
|
1555
|
+
partyOwnerMatchScoreAllyTeam: import_zod11.z.number(),
|
|
1556
|
+
partyOwnerMatchScoreEnemyTeam: import_zod11.z.number(),
|
|
1557
|
+
partyOwnerProvisioningFlow: import_zod11.z.string(),
|
|
1558
|
+
partyOwnerSessionLoopState: import_zod11.z.string(),
|
|
1559
|
+
partyPrecisePlatformTypes: import_zod11.z.number(),
|
|
1560
|
+
partySize: import_zod11.z.number(),
|
|
1561
|
+
partyState: import_zod11.z.string(),
|
|
1562
|
+
partyVersion: import_zod11.z.number(),
|
|
1563
|
+
queueEntryTime: import_zod11.z.string(),
|
|
1564
|
+
rosterId: import_zod11.z.string(),
|
|
1565
|
+
tournamentId: import_zod11.z.string()
|
|
1566
|
+
}),
|
|
1567
|
+
partySize: import_zod11.z.number(),
|
|
1568
|
+
playerPresenceData: import_zod11.z.object({
|
|
1569
|
+
accountLevel: import_zod11.z.number(),
|
|
1570
|
+
competitiveTier: import_zod11.z.number(),
|
|
1571
|
+
leaderboardPosition: import_zod11.z.number(),
|
|
1572
|
+
platformOverride: import_zod11.z.string(),
|
|
1573
|
+
playerCardId: import_zod11.z.string(),
|
|
1574
|
+
playerTitleId: import_zod11.z.string(),
|
|
1575
|
+
tempValueAA: import_zod11.z.number()
|
|
1576
|
+
}),
|
|
1577
|
+
premierPresenceData: import_zod11.z.object({
|
|
1578
|
+
division: import_zod11.z.number(),
|
|
1579
|
+
plating: import_zod11.z.number(),
|
|
1580
|
+
rosterId: import_zod11.z.string(),
|
|
1581
|
+
rosterName: import_zod11.z.string(),
|
|
1582
|
+
rosterTag: import_zod11.z.string(),
|
|
1583
|
+
rosterType: import_zod11.z.string(),
|
|
1584
|
+
score: import_zod11.z.number(),
|
|
1585
|
+
showAura: import_zod11.z.boolean(),
|
|
1586
|
+
showPlating: import_zod11.z.boolean(),
|
|
1587
|
+
showTag: import_zod11.z.boolean()
|
|
1588
|
+
}),
|
|
1589
|
+
provisioningFlow: import_zod11.z.string(),
|
|
1590
|
+
queueId: import_zod11.z.string()
|
|
1591
|
+
});
|
|
1592
|
+
function decodePresence(raw) {
|
|
1593
|
+
if (!raw) return null;
|
|
1594
|
+
try {
|
|
1595
|
+
return valorantPresence.parse(JSON.parse(fromBase64(raw)));
|
|
1596
|
+
} catch {
|
|
1597
|
+
return null;
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
var presenceEndpoint = withResponse(import_valorant_api_types7.endpoints.presenceEndpoint, import_zod11.z.object({
|
|
1601
|
+
presences: import_zod11.z.array(import_zod11.z.object({
|
|
1602
|
+
activePlatform: import_zod11.z.string().nullable(),
|
|
1603
|
+
basic: import_zod11.z.string(),
|
|
1604
|
+
game_name: import_zod11.z.string(),
|
|
1605
|
+
game_tag: import_zod11.z.string(),
|
|
1606
|
+
msg: import_zod11.z.string().nullable(),
|
|
1607
|
+
name: import_zod11.z.string(),
|
|
1608
|
+
packedData: import_zod11.z.string().nullable(),
|
|
1609
|
+
patchline: import_zod11.z.string().nullable(),
|
|
1610
|
+
pid: import_zod11.z.string(),
|
|
1611
|
+
platform: import_zod11.z.string().nullable(),
|
|
1612
|
+
product: import_zod11.z.string(),
|
|
1613
|
+
puuid: import_zod11.z.string(),
|
|
1614
|
+
region: import_zod11.z.string(),
|
|
1615
|
+
resource: import_zod11.z.string(),
|
|
1616
|
+
state: import_zod11.z.string(),
|
|
1617
|
+
summary: import_zod11.z.string(),
|
|
1618
|
+
time: import_zod11.z.number(),
|
|
1619
|
+
private: import_zod11.z.string().nullable().transform(decodePresence)
|
|
1620
|
+
}))
|
|
1621
|
+
}));
|
|
1622
|
+
|
|
1095
1623
|
// src/endpoints/riot/pvp.ts
|
|
1096
|
-
var
|
|
1624
|
+
var import_valorant_api_types8 = require("valorant-api-types");
|
|
1625
|
+
var import_zod12 = require("zod");
|
|
1097
1626
|
var playerLoadoutV3Endpoint = {
|
|
1098
1627
|
name: "Player Loadout V3",
|
|
1099
1628
|
description: "Current loadout. The v2 route used by `pvp.playerLoadout` answers 404 on current clients.",
|
|
@@ -1101,36 +1630,44 @@ var playerLoadoutV3Endpoint = {
|
|
|
1101
1630
|
type: "pd",
|
|
1102
1631
|
suffix: "personalization/v3/players/{puuid}/playerloadout",
|
|
1103
1632
|
riotRequirements: player,
|
|
1104
|
-
responses: { "200":
|
|
1105
|
-
Subject:
|
|
1106
|
-
Version:
|
|
1107
|
-
Guns:
|
|
1108
|
-
ID:
|
|
1109
|
-
SkinID:
|
|
1110
|
-
SkinLevelID:
|
|
1111
|
-
ChromaID:
|
|
1112
|
-
CharmInstanceID:
|
|
1113
|
-
CharmID:
|
|
1114
|
-
CharmLevelID:
|
|
1633
|
+
responses: { "200": import_zod12.z.object({
|
|
1634
|
+
Subject: import_zod12.z.string(),
|
|
1635
|
+
Version: import_zod12.z.number(),
|
|
1636
|
+
Guns: import_zod12.z.array(import_zod12.z.object({
|
|
1637
|
+
ID: import_zod12.z.string(),
|
|
1638
|
+
SkinID: import_zod12.z.string(),
|
|
1639
|
+
SkinLevelID: import_zod12.z.string(),
|
|
1640
|
+
ChromaID: import_zod12.z.string(),
|
|
1641
|
+
CharmInstanceID: import_zod12.z.string().optional(),
|
|
1642
|
+
CharmID: import_zod12.z.string().optional(),
|
|
1643
|
+
CharmLevelID: import_zod12.z.string().optional()
|
|
1115
1644
|
})),
|
|
1116
|
-
ActiveExpressions:
|
|
1117
|
-
TypeID:
|
|
1118
|
-
AssetID:
|
|
1645
|
+
ActiveExpressions: import_zod12.z.array(import_zod12.z.object({
|
|
1646
|
+
TypeID: import_zod12.z.string(),
|
|
1647
|
+
AssetID: import_zod12.z.string()
|
|
1119
1648
|
})),
|
|
1120
|
-
DynamicOptions:
|
|
1121
|
-
Identity:
|
|
1122
|
-
PlayerCardID:
|
|
1123
|
-
PlayerTitleID:
|
|
1124
|
-
AccountLevel:
|
|
1125
|
-
PreferredLevelBorderID:
|
|
1126
|
-
HideAccountLevel:
|
|
1649
|
+
DynamicOptions: import_zod12.z.object({}),
|
|
1650
|
+
Identity: import_zod12.z.object({
|
|
1651
|
+
PlayerCardID: import_zod12.z.string(),
|
|
1652
|
+
PlayerTitleID: import_zod12.z.string(),
|
|
1653
|
+
AccountLevel: import_zod12.z.number(),
|
|
1654
|
+
PreferredLevelBorderID: import_zod12.z.string(),
|
|
1655
|
+
HideAccountLevel: import_zod12.z.boolean()
|
|
1127
1656
|
}),
|
|
1128
|
-
Incognito:
|
|
1657
|
+
Incognito: import_zod12.z.boolean()
|
|
1129
1658
|
}) }
|
|
1130
1659
|
};
|
|
1660
|
+
var configEndpoint = withResponse(
|
|
1661
|
+
{ ...onSharedHost(import_valorant_api_types8.endpoints.configEndpoint), riotRequirements: player },
|
|
1662
|
+
import_zod12.z.object({
|
|
1663
|
+
LastApplication: import_zod12.z.string().datetime({ offset: true }).transform((value) => new Date(value)),
|
|
1664
|
+
/** Game settings by name. Every value is a string, and the set of names changes with each patch. */
|
|
1665
|
+
Collapsed: import_zod12.z.record(import_zod12.z.string(), import_zod12.z.string())
|
|
1666
|
+
})
|
|
1667
|
+
);
|
|
1131
1668
|
|
|
1132
1669
|
// src/endpoints/riot/restrictions.ts
|
|
1133
|
-
var
|
|
1670
|
+
var import_zod13 = require("zod");
|
|
1134
1671
|
var avoidListEndpoint = {
|
|
1135
1672
|
name: "Avoid List",
|
|
1136
1673
|
description: "Players the account avoids in matchmaking.",
|
|
@@ -1138,8 +1675,8 @@ var avoidListEndpoint = {
|
|
|
1138
1675
|
type: "pd",
|
|
1139
1676
|
suffix: "restrictions/v1/avoidList",
|
|
1140
1677
|
riotRequirements: player,
|
|
1141
|
-
responses: { "200":
|
|
1142
|
-
Subject:
|
|
1678
|
+
responses: { "200": import_zod13.z.object({
|
|
1679
|
+
Subject: import_zod13.z.string()
|
|
1143
1680
|
}) }
|
|
1144
1681
|
};
|
|
1145
1682
|
var activeFutureInterventionsEndpoint = {
|
|
@@ -1149,13 +1686,14 @@ var activeFutureInterventionsEndpoint = {
|
|
|
1149
1686
|
type: "pd",
|
|
1150
1687
|
suffix: "restrictions/v1/activeFutureInterventions",
|
|
1151
1688
|
riotRequirements: player,
|
|
1152
|
-
responses: { "200":
|
|
1153
|
-
Subject:
|
|
1689
|
+
responses: { "200": import_zod13.z.object({
|
|
1690
|
+
Subject: import_zod13.z.string()
|
|
1154
1691
|
}) }
|
|
1155
1692
|
};
|
|
1156
1693
|
|
|
1157
1694
|
// src/endpoints/riot/store.ts
|
|
1158
|
-
var
|
|
1695
|
+
var import_valorant_api_types9 = require("valorant-api-types");
|
|
1696
|
+
var import_zod14 = require("zod");
|
|
1159
1697
|
var agentStoreEndpoint = {
|
|
1160
1698
|
name: "Agent Store",
|
|
1161
1699
|
description: "Agents offered in the store.",
|
|
@@ -1163,24 +1701,24 @@ var agentStoreEndpoint = {
|
|
|
1163
1701
|
type: "pd",
|
|
1164
1702
|
suffix: "store/v1/storefronts/agent",
|
|
1165
1703
|
riotRequirements: player,
|
|
1166
|
-
responses: { "200":
|
|
1167
|
-
AgentStore:
|
|
1168
|
-
AgentStoreOffers:
|
|
1169
|
-
AgentID:
|
|
1170
|
-
StoreOffers:
|
|
1171
|
-
OfferID:
|
|
1172
|
-
IsDirectPurchase:
|
|
1173
|
-
StartDate:
|
|
1174
|
-
Cost:
|
|
1175
|
-
Rewards:
|
|
1176
|
-
ItemTypeID:
|
|
1177
|
-
ItemID:
|
|
1178
|
-
Quantity:
|
|
1704
|
+
responses: { "200": import_zod14.z.object({
|
|
1705
|
+
AgentStore: import_zod14.z.object({
|
|
1706
|
+
AgentStoreOffers: import_zod14.z.array(import_zod14.z.object({
|
|
1707
|
+
AgentID: import_zod14.z.string(),
|
|
1708
|
+
StoreOffers: import_zod14.z.array(import_zod14.z.object({
|
|
1709
|
+
OfferID: import_zod14.z.string(),
|
|
1710
|
+
IsDirectPurchase: import_zod14.z.boolean(),
|
|
1711
|
+
StartDate: import_zod14.z.string(),
|
|
1712
|
+
Cost: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.number()),
|
|
1713
|
+
Rewards: import_zod14.z.array(import_zod14.z.object({
|
|
1714
|
+
ItemTypeID: import_zod14.z.string(),
|
|
1715
|
+
ItemID: import_zod14.z.string(),
|
|
1716
|
+
Quantity: import_zod14.z.number()
|
|
1179
1717
|
}))
|
|
1180
1718
|
}))
|
|
1181
1719
|
})),
|
|
1182
|
-
CurrentFeaturedAgent:
|
|
1183
|
-
NextFeaturedAgent:
|
|
1720
|
+
CurrentFeaturedAgent: import_zod14.z.string(),
|
|
1721
|
+
NextFeaturedAgent: import_zod14.z.string()
|
|
1184
1722
|
})
|
|
1185
1723
|
}) }
|
|
1186
1724
|
};
|
|
@@ -1191,20 +1729,27 @@ var allEntitlementsEndpoint = {
|
|
|
1191
1729
|
type: "pd",
|
|
1192
1730
|
suffix: "store/v1/entitlements/{puuid}",
|
|
1193
1731
|
riotRequirements: player,
|
|
1194
|
-
responses: { "200":
|
|
1195
|
-
EntitlementsByTypes:
|
|
1196
|
-
ItemTypeID:
|
|
1197
|
-
Entitlements:
|
|
1198
|
-
TypeID:
|
|
1199
|
-
ItemID:
|
|
1200
|
-
InstanceID:
|
|
1732
|
+
responses: { "200": import_zod14.z.object({
|
|
1733
|
+
EntitlementsByTypes: import_zod14.z.array(import_zod14.z.object({
|
|
1734
|
+
ItemTypeID: import_zod14.z.string(),
|
|
1735
|
+
Entitlements: import_zod14.z.array(import_zod14.z.object({
|
|
1736
|
+
TypeID: import_zod14.z.string(),
|
|
1737
|
+
ItemID: import_zod14.z.string(),
|
|
1738
|
+
InstanceID: import_zod14.z.string().optional()
|
|
1201
1739
|
}))
|
|
1202
1740
|
}))
|
|
1203
1741
|
}) }
|
|
1204
1742
|
};
|
|
1743
|
+
var ownedItemsEndpoint = withResponse(import_valorant_api_types9.endpoints.ownedItemsEndpoint, import_zod14.z.object({
|
|
1744
|
+
ItemTypeID: import_zod14.z.string(),
|
|
1745
|
+
Entitlements: import_zod14.z.array(import_zod14.z.object({
|
|
1746
|
+
TypeID: import_zod14.z.string(),
|
|
1747
|
+
ItemID: import_zod14.z.string()
|
|
1748
|
+
}))
|
|
1749
|
+
}));
|
|
1205
1750
|
|
|
1206
1751
|
// src/endpoints/riot/storefront.ts
|
|
1207
|
-
var
|
|
1752
|
+
var import_zod15 = require("zod");
|
|
1208
1753
|
var storefrontV3Endpoint = {
|
|
1209
1754
|
name: "Storefront V3",
|
|
1210
1755
|
description: "Get the current storefront of the player: featured bundles, the daily skin offers, accessories and night market plugins. Replaces the v2 storefront endpoint, which now answers 404.",
|
|
@@ -1214,266 +1759,266 @@ var storefrontV3Endpoint = {
|
|
|
1214
1759
|
suffix: "store/v3/storefront/{puuid}",
|
|
1215
1760
|
headers: /* @__PURE__ */ new Map([["Content-Type", "application/json"]]),
|
|
1216
1761
|
riotRequirements: player,
|
|
1217
|
-
responses: { "200":
|
|
1218
|
-
FeaturedBundle:
|
|
1219
|
-
Bundle:
|
|
1220
|
-
ID:
|
|
1221
|
-
DataAssetID:
|
|
1222
|
-
CurrencyID:
|
|
1223
|
-
Items:
|
|
1224
|
-
Item:
|
|
1225
|
-
ItemTypeID:
|
|
1226
|
-
ItemID:
|
|
1227
|
-
Amount:
|
|
1762
|
+
responses: { "200": import_zod15.z.object({
|
|
1763
|
+
FeaturedBundle: import_zod15.z.object({
|
|
1764
|
+
Bundle: import_zod15.z.object({
|
|
1765
|
+
ID: import_zod15.z.string(),
|
|
1766
|
+
DataAssetID: import_zod15.z.string(),
|
|
1767
|
+
CurrencyID: import_zod15.z.string(),
|
|
1768
|
+
Items: import_zod15.z.array(import_zod15.z.object({
|
|
1769
|
+
Item: import_zod15.z.object({
|
|
1770
|
+
ItemTypeID: import_zod15.z.string(),
|
|
1771
|
+
ItemID: import_zod15.z.string(),
|
|
1772
|
+
Amount: import_zod15.z.number()
|
|
1228
1773
|
}),
|
|
1229
|
-
BasePrice:
|
|
1230
|
-
CurrencyID:
|
|
1231
|
-
DiscountPercent:
|
|
1232
|
-
DiscountedPrice:
|
|
1233
|
-
IsPromoItem:
|
|
1774
|
+
BasePrice: import_zod15.z.number(),
|
|
1775
|
+
CurrencyID: import_zod15.z.string(),
|
|
1776
|
+
DiscountPercent: import_zod15.z.number(),
|
|
1777
|
+
DiscountedPrice: import_zod15.z.number(),
|
|
1778
|
+
IsPromoItem: import_zod15.z.boolean()
|
|
1234
1779
|
})),
|
|
1235
|
-
ItemOffers:
|
|
1236
|
-
BundleItemOfferID:
|
|
1237
|
-
Offer:
|
|
1238
|
-
OfferID:
|
|
1239
|
-
IsDirectPurchase:
|
|
1240
|
-
StartDate:
|
|
1241
|
-
Cost:
|
|
1242
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1780
|
+
ItemOffers: import_zod15.z.array(import_zod15.z.object({
|
|
1781
|
+
BundleItemOfferID: import_zod15.z.string(),
|
|
1782
|
+
Offer: import_zod15.z.object({
|
|
1783
|
+
OfferID: import_zod15.z.string(),
|
|
1784
|
+
IsDirectPurchase: import_zod15.z.boolean(),
|
|
1785
|
+
StartDate: import_zod15.z.string(),
|
|
1786
|
+
Cost: import_zod15.z.object({
|
|
1787
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1243
1788
|
}),
|
|
1244
|
-
Rewards:
|
|
1245
|
-
ItemTypeID:
|
|
1246
|
-
ItemID:
|
|
1247
|
-
Quantity:
|
|
1789
|
+
Rewards: import_zod15.z.array(import_zod15.z.object({
|
|
1790
|
+
ItemTypeID: import_zod15.z.string(),
|
|
1791
|
+
ItemID: import_zod15.z.string(),
|
|
1792
|
+
Quantity: import_zod15.z.number()
|
|
1248
1793
|
}))
|
|
1249
1794
|
}),
|
|
1250
|
-
DiscountPercent:
|
|
1251
|
-
DiscountedCost:
|
|
1252
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1795
|
+
DiscountPercent: import_zod15.z.number(),
|
|
1796
|
+
DiscountedCost: import_zod15.z.object({
|
|
1797
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1253
1798
|
})
|
|
1254
1799
|
})),
|
|
1255
|
-
TotalBaseCost:
|
|
1256
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1800
|
+
TotalBaseCost: import_zod15.z.object({
|
|
1801
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1257
1802
|
}),
|
|
1258
|
-
TotalDiscountedCost:
|
|
1259
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1803
|
+
TotalDiscountedCost: import_zod15.z.object({
|
|
1804
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1260
1805
|
}),
|
|
1261
|
-
TotalDiscountPercent:
|
|
1262
|
-
DurationRemainingInSeconds:
|
|
1263
|
-
WholesaleOnly:
|
|
1264
|
-
IsGiftable:
|
|
1806
|
+
TotalDiscountPercent: import_zod15.z.number(),
|
|
1807
|
+
DurationRemainingInSeconds: import_zod15.z.number(),
|
|
1808
|
+
WholesaleOnly: import_zod15.z.boolean(),
|
|
1809
|
+
IsGiftable: import_zod15.z.number()
|
|
1265
1810
|
}),
|
|
1266
|
-
Bundles:
|
|
1267
|
-
ID:
|
|
1268
|
-
DataAssetID:
|
|
1269
|
-
CurrencyID:
|
|
1270
|
-
Items:
|
|
1271
|
-
Item:
|
|
1272
|
-
ItemTypeID:
|
|
1273
|
-
ItemID:
|
|
1274
|
-
Amount:
|
|
1811
|
+
Bundles: import_zod15.z.array(import_zod15.z.object({
|
|
1812
|
+
ID: import_zod15.z.string(),
|
|
1813
|
+
DataAssetID: import_zod15.z.string(),
|
|
1814
|
+
CurrencyID: import_zod15.z.string(),
|
|
1815
|
+
Items: import_zod15.z.array(import_zod15.z.object({
|
|
1816
|
+
Item: import_zod15.z.object({
|
|
1817
|
+
ItemTypeID: import_zod15.z.string(),
|
|
1818
|
+
ItemID: import_zod15.z.string(),
|
|
1819
|
+
Amount: import_zod15.z.number()
|
|
1275
1820
|
}),
|
|
1276
|
-
BasePrice:
|
|
1277
|
-
CurrencyID:
|
|
1278
|
-
DiscountPercent:
|
|
1279
|
-
DiscountedPrice:
|
|
1280
|
-
IsPromoItem:
|
|
1821
|
+
BasePrice: import_zod15.z.number(),
|
|
1822
|
+
CurrencyID: import_zod15.z.string(),
|
|
1823
|
+
DiscountPercent: import_zod15.z.number(),
|
|
1824
|
+
DiscountedPrice: import_zod15.z.number(),
|
|
1825
|
+
IsPromoItem: import_zod15.z.boolean()
|
|
1281
1826
|
})),
|
|
1282
|
-
ItemOffers:
|
|
1283
|
-
BundleItemOfferID:
|
|
1284
|
-
Offer:
|
|
1285
|
-
OfferID:
|
|
1286
|
-
IsDirectPurchase:
|
|
1287
|
-
StartDate:
|
|
1288
|
-
Cost:
|
|
1289
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1827
|
+
ItemOffers: import_zod15.z.array(import_zod15.z.object({
|
|
1828
|
+
BundleItemOfferID: import_zod15.z.string(),
|
|
1829
|
+
Offer: import_zod15.z.object({
|
|
1830
|
+
OfferID: import_zod15.z.string(),
|
|
1831
|
+
IsDirectPurchase: import_zod15.z.boolean(),
|
|
1832
|
+
StartDate: import_zod15.z.string(),
|
|
1833
|
+
Cost: import_zod15.z.object({
|
|
1834
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1290
1835
|
}),
|
|
1291
|
-
Rewards:
|
|
1292
|
-
ItemTypeID:
|
|
1293
|
-
ItemID:
|
|
1294
|
-
Quantity:
|
|
1836
|
+
Rewards: import_zod15.z.array(import_zod15.z.object({
|
|
1837
|
+
ItemTypeID: import_zod15.z.string(),
|
|
1838
|
+
ItemID: import_zod15.z.string(),
|
|
1839
|
+
Quantity: import_zod15.z.number()
|
|
1295
1840
|
}))
|
|
1296
1841
|
}),
|
|
1297
|
-
DiscountPercent:
|
|
1298
|
-
DiscountedCost:
|
|
1299
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1842
|
+
DiscountPercent: import_zod15.z.number(),
|
|
1843
|
+
DiscountedCost: import_zod15.z.object({
|
|
1844
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1300
1845
|
})
|
|
1301
1846
|
})),
|
|
1302
|
-
TotalBaseCost:
|
|
1303
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1847
|
+
TotalBaseCost: import_zod15.z.object({
|
|
1848
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1304
1849
|
}),
|
|
1305
|
-
TotalDiscountedCost:
|
|
1306
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1850
|
+
TotalDiscountedCost: import_zod15.z.object({
|
|
1851
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1307
1852
|
}),
|
|
1308
|
-
TotalDiscountPercent:
|
|
1309
|
-
DurationRemainingInSeconds:
|
|
1310
|
-
WholesaleOnly:
|
|
1311
|
-
IsGiftable:
|
|
1853
|
+
TotalDiscountPercent: import_zod15.z.number(),
|
|
1854
|
+
DurationRemainingInSeconds: import_zod15.z.number(),
|
|
1855
|
+
WholesaleOnly: import_zod15.z.boolean(),
|
|
1856
|
+
IsGiftable: import_zod15.z.number()
|
|
1312
1857
|
})),
|
|
1313
|
-
FeaturedTileEntries:
|
|
1314
|
-
Type:
|
|
1315
|
-
Entry:
|
|
1316
|
-
Bundle:
|
|
1317
|
-
ID:
|
|
1318
|
-
DataAssetID:
|
|
1319
|
-
CurrencyID:
|
|
1320
|
-
Items:
|
|
1321
|
-
Item:
|
|
1322
|
-
ItemTypeID:
|
|
1323
|
-
ItemID:
|
|
1324
|
-
Amount:
|
|
1858
|
+
FeaturedTileEntries: import_zod15.z.array(import_zod15.z.object({
|
|
1859
|
+
Type: import_zod15.z.number(),
|
|
1860
|
+
Entry: import_zod15.z.object({
|
|
1861
|
+
Bundle: import_zod15.z.object({
|
|
1862
|
+
ID: import_zod15.z.string(),
|
|
1863
|
+
DataAssetID: import_zod15.z.string(),
|
|
1864
|
+
CurrencyID: import_zod15.z.string(),
|
|
1865
|
+
Items: import_zod15.z.array(import_zod15.z.object({
|
|
1866
|
+
Item: import_zod15.z.object({
|
|
1867
|
+
ItemTypeID: import_zod15.z.string(),
|
|
1868
|
+
ItemID: import_zod15.z.string(),
|
|
1869
|
+
Amount: import_zod15.z.number()
|
|
1325
1870
|
}),
|
|
1326
|
-
BasePrice:
|
|
1327
|
-
CurrencyID:
|
|
1328
|
-
DiscountPercent:
|
|
1329
|
-
DiscountedPrice:
|
|
1330
|
-
IsPromoItem:
|
|
1871
|
+
BasePrice: import_zod15.z.number(),
|
|
1872
|
+
CurrencyID: import_zod15.z.string(),
|
|
1873
|
+
DiscountPercent: import_zod15.z.number(),
|
|
1874
|
+
DiscountedPrice: import_zod15.z.number(),
|
|
1875
|
+
IsPromoItem: import_zod15.z.boolean()
|
|
1331
1876
|
})),
|
|
1332
|
-
ItemOffers:
|
|
1333
|
-
BundleItemOfferID:
|
|
1334
|
-
Offer:
|
|
1335
|
-
OfferID:
|
|
1336
|
-
IsDirectPurchase:
|
|
1337
|
-
StartDate:
|
|
1338
|
-
Cost:
|
|
1339
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1877
|
+
ItemOffers: import_zod15.z.array(import_zod15.z.object({
|
|
1878
|
+
BundleItemOfferID: import_zod15.z.string(),
|
|
1879
|
+
Offer: import_zod15.z.object({
|
|
1880
|
+
OfferID: import_zod15.z.string(),
|
|
1881
|
+
IsDirectPurchase: import_zod15.z.boolean(),
|
|
1882
|
+
StartDate: import_zod15.z.string(),
|
|
1883
|
+
Cost: import_zod15.z.object({
|
|
1884
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1340
1885
|
}),
|
|
1341
|
-
Rewards:
|
|
1342
|
-
ItemTypeID:
|
|
1343
|
-
ItemID:
|
|
1344
|
-
Quantity:
|
|
1886
|
+
Rewards: import_zod15.z.array(import_zod15.z.object({
|
|
1887
|
+
ItemTypeID: import_zod15.z.string(),
|
|
1888
|
+
ItemID: import_zod15.z.string(),
|
|
1889
|
+
Quantity: import_zod15.z.number()
|
|
1345
1890
|
}))
|
|
1346
1891
|
}),
|
|
1347
|
-
DiscountPercent:
|
|
1348
|
-
DiscountedCost:
|
|
1349
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1892
|
+
DiscountPercent: import_zod15.z.number(),
|
|
1893
|
+
DiscountedCost: import_zod15.z.object({
|
|
1894
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1350
1895
|
})
|
|
1351
1896
|
})),
|
|
1352
|
-
TotalBaseCost:
|
|
1353
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1897
|
+
TotalBaseCost: import_zod15.z.object({
|
|
1898
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1354
1899
|
}),
|
|
1355
|
-
TotalDiscountedCost:
|
|
1356
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1900
|
+
TotalDiscountedCost: import_zod15.z.object({
|
|
1901
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1357
1902
|
}),
|
|
1358
|
-
TotalDiscountPercent:
|
|
1359
|
-
DurationRemainingInSeconds:
|
|
1360
|
-
WholesaleOnly:
|
|
1361
|
-
IsGiftable:
|
|
1903
|
+
TotalDiscountPercent: import_zod15.z.number(),
|
|
1904
|
+
DurationRemainingInSeconds: import_zod15.z.number(),
|
|
1905
|
+
WholesaleOnly: import_zod15.z.boolean(),
|
|
1906
|
+
IsGiftable: import_zod15.z.number()
|
|
1362
1907
|
})
|
|
1363
1908
|
})
|
|
1364
1909
|
})),
|
|
1365
|
-
BundleRemainingDurationInSeconds:
|
|
1910
|
+
BundleRemainingDurationInSeconds: import_zod15.z.number()
|
|
1366
1911
|
}),
|
|
1367
|
-
SkinsPanelLayout:
|
|
1368
|
-
SingleItemOffers:
|
|
1369
|
-
SingleItemStoreOffers:
|
|
1370
|
-
OfferID:
|
|
1371
|
-
IsDirectPurchase:
|
|
1372
|
-
StartDate:
|
|
1373
|
-
Cost:
|
|
1374
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1912
|
+
SkinsPanelLayout: import_zod15.z.object({
|
|
1913
|
+
SingleItemOffers: import_zod15.z.array(import_zod15.z.string()),
|
|
1914
|
+
SingleItemStoreOffers: import_zod15.z.array(import_zod15.z.object({
|
|
1915
|
+
OfferID: import_zod15.z.string(),
|
|
1916
|
+
IsDirectPurchase: import_zod15.z.boolean(),
|
|
1917
|
+
StartDate: import_zod15.z.string(),
|
|
1918
|
+
Cost: import_zod15.z.object({
|
|
1919
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1375
1920
|
}),
|
|
1376
|
-
Rewards:
|
|
1377
|
-
ItemTypeID:
|
|
1378
|
-
ItemID:
|
|
1379
|
-
Quantity:
|
|
1921
|
+
Rewards: import_zod15.z.array(import_zod15.z.object({
|
|
1922
|
+
ItemTypeID: import_zod15.z.string(),
|
|
1923
|
+
ItemID: import_zod15.z.string(),
|
|
1924
|
+
Quantity: import_zod15.z.number()
|
|
1380
1925
|
}))
|
|
1381
1926
|
})),
|
|
1382
|
-
SingleItemOffersRemainingDurationInSeconds:
|
|
1927
|
+
SingleItemOffersRemainingDurationInSeconds: import_zod15.z.number()
|
|
1383
1928
|
}),
|
|
1384
|
-
UpgradeCurrencyStore:
|
|
1385
|
-
UpgradeCurrencyOffers:
|
|
1386
|
-
OfferID:
|
|
1387
|
-
StorefrontItemID:
|
|
1388
|
-
Offer:
|
|
1389
|
-
OfferID:
|
|
1390
|
-
IsDirectPurchase:
|
|
1391
|
-
StartDate:
|
|
1392
|
-
Cost:
|
|
1393
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1929
|
+
UpgradeCurrencyStore: import_zod15.z.object({
|
|
1930
|
+
UpgradeCurrencyOffers: import_zod15.z.array(import_zod15.z.object({
|
|
1931
|
+
OfferID: import_zod15.z.string(),
|
|
1932
|
+
StorefrontItemID: import_zod15.z.string(),
|
|
1933
|
+
Offer: import_zod15.z.object({
|
|
1934
|
+
OfferID: import_zod15.z.string(),
|
|
1935
|
+
IsDirectPurchase: import_zod15.z.boolean(),
|
|
1936
|
+
StartDate: import_zod15.z.string(),
|
|
1937
|
+
Cost: import_zod15.z.object({
|
|
1938
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1394
1939
|
}),
|
|
1395
|
-
Rewards:
|
|
1396
|
-
ItemTypeID:
|
|
1397
|
-
ItemID:
|
|
1398
|
-
Quantity:
|
|
1940
|
+
Rewards: import_zod15.z.array(import_zod15.z.object({
|
|
1941
|
+
ItemTypeID: import_zod15.z.string(),
|
|
1942
|
+
ItemID: import_zod15.z.string(),
|
|
1943
|
+
Quantity: import_zod15.z.number()
|
|
1399
1944
|
}))
|
|
1400
1945
|
}),
|
|
1401
|
-
DiscountedPercent:
|
|
1946
|
+
DiscountedPercent: import_zod15.z.number()
|
|
1402
1947
|
}))
|
|
1403
1948
|
}),
|
|
1404
|
-
AccessoryStore:
|
|
1405
|
-
AccessoryStoreOffers:
|
|
1406
|
-
Offer:
|
|
1407
|
-
OfferID:
|
|
1408
|
-
IsDirectPurchase:
|
|
1409
|
-
StartDate:
|
|
1410
|
-
Cost:
|
|
1411
|
-
"85ca954a-41f2-ce94-9b45-8ca3dd39a00d":
|
|
1949
|
+
AccessoryStore: import_zod15.z.object({
|
|
1950
|
+
AccessoryStoreOffers: import_zod15.z.array(import_zod15.z.object({
|
|
1951
|
+
Offer: import_zod15.z.object({
|
|
1952
|
+
OfferID: import_zod15.z.string(),
|
|
1953
|
+
IsDirectPurchase: import_zod15.z.boolean(),
|
|
1954
|
+
StartDate: import_zod15.z.string(),
|
|
1955
|
+
Cost: import_zod15.z.object({
|
|
1956
|
+
"85ca954a-41f2-ce94-9b45-8ca3dd39a00d": import_zod15.z.number()
|
|
1412
1957
|
}),
|
|
1413
|
-
Rewards:
|
|
1414
|
-
ItemTypeID:
|
|
1415
|
-
ItemID:
|
|
1416
|
-
Quantity:
|
|
1958
|
+
Rewards: import_zod15.z.array(import_zod15.z.object({
|
|
1959
|
+
ItemTypeID: import_zod15.z.string(),
|
|
1960
|
+
ItemID: import_zod15.z.string(),
|
|
1961
|
+
Quantity: import_zod15.z.number()
|
|
1417
1962
|
}))
|
|
1418
1963
|
}),
|
|
1419
|
-
ContractID:
|
|
1964
|
+
ContractID: import_zod15.z.string()
|
|
1420
1965
|
})),
|
|
1421
|
-
AccessoryStoreRemainingDurationInSeconds:
|
|
1422
|
-
StorefrontID:
|
|
1966
|
+
AccessoryStoreRemainingDurationInSeconds: import_zod15.z.number(),
|
|
1967
|
+
StorefrontID: import_zod15.z.string()
|
|
1423
1968
|
}),
|
|
1424
|
-
PluginStores:
|
|
1425
|
-
PluginID:
|
|
1426
|
-
PluginOffers:
|
|
1427
|
-
StoreOffers:
|
|
1428
|
-
PurchaseInformation:
|
|
1429
|
-
DataAssetID:
|
|
1430
|
-
OfferID:
|
|
1431
|
-
OfferType:
|
|
1432
|
-
StartDate:
|
|
1433
|
-
PrimaryCurrencyID:
|
|
1434
|
-
Cost:
|
|
1435
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1969
|
+
PluginStores: import_zod15.z.array(import_zod15.z.object({
|
|
1970
|
+
PluginID: import_zod15.z.string(),
|
|
1971
|
+
PluginOffers: import_zod15.z.object({
|
|
1972
|
+
StoreOffers: import_zod15.z.array(import_zod15.z.object({
|
|
1973
|
+
PurchaseInformation: import_zod15.z.object({
|
|
1974
|
+
DataAssetID: import_zod15.z.string(),
|
|
1975
|
+
OfferID: import_zod15.z.string(),
|
|
1976
|
+
OfferType: import_zod15.z.number(),
|
|
1977
|
+
StartDate: import_zod15.z.string(),
|
|
1978
|
+
PrimaryCurrencyID: import_zod15.z.string(),
|
|
1979
|
+
Cost: import_zod15.z.object({
|
|
1980
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1436
1981
|
}),
|
|
1437
|
-
DiscountedCost:
|
|
1438
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1982
|
+
DiscountedCost: import_zod15.z.object({
|
|
1983
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1439
1984
|
}),
|
|
1440
|
-
DiscountedPercentage:
|
|
1441
|
-
WholesaleOnly:
|
|
1442
|
-
IsGiftable:
|
|
1985
|
+
DiscountedPercentage: import_zod15.z.number(),
|
|
1986
|
+
WholesaleOnly: import_zod15.z.boolean(),
|
|
1987
|
+
IsGiftable: import_zod15.z.number()
|
|
1443
1988
|
}),
|
|
1444
|
-
SubOffers:
|
|
1445
|
-
PurchaseInformation:
|
|
1446
|
-
DataAssetID:
|
|
1447
|
-
OfferID:
|
|
1448
|
-
OfferType:
|
|
1449
|
-
StartDate:
|
|
1450
|
-
PrimaryCurrencyID:
|
|
1451
|
-
Cost:
|
|
1452
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1989
|
+
SubOffers: import_zod15.z.array(import_zod15.z.object({
|
|
1990
|
+
PurchaseInformation: import_zod15.z.object({
|
|
1991
|
+
DataAssetID: import_zod15.z.string(),
|
|
1992
|
+
OfferID: import_zod15.z.string(),
|
|
1993
|
+
OfferType: import_zod15.z.number(),
|
|
1994
|
+
StartDate: import_zod15.z.string(),
|
|
1995
|
+
PrimaryCurrencyID: import_zod15.z.string(),
|
|
1996
|
+
Cost: import_zod15.z.object({
|
|
1997
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1453
1998
|
}),
|
|
1454
|
-
DiscountedCost:
|
|
1455
|
-
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741":
|
|
1999
|
+
DiscountedCost: import_zod15.z.object({
|
|
2000
|
+
"85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
|
|
1456
2001
|
}),
|
|
1457
|
-
DiscountedPercentage:
|
|
1458
|
-
Rewards:
|
|
1459
|
-
ItemTypeID:
|
|
1460
|
-
ItemID:
|
|
1461
|
-
Quantity:
|
|
2002
|
+
DiscountedPercentage: import_zod15.z.number(),
|
|
2003
|
+
Rewards: import_zod15.z.array(import_zod15.z.object({
|
|
2004
|
+
ItemTypeID: import_zod15.z.string(),
|
|
2005
|
+
ItemID: import_zod15.z.string(),
|
|
2006
|
+
Quantity: import_zod15.z.number()
|
|
1462
2007
|
})),
|
|
1463
|
-
WholesaleOnly:
|
|
1464
|
-
IsGiftable:
|
|
2008
|
+
WholesaleOnly: import_zod15.z.boolean(),
|
|
2009
|
+
IsGiftable: import_zod15.z.number()
|
|
1465
2010
|
})
|
|
1466
2011
|
}))
|
|
1467
2012
|
})),
|
|
1468
|
-
RemainingDurationInSeconds:
|
|
2013
|
+
RemainingDurationInSeconds: import_zod15.z.number()
|
|
1469
2014
|
}),
|
|
1470
|
-
StartDate:
|
|
2015
|
+
StartDate: import_zod15.z.string()
|
|
1471
2016
|
}))
|
|
1472
2017
|
}) }
|
|
1473
2018
|
};
|
|
1474
2019
|
|
|
1475
2020
|
// src/endpoints/riot/voice.ts
|
|
1476
|
-
var
|
|
2021
|
+
var import_zod16 = require("zod");
|
|
1477
2022
|
var voiceAudioPropertiesEndpoint = {
|
|
1478
2023
|
name: "Audio Properties",
|
|
1479
2024
|
description: "Get audio properties such as if the microphone is in use",
|
|
@@ -1481,17 +2026,17 @@ var voiceAudioPropertiesEndpoint = {
|
|
|
1481
2026
|
type: "local",
|
|
1482
2027
|
suffix: "voice-chat/v1/audio-properties",
|
|
1483
2028
|
riotRequirements: { localAuth: true },
|
|
1484
|
-
responses: { "200":
|
|
1485
|
-
fastEnergyMeter:
|
|
1486
|
-
isLoopbackEnabled:
|
|
1487
|
-
isMicActive:
|
|
1488
|
-
isSpeakerActive:
|
|
1489
|
-
micEnergy:
|
|
1490
|
-
micVolume:
|
|
1491
|
-
noiseFloorMeter:
|
|
1492
|
-
speakerEnergy:
|
|
1493
|
-
speakerVolume:
|
|
1494
|
-
speechThresholdMeter:
|
|
2029
|
+
responses: { "200": import_zod16.z.object({
|
|
2030
|
+
fastEnergyMeter: import_zod16.z.number(),
|
|
2031
|
+
isLoopbackEnabled: import_zod16.z.boolean(),
|
|
2032
|
+
isMicActive: import_zod16.z.boolean(),
|
|
2033
|
+
isSpeakerActive: import_zod16.z.boolean(),
|
|
2034
|
+
micEnergy: import_zod16.z.number(),
|
|
2035
|
+
micVolume: import_zod16.z.number(),
|
|
2036
|
+
noiseFloorMeter: import_zod16.z.number(),
|
|
2037
|
+
speakerEnergy: import_zod16.z.number(),
|
|
2038
|
+
speakerVolume: import_zod16.z.number(),
|
|
2039
|
+
speechThresholdMeter: import_zod16.z.number()
|
|
1495
2040
|
}) }
|
|
1496
2041
|
};
|
|
1497
2042
|
var voiceCaptureDevicesEndpoint = {
|
|
@@ -1501,12 +2046,12 @@ var voiceCaptureDevicesEndpoint = {
|
|
|
1501
2046
|
type: "local",
|
|
1502
2047
|
suffix: "voice-chat/v2/devices/capture",
|
|
1503
2048
|
riotRequirements: { localAuth: true },
|
|
1504
|
-
responses: { "200":
|
|
1505
|
-
handle:
|
|
1506
|
-
is_current_device:
|
|
1507
|
-
is_default:
|
|
1508
|
-
is_effective_device:
|
|
1509
|
-
name:
|
|
2049
|
+
responses: { "200": import_zod16.z.array(import_zod16.z.object({
|
|
2050
|
+
handle: import_zod16.z.string(),
|
|
2051
|
+
is_current_device: import_zod16.z.boolean(),
|
|
2052
|
+
is_default: import_zod16.z.boolean(),
|
|
2053
|
+
is_effective_device: import_zod16.z.boolean(),
|
|
2054
|
+
name: import_zod16.z.string()
|
|
1510
2055
|
})) }
|
|
1511
2056
|
};
|
|
1512
2057
|
var voiceRenderDevicesEndpoint = {
|
|
@@ -1516,116 +2061,113 @@ var voiceRenderDevicesEndpoint = {
|
|
|
1516
2061
|
type: "local",
|
|
1517
2062
|
suffix: "voice-chat/v2/devices/render",
|
|
1518
2063
|
riotRequirements: { localAuth: true },
|
|
1519
|
-
responses: { "200":
|
|
1520
|
-
handle:
|
|
1521
|
-
is_current_device:
|
|
1522
|
-
is_default:
|
|
1523
|
-
is_effective_device:
|
|
1524
|
-
name:
|
|
2064
|
+
responses: { "200": import_zod16.z.array(import_zod16.z.object({
|
|
2065
|
+
handle: import_zod16.z.string(),
|
|
2066
|
+
is_current_device: import_zod16.z.boolean(),
|
|
2067
|
+
is_default: import_zod16.z.boolean(),
|
|
2068
|
+
is_effective_device: import_zod16.z.boolean(),
|
|
2069
|
+
name: import_zod16.z.string()
|
|
1525
2070
|
})) }
|
|
1526
2071
|
};
|
|
1527
2072
|
|
|
1528
2073
|
// src/api/groups/pvp.ts
|
|
1529
2074
|
var pvp = {
|
|
1530
|
-
content:
|
|
1531
|
-
accountXp:
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
nameService: import_valorant_api_types.endpoints.nameServiceEndpoint,
|
|
2075
|
+
content: import_valorant_api_types10.endpoints.fetchContentEndpoint,
|
|
2076
|
+
accountXp: import_valorant_api_types10.endpoints.accountXPEndpoint,
|
|
2077
|
+
setPlayerLoadout: import_valorant_api_types10.endpoints.setPlayerLoadoutEndpoint,
|
|
2078
|
+
playerMmr: import_valorant_api_types10.endpoints.playerMMREndpoint,
|
|
2079
|
+
matchHistory: import_valorant_api_types10.endpoints.matchHistoryEndpoint,
|
|
2080
|
+
matchDetails: import_valorant_api_types10.endpoints.matchDetailsEndpoint,
|
|
2081
|
+
competitiveUpdates: import_valorant_api_types10.endpoints.competitiveUpdatesEndpoint,
|
|
2082
|
+
leaderboard: import_valorant_api_types10.endpoints.leaderboardEndpoint,
|
|
2083
|
+
penalties: import_valorant_api_types10.endpoints.penaltiesEndpoint,
|
|
2084
|
+
config: configEndpoint,
|
|
2085
|
+
nameService: import_valorant_api_types10.endpoints.nameServiceEndpoint,
|
|
1542
2086
|
playerLoadoutV3: playerLoadoutV3Endpoint
|
|
1543
2087
|
};
|
|
1544
2088
|
|
|
1545
2089
|
// src/api/groups/party.ts
|
|
1546
|
-
var
|
|
2090
|
+
var import_valorant_api_types11 = require("valorant-api-types");
|
|
1547
2091
|
var party = {
|
|
1548
|
-
get:
|
|
1549
|
-
player:
|
|
1550
|
-
removePlayer:
|
|
1551
|
-
setMemberReady:
|
|
1552
|
-
refreshCompetitiveTier:
|
|
1553
|
-
refreshPlayerIdentity:
|
|
1554
|
-
refreshPings:
|
|
1555
|
-
changeQueue:
|
|
1556
|
-
startCustomGame:
|
|
1557
|
-
enterMatchmakingQueue:
|
|
1558
|
-
leaveMatchmakingQueue:
|
|
1559
|
-
setAccessibility:
|
|
1560
|
-
setCustomGameSettings:
|
|
1561
|
-
invite:
|
|
1562
|
-
requestToJoin:
|
|
1563
|
-
declineRequest:
|
|
1564
|
-
customGameConfigs:
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
2092
|
+
get: partyEndpoint,
|
|
2093
|
+
player: import_valorant_api_types11.endpoints.partyPlayerEndpoint,
|
|
2094
|
+
removePlayer: import_valorant_api_types11.endpoints.partyRemovePlayerEndpoint,
|
|
2095
|
+
setMemberReady: partySetMemberReadyEndpoint,
|
|
2096
|
+
refreshCompetitiveTier: refreshCompetitiveTierEndpoint,
|
|
2097
|
+
refreshPlayerIdentity: refreshPlayerIdentityEndpoint,
|
|
2098
|
+
refreshPings: refreshPingsEndpoint,
|
|
2099
|
+
changeQueue: changeQueueEndpoint,
|
|
2100
|
+
startCustomGame: startCustomGameEndpoint,
|
|
2101
|
+
enterMatchmakingQueue: enterMatchmakingQueueEndpoint,
|
|
2102
|
+
leaveMatchmakingQueue: leaveMatchmakingQueueEndpoint,
|
|
2103
|
+
setAccessibility: setPartyAccessibilityEndpoint,
|
|
2104
|
+
setCustomGameSettings: setCustomGameSettingsEndpoint,
|
|
2105
|
+
invite: partyInviteEndpoint,
|
|
2106
|
+
requestToJoin: import_valorant_api_types11.endpoints.partyRequestEndpoint,
|
|
2107
|
+
declineRequest: partyDeclineEndpoint,
|
|
2108
|
+
customGameConfigs: import_valorant_api_types11.endpoints.customGameConfigsEndpoint,
|
|
2109
|
+
disableCode: partyDisableCodeEndpoint,
|
|
2110
|
+
generateCode: partyGenerateCodeEndpoint,
|
|
2111
|
+
joinByCode: import_valorant_api_types11.endpoints.partyJoinByCodeEndpoint,
|
|
2112
|
+
setCustomGameTeam: setCustomGameTeamEndpoint,
|
|
2113
|
+
getCustomGame: customGamePartyEndpoint
|
|
1570
2114
|
};
|
|
1571
2115
|
|
|
1572
2116
|
// src/api/groups/store.ts
|
|
1573
|
-
var
|
|
2117
|
+
var import_valorant_api_types12 = require("valorant-api-types");
|
|
1574
2118
|
var store = {
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
wallet: import_valorant_api_types3.endpoints.walletEndpoint,
|
|
1578
|
-
ownedItems: import_valorant_api_types3.endpoints.ownedItemsEndpoint,
|
|
2119
|
+
wallet: import_valorant_api_types12.endpoints.walletEndpoint,
|
|
2120
|
+
ownedItems: ownedItemsEndpoint,
|
|
1579
2121
|
storefrontV3: storefrontV3Endpoint,
|
|
1580
2122
|
agentStore: agentStoreEndpoint,
|
|
1581
2123
|
allEntitlements: allEntitlementsEndpoint
|
|
1582
2124
|
};
|
|
1583
2125
|
|
|
1584
2126
|
// src/api/groups/pregame.ts
|
|
1585
|
-
var
|
|
2127
|
+
var import_valorant_api_types13 = require("valorant-api-types");
|
|
1586
2128
|
var pregame = {
|
|
1587
|
-
player:
|
|
1588
|
-
match:
|
|
1589
|
-
loadouts:
|
|
1590
|
-
selectCharacter:
|
|
1591
|
-
lockCharacter:
|
|
1592
|
-
quit:
|
|
2129
|
+
player: import_valorant_api_types13.endpoints.pregamePlayerEndpoint,
|
|
2130
|
+
match: pregameMatchEndpoint,
|
|
2131
|
+
loadouts: pregameLoadoutsEndpoint,
|
|
2132
|
+
selectCharacter: selectCharacterEndpoint,
|
|
2133
|
+
lockCharacter: lockCharacterEndpoint,
|
|
2134
|
+
quit: import_valorant_api_types13.endpoints.pregameQuitEndpoint
|
|
1593
2135
|
};
|
|
1594
2136
|
|
|
1595
2137
|
// src/api/groups/currentGame.ts
|
|
1596
|
-
var
|
|
2138
|
+
var import_valorant_api_types14 = require("valorant-api-types");
|
|
1597
2139
|
var currentGame = {
|
|
1598
|
-
player:
|
|
1599
|
-
match:
|
|
1600
|
-
loadouts:
|
|
1601
|
-
quit:
|
|
2140
|
+
player: import_valorant_api_types14.endpoints.currentGamePlayerEndpoint,
|
|
2141
|
+
match: import_valorant_api_types14.endpoints.currentGameMatchEndpoint,
|
|
2142
|
+
loadouts: currentGameLoadoutsEndpoint,
|
|
2143
|
+
quit: import_valorant_api_types14.endpoints.currentGameQuitEndpoint
|
|
1602
2144
|
};
|
|
1603
2145
|
|
|
1604
2146
|
// src/api/groups/contracts.ts
|
|
1605
|
-
var
|
|
2147
|
+
var import_valorant_api_types15 = require("valorant-api-types");
|
|
1606
2148
|
var contracts = {
|
|
1607
|
-
itemUpgrades:
|
|
1608
|
-
list:
|
|
1609
|
-
activate:
|
|
2149
|
+
itemUpgrades: import_valorant_api_types15.endpoints.itemUpgradesEndpoint,
|
|
2150
|
+
list: contractsEndpoint,
|
|
2151
|
+
activate: import_valorant_api_types15.endpoints.activateContractEndpoint,
|
|
1610
2152
|
activeRecruitmentEvent: activeRecruitmentEventEndpoint
|
|
1611
2153
|
};
|
|
1612
2154
|
|
|
1613
2155
|
// src/api/groups/local.ts
|
|
1614
|
-
var
|
|
2156
|
+
var import_valorant_api_types16 = require("valorant-api-types");
|
|
1615
2157
|
var local = {
|
|
1616
|
-
help:
|
|
1617
|
-
sessions:
|
|
1618
|
-
rsoUserInfo:
|
|
1619
|
-
clientRegion:
|
|
1620
|
-
accountAlias:
|
|
1621
|
-
entitlementsToken:
|
|
1622
|
-
chatSession:
|
|
1623
|
-
friends:
|
|
1624
|
-
sendFriendRequest:
|
|
1625
|
-
removeFriendRequest:
|
|
1626
|
-
presence:
|
|
1627
|
-
friendRequests:
|
|
1628
|
-
swaggerDocs:
|
|
2158
|
+
help: import_valorant_api_types16.endpoints.localHelpEndpoint,
|
|
2159
|
+
sessions: import_valorant_api_types16.endpoints.sessionsEndpoint,
|
|
2160
|
+
rsoUserInfo: import_valorant_api_types16.endpoints.rsoUserInfoEndpoint,
|
|
2161
|
+
clientRegion: import_valorant_api_types16.endpoints.clientRegionEndpoint,
|
|
2162
|
+
accountAlias: import_valorant_api_types16.endpoints.accountAliasEndpoint,
|
|
2163
|
+
entitlementsToken: import_valorant_api_types16.endpoints.entitlementsTokenEndpoint,
|
|
2164
|
+
chatSession: import_valorant_api_types16.endpoints.chatSessionEndpoint,
|
|
2165
|
+
friends: import_valorant_api_types16.endpoints.friendsEndpoint,
|
|
2166
|
+
sendFriendRequest: import_valorant_api_types16.endpoints.sendFriendRequestEndpoint,
|
|
2167
|
+
removeFriendRequest: import_valorant_api_types16.endpoints.removeFriendRequestEndpoint,
|
|
2168
|
+
presence: presenceEndpoint,
|
|
2169
|
+
friendRequests: import_valorant_api_types16.endpoints.friendRequestsEndpoint,
|
|
2170
|
+
swaggerDocs: import_valorant_api_types16.endpoints.localSwaggerDocsEndpoint,
|
|
1629
2171
|
eula: localEulaEndpoint,
|
|
1630
2172
|
privacyPolicy: localPrivacyPolicyEndpoint,
|
|
1631
2173
|
availableLocales: localAvailableLocalesEndpoint,
|
|
@@ -1639,15 +2181,15 @@ var local = {
|
|
|
1639
2181
|
};
|
|
1640
2182
|
|
|
1641
2183
|
// src/api/groups/chat.ts
|
|
1642
|
-
var
|
|
2184
|
+
var import_valorant_api_types17 = require("valorant-api-types");
|
|
1643
2185
|
var chat = {
|
|
1644
|
-
partyInfo:
|
|
1645
|
-
pregameInfo:
|
|
1646
|
-
currentGameInfo:
|
|
1647
|
-
allInfo:
|
|
1648
|
-
participants:
|
|
1649
|
-
send:
|
|
1650
|
-
history:
|
|
2186
|
+
partyInfo: import_valorant_api_types17.endpoints.partyChatInfoEndpoint,
|
|
2187
|
+
pregameInfo: import_valorant_api_types17.endpoints.pregameChatInfoEndpoint,
|
|
2188
|
+
currentGameInfo: import_valorant_api_types17.endpoints.currentGameChatInfoEndpoint,
|
|
2189
|
+
allInfo: import_valorant_api_types17.endpoints.allChatInfoEndpoint,
|
|
2190
|
+
participants: chatParticipantsEndpoint,
|
|
2191
|
+
send: import_valorant_api_types17.endpoints.sendChatEndpoint,
|
|
2192
|
+
history: import_valorant_api_types17.endpoints.chatHistoryEndpoint,
|
|
1651
2193
|
settings: chatSettingsEndpoint,
|
|
1652
2194
|
tournamentInfo: chatTournamentInfoEndpoint
|
|
1653
2195
|
};
|
|
@@ -1695,24 +2237,24 @@ var account = {
|
|
|
1695
2237
|
};
|
|
1696
2238
|
|
|
1697
2239
|
// src/api/groups/auth.ts
|
|
1698
|
-
var
|
|
2240
|
+
var import_valorant_api_types18 = require("valorant-api-types");
|
|
1699
2241
|
var auth = {
|
|
1700
|
-
cookies:
|
|
1701
|
-
request:
|
|
1702
|
-
multiFactor:
|
|
1703
|
-
cookieReauth:
|
|
1704
|
-
entitlement:
|
|
1705
|
-
playerInfo:
|
|
1706
|
-
riotGeo:
|
|
1707
|
-
pasToken:
|
|
1708
|
-
riotClientConfig:
|
|
2242
|
+
cookies: import_valorant_api_types18.endpoints.authCookiesEndpoint,
|
|
2243
|
+
request: import_valorant_api_types18.endpoints.authRequestEndpoint,
|
|
2244
|
+
multiFactor: import_valorant_api_types18.endpoints.multiFactorAuthenticationEndpoint,
|
|
2245
|
+
cookieReauth: import_valorant_api_types18.endpoints.cookieReauthEndpoint,
|
|
2246
|
+
entitlement: import_valorant_api_types18.endpoints.entitlementEndpoint,
|
|
2247
|
+
playerInfo: import_valorant_api_types18.endpoints.playerInfoEndpoint,
|
|
2248
|
+
riotGeo: import_valorant_api_types18.endpoints.riotGeoEndpoint,
|
|
2249
|
+
pasToken: import_valorant_api_types18.endpoints.pasTokenEndpoint,
|
|
2250
|
+
riotClientConfig: import_valorant_api_types18.endpoints.riotClientConfigEndpoint
|
|
1709
2251
|
};
|
|
1710
2252
|
|
|
1711
2253
|
// src/endpoints/catalog/index.ts
|
|
1712
|
-
var
|
|
2254
|
+
var import_zod19 = require("zod");
|
|
1713
2255
|
|
|
1714
2256
|
// src/endpoints/catalog/factory.ts
|
|
1715
|
-
var
|
|
2257
|
+
var import_zod17 = require("zod");
|
|
1716
2258
|
|
|
1717
2259
|
// src/envelope.ts
|
|
1718
2260
|
var enveloped = /* @__PURE__ */ new WeakSet();
|
|
@@ -1731,7 +2273,7 @@ function unwrapEnvelope(endpoint2, body) {
|
|
|
1731
2273
|
var BASE = "https://valorant-api.com/v1/";
|
|
1732
2274
|
function query(queryParams = []) {
|
|
1733
2275
|
return new Map([
|
|
1734
|
-
["language",
|
|
2276
|
+
["language", import_zod17.z.string().optional().describe("Language code such as `fr-FR`. Defaults to `en-US`.")],
|
|
1735
2277
|
...queryParams
|
|
1736
2278
|
]);
|
|
1737
2279
|
}
|
|
@@ -1748,16 +2290,16 @@ function endpoint(name, description, path, schema, queryParams = []) {
|
|
|
1748
2290
|
}
|
|
1749
2291
|
function collection(title, singular, path, schema, queryParams = []) {
|
|
1750
2292
|
return {
|
|
1751
|
-
list: endpoint(title, `List of ${title.toLowerCase()}`, path,
|
|
2293
|
+
list: endpoint(title, `List of ${title.toLowerCase()}`, path, import_zod17.z.array(schema), queryParams),
|
|
1752
2294
|
one: endpoint(singular, `One ${singular.toLowerCase()} by UUID`, `${path}/{uuid}`, schema)
|
|
1753
2295
|
};
|
|
1754
2296
|
}
|
|
1755
2297
|
|
|
1756
2298
|
// src/endpoints/catalog/schemas.ts
|
|
1757
|
-
var
|
|
1758
|
-
var text =
|
|
1759
|
-
var asset =
|
|
1760
|
-
uuid:
|
|
2299
|
+
var import_zod18 = require("zod");
|
|
2300
|
+
var text = import_zod18.z.string().nullish();
|
|
2301
|
+
var asset = import_zod18.z.object({
|
|
2302
|
+
uuid: import_zod18.z.string(),
|
|
1761
2303
|
displayName: text,
|
|
1762
2304
|
displayIcon: text,
|
|
1763
2305
|
assetPath: text
|
|
@@ -1765,70 +2307,70 @@ var asset = import_zod13.z.object({
|
|
|
1765
2307
|
var agentSchema = asset.extend({
|
|
1766
2308
|
description: text,
|
|
1767
2309
|
developerName: text,
|
|
1768
|
-
characterTags:
|
|
2310
|
+
characterTags: import_zod18.z.array(import_zod18.z.string()).nullish(),
|
|
1769
2311
|
displayIconSmall: text,
|
|
1770
2312
|
bustPortrait: text,
|
|
1771
2313
|
fullPortrait: text,
|
|
1772
2314
|
killfeedPortrait: text,
|
|
1773
2315
|
background: text,
|
|
1774
|
-
isPlayableCharacter:
|
|
1775
|
-
role:
|
|
1776
|
-
abilities:
|
|
2316
|
+
isPlayableCharacter: import_zod18.z.boolean(),
|
|
2317
|
+
role: import_zod18.z.object({ uuid: import_zod18.z.string(), displayName: text, description: text, displayIcon: text }).passthrough().nullish(),
|
|
2318
|
+
abilities: import_zod18.z.array(import_zod18.z.object({ slot: import_zod18.z.string(), displayName: text, description: text, displayIcon: text }).passthrough()).nullish()
|
|
1777
2319
|
});
|
|
1778
2320
|
var mapSchema = asset.extend({
|
|
1779
2321
|
coordinates: text,
|
|
1780
2322
|
listViewIcon: text,
|
|
1781
2323
|
splash: text,
|
|
1782
2324
|
mapUrl: text,
|
|
1783
|
-
xMultiplier:
|
|
1784
|
-
yMultiplier:
|
|
1785
|
-
xScalarToAdd:
|
|
1786
|
-
yScalarToAdd:
|
|
1787
|
-
callouts:
|
|
2325
|
+
xMultiplier: import_zod18.z.number(),
|
|
2326
|
+
yMultiplier: import_zod18.z.number(),
|
|
2327
|
+
xScalarToAdd: import_zod18.z.number(),
|
|
2328
|
+
yScalarToAdd: import_zod18.z.number(),
|
|
2329
|
+
callouts: import_zod18.z.array(import_zod18.z.object({ regionName: import_zod18.z.string(), superRegionName: import_zod18.z.string(), location: import_zod18.z.object({ x: import_zod18.z.number(), y: import_zod18.z.number() }) }).passthrough()).nullish()
|
|
1788
2330
|
});
|
|
1789
2331
|
var weaponSchema = asset.extend({
|
|
1790
|
-
category:
|
|
1791
|
-
defaultSkinUuid:
|
|
2332
|
+
category: import_zod18.z.string(),
|
|
2333
|
+
defaultSkinUuid: import_zod18.z.string(),
|
|
1792
2334
|
killStreamIcon: text,
|
|
1793
|
-
weaponStats:
|
|
1794
|
-
shopData:
|
|
1795
|
-
skins:
|
|
2335
|
+
weaponStats: import_zod18.z.object({}).passthrough().nullish(),
|
|
2336
|
+
shopData: import_zod18.z.object({}).passthrough().nullish(),
|
|
2337
|
+
skins: import_zod18.z.array(import_zod18.z.object({}).passthrough())
|
|
1796
2338
|
});
|
|
1797
2339
|
var skinSchema = asset.extend({
|
|
1798
|
-
themeUuid:
|
|
2340
|
+
themeUuid: import_zod18.z.string(),
|
|
1799
2341
|
contentTierUuid: text,
|
|
1800
2342
|
wallpaper: text,
|
|
1801
|
-
chromas:
|
|
1802
|
-
levels:
|
|
2343
|
+
chromas: import_zod18.z.array(asset.passthrough()),
|
|
2344
|
+
levels: import_zod18.z.array(asset.passthrough())
|
|
1803
2345
|
});
|
|
1804
|
-
var seasonSchema =
|
|
1805
|
-
uuid:
|
|
2346
|
+
var seasonSchema = import_zod18.z.object({
|
|
2347
|
+
uuid: import_zod18.z.string(),
|
|
1806
2348
|
displayName: text,
|
|
1807
2349
|
type: text,
|
|
1808
|
-
startTime:
|
|
1809
|
-
endTime:
|
|
2350
|
+
startTime: import_zod18.z.string(),
|
|
2351
|
+
endTime: import_zod18.z.string(),
|
|
1810
2352
|
parentUuid: text,
|
|
1811
2353
|
assetPath: text
|
|
1812
2354
|
}).passthrough();
|
|
1813
|
-
var versionSchema =
|
|
1814
|
-
manifestId:
|
|
1815
|
-
branch:
|
|
1816
|
-
version:
|
|
1817
|
-
buildVersion:
|
|
1818
|
-
engineVersion:
|
|
1819
|
-
riotClientVersion:
|
|
1820
|
-
riotClientBuild:
|
|
1821
|
-
buildDate:
|
|
2355
|
+
var versionSchema = import_zod18.z.object({
|
|
2356
|
+
manifestId: import_zod18.z.string(),
|
|
2357
|
+
branch: import_zod18.z.string(),
|
|
2358
|
+
version: import_zod18.z.string(),
|
|
2359
|
+
buildVersion: import_zod18.z.string(),
|
|
2360
|
+
engineVersion: import_zod18.z.string(),
|
|
2361
|
+
riotClientVersion: import_zod18.z.string().describe("Value of the X-Riot-ClientVersion header"),
|
|
2362
|
+
riotClientBuild: import_zod18.z.string(),
|
|
2363
|
+
buildDate: import_zod18.z.string()
|
|
1822
2364
|
}).passthrough();
|
|
1823
2365
|
|
|
1824
2366
|
// src/endpoints/catalog/index.ts
|
|
1825
|
-
var playable = [["isPlayableCharacter",
|
|
2367
|
+
var playable = [["isPlayableCharacter", import_zod19.z.boolean().optional().describe("Only return playable agents. Skips the duplicate Sova.")]];
|
|
1826
2368
|
var agents = collection("Agents", "Agent", "agents", agentSchema, playable);
|
|
1827
2369
|
var buddies = collection("Buddies", "Buddy", "buddies", asset);
|
|
1828
2370
|
var buddyLevels = collection("Buddy Levels", "Buddy Level", "buddies/levels", asset);
|
|
1829
2371
|
var bundles = collection("Bundles", "Bundle", "bundles", asset);
|
|
1830
2372
|
var ceremonies = collection("Ceremonies", "Ceremony", "ceremonies", asset);
|
|
1831
|
-
var competitiveTiers = collection("Competitive Tiers", "Competitive Tier Set", "competitivetiers",
|
|
2373
|
+
var competitiveTiers = collection("Competitive Tiers", "Competitive Tier Set", "competitivetiers", import_zod19.z.object({ uuid: import_zod19.z.string(), tiers: import_zod19.z.array(import_zod19.z.object({ tier: import_zod19.z.number(), tierName: text, division: text, color: text }).passthrough()) }).passthrough());
|
|
1832
2374
|
var contentTiers = collection("Content Tiers", "Content Tier", "contenttiers", asset);
|
|
1833
2375
|
var contracts2 = collection("Contracts", "Contract", "contracts", asset);
|
|
1834
2376
|
var currencies = collection("Currencies", "Currency", "currencies", asset);
|
|
@@ -1839,11 +2381,11 @@ var gamemodeEquippables = collection("Gamemode Equippables", "Gamemode Equippabl
|
|
|
1839
2381
|
var gear = collection("Gear", "Gear Item", "gear", asset);
|
|
1840
2382
|
var levelBorders = collection("Level Borders", "Level Border", "levelborders", asset);
|
|
1841
2383
|
var maps = collection("Maps", "Map", "maps", mapSchema);
|
|
1842
|
-
var missions = collection("Missions", "Mission", "missions",
|
|
2384
|
+
var missions = collection("Missions", "Mission", "missions", import_zod19.z.object({ uuid: import_zod19.z.string(), displayName: text }).passthrough());
|
|
1843
2385
|
var playerCards = collection("Player Cards", "Player Card", "playercards", asset);
|
|
1844
|
-
var playerTitles = collection("Player Titles", "Player Title", "playertitles",
|
|
2386
|
+
var playerTitles = collection("Player Titles", "Player Title", "playertitles", import_zod19.z.object({ uuid: import_zod19.z.string(), displayName: text, titleText: text }).passthrough());
|
|
1845
2387
|
var seasons = collection("Seasons", "Season", "seasons", seasonSchema);
|
|
1846
|
-
var competitiveSeasons = collection("Competitive Seasons", "Competitive Season", "seasons/competitive",
|
|
2388
|
+
var competitiveSeasons = collection("Competitive Seasons", "Competitive Season", "seasons/competitive", import_zod19.z.object({ uuid: import_zod19.z.string(), seasonUuid: import_zod19.z.string(), startTime: import_zod19.z.string(), endTime: import_zod19.z.string() }).passthrough());
|
|
1847
2389
|
var sprays = collection("Sprays", "Spray", "sprays", asset);
|
|
1848
2390
|
var sprayLevels = collection("Spray Levels", "Spray Level", "sprays/levels", asset);
|
|
1849
2391
|
var themes = collection("Themes", "Theme", "themes", asset);
|
|
@@ -1934,7 +2476,7 @@ var registry = {
|
|
|
1934
2476
|
};
|
|
1935
2477
|
|
|
1936
2478
|
// src/auth.ts
|
|
1937
|
-
var
|
|
2479
|
+
var import_valorant_api_types19 = require("valorant-api-types");
|
|
1938
2480
|
|
|
1939
2481
|
// src/errors.ts
|
|
1940
2482
|
var ValorantError = class extends Error {
|
|
@@ -2063,7 +2605,7 @@ function createAuthFlows(client) {
|
|
|
2063
2605
|
return toLoginResult(data);
|
|
2064
2606
|
},
|
|
2065
2607
|
async reauthenticate(options) {
|
|
2066
|
-
const response = await client.send(
|
|
2608
|
+
const response = await client.send(import_valorant_api_types19.endpoints.cookieReauthEndpoint);
|
|
2067
2609
|
const tokens = parseAuthRedirect(response.headers.get("location") ?? "");
|
|
2068
2610
|
if (tokens === void 0) throw new ValorantError("Cookie reauthentication failed: the session cookies are missing or expired, log in again");
|
|
2069
2611
|
applyTokens(tokens);
|
|
@@ -2095,7 +2637,7 @@ function createAuthFlows(client) {
|
|
|
2095
2637
|
}
|
|
2096
2638
|
|
|
2097
2639
|
// src/context.ts
|
|
2098
|
-
var DEFAULT_PLATFORM =
|
|
2640
|
+
var DEFAULT_PLATFORM = toBase64(JSON.stringify({
|
|
2099
2641
|
platformType: "PC",
|
|
2100
2642
|
platformOS: "Windows",
|
|
2101
2643
|
platformOSVersion: "10.0.19042.1.256.64bit",
|
|
@@ -2255,7 +2797,7 @@ var localTransport = async (request) => {
|
|
|
2255
2797
|
};
|
|
2256
2798
|
|
|
2257
2799
|
// src/internal/body.ts
|
|
2258
|
-
var
|
|
2800
|
+
var import_zod20 = require("zod");
|
|
2259
2801
|
function parseBody(text2) {
|
|
2260
2802
|
if (text2 === "") return void 0;
|
|
2261
2803
|
try {
|
|
@@ -2268,9 +2810,9 @@ function safeParse(schema, data) {
|
|
|
2268
2810
|
try {
|
|
2269
2811
|
return schema.safeParse(data);
|
|
2270
2812
|
} catch (thrown) {
|
|
2271
|
-
if (thrown instanceof
|
|
2813
|
+
if (thrown instanceof import_zod20.ZodError) return { success: false, error: thrown };
|
|
2272
2814
|
const message = thrown instanceof Error ? thrown.message : String(thrown);
|
|
2273
|
-
return { success: false, error: new
|
|
2815
|
+
return { success: false, error: new import_zod20.ZodError([{ code: "custom", path: [], message: `Schema transform threw: ${message}` }]) };
|
|
2274
2816
|
}
|
|
2275
2817
|
}
|
|
2276
2818
|
|
|
@@ -2331,6 +2873,181 @@ function toApiError(endpoint2, request, response) {
|
|
|
2331
2873
|
return new ValorantApiError(...args);
|
|
2332
2874
|
}
|
|
2333
2875
|
|
|
2876
|
+
// src/internal/normalize.ts
|
|
2877
|
+
var import_zod21 = require("zod");
|
|
2878
|
+
var cache = /* @__PURE__ */ new WeakMap();
|
|
2879
|
+
var children = {
|
|
2880
|
+
ZodObject: (def, map) => {
|
|
2881
|
+
const shape = def["shape"]();
|
|
2882
|
+
return { ...def, shape: () => Object.fromEntries(Object.entries(shape).map(([key, value]) => [key, map(value)])) };
|
|
2883
|
+
},
|
|
2884
|
+
ZodArray: (def, map) => ({ ...def, type: map(def["type"]) }),
|
|
2885
|
+
ZodOptional: (def, map) => ({ ...def, innerType: map(def["innerType"]) }),
|
|
2886
|
+
ZodNullable: (def, map) => ({ ...def, innerType: map(def["innerType"]) }),
|
|
2887
|
+
ZodDefault: (def, map) => ({ ...def, innerType: map(def["innerType"]) }),
|
|
2888
|
+
ZodCatch: (def, map) => ({ ...def, innerType: map(def["innerType"]) }),
|
|
2889
|
+
ZodReadonly: (def, map) => ({ ...def, innerType: map(def["innerType"]) }),
|
|
2890
|
+
ZodBranded: (def, map) => ({ ...def, type: map(def["type"]) }),
|
|
2891
|
+
ZodEffects: (def, map) => ({ ...def, schema: map(def["schema"]) }),
|
|
2892
|
+
ZodUnion: (def, map) => ({ ...def, options: def["options"].map(map) }),
|
|
2893
|
+
ZodIntersection: (def, map) => ({ ...def, left: map(def["left"]), right: map(def["right"]) }),
|
|
2894
|
+
ZodRecord: (def, map) => ({ ...def, keyType: map(def["keyType"]), valueType: map(def["valueType"]) }),
|
|
2895
|
+
ZodTuple: (def, map) => ({ ...def, items: def["items"].map(map) }),
|
|
2896
|
+
ZodDiscriminatedUnion: (def, map) => {
|
|
2897
|
+
const optionsMap = new Map([...def["optionsMap"]].map(([key, option]) => [key, map(option)]));
|
|
2898
|
+
return { ...def, options: [...optionsMap.values()], optionsMap };
|
|
2899
|
+
}
|
|
2900
|
+
};
|
|
2901
|
+
function lenientPc(literal) {
|
|
2902
|
+
return import_zod21.z.preprocess((value) => typeof value === "string" ? value.toUpperCase() : value, literal);
|
|
2903
|
+
}
|
|
2904
|
+
function normalizePlatformLiterals(schema) {
|
|
2905
|
+
const known = cache.get(schema);
|
|
2906
|
+
if (known) return known;
|
|
2907
|
+
const def = schema._def;
|
|
2908
|
+
let result = schema;
|
|
2909
|
+
if (def.typeName === "ZodLiteral" && def["value"] === "PC") {
|
|
2910
|
+
result = lenientPc(schema);
|
|
2911
|
+
} else if (def.typeName === "ZodLazy") {
|
|
2912
|
+
const getter = def["getter"];
|
|
2913
|
+
result = new schema.constructor({ ...def, getter: () => normalizePlatformLiterals(getter()) });
|
|
2914
|
+
} else if (def.typeName && children[def.typeName]) {
|
|
2915
|
+
const Type = schema.constructor;
|
|
2916
|
+
result = new Type(children[def.typeName](def, normalizePlatformLiterals));
|
|
2917
|
+
}
|
|
2918
|
+
cache.set(schema, result);
|
|
2919
|
+
return result;
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
// src/lobby/mappings.ts
|
|
2923
|
+
var CustomGameTeam = {
|
|
2924
|
+
Defenders: "TeamOne",
|
|
2925
|
+
Attackers: "TeamTwo",
|
|
2926
|
+
Spectators: "TeamSpectate",
|
|
2927
|
+
DefenderCoaches: "TeamOneCoaches",
|
|
2928
|
+
AttackerCoaches: "TeamTwoCoaches"
|
|
2929
|
+
};
|
|
2930
|
+
var MEMBERSHIP_KEY = {
|
|
2931
|
+
TeamOne: "teamOne",
|
|
2932
|
+
TeamTwo: "teamTwo",
|
|
2933
|
+
TeamSpectate: "teamSpectate",
|
|
2934
|
+
TeamOneCoaches: "teamOneCoaches",
|
|
2935
|
+
TeamTwoCoaches: "teamTwoCoaches"
|
|
2936
|
+
};
|
|
2937
|
+
var CustomGameMap = {
|
|
2938
|
+
Ascent: "/Game/Maps/Ascent/Ascent",
|
|
2939
|
+
Split: "/Game/Maps/Bonsai/Bonsai",
|
|
2940
|
+
Fracture: "/Game/Maps/Canyon/Canyon",
|
|
2941
|
+
Bind: "/Game/Maps/Duality/Duality",
|
|
2942
|
+
Breeze: "/Game/Maps/Foxtrot/Foxtrot",
|
|
2943
|
+
Abyss: "/Game/Maps/Infinity/Infinity",
|
|
2944
|
+
Lotus: "/Game/Maps/Jam/Jam",
|
|
2945
|
+
Sunset: "/Game/Maps/Juliett/Juliett",
|
|
2946
|
+
Pearl: "/Game/Maps/Pitt/Pitt",
|
|
2947
|
+
Summit: "/Game/Maps/Plummet/Plummet",
|
|
2948
|
+
Icebox: "/Game/Maps/Port/Port",
|
|
2949
|
+
Corrode: "/Game/Maps/Rook/Rook",
|
|
2950
|
+
Haven: "/Game/Maps/Triad/Triad"
|
|
2951
|
+
};
|
|
2952
|
+
var CustomGameMode = {
|
|
2953
|
+
Standard: "/Game/GameModes/Bomb/BombGameMode.BombGameMode_C",
|
|
2954
|
+
SpikeRush: "/Game/GameModes/QuickBomb/QuickBombGameMode.QuickBombGameMode_C",
|
|
2955
|
+
Deathmatch: "/Game/GameModes/Deathmatch/DeathmatchGameMode.DeathmatchGameMode_C",
|
|
2956
|
+
Escalation: "/Game/GameModes/GunGame/GunGameTeamsGameMode.GunGameTeamsGameMode_C",
|
|
2957
|
+
Skirmish: "/Game/GameModes/Skirmish/SkirmishGameMode.SkirmishGameMode_C"
|
|
2958
|
+
};
|
|
2959
|
+
var RULE_KEY = {
|
|
2960
|
+
allowGameModifiers: "AllowGameModifiers",
|
|
2961
|
+
playOutAllRounds: "PlayOutAllRounds",
|
|
2962
|
+
skipMatchHistory: "SkipMatchHistory",
|
|
2963
|
+
tournamentMode: "TournamentMode",
|
|
2964
|
+
overtimeWinByTwo: "IsOvertimeWinByTwo"
|
|
2965
|
+
};
|
|
2966
|
+
function reverse(table) {
|
|
2967
|
+
return new Map(Object.entries(table).map(([name, value]) => [value, name]));
|
|
2968
|
+
}
|
|
2969
|
+
var mapNames = reverse(CustomGameMap);
|
|
2970
|
+
var modeNames = reverse(CustomGameMode);
|
|
2971
|
+
function customGameMapName(path) {
|
|
2972
|
+
return mapNames.get(path);
|
|
2973
|
+
}
|
|
2974
|
+
function customGameModeName(path) {
|
|
2975
|
+
return modeNames.get(path);
|
|
2976
|
+
}
|
|
2977
|
+
function teamOfPlayer(membership, puuid) {
|
|
2978
|
+
for (const team of Object.values(CustomGameTeam)) {
|
|
2979
|
+
if (membership[MEMBERSHIP_KEY[team]]?.some((member) => member.Subject === puuid)) return team;
|
|
2980
|
+
}
|
|
2981
|
+
return void 0;
|
|
2982
|
+
}
|
|
2983
|
+
|
|
2984
|
+
// src/lobby/flows.ts
|
|
2985
|
+
var DEFAULT_RULES = {
|
|
2986
|
+
AllowGameModifiers: "false",
|
|
2987
|
+
PlayOutAllRounds: "false",
|
|
2988
|
+
SkipMatchHistory: "false",
|
|
2989
|
+
TournamentMode: "false",
|
|
2990
|
+
IsOvertimeWinByTwo: "false"
|
|
2991
|
+
};
|
|
2992
|
+
function ruleStrings(rules) {
|
|
2993
|
+
const out = {};
|
|
2994
|
+
for (const [name, key] of Object.entries(RULE_KEY)) {
|
|
2995
|
+
const value = rules?.[name];
|
|
2996
|
+
if (value !== void 0) out[key] = value ? "true" : "false";
|
|
2997
|
+
}
|
|
2998
|
+
return out;
|
|
2999
|
+
}
|
|
3000
|
+
function currentRules(gameRules) {
|
|
3001
|
+
const out = {};
|
|
3002
|
+
for (const key of Object.keys(DEFAULT_RULES)) {
|
|
3003
|
+
const value = gameRules?.[key];
|
|
3004
|
+
if (value === "true" || value === "false") out[key] = value;
|
|
3005
|
+
}
|
|
3006
|
+
return out;
|
|
3007
|
+
}
|
|
3008
|
+
function createPartyFlows(client) {
|
|
3009
|
+
async function partyIdOf(target) {
|
|
3010
|
+
if (target.partyId !== void 0) return target.partyId;
|
|
3011
|
+
return (await client.party.player({ validation: "off" })).CurrentPartyID;
|
|
3012
|
+
}
|
|
3013
|
+
return {
|
|
3014
|
+
async assignToTeam(team, options = {}) {
|
|
3015
|
+
const partyId = await partyIdOf(options);
|
|
3016
|
+
const puuid = options.puuid ?? client.context.require("puuid");
|
|
3017
|
+
return client.party.setCustomGameTeam({ params: { partyId, team }, body: { playerToPutOnTeam: puuid } });
|
|
3018
|
+
},
|
|
3019
|
+
async configureLobby(options) {
|
|
3020
|
+
const partyId = await partyIdOf(options);
|
|
3021
|
+
const { Settings: current } = (await client.party.getCustomGame({ params: { partyId }, validation: "off" })).CustomGameData;
|
|
3022
|
+
await client.party.setCustomGameSettings({
|
|
3023
|
+
params: { partyId },
|
|
3024
|
+
validation: "off",
|
|
3025
|
+
body: {
|
|
3026
|
+
Map: options.map ?? current.Map,
|
|
3027
|
+
Mode: options.mode ?? current.Mode,
|
|
3028
|
+
UseBots: current.UseBots,
|
|
3029
|
+
GamePod: options.gamePod ?? current.GamePod,
|
|
3030
|
+
GameRules: { ...DEFAULT_RULES, ...currentRules(current.GameRules), ...ruleStrings(options.rules) }
|
|
3031
|
+
}
|
|
3032
|
+
});
|
|
3033
|
+
return (await client.party.getCustomGame({ params: { partyId } })).CustomGameData.Settings;
|
|
3034
|
+
}
|
|
3035
|
+
};
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3038
|
+
// src/internal/gamelog.ts
|
|
3039
|
+
var VERSION_LINE = /CI server version: (release-[\w.]+-shipping-\d+-\d+)/;
|
|
3040
|
+
async function readInstalledClientVersion(logPath) {
|
|
3041
|
+
const { readFile } = await import("fs/promises");
|
|
3042
|
+
const { join } = await import("path");
|
|
3043
|
+
const file = logPath ?? join(process.env["LOCALAPPDATA"] ?? "", "VALORANT", "Saved", "Logs", "ShooterGame.log");
|
|
3044
|
+
try {
|
|
3045
|
+
return VERSION_LINE.exec(await readFile(file, "latin1"))?.[1];
|
|
3046
|
+
} catch {
|
|
3047
|
+
return void 0;
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
|
|
2334
3051
|
// src/local.ts
|
|
2335
3052
|
function parseLockfile(content) {
|
|
2336
3053
|
const [name, pid, port, password, protocol] = content.trim().split(":");
|
|
@@ -2358,7 +3075,6 @@ function createLocalFlows(client) {
|
|
|
2358
3075
|
const sessions = await client.local.sessions();
|
|
2359
3076
|
const valorant = Object.values(sessions).find((session) => session.productId === "valorant");
|
|
2360
3077
|
if (valorant) {
|
|
2361
|
-
ctx.set("clientVersion", valorant.version);
|
|
2362
3078
|
const region = launchArgument(valorant.launchConfiguration.arguments, "ares-deployment");
|
|
2363
3079
|
if (region !== void 0 && isRegion(region)) ctx.update({ region, shard: shardForRegion(region) });
|
|
2364
3080
|
}
|
|
@@ -2367,9 +3083,9 @@ function createLocalFlows(client) {
|
|
|
2367
3083
|
const affinity = Object.values(info.affinity ?? {}).find(isRegion);
|
|
2368
3084
|
if (affinity !== void 0) ctx.applyAffinity(affinity);
|
|
2369
3085
|
}
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
3086
|
+
const installed = await readInstalledClientVersion(options?.gameLogPath);
|
|
3087
|
+
if (installed !== void 0) ctx.set("clientVersion", installed);
|
|
3088
|
+
else if (options?.fetchClientVersion !== false) await client.auth.fetchClientVersion().catch(() => void 0);
|
|
2373
3089
|
},
|
|
2374
3090
|
async events() {
|
|
2375
3091
|
return openEventStream(ctx);
|
|
@@ -2388,7 +3104,7 @@ async function openEventStream(ctx) {
|
|
|
2388
3104
|
throw new ValorantError('The local event stream needs the optional "ws" package: npm install ws', { cause });
|
|
2389
3105
|
}
|
|
2390
3106
|
const socket = new WebSocket(`wss://127.0.0.1:${ctx.require("localPort")}`, {
|
|
2391
|
-
headers: { Authorization:
|
|
3107
|
+
headers: { Authorization: basicAuth("riot", ctx.require("localPassword")) },
|
|
2392
3108
|
rejectUnauthorized: false
|
|
2393
3109
|
});
|
|
2394
3110
|
const listeners = /* @__PURE__ */ new Set();
|
|
@@ -2414,8 +3130,20 @@ async function openEventStream(ctx) {
|
|
|
2414
3130
|
};
|
|
2415
3131
|
}
|
|
2416
3132
|
|
|
3133
|
+
// src/pregame/flows.ts
|
|
3134
|
+
function createPregameFlows(client) {
|
|
3135
|
+
return {
|
|
3136
|
+
async pickAgent(agent, options = {}) {
|
|
3137
|
+
const preGameMatchId = options.matchId ?? (await client.pregame.player({ validation: "off" })).MatchID;
|
|
3138
|
+
const params = { preGameMatchId, agentId: agent };
|
|
3139
|
+
const selected = await client.pregame.selectCharacter({ params });
|
|
3140
|
+
return options.lock ? client.pregame.lockCharacter({ params }) : selected;
|
|
3141
|
+
}
|
|
3142
|
+
};
|
|
3143
|
+
}
|
|
3144
|
+
|
|
2417
3145
|
// src/request.ts
|
|
2418
|
-
var
|
|
3146
|
+
var import_valorant_api_types20 = require("valorant-api-types");
|
|
2419
3147
|
|
|
2420
3148
|
// src/types.ts
|
|
2421
3149
|
function paramName(variable) {
|
|
@@ -2442,11 +3170,11 @@ function resolveBase(endpoint2, ctx) {
|
|
|
2442
3170
|
switch (endpoint2.type) {
|
|
2443
3171
|
case "pd":
|
|
2444
3172
|
case "shared":
|
|
2445
|
-
return (0,
|
|
3173
|
+
return (0, import_valorant_api_types20.typeToPrefix)({ type: endpoint2.type, shard: ctx.require("shard") });
|
|
2446
3174
|
case "glz":
|
|
2447
|
-
return (0,
|
|
3175
|
+
return (0, import_valorant_api_types20.typeToPrefix)({ type: "glz", shard: ctx.require("shard"), region: ctx.require("region") });
|
|
2448
3176
|
case "local":
|
|
2449
|
-
return (0,
|
|
3177
|
+
return (0, import_valorant_api_types20.typeToPrefix)({ type: "local", port: ctx.require("localPort") });
|
|
2450
3178
|
case "other":
|
|
2451
3179
|
return "";
|
|
2452
3180
|
}
|
|
@@ -2467,7 +3195,7 @@ function resolveHeaders(endpoint2, input, ctx, url) {
|
|
|
2467
3195
|
const userAgent = ctx.get("userAgent");
|
|
2468
3196
|
if (userAgent) headers["User-Agent"] = userAgent;
|
|
2469
3197
|
if (need.token) headers["Authorization"] = `Bearer ${ctx.require("accessToken")}`;
|
|
2470
|
-
if (need.localAuth) headers["Authorization"] =
|
|
3198
|
+
if (need.localAuth) headers["Authorization"] = basicAuth("riot", ctx.require("localPassword"));
|
|
2471
3199
|
if (need.entitlement) headers["X-Riot-Entitlements-JWT"] = ctx.require("entitlementToken");
|
|
2472
3200
|
if (need.clientVersion) headers["X-Riot-ClientVersion"] = ctx.require("clientVersion");
|
|
2473
3201
|
if (need.clientPlatform) headers["X-Riot-ClientPlatform"] = ctx.require("clientPlatform");
|
|
@@ -2511,7 +3239,7 @@ var ValorantClient = class {
|
|
|
2511
3239
|
const input = options;
|
|
2512
3240
|
const validation = input.validation ?? this.#options.validation ?? "loose";
|
|
2513
3241
|
if (validation === "strict" && endpoint2.body !== void 0 && input.body !== void 0) {
|
|
2514
|
-
const parsed = endpoint2.body.safeParse(input.body);
|
|
3242
|
+
const parsed = normalizePlatformLiterals(endpoint2.body).safeParse(input.body);
|
|
2515
3243
|
if (!parsed.success) throw new ValorantValidationError("request", endpoint2.name, parsed.error, input.body);
|
|
2516
3244
|
}
|
|
2517
3245
|
const retry = this.#options.retry === false ? void 0 : this.#options.retry ?? {};
|
|
@@ -2563,6 +3291,8 @@ var ValorantClient = class {
|
|
|
2563
3291
|
}
|
|
2564
3292
|
Object.assign(api["auth"], createAuthFlows(this));
|
|
2565
3293
|
Object.assign(api["local"], createLocalFlows(this));
|
|
3294
|
+
Object.assign(api["party"], createPartyFlows(this));
|
|
3295
|
+
Object.assign(api["pregame"], createPregameFlows(this));
|
|
2566
3296
|
return api;
|
|
2567
3297
|
}
|
|
2568
3298
|
#transportFor(endpoint2) {
|
|
@@ -2579,7 +3309,8 @@ var ValorantClient = class {
|
|
|
2579
3309
|
}
|
|
2580
3310
|
#parseResponse(endpoint2, response, validation) {
|
|
2581
3311
|
const data = unwrapEnvelope(endpoint2, parseBody(response.text));
|
|
2582
|
-
const
|
|
3312
|
+
const published = endpoint2.responses?.[String(response.status)];
|
|
3313
|
+
const schema = published && normalizePlatformLiterals(published);
|
|
2583
3314
|
if (schema === void 0 || validation === "off") return data;
|
|
2584
3315
|
const parsed = safeParse(schema, data);
|
|
2585
3316
|
if (parsed.success) return parsed.data;
|
|
@@ -2598,10 +3329,53 @@ var ValorantClient = class {
|
|
|
2598
3329
|
}
|
|
2599
3330
|
};
|
|
2600
3331
|
|
|
3332
|
+
// src/pregame/agents.ts
|
|
3333
|
+
var Agent = {
|
|
3334
|
+
Astra: "41fb69c1-4189-7b37-f117-bcaf1e96f1bf",
|
|
3335
|
+
Breach: "5f8d3a7f-467b-97f3-062c-13acf203c006",
|
|
3336
|
+
Brimstone: "9f0d8ba9-4140-b941-57d3-a7ad57c6b417",
|
|
3337
|
+
Chamber: "22697a3d-45bf-8dd7-4fec-84a9e28c69d7",
|
|
3338
|
+
Clove: "1dbf2edd-4729-0984-3115-daa5eed44993",
|
|
3339
|
+
Cypher: "117ed9e3-49f3-6512-3ccf-0cada7e3823b",
|
|
3340
|
+
Deadlock: "cc8b64c8-4b25-4ff9-6e7f-37b4da43d235",
|
|
3341
|
+
Fade: "dade69b4-4f5a-8528-247b-219e5a1facd6",
|
|
3342
|
+
Gekko: "e370fa57-4757-3604-3648-499e1f642d3f",
|
|
3343
|
+
Harbor: "95b78ed7-4637-86d9-7e41-71ba8c293152",
|
|
3344
|
+
Hush: "ddd5a15c-4fbe-42fa-3789-11a55ca5ee04",
|
|
3345
|
+
Iso: "0e38b510-41a8-5780-5e8f-568b2a4f2d6c",
|
|
3346
|
+
Jett: "add6443a-41bd-e414-f6ad-e58d267f4e95",
|
|
3347
|
+
KayO: "601dbbe7-43ce-be57-2a40-4abd24953621",
|
|
3348
|
+
Killjoy: "1e58de9c-4950-5125-93e9-a0aee9f98746",
|
|
3349
|
+
Miks: "7c8a4701-4de6-9355-b254-e09bc2a34b72",
|
|
3350
|
+
Neon: "bb2a4828-46eb-8cd1-e765-15848195d751",
|
|
3351
|
+
Omen: "8e253930-4c05-31dd-1b6c-968525494517",
|
|
3352
|
+
Phoenix: "eb93336a-449b-9c1b-0a54-a891f7921d69",
|
|
3353
|
+
Raze: "f94c3b30-42be-e959-889c-5aa313dba261",
|
|
3354
|
+
Reyna: "a3bfb853-43b2-7238-a4f1-ad90e9e46bcc",
|
|
3355
|
+
Sage: "569fdd95-4d10-43ab-ca70-79becc718b46",
|
|
3356
|
+
Skye: "6f2a04ca-43e0-be17-7f36-b3908627744d",
|
|
3357
|
+
Sova: "320b2a48-4d9b-a075-30f1-1f93a9b638fa",
|
|
3358
|
+
Tejo: "b444168c-4e35-8076-db47-ef9bf368f384",
|
|
3359
|
+
Veto: "92eeef5d-43b5-1d4a-8d03-b3927a09034b",
|
|
3360
|
+
Viper: "707eab51-4836-f488-046a-cda6bf494859",
|
|
3361
|
+
Vyse: "efba5359-4016-a1e5-7626-b1ae76895940",
|
|
3362
|
+
Waylay: "df1cb487-4902-002e-5c17-d28e83e78588",
|
|
3363
|
+
Yoru: "7f94d92c-4234-0a36-9646-3a87eb8b5c89"
|
|
3364
|
+
};
|
|
3365
|
+
var names = new Map(Object.entries(Agent).map(([name, id]) => [id, name]));
|
|
3366
|
+
function agentName(id) {
|
|
3367
|
+
return names.get(id);
|
|
3368
|
+
}
|
|
3369
|
+
|
|
2601
3370
|
// src/index.ts
|
|
2602
3371
|
__reExport(index_exports, require("valorant-api-types"), module.exports);
|
|
2603
3372
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2604
3373
|
0 && (module.exports = {
|
|
3374
|
+
Agent,
|
|
3375
|
+
CustomGameMap,
|
|
3376
|
+
CustomGameMode,
|
|
3377
|
+
CustomGameTeam,
|
|
3378
|
+
MEMBERSHIP_KEY,
|
|
2605
3379
|
MissingContextError,
|
|
2606
3380
|
MissingParameterError,
|
|
2607
3381
|
ValorantApiError,
|
|
@@ -2612,6 +3386,9 @@ __reExport(index_exports, require("valorant-api-types"), module.exports);
|
|
|
2612
3386
|
ValorantNetworkError,
|
|
2613
3387
|
ValorantRateLimitError,
|
|
2614
3388
|
ValorantValidationError,
|
|
3389
|
+
agentName,
|
|
3390
|
+
customGameMapName,
|
|
3391
|
+
customGameModeName,
|
|
2615
3392
|
fetchTransport,
|
|
2616
3393
|
isRegion,
|
|
2617
3394
|
localTransport,
|
|
@@ -2620,6 +3397,7 @@ __reExport(index_exports, require("valorant-api-types"), module.exports);
|
|
|
2620
3397
|
readLockfile,
|
|
2621
3398
|
registry,
|
|
2622
3399
|
shardForRegion,
|
|
3400
|
+
teamOfPlayer,
|
|
2623
3401
|
...require("valorant-api-types")
|
|
2624
3402
|
});
|
|
2625
3403
|
//# sourceMappingURL=index.cjs.map
|