From f37e7a5cbbdef6c09b49729df486a9a6e2051d0f Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Thu, 10 Feb 2022 18:55:31 -0800 Subject: [PATCH] Regen for bunch of spec override updates - https://github.com/RiotGames/developer-relations/issues/603 - https://github.com/RiotGames/developer-relations/issues/604 - https://github.com/RiotGames/developer-relations/issues/605 --- riven/src/endpoints.rs | 2 +- riven/src/meta.rs | 2 +- riven/src/models.rs | 377 ++++++++++++++++++++++++++++++++++++++++- 3 files changed, 378 insertions(+), 3 deletions(-) diff --git a/riven/src/endpoints.rs b/riven/src/endpoints.rs index 32dcfda..ae8e8c5 100644 --- a/riven/src/endpoints.rs +++ b/riven/src/endpoints.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version be7cba85eef6d2262d61d1befff94fe2d6628d8e +// Version 08f681e25b2fefe96794ab13b53fddfa096341ef //! Automatically generated endpoint handles. #![allow(clippy::let_and_return, clippy::too_many_arguments)] diff --git a/riven/src/meta.rs b/riven/src/meta.rs index e57d405..6ad3092 100644 --- a/riven/src/meta.rs +++ b/riven/src/meta.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version be7cba85eef6d2262d61d1befff94fe2d6628d8e +// Version 08f681e25b2fefe96794ab13b53fddfa096341ef //! Metadata about the Riot API and Riven. //! diff --git a/riven/src/models.rs b/riven/src/models.rs index 2670491..9453e31 100644 --- a/riven/src/models.rs +++ b/riven/src/models.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version be7cba85eef6d2262d61d1befff94fe2d6628d8e +// Version 08f681e25b2fefe96794ab13b53fddfa096341ef #![allow(missing_docs)] @@ -1076,6 +1076,9 @@ pub mod match_v5 { pub wards_placed: i32, #[serde(rename = "win")] pub win: bool, + #[serde(rename = "challenges")] + #[serde(skip_serializing_if = "Option::is_none")] + pub challenges: Option, } /// Perks data object. #[derive(Clone, Debug)] @@ -1187,6 +1190,330 @@ pub mod match_v5 { #[serde(rename = "info")] pub info: MatchTimelineInfo, } + /// ParticipantChallenges data object. + #[derive(Clone, Debug)] + #[derive(serde::Serialize, serde::Deserialize)] + #[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))] + pub struct ParticipantChallenges { + #[serde(rename = "12AssistStreakCount")] + #[serde(skip_serializing_if = "Option::is_none")] + pub x12_assist_streak_count: Option, + #[serde(rename = "abilityUses")] + #[serde(skip_serializing_if = "Option::is_none")] + pub ability_uses: Option, + #[serde(rename = "acesBefore15Minutes")] + #[serde(skip_serializing_if = "Option::is_none")] + pub aces_before15_minutes: Option, + #[serde(rename = "alliedJungleMonsterKills")] + #[serde(skip_serializing_if = "Option::is_none")] + pub allied_jungle_monster_kills: Option, + #[serde(rename = "baronBuffGoldAdvantageOverThreshold")] + #[serde(skip_serializing_if = "Option::is_none")] + pub baron_buff_gold_advantage_over_threshold: Option, + #[serde(rename = "baronTakedowns")] + #[serde(skip_serializing_if = "Option::is_none")] + pub baron_takedowns: Option, + #[serde(rename = "blastConeOppositeOpponentCount")] + #[serde(skip_serializing_if = "Option::is_none")] + pub blast_cone_opposite_opponent_count: Option, + #[serde(rename = "bountyGold")] + #[serde(skip_serializing_if = "Option::is_none")] + pub bounty_gold: Option, + #[serde(rename = "buffsStolen")] + #[serde(skip_serializing_if = "Option::is_none")] + pub buffs_stolen: Option, + #[serde(rename = "controlWardsPlaced")] + #[serde(skip_serializing_if = "Option::is_none")] + pub control_wards_placed: Option, + #[serde(rename = "controlWardTimeCoverageInRiverOrEnemyHalf")] + #[serde(skip_serializing_if = "Option::is_none")] + pub control_ward_time_coverage_in_river_or_enemy_half: Option, + #[serde(rename = "damagePerMinute")] + #[serde(skip_serializing_if = "Option::is_none")] + pub damage_per_minute: Option, + #[serde(rename = "damageTakenOnTeamPercentage")] + #[serde(skip_serializing_if = "Option::is_none")] + pub damage_taken_on_team_percentage: Option, + #[serde(rename = "dancedWithRiftHerald")] + #[serde(skip_serializing_if = "Option::is_none")] + pub danced_with_rift_herald: Option, + #[serde(rename = "deathsByEnemyChamps")] + #[serde(skip_serializing_if = "Option::is_none")] + pub deaths_by_enemy_champs: Option, + #[serde(rename = "doubleAces")] + #[serde(skip_serializing_if = "Option::is_none")] + pub double_aces: Option, + #[serde(rename = "dragonTakedowns")] + #[serde(skip_serializing_if = "Option::is_none")] + pub dragon_takedowns: Option, + #[serde(rename = "earliestBaron")] + #[serde(skip_serializing_if = "Option::is_none")] + pub earliest_baron: Option, + #[serde(rename = "earliestDragonTakedown")] + #[serde(skip_serializing_if = "Option::is_none")] + pub earliest_dragon_takedown: Option, + #[serde(rename = "earliestElderDragon")] + #[serde(skip_serializing_if = "Option::is_none")] + pub earliest_elder_dragon: Option, + #[serde(rename = "earlyLaningPhaseGoldExpAdvantage")] + #[serde(skip_serializing_if = "Option::is_none")] + pub early_laning_phase_gold_exp_advantage: Option, + #[serde(rename = "effectiveHealAndShielding")] + #[serde(skip_serializing_if = "Option::is_none")] + pub effective_heal_and_shielding: Option, + #[serde(rename = "elderDragonKillsWithOpposingSoul")] + #[serde(skip_serializing_if = "Option::is_none")] + pub elder_dragon_kills_with_opposing_soul: Option, + #[serde(rename = "elderDragonMultikills")] + #[serde(skip_serializing_if = "Option::is_none")] + pub elder_dragon_multikills: Option, + #[serde(rename = "enemyChampionImmobilizations")] + #[serde(skip_serializing_if = "Option::is_none")] + pub enemy_champion_immobilizations: Option, + #[serde(rename = "enemyJungleMonsterKills")] + #[serde(skip_serializing_if = "Option::is_none")] + pub enemy_jungle_monster_kills: Option, + #[serde(rename = "epicMonsterKillsNearEnemyJungler")] + #[serde(skip_serializing_if = "Option::is_none")] + pub epic_monster_kills_near_enemy_jungler: Option, + #[serde(rename = "epicMonsterKillsWithin30SecondsOfSpawn")] + #[serde(skip_serializing_if = "Option::is_none")] + pub epic_monster_kills_within30_seconds_of_spawn: Option, + #[serde(rename = "epicMonsterSteals")] + #[serde(skip_serializing_if = "Option::is_none")] + pub epic_monster_steals: Option, + #[serde(rename = "fastestLegendary")] + #[serde(skip_serializing_if = "Option::is_none")] + pub fastest_legendary: Option, + #[serde(rename = "firstTurretKilledTime")] + #[serde(skip_serializing_if = "Option::is_none")] + pub first_turret_killed_time: Option, + #[serde(rename = "flawlessAces")] + #[serde(skip_serializing_if = "Option::is_none")] + pub flawless_aces: Option, + #[serde(rename = "fullTeamTakedown")] + #[serde(skip_serializing_if = "Option::is_none")] + pub full_team_takedown: Option, + #[serde(rename = "gameLength")] + #[serde(skip_serializing_if = "Option::is_none")] + pub game_length: Option, + #[serde(rename = "getTakedownsInAllLanesEarlyJungleAsLaner")] + #[serde(skip_serializing_if = "Option::is_none")] + pub get_takedowns_in_all_lanes_early_jungle_as_laner: Option, + #[serde(rename = "goldPerMinute")] + #[serde(skip_serializing_if = "Option::is_none")] + pub gold_per_minute: Option, + #[serde(rename = "hadAfkTeammate")] + #[serde(skip_serializing_if = "Option::is_none")] + pub had_afk_teammate: Option, + #[serde(rename = "hadOpenNexus")] + #[serde(skip_serializing_if = "Option::is_none")] + pub had_open_nexus: Option, + #[serde(rename = "highestChampionDamage")] + #[serde(skip_serializing_if = "Option::is_none")] + pub highest_champion_damage: Option, + #[serde(rename = "highestCrowdControlScore")] + #[serde(skip_serializing_if = "Option::is_none")] + pub highest_crowd_control_score: Option, + #[serde(rename = "highestWardKills")] + #[serde(skip_serializing_if = "Option::is_none")] + pub highest_ward_kills: Option, + #[serde(rename = "initialBuffCount")] + #[serde(skip_serializing_if = "Option::is_none")] + pub initial_buff_count: Option, + #[serde(rename = "initialCrabCount")] + #[serde(skip_serializing_if = "Option::is_none")] + pub initial_crab_count: Option, + #[serde(rename = "jungleCsBefore10Minutes")] + #[serde(skip_serializing_if = "Option::is_none")] + pub jungle_cs_before10_minutes: Option, + #[serde(rename = "junglerKillsEarlyJungle")] + #[serde(skip_serializing_if = "Option::is_none")] + pub jungler_kills_early_jungle: Option, + #[serde(rename = "junglerTakedownsNearDamagedEpicMonster")] + #[serde(skip_serializing_if = "Option::is_none")] + pub jungler_takedowns_near_damaged_epic_monster: Option, + #[serde(rename = "kda")] + #[serde(skip_serializing_if = "Option::is_none")] + pub kda: Option, + #[serde(rename = "killParticipation")] + #[serde(skip_serializing_if = "Option::is_none")] + pub kill_participation: Option, + #[serde(rename = "killsNearEnemyTurret")] + #[serde(skip_serializing_if = "Option::is_none")] + pub kills_near_enemy_turret: Option, + #[serde(rename = "killsOnLanersEarlyJungleAsJungler")] + #[serde(skip_serializing_if = "Option::is_none")] + pub kills_on_laners_early_jungle_as_jungler: Option, + #[serde(rename = "killsOnOtherLanesEarlyJungleAsLaner")] + #[serde(skip_serializing_if = "Option::is_none")] + pub kills_on_other_lanes_early_jungle_as_laner: Option, + #[serde(rename = "killsOnRecentlyHealedByAramPack")] + #[serde(skip_serializing_if = "Option::is_none")] + pub kills_on_recently_healed_by_aram_pack: Option, + #[serde(rename = "killsUnderOwnTurret")] + #[serde(skip_serializing_if = "Option::is_none")] + pub kills_under_own_turret: Option, + #[serde(rename = "killsWithHelpFromEpicMonster")] + #[serde(skip_serializing_if = "Option::is_none")] + pub kills_with_help_from_epic_monster: Option, + #[serde(rename = "laneMinionsFirst10Minutes")] + #[serde(skip_serializing_if = "Option::is_none")] + pub lane_minions_first10_minutes: Option, + #[serde(rename = "laningPhaseGoldExpAdvantage")] + #[serde(skip_serializing_if = "Option::is_none")] + pub laning_phase_gold_exp_advantage: Option, + #[serde(rename = "legendaryCount")] + #[serde(skip_serializing_if = "Option::is_none")] + pub legendary_count: Option, + #[serde(rename = "lostAnInhibitor")] + #[serde(skip_serializing_if = "Option::is_none")] + pub lost_an_inhibitor: Option, + #[serde(rename = "maxCsAdvantageOnLaneOpponent")] + #[serde(skip_serializing_if = "Option::is_none")] + pub max_cs_advantage_on_lane_opponent: Option, + #[serde(rename = "maxKillDeficit")] + #[serde(skip_serializing_if = "Option::is_none")] + pub max_kill_deficit: Option, + #[serde(rename = "maxLevelLeadLaneOpponent")] + #[serde(skip_serializing_if = "Option::is_none")] + pub max_level_lead_lane_opponent: Option, + #[serde(rename = "moreEnemyJungleThanOpponent")] + #[serde(skip_serializing_if = "Option::is_none")] + pub more_enemy_jungle_than_opponent: Option, + #[serde(rename = "mostWardsDestroyedOneSweeper")] + #[serde(skip_serializing_if = "Option::is_none")] + pub most_wards_destroyed_one_sweeper: Option, + #[serde(rename = "multiKillOneSpell")] + #[serde(skip_serializing_if = "Option::is_none")] + pub multi_kill_one_spell: Option, + #[serde(rename = "multikills")] + #[serde(skip_serializing_if = "Option::is_none")] + pub multikills: Option, + #[serde(rename = "multikillsAfterAggressiveFlash")] + #[serde(skip_serializing_if = "Option::is_none")] + pub multikills_after_aggressive_flash: Option, + #[serde(rename = "mythicItemUsed")] + #[serde(skip_serializing_if = "Option::is_none")] + pub mythic_item_used: Option, + #[serde(rename = "outerTurretExecutesBefore10Minutes")] + #[serde(skip_serializing_if = "Option::is_none")] + pub outer_turret_executes_before10_minutes: Option, + #[serde(rename = "outnumberedKills")] + #[serde(skip_serializing_if = "Option::is_none")] + pub outnumbered_kills: Option, + #[serde(rename = "outnumberedNexusKill")] + #[serde(skip_serializing_if = "Option::is_none")] + pub outnumbered_nexus_kill: Option, + #[serde(rename = "perfectDragonSoulsTaken")] + #[serde(skip_serializing_if = "Option::is_none")] + pub perfect_dragon_souls_taken: Option, + #[serde(rename = "perfectGame")] + #[serde(skip_serializing_if = "Option::is_none")] + pub perfect_game: Option, + #[serde(rename = "poroExplosions")] + #[serde(skip_serializing_if = "Option::is_none")] + pub poro_explosions: Option, + #[serde(rename = "riftHeraldTakedowns")] + #[serde(skip_serializing_if = "Option::is_none")] + pub rift_herald_takedowns: Option, + #[serde(rename = "scuttleCrabKills")] + #[serde(skip_serializing_if = "Option::is_none")] + pub scuttle_crab_kills: Option, + #[serde(rename = "shortestTimeToAceFromFirstTakedown")] + #[serde(skip_serializing_if = "Option::is_none")] + pub shortest_time_to_ace_from_first_takedown: Option, + #[serde(rename = "skillshotsDodged")] + #[serde(skip_serializing_if = "Option::is_none")] + pub skillshots_dodged: Option, + #[serde(rename = "skillshotsHit")] + #[serde(skip_serializing_if = "Option::is_none")] + pub skillshots_hit: Option, + #[serde(rename = "snowballsHit")] + #[serde(skip_serializing_if = "Option::is_none")] + pub snowballs_hit: Option, + #[serde(rename = "soloBaronKills")] + #[serde(skip_serializing_if = "Option::is_none")] + pub solo_baron_kills: Option, + #[serde(rename = "soloKills")] + #[serde(skip_serializing_if = "Option::is_none")] + pub solo_kills: Option, + #[serde(rename = "stealthWardsPlaced")] + #[serde(skip_serializing_if = "Option::is_none")] + pub stealth_wards_placed: Option, + #[serde(rename = "survivedSingleDigitHpCount")] + #[serde(skip_serializing_if = "Option::is_none")] + pub survived_single_digit_hp_count: Option, + #[serde(rename = "takedownOnFirstTurret")] + #[serde(skip_serializing_if = "Option::is_none")] + pub takedown_on_first_turret: Option, + #[serde(rename = "takedowns")] + #[serde(skip_serializing_if = "Option::is_none")] + pub takedowns: Option, + #[serde(rename = "takedownsAfterGainingLevelAdvantage")] + #[serde(skip_serializing_if = "Option::is_none")] + pub takedowns_after_gaining_level_advantage: Option, + #[serde(rename = "takedownsBeforeJungleMinionSpawn")] + #[serde(skip_serializing_if = "Option::is_none")] + pub takedowns_before_jungle_minion_spawn: Option, + #[serde(rename = "takedownsFirst25Minutes")] + #[serde(skip_serializing_if = "Option::is_none")] + pub takedowns_first25_minutes: Option, + #[serde(rename = "takedownsInAlcove")] + #[serde(skip_serializing_if = "Option::is_none")] + pub takedowns_in_alcove: Option, + #[serde(rename = "takedownsInEnemyFountain")] + #[serde(skip_serializing_if = "Option::is_none")] + pub takedowns_in_enemy_fountain: Option, + #[serde(rename = "teamBaronKills")] + #[serde(skip_serializing_if = "Option::is_none")] + pub team_baron_kills: Option, + #[serde(rename = "teamDamagePercentage")] + #[serde(skip_serializing_if = "Option::is_none")] + pub team_damage_percentage: Option, + #[serde(rename = "teamElderDragonKills")] + #[serde(skip_serializing_if = "Option::is_none")] + pub team_elder_dragon_kills: Option, + #[serde(rename = "teamRiftHeraldKills")] + #[serde(skip_serializing_if = "Option::is_none")] + pub team_rift_herald_kills: Option, + #[serde(rename = "teleportTakedowns")] + #[serde(skip_serializing_if = "Option::is_none")] + pub teleport_takedowns: Option, + #[serde(rename = "thirdInhibitorDestroyedTime")] + #[serde(skip_serializing_if = "Option::is_none")] + pub third_inhibitor_destroyed_time: Option, + #[serde(rename = "turretPlatesTaken")] + #[serde(skip_serializing_if = "Option::is_none")] + pub turret_plates_taken: Option, + #[serde(rename = "turretsTakenWithRiftHerald")] + #[serde(skip_serializing_if = "Option::is_none")] + pub turrets_taken_with_rift_herald: Option, + #[serde(rename = "turretTakedowns")] + #[serde(skip_serializing_if = "Option::is_none")] + pub turret_takedowns: Option, + #[serde(rename = "twentyMinionsIn3SecondsCount")] + #[serde(skip_serializing_if = "Option::is_none")] + pub twenty_minions_in3_seconds_count: Option, + #[serde(rename = "unseenRecalls")] + #[serde(skip_serializing_if = "Option::is_none")] + pub unseen_recalls: Option, + #[serde(rename = "visionScoreAdvantageLaneOpponent")] + #[serde(skip_serializing_if = "Option::is_none")] + pub vision_score_advantage_lane_opponent: Option, + #[serde(rename = "visionScorePerMinute")] + #[serde(skip_serializing_if = "Option::is_none")] + pub vision_score_per_minute: Option, + #[serde(rename = "wardsGuarded")] + #[serde(skip_serializing_if = "Option::is_none")] + pub wards_guarded: Option, + #[serde(rename = "wardTakedowns")] + #[serde(skip_serializing_if = "Option::is_none")] + pub ward_takedowns: Option, + #[serde(rename = "wardTakedownsBefore20M")] + #[serde(skip_serializing_if = "Option::is_none")] + pub ward_takedowns_before20_m: Option, + } /// MatchTimelineInfoFrameEvent data object. #[derive(Clone, Debug)] #[derive(serde::Serialize, serde::Deserialize)] @@ -1294,6 +1621,12 @@ pub mod match_v5 { #[serde(rename = "name")] #[serde(skip_serializing_if = "Option::is_none")] pub name: Option, + #[serde(rename = "shutdownBounty")] + #[serde(skip_serializing_if = "Option::is_none")] + pub shutdown_bounty: Option, + #[serde(rename = "actualStartTime")] + #[serde(skip_serializing_if = "Option::is_none")] + pub actual_start_time: Option, } /// MatchTimelineInfoFrameParticipantFrameChampionStats data object. #[derive(Clone, Debug)] @@ -2395,6 +2728,9 @@ pub mod val_content_v1 { pub player_titles: std::vec::Vec, #[serde(rename = "acts")] pub acts: std::vec::Vec, + #[serde(rename = "ceremonies")] + #[serde(skip_serializing_if = "Option::is_none")] + pub ceremonies: Option>, } /// ContentItem data object. #[derive(Clone, Debug)] @@ -2475,6 +2811,12 @@ pub mod val_content_v1 { pub id: String, #[serde(rename = "isActive")] pub is_active: bool, + #[serde(rename = "parentId")] + #[serde(skip_serializing_if = "Option::is_none")] + pub parent_id: Option, + #[serde(rename = "type")] + #[serde(skip_serializing_if = "Option::is_none")] + pub r#type: Option, } } @@ -2833,6 +3175,24 @@ pub mod val_ranked_v1 { pub total_players: i64, #[serde(rename = "players")] pub players: std::vec::Vec, + #[serde(rename = "immortalStartingPage")] + #[serde(skip_serializing_if = "Option::is_none")] + pub immortal_starting_page: Option, + #[serde(rename = "immortalStartingIndex")] + #[serde(skip_serializing_if = "Option::is_none")] + pub immortal_starting_index: Option, + #[serde(rename = "topTierRRThreshold")] + #[serde(skip_serializing_if = "Option::is_none")] + pub top_tier_rr_threshold: Option, + #[serde(rename = "tierDetails")] + #[serde(skip_serializing_if = "Option::is_none")] + pub tier_details: Option>, + #[serde(rename = "startIndex")] + #[serde(skip_serializing_if = "Option::is_none")] + pub start_index: Option, + #[serde(rename = "query")] + #[serde(skip_serializing_if = "Option::is_none")] + pub query: Option, } /// Player data object. #[derive(Clone, Debug)] @@ -2857,6 +3217,21 @@ pub mod val_ranked_v1 { pub ranked_rating: i64, #[serde(rename = "numberOfWins")] pub number_of_wins: i64, + #[serde(rename = "competitiveTier")] + #[serde(skip_serializing_if = "Option::is_none")] + pub competitive_tier: Option, + } + /// TierDetail data object. + #[derive(Clone, Debug)] + #[derive(serde::Serialize, serde::Deserialize)] + #[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))] + pub struct TierDetail { + #[serde(rename = "rankedRatingThreshold")] + pub ranked_rating_threshold: i64, + #[serde(rename = "startingPage")] + pub starting_page: i64, + #[serde(rename = "startingIndex")] + pub starting_index: i64, } }