@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/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 import_valorant_api_types = require("valorant-api-types");
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/chat.ts
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": import_zod2.z.object({
355
- bounceDockIconEnabled: import_zod2.z.boolean(),
356
- "chat-status-message": import_zod2.z.string(),
357
- chatFilterDisabled: import_zod2.z.boolean(),
358
- chatGBG: import_zod2.z.boolean(),
359
- chatGroupDiscord: import_zod2.z.boolean(),
360
- chatGroupMobile: import_zod2.z.boolean(),
361
- chatGroupOffline: import_zod2.z.boolean(),
362
- chatWindow: import_zod2.z.object({
363
- detached: import_zod2.z.boolean(),
364
- height: import_zod2.z.number(),
365
- left: import_zod2.z.number(),
366
- top: import_zod2.z.number(),
367
- width: import_zod2.z.number()
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: import_zod2.z.number(),
370
- "closed-conversations": import_zod2.z.object({
371
- "ff822fdf-71a3-54ac-814e-7ac752ba428d@eu1.pvp.net": import_zod2.z.number()
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: import_zod2.z.boolean(),
374
- "hidden-conversations": import_zod2.z.object({}),
375
- linkClickWarningEnabled: import_zod2.z.boolean(),
376
- messageNotificationsEnabled: import_zod2.z.boolean(),
377
- moreUnreadsEnabled: import_zod2.z.boolean(),
378
- "muted-conversations": import_zod2.z.object({}),
379
- recentlyPlayedFirstOpen: import_zod2.z.boolean(),
380
- recentlyPlayedOpen: import_zod2.z.boolean(),
381
- "roster-group-collapsed": import_zod2.z.object({}),
382
- showWhenTypingEnabled: import_zod2.z.boolean(),
383
- sortBy: import_zod2.z.string(),
384
- usePlayerPreferences: import_zod2.z.boolean()
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": import_zod2.z.object({}) }
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 import_zod3 = require("zod");
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": import_zod3.z.object({
407
- AgentID: import_zod3.z.string(),
408
- CounterID: import_zod3.z.string(),
409
- MilestoneThreshold: import_zod3.z.number(),
410
- StartDate: import_zod3.z.string(),
411
- EndDate: import_zod3.z.string(),
412
- IsActive: import_zod3.z.boolean(),
413
- includedPlatforms: import_zod3.z.object({
414
- console: import_zod3.z.object({
415
- developmentOnly: import_zod3.z.boolean()
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: import_zod3.z.object({
418
- developmentOnly: import_zod3.z.boolean()
544
+ mobile: import_zod4.z.object({
545
+ developmentOnly: import_zod4.z.boolean()
419
546
  }),
420
- pc: import_zod3.z.object({
421
- developmentOnly: import_zod3.z.boolean()
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 import_zod4 = require("zod");
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": import_zod4.z.object({
437
- Tournaments: import_zod4.z.array(import_zod4.z.object({
438
- ID: import_zod4.z.string(),
439
- StartTimeUTC: import_zod4.z.string(),
440
- EndTimeUTC: import_zod4.z.string()
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": import_zod4.z.object({}) }
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": import_zod4.z.object({
461
- PickemLeagues: import_zod4.z.array(import_zod4.z.object({
462
- LeagueID: import_zod4.z.string(),
463
- EldsLeagueID: import_zod4.z.string(),
464
- Tournament: import_zod4.z.object({
465
- ID: import_zod4.z.string(),
466
- EldsTournamentID: import_zod4.z.string(),
467
- LeagueID: import_zod4.z.string(),
468
- PickBlocks: import_zod4.z.array(import_zod4.z.object({
469
- ID: import_zod4.z.string(),
470
- EldsTournamentID: import_zod4.z.string(),
471
- Slug: import_zod4.z.object({
472
- Slug: import_zod4.z.string()
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: import_zod4.z.string(),
475
- PickCloseTime: import_zod4.z.string(),
476
- State: import_zod4.z.string(),
477
- OpenLevel: import_zod4.z.string(),
478
- BlockType: import_zod4.z.string(),
479
- PickBlockElements: import_zod4.z.array(import_zod4.z.object({
480
- ID: import_zod4.z.string(),
481
- PickBlockID: import_zod4.z.string(),
482
- Section: import_zod4.z.object({
483
- ID: import_zod4.z.string(),
484
- EldsSectionID: import_zod4.z.string(),
485
- CorrectPick: import_zod4.z.object({
486
- Entries: import_zod4.z.array(import_zod4.z.object({
487
- Index: import_zod4.z.number(),
488
- Correctness: import_zod4.z.string(),
489
- ParticipantID: import_zod4.z.string(),
490
- Points: import_zod4.z.number(),
491
- Rank: import_zod4.z.number()
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: import_zod4.z.object({
496
- ID: import_zod4.z.string(),
497
- EldsMatchID: import_zod4.z.string(),
498
- BaselinePoints: import_zod4.z.number(),
499
- CorrectPick: import_zod4.z.string(),
500
- ResultState: import_zod4.z.string()
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: import_zod4.z.string(),
503
- PickCloseTime: import_zod4.z.string(),
504
- State: import_zod4.z.string(),
505
- DisplayOrder: import_zod4.z.number()
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: import_zod4.z.string()
695
+ CompletionStatus: import_zod6.z.string()
508
696
  })),
509
- Participants: import_zod4.z.array(import_zod4.z.object({
510
- ID: import_zod4.z.string(),
511
- EldsTeamID: import_zod4.z.string()
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: import_zod4.z.boolean()
702
+ Published: import_zod6.z.boolean()
515
703
  }))
516
704
  }) }
517
705
  };
518
706
 
519
707
  // src/endpoints/riot/local.ts
520
- var import_zod5 = require("zod");
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": import_zod5.z.string() }
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": import_zod5.z.array(import_zod5.z.string()) }
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": import_zod5.z.string() }
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": import_zod5.z.object({
556
- clientId: import_zod5.z.string(),
557
- expiry: import_zod5.z.number(),
558
- scopes: import_zod5.z.array(import_zod5.z.string()),
559
- token: import_zod5.z.string()
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": import_zod5.z.object({
570
- state: import_zod5.z.string()
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": import_zod5.z.object({
581
- state: import_zod5.z.string(),
582
- token: import_zod5.z.string(),
583
- tokenType: import_zod5.z.string()
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": import_zod5.z.object({
594
- pid: import_zod5.z.number(),
595
- status: import_zod5.z.string()
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": import_zod5.z.string() }
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": import_zod5.z.string() }
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": import_zod5.z.string() }
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 import_zod6 = require("zod");
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": import_zod6.z.object({
636
- PremierSeasons: import_zod6.z.array(import_zod6.z.object({
637
- ID: import_zod6.z.string(),
638
- Name: import_zod6.z.string(),
639
- PreviousPremierSeasonID: import_zod6.z.string(),
640
- NextPremierSeasonID: import_zod6.z.string(),
641
- IsActive: import_zod6.z.boolean(),
642
- StartTime: import_zod6.z.string(),
643
- EndTime: import_zod6.z.string(),
644
- Events: import_zod6.z.array(import_zod6.z.object({
645
- ID: import_zod6.z.string(),
646
- Type: import_zod6.z.string(),
647
- StartDateTime: import_zod6.z.string(),
648
- EndDateTime: import_zod6.z.string(),
649
- MapSelectionStrategy: import_zod6.z.string(),
650
- MapPoolMapIDs: import_zod6.z.array(import_zod6.z.string()),
651
- PointsRequiredToParticipate: import_zod6.z.number()
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: import_zod6.z.array(import_zod6.z.object({
654
- EventID: import_zod6.z.string(),
655
- EventType: import_zod6.z.string(),
656
- Conference: import_zod6.z.string(),
657
- DivisionGroup: import_zod6.z.string(),
658
- EventPresetName: import_zod6.z.string(),
659
- StartDateTime: import_zod6.z.string(),
660
- EndDateTime: import_zod6.z.string(),
661
- TournamentRoundTimes: import_zod6.z.array(import_zod6.z.object({
662
- StartDateTime: import_zod6.z.string(),
663
- EndDateTime: import_zod6.z.string()
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: import_zod6.z.array(import_zod6.z.object({
667
- id: import_zod6.z.string(),
668
- key: import_zod6.z.string(),
669
- isSuper: import_zod6.z.boolean(),
670
- gamePods: import_zod6.z.array(import_zod6.z.string()),
671
- timezone: import_zod6.z.string(),
672
- superConference: import_zod6.z.string().optional(),
673
- leaderboardPlayoffQualificationDateTime: import_zod6.z.string(),
674
- leaderboardPromotionFinalizationDateTime: import_zod6.z.string()
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: import_zod6.z.array(import_zod6.z.object({
677
- Division: import_zod6.z.number(),
678
- DivisionName: import_zod6.z.string(),
679
- DivisionGroup: import_zod6.z.string(),
680
- EventPresetName: import_zod6.z.string()
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: import_zod6.z.array(import_zod6.z.object({
683
- playoffThresholdType: import_zod6.z.string(),
684
- playoffThresholdValue: import_zod6.z.number(),
685
- promotionThresholdType: import_zod6.z.string(),
686
- promotionThresholdValue: import_zod6.z.number(),
687
- shouldPromoteToSuperConference: import_zod6.z.boolean(),
688
- skipReseedCriteria: import_zod6.z.string(),
689
- conference: import_zod6.z.string().optional(),
690
- division: import_zod6.z.number().optional(),
691
- promotionConference: import_zod6.z.string().optional(),
692
- skipReseedCriteriaValue: import_zod6.z.number().optional()
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: import_zod6.z.object({
695
- PRO: import_zod6.z.object({
696
- EventPresetsByEventType: import_zod6.z.object({
697
- LEAGUE: import_zod6.z.object({
698
- EventPresetName: import_zod6.z.string(),
699
- eventType: import_zod6.z.string(),
700
- bestOfN: import_zod6.z.number(),
701
- matchmakingStrategy: import_zod6.z.string(),
702
- queueID: import_zod6.z.string(),
703
- pointsConfig: import_zod6.z.object({
704
- PointsForWin: import_zod6.z.number(),
705
- PointsForLoss: import_zod6.z.number()
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: import_zod6.z.object({
709
- EventPresetName: import_zod6.z.string(),
710
- eventType: import_zod6.z.string(),
711
- bestOfN: import_zod6.z.number(),
712
- matchmakingStrategy: import_zod6.z.string(),
713
- queueID: import_zod6.z.string(),
714
- pointsConfig: import_zod6.z.object({
715
- PointsForWin: import_zod6.z.number(),
716
- PointsForLoss: import_zod6.z.number()
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: import_zod6.z.object({
720
- EventPresetName: import_zod6.z.string(),
721
- eventType: import_zod6.z.string(),
722
- bestOfN: import_zod6.z.number(),
723
- matchmakingStrategy: import_zod6.z.string(),
724
- queueID: import_zod6.z.string(),
725
- pointsConfig: import_zod6.z.object({
726
- PointsForWin: import_zod6.z.number(),
727
- PointsForLoss: import_zod6.z.number()
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: import_zod6.z.object({
733
- EventPresetsByEventType: import_zod6.z.object({
734
- LEAGUE: import_zod6.z.object({
735
- EventPresetName: import_zod6.z.string(),
736
- eventType: import_zod6.z.string(),
737
- bestOfN: import_zod6.z.number(),
738
- matchmakingStrategy: import_zod6.z.string(),
739
- queueID: import_zod6.z.string(),
740
- pointsConfig: import_zod6.z.object({
741
- PointsForWin: import_zod6.z.number(),
742
- PointsForLoss: import_zod6.z.number()
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: import_zod6.z.object({
746
- EventPresetName: import_zod6.z.string(),
747
- eventType: import_zod6.z.string(),
748
- bestOfN: import_zod6.z.number(),
749
- matchmakingStrategy: import_zod6.z.string(),
750
- queueID: import_zod6.z.string(),
751
- pointsConfig: import_zod6.z.object({
752
- PointsForWin: import_zod6.z.number(),
753
- PointsForLoss: import_zod6.z.number()
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: import_zod6.z.object({
757
- EventPresetName: import_zod6.z.string(),
758
- eventType: import_zod6.z.string(),
759
- bestOfN: import_zod6.z.number(),
760
- matchmakingStrategy: import_zod6.z.string(),
761
- queueID: import_zod6.z.string(),
762
- pointsConfig: import_zod6.z.object({
763
- PointsForWin: import_zod6.z.number(),
764
- PointsForLoss: import_zod6.z.number()
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: import_zod6.z.number(),
771
- ChampionshipPointRequirement: import_zod6.z.number(),
772
- ChampionshipEventID: import_zod6.z.string(),
773
- EnrollmentPhaseStartDateTime: import_zod6.z.string(),
774
- EnrollmentPhaseEndDateTime: import_zod6.z.string(),
775
- LeaderboardPlayoffQualificationDateTime: import_zod6.z.string(),
776
- LeaderboardPromotionFinalizationDateTime: import_zod6.z.string(),
777
- LeaderboardFinalizationDateTime: import_zod6.z.string(),
778
- ContenderEligibilityExpiryDateTime: import_zod6.z.string(),
779
- StageLockTime: import_zod6.z.string(),
780
- ParticipationRewardsActIDs: import_zod6.z.array(import_zod6.z.string()),
781
- ParticipationRewards: import_zod6.z.object({
782
- EntitlementRewards: import_zod6.z.array(import_zod6.z.object({
783
- ItemTypeID: import_zod6.z.string(),
784
- ItemID: import_zod6.z.string(),
785
- Amount: import_zod6.z.number()
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: import_zod6.z.object({}),
789
- DivisionWinnerRewards: import_zod6.z.object({
790
- ADVANCED: import_zod6.z.object({
791
- EntitlementRewards: import_zod6.z.array(import_zod6.z.object({
792
- ItemTypeID: import_zod6.z.string(),
793
- ItemID: import_zod6.z.string(),
794
- Amount: import_zod6.z.number()
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: import_zod6.z.object({
798
- EntitlementRewards: import_zod6.z.array(import_zod6.z.object({
799
- ItemTypeID: import_zod6.z.string(),
800
- ItemID: import_zod6.z.string(),
801
- Amount: import_zod6.z.number()
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: import_zod6.z.object({
805
- EntitlementRewards: import_zod6.z.array(import_zod6.z.object({
806
- ItemTypeID: import_zod6.z.string(),
807
- ItemID: import_zod6.z.string(),
808
- Amount: import_zod6.z.number()
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: import_zod6.z.object({
812
- EntitlementRewards: import_zod6.z.array(import_zod6.z.object({
813
- ItemTypeID: import_zod6.z.string(),
814
- ItemID: import_zod6.z.string(),
815
- Amount: import_zod6.z.number()
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: import_zod6.z.object({
819
- EntitlementRewards: import_zod6.z.array(import_zod6.z.object({
820
- ItemTypeID: import_zod6.z.string(),
821
- ItemID: import_zod6.z.string(),
822
- Amount: import_zod6.z.number()
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: import_zod6.z.object({
826
- EntitlementRewards: import_zod6.z.array(import_zod6.z.object({
827
- ItemTypeID: import_zod6.z.string(),
828
- ItemID: import_zod6.z.string(),
829
- Amount: import_zod6.z.number()
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: import_zod6.z.number()
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": import_zod6.z.object({
845
- ID: import_zod6.z.string(),
846
- Name: import_zod6.z.string(),
847
- PreviousPremierSeasonID: import_zod6.z.string(),
848
- NextPremierSeasonID: import_zod6.z.string(),
849
- IsActive: import_zod6.z.boolean(),
850
- StartTime: import_zod6.z.string(),
851
- EndTime: import_zod6.z.string(),
852
- Events: import_zod6.z.array(import_zod6.z.object({
853
- ID: import_zod6.z.string(),
854
- Type: import_zod6.z.string(),
855
- StartDateTime: import_zod6.z.string(),
856
- EndDateTime: import_zod6.z.string(),
857
- MapSelectionStrategy: import_zod6.z.string(),
858
- MapPoolMapIDs: import_zod6.z.array(import_zod6.z.string()),
859
- PointsRequiredToParticipate: import_zod6.z.number()
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: import_zod6.z.array(import_zod6.z.object({
862
- EventID: import_zod6.z.string(),
863
- EventType: import_zod6.z.string(),
864
- Conference: import_zod6.z.string(),
865
- DivisionGroup: import_zod6.z.string(),
866
- EventPresetName: import_zod6.z.string(),
867
- StartDateTime: import_zod6.z.string(),
868
- EndDateTime: import_zod6.z.string(),
869
- TournamentRoundTimes: import_zod6.z.array(import_zod6.z.object({
870
- StartDateTime: import_zod6.z.string(),
871
- EndDateTime: import_zod6.z.string()
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: import_zod6.z.array(import_zod6.z.object({
875
- id: import_zod6.z.string(),
876
- key: import_zod6.z.string(),
877
- isSuper: import_zod6.z.boolean(),
878
- gamePods: import_zod6.z.array(import_zod6.z.string()),
879
- timezone: import_zod6.z.string(),
880
- superConference: import_zod6.z.string().optional(),
881
- leaderboardPlayoffQualificationDateTime: import_zod6.z.string(),
882
- leaderboardPromotionFinalizationDateTime: import_zod6.z.string()
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: import_zod6.z.array(import_zod6.z.object({
885
- Division: import_zod6.z.number(),
886
- DivisionName: import_zod6.z.string(),
887
- DivisionGroup: import_zod6.z.string(),
888
- EventPresetName: import_zod6.z.string()
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: import_zod6.z.array(import_zod6.z.object({
891
- playoffThresholdType: import_zod6.z.string(),
892
- playoffThresholdValue: import_zod6.z.number(),
893
- promotionThresholdType: import_zod6.z.string(),
894
- promotionThresholdValue: import_zod6.z.number(),
895
- shouldPromoteToSuperConference: import_zod6.z.boolean(),
896
- skipReseedCriteria: import_zod6.z.string(),
897
- conference: import_zod6.z.string().optional(),
898
- division: import_zod6.z.number().optional(),
899
- promotionConference: import_zod6.z.string().optional(),
900
- skipReseedCriteriaValue: import_zod6.z.number().optional()
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: import_zod6.z.object({
903
- PRO: import_zod6.z.object({
904
- EventPresetsByEventType: import_zod6.z.object({
905
- LEAGUE: import_zod6.z.object({
906
- EventPresetName: import_zod6.z.string(),
907
- eventType: import_zod6.z.string(),
908
- bestOfN: import_zod6.z.number(),
909
- matchmakingStrategy: import_zod6.z.string(),
910
- queueID: import_zod6.z.string(),
911
- pointsConfig: import_zod6.z.object({
912
- PointsForWin: import_zod6.z.number(),
913
- PointsForLoss: import_zod6.z.number()
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: import_zod6.z.object({
917
- EventPresetName: import_zod6.z.string(),
918
- eventType: import_zod6.z.string(),
919
- bestOfN: import_zod6.z.number(),
920
- matchmakingStrategy: import_zod6.z.string(),
921
- queueID: import_zod6.z.string(),
922
- pointsConfig: import_zod6.z.object({
923
- PointsForWin: import_zod6.z.number(),
924
- PointsForLoss: import_zod6.z.number()
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: import_zod6.z.object({
928
- EventPresetName: import_zod6.z.string(),
929
- eventType: import_zod6.z.string(),
930
- bestOfN: import_zod6.z.number(),
931
- matchmakingStrategy: import_zod6.z.string(),
932
- queueID: import_zod6.z.string(),
933
- pointsConfig: import_zod6.z.object({
934
- PointsForWin: import_zod6.z.number(),
935
- PointsForLoss: import_zod6.z.number()
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: import_zod6.z.object({
941
- EventPresetsByEventType: import_zod6.z.object({
942
- LEAGUE: import_zod6.z.object({
943
- EventPresetName: import_zod6.z.string(),
944
- eventType: import_zod6.z.string(),
945
- bestOfN: import_zod6.z.number(),
946
- matchmakingStrategy: import_zod6.z.string(),
947
- queueID: import_zod6.z.string(),
948
- pointsConfig: import_zod6.z.object({
949
- PointsForWin: import_zod6.z.number(),
950
- PointsForLoss: import_zod6.z.number()
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: import_zod6.z.object({
954
- EventPresetName: import_zod6.z.string(),
955
- eventType: import_zod6.z.string(),
956
- bestOfN: import_zod6.z.number(),
957
- matchmakingStrategy: import_zod6.z.string(),
958
- queueID: import_zod6.z.string(),
959
- pointsConfig: import_zod6.z.object({
960
- PointsForWin: import_zod6.z.number(),
961
- PointsForLoss: import_zod6.z.number()
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: import_zod6.z.object({
965
- EventPresetName: import_zod6.z.string(),
966
- eventType: import_zod6.z.string(),
967
- bestOfN: import_zod6.z.number(),
968
- matchmakingStrategy: import_zod6.z.string(),
969
- queueID: import_zod6.z.string(),
970
- pointsConfig: import_zod6.z.object({
971
- PointsForWin: import_zod6.z.number(),
972
- PointsForLoss: import_zod6.z.number()
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: import_zod6.z.number(),
979
- ChampionshipPointRequirement: import_zod6.z.number(),
980
- ChampionshipEventID: import_zod6.z.string(),
981
- EnrollmentPhaseStartDateTime: import_zod6.z.string(),
982
- EnrollmentPhaseEndDateTime: import_zod6.z.string(),
983
- LeaderboardPlayoffQualificationDateTime: import_zod6.z.string(),
984
- LeaderboardPromotionFinalizationDateTime: import_zod6.z.string(),
985
- LeaderboardFinalizationDateTime: import_zod6.z.string(),
986
- ContenderEligibilityExpiryDateTime: import_zod6.z.string(),
987
- StageLockTime: import_zod6.z.string(),
988
- ParticipationRewards: import_zod6.z.object({}),
989
- TournamentWinnerRewards: import_zod6.z.object({}),
990
- DivisionWinnerRewards: import_zod6.z.object({}),
991
- RosterRecentActivityNumSeasons: import_zod6.z.number()
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": import_zod6.z.object({
1002
- PremierConferences: import_zod6.z.array(import_zod6.z.object({
1003
- id: import_zod6.z.string(),
1004
- key: import_zod6.z.string(),
1005
- isSuper: import_zod6.z.boolean(),
1006
- gamePods: import_zod6.z.array(import_zod6.z.string()),
1007
- timezone: import_zod6.z.string(),
1008
- superConference: import_zod6.z.string().optional(),
1009
- leaderboardPlayoffQualificationDateTime: import_zod6.z.string(),
1010
- leaderboardPromotionFinalizationDateTime: import_zod6.z.string()
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": import_zod6.z.object({
1022
- leagueMatchLimit: import_zod6.z.number(),
1023
- tournamentLimit: import_zod6.z.number(),
1024
- timeUntilNextResetSeconds: import_zod6.z.number()
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": import_zod6.z.object({
1035
- subject: import_zod6.z.string(),
1036
- accountVerificationStatus: import_zod6.z.boolean(),
1037
- rankedPlacementCompletionStatus: import_zod6.z.boolean(),
1038
- matchLimitReached: import_zod6.z.boolean(),
1039
- isOnProvidedRoster: import_zod6.z.boolean()
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": import_zod6.z.object({
1050
- puuid: import_zod6.z.string(),
1051
- rosterId: import_zod6.z.string(),
1052
- version: import_zod6.z.number(),
1053
- createdAt: import_zod6.z.number(),
1054
- updatedAt: import_zod6.z.number()
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": import_zod6.z.object({
1065
- puuid: import_zod6.z.string(),
1066
- rosterId: import_zod6.z.string(),
1067
- prestige: import_zod6.z.object({
1068
- earnedPrestige: import_zod6.z.boolean(),
1069
- earnedAura: import_zod6.z.boolean(),
1070
- showTag: import_zod6.z.boolean(),
1071
- showPlating: import_zod6.z.boolean(),
1072
- showAura: import_zod6.z.boolean()
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: import_zod6.z.string(),
1075
- socialVersion: import_zod6.z.number(),
1076
- premierVersion: import_zod6.z.number(),
1077
- updatedAt: import_zod6.z.number(),
1078
- seasons: import_zod6.z.object({
1079
- "08d281c5-4426-3aaa-3316-ebaf5f2c858a": import_zod6.z.object({
1080
- seasonId: import_zod6.z.string(),
1081
- hasEarnedPrestigeAura: import_zod6.z.boolean(),
1082
- hasEarnedParticipation: import_zod6.z.boolean(),
1083
- hasEarnedDivisionWinner: import_zod6.z.boolean()
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": import_zod6.z.object({
1086
- seasonId: import_zod6.z.string(),
1087
- hasEarnedPrestigeAura: import_zod6.z.boolean(),
1088
- hasEarnedParticipation: import_zod6.z.boolean(),
1089
- hasEarnedDivisionWinner: import_zod6.z.boolean()
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 import_zod7 = require("zod");
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": import_zod7.z.object({
1105
- Subject: import_zod7.z.string(),
1106
- Version: import_zod7.z.number(),
1107
- Guns: import_zod7.z.array(import_zod7.z.object({
1108
- ID: import_zod7.z.string(),
1109
- SkinID: import_zod7.z.string(),
1110
- SkinLevelID: import_zod7.z.string(),
1111
- ChromaID: import_zod7.z.string(),
1112
- CharmInstanceID: import_zod7.z.string().optional(),
1113
- CharmID: import_zod7.z.string().optional(),
1114
- CharmLevelID: import_zod7.z.string().optional()
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: import_zod7.z.array(import_zod7.z.object({
1117
- TypeID: import_zod7.z.string(),
1118
- AssetID: import_zod7.z.string()
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: import_zod7.z.object({}),
1121
- Identity: import_zod7.z.object({
1122
- PlayerCardID: import_zod7.z.string(),
1123
- PlayerTitleID: import_zod7.z.string(),
1124
- AccountLevel: import_zod7.z.number(),
1125
- PreferredLevelBorderID: import_zod7.z.string(),
1126
- HideAccountLevel: import_zod7.z.boolean()
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: import_zod7.z.boolean()
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 import_zod8 = require("zod");
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": import_zod8.z.object({
1142
- Subject: import_zod8.z.string()
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": import_zod8.z.object({
1153
- Subject: import_zod8.z.string()
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 import_zod9 = require("zod");
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": import_zod9.z.object({
1167
- AgentStore: import_zod9.z.object({
1168
- AgentStoreOffers: import_zod9.z.array(import_zod9.z.object({
1169
- AgentID: import_zod9.z.string(),
1170
- StoreOffers: import_zod9.z.array(import_zod9.z.object({
1171
- OfferID: import_zod9.z.string(),
1172
- IsDirectPurchase: import_zod9.z.boolean(),
1173
- StartDate: import_zod9.z.string(),
1174
- Cost: import_zod9.z.record(import_zod9.z.string(), import_zod9.z.number()),
1175
- Rewards: import_zod9.z.array(import_zod9.z.object({
1176
- ItemTypeID: import_zod9.z.string(),
1177
- ItemID: import_zod9.z.string(),
1178
- Quantity: import_zod9.z.number()
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: import_zod9.z.string(),
1183
- NextFeaturedAgent: import_zod9.z.string()
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": import_zod9.z.object({
1195
- EntitlementsByTypes: import_zod9.z.array(import_zod9.z.object({
1196
- ItemTypeID: import_zod9.z.string(),
1197
- Entitlements: import_zod9.z.array(import_zod9.z.object({
1198
- TypeID: import_zod9.z.string(),
1199
- ItemID: import_zod9.z.string(),
1200
- InstanceID: import_zod9.z.string().optional()
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 import_zod10 = require("zod");
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": import_zod10.z.object({
1218
- FeaturedBundle: import_zod10.z.object({
1219
- Bundle: import_zod10.z.object({
1220
- ID: import_zod10.z.string(),
1221
- DataAssetID: import_zod10.z.string(),
1222
- CurrencyID: import_zod10.z.string(),
1223
- Items: import_zod10.z.array(import_zod10.z.object({
1224
- Item: import_zod10.z.object({
1225
- ItemTypeID: import_zod10.z.string(),
1226
- ItemID: import_zod10.z.string(),
1227
- Amount: import_zod10.z.number()
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: import_zod10.z.number(),
1230
- CurrencyID: import_zod10.z.string(),
1231
- DiscountPercent: import_zod10.z.number(),
1232
- DiscountedPrice: import_zod10.z.number(),
1233
- IsPromoItem: import_zod10.z.boolean()
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: import_zod10.z.array(import_zod10.z.object({
1236
- BundleItemOfferID: import_zod10.z.string(),
1237
- Offer: import_zod10.z.object({
1238
- OfferID: import_zod10.z.string(),
1239
- IsDirectPurchase: import_zod10.z.boolean(),
1240
- StartDate: import_zod10.z.string(),
1241
- Cost: import_zod10.z.object({
1242
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
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: import_zod10.z.array(import_zod10.z.object({
1245
- ItemTypeID: import_zod10.z.string(),
1246
- ItemID: import_zod10.z.string(),
1247
- Quantity: import_zod10.z.number()
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: import_zod10.z.number(),
1251
- DiscountedCost: import_zod10.z.object({
1252
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
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: import_zod10.z.object({
1256
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
1800
+ TotalBaseCost: import_zod15.z.object({
1801
+ "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
1257
1802
  }),
1258
- TotalDiscountedCost: import_zod10.z.object({
1259
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
1803
+ TotalDiscountedCost: import_zod15.z.object({
1804
+ "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
1260
1805
  }),
1261
- TotalDiscountPercent: import_zod10.z.number(),
1262
- DurationRemainingInSeconds: import_zod10.z.number(),
1263
- WholesaleOnly: import_zod10.z.boolean(),
1264
- IsGiftable: import_zod10.z.number()
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: import_zod10.z.array(import_zod10.z.object({
1267
- ID: import_zod10.z.string(),
1268
- DataAssetID: import_zod10.z.string(),
1269
- CurrencyID: import_zod10.z.string(),
1270
- Items: import_zod10.z.array(import_zod10.z.object({
1271
- Item: import_zod10.z.object({
1272
- ItemTypeID: import_zod10.z.string(),
1273
- ItemID: import_zod10.z.string(),
1274
- Amount: import_zod10.z.number()
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: import_zod10.z.number(),
1277
- CurrencyID: import_zod10.z.string(),
1278
- DiscountPercent: import_zod10.z.number(),
1279
- DiscountedPrice: import_zod10.z.number(),
1280
- IsPromoItem: import_zod10.z.boolean()
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: import_zod10.z.array(import_zod10.z.object({
1283
- BundleItemOfferID: import_zod10.z.string(),
1284
- Offer: import_zod10.z.object({
1285
- OfferID: import_zod10.z.string(),
1286
- IsDirectPurchase: import_zod10.z.boolean(),
1287
- StartDate: import_zod10.z.string(),
1288
- Cost: import_zod10.z.object({
1289
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
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: import_zod10.z.array(import_zod10.z.object({
1292
- ItemTypeID: import_zod10.z.string(),
1293
- ItemID: import_zod10.z.string(),
1294
- Quantity: import_zod10.z.number()
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: import_zod10.z.number(),
1298
- DiscountedCost: import_zod10.z.object({
1299
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
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: import_zod10.z.object({
1303
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
1847
+ TotalBaseCost: import_zod15.z.object({
1848
+ "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
1304
1849
  }),
1305
- TotalDiscountedCost: import_zod10.z.object({
1306
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
1850
+ TotalDiscountedCost: import_zod15.z.object({
1851
+ "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
1307
1852
  }),
1308
- TotalDiscountPercent: import_zod10.z.number(),
1309
- DurationRemainingInSeconds: import_zod10.z.number(),
1310
- WholesaleOnly: import_zod10.z.boolean(),
1311
- IsGiftable: import_zod10.z.number()
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: import_zod10.z.array(import_zod10.z.object({
1314
- Type: import_zod10.z.number(),
1315
- Entry: import_zod10.z.object({
1316
- Bundle: import_zod10.z.object({
1317
- ID: import_zod10.z.string(),
1318
- DataAssetID: import_zod10.z.string(),
1319
- CurrencyID: import_zod10.z.string(),
1320
- Items: import_zod10.z.array(import_zod10.z.object({
1321
- Item: import_zod10.z.object({
1322
- ItemTypeID: import_zod10.z.string(),
1323
- ItemID: import_zod10.z.string(),
1324
- Amount: import_zod10.z.number()
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: import_zod10.z.number(),
1327
- CurrencyID: import_zod10.z.string(),
1328
- DiscountPercent: import_zod10.z.number(),
1329
- DiscountedPrice: import_zod10.z.number(),
1330
- IsPromoItem: import_zod10.z.boolean()
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: import_zod10.z.array(import_zod10.z.object({
1333
- BundleItemOfferID: import_zod10.z.string(),
1334
- Offer: import_zod10.z.object({
1335
- OfferID: import_zod10.z.string(),
1336
- IsDirectPurchase: import_zod10.z.boolean(),
1337
- StartDate: import_zod10.z.string(),
1338
- Cost: import_zod10.z.object({
1339
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
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: import_zod10.z.array(import_zod10.z.object({
1342
- ItemTypeID: import_zod10.z.string(),
1343
- ItemID: import_zod10.z.string(),
1344
- Quantity: import_zod10.z.number()
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: import_zod10.z.number(),
1348
- DiscountedCost: import_zod10.z.object({
1349
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
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: import_zod10.z.object({
1353
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
1897
+ TotalBaseCost: import_zod15.z.object({
1898
+ "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
1354
1899
  }),
1355
- TotalDiscountedCost: import_zod10.z.object({
1356
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
1900
+ TotalDiscountedCost: import_zod15.z.object({
1901
+ "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
1357
1902
  }),
1358
- TotalDiscountPercent: import_zod10.z.number(),
1359
- DurationRemainingInSeconds: import_zod10.z.number(),
1360
- WholesaleOnly: import_zod10.z.boolean(),
1361
- IsGiftable: import_zod10.z.number()
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: import_zod10.z.number()
1910
+ BundleRemainingDurationInSeconds: import_zod15.z.number()
1366
1911
  }),
1367
- SkinsPanelLayout: import_zod10.z.object({
1368
- SingleItemOffers: import_zod10.z.array(import_zod10.z.string()),
1369
- SingleItemStoreOffers: import_zod10.z.array(import_zod10.z.object({
1370
- OfferID: import_zod10.z.string(),
1371
- IsDirectPurchase: import_zod10.z.boolean(),
1372
- StartDate: import_zod10.z.string(),
1373
- Cost: import_zod10.z.object({
1374
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
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: import_zod10.z.array(import_zod10.z.object({
1377
- ItemTypeID: import_zod10.z.string(),
1378
- ItemID: import_zod10.z.string(),
1379
- Quantity: import_zod10.z.number()
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: import_zod10.z.number()
1927
+ SingleItemOffersRemainingDurationInSeconds: import_zod15.z.number()
1383
1928
  }),
1384
- UpgradeCurrencyStore: import_zod10.z.object({
1385
- UpgradeCurrencyOffers: import_zod10.z.array(import_zod10.z.object({
1386
- OfferID: import_zod10.z.string(),
1387
- StorefrontItemID: import_zod10.z.string(),
1388
- Offer: import_zod10.z.object({
1389
- OfferID: import_zod10.z.string(),
1390
- IsDirectPurchase: import_zod10.z.boolean(),
1391
- StartDate: import_zod10.z.string(),
1392
- Cost: import_zod10.z.object({
1393
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
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: import_zod10.z.array(import_zod10.z.object({
1396
- ItemTypeID: import_zod10.z.string(),
1397
- ItemID: import_zod10.z.string(),
1398
- Quantity: import_zod10.z.number()
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: import_zod10.z.number()
1946
+ DiscountedPercent: import_zod15.z.number()
1402
1947
  }))
1403
1948
  }),
1404
- AccessoryStore: import_zod10.z.object({
1405
- AccessoryStoreOffers: import_zod10.z.array(import_zod10.z.object({
1406
- Offer: import_zod10.z.object({
1407
- OfferID: import_zod10.z.string(),
1408
- IsDirectPurchase: import_zod10.z.boolean(),
1409
- StartDate: import_zod10.z.string(),
1410
- Cost: import_zod10.z.object({
1411
- "85ca954a-41f2-ce94-9b45-8ca3dd39a00d": import_zod10.z.number()
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: import_zod10.z.array(import_zod10.z.object({
1414
- ItemTypeID: import_zod10.z.string(),
1415
- ItemID: import_zod10.z.string(),
1416
- Quantity: import_zod10.z.number()
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: import_zod10.z.string()
1964
+ ContractID: import_zod15.z.string()
1420
1965
  })),
1421
- AccessoryStoreRemainingDurationInSeconds: import_zod10.z.number(),
1422
- StorefrontID: import_zod10.z.string()
1966
+ AccessoryStoreRemainingDurationInSeconds: import_zod15.z.number(),
1967
+ StorefrontID: import_zod15.z.string()
1423
1968
  }),
1424
- PluginStores: import_zod10.z.array(import_zod10.z.object({
1425
- PluginID: import_zod10.z.string(),
1426
- PluginOffers: import_zod10.z.object({
1427
- StoreOffers: import_zod10.z.array(import_zod10.z.object({
1428
- PurchaseInformation: import_zod10.z.object({
1429
- DataAssetID: import_zod10.z.string(),
1430
- OfferID: import_zod10.z.string(),
1431
- OfferType: import_zod10.z.number(),
1432
- StartDate: import_zod10.z.string(),
1433
- PrimaryCurrencyID: import_zod10.z.string(),
1434
- Cost: import_zod10.z.object({
1435
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
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: import_zod10.z.object({
1438
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
1982
+ DiscountedCost: import_zod15.z.object({
1983
+ "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
1439
1984
  }),
1440
- DiscountedPercentage: import_zod10.z.number(),
1441
- WholesaleOnly: import_zod10.z.boolean(),
1442
- IsGiftable: import_zod10.z.number()
1985
+ DiscountedPercentage: import_zod15.z.number(),
1986
+ WholesaleOnly: import_zod15.z.boolean(),
1987
+ IsGiftable: import_zod15.z.number()
1443
1988
  }),
1444
- SubOffers: import_zod10.z.array(import_zod10.z.object({
1445
- PurchaseInformation: import_zod10.z.object({
1446
- DataAssetID: import_zod10.z.string(),
1447
- OfferID: import_zod10.z.string(),
1448
- OfferType: import_zod10.z.number(),
1449
- StartDate: import_zod10.z.string(),
1450
- PrimaryCurrencyID: import_zod10.z.string(),
1451
- Cost: import_zod10.z.object({
1452
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
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: import_zod10.z.object({
1455
- "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod10.z.number()
1999
+ DiscountedCost: import_zod15.z.object({
2000
+ "85ad13f7-3d1b-5128-9eb2-7cd8ee0b5741": import_zod15.z.number()
1456
2001
  }),
1457
- DiscountedPercentage: import_zod10.z.number(),
1458
- Rewards: import_zod10.z.array(import_zod10.z.object({
1459
- ItemTypeID: import_zod10.z.string(),
1460
- ItemID: import_zod10.z.string(),
1461
- Quantity: import_zod10.z.number()
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: import_zod10.z.boolean(),
1464
- IsGiftable: import_zod10.z.number()
2008
+ WholesaleOnly: import_zod15.z.boolean(),
2009
+ IsGiftable: import_zod15.z.number()
1465
2010
  })
1466
2011
  }))
1467
2012
  })),
1468
- RemainingDurationInSeconds: import_zod10.z.number()
2013
+ RemainingDurationInSeconds: import_zod15.z.number()
1469
2014
  }),
1470
- StartDate: import_zod10.z.string()
2015
+ StartDate: import_zod15.z.string()
1471
2016
  }))
1472
2017
  }) }
1473
2018
  };
1474
2019
 
1475
2020
  // src/endpoints/riot/voice.ts
1476
- var import_zod11 = require("zod");
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": import_zod11.z.object({
1485
- fastEnergyMeter: import_zod11.z.number(),
1486
- isLoopbackEnabled: import_zod11.z.boolean(),
1487
- isMicActive: import_zod11.z.boolean(),
1488
- isSpeakerActive: import_zod11.z.boolean(),
1489
- micEnergy: import_zod11.z.number(),
1490
- micVolume: import_zod11.z.number(),
1491
- noiseFloorMeter: import_zod11.z.number(),
1492
- speakerEnergy: import_zod11.z.number(),
1493
- speakerVolume: import_zod11.z.number(),
1494
- speechThresholdMeter: import_zod11.z.number()
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": import_zod11.z.array(import_zod11.z.object({
1505
- handle: import_zod11.z.string(),
1506
- is_current_device: import_zod11.z.boolean(),
1507
- is_default: import_zod11.z.boolean(),
1508
- is_effective_device: import_zod11.z.boolean(),
1509
- name: import_zod11.z.string()
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": import_zod11.z.array(import_zod11.z.object({
1520
- handle: import_zod11.z.string(),
1521
- is_current_device: import_zod11.z.boolean(),
1522
- is_default: import_zod11.z.boolean(),
1523
- is_effective_device: import_zod11.z.boolean(),
1524
- name: import_zod11.z.string()
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: import_valorant_api_types.endpoints.fetchContentEndpoint,
1531
- accountXp: import_valorant_api_types.endpoints.accountXPEndpoint,
1532
- playerLoadout: import_valorant_api_types.endpoints.playerLoadoutEndpoint,
1533
- setPlayerLoadout: import_valorant_api_types.endpoints.setPlayerLoadoutEndpoint,
1534
- playerMmr: import_valorant_api_types.endpoints.playerMMREndpoint,
1535
- matchHistory: import_valorant_api_types.endpoints.matchHistoryEndpoint,
1536
- matchDetails: import_valorant_api_types.endpoints.matchDetailsEndpoint,
1537
- competitiveUpdates: import_valorant_api_types.endpoints.competitiveUpdatesEndpoint,
1538
- leaderboard: import_valorant_api_types.endpoints.leaderboardEndpoint,
1539
- penalties: import_valorant_api_types.endpoints.penaltiesEndpoint,
1540
- config: import_valorant_api_types.endpoints.configEndpoint,
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 import_valorant_api_types2 = require("valorant-api-types");
2090
+ var import_valorant_api_types11 = require("valorant-api-types");
1547
2091
  var party = {
1548
- get: import_valorant_api_types2.endpoints.partyEndpoint,
1549
- player: import_valorant_api_types2.endpoints.partyPlayerEndpoint,
1550
- removePlayer: import_valorant_api_types2.endpoints.partyRemovePlayerEndpoint,
1551
- setMemberReady: import_valorant_api_types2.endpoints.partySetMemberReadyEndpoint,
1552
- refreshCompetitiveTier: import_valorant_api_types2.endpoints.refreshCompetitiveTierEndpoint,
1553
- refreshPlayerIdentity: import_valorant_api_types2.endpoints.refreshPlayerIdentityEndpoint,
1554
- refreshPings: import_valorant_api_types2.endpoints.refreshPingsEndpoint,
1555
- changeQueue: import_valorant_api_types2.endpoints.changeQueueEndpoint,
1556
- startCustomGame: import_valorant_api_types2.endpoints.startCustomGameEndpoint,
1557
- enterMatchmakingQueue: import_valorant_api_types2.endpoints.enterMatchmakingQueueEndpoint,
1558
- leaveMatchmakingQueue: import_valorant_api_types2.endpoints.leaveMatchmakingQueueEndpoint,
1559
- setAccessibility: import_valorant_api_types2.endpoints.setPartyAccessibilityEndpoint,
1560
- setCustomGameSettings: import_valorant_api_types2.endpoints.setCustomGameSettingsEndpoint,
1561
- invite: import_valorant_api_types2.endpoints.partyInviteEndpoint,
1562
- requestToJoin: import_valorant_api_types2.endpoints.partyRequestEndpoint,
1563
- declineRequest: import_valorant_api_types2.endpoints.partyDeclineEndpoint,
1564
- customGameConfigs: import_valorant_api_types2.endpoints.customGameConfigsEndpoint,
1565
- chatToken: import_valorant_api_types2.endpoints.partyChatTokenEndpoint,
1566
- voiceToken: import_valorant_api_types2.endpoints.partyVoiceTokenEndpoint,
1567
- disableCode: import_valorant_api_types2.endpoints.partyDisableCodeEndpoint,
1568
- generateCode: import_valorant_api_types2.endpoints.partyGenerateCodeEndpoint,
1569
- joinByCode: import_valorant_api_types2.endpoints.partyJoinByCodeEndpoint
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 import_valorant_api_types3 = require("valorant-api-types");
2117
+ var import_valorant_api_types12 = require("valorant-api-types");
1574
2118
  var store = {
1575
- prices: import_valorant_api_types3.endpoints.pricesEndpoint,
1576
- storefront: import_valorant_api_types3.endpoints.storefrontEndpoint,
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 import_valorant_api_types4 = require("valorant-api-types");
2127
+ var import_valorant_api_types13 = require("valorant-api-types");
1586
2128
  var pregame = {
1587
- player: import_valorant_api_types4.endpoints.pregamePlayerEndpoint,
1588
- match: import_valorant_api_types4.endpoints.pregameMatchEndpoint,
1589
- loadouts: import_valorant_api_types4.endpoints.pregameLoadoutsEndpoint,
1590
- selectCharacter: import_valorant_api_types4.endpoints.selectCharacterEndpoint,
1591
- lockCharacter: import_valorant_api_types4.endpoints.lockCharacterEndpoint,
1592
- quit: import_valorant_api_types4.endpoints.pregameQuitEndpoint
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 import_valorant_api_types5 = require("valorant-api-types");
2138
+ var import_valorant_api_types14 = require("valorant-api-types");
1597
2139
  var currentGame = {
1598
- player: import_valorant_api_types5.endpoints.currentGamePlayerEndpoint,
1599
- match: import_valorant_api_types5.endpoints.currentGameMatchEndpoint,
1600
- loadouts: import_valorant_api_types5.endpoints.currentGameLoadoutsEndpoint,
1601
- quit: import_valorant_api_types5.endpoints.currentGameQuitEndpoint
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 import_valorant_api_types6 = require("valorant-api-types");
2147
+ var import_valorant_api_types15 = require("valorant-api-types");
1606
2148
  var contracts = {
1607
- itemUpgrades: import_valorant_api_types6.endpoints.itemUpgradesEndpoint,
1608
- list: import_valorant_api_types6.endpoints.contractsEndpoint,
1609
- activate: import_valorant_api_types6.endpoints.activateContractEndpoint,
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 import_valorant_api_types7 = require("valorant-api-types");
2156
+ var import_valorant_api_types16 = require("valorant-api-types");
1615
2157
  var local = {
1616
- help: import_valorant_api_types7.endpoints.localHelpEndpoint,
1617
- sessions: import_valorant_api_types7.endpoints.sessionsEndpoint,
1618
- rsoUserInfo: import_valorant_api_types7.endpoints.rsoUserInfoEndpoint,
1619
- clientRegion: import_valorant_api_types7.endpoints.clientRegionEndpoint,
1620
- accountAlias: import_valorant_api_types7.endpoints.accountAliasEndpoint,
1621
- entitlementsToken: import_valorant_api_types7.endpoints.entitlementsTokenEndpoint,
1622
- chatSession: import_valorant_api_types7.endpoints.chatSessionEndpoint,
1623
- friends: import_valorant_api_types7.endpoints.friendsEndpoint,
1624
- sendFriendRequest: import_valorant_api_types7.endpoints.sendFriendRequestEndpoint,
1625
- removeFriendRequest: import_valorant_api_types7.endpoints.removeFriendRequestEndpoint,
1626
- presence: import_valorant_api_types7.endpoints.presenceEndpoint,
1627
- friendRequests: import_valorant_api_types7.endpoints.friendRequestsEndpoint,
1628
- swaggerDocs: import_valorant_api_types7.endpoints.localSwaggerDocsEndpoint,
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 import_valorant_api_types8 = require("valorant-api-types");
2184
+ var import_valorant_api_types17 = require("valorant-api-types");
1643
2185
  var chat = {
1644
- partyInfo: import_valorant_api_types8.endpoints.partyChatInfoEndpoint,
1645
- pregameInfo: import_valorant_api_types8.endpoints.pregameChatInfoEndpoint,
1646
- currentGameInfo: import_valorant_api_types8.endpoints.currentGameChatInfoEndpoint,
1647
- allInfo: import_valorant_api_types8.endpoints.allChatInfoEndpoint,
1648
- participants: import_valorant_api_types8.endpoints.chatParticipantsEndpoint,
1649
- send: import_valorant_api_types8.endpoints.sendChatEndpoint,
1650
- history: import_valorant_api_types8.endpoints.chatHistoryEndpoint,
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 import_valorant_api_types9 = require("valorant-api-types");
2240
+ var import_valorant_api_types18 = require("valorant-api-types");
1699
2241
  var auth = {
1700
- cookies: import_valorant_api_types9.endpoints.authCookiesEndpoint,
1701
- request: import_valorant_api_types9.endpoints.authRequestEndpoint,
1702
- multiFactor: import_valorant_api_types9.endpoints.multiFactorAuthenticationEndpoint,
1703
- cookieReauth: import_valorant_api_types9.endpoints.cookieReauthEndpoint,
1704
- entitlement: import_valorant_api_types9.endpoints.entitlementEndpoint,
1705
- playerInfo: import_valorant_api_types9.endpoints.playerInfoEndpoint,
1706
- riotGeo: import_valorant_api_types9.endpoints.riotGeoEndpoint,
1707
- pasToken: import_valorant_api_types9.endpoints.pasTokenEndpoint,
1708
- riotClientConfig: import_valorant_api_types9.endpoints.riotClientConfigEndpoint
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 import_zod14 = require("zod");
2254
+ var import_zod19 = require("zod");
1713
2255
 
1714
2256
  // src/endpoints/catalog/factory.ts
1715
- var import_zod12 = require("zod");
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", import_zod12.z.string().optional().describe("Language code such as `fr-FR`. Defaults to `en-US`.")],
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, import_zod12.z.array(schema), queryParams),
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 import_zod13 = require("zod");
1758
- var text = import_zod13.z.string().nullish();
1759
- var asset = import_zod13.z.object({
1760
- uuid: import_zod13.z.string(),
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: import_zod13.z.array(import_zod13.z.string()).nullish(),
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: import_zod13.z.boolean(),
1775
- role: import_zod13.z.object({ uuid: import_zod13.z.string(), displayName: text, description: text, displayIcon: text }).passthrough().nullish(),
1776
- abilities: import_zod13.z.array(import_zod13.z.object({ slot: import_zod13.z.string(), displayName: text, description: text, displayIcon: text }).passthrough()).nullish()
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: import_zod13.z.number(),
1784
- yMultiplier: import_zod13.z.number(),
1785
- xScalarToAdd: import_zod13.z.number(),
1786
- yScalarToAdd: import_zod13.z.number(),
1787
- callouts: import_zod13.z.array(import_zod13.z.object({ regionName: import_zod13.z.string(), superRegionName: import_zod13.z.string(), location: import_zod13.z.object({ x: import_zod13.z.number(), y: import_zod13.z.number() }) }).passthrough()).nullish()
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: import_zod13.z.string(),
1791
- defaultSkinUuid: import_zod13.z.string(),
2332
+ category: import_zod18.z.string(),
2333
+ defaultSkinUuid: import_zod18.z.string(),
1792
2334
  killStreamIcon: text,
1793
- weaponStats: import_zod13.z.object({}).passthrough().nullish(),
1794
- shopData: import_zod13.z.object({}).passthrough().nullish(),
1795
- skins: import_zod13.z.array(import_zod13.z.object({}).passthrough())
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: import_zod13.z.string(),
2340
+ themeUuid: import_zod18.z.string(),
1799
2341
  contentTierUuid: text,
1800
2342
  wallpaper: text,
1801
- chromas: import_zod13.z.array(asset.passthrough()),
1802
- levels: import_zod13.z.array(asset.passthrough())
2343
+ chromas: import_zod18.z.array(asset.passthrough()),
2344
+ levels: import_zod18.z.array(asset.passthrough())
1803
2345
  });
1804
- var seasonSchema = import_zod13.z.object({
1805
- uuid: import_zod13.z.string(),
2346
+ var seasonSchema = import_zod18.z.object({
2347
+ uuid: import_zod18.z.string(),
1806
2348
  displayName: text,
1807
2349
  type: text,
1808
- startTime: import_zod13.z.string(),
1809
- endTime: import_zod13.z.string(),
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 = import_zod13.z.object({
1814
- manifestId: import_zod13.z.string(),
1815
- branch: import_zod13.z.string(),
1816
- version: import_zod13.z.string(),
1817
- buildVersion: import_zod13.z.string(),
1818
- engineVersion: import_zod13.z.string(),
1819
- riotClientVersion: import_zod13.z.string().describe("Value of the X-Riot-ClientVersion header"),
1820
- riotClientBuild: import_zod13.z.string(),
1821
- buildDate: import_zod13.z.string()
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", import_zod14.z.boolean().optional().describe("Only return playable agents. Skips the duplicate Sova.")]];
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", import_zod14.z.object({ uuid: import_zod14.z.string(), tiers: import_zod14.z.array(import_zod14.z.object({ tier: import_zod14.z.number(), tierName: text, division: text, color: text }).passthrough()) }).passthrough());
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", import_zod14.z.object({ uuid: import_zod14.z.string(), displayName: text }).passthrough());
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", import_zod14.z.object({ uuid: import_zod14.z.string(), displayName: text, titleText: text }).passthrough());
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", import_zod14.z.object({ uuid: import_zod14.z.string(), seasonUuid: import_zod14.z.string(), startTime: import_zod14.z.string(), endTime: import_zod14.z.string() }).passthrough());
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 import_valorant_api_types10 = require("valorant-api-types");
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(import_valorant_api_types10.endpoints.cookieReauthEndpoint);
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 = btoa(JSON.stringify({
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 import_zod15 = require("zod");
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 import_zod15.ZodError) return { success: false, error: thrown };
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 import_zod15.ZodError([{ code: "custom", path: [], message: `Schema transform threw: ${message}` }]) };
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
- if (!ctx.has("clientVersion") && options?.fetchClientVersion !== false) {
2371
- await client.auth.fetchClientVersion().catch(() => void 0);
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: `Basic ${btoa(`riot:${ctx.require("localPassword")}`)}` },
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 import_valorant_api_types11 = require("valorant-api-types");
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, import_valorant_api_types11.typeToPrefix)({ type: endpoint2.type, shard: ctx.require("shard") });
3173
+ return (0, import_valorant_api_types20.typeToPrefix)({ type: endpoint2.type, shard: ctx.require("shard") });
2446
3174
  case "glz":
2447
- return (0, import_valorant_api_types11.typeToPrefix)({ type: "glz", shard: ctx.require("shard"), region: ctx.require("region") });
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, import_valorant_api_types11.typeToPrefix)({ type: "local", port: ctx.require("localPort") });
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"] = `Basic ${btoa(`riot:${ctx.require("localPassword")}`)}`;
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 schema = endpoint2.responses?.[String(response.status)];
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